AIX: Remove exec_one_dummy_insn hack
[external/binutils.git] / gdb / ChangeLog
1 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
2
3         * rs6000-nat.c (exec_one_dummy_insn): Remove.
4         (store_register): Do not call exec_one_dummy_insn.
5
6 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
7
8         * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
9         dereference it first.  Use value_enclosing_type instead of
10         value_type.
11         (ada_array_length): Likewise.
12
13 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
14
15         * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
16         Adjust function implementation and documentation accordingly.
17         (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
18         NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
19         Update call to ada_value_ptr_subscript.
20
21 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
22
23         * ada-valprint.c (ada_value_print): Use VAL's enclosing type
24         instead of VAL's type.
25
26 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
27
28         * amd64-linux-nat.c: Add <sys/uio.h> #include.
29
30 2014-09-09  Doug Evans  <xdje42@gmail.com>
31
32         PR guile/17367
33         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
34         last parameter to pkg-config, not first.
35         * configure.ac: Pass --with-guile provided pkg-config path to
36         GDB_GUILE_PROGRAM_NAMES.
37         * configure: Regenerate.
38
39 2014-09-09  Gabriel Krisman Bertazi  <gabriel@krisman.be>
40
41         * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
42         Bertazi".
43
44 2014-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
45
46         * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
47         Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
48         the list of sections determining GDB_OSABI_IRIX.
49
50 2014-09-09  James Hogan  <james.hogan@imgtec.com>
51
52         * MAINTAINERS (Write After Approval): Add "James Hogan".
53
54 2014-09-09  James Hogan  <james.hogan@imgtec.com>
55
56         * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
57
58 2014-09-09  Joel Brobecker  <brobecker@adacore.com>
59
60         * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
61
62 2014-09-08  Doug Evans  <xdje42@gmail.com>
63
64         PR 17247
65         * guile.c: #include <signal.h>.
66         (_initialize_guile): Block SIGCHLD while initializing Guile.
67
68         Replaces the following, which is reverted.
69
70         2014-07-26  Doug Evans  <xdje42@gmail.com>
71
72         PR 17185
73         * configure.ac: Add check for header gc/gc.h.
74         Add check for function setenv.
75         * configure: Regenerate.
76         * config.in: Regenerate.
77         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
78
79 2014-09-08  Doug Evans  <xdje42@gmail.com>
80
81         * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
82         with named constant.  Fix style of pointer comparison.
83         * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
84
85 2014-09-07  Gabriel Krisman Bertazi  <gabriel@krisman.be>
86
87         PR gdb/17035
88         * cli/cli-cmds.c (show_user): Use cli_user_command_p to
89         decide whether we display the command on "show user".
90         * cli/cli-script.c (show_user_1): Only verify cmdlines after
91         printing command name.
92         * cli/cli-decode.h (cli_user_command_p): Declare new function.
93         * cli/cli-decode.c (cli_user_command_p): Create helper function
94         to verify whether cmd_list_element is a user-defined command.
95
96 2014-09-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
97
98         PR python/17355
99         * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
100         Fix goto out of TRY_CATCH.
101
102 2014-09-06  Doug Evans  <xdje42@gmail.com>
103             Tom Tromey  <tromey@redhat.com>
104
105         PR 15276
106         * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
107         $_any_caller_matches.
108         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
109         * python/lib/gdb/function/caller_is.py: New file.
110
111 2014-09-06  Doug Evans  <xdje42@gmail.com>
112
113         * infcmd.c (program_info): Fix typo.
114
115 2014-09-05  Sergio Durigan Junior  <sergiodj@redhat.com>
116
117         PR gdb/17235
118         * stap-probe.c (stap_parse_single_operand): Delete unused variable
119         'number'.  New variable 'has_digit'.  Rewrite code to deal with
120         subexpressions on SDT probes.
121
122 2014-09-04  Pedro Alves  <palves@redhat.com>
123
124         * c-exp.y (parse_number): Skip handling base-switching prefixes if
125         the input is only one character long.
126
127 2014-09-04  Sergio Durigan Junior  <sergiodj@redhat.com>
128
129         PR fortran/17237
130         * f-valprint.c (f_val_print): Specify the correct print option to
131         use when printing integer values.
132
133 2014-09-04  Gary Benson  <gbenson@redhat.com>
134
135         * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
136         Remove code to cope with LWPs wrapped as PIDs.
137         Add assertions to ensure no wrapped LWPs are passed.
138
139 2014-09-04  Pedro Alves  <palves@redhat.com>
140
141         * value.c (value_ranges_copy_adjusted): New function, factored out
142         from ...
143         (value_contents_copy_raw): ... here.
144         (unpack_value_bits_as_long_1): Rename back to ...
145         (unpack_bits_as_long): ... this.  Remove 'original_value' and
146         'result' parameters.  Change return type to LONGEST.
147         (unpack_value_bits_as_long): Delete.
148         (unpack_value_field_as_long_1): Delete.
149         (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
150         (unpack_value_bitfield): New function.
151         (value_field_bitfield): Reimplement using unpack_value_bitfield.
152         (value_fetch_lazy): Use unpack_value_bitfield.
153         * value.h (unpack_value_bits_as_long): Delete declaration.
154
155 2014-09-03  Sasha Smundak  <asmundak@google.com>
156
157         * python/py-frame.c (frapy_read_register): New function.
158
159 2014-09-03  James Hogan  <james.hogan@imgtec.com>
160
161         * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
162         prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
163
164 2014-09-03  Sergio Durigan Junior  <sergiodj@redhat.com>
165
166         PR python/16699
167         * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
168         function.
169         (add_cmd): Set "completer_handle_brkchars" to NULL.
170         * cli/cli-decode.h (struct cmd_list_element)
171         <completer_handle_brkchars>: New field.
172         * command.h (completer_ftype_void): New typedef.
173         (set_cmd_completer_handle_brkchars): New prototype.
174         * completer.c (set_gdb_completion_word_break_characters): New
175         function.
176         (complete_line_internal): Call "completer_handle_brkchars"
177         callback from command.
178         * completer.h: Include "command.h".
179         (set_gdb_completion_word_break_characters): New prototype.
180         * python/py-cmd.c (cmdpy_completer_helper): New function.
181         (cmdpy_completer_handle_brkchars): New function.
182         (cmdpy_completer): Adjust to use cmdpy_completer_helper.
183         (cmdpy_init): Set completer_handle_brkchars to
184         cmdpy_completer_handle_brkchars.
185
186 2014-09-03  Gary Benson  <gbenson@redhat.com>
187
188         * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
189         (ALL_DEBUG_ADDRESS_REGISTERS): New macro.  All uses updated.
190         Loop conditions changed to equivalent form.
191         (struct x86_debug_reg_state): Updated dr_ref_count comment.
192         * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
193         ALL_DEBUG_ADDRESS_REGISTERS.
194
195 2014-09-03  Joel Brobecker  <brobecker@adacore.com>
196
197         * dwarf2loc.h (dwarf2_evaluate_property): Minor function
198         description fix.
199
200 2014-09-02  Doug Evans  <dje@google.com>
201
202         * typeprint.c (find_global_typedef): Fix comment.
203
204 2014-09-02  Gary Benson  <gbenson@redhat.com>
205
206         * i386-nat.h: Renamed as...
207         * x86-nat.h: New file.  All type, function and variable name
208         prefixes changed from "i386_" to "x86_".  All references updated.
209         * i386-nat.c: Renamed as...
210         * x86-nat.c: New file.  All type, function and variable name
211         prefixes changed from "i386_" to "x86_".  All references updated.
212         * common/i386-xstate.h: Renamed as...
213         * common/x86-xstate.h: New file.  All type, function and variable
214         name prefixes changed from "i386_" to "x86_".  All references
215         updated.
216         * nat/i386-cpuid.h: Renamed as...
217         * nat/x86-cpuid.h: New file.  All type, function and variable name
218         prefixes changed from "i386_" to "x86_".  All references updated.
219         * nat/i386-gcc-cpuid.h: Renamed as...
220         * nat/x86-gcc-cpuid.h: New file.  All type, function and variable
221         name prefixes changed from "i386_" to "x86_".  All references
222         updated.
223         * nat/i386-dregs.h: Renamed as...
224         * nat/x86-dregs.h: New file.  All type, function and variable name
225         prefixes changed from "i386_" to "x86_".  All references updated.
226         * nat/i386-dregs.c: Renamed as...
227         * nat/x86-dregs.c: New file.  All type, function and variable name
228         prefixes changed from "i386_" to "x86_".  All references updated.
229
230 2014-09-01  Maciej W. Rozycki  <macro@codesourcery.com>
231
232         * varobj.c (_initialize_varobj): Move to the end of file.
233
234 2014-08-29  Gary Benson  <gbenson@redhat.com>
235
236         * common/common-exceptions.h: New file.
237         * common/common-exceptions.c: Likewise.
238         * Makefile.in (SFILES): Add common/common-exceptions.c.
239         (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
240         (COMMON_OBS): Add common-exceptions.o.
241         (common-exceptions.o): New rule.
242         * exceptions.h (common-exceptions.h): Include.
243         (gdb_setjmp.h): Do not include.
244         (return_reason): Moved to common-exceptions.h.
245         (enum return_reason): Likewise.
246         (RETURN_MASK): Likewise.
247         (typedef return_mask): Likewise.
248         (enum errors): Likewise.
249         (struct gdb_exception): Likewise.
250         (exceptions_state_mc_init): Likewise.
251         (exceptions_state_mc_action_iter): Likewise.
252         (exceptions_state_mc_action_iter_1): Likewise.
253         (TRY_CATCH): Likewise.
254         (throw_exception): Likewise.
255         (throw_verror): Likewise.
256         (throw_vquit): Likewise.
257         (throw_error): Likewise.
258         (throw_quit): Likewise.
259         * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
260         (enum catcher_action): Likewise.
261         (struct catcher): Likewise.
262         (current_catcher): Likewise.
263         (catcher_list_size): Likewise.
264         (exceptions_state_mc_init): Likewise.
265         (catcher_pop): Likewise.
266         (exceptions_state_mc): Likewise.
267         (exceptions_state_mc_action_iter): Likewise.
268         (exceptions_state_mc_action_iter_1): Likewise.
269         (throw_exception): Likewise.
270         (exception_messages): Likewise.
271         (exception_messages_size): Likewise.
272         (throw_it): Likewise.
273         (throw_verror): Likewise.
274         (throw_vquit): Likewise.
275         (throw_error): Likewise.
276         (throw_quit): Likewise.
277         (prepare_to_throw_exception): New function.
278
279 2014-08-29  Gary Benson  <gbenson@redhat.com>
280
281         * common/gdb_setjmp.h: New file.
282         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
283         * configure.ac: Move sigsetjmp check...
284         * common/common.m4: ...here.
285         * configure: Regenerate.
286         * cp-support.c (SIGJMP_BUF): Delete.
287         (SIGSETJMP): Likewise.
288         (SIGLONGJMP): Likewise.
289         * exceptions.h (gdb_setjmp.h): Include.
290         (setjmp.h): Do not include.
291         (EXCEPTIONS_SIGJMP_BUF): Delete.
292         (EXCEPTIONS_SIGSETJMP): Likewise.
293         (EXCEPTIONS_SIGLONGJMP): Likewise.
294         Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
295         from gdb_setjmp.h.
296         * exceptions.c: Likewise.
297
298 2014-08-29  Gary Benson  <gbenson@redhat.com>
299
300         * cleanups.h: Moved to...
301         * common/cleanups.h: New file.
302         * cleanups.c: Moved to...
303         * common/cleanups.c: New file.  Include common-defs.h and
304         cleanups.h.  Do not include defs.h.
305         * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
306         (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
307         (cleanups.o): New rule.
308
309 2014-08-29  Gary Benson  <gbenson@redhat.com>
310
311         * common/errors.h (internal_warning): New declaration.
312         (internal_vwarning): Likewise.
313         * common/errors.c (internal_warning): New function.
314         * utils.h (internal_warning): Don't declare.
315         (internal_vwarning): Likewise.
316         * utils.c (internal_warning): Removed.
317
318 2014-08-29  Gary Benson  <gbenson@redhat.com>
319
320         * main.c (captured_main): Use warning during startup.
321         Prefix startup warning messages with command name.
322
323 2014-08-29  Gary Benson  <gbenson@redhat.com>
324
325         * main.c (captured_main): Handle usage errors with error.
326
327 2014-08-29  Gary Benson  <gbenson@redhat.com>
328
329         * go32-nat.c (go32_create_inferior): Replace a fprintf/
330         exit pair with a call to error.  Wrap the message with _().
331
332 2014-08-29  Gary Benson  <gbenson@redhat.com>
333
334         * main.c (captured_main): Replace a fprintf/exit
335         pair with a call to error.  Wrap the message with _().
336
337 2014-08-29  Gary Benson  <gbenson@redhat.com>
338
339         * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
340         pairs with calls to error.  Wrap the message with _().
341
342 2014-08-29  Gary Benson  <gbenson@redhat.com>
343
344         * utils.c (vwarning): Protect calls to target_terminal_ours
345         and wrap_here.
346
347 2014-08-29  Gary Benson  <gbenson@redhat.com>
348
349         * exceptions.c (print_flush): Protect calls to
350         target_terminal_ours and wrap_here.
351
352 2014-08-29  Gary Benson  <gbenson@redhat.com>
353
354         * utils.h (filtered_printing_initialized): New declaration.
355         * utils.c (abort_with_message): New function.
356         (internal_vproblem): Use abort_with_message for first level
357         recursive internal problems, and if gdb_stderr is not set up.
358         Protect calls to target_terminal_ours, begin_line and query.
359
360 2014-08-28  Doug Evans  <dje@google.com>
361
362         * symtab.c (in_prologue): Move definition to better spot.
363         (skip_prologue_using_sal): Ditto.
364
365 2014-08-28  Doug Evans  <dje@google.com>
366
367         * symtab.c (find_function_start_sal): Move definition to better spot.
368
369 2014-08-28  Yao Qi  <yao@codesourcery.com>
370
371         * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
372         found_stack_adjust in forward scan.  Remove condition check
373         on found_stack_adjust which is always true.  Indent the code.
374
375 2014-08-28  Yao Qi  <yao@codesourcery.com>
376
377         * dwarf2read.c (dwarf_decode_lines): Update declaration.
378         (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
379         (dwarf_decode_lines): Remove argument
380         want_line_info.  Remove condition check on want_line_info.
381         Callers update.
382
383 2014-08-27  Doug Evans  <dje@google.com>
384
385         * dwarf2read.c (dwarf_record_line): Fix typo.
386
387 2014-08-27  Patrick Palka  <patrick@parcs.ath.cx>
388
389         * target.h (struct target_ops::to_terminal_save_ours): Remove
390         declaration.
391         (target_terminal_save_ours): Remove macro.
392         * target-delegates.c: Regenerate.
393         * inf-child.c (inf_child_target): Don't set the nonexistent
394         field to_terminal_save_ours.
395         * inferior.h (child_terminal_save_ours): Remove declaration.
396         * terminal.h (gdb_save_tty_state): New declaration.
397         * inflow.c (child_terminal_save_ours): Rename to ...
398         (gdb_save_tty_state): ... this.
399         * tui/tui.c: Include terminal.h.
400         (tui_enable): Use gdb_save_tty_state instead of
401         target_terminal_save_ours.
402         (tui_disable): Likewise.
403
404 2014-08-25  Doug Evans  <dje@google.com>
405
406         * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
407         Pass NULL instead of 0 for context pointer.
408
409 2014-08-25  Yao Qi  <yao@codesourcery.com>
410
411         * dwarf2read.c: Fix grammatical error.
412
413 2014-08-24  Yao Qi  <yao@codesourcery.com>
414
415         * dwarf2read.c (scan_partial_symbols):  Update comments.
416         Rename argument 'need_pc' with 'set_addrmap'.
417         (add_partial_namespace): Rename argument 'need_pc' with
418         'set_addrmap'.
419         (add_partial_module): Likewise.
420         (add_partial_subprogram): Likewise.  Update comments.
421         (dwarf2_name): Fix typo.
422
423 2014-08-22  Doug Evans  <dje@google.com>
424
425         PR 17276
426         * dwarf2read.c (dwarf_record_line_p): New function.
427         (dwarf_decode_lines_1): Ignore subsequent line number entries
428         for the same line if any entry had a non-zero discriminator.
429
430 2014-08-22  Doug Evans  <dje@google.com>
431
432         * buildsym.h (record_line_ftype): New typedef.
433         (record_line): Use it.
434         * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
435         (dwarf_decode_lines_1): Call them.
436
437 2014-08-22  Yao Qi  <yao@codesourcery.com>
438
439         * ctf.c (CTF_FILE_MIN_SIZE): Remove.
440         (ctf_end): Remove code.
441
442 2014-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
443
444         * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
445         (linux_make_corefile_notes): call update_thread_list, protected against
446         exceptions.
447
448 2014-08-21  Pedro Alves  <palves@redhat.com>
449
450         * infcmd.c (attach_command): Remove comment.
451
452 2014-08-21  Bin Cheng  <bin.cheng@arm.com>
453
454         * aarch64-linux-nat.c (dr_changed_t): Change the type from
455         unsigned LONGEST to ULONGEST.
456
457 2014-08-20  Pedro Alves  <palves@redhat.com>
458
459         * Makefile.in (check-read1): New rule.
460
461 2014-08-20  Joel Brobecker  <brobecker@adacore.com>
462
463         * value.c (value_from_contents_and_address): Strip resolved_type's
464         typedef layers before checking its TYPE_DATA_LOCATION.
465
466 2014-08-20  Pedro Alves  <palves@redhat.com>
467
468         * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
469
470 2014-08-20  Yao Qi  <yao@codesourcery.com>
471
472         * amd64-tdep.c (amd64_classify): Add a blank line after the
473         example.  Move "*/" to a new line.
474         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
475         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
476         * dwarf2read.c (psymtab_include_file_name): Likewise.
477
478 2014-08-19  Andrew Burgess  <aburgess@broadcom.com>
479             Pedro Alves  <palves@redhat.com>
480
481         PR symtab/14604
482         PR symtab/14605
483         * ada-lang.c (coerce_unspec_val_to_type): Use
484         value_contents_copy_raw.
485         * ada-valprint.c (val_print_packed_array_elements): Adjust.
486         * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
487         * cp-valprint.c (cp_print_value_fields): Let the common printing
488         code handle optimized out values.
489         (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
490         * d-valprint.c (dynamic_array_type): Use
491         value_bits_any_optimized_out.
492         * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
493         check_any_valid fields.
494         (check_pieced_value_bits): Delete and inline ...
495         (check_pieced_synthetic_pointer): ... here.
496         (check_pieced_value_validity): Delete.
497         (check_pieced_value_invalid): Delete.
498         (pieced_value_funcs): Remove check_validity and check_any_valid
499         fields.
500         (read_pieced_value): Use mark_value_bits_optimized_out.
501         (write_pieced_value): Switch to use
502         mark_value_bytes_optimized_out.
503         (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
504         of assuming the whole value is optimized out.
505         * findvar.c (read_frame_register_value): Remove special handling
506         of optimized out registers.
507         (value_from_register): Use mark_value_bytes_optimized_out.
508         * frame-unwind.c (frame_unwind_got_optimized): Use
509         mark_value_bytes_optimized_out.
510         * jv-valprint.c (java_value_print): Adjust.
511         (java_print_value_fields): Let the common printing code handle
512         optimized out values.
513         * mips-tdep.c (mips_print_register): Remove special handling of
514         optimized out registers.
515         * opencl-lang.c (lval_func_check_validity): Delete.
516         (lval_func_check_any_valid): Delete.
517         (opencl_value_funcs): Remove check_validity and check_any_valid
518         fields.
519         * p-valprint.c (pascal_object_print_value_fields): Let the common
520         printing code handle optimized out values.
521         * stack.c (read_frame_arg): Remove special handling of optimized
522         out values.  Fetch both VAL and ENTRYVAL before comparing
523         contents.  Adjust to value_available_contents_eq rename.
524         * valprint.c (valprint_check_validity)
525         (val_print_scalar_formatted): Use value_bits_any_optimized_out.
526         (val_print_array_elements): Adjust.
527         * value.c (struct value) <optimized_out>: Now a VEC(range_s).
528         (value_bits_any_optimized_out): New function.
529         (value_entirely_covered_by_range_vector): New function, factored
530         out from value_entirely_unavailable.
531         (value_entirely_unavailable): Reimplement.
532         (value_entirely_optimized_out): New function.
533         (insert_into_bit_range_vector): New function, factored out from
534         mark_value_bits_unavailable.
535         (mark_value_bits_unavailable): Reimplement.
536         (struct ranges_and_idx): New struct.
537         (find_first_range_overlap_and_match): New function, factored out
538         from value_available_contents_bits_eq.
539         (value_available_contents_bits_eq): Rename to ...
540         (value_contents_bits_eq): ... this.  Check both unavailable
541         contents and optimized out contents.
542         (value_available_contents_eq): Rename to ...
543         (value_contents_eq): ... this.
544         (allocate_value_lazy): Remove reference to the old optimized_out
545         boolean.
546         (allocate_optimized_out_value): Use
547         mark_value_bytes_optimized_out.
548         (require_not_optimized_out): Adjust to check whether the
549         optimized_out vec is empty.
550         (ranges_copy_adjusted): New function, factored out from
551         value_contents_copy_raw.
552         (value_contents_copy_raw): Also copy the optimized out ranges.
553         Assert the destination ranges aren't optimized out.
554         (value_contents_copy): Update comment, remove call to
555         require_not_optimized_out.
556         (value_contents_equal): Adjust to check whether the optimized_out
557         vec is empty.
558         (set_value_optimized_out, value_optimized_out_const): Delete.
559         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
560         New functions.
561         (value_entirely_optimized_out, value_bits_valid): Delete.
562         (value_copy): Take a VEC copy of the 'optimized_out' field.
563         (value_primitive_field): Remove special handling of optimized out.
564         (value_fetch_lazy): Assert that lazy values have no unavailable
565         regions.  Use value_bits_any_optimized_out.  Remove some special
566         handling for optimized out values.
567         * value.h: Add intro comment about <optimized out> and
568         <unavailable>.
569         (struct lval_funcs): Remove check_validity and check_any_valid
570         fields.
571         (set_value_optimized_out, value_optimized_out_const): Remove.
572         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
573         New declarations.
574         (value_bits_any_optimized_out): New declaration.
575         (value_bits_valid): Delete declaration.
576         (value_available_contents_eq): Rename to ...
577         (value_contents_eq): ... this, and extend comments.
578
579 2014-08-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
580
581         Fix -fsanitize=address on unreadable inferior strings.
582         * valprint.c (val_print_string): Fix access before BUFFER.
583
584 2014-08-19  Simon Marchi  <simon.marchi@ericsson.com>
585
586         * target.c (target_struct_size): Remove.
587         (target_struct_allocsize): Remove.
588         (DEFAULT_ALLOCSIZE): Remove.
589         (target_ops_p): New typedef.
590         (DEF_VEC_P (target_ops_p)): New vector type.
591         (target_structs): Change type to VEC (target_ops_p).
592         (add_target_with_completer): Replace "push" code by VEC_safe_push.
593         (find_default_run_target): Rewrite for loop following changes to
594         target_structs.
595
596 2014-08-19  Joel Brobecker  <brobecker@adacore.com>
597
598         * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
599         Adjust code accordingly.  Adjust function description comment.
600
601 2014-08-19  Yao Qi  <yao@codesourcery.com>
602
603         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
604         types.
605
606 2014-08-19  Alan Modra  <amodra@gmail.com>
607
608         * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
609         * config.in: Regenerate.
610         * configure: Regenerate.
611
612 2014-08-19  Tom Tromey  <tromey@redhat.com>
613             Gary Benson  <gbenson@redhat.com>
614
615         * common/common-debug.h: New file.
616         * common/common-debug.c: Likewise.
617         * debug.c: Likewise.
618         * Makefile.in (SFILES): Add common/common-debug.c.
619         (HFILES_NO_SRCDIR): Add common/common-debug.h.
620         (COMMON_OBS): Add common-debug.o and debug.o.
621         (common-debug.o): New rule.
622         * common/common-defs.h: Include common-debug.h.
623         * common/agent.c (debug_agent_printf): New function.
624         (DEBUG_AGENT): Redefine.
625         * nat/i386-dregs.c (debug_printf): Undefine.
626
627 2014-08-19  Gary Benson  <gbenson@redhat.com>
628
629         * common/common-defs.h: Include print-utils.h.
630         * utils.h: Do not include print-utils.h.
631
632 2014-08-19  Tom Tromey  <tromey@redhat.com>
633             Gary Benson  <gbenson@redhat.com>
634
635         * common/common-types.h: New file.
636         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
637         * common/common-defs.h: Include common-types.h.
638         * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
639         (ULONGEST): Remove.
640
641 2014-08-19  Tom Tromey  <tromey@redhat.com>
642             Gary Benson  <gbenson@redhat.com>
643
644         * common/errors.h: New file.
645         * common/errors.c: Likewise.
646         * Makefile.in (SFILES): Add common/errors.c.
647         (HFILES_NO_SRCDIR): Add common/errors.h.
648         (COMMON_OBS): Add errors.o.
649         (errors.o): New rule.
650         * common/common-defs.h: Include errors.h.
651         * utils.h (perror_with_name, error, verror, warning, vwarning):
652         Don't declare.
653         * common/common-utils.h: (malloc_failure, internal_error):
654         Likewise.
655
656 2014-08-19  Gary Benson  <gbenson@redhat.com>
657
658         * utils.c (internal_vproblem): Always print the message.
659
660 2014-08-18  Doug Evans  <dje@google.com>
661
662         * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
663
664 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
665
666         * ada-typeprint.c (type_is_full_subrange_of_target_type):
667         Return 0 if TYPE is dynamic.
668         (print_range): Add handling of dynamic ranges.
669
670 2014-08-18  Keven Boell  <keven.boell@intel.com>
671             Joel Brobecker  <brobecker@adacore.com>
672
673         * gdbtypes.h (struct main_type): Add field "data_location".
674         (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
675         (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
676         * gdbtypes.c (is_dynamic_type): Return 1 if the type has
677         a dynamic data location.
678         (resolve_dynamic_type): Add DW_AT_data_location handling.
679         (copy_recursive, copy_type): Copy the data_location information
680         when present.
681         * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
682         * value.c (value_from_contents_and_address): Add
683         DW_AT_data_location handling.
684
685 2014-08-18  Keven Boell  <keven.boell@intel.com>
686             Joel Brobecker  <brobecker@adacore.com>
687
688         * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
689         field "get_object_address".
690         * dwarf2expr.c (execute_stack_op): Add handling for
691         DW_OP_push_object_address.
692         * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
693         * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
694         (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
695         (dwarf_expr_get_obj_addr): New function.
696         (dwarf_expr_ctx_funcs): Add get_object_address field.
697         (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
698         (dwarf2_locexpr_baton_eval): Add parameter "addr".  Use it.
699         (dwarf2_evaluate_property): Add parameter "address".  Use it.
700         (needs_get_obj_addr): New function.
701         (needs_frame_ctx_funcs): Add get_object_address field.
702         (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
703         * gdbtypes.c (resolve_dynamic_range): Add "addr" field.  Use it.
704         (resolve_dynamic_array): Likewise.
705
706 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
707
708         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
709         When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
710         fixed value for records and unions for which some GNAT encodings
711         are present.
712
713 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
714
715         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
716         rewrite to avoid "else if" and "else" constructs.  Should be
717         a no-op in practice.
718
719 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
720
721         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
722         of lexical block.
723
724 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
725
726         PR c++/17132
727         * eval.c: Update all calls to find_overload_match.
728         * valarith.c: Likewise.
729         (value_user_defined_cpp_op, value_user_defined_op): New
730         argument NOSIDE.  Update all callers.
731         * valops.c (find_overload_match): New argument NOSIDE.
732         * value.h (find_overload_match): Update signature.
733
734 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
735
736         * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
737         'items' methods instead of 'iteritems' method on dictionaries.
738
739 2014-08-15  Doug Evans  <dje@google.com>
740
741         * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
742         closer to use.
743
744 2014-08-15  Doug Evans  <dje@google.com>
745
746         * dwarf2read.c (dwarf_decode_lines_1): Add comment.
747
748 2014-08-15  Doug Evans  <dje@google.com>
749
750         * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
751
752 2014-08-15  Doug Evans  <dje@google.com>
753
754         * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
755         unused.
756
757 2014-08-15  Eli Zaretskii  <eliz@gnu.org>
758
759         * dcache.h: Include target.h, to avoid compile time warnings.
760
761 2014-08-15  Joel Brobecker  <brobecker@adacore.com>
762
763         * gdbarch.sh: #include "frame.h" in gdbarch.h.  Delete "struct
764         frame_info" partial declaration.
765         * gdbarch.h: Regenerate.
766
767 2014-08-15  Yao Qi  <yao@codesourcery.com>
768
769         * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
770         Add parameter 'decode_for_pst_p'.  Callers update.
771
772 2014-08-13  Yao Qi  <yao@codesourcery.com>
773
774         PR build/17104
775         * configure.ac: Use local variable 'pos'.
776         * configure: Regenerated.
777
778 2014-08-11  Doug Evans  <dje@google.com>
779
780         * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
781         message, it is redundant with "Reading symbols from ..." message.
782
783 2014-08-10  Doug Evans  <xdje42@gmail.com>
784
785         * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
786
787 2014-08-09  Yao Qi  <yao@codesourcery.com>
788
789         PR remote/9053
790         * remote.c (remote_xfer_partial): Remove dead code.
791
792 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
793
794         * ia64-linux-tdep.c: Include "regset.h".
795         (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
796         (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
797         (ia64_linux_supply_fpregset): New function.
798         (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
799         (ia64_linux_regset_from_core_section): New function.
800         (ia64_linux_init_abi): Set regset_from_core_section gdbarch
801         method.
802
803 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
804
805         * m68klinux-tdep.c: Include "regset.h".
806         (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
807         (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
808         (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
809         (m68k_linux_regset_from_core_section): New function.
810         (m68k_linux_init_abi): Set regset_from_core_section gdbarch
811         method.
812
813 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
814
815         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
816         function.  Move logic to...
817         (tilegx_linux_regmap): ... this new register map.
818         (tilegx_linux_regset): Refer to register map, replace supply
819         method by regcache_supply_regset, and add collect method.
820         * tilegx-tdep.h (enum tilegx_regnum): New enum value
821         TILEGX_FIRST_EASY_REGNUM.
822
823 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
824
825         * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
826         that calls regcache_supply_regset and handles the EPC register
827         separately.  Move main logic to...
828         (score7_linux_gregmap): ... this new register map.
829         (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
830         (score7_linux_gregset): Refer to register map.  Add collect method.
831         (score7_linux_regset_from_core_section): Replace
832         sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
833         * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
834         (struct regset): Delete unused forward declaraction.
835         (struct pt_regs): Delete structure definition.
836         (elf_gregset_t): Delete typedef.
837
838 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
839
840         * nios2-linux-tdep.c (nios2_collect_gregset): New function.
841         (nios2_core_regset): Add collect method.
842
843 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
844
845         * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
846         platform-independent and don't write to read-only input buffer.
847         (m32r_linux_collect_gregset): New function.
848         (m32r_linux_gregset): Add collect method.
849
850 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
851
852         * hppa-linux-tdep.c (greg_map): Rename to...
853         (hppa_linux_gregmap): ... this.  Also convert to
854         regcache_map_entry format.
855         (hppa_linux_supply_regset): Delete function.
856         (hppa_linux_supply_fpregset): Delete function.  Move logic to...
857         (hppa_linux_fpregmap): ... this new register map.
858         (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
859         register map, replace supply method by regcache_supply_regset, and
860         add collect method regcache_collect_regset.
861
862 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
863
864         * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
865         (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
866         (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
867         (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
868         (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
869         (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
870         (frv_linux_supply_gregset): Replace main logic by call to
871         regcache_supply_regset, but keep clearing gr32-gr63.
872         (frv_linux_supply_fpregset): Delete function.
873         (frv_linux_gregset): Refer to appropriate register map and add
874         regcache_collect_regset as the collect method.
875         (frv_linux_fpregset): Likewise.  Also exchange the supply method
876         by regcache_supply_regset.
877
878 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
879
880         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
881         by call to alpha_supply_int_regs.
882         (alpha_linux_collect_gregset): New function.
883         (alpha_linux_supply_fpregset): Replace logic by call to
884         alpha_supply_fp_regs.
885         (alpha_linux_collect_fpregset): New function.
886         (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
887
888 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
889
890         * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
891         by call to regcache_collect_regset.
892         (supply_gregset, supply_fpregset): Call regcache_supply_regset
893         instead of aarch64_linux_supply_gregset/_fpregset.
894         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
895         (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
896         header file instead.
897         (aarch64_linux_supply_gregset, supply_gregset_from_core)
898         (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
899         functions.  Move logic to ...
900         (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
901         register maps.
902         (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
903         refer to new register maps, replace *_regset_from_core by
904         regcache_supply_regset, and also use regcache_collect_regset.
905         * aarch64-linux-tdep.h: Include "regset.h".
906         (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
907         Delete prototypes.
908         (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
909         macros, moved from C source file.
910         (aarch64_linux_gregset, aarch64_linux_fpregset): New global
911         variable declarations.
912
913 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
914
915         * s390-linux-nat.c: Include "regset.h".
916         (regmap_gregset): Delete macro.
917         (s390_64_regmap_gregset): New register map for
918         regcache_supply/_collect_regset.
919         (s390_64_gregset): New regset.
920         (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
921         (regmap_fpregset): Delete macro.
922         (s390_native_supply, s390_native_collect): Delete functions.
923         (supply_gregset, fill_gregset): Replace s390-specific regmap
924         handling by a call to regcache_supply/_collect_regset.
925         (supply_fpregset, fill_fpregset): Call regcache_supply/
926         _collect_regset instead of s390_native_supply/_collect.
927         (fetch_regset, store_regset): Likewise.  Also change the last
928         parameter to a regset instead of a regmap.
929         (s390_linux_fetch_inferior_registers)
930         (390_linux_store_inferior_registers): Adjust last parameter in
931         calls to fetch_regset and store_regset.
932         * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
933         (s390_gregmap): ... this.  Also make static const and convert to
934         regcache_map_entry format.
935         (s390x_regmap_gregset): Delete.
936         (s390_regmap_fpregset): Rename to...
937         (s390_fpregmap): ... this.  Make static const and convert to
938         regcache_map_entry format.
939         (s390_regmap_upper, s390_regmap_last_break)
940         (s390x_regmap_last_break, s390_regmap_system_call)
941         (s390_regmap_tdb): Likewise.
942         (s390_supply_regset, s390_collect_regset): Remove functions.
943         (s390_supply_tdb_regset): Call regcache_supply_regset instead of
944         s390_supply_regset.
945         (s390_gregset, s390_fpregset, s390_upper_regset)
946         (s390_last_break_regset, s390x_last_break_regset)
947         (s390_system_call_regset, s390_tdb_regset): Make global and
948         replace s390_supply/_collect_regset by regcache_supply/
949         _collect_regset.
950         (s390x_gregset): Delete.
951         (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
952         * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
953         (s390_regmap_fpregset, s390_regmap_last_break)
954         (s390x_regmap_last_break, s390_regmap_system_call)
955         (s390_regmap_tdb): Delete global variable declarations.
956         (s390_gregset, s390_fpregset, s390_last_break_regset)
957         (s390x_last_break_regset, s390_system_call_regset)
958         (s390_tdb_regset): New global variable declarations.
959
960 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
961
962         * regcache.c: Include "regset.h".
963         (regcache_transfer_regset): New local function.
964         (regcache_supply_regset, regcache_collect_regset): New functions.
965         * regcache.h (struct regcache_map_entry): New structure.
966         (REGCACHE_MAP_SKIP): New enum value.
967         (regcache_supply_regset, regcache_collect_regset): New prototypes.
968
969 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
970
971         * regset.h (struct regset): Rename 'descr' field to 'regmap'.
972         * ppc-linux-tdep.c (ppc_linux_supply_gregset)
973         (ppc_linux_collect_gregset ): Likewise.
974         * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
975         (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
976         (ppc_collect_vrregset): Likewise.
977         * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
978         Likewise.
979
980 2014-08-07  Yao Qi  <yao@codesourcery.com>
981
982         * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
983         * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
984         * remote.c (remote_read_bytes): Likewise.
985
986 2014-08-07  Yao Qi  <yao@codesourcery.com>
987
988         * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
989
990 2014-08-07  Yao Qi  <yao@codesourcery.com>
991
992         PR remote/17230
993         * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
994         TARGET_XFER_OK instead of 0.
995
996 2014-08-07  Gary Benson  <gbenson@redhat.com>
997
998         * common/common-defs.h: Include errno.h.
999         * defs.h: Do not include errno.h.
1000         * ada-typeprint.c: Likewise.
1001         * c-typeprint.c: Likewise.
1002         * core-regset.c: Likewise.
1003         * corefile.c: Likewise.
1004         * corelow.c: Likewise.
1005         * event-loop.c: Likewise.
1006         * f-typeprint.c: Likewise.
1007         * gnu-nat.c: Likewise.
1008         * go32-nat.c: Likewise.
1009         * i386gnu-nat.c: Likewise.
1010         * m2-typeprint.c: Likewise.
1011         * nat/linux-btrace.c: Likewise.
1012         * p-typeprint.c: Likewise.
1013         * procfs.c: Likewise.
1014         * remote-sim.c: Likewise.
1015         * rs6000-nat.c: Likewise.
1016         * target.c: Likewise.
1017         * typeprint.c: Likewise.
1018         * ui-file.c: Likewise.
1019         * valops.c: Likewise.
1020         * valprint.c: Likewise.
1021
1022 2014-08-07  Gary Benson  <gbenson@redhat.com>
1023
1024         * common/common-defs.h: Include string.h.
1025         * aarch64-tdep.c: Do not include string.h.
1026         * ada-exp.y: Likewise.
1027         * ada-lang.c: Likewise.
1028         * ada-lex.l: Likewise.
1029         * ada-typeprint.c: Likewise.
1030         * ada-valprint.c: Likewise.
1031         * aix-thread.c: Likewise.
1032         * alpha-linux-tdep.c: Likewise.
1033         * alpha-mdebug-tdep.c: Likewise.
1034         * alpha-nat.c: Likewise.
1035         * alpha-osf1-tdep.c: Likewise.
1036         * alpha-tdep.c: Likewise.
1037         * alphanbsd-tdep.c: Likewise.
1038         * amd64-dicos-tdep.c: Likewise.
1039         * amd64-linux-tdep.c: Likewise.
1040         * amd64-nat.c: Likewise.
1041         * amd64-sol2-tdep.c: Likewise.
1042         * amd64fbsd-tdep.c: Likewise.
1043         * amd64obsd-tdep.c: Likewise.
1044         * arch-utils.c: Likewise.
1045         * arm-linux-nat.c: Likewise.
1046         * arm-linux-tdep.c: Likewise.
1047         * arm-tdep.c: Likewise.
1048         * arm-wince-tdep.c: Likewise.
1049         * armbsd-tdep.c: Likewise.
1050         * armnbsd-nat.c: Likewise.
1051         * armnbsd-tdep.c: Likewise.
1052         * armobsd-tdep.c: Likewise.
1053         * avr-tdep.c: Likewise.
1054         * ax-gdb.c: Likewise.
1055         * ax-general.c: Likewise.
1056         * bcache.c: Likewise.
1057         * bfin-tdep.c: Likewise.
1058         * breakpoint.c: Likewise.
1059         * build-id.c: Likewise.
1060         * buildsym.c: Likewise.
1061         * c-exp.y: Likewise.
1062         * c-lang.c: Likewise.
1063         * c-typeprint.c: Likewise.
1064         * c-valprint.c: Likewise.
1065         * charset.c: Likewise.
1066         * cli-out.c: Likewise.
1067         * cli/cli-cmds.c: Likewise.
1068         * cli/cli-decode.c: Likewise.
1069         * cli/cli-dump.c: Likewise.
1070         * cli/cli-interp.c: Likewise.
1071         * cli/cli-logging.c: Likewise.
1072         * cli/cli-script.c: Likewise.
1073         * cli/cli-setshow.c: Likewise.
1074         * cli/cli-utils.c: Likewise.
1075         * coffread.c: Likewise.
1076         * common/agent.c: Likewise.
1077         * common/buffer.c: Likewise.
1078         * common/buffer.h: Likewise.
1079         * common/common-utils.c: Likewise.
1080         * common/filestuff.c: Likewise.
1081         * common/filestuff.c: Likewise.
1082         * common/format.c: Likewise.
1083         * common/print-utils.c: Likewise.
1084         * common/rsp-low.c: Likewise.
1085         * common/signals.c: Likewise.
1086         * common/vec.h: Likewise.
1087         * common/xml-utils.c: Likewise.
1088         * core-regset.c: Likewise.
1089         * corefile.c: Likewise.
1090         * corelow.c: Likewise.
1091         * cp-abi.c: Likewise.
1092         * cp-name-parser.y: Likewise.
1093         * cp-support.c: Likewise.
1094         * cp-valprint.c: Likewise.
1095         * cris-tdep.c: Likewise.
1096         * d-exp.y: Likewise.
1097         * darwin-nat.c: Likewise.
1098         * dbxread.c: Likewise.
1099         * dcache.c: Likewise.
1100         * demangle.c: Likewise.
1101         * dicos-tdep.c: Likewise.
1102         * disasm.c: Likewise.
1103         * doublest.c: Likewise.
1104         * dsrec.c: Likewise.
1105         * dummy-frame.c: Likewise.
1106         * dwarf2-frame.c: Likewise.
1107         * dwarf2loc.c: Likewise.
1108         * dwarf2read.c: Likewise.
1109         * elfread.c: Likewise.
1110         * environ.c: Likewise.
1111         * eval.c: Likewise.
1112         * event-loop.c: Likewise.
1113         * exceptions.c: Likewise.
1114         * exec.c: Likewise.
1115         * expprint.c: Likewise.
1116         * f-exp.y: Likewise.
1117         * f-lang.c: Likewise.
1118         * f-typeprint.c: Likewise.
1119         * f-valprint.c: Likewise.
1120         * fbsd-nat.c: Likewise.
1121         * findcmd.c: Likewise.
1122         * findvar.c: Likewise.
1123         * fork-child.c: Likewise.
1124         * frame.c: Likewise.
1125         * frv-linux-tdep.c: Likewise.
1126         * frv-tdep.c: Likewise.
1127         * gdb.c: Likewise.
1128         * gdb_bfd.c: Likewise.
1129         * gdbarch.c: Likewise.
1130         * gdbarch.sh: Likewise.
1131         * gdbtypes.c: Likewise.
1132         * gnu-nat.c: Likewise.
1133         * gnu-v2-abi.c: Likewise.
1134         * gnu-v3-abi.c: Likewise.
1135         * go-exp.y: Likewise.
1136         * go-lang.c: Likewise.
1137         * go32-nat.c: Likewise.
1138         * guile/guile.c: Likewise.
1139         * guile/scm-auto-load.c: Likewise.
1140         * hppa-hpux-tdep.c: Likewise.
1141         * hppa-linux-nat.c: Likewise.
1142         * hppanbsd-tdep.c: Likewise.
1143         * hppaobsd-tdep.c: Likewise.
1144         * i386-cygwin-tdep.c: Likewise.
1145         * i386-dicos-tdep.c: Likewise.
1146         * i386-linux-tdep.c: Likewise.
1147         * i386-nto-tdep.c: Likewise.
1148         * i386-sol2-tdep.c: Likewise.
1149         * i386-tdep.c: Likewise.
1150         * i386bsd-tdep.c: Likewise.
1151         * i386gnu-nat.c: Likewise.
1152         * i386nbsd-tdep.c: Likewise.
1153         * i386obsd-tdep.c: Likewise.
1154         * i387-tdep.c: Likewise.
1155         * ia64-libunwind-tdep.c: Likewise.
1156         * ia64-linux-nat.c: Likewise.
1157         * inf-child.c: Likewise.
1158         * inf-ptrace.c: Likewise.
1159         * inf-ttrace.c: Likewise.
1160         * infcall.c: Likewise.
1161         * infcmd.c: Likewise.
1162         * inflow.c: Likewise.
1163         * infrun.c: Likewise.
1164         * interps.c: Likewise.
1165         * iq2000-tdep.c: Likewise.
1166         * irix5-nat.c: Likewise.
1167         * jv-exp.y: Likewise.
1168         * jv-lang.c: Likewise.
1169         * jv-typeprint.c: Likewise.
1170         * jv-valprint.c: Likewise.
1171         * language.c: Likewise.
1172         * linux-fork.c: Likewise.
1173         * linux-nat.c: Likewise.
1174         * lm32-tdep.c: Likewise.
1175         * m2-exp.y: Likewise.
1176         * m2-typeprint.c: Likewise.
1177         * m32c-tdep.c: Likewise.
1178         * m32r-linux-nat.c: Likewise.
1179         * m32r-linux-tdep.c: Likewise.
1180         * m32r-rom.c: Likewise.
1181         * m32r-tdep.c: Likewise.
1182         * m68hc11-tdep.c: Likewise.
1183         * m68k-tdep.c: Likewise.
1184         * m68kbsd-tdep.c: Likewise.
1185         * m68klinux-nat.c: Likewise.
1186         * m68klinux-tdep.c: Likewise.
1187         * m88k-tdep.c: Likewise.
1188         * machoread.c: Likewise.
1189         * macrocmd.c: Likewise.
1190         * main.c: Likewise.
1191         * mdebugread.c: Likewise.
1192         * mem-break.c: Likewise.
1193         * memattr.c: Likewise.
1194         * memory-map.c: Likewise.
1195         * mep-tdep.c: Likewise.
1196         * mi/mi-cmd-break.c: Likewise.
1197         * mi/mi-cmd-disas.c: Likewise.
1198         * mi/mi-cmd-env.c: Likewise.
1199         * mi/mi-cmd-stack.c: Likewise.
1200         * mi/mi-cmd-var.c: Likewise.
1201         * mi/mi-cmds.c: Likewise.
1202         * mi/mi-console.c: Likewise.
1203         * mi/mi-getopt.c: Likewise.
1204         * mi/mi-interp.c: Likewise.
1205         * mi/mi-main.c: Likewise.
1206         * mi/mi-parse.c: Likewise.
1207         * microblaze-rom.c: Likewise.
1208         * microblaze-tdep.c: Likewise.
1209         * mingw-hdep.c: Likewise.
1210         * minidebug.c: Likewise.
1211         * minsyms.c: Likewise.
1212         * mips-irix-tdep.c: Likewise.
1213         * mips-linux-tdep.c: Likewise.
1214         * mips-tdep.c: Likewise.
1215         * mips64obsd-tdep.c: Likewise.
1216         * mipsnbsd-tdep.c: Likewise.
1217         * mipsread.c: Likewise.
1218         * mn10300-linux-tdep.c: Likewise.
1219         * mn10300-tdep.c: Likewise.
1220         * monitor.c: Likewise.
1221         * moxie-tdep.c: Likewise.
1222         * mt-tdep.c: Likewise.
1223         * nat/linux-btrace.c: Likewise.
1224         * nat/linux-osdata.c: Likewise.
1225         * nat/linux-procfs.c: Likewise.
1226         * nat/linux-ptrace.c: Likewise.
1227         * nat/linux-waitpid.c: Likewise.
1228         * nbsd-tdep.c: Likewise.
1229         * nios2-linux-tdep.c: Likewise.
1230         * nto-procfs.c: Likewise.
1231         * nto-tdep.c: Likewise.
1232         * objc-lang.c: Likewise.
1233         * objfiles.c: Likewise.
1234         * opencl-lang.c: Likewise.
1235         * osabi.c: Likewise.
1236         * osdata.c: Likewise.
1237         * p-exp.y: Likewise.
1238         * p-lang.c: Likewise.
1239         * p-typeprint.c: Likewise.
1240         * parse.c: Likewise.
1241         * posix-hdep.c: Likewise.
1242         * ppc-linux-nat.c: Likewise.
1243         * ppc-sysv-tdep.c: Likewise.
1244         * ppcfbsd-tdep.c: Likewise.
1245         * ppcnbsd-tdep.c: Likewise.
1246         * ppcobsd-tdep.c: Likewise.
1247         * printcmd.c: Likewise.
1248         * procfs.c: Likewise.
1249         * prologue-value.c: Likewise.
1250         * python/py-auto-load.c: Likewise.
1251         * python/py-gdb-readline.c: Likewise.
1252         * ravenscar-thread.c: Likewise.
1253         * regcache.c: Likewise.
1254         * registry.c: Likewise.
1255         * remote-fileio.c: Likewise.
1256         * remote-m32r-sdi.c: Likewise.
1257         * remote-mips.c: Likewise.
1258         * remote-notif.c: Likewise.
1259         * remote-sim.c: Likewise.
1260         * remote.c: Likewise.
1261         * reverse.c: Likewise.
1262         * rs6000-aix-tdep.c: Likewise.
1263         * ser-base.c: Likewise.
1264         * ser-go32.c: Likewise.
1265         * ser-mingw.c: Likewise.
1266         * ser-pipe.c: Likewise.
1267         * ser-tcp.c: Likewise.
1268         * ser-unix.c: Likewise.
1269         * serial.c: Likewise.
1270         * sh-tdep.c: Likewise.
1271         * sh64-tdep.c: Likewise.
1272         * shnbsd-tdep.c: Likewise.
1273         * skip.c: Likewise.
1274         * sol-thread.c: Likewise.
1275         * solib-dsbt.c: Likewise.
1276         * solib-frv.c: Likewise.
1277         * solib-osf.c: Likewise.
1278         * solib-som.c: Likewise.
1279         * solib-spu.c: Likewise.
1280         * solib-target.c: Likewise.
1281         * solib.c: Likewise.
1282         * somread.c: Likewise.
1283         * source.c: Likewise.
1284         * sparc-nat.c: Likewise.
1285         * sparc-sol2-tdep.c: Likewise.
1286         * sparc-tdep.c: Likewise.
1287         * sparc64-tdep.c: Likewise.
1288         * sparc64fbsd-tdep.c: Likewise.
1289         * sparc64nbsd-tdep.c: Likewise.
1290         * sparcnbsd-tdep.c: Likewise.
1291         * spu-linux-nat.c: Likewise.
1292         * spu-multiarch.c: Likewise.
1293         * spu-tdep.c: Likewise.
1294         * stabsread.c: Likewise.
1295         * stack.c: Likewise.
1296         * std-regs.c: Likewise.
1297         * symfile.c: Likewise.
1298         * symmisc.c: Likewise.
1299         * symtab.c: Likewise.
1300         * target.c: Likewise.
1301         * thread.c: Likewise.
1302         * tilegx-linux-nat.c: Likewise.
1303         * tilegx-tdep.c: Likewise.
1304         * top.c: Likewise.
1305         * tracepoint.c: Likewise.
1306         * tui/tui-command.c: Likewise.
1307         * tui/tui-data.c: Likewise.
1308         * tui/tui-disasm.c: Likewise.
1309         * tui/tui-file.c: Likewise.
1310         * tui/tui-layout.c: Likewise.
1311         * tui/tui-out.c: Likewise.
1312         * tui/tui-regs.c: Likewise.
1313         * tui/tui-source.c: Likewise.
1314         * tui/tui-stack.c: Likewise.
1315         * tui/tui-win.c: Likewise.
1316         * tui/tui-windata.c: Likewise.
1317         * tui/tui-winsource.c: Likewise.
1318         * typeprint.c: Likewise.
1319         * ui-file.c: Likewise.
1320         * ui-out.c: Likewise.
1321         * user-regs.c: Likewise.
1322         * utils.c: Likewise.
1323         * v850-tdep.c: Likewise.
1324         * valarith.c: Likewise.
1325         * valops.c: Likewise.
1326         * valprint.c: Likewise.
1327         * value.c: Likewise.
1328         * varobj.c: Likewise.
1329         * vax-tdep.c: Likewise.
1330         * vaxnbsd-tdep.c: Likewise.
1331         * vaxobsd-tdep.c: Likewise.
1332         * windows-nat.c: Likewise.
1333         * xcoffread.c: Likewise.
1334         * xml-support.c: Likewise.
1335         * xstormy16-tdep.c: Likewise.
1336         * xtensa-linux-nat.c: Likewise.
1337
1338 2014-08-07  Gary Benson  <gbenson@redhat.com>
1339
1340         * common/common-defs.h: Include gdb_assert.h.
1341         * aarch64-tdep.c: Do not include gdb_assert.h.
1342         * addrmap.c: Likewise.
1343         * aix-thread.c: Likewise.
1344         * alpha-linux-tdep.c: Likewise.
1345         * alpha-mdebug-tdep.c: Likewise.
1346         * alphanbsd-tdep.c: Likewise.
1347         * amd64-nat.c: Likewise.
1348         * amd64-tdep.c: Likewise.
1349         * amd64bsd-nat.c: Likewise.
1350         * amd64fbsd-nat.c: Likewise.
1351         * amd64fbsd-tdep.c: Likewise.
1352         * amd64nbsd-nat.c: Likewise.
1353         * amd64nbsd-tdep.c: Likewise.
1354         * amd64obsd-nat.c: Likewise.
1355         * amd64obsd-tdep.c: Likewise.
1356         * arch-utils.c: Likewise.
1357         * arm-tdep.c: Likewise.
1358         * armbsd-tdep.c: Likewise.
1359         * auxv.c: Likewise.
1360         * bcache.c: Likewise.
1361         * bfin-tdep.c: Likewise.
1362         * blockframe.c: Likewise.
1363         * breakpoint.c: Likewise.
1364         * bsd-kvm.c: Likewise.
1365         * bsd-uthread.c: Likewise.
1366         * buildsym.c: Likewise.
1367         * c-exp.y: Likewise.
1368         * c-lang.c: Likewise.
1369         * charset.c: Likewise.
1370         * cleanups.c: Likewise.
1371         * cli-out.c: Likewise.
1372         * cli/cli-decode.c: Likewise.
1373         * cli/cli-dump.c: Likewise.
1374         * cli/cli-logging.c: Likewise.
1375         * cli/cli-script.c: Likewise.
1376         * cli/cli-utils.c: Likewise.
1377         * coffread.c: Likewise.
1378         * common/common-utils.c: Likewise.
1379         * common/queue.h: Likewise.
1380         * common/signals.c: Likewise.
1381         * common/vec.h: Likewise.
1382         * complaints.c: Likewise.
1383         * completer.c: Likewise.
1384         * corelow.c: Likewise.
1385         * cp-abi.c: Likewise.
1386         * cp-name-parser.y: Likewise.
1387         * cp-namespace.c: Likewise.
1388         * cp-support.c: Likewise.
1389         * cris-tdep.c: Likewise.
1390         * dbxread.c: Likewise.
1391         * dictionary.c: Likewise.
1392         * doublest.c: Likewise.
1393         * dsrec.c: Likewise.
1394         * dummy-frame.c: Likewise.
1395         * dwarf2-frame-tailcall.c: Likewise.
1396         * dwarf2-frame.c: Likewise.
1397         * dwarf2expr.c: Likewise.
1398         * dwarf2loc.c: Likewise.
1399         * dwarf2read.c: Likewise.
1400         * eval.c: Likewise.
1401         * event-loop.c: Likewise.
1402         * exceptions.c: Likewise.
1403         * expprint.c: Likewise.
1404         * f-valprint.c: Likewise.
1405         * fbsd-nat.c: Likewise.
1406         * findvar.c: Likewise.
1407         * frame-unwind.c: Likewise.
1408         * frame.c: Likewise.
1409         * frv-tdep.c: Likewise.
1410         * gcore.c: Likewise.
1411         * gdb-dlfcn.c: Likewise.
1412         * gdb_bfd.c: Likewise.
1413         * gdbarch.c: Likewise.
1414         * gdbarch.sh: Likewise.
1415         * gdbtypes.c: Likewise.
1416         * gnu-nat.c: Likewise.
1417         * gnu-v3-abi.c: Likewise.
1418         * go-lang.c: Likewise.
1419         * guile/scm-exception.c: Likewise.
1420         * guile/scm-gsmob.c: Likewise.
1421         * guile/scm-lazy-string.c: Likewise.
1422         * guile/scm-math.c: Likewise.
1423         * guile/scm-pretty-print.c: Likewise.
1424         * guile/scm-safe-call.c: Likewise.
1425         * guile/scm-utils.c: Likewise.
1426         * guile/scm-value.c: Likewise.
1427         * h8300-tdep.c: Likewise.
1428         * hppa-hpux-nat.c: Likewise.
1429         * hppa-tdep.c: Likewise.
1430         * hppanbsd-tdep.c: Likewise.
1431         * hppaobsd-tdep.c: Likewise.
1432         * i386-darwin-nat.c: Likewise.
1433         * i386-darwin-tdep.c: Likewise.
1434         * i386-nto-tdep.c: Likewise.
1435         * i386-tdep.c: Likewise.
1436         * i386bsd-nat.c: Likewise.
1437         * i386fbsd-tdep.c: Likewise.
1438         * i386gnu-nat.c: Likewise.
1439         * i386nbsd-tdep.c: Likewise.
1440         * i386obsd-tdep.c: Likewise.
1441         * i387-tdep.c: Likewise.
1442         * ia64-libunwind-tdep.c: Likewise.
1443         * ia64-tdep.c: Likewise.
1444         * inf-ptrace.c: Likewise.
1445         * inf-ttrace.c: Likewise.
1446         * infcall.c: Likewise.
1447         * infcmd.c: Likewise.
1448         * infrun.c: Likewise.
1449         * inline-frame.c: Likewise.
1450         * interps.c: Likewise.
1451         * jv-lang.c: Likewise.
1452         * jv-typeprint.c: Likewise.
1453         * linux-fork.c: Likewise.
1454         * linux-nat.c: Likewise.
1455         * linux-thread-db.c: Likewise.
1456         * m32c-tdep.c: Likewise.
1457         * m32r-linux-nat.c: Likewise.
1458         * m32r-tdep.c: Likewise.
1459         * m68k-tdep.c: Likewise.
1460         * m68kbsd-nat.c: Likewise.
1461         * m68kbsd-tdep.c: Likewise.
1462         * m88k-tdep.c: Likewise.
1463         * machoread.c: Likewise.
1464         * macroexp.c: Likewise.
1465         * macrotab.c: Likewise.
1466         * maint.c: Likewise.
1467         * mdebugread.c: Likewise.
1468         * memory-map.c: Likewise.
1469         * mep-tdep.c: Likewise.
1470         * mi/mi-common.c: Likewise.
1471         * microblaze-tdep.c: Likewise.
1472         * mingw-hdep.c: Likewise.
1473         * mips-linux-nat.c: Likewise.
1474         * mips-linux-tdep.c: Likewise.
1475         * mips-tdep.c: Likewise.
1476         * mips64obsd-tdep.c: Likewise.
1477         * mipsnbsd-tdep.c: Likewise.
1478         * mn10300-linux-tdep.c: Likewise.
1479         * mn10300-tdep.c: Likewise.
1480         * moxie-tdep.c: Likewise.
1481         * mt-tdep.c: Likewise.
1482         * nat/linux-btrace.c: Likewise.
1483         * nat/linux-osdata.c: Likewise.
1484         * nat/linux-ptrace.c: Likewise.
1485         * nat/mips-linux-watch.c: Likewise.
1486         * nios2-linux-tdep.c: Likewise.
1487         * nios2-tdep.c: Likewise.
1488         * objc-lang.c: Likewise.
1489         * objfiles.c: Likewise.
1490         * obsd-nat.c: Likewise.
1491         * opencl-lang.c: Likewise.
1492         * osabi.c: Likewise.
1493         * parse.c: Likewise.
1494         * ppc-linux-nat.c: Likewise.
1495         * ppc-sysv-tdep.c: Likewise.
1496         * ppcfbsd-nat.c: Likewise.
1497         * ppcfbsd-tdep.c: Likewise.
1498         * ppcnbsd-nat.c: Likewise.
1499         * ppcnbsd-tdep.c: Likewise.
1500         * ppcobsd-nat.c: Likewise.
1501         * ppcobsd-tdep.c: Likewise.
1502         * printcmd.c: Likewise.
1503         * procfs.c: Likewise.
1504         * prologue-value.c: Likewise.
1505         * psymtab.c: Likewise.
1506         * python/py-lazy-string.c: Likewise.
1507         * python/py-value.c: Likewise.
1508         * regcache.c: Likewise.
1509         * reggroups.c: Likewise.
1510         * registry.c: Likewise.
1511         * remote-sim.c: Likewise.
1512         * remote.c: Likewise.
1513         * rs6000-aix-tdep.c: Likewise.
1514         * rs6000-tdep.c: Likewise.
1515         * s390-linux-tdep.c: Likewise.
1516         * score-tdep.c: Likewise.
1517         * ser-base.c: Likewise.
1518         * ser-mingw.c: Likewise.
1519         * sh-tdep.c: Likewise.
1520         * sh64-tdep.c: Likewise.
1521         * solib-darwin.c: Likewise.
1522         * solib-spu.c: Likewise.
1523         * solib-svr4.c: Likewise.
1524         * source.c: Likewise.
1525         * sparc-nat.c: Likewise.
1526         * sparc-sol2-tdep.c: Likewise.
1527         * sparc-tdep.c: Likewise.
1528         * sparc64-sol2-tdep.c: Likewise.
1529         * sparc64-tdep.c: Likewise.
1530         * sparc64fbsd-tdep.c: Likewise.
1531         * sparc64nbsd-tdep.c: Likewise.
1532         * sparc64obsd-tdep.c: Likewise.
1533         * sparcnbsd-tdep.c: Likewise.
1534         * sparcobsd-tdep.c: Likewise.
1535         * spu-multiarch.c: Likewise.
1536         * spu-tdep.c: Likewise.
1537         * stabsread.c: Likewise.
1538         * stack.c: Likewise.
1539         * symfile.c: Likewise.
1540         * symtab.c: Likewise.
1541         * target-descriptions.c: Likewise.
1542         * target-memory.c: Likewise.
1543         * target.c: Likewise.
1544         * tic6x-linux-tdep.c: Likewise.
1545         * tic6x-tdep.c: Likewise.
1546         * tilegx-linux-nat.c: Likewise.
1547         * tilegx-tdep.c: Likewise.
1548         * top.c: Likewise.
1549         * tramp-frame.c: Likewise.
1550         * tui/tui-out.c: Likewise.
1551         * tui/tui-winsource.c: Likewise.
1552         * ui-out.c: Likewise.
1553         * user-regs.c: Likewise.
1554         * utils.c: Likewise.
1555         * v850-tdep.c: Likewise.
1556         * valops.c: Likewise.
1557         * value.c: Likewise.
1558         * varobj.c: Likewise.
1559         * vax-nat.c: Likewise.
1560         * xml-syscall.c: Likewise.
1561         * xml-tdesc.c: Likewise.
1562         * xstormy16-tdep.c: Likewise.
1563         * xtensa-linux-nat.c: Likewise.
1564         * xtensa-tdep.c: Likewise.
1565
1566 2014-08-07  Gary Benson  <gbenson@redhat.com>
1567
1568         * common/common-defs.h: Include common-utils.h.
1569         * defs.h: Do not include common-utils.h.
1570         * common/gdb_assert.h: Likewise.
1571         * darwin-nat.h: Likewise.
1572         * nat/linux-btrace.c: Likewise.
1573         * target/waitstatus.h: Likewise.
1574
1575 2014-08-07  Gary Benson  <gbenson@redhat.com>
1576
1577         * common/common-defs.h: Include ptid.h.
1578         * defs.h: Do not include ptid.h.
1579         * inferior.h: Likewise.
1580         * infrun.h: Likewise.
1581         * nat/linux-btrace.h: Likewise.
1582         * nat/linux-osdata.h: Likewise.
1583         * target/waitstatus.h: Likewise.
1584
1585 2014-08-07  Gary Benson  <gbenson@redhat.com>
1586
1587         * common/common-defs.h: Include gdb_locale.h.
1588         * defs.h: Do not include gdb_locale.h.
1589
1590 2014-08-07  Gary Benson  <gbenson@redhat.com>
1591
1592         * common/common-defs.h: Include gdb/signals.h.
1593         * defs.h: Do not include gdb/signals.h.
1594
1595 2014-08-07  Gary Benson  <gbenson@redhat.com>
1596
1597         * common/common-defs.h: Include pathmax.h.
1598         * defs.h: Do not include pathmax.h.
1599
1600 2014-08-07  Gary Benson  <gbenson@redhat.com>
1601
1602         * common/common-defs.h: Include libiberty.h.
1603         * defs.h: Do not include libiberty.h.
1604         * common/queue.h: Likewise.
1605         * cp-name-parser.y: Likewise.
1606         * mi/mi-cmd-catch.c: Likewise.
1607         * python/python.c: Likewise.
1608
1609 2014-08-07  Gary Benson  <gbenson@redhat.com>
1610
1611         * common/common-defs.h: Include ansidecl.h.
1612         * defs.h: Do not include ansidecl.h.
1613         * common/buffer.h: Likewise.
1614         * common/common-utils.h: Likewise.
1615
1616 2014-08-07  Gary Benson  <gbenson@redhat.com>
1617
1618         * common/common-defs.h: Include stddef.h.
1619         * defs.h: Do not include stddef.h.
1620         * common/common-utils.h: Likewise.
1621         * amd64fbsd-nat.c: Likewise.
1622         * bcache.c: Likewise.
1623         * charset.c: Likewise.
1624         * common/buffer.h: Likewise.
1625         * common/vec.h: Likewise.
1626         * i386bsd-nat.c: Likewise.
1627         * nat/linux-btrace.h: Likewise.
1628         * ppcfbsd-nat.c: Likewise.
1629         * ppcnbsd-tdep.h: Likewise.
1630         * ppcobsd-nat.c: Likewise.
1631         * ppcobsd-tdep.h: Likewise.
1632         * python/py-gdb-readline.c: Likewise.
1633
1634 2014-08-07  Gary Benson  <gbenson@redhat.com>
1635
1636         * common/common-defs.h: Include stdarg.h.
1637         * defs.h: Do not include stdarg.h.
1638         * ada-lang.c: Likewise.
1639         * common/common-utils.h: Likewise.
1640         * guile/scm-string.c: Likewise.
1641         * guile/scm-utils.c: Likewise.
1642         * m32c-tdep.c: Likewise.
1643
1644 2014-08-07  Gary Benson  <gbenson@redhat.com>
1645
1646         * common/common-defs.h: Include stdlib.h.
1647         * defs.h: Do not include stdlib.h.
1648         * addrmap.c: Likewise.
1649         * bcache.c: Likewise.
1650         * common/buffer.c: Likewise.
1651         * common/common-utils.c: Likewise.
1652         * cp-name-parser.y: Likewise.
1653         * go32-nat.c: Likewise.
1654         * mn10300-linux-tdep.c: Likewise.
1655         * nat/linux-osdata.c: Likewise.
1656         * tui/tui.c: Likewise.
1657         * windows-nat.c: Likewise.
1658
1659 2014-08-07  Gary Benson  <gbenson@redhat.com>
1660
1661         * common/common-defs.h: Include stdio.h.
1662         * defs.h: Do not include stdio.h.
1663         * ada-lang.c: Likewise.
1664         * common/buffer.c: Likewise.
1665         * common/common-utils.c: Likewise.
1666         * cp-name-parser.y: Likewise.
1667         * gnu-nat.c: Likewise.
1668         * go32-nat.c: Likewise.
1669         * i386gnu-nat.c: Likewise.
1670         * proc-api.c: Likewise.
1671         * proc-events.c: Likewise.
1672         * proc-flags.c: Likewise.
1673         * proc-why.c: Likewise.
1674         * python/python-internal.h: Likewise.
1675         * target-memory.c: Likewise.
1676         * tui/tui-io.c: Likewise.
1677         * tui/tui.c: Likewise.
1678
1679 2014-08-06  Simon Marchi  <simon.marchi@ericsson.com>
1680
1681         * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1682         (scan_dyntag_auxv): Same.
1683
1684 2014-08-06  Yao Qi  <yao@codesourcery.com>
1685
1686         * amd64-linux-nat.c: Remove duplicated include
1687         "x86-linux-nat.h".
1688         * i386-linux-nat.c: Likewise.
1689
1690 2014-08-06  Yao Qi  <yao@codesourcery.com>
1691
1692         * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1693         operand" with "Special opcode" in comments.
1694
1695 2014-08-05  Gary Benson  <gbenson@redhat.com>
1696
1697         * interps.c (initialize_interps): Remove prototype.
1698         (interpreter_initialized): Remove static global.
1699         (interp_add): Do not call initialize_interps.
1700         (initialize_interps): Remove function.
1701
1702 2014-08-05  Gary Benson  <gbenson@redhat.com>
1703
1704         * utils.c (vwarning): Remove spurious va_end.
1705
1706 2014-08-05  Alan Modra  <amodra@gmail.com>
1707
1708         * charset.c (convert_between_encodings): Cast result of obstack_base.
1709         * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1710         * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1711         (read_unwind_info): Use size_t for some locals.
1712         * jit.c (finalize_symtab): Likewise.
1713         * utils.c (hashtab_obstack_allocate): Likewise.
1714         * symmisc.c (print_objfile_statistics): Update format strings.
1715
1716 2014-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
1717
1718         * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1719         (Changes in GDB 7.8): ... here.
1720
1721 2014-08-04  Tom Tromey  <tromey@redhat.com>
1722
1723         * target.c (set_targetdebug): New function.
1724         (initialize_targets): Pass set_targetdebug when creating "set
1725         debug target".
1726
1727 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
1728
1729         * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1730         if detecting a variable-sized field that is not the last field.
1731         Fix struct type length computation.
1732
1733 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
1734
1735         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1736         Add debug trace.
1737
1738 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
1739
1740         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1741         Remove "+ 8" offset in computation of CHAIN_VMA.
1742
1743 2014-07-31  Doug Evans  <dje@google.com>
1744
1745         * inflow.c (child_terminal_inferior): Add comment.
1746         (child_terminal_ours_for_output): Add comment.
1747         (child_terminal_ours): Add comment.
1748         * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1749         (linux_nat_terminal_ours): Add comment.
1750
1751 2014-07-31  Gary Benson  <gbenson@redhat.com>
1752
1753         * common/btrace-common.h: Do not include defs.h or server.h.
1754         * nat/mips-linux-watch.h: Likewise.
1755         * gdb-dlfcn.h: Do not include defs.h.
1756         * tracefile.h: Likewise.
1757
1758 2014-07-30  Roland McGrath  <mcgrathr@google.com>
1759
1760         * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1761
1762 2014-07-30  Tom Tromey  <tromey@redhat.com>
1763
1764         * bsd-kvm.c (bsd_kvm_open): Constify.
1765         * corelow.c (core_open): Constify.
1766         * ctf.c (ctf_open): Constify.
1767         * dbug-rom.c (dbug_open): Constify.
1768         * exec.c (exec_open): Constify.
1769         * m32r-rom.c (m32r_open, mon2000_open): Constify.
1770         * microblaze-rom.c (picobug_open): Constify.
1771         * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1772         Constify.
1773         * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1774         * record-btrace.c (record_btrace_open): Constify.
1775         * record-full.c (record_full_core_open_1, record_full_open_1)
1776         (record_full_open): Constify.
1777         * remote-m32r-sdi.c (m32r_open): Constify.
1778         * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1779         (rockhopper_open, lsi_open): Constify.
1780         * remote-sim.c (gdbsim_open): Constify.
1781         * remote.c (remote_open, extended_remote_open, remote_open_1):
1782         Constify.
1783         * target.h (struct target_ops) <to_open>: Make "arg" const.
1784         * tracefile-tfile.c (tfile_open): Constify.
1785
1786 2014-07-30  Tom Tromey  <tromey@redhat.com>
1787
1788         * breakpoint.c (map_breakpoint_numbers): Update.
1789         * cli/cli-utils.c (get_number_trailer): Make "pp" const.  Update.
1790         (get_number_const): New function.
1791         (get_number): Rewrite using get_number_const.
1792         (init_number_or_range): Make "string" const.
1793         (number_is_in_list): Make "list" const.
1794         * cli/cli-utils.h (get_number_const): Declare.
1795         (struct get_number_or_range_state) <string, end_ptr>: Now const.
1796         (init_number_or_range, number_is_in_list): Update.
1797         * printcmd.c (map_display_numbers): Update.
1798         * value.c (value_from_history_ref): Constify.
1799         * value.h (value_from_history_ref): Update.
1800
1801 2014-07-30  Tom Tromey  <tromey@redhat.com>
1802
1803         * corefile.c (hook_type, call_extra_exec_file_hooks)
1804         (specify_exec_file_hook): Constify.
1805         * exec.c (exec_file_attach): Make "filename" const.
1806         * gdbcore.h (deprecated_exec_file_display_hook)
1807         (specify_exec_file_hook, exec_file_attach): Constify.
1808         * main.c (captured_main): Use catch_command_errors_const.
1809
1810 2014-07-30  Tom Tromey  <tromey@redhat.com>
1811
1812         * target.c (open_target): New function.
1813         (add_target_with_completer, add_deprecated_target_alias): Use
1814         set_cmd_sfunc, set_cmd_context.
1815         (debug_to_open): Remove.
1816         (setup_target_debug): Update.
1817
1818 2014-07-30  Yao Qi  <yao@codesourcery.com>
1819
1820         * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1821         comments.
1822         * parse.c (exp_iterate): Update comments.
1823
1824 2014-07-30  Gary Benson  <gbenson@redhat.com>
1825
1826         * common/common-defs.h: New file.
1827         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1828         * defs.h: Include common-defs.h.
1829         Do not include config.h or build-gnulib/config.h.
1830
1831 2014-07-30  Gary Benson  <gbenson@redhat.com>
1832
1833         * common/common-utils.h: Do not include config.h.
1834         * nat/linux-btrace.h: Likewise.
1835
1836 2014-07-30  Gary Benson  <gbenson@redhat.com>
1837
1838         * btrace.c: Include defs.h.
1839         * common/ptid.c: Include defs.h or server.h as appropriate.
1840         * nat/mips-linux-watch.c: Likewise.
1841
1842 2014-07-29  Tom Tromey  <tromey@redhat.com>
1843
1844         * target.c (target_is_pushed): Simplify.
1845
1846 2014-07-29  Joel Brobecker  <brobecker@adacore.com>
1847
1848         GDB 7.8 released.
1849
1850 2014-07-29  Yao Qi  <yao@codesourcery.com>
1851
1852         PR gdb/17206
1853         * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1854
1855 2014-07-28  Doug Evans  <xdje42@gmail.com>
1856
1857         PR guile/17203
1858         * guile/scm-param.c (pascm_parameter_defined_p): New function.
1859         (gdbscm_register_parameter_x): Call it.  Raise error for pre-existing
1860         parameters.
1861
1862 2014-07-28  Will Newton  <will.newton@linaro.org>
1863
1864         * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1865         (THUMB2_SET_R7_SIGRETURN2): Likewise.
1866         (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1867         (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1868         (THUMB2_EABI_SYSCALL): Likewise.
1869         (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1870         struct tramp_frame.
1871         (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1872         (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1873
1874 2014-07-27  Doug Evans  <xdje42@gmail.com>
1875
1876         * guile/scm-param.c (pascm_print_param_smob): Fix output.
1877
1878 2014-07-27  Doug Evans  <xdje42@gmail.com>
1879
1880         * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1881
1882 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
1883             Doug Evans  <xdje42@gmail.com>
1884
1885         PR guile/17146
1886         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1887         (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1888         * configure.ac: Try to use guild to compile an scm file, if it fails
1889         then disable guile support.
1890         * configure: Regenerate.
1891         * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1892         GUILE_FILE_LIST.
1893         (GUILE_COMPILED_FILES): New variable.
1894         (GUILE_FILES) Update.
1895         (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1896         (stamp-guile): Compile scm files.
1897         * guile/guile.c (boot_guile_support): New function.
1898         (standard_throw_args_p): New function.
1899         (print_standard_throw_error, print_throw_error): New functions.
1900         (handle_boot_error): New function.
1901         (initialize_scheme_side): Rewrite to call boot_guile_support.
1902         * guile/lib/gdb/boot.scm: Update %load-compiled-path.  Load gdb.go.
1903         * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1904
1905 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
1906             Doug Evans  <xdje42@gmail.com>
1907
1908         PR guile/17146
1909         * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1910         * guile/lib/gdb/support.scm: New file.
1911         * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1912         * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1913         All uses updated.
1914         * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1915         All uses updated.
1916         (%assert-type): Ditto, and renamed to assert-type.
1917         (%exception-print-style): Delete.
1918
1919 2014-07-26  Doug Evans  <xdje42@gmail.com>
1920
1921         PR build/17105
1922         * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1923         * configure: Regenerate.
1924         * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1925         PYTHON_FILES.
1926         (PYTHON_FILES): New variable.
1927         (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1928         (GUILE_FILES): New variable.
1929         (stamp-python, install-python, uninstall-python): Handle empty
1930         file list.
1931         (stamp-guile, install-guile, uninstall-guile): Ditto.
1932
1933 2014-07-26  Doug Evans  <xdje42@gmail.com>
1934
1935         PR guile/17177
1936         * guile/lib/gdb.scm (pretty-printers): Export.
1937         (set-pretty-printers!): Export.
1938         * guile/lib/gdb/printing.scm (gdb module): Update.
1939         (prepend-pretty-printer!, append-pretty-printer!): Update.
1940         * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1941         (pretty_printer_list_var): Delete.
1942         (pretty_printer_list): New static global.
1943         (gdbscm_pretty_printers): New function.
1944         (gdbscm_set_pretty_printers_x): New function.
1945         (ppscm_find_pretty_printer_from_gdb): Update.
1946         (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1947         (gdbscm_initialize_pretty_printers): Update.
1948
1949 2014-07-26  Doug Evans  <xdje42@gmail.com>
1950
1951         PR 17185
1952         * configure.ac: Add check for header gc/gc.h.
1953         Add check for function setenv.
1954         * configure: Regenerate.
1955         * config.in: Regenerate.
1956         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1957
1958 2014-07-25  Maciej W. Rozycki  <macro@codesourcery.com>
1959
1960         * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1961         variation in gdbarch matching.
1962
1963 2014-07-25  Tom Tromey  <tromey@redhat.com>
1964
1965         * exec.c (using_exec_ops): Remove.
1966         (exec_close_1): Update.  Remove extraneous block, reindent.
1967         (add_target_sections): Use target_is_pushed.
1968
1969 2014-07-25  Pedro Alves  <palves@redhat.com>
1970
1971         * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1972         * monitor.c (monitor_create_inferior): Likewise.
1973         * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1974         * remote-sim.c (gdbsim_create_inferior): Likewise.
1975         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1976         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1977         * windows-nat.c (do_initial_windows_stuff): Likewise.
1978
1979 2014-07-25  Pedro Alves  <palves@redhat.com>
1980
1981         * NEWS: Mention signal passing and "signal" command changes.
1982         * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1983         comment.
1984         * breakpoint.c (until_break_command): Adjust clear_proceed_status
1985         call.
1986         * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1987         * infcmd.c (proceed_thread_callback, continue_1, step_once)
1988         (jump_command): Adjust clear_proceed_status call.
1989         (signal_command): Warn if other thread that are resumed have
1990         signals that will be delivered.  Adjust clear_proceed_status call.
1991         (until_next_command, finish_command)
1992         (proceed_after_attach_callback, attach_command_post_wait)
1993         (attach_command): Adjust clear_proceed_status call.
1994         * infrun.c (proceed_after_vfork_done): Likewise.
1995         (proceed_after_attach_callback): Adjust comment.
1996         (clear_proceed_status_thread): Clear stop_signal if not in pass
1997         state.
1998         (clear_proceed_status_callback): Delete.
1999         (clear_proceed_status): New 'step' parameter.  Only clear the
2000         proceed status of threads the command being prepared is about to
2001         resume.
2002         (proceed): If passed in an explicit signal, override stop_signal
2003         with it.  Don't pass the last stop signal to the thread we're
2004         resuming.
2005         (init_wait_for_inferior): Adjust clear_proceed_status call.
2006         (switch_back_to_stepped_thread): Clear the signal if it should not
2007         be passed.
2008         * infrun.h (clear_proceed_status): New 'step' parameter.
2009         (user_visible_resume_ptid): Add comment.
2010         * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2011         signal is in pass state.
2012         * remote.c (append_pending_thread_resumptions): Likewise.
2013         * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2014
2015 2014-07-25  Tom Tromey  <tromey@redhat.com>
2016
2017         * target.h (target_stopped_data_address)
2018         (target_watchpoint_addr_within_range): Use "->", not ".".  Fix
2019         parentheses.
2020
2021 2014-07-25  Pierre Langlois  <pierre.langlois@embecosm.com>
2022
2023         * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2024         comments.
2025         (avr_pointer_to_address): Likewise.
2026
2027 2014-07-24  Tom Tromey  <tromey@redhat.com>
2028
2029         * monitor.c (compile_pattern): Update.
2030         * target.h (struct target_ops) <to_shortname, to_longname,
2031         to_doc>: Now const.
2032
2033 2014-07-24  Tom Tromey  <tromey@redhat.com>
2034
2035         * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2036         (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2037         (add_info_alias, add_com): Make "doc" const.
2038         (print_doc_line): Make "str" const.
2039         (delete_cmd): Update.
2040         * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2041         (print_doc_line): Update.
2042         * cli/cli-script.c (document_command): Update.
2043         * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2044         (add_com, add_info, add_info_alias): Update.
2045         * guile/scm-cmd.c (cmdscm_destroyer): Update.
2046         * python/py-cmd.c (cmdpy_destroyer): Update.
2047
2048 2014-07-24  Tom Tromey  <tromey@redhat.com>
2049
2050         * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2051         (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2052         (help_cmd_list): Constify.
2053         (lookup_cmd): Update.
2054         * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2055         const.
2056         (help_cmd_list, apropos_cmd): Update.
2057         * cli/cli-script.c (show_user): Update.
2058         * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2059         * cli/cli-setshow.h (cmd_show_list): Update.
2060         * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2061         (cmd_show_list): Update.
2062         * guile/scm-cmd.c (cmdscm_destroyer): Update.
2063         * python/py-cmd.c (cmdpy_destroyer): Update.
2064
2065 2014-07-24  Tom Tromey  <tromey@redhat.com>
2066
2067         * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2068         * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2069         const.
2070         * command.h (deprecate_cmd): Update.
2071         * maint.c (maintenance_do_deprecate): Add casts.
2072
2073 2014-07-24  Tom Tromey  <tromey@redhat.com>
2074
2075         * cli/cli-decode.c (help_cmd): Make parameter "const".
2076         * cli/cli-decode.h (help_cmd): Update.
2077
2078 2014-07-24  Tom Tromey  <tromey@redhat.com>
2079
2080         * stack.c (up_silently_base, down_silently_base): Make argument
2081         const.
2082
2083 2014-07-24  Tom Tromey  <tromey@redhat.com>
2084
2085         * solib.c (solib_add): Make "pattern" const.
2086         * solib.h (solib_add): Update.
2087
2088 2014-07-24  Tom Tromey  <tromey@redhat.com>
2089
2090         * remote.c (remote_serial_open, print_packet, putpkt)
2091         (putpkt_binary): Constify.
2092         * remote.h (putpkt): Update.
2093
2094 2014-07-24  Tom Tromey  <tromey@redhat.com>
2095
2096         * monitor.c (monitor_open): Make "args" const.
2097         * monitor.h (monitor_open): Update.
2098
2099 2014-07-24  Tom Tromey  <tromey@redhat.com>
2100
2101         * maint.c (match_bfd_flags): Make "string" const.
2102         (print_bfd_section_info): Remove casts.
2103         (print_objfile_section_info): Make "string" const.
2104
2105 2014-07-24  Tom Tromey  <tromey@redhat.com>
2106
2107         * inf-child.c (inf_child_open_target): Make "arg" const.
2108         * inf-child.h (inf_child_open_target): Update.
2109
2110 2014-07-24  Tom Tromey  <tromey@redhat.com>
2111
2112         * environ.c (unset_in_environ): Make "var" const.
2113         * environ.h (unset_in_environ): Update.
2114
2115 2014-07-24  Tom Tromey  <tromey@redhat.com>
2116
2117         * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2118         Make "cmd" const.
2119         (scan_filename_with_cleanup): Likewise.
2120         (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2121         Make arguments const.
2122         (restore_command): Update.
2123
2124 2014-07-24  Pedro Alves  <palves@redhat.com>
2125
2126         * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2127
2128 2014-07-24  Tom Tromey  <tromey@redhat.com>
2129             Gary Benson  <gbenson@redhat.com>
2130
2131         * nat/linux-ptrace.c (additional_flags): New global.
2132         (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2133         additional_flags; don't check GDBSERVER.
2134         (linux_ptrace_set_additional_flags): New function.
2135         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2136         Declare.
2137         * linux-nat.c (_initialize_linux_nat): Call
2138         linux_ptrace_set_additional_flags.
2139
2140 2014-07-24  Tom Tromey  <tromey@redhat.com>
2141
2142         * make-target-delegates (munge_type, write_debugmethod): New
2143         functions.
2144         (debug_names): New global.
2145         ($TARGET_DEBUG_PRINTER): New global.
2146         (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2147         name.
2148         Write debug methods.  Generate init_debug_target.
2149         * target-debug.h: New file.
2150         * target-delegates.c: Rebuild.
2151         * target.c: Include target-debug.h.
2152         (debug_target): Hoist definition.
2153         (target_kill, target_get_section_table, target_memory_map)
2154         (target_flash_erase, target_flash_done, target_detach)
2155         (target_disconnect, target_wait, target_resume)
2156         (target_pass_signals, target_program_signals, target_follow_fork)
2157         (target_mourn_inferior, target_search_memory)
2158         (target_thread_address_space, target_close)
2159         (target_find_new_threads, target_core_of_thread)
2160         (target_verify_memory, target_insert_mask_watchpoint)
2161         (target_remove_mask_watchpoint): Remove targetdebug code.
2162         (debug_to_post_attach, debug_to_prepare_to_store)
2163         (debug_to_files_info, debug_to_insert_breakpoint)
2164         (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2165         (debug_to_region_ok_for_hw_watchpoint)
2166         (debug_to_can_accel_watchpoint_condition)
2167         (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2168         (debug_to_watchpoint_addr_within_range)
2169         (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2170         (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2171         (debug_to_terminal_init, debug_to_terminal_inferior)
2172         (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2173         (debug_to_terminal_save_ours, debug_to_terminal_info)
2174         (debug_to_load, debug_to_post_startup_inferior)
2175         (debug_to_insert_fork_catchpoint)
2176         (debug_to_remove_fork_catchpoint)
2177         (debug_to_insert_vfork_catchpoint)
2178         (debug_to_remove_vfork_catchpoint)
2179         (debug_to_insert_exec_catchpoint)
2180         (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2181         (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2182         (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2183         (setup_target_debug): Call init_debug_target.
2184         * target.h (TARGET_DEBUG_PRINTER): New macro.
2185         (struct target_ops) <to_resume, to_wait, to_pass_signals,
2186         to_program_signals>: Use TARGET_DEBUG_PRINTER.
2187
2188 2014-07-24  Gary Benson  <gbenson@redhat.com>
2189
2190         * exceptions.h (throw_vfatal): Renamed to...
2191         (throw_vquit): New declaration.
2192         (throw_quit): Likewise.
2193         * exceptions.c (throw_vfatal): Renamed to...
2194         (throw_vquit): New function.
2195         (throw_quit): Likewise.
2196         (throw_error): Call throw_verror rather than throw_it.
2197         * utils.h (vfatal): Removed.
2198         (fatal): Likewise.
2199         * utils.c (vfatal): Removed.
2200         (fatal): Likewise.
2201         (internal_verror): Replaced call to fatal with call to throw_quit.
2202         (quit): Replaced calls to fatal with calls to throw_quit.
2203
2204 2014-07-23  Ajit Agarwal <ajitkum@xilinx.com>
2205
2206         * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2207         target_read_code.
2208
2209 2014-07-23  Chen Gang <gang.chen.5i5j@gmail.com>
2210
2211         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2212         less than zero in conditional expression.
2213
2214 2014-07-23  Tom Tromey  <tromey@redhat.com>
2215
2216         * make-target-delegates ($ARGS_PART): Match trailing close paren.
2217         ($INTRO_PART): Don't match whitespace.
2218         ($METHOD_TRAILER): Move earlier.  Remove trailing semicolon and
2219         argument matching.
2220         ($METHOD): Add $METHOD_TRAILER.
2221         (trim): Rewrite.
2222         (scan_target_h): New sub.
2223         Change main loop not to collect state.
2224         * target-delegates.c: Rebuild.
2225
2226 2014-07-23  Gary Benson  <gbenson@redhat.com>
2227
2228         * cp-support.c (gdb_demangle): Fix build on systems without
2229         sigaltstack.
2230
2231 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
2232
2233         * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2234         for reference entry value target data value.
2235
2236 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
2237
2238         * stack.c (read_frame_arg): Verify value_optimized_out before calling
2239         value_available_contents_eq.
2240
2241 2014-07-22  Pedro Alves  <palves@redhat.com>
2242
2243         * value.c (allocate_optimized_out_value): Don't mark value as
2244         non-lazy.
2245
2246 2014-07-22  Jiong Wang  <jiong.wang@arm.com>
2247
2248         * MAINTAINERS (Write After Approval): Update my email address.
2249
2250 2014-07-20  Doug Evans  <dje@google.com>
2251
2252         PR server/17147
2253         * remote.c (putpkt_binary): Add text to error message.
2254
2255 2014-07-20  Yao Qi  <yao@codesourcery.com>
2256
2257         * eval.c: Remove "Chill" from comments.
2258         * gdbtypes.h: Likewise.
2259         * symtab.h: Likewise.
2260
2261 2014-07-20  Yao Qi  <yao@codesourcery.com>
2262
2263         * std-operator.def: Update comments to TERNOP_SLICE.
2264
2265 2014-07-20  Yao Qi  <yao@codesourcery.com>
2266
2267         * std-operator.def: Remove BINOP_RANGE.
2268         * breakpoint.c (watchpoint_exp_is_const): Update.
2269         * expprint.c (dump_subexp_body_standard): Likewise.
2270         * eval.c (init_array_element): Remove dead code.
2271         (evaluate_subexp_standard): Likewise.
2272
2273 2014-07-20  Yao Qi  <yao@codesourcery.com>
2274
2275         * std-operator.def: Remove BINOP_IN.
2276         * breakpoint.c (watchpoint_exp_is_const): Update.
2277         * eval.c (evaluate_subexp_standard): Likewise.
2278         * expprint.c (dump_subexp_body_standard): Likewise.
2279
2280 2014-07-19  Ajit Agarwal  <ajitkum@xilinx.com>
2281
2282         * microblaze-tdep.c (microblaze_register_names): Add
2283         the rshr and rslr register names.
2284         (microblaze_gdbarch_init): Use of tdesc_has_registers.
2285         Use of tdesc_find_feature. Use of tdesc_data_alloc.
2286         Use of tdesc_numbered_register. Use of
2287         microblaze_register_g_packet_guesses. Use of
2288         tdesc_use_registers. Use of set_gdbarch_register_type.
2289         (microblaze_register_g_packet_guesses): New.
2290         * microblaze-tdep.h (microblaze_reg_num): Add
2291         field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2292         MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2293         (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2294         * features/microblaze-core.xml: New file.
2295         * features/microblaze-stack-protect.xml: New file.
2296         * features/microblaze-with-stack-protect.c: New file.
2297         * features/microblaze-with-stack-protect.xml: New file.
2298         * features/microblaze.xml: New file.
2299         * features/microblaze.c: New file.
2300         * features/Makefile (microblaze-with-stack-protect): Add
2301         microblaze-with-stack-protect microblaze and microblaze-expedite.
2302         * regformats/microblaze-with-stack-protect.dat: New file.
2303         * regformats/microblaze.dat: New file.
2304         * doc/gdb.texinfo (MicroBlaze Features): Added.
2305
2306 2014-07-18  Tom Tromey  <tromey@redhat.com>
2307
2308         * exec.c (exec_ops): Now static.
2309         * exec.h (exec_ops): Don't declare.
2310
2311 2014-07-18  Tom Tromey  <tromey@redhat.com>
2312
2313         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2314         to find_target_beneath.
2315         * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2316         find_target_beneath.
2317         (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2318
2319 2014-07-18  Tom Tromey  <tromey@redhat.com>
2320
2321         PR gdb/17130:
2322         * utils.c (quit): Use target_supports_terminal_ours.
2323         * target.h (target_supports_terminal_ours): Declare.
2324         * target.c (target_supports_delete_record): Don't check
2325         to_delete_record against NULL.
2326         (target_supports_terminal_ours): New function.
2327
2328 2014-07-18  Tom Tromey  <tromey@redhat.com>
2329
2330         PR gdb/17130:
2331         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2332         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2333         (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2334         * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2335         * windows-nat.c (windows_xfer_partial): Always delegate.
2336         * record-btrace.c (record_btrace_xfer_partial): Simplify
2337         delegation.
2338         (record_btrace_fetch_registers, record_btrace_store_registers)
2339         (record_btrace_prepare_to_store, record_btrace_resume)
2340         (record_btrace_wait, record_btrace_find_new_threads)
2341         (record_btrace_thread_alive): Likewise.
2342         * procfs.c (procfs_xfer_partial): Always delegate.
2343         * corelow.c (core_xfer_partial): Always delegate.
2344         * sol-thread.c (sol_find_new_threads): Simplify delegation.
2345
2346 2014-07-18  Tom Tromey  <tromey@redhat.com>
2347
2348         * exec.c (exec_make_note_section): Move earlier.
2349
2350 2014-07-17  Doug Evans  <dje@google.com>
2351
2352         PR gdb/17170
2353         * maint.c (count_symtabs_and_blocks): Handle NULL
2354         current_program_space.
2355         (report_command_stats): Check global enabled flag in addition to
2356         recorded enabled flag.
2357         (make_command_stats_cleanup): Handle msg_type == 0, startup.
2358
2359 2014-07-16  Pedro Alves  <palves@redhat.com>
2360
2361         * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2362
2363 2014-07-16  Tom Tromey  <tromey@redhat.com>
2364
2365         * target.h (struct target_ops) <to_delete_record>: Reformat
2366         comment.
2367
2368 2014-07-16  Tom Tromey  <tromey@redhat.com>
2369
2370         * target-delegates.c: Rebuild.
2371
2372 2014-07-15  Pierre Langlois  <pierre.langlois@embecosm.com>
2373
2374         * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2375         (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2376         (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2377         (avr_pointer_to_address): Likewise.
2378         (avr_address_class_type_flags): New function.
2379         (avr_address_class_type_flags_to_name): Likewise.
2380         (avr_address_class_name_to_type_flags): Likewise.
2381         (avr_gdbarch_init): Set address_class_type_flags,
2382         address_class_type_flags_to_name and
2383         address_class_name_to_type_flags.
2384
2385 2014-07-15  Pedro Alves  <palves@redhat.com>
2386
2387         * linux-nat.c (kill_callback): Save errno and work with saved
2388         copy.
2389
2390 2014-07-15  Simon Marchi  <simon.marchi@ericsson.com>
2391
2392         * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2393
2394 2014-07-14  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
2395
2396         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2397         breakpoint support correctly.
2398
2399 2014-07-14  Pedro Alves  <palves@redhat.com>
2400
2401         * utils.c (prompt_for_continue): Call target_terminal_ours.
2402
2403 2014-07-14  Pedro Alves  <palves@redhat.com>
2404
2405         * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2406         catch_errors.  Don't re-enable stdin or notify observers where,
2407         and rethrow error.
2408         (fetch_inferior_event_wrapper): Delete.
2409
2410 2014-07-14  Pedro Alves  <palves@redhat.com>
2411
2412         PR gdb/17072
2413         * top.c: Include "inf-loop.h".
2414         (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2415         field.
2416         (gdb_readline_wrapper_cleanup): Make the target async again, if it
2417         was async before.
2418         (gdb_readline_wrapper): Store whether the target is async, and
2419         make it sync.
2420
2421 2014-07-14  Pedro Alves  <palves@redhat.com>
2422
2423         PR gdb/17072
2424         * top.c (gdb_readline_wrapper_line): Tweak comment.
2425         (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2426         the input handler callback.
2427
2428 2014-07-14  Pedro Alves  <palves@redhat.com>
2429
2430         PR gdb/17072
2431         * main.c: Include event-top.h.
2432         (handle_command_errors): New function.
2433         (catch_command_errors, catch_command_errors_const): Use it.
2434
2435 2014-07-14  Pedro Alves  <palves@redhat.com>
2436
2437         * exceptions.c (catch_command_errors, catch_command_errors_const):
2438         Moved to main.c.
2439         * exceptions.h (catch_command_errors_ftype)
2440         (catch_command_errors_const_ftype): Moved to main.c.
2441         (catch_command_errors, catch_command_errors_const): Delete
2442         declarations.
2443         * main.c (catch_command_errors_ftype)
2444         (catch_command_errors_const_ftype): Moved here from exceptions.h.
2445         (catch_command_errors, catch_command_errors_const)): Moved here
2446         from exceptions.c and make static.
2447
2448 2014-07-14  Pedro Alves  <palves@redhat.com>
2449
2450         * exceptions.c (print_any_exception): Delete.
2451         (catch_exceptions_with_msg): Use exception_print instead of
2452         print_any_exception.
2453         (catch_errors): Use exception_fprintf instead of
2454         print_any_exception.
2455         (catch_command_errors, catch_command_errors_const): Use
2456         exception_print instead of print_any_exception.
2457
2458 2014-07-14  Pedro Alves  <palves@redhat.com>
2459
2460         * infcall.c (run_inferior_call): Set 'sync_execution' while
2461         running the inferior call.
2462
2463 2014-07-14  Pedro Alves  <palves@redhat.com>
2464
2465         * value.c (value_contents_equal): Delete function.
2466         * value.h (value_contents_equal): Delete declaration.
2467
2468 2014-07-14  Tom Tromey  <tromey@redhat.com>
2469
2470         PR exp/17106:
2471         * gdbtypes.c (is_dynamic_type_internal): New function, from
2472         is_dynamic_type.
2473         (is_dynamic_type): Rewrite.
2474         (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2475         (resolve_dynamic_struct): Likewise.
2476         (resolve_dynamic_type_internal): New function, from
2477         resolve_dynamic_type.
2478         (resolve_dynamic_type): Rewrite.
2479
2480 2014-07-14  Tom Tromey  <tromey@redhat.com>
2481
2482         * target.c (target_require_runnable): Also check record_stratum.
2483         Update comment.
2484
2485 2014-07-11  Yao Qi  <yao@codesourcery.com>
2486
2487         * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2488         thumb_instruction_restores_sp return true.
2489
2490 2014-07-11  Yao Qi  <yao@codesourcery.com>
2491
2492         * arm-tdep.c (thumb_instruction_restores_sp): New function.
2493         (thumb_in_function_epilogue_p): Call
2494         thumb_instruction_restores_sp.
2495
2496 2014-07-11  Yao Qi  <yao@codesourcery.com>
2497
2498         * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2499         'add sp, #imm'.
2500         (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2501
2502 2014-07-11  Gary Benson  <gbenson@redhat.com>
2503
2504         * amd64-linux-nat.c (gdbcore.h): Remove include.
2505         (regset.h): Likewise.
2506         (nat/linux-btrace.h): Likewise.
2507         (btrace.h): Likewise.
2508         (gdb_assert.h): Likewise.
2509         (string.h): Likewise.
2510         (sys/uio.h): Likewise.
2511         (sys/debugreg.h): Likewise.
2512         (sys/syscall.h): Likewise.
2513         (sys/procfs.h): Likewise.
2514         (sys/user.h): Likewise.
2515         (asm/ptrace.h): Likewise.
2516         (i386-nat.h): Likewise.
2517         * i386-linux-nat.c (i386-nat.h): Likewise.
2518         (regset.h): Likewise.
2519         (target.h): Likewise.
2520         (linux-nat.h): Likewise.
2521         (nat/linux-btrace.h): Likewise.
2522         (btrace.h): Likewise.
2523         (gdb_assert.h): Likewise.
2524         (string.h): Likewise.
2525         (sys/uio.h): Likewise.
2526         (sys/user.h): Likewise.
2527         (sys/procfs.h): Likewise.
2528         (sys/reg.h): Likewise.
2529         (sys/debugreg.h): Likewise.
2530         (ORIG_EAX): Remove definition.
2531
2532 2014-07-11  Gary Benson  <gbenson@redhat.com>
2533
2534         * i386-linux-nat.h: New file.
2535         * x86-linux-nat.h: Likewise.
2536         * x86-linux-nat.c: Likewise.
2537         * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2538         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2539         * config/i386/linux64.mh (NATDEPFILES): Likewise.
2540         * amd64-linux-nat.c (x86-linux-nat.h): New include.
2541         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2542         (PTRACE_SETREGSET): Likewise.
2543         (arch_lwp_info): Now in x86-linux-nat.c.
2544         (have_ptrace_getregset): Now in x86-linux-nat.h.
2545         (x86_linux_dr_get): Now in x86-linux-nat.c.
2546         (x86_linux_dr_set): Likewise.
2547         (x86_linux_dr_get_addr): Likewise.
2548         (x86_linux_dr_get_control): Likewise.
2549         (x86_linux_dr_get_status): Likewise.
2550         (update_debug_registers_callback): Likewise.
2551         (x86_linux_dr_set_control): Likewise.
2552         (x86_linux_dr_set_addr): Likewise.
2553         (x86_linux_prepare_to_resume): Likewise.
2554         (x86_linux_new_thread): Likewise.
2555         (x86_linux_new_fork): Likewise.
2556         (x86_linux_get_thread_area): Likewise.
2557         (super_post_startup_inferior): Likewise.
2558         (x86_linux_child_post_startup_inferior): Likewise.
2559         (AMD64_LINUX_USER64_CS): Likewise.
2560         (AMD64_LINUX_X32_DS): Likewise.
2561         (x86_linux_read_description): Likewise.
2562         (x86_linux_enable_btrace): Likewise.
2563         (x86_linux_disable_btrace): Likewise.
2564         (x86_linux_teardown_btrace): Likewise.
2565         (x86_linux_read_btrace): Likewise.
2566         (x86_linux_create_target): Likewise.
2567         (x86_linux_add_target): Likewise.
2568         * i386-linux-nat.c (x86-linux-nat.h): New include.
2569         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2570         (PTRACE_SETREGSET): Likewise.
2571         (arch_lwp_info): Now in x86-linux-nat.c.
2572         (have_ptrace_getregset): Now in x86-linux-nat.h.
2573         (x86_linux_dr_get): Now in x86-linux-nat.c.
2574         (x86_linux_dr_set): Likewise.
2575         (x86_linux_dr_get_addr): Likewise.
2576         (x86_linux_dr_get_control): Likewise.
2577         (x86_linux_dr_get_status): Likewise.
2578         (update_debug_registers_callback): Likewise.
2579         (x86_linux_dr_set_control): Likewise.
2580         (x86_linux_dr_set_addr): Likewise.
2581         (x86_linux_prepare_to_resume): Likewise.
2582         (x86_linux_new_thread): Likewise.
2583         (x86_linux_new_fork): Likewise.
2584         (x86_linux_get_thread_area): Likewise.
2585         (super_post_startup_inferior): Likewise.
2586         (x86_linux_child_post_startup_inferior): Likewise.
2587         (AMD64_LINUX_USER64_CS): Likewise.
2588         (AMD64_LINUX_X32_DS): Likewise.
2589         (x86_linux_read_description): Likewise.
2590         (x86_linux_enable_btrace): Likewise.
2591         (x86_linux_disable_btrace): Likewise.
2592         (x86_linux_teardown_btrace): Likewise.
2593         (x86_linux_read_btrace): Likewise.
2594         (x86_linux_create_target): Likewise.
2595         (x86_linux_add_target): Likewise.
2596
2597 2014-07-11  Gary Benson  <gbenson@redhat.com>
2598
2599         * amd64-linux-nat.c: Comment and whitespace changes.
2600         * i386-linux-nat.c: Comment and whitespace changes.
2601
2602 2014-07-11  Gary Benson  <gbenson@redhat.com>
2603
2604         * amd64-linux-nat.c (x86_linux_create_target): New function.
2605         (x86_linux_add_target): Likewise.
2606         (_initialize_amd64_linux_nat): Delegate to the above new functions.
2607         * i386-linux-nat.c (x86_linux_create_target): New function.
2608         (x86_linux_add_target): Likewise.
2609         (_initialize_i386_linux_nat): Delegate to the above new functions.
2610
2611 2014-07-11  Gary Benson  <gbenson@redhat.com>
2612
2613         * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2614         (ps_get_thread_area): Delegate to the above in 32-bit mode.
2615         * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2616         (ps_get_thread_area): Delegate to the above.
2617
2618 2014-07-11  Gary Benson  <gbenson@redhat.com>
2619
2620         * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2621         x86_linux_read_description.  All uses updated.  amd64-specific
2622         code conditionalized.  Conditionalized i386-specific code added.
2623         Redundant cast removed.
2624         * i386-linux-nat.c (i386_linux_read_description): Renamed to
2625         x86_linux_read_description.  All uses updated.  i386-specific
2626         code conditionalized.  Conditionalized amd64-specific code added.
2627         One sizeof replaced with the actual type it is describing.
2628
2629 2014-07-11  Gary Benson  <gbenson@redhat.com>
2630
2631         * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2632         x86_linux_dr_get.  All uses updated.
2633         (amd64_linux_dr_set): Renamed to
2634         x86_linux_dr_set.  All uses updated.
2635         (amd64_linux_dr_get_addr): Renamed to
2636         x86_linux_dr_get_addr.  All uses updated.
2637         (amd64_linux_dr_get_control): Renamed to
2638         x86_linux_dr_get_control.  All uses updated.
2639         (amd64_linux_dr_get_status): Renamed to
2640         x86_linux_dr_get_status.  All uses updated.
2641         (amd64_linux_dr_set_control): Renamed to
2642         x86_linux_dr_set_control.  All uses updated.
2643         (amd64_linux_dr_set_addr): Renamed to
2644         x86_linux_dr_set_addr.  All uses updated.
2645         (amd64_linux_prepare_to_resume): Renamed to
2646         x86_linux_prepare_to_resume.  All uses updated.
2647         (amd64_linux_new_thread): Renamed to
2648         x86_linux_new_thread.  All uses updated.
2649         (amd64_linux_new_fork): Renamed to
2650         x86_linux_new_fork.  All uses updated.
2651         (amd64_linux_child_post_startup_inferior): Renamed to
2652         x86_linux_child_post_startup_inferior.  All uses updated.
2653         (amd64_linux_enable_btrace): Renamed to
2654         x86_linux_enable_btrace.  All uses updated.
2655         (amd64_linux_disable_btrace): Renamed to
2656         x86_linux_disable_btrace.  All uses updated.
2657         (amd64_linux_teardown_btrace): Renamed to
2658         x86_linux_teardown_btrace.  All uses updated.
2659         (amd64_linux_read_btrace): Renamed to
2660         x86_linux_read_btrace.  All uses updated.
2661         * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2662         x86_linux_dr_get.  All uses updated.
2663         (i386_linux_dr_set): Renamed to
2664         x86_linux_dr_set.  All uses updated.
2665         (i386_linux_dr_get_addr): Renamed to
2666         x86_linux_dr_get_addr.  All uses updated.
2667         (i386_linux_dr_get_control): Renamed to
2668         x86_linux_dr_get_control.  All uses updated.
2669         (i386_linux_dr_get_status): Renamed to
2670         x86_linux_dr_get_status.  All uses updated.
2671         (i386_linux_dr_set_control): Renamed to
2672         x86_linux_dr_set_control.  All uses updated.
2673         (i386_linux_dr_set_addr): Renamed to
2674         x86_linux_dr_set_addr.  All uses updated.
2675         (i386_linux_prepare_to_resume): Renamed to
2676         x86_linux_prepare_to_resume.  All uses updated.
2677         (i386_linux_new_thread): Renamed to
2678         x86_linux_new_thread.  All uses updated.
2679         (i386_linux_new_fork): Renamed to
2680         x86_linux_new_fork.  All uses updated.
2681         (i386_linux_child_post_startup_inferior): Renamed to
2682         x86_linux_child_post_startup_inferior.  All uses updated.
2683         (i386_linux_enable_btrace): Renamed to
2684         x86_linux_enable_btrace.  All uses updated.
2685         (i386_linux_disable_btrace): Renamed to
2686         x86_linux_disable_btrace.  All uses updated.
2687         (i386_linux_teardown_btrace): Renamed to
2688         x86_linux_teardown_btrace.  All uses updated.
2689         (i386_linux_read_btrace): Renamed to
2690         x86_linux_read_btrace.  All uses updated.
2691
2692 2014-07-11  Adrian Sendroiu  <adrian.sendroiu@freescale.com>
2693
2694         * remote.c (extended_remote_post_attach): New function.
2695         (init_extended_remote_ops): Install it as to_post_attach method.
2696
2697 2014-07-09  Pedro Alves  <palves@redhat.com>
2698
2699         * infcmd.c (attach_command_post_wait): Don't call
2700         target_terminal_inferior here.
2701         (attach_command): Call it here instead.
2702
2703 2014-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
2704
2705         * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2706         field.
2707         * c-varobj.c (c_is_path_expr_parent): New function, moved core
2708         from varobj.c, with additional checks.
2709         (c_varobj_ops): Fill in is_path_expr_parent field.
2710         (cplus_varobj_ops): Fill in is_path_expr_parent field.
2711         * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2712         field.
2713         * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2714         ops method.
2715         (varobj_default_is_path_expr_parent): New function.
2716         * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2717         (varobj_default_is_path_expr_parent): Declare new function.
2718
2719 2014-07-08  Markus Metzger  <markus.t.metzger@intel.com>
2720
2721         * infcmd.c (finish_backward): Turn internal error into normal error.
2722
2723 2014-07-07  Pedro Alves  <palves@redhat.com>
2724
2725         PR gdb/17096
2726         * remote.c (async_handle_remote_sigint)
2727         (async_handle_remote_sigint_twice): Call
2728         gdb_call_async_signal_handler instead of
2729         mark_async_signal_handler.
2730
2731 2014-07-07  Tom Tromey  <tromey@redhat.com>
2732
2733         * target-delegates.c: Rebuild.
2734         * target.c (target_info_record): Remove.
2735         * record.c (info_record_command): Unconditionally call
2736         to_info_record.
2737         * target.h (struct target_ops) <to_info_record>: Use
2738         TARGET_DEFAULT_IGNORE.
2739         (target_info_record): Remove.
2740
2741 2014-07-07  Tom Tromey  <tromey@redhat.com>
2742
2743         * target.h (struct target_ops) <to_get_thread_local_address>: Use
2744         TARGET_DEFAULT_NORETURN.
2745         * target.c (generic_tls_error): New function.
2746         (target_translate_tls_address): Don't search target stack.
2747         * target-delegates.c: Rebuild.
2748         * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2749         stack.
2750         * linux-thread-db.c (thread_db_get_thread_local_address):
2751         Unconditionally call beneath target.
2752
2753 2014-07-03  Marc Khouzam  <marc.khouzam@ericsson.com>
2754
2755         * cli/cli-logging.c (pop_output_files): Assign targerr to
2756         gdb_stdtargerr.
2757
2758 2014-07-03  Andrew Burgess  <andrew.burgess@embecosm.com>
2759
2760         * MAINTAINERS (Write After Approval): Update my email address.
2761
2762 2014-07-02  Gary Benson  <gbenson@redhat.com>
2763
2764         * proc-service.c (ps_xfer_memory): Update comment.
2765         (ps_pstop): Remove unused function.
2766         (ps_pcontinue): Likewise.
2767         (ps_lstop): Likewise.
2768         (ps_lcontinue): Likewise.
2769         (ps_lgetxregsize): Likewise.
2770         (ps_lgetxregs): Likewise.
2771         (ps_lsetxregs): Likewise.
2772         (ps_plog): Likewise.
2773         (ps_ptread): Likewise.
2774         (ps_ptwrite): Likewise.
2775
2776 2014-07-01  Mark Wielaard  <mjw@redhat.com>
2777
2778         * dwarf2read.c (add_array_cv_type): New function.
2779         (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2780         (read_tag_volatile_type): Likewise.
2781
2782 2014-07-01  Tom Tromey  <tromey@redhat.com>
2783
2784         * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2785         * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2786         * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2787         (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2788         * command.h (cmd_cfunc_ftype): Move earlier.
2789         (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2790         (add_com, add_info): Use cmd_cfunc_ftype.
2791
2792 2014-06-30  Tom Tromey  <tromey@redhat.com>
2793
2794         * symtab.c (operator_chars): Make parameters and return type
2795         const.
2796         (file_matches): Make "files" const.
2797         (struct search_symbols_data) <files>: Now const.
2798         (search_symbols): Make "regexp" and "files" parameters const.
2799         Update.
2800         (symtab_symbol_info): Remove cast.
2801         (rbreak_command): Update.
2802         * symtab.h (search_symbols): Update.
2803
2804 2014-06-27  Yao Qi  <yao@codesourcery.com>
2805
2806         * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2807         Change parameter type to 'struct thread_info *'.  Caller
2808         updated.
2809         * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2810         Update declaration.
2811         * dummy-frame.c (struct dummy_frame_id): New.
2812         (dummy_frame_id_eq): New function.
2813         (struct dummy_frame) <id>: Change its type to 'struct
2814         dummy_frame_id'.
2815         (dummy_frame_push): Add parameter ptid and save it in
2816         dummy_frame_id.
2817         (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2818         inferior_ptid.
2819         (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2820         to inferior_ptid.
2821         (lookup_dummy_frame): Change parameter type to 'struct
2822         dummy_frame_id *'.  Callers updated.  Call dummy_frame_id_eq
2823         instead of frame_id_eq.
2824         (dummy_frame_pop): Add parameter ptid.  Callers updated.
2825         Update comments.  Compose dummy_frame_id and pass it to
2826         lookup_dummy_frame.
2827         (dummy_frame_discard): Add parameter ptid.
2828         (dummy_frame_sniffer): Compose dummy_frame_id and call
2829         dummy_frame_id_eq instead of frame_id_eq.
2830         (fprint_dummy_frames): Print ptid.
2831         * dummy-frame.h: Remove comments.
2832         (dummy_frame_push): Add ptid in declaration.
2833         (dummy_frame_pop, dummy_frame_discard): Likewise.
2834
2835 2014-06-26  Tom Tromey  <tromey@redhat.com>
2836
2837         * cli/cli-cmds.c (error_no_arg): Make "why" const.
2838         * command.h (error_no_arg): Update.
2839
2840 2014-06-26  Tom Tromey  <tromey@redhat.com>
2841
2842         * cli/cli-setshow.c (do_set_command): Make "arg" const.
2843         (do_show_command): Make "arg" const.
2844         * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2845
2846 2014-06-26  Tom Tromey  <tromey@redhat.com>
2847
2848         * record-full.c (record_full_get_bookmark): Make "args" const.
2849         (record_full_goto_bookmark): Make "raw_bookmark" const.
2850         * record.c (record_goto): New function.
2851         (cmd_record_goto): Use it.  Now static.
2852         * record.h (record_goto): Declare.
2853         (cmd_record_goto): Remove declaration.
2854         * target-delegates.c: Rebuild.
2855         * target.h (struct target_ops) <to_get_bookmark,
2856         to_goto_bookmark>: Make parameter const.
2857
2858 2014-06-26  Tom Tromey  <tromey@redhat.com>
2859
2860         * defs.h (generic_load): Update.
2861         * m32r-rom.c (m32r_load_gen): Make "filename" const.
2862         * monitor.c (monitor_load): Make "args" const.
2863         * remote-m32r-sdi.c (m32r_load): Make "args" const.
2864         * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2865         const.
2866         (mips_load): Make "file" const.
2867         * remote-sim.c (gdbsim_load): Make "args" const.
2868         * remote.c (remote_load): Make "name" const.
2869         * symfile.c (generic_load): Make "args" const.
2870         * target-delegates.c: Rebuild.
2871         * target.c (target_load): Make "arg" const.
2872         (debug_to_load): Make "args" const.
2873         * target.h (struct target_ops) <to_load>: Make parameter const.
2874         (target_load): Update.
2875
2876 2014-06-26  Tom Tromey  <tromey@redhat.com>
2877
2878         PR symtab/16902:
2879         * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2880         (dwarf2_physname, read_partial_die)
2881         (guess_partial_die_structure_name, fixup_partial_die)
2882         (guess_full_die_structure_name, anonymous_struct_prefix)
2883         (dwarf2_name): Use per-BFD obstack.
2884
2885 2014-06-26  Yao Qi  <yao@codesourcery.com>
2886
2887         * dummy-frame.c (dummy_frame_sniffer): Move local variables
2888         dummyframe and this_id into inner block below.
2889
2890 2014-06-26  Yao Qi  <yao@codesourcery.com>
2891
2892         * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2893         with "signal_pass[0]" in the initialization of signal_pass.
2894
2895 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
2896
2897         * record-btrace.c (record_btrace_generating_corefile)
2898         (record_btrace_prepare_to_generate_core)
2899         (record_btrace_done_generating_core): New.
2900         (record_btrace_xfer_partial, record_btrace_fetch_registers)
2901         (record_btrace_store_registers, record_btrace_prepare_to_store):
2902         Forward request when generating a core file.
2903         (record_btrace_open): Set record_btrace_generating_corefile to zero.
2904         (init_record_btrace_ops): Set to_prepare_to_generate_core and
2905         to_done_generating_core.
2906
2907 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
2908
2909         * target.h (target_ops) <to_prepare_to_generate_core>
2910         <to_done_generating_core>: New.
2911         (target_prepare_to_generate_core, target_done_generating_core): New.
2912         * target.c (target_prepare_to_generate_core)
2913         (target_done_generating_core): New.
2914         * target-delegates.c: Regenerate.
2915         * gcore.c: (write_gcore_file): Rename to ...
2916         (write_gcore_file_1): ...this.
2917         (write_gcore_file): Call target_prepare_to_generate_core
2918         and target_done_generating_core.
2919
2920 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
2921
2922         * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2923         * gcore.c (write_gcore_file): Free memory returned from
2924         make_corefile_notes.
2925         * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2926         * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2927
2928 2014-06-24  Yao Qi  <yao@codesourcery.com>
2929
2930         * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2931         (arm_linux_init_abi): Set skip_trampoline_code with
2932         gdbarch_skip_trampoline_code instead of
2933         find_solib_trampoline_target.
2934
2935 2014-06-24  Yao Qi  <yao@codesourcery.com>
2936
2937         * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2938         arm_skip_bx_reg returns non-zero.
2939
2940 2014-06-24  Yao Qi  <yao@codesourcery.com>
2941
2942         * arm-tdep.c (arm_skip_bx_reg): New function.
2943         (arm_skip_stub): Call arm_skip_bx_reg.
2944
2945 2014-06-23  Don Breazeal  <donb@codesourcery.com>
2946
2947         * MAINTAINERS: Add myself as write-after-approval maintainer.
2948
2949 2014-06-23  Pedro Alves  <palves@redhat.com>
2950
2951         * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2952         DR_CONTROL before setting DR0..DR3.
2953         * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2954         * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2955         bits of DR_CONTROL related to the debug register slot being
2956         disabled.  If all slots are vacant, clear local slowdown as well,
2957         and assert DR_CONTROL is 0.
2958
2959 2014-06-23  Siva Chandra Reddy  <sivachandra@google.com>
2960
2961         * python/lib/gdb/command/xmethods.py
2962         (get_method_matchers_in_loci):  Lookup xmethod matchers in the
2963         current progspace only if the string "progspace" matches LOCUS_RE.
2964
2965 2014-06-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
2966
2967         Fix --with-system-readline with readline-6.3 patch 5.
2968         * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2969         (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2970         types.
2971
2972 2014-06-20  Tom Tromey  <tromey@redhat.com>
2973
2974         * dwarf2read.c (dw2_get_real_path): Use correct type in
2975         OBSTACK_CALLOC.
2976         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2977
2978 2014-06-20  Gary Benson  <gbenson@redhat.com>
2979
2980         * common/gdb_thread_db.h: Moved to nat.  All includes updated.
2981         * common/glibc_thread_db.h: Likewise.
2982         * common/i386-cpuid.h: Likewise.
2983         * common/i386-gcc-cpuid.h: Likewise.
2984         * common/linux-btrace.h: Likewise.
2985         * common/linux-osdata.h: Likewise.
2986         * common/linux-procfs.h: Likewise.
2987         * common/linux-ptrace.h: Likewise.
2988         * common/mips-linux-watch.h: Likewise.
2989         * common/linux-btrace.c: Moved to nat.
2990         * common/linux-osdata.c: Likewise.
2991         * common/linux-procfs.c: Likewise.
2992         * common/linux-ptrace.c: Likewise.
2993         * common/mips-linux-watch.c: Likewise.
2994         * nat/gdb_thread_db.h: Moved from common.
2995         * nat/glibc_thread_db.h: Likewise.
2996         * nat/i386-cpuid.h: Likewise.
2997         * nat/i386-gcc-cpuid.h: Likewise.
2998         * nat/linux-btrace.c: Likewise.
2999         * nat/linux-btrace.h: Likewise.
3000         * nat/linux-osdata.c: Likewise.
3001         * nat/linux-osdata.h: Likewise.
3002         * nat/linux-procfs.c: Likewise.
3003         * nat/linux-procfs.h: Likewise.
3004         * nat/linux-ptrace.c: Likewise.
3005         * nat/linux-ptrace.h: Likewise.
3006         * nat/mips-linux-watch.c: Likewise.
3007         * nat/mips-linux-watch.h: Likewise.
3008         * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3009         (object file files): Reordered.
3010         * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3011         of glibc_thread_db.h.
3012
3013 2014-06-20  Gary Benson  <gbenson@redhat.com>
3014
3015         * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3016         (i386_dr_low_type): Moved to nat/i386-dregs.h.
3017         (i386_dr_low): Likewise.
3018         (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3019         (i386_dr_low_set_addr): Likewise.
3020         (i386_dr_low_get_addr): Likewise.
3021         (i386_dr_low_can_set_control): Likewise.
3022         (i386_dr_low_set_control): Likewise.
3023         (i386_dr_low_get_control): Likewise.
3024         (i386_dr_low_get_status): Likewise.
3025         (i386_get_debug_register_length): Likewise.
3026         * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3027         (i386_dr_low): Likewise.
3028         * nat/i386-dregs.c (i386-low.h): Remove include.
3029         (i386-nat.h): Likewise.
3030         (nat/i386-dregs.h): New include.
3031         (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3032         (i386_dr_low_set_addr): Likewise.
3033         (i386_dr_low_get_addr): Likewise.
3034         (i386_dr_low_can_set_control): Likewise.
3035         (i386_dr_low_set_control): Likewise.
3036         (i386_dr_low_get_control): Likewise.
3037         (i386_dr_low_get_status): Likewise.
3038         (i386_get_debug_register_length): Likewise.
3039         (debug_hw_points): Likewise.
3040
3041 2014-06-19  Iain Buclaw  <ibuclaw@gdcproject.org>
3042
3043         * Makefile.in (SFILES): Add d-exp.y.
3044         (YYFILES): Add d-exp.c.
3045         (YYOBJ): Add d-exp.o.
3046         (local-maintainer-clean): Delete d-exp.c.
3047         * d-exp.y: New file.
3048         * d-lang.h (d_parse): New declaration.
3049         (d_error): New declaration.
3050         * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3051         Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3052         PREC_ORDER operators.
3053         (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3054
3055 2014-06-19  Yao Qi  <yao@codesourcery.com>
3056
3057         * gdbthread.h (any_running): Remove the declaration.
3058         * thread.c (any_running): Remove.
3059
3060 2014-06-19  Yao Qi  <yao@codesourcery.com>
3061
3062         * gdbthread.h (struct thread_info) <state>: Change its type to
3063         'enum thread_state'.  Update comments.
3064
3065 2014-06-19  Pedro Alves  <palves@redhat.com>
3066
3067         * gdbthread.h (ALL_THREADS): Delete.
3068         (ALL_NON_EXITED_THREADS): New macro.
3069         * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3070         instead of ALL_THREADS.
3071         * infrun.c (find_thread_needs_step_over)
3072         (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3073         instead of ALL_THREADS.
3074         * record-btrace.c (record_btrace_open)
3075         (record_btrace_stop_recording, record_btrace_close)
3076         (record_btrace_is_replaying, record_btrace_resume)
3077         (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3078         * remote.c (append_pending_thread_resumptions): Likewise.
3079         * thread.c (thread_apply_all_command): Likewise.
3080
3081 2014-06-19  Gary Benson  <gbenson@redhat.com>
3082
3083         * i386-nat.c (i386_stopped_by_watchpoint):
3084         Use i386_dr_stopped_by_watchpoint.
3085         (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3086         (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3087
3088 2014-06-19  Gary Benson  <gbenson@redhat.com>
3089
3090         * nat/i386-dregs.c: New file.
3091         * Makefile.in (i386-dregs.o): New rule.
3092         * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3093         * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3094         * config/i386/darwin.mh (NATDEPFILES): Likewise.
3095         * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3096         * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3097         * config/i386/go32.mh (NATDEPFILES): Likewise.
3098         * config/i386/linux.mh (NATDEPFILES): Likewise.
3099         * config/i386/linux64.mh (NATDEPFILES): Likewise.
3100         * config/i386/mingw.mh (NATDEPFILES): Likewise.
3101         * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3102         * i386-nat.h (debug_hw_points): New declaration.
3103         * i386-nat.c (breakpoint.h): Remove include.
3104         (command.h): Likewise.
3105         (target.h): Likewise.
3106         (gdb_assert.h): Likewise.
3107         (debug_hw_points): Made nonstatic.
3108         (debug_printf): Now in i386-dregs.c.
3109         (TARGET_HAS_DR_LEN_8): Likewise.
3110         (DR_CONTROL_SHIFT): Likewise.
3111         (DR_CONTROL_SIZE): Likewise.
3112         (DR_RW_EXECUTE): Likewise.
3113         (DR_RW_WRITE): Likewise.
3114         (DR_RW_READ): Likewise.
3115         (DR_RW_IORW): Likewise.
3116         (DR_LEN_1): Likewise.
3117         (DR_LEN_2): Likewise.
3118         (DR_LEN_4): Likewise.
3119         (DR_LEN_8): Likewise.
3120         (DR_LOCAL_ENABLE_SHIFT): Likewise.
3121         (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3122         (DR_ENABLE_SIZE): Likewise.
3123         (DR_LOCAL_SLOWDOWN): Likewise.
3124         (DR_GLOBAL_SLOWDOWN): Likewise.
3125         (DR_CONTROL_RESERVED): Likewise.
3126         (I386_DR_CONTROL_MASK): Likewise.
3127         (I386_DR_VACANT): Likewise.
3128         (I386_DR_LOCAL_ENABLE): Likewise.
3129         (I386_DR_GLOBAL_ENABLE): Likewise.
3130         (I386_DR_DISABLE): Likewise.
3131         (I386_DR_SET_RW_LEN): Likewise.
3132         (I386_DR_GET_RW_LEN): Likewise.
3133         (I386_DR_WATCH_HIT): Likewise.
3134         (i386_wp_op_t): Likewise.
3135         (i386_show_dr): Likewise.
3136         (i386_length_and_rw_bits): Likewise.
3137         (i386_insert_aligned_watchpoint): Likewise.
3138         (i386_remove_aligned_watchpoint): Likewise.
3139         (i386_handle_nonaligned_watchpoint): Likewise.
3140         (i386_update_inferior_debug_regs): Likewise.
3141         (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3142         (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3143         (i386_region_ok_for_watchpoint):
3144         Use i386_dr_region_ok_for_watchpoint.
3145         (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3146
3147 2014-06-19  Gary Benson  <gbenson@redhat.com>
3148
3149         * i386-nat.c (i386_insert_hw_breakpoint): Use
3150         i386_insert_watchpoint.
3151         (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3152
3153 2014-06-19  Gary Benson  <gbenson@redhat.com>
3154
3155         * i386-nat.c (i386_dr_show): Renamed to
3156         i386_show_dr and made static.  All uses updated.
3157         (i386_dr_length_and_rw_bits): Renamed to
3158         i386_length_and_rw_bits and made static.
3159         All uses updated.
3160         (i386_dr_insert_aligned_watchpoint): Renamed to
3161         i386_insert_aligned_watchpoint and made static.
3162         All uses updated.
3163         (i386_dr_remove_aligned_watchpoint): Renamed to
3164         i386_remove_aligned_watchpoint and made static.
3165         All uses updated.
3166         (i386_dr_update_inferior_debug_regs): Renamed to
3167         i386_update_inferior_debug_regs and made static.
3168         All uses updated.
3169         * nat/i386-dregs.h (i386_dr_show): Removed.
3170         (i386_dr_length_and_rw_bits): Likewise.
3171         (i386_dr_insert_aligned_watchpoint): Likewise.
3172         (i386_dr_remove_aligned_watchpoint): Likewise.
3173         (i386_dr_update_inferior_debug_regs): Likewise.
3174
3175 2014-06-19  Gary Benson  <gbenson@redhat.com>
3176
3177         * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3178         * configure: Regenerate.
3179         * config.in: Likewise.
3180         * main.c (signal.h): New include.
3181         (setup_alternate_signal_stack): New function.
3182         (captured_main): Call the above.
3183         * cp-support.c (signal.h): New include.
3184         (catch_demangler_crashes): New flag.
3185         (SIGJMP_BUF): New define.
3186         (SIGSETJMP): Likewise.
3187         (SIGLONGJMP): Likewise.
3188         (gdb_demangle_jmp_buf): New static global.
3189         (gdb_demangle_attempt_core_dump): Likewise.
3190         (gdb_demangle_signal_handler): New function.
3191         (gdb_demangle): If catch_demangler_crashes is set, install the
3192         above signal handler before calling bfd_demangle, and restore
3193         the original signal handler afterwards.  Display the offending
3194         symbol and call demangler_warning the first time a segmentation
3195         fault is caught.
3196         (_initialize_cp_support): New maint set/show command.
3197
3198 2014-06-19  Gary Benson  <gbenson@redhat.com>
3199
3200         * utils.h (resource_limit_kind): New enum.
3201         (can_dump_core): New declaration.
3202         (warn_cant_dump_core): Likewise.
3203         (dump_core): Likewise.
3204         * utils.c (dump_core): Made nonstatic.  Added new
3205         parameter "limit_kind".
3206         (can_dump_core): Made nonstatic. Moved printing code to...
3207         (warn_cant_dump_core): New function.
3208         (can_dump_core_warn): Likewise.
3209         (internal_vproblem): Replace calls to can_dump_core with
3210         calls to can_dump_core_warn.  Supply new argument to each.
3211
3212 2014-06-19  Gary Benson  <gbenson@redhat.com>
3213
3214         * utils.h (demangler_vwarning): New declaration.
3215         (demangler_warning): Likewise.
3216         * utils.c (struct internal_problem)
3217         <user_settable_should_quit>: New field.
3218         <user_settable_should_dump_core>: Likewise
3219         (internal_error_problem): Add values for above new fields.
3220         (internal_warning_problem): Likewise.
3221         (demangler_warning_problem): New static global.
3222         (demangler_vwarning): New function.
3223         (demangler_warning): Likewise.
3224         (add_internal_problem_command): Selectively add commands.
3225         (_initialize_utils): New internal problem command.
3226         * maint.c (maintenance_demangler_warning): New function.
3227         (_initialize_maint_cmds): New command.
3228
3229 2014-06-18  Tom Tromey  <tromey@redhat.com>
3230
3231         * f-valprint.c (info_common_command_for_block): Update.
3232         * symtab.h (struct general_symbol_info) <common_block>: Now
3233         const.
3234
3235 2014-06-18  Tom Tromey  <tromey@redhat.com>
3236
3237         * symtab.h (struct symtab) <blockvector>: Now const.
3238         * ada-lang.c (ada_add_global_exceptions): Update.
3239         * buildsym.c (augment_type_symtab): Update.
3240         * dwarf2read.c (dw2_lookup_symbol): Update.
3241         * jit.c (finalize_symtab): Update.
3242         * jv-lang.c (add_class_symtab_symbol): Update.
3243         * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3244         Update.
3245         * objfiles.c (objfile_relocate1): Update.
3246         * psymtab.c (lookup_symbol_aux_psymtabs)
3247         (maintenance_check_psymtabs): Update.
3248         * python/py-symtab.c (stpy_global_block, stpy_static_block):
3249         Update.
3250         * spu-tdep.c (spu_catch_start): Update.
3251         * symmisc.c (dump_symtab_1): Update.
3252         * symtab.c (lookup_global_symbol_from_objfile)
3253         (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3254         (basic_lookup_transparent_type_quick)
3255         (basic_lookup_transparent_type, find_pc_sect_symtab)
3256         (find_pc_sect_line, search_symbols): Update.
3257         * block.c (find_block_in_blockvector): Make "bl" const.
3258         (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3259         const.
3260         (blockvector_contains_pc): Make "bv" const.
3261         (block_for_pc_sect): Update.
3262         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3263         (blockvector_contains_pc): Update.
3264         * breakpoint.c (resolve_sal_pc): Update.
3265         * inline-frame.c (block_starting_point_at): Update.
3266
3267 2014-06-18  Tom Tromey  <tromey@redhat.com>
3268
3269         * completer.c (complete_line): Make "line_buffer" const.
3270         * completer.h (complete_line): Update.
3271
3272 2014-06-18  Tom Tromey  <tromey@redhat.com>
3273
3274         * symtab.c (add_macro_name): Remove unneeded cast.
3275
3276 2014-06-18  Tom Tromey  <tromey@redhat.com>
3277
3278         * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3279         * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3280
3281 2014-06-18  Tom Tromey  <tromey@redhat.com>
3282
3283         * probe.c (info_probes_for_ops): Make "arg" const.
3284         * probe.h (info_probes_for_ops): Update.
3285
3286 2014-06-18  Tom Tromey  <tromey@redhat.com>
3287
3288         * varobj.c (varobj_create): Update.
3289         * valops.c (value_of_this): Update.
3290         * tracepoint.c (add_local_symbols, scope_info): Update.
3291         * symtab.h (struct general_symbol_info) <block>: Now const.
3292         * symtab.c (skip_prologue_sal)
3293         (default_make_symbol_completion_list_break_on)
3294         (skip_prologue_using_sal): Update.
3295         * stack.h (iterate_over_block_locals)
3296         (iterate_over_block_local_vars): Update.
3297         * stack.c (print_frame_args): Update.
3298         (iterate_over_block_locals, iterate_over_block_local_vars): Make
3299         parameter const.
3300         (get_selected_block): Make return type const.
3301         * python/py-frame.c (frapy_block): Update.
3302         * python/py-block.c (gdbpy_block_for_pc): Update.
3303         * p-exp.y (%union) <bval>: Now const.
3304         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3305         * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3306         * m2-exp.y (%union) <bval>: Now const.
3307         * linespec.c (get_current_search_block): Make return type const.
3308         (create_sals_line_offset, find_label_symbols): Update.
3309         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3310         Update.
3311         (block_starting_point_at): Make "block" const.
3312         * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3313         (check_exception_resume): Update.
3314         * guile/scm-frame.c (gdbscm_frame_block): Update.
3315         * guile/scm-block.c (gdbscm_lookup_block): Update.
3316         * frame.h (get_frame_block): Update.
3317         (get_selected_block): Make return type const.
3318         * frame.c (frame_id_inner): Update.
3319         * f-valprint.c (info_common_command_for_block)
3320         (info_common_command): Update.
3321         * dwarf2loc.c (dwarf2_find_location_expression)
3322         (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3323         (locexpr_describe_location_piece): Update.
3324         * c-exp.y (%union) <bval>: Now const.
3325         * breakpoint.c (resolve_sal_pc): Update.
3326         * blockframe.c (get_frame_block):Make return type const.
3327         (get_pc_function_start, get_frame_function, find_pc_sect_function)
3328         (block_innermost_frame): Update.
3329         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3330         (block_for_pc, block_for_pc_sect): Update.
3331         * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3332         'pblock' const.
3333         (block_for_pc_sect, block_for_pc): Make return type const.
3334         * ax-gdb.c (gen_expr): Update.
3335         * alpha-mdebug-tdep.c (find_proc_desc): Update.
3336         * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3337         (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3338         (ada_read_var_value): Update.
3339         * ada-exp.y (struct name_info) <block>: Now const.
3340         (%union): Likewise.
3341         (block_lookup): Constify.
3342
3343 2014-06-18  Gary Benson  <gbenson@redhat.com>
3344
3345         * nat/i386-dregs.h: New file.
3346         * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3347         * i386-nat.h (i386-dregs.h): New include.
3348         (DR_FIRSTADDR): Now in i386-dregs.h.
3349         (DR_LASTADDR): Likewise.
3350         (DR_NADDR): Likewise.
3351         (DR_STATUS): Likewise.
3352         (DR_CONTROL): Likewise.
3353         (i386_debug_reg_state): Likewise.
3354         * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3355
3356 2014-06-18  Don Breazeal  <donb@codesourcery.com>
3357
3358         * breakpoint.c (set_longjmp_breakpoint): Call
3359         momentary_breakpoint_from_master with additional argument.
3360         (set_longjmp_breakpoint_for_call_dummy): Call
3361         momentary_breakpoint_from_master with additional argument.
3362         (set_std_terminate_breakpoint): Call
3363         momentary_breakpoint_from_master with additional argument.
3364         (momentary_breakpoint_from_master): Add argument to function
3365         definition and use it to initialize structure member flag.
3366         (clone_momentary_breakpoint): Call
3367         momentary_breakpoint_from_master with additional argument.
3368         * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3369         member flags set in momentary_breakpoint_from_master.
3370
3371 2014-06-18  Gary Benson  <gbenson@redhat.com>
3372
3373         * i386-nat.c (i386_show_dr): Renamed to
3374         i386_dr_show and made nonstatic.  All uses updated.
3375         (i386_length_and_rw_bits): Renamed to
3376         i386_dr_length_and_rw_bits and made nonstatic.
3377         All uses updated.
3378         (i386_insert_aligned_watchpoint): Renamed to
3379         i386_dr_insert_aligned_watchpoint and made nonstatic.
3380         All uses updated.
3381         (i386_remove_aligned_watchpoint): Renamed to
3382         i386_dr_remove_aligned_watchpoint and made nonstatic.
3383         All uses updated.
3384         (i386_update_inferior_debug_regs): Renamed to
3385         i386_dr_update_inferior_debug_regs and made nonstatic.
3386         All uses updated.
3387
3388 2014-06-18  Gary Benson  <gbenson@redhat.com>
3389
3390         * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3391         (i386_dr_low_can_set_control): Likewise.
3392         (i386_dr_low_set_addr): Likewise.
3393         (i386_dr_low_set_control): Likewise.
3394         (i386_dr_low_get_addr): Likewise.
3395         (i386_dr_low_get_status): Likewise.
3396         (i386_dr_low_get_control): Likewise.
3397         (i386_insert_aligned_watchpoint): Use new macros.
3398         (i386_update_inferior_debug_regs): Likewise.
3399         (i386_stopped_data_address): Likewise.
3400
3401 2014-06-18  Gary Benson  <gbenson@redhat.com>
3402
3403         * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3404         New parameter.  All uses updated.
3405
3406 2014-06-18  Gary Benson  <gbenson@redhat.com>
3407
3408         * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3409         All uses updated.
3410
3411 2014-06-18  Gary Benson  <gbenson@redhat.com>
3412
3413         * i386-nat.c (debug_printf): New macro.
3414         (i386_get_debug_register_length): Likewise.
3415         (TARGET_HAS_DR_LEN_8): Use above macro.
3416         (i386_show_dr): Use debug_printf instead of puts_unfiltered
3417         and printf_unfiltered.  Use phex to format values.
3418
3419 2014-06-18  Gary Benson  <gbenson@redhat.com>
3420
3421         * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3422         Make const.
3423
3424 2014-06-18  Gary Benson  <gbenson@redhat.com>
3425
3426         * i386-nat.c: Comment changes.
3427
3428 2014-06-18  Gary Benson  <gbenson@redhat.com>
3429
3430         * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3431
3432 2014-06-18  Gary Benson  <gbenson@redhat.com>
3433
3434         * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3435         (i386_insert_aligned_watchpoint): Likewise.
3436         (i386_remove_aligned_watchpoint): Likewise.
3437         (i386_handle_nonaligned_watchpoint): Likewise.
3438
3439 2014-06-18  Gary Benson  <gbenson@redhat.com>
3440
3441         * i386-nat.c: Whitespace changes.
3442
3443 2014-06-17  Samuel Bronson  <naesten@gmail.com>
3444
3445         * MAINTAINERS: Update Roland McGrath's email address.
3446         Thanks to Sergio Durigan Junior for pointing out that he left
3447         Red Hat a while ago, and giving me a current address.
3448
3449 2014-06-17  Tom Tromey  <tromey@redhat.com>
3450
3451         * utils.h (savestring): Remove declaration.
3452
3453 2014-06-17  Tom Tromey  <tromey@redhat.com>
3454
3455         * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3456
3457 2014-06-16  Keith Seitz  <keiths@redhat.com>
3458
3459         PR mi/15863
3460         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3461         to update the varobj if inferior_ptid is null_ptid.
3462
3463 2014-06-16  Tom Tromey  <tromey@redhat.com>
3464
3465         * target.h (struct target_ops) <to_info_proc>: Make parameter
3466         const.
3467         (target_info_proc): Update.
3468         * target.c (target_info_proc): Make "args" const.
3469         * procfs.c (procfs_info_proc): Update.
3470         * linux-tdep.c (linux_info_proc): Update.
3471         (linux_core_info_proc_mappings): Make "args" const.
3472         (linux_core_info_proc): Update.
3473         * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3474         * gdbarch.c: Rebuild.
3475         * gdbarch.h: Rebuild.
3476         * corelow.c (core_info_proc): Update.
3477
3478 2014-06-16  Tom Tromey  <tromey@redhat.com>
3479
3480         * target.h (struct target_ops) <to_disconnect>: Make parameter
3481         const.
3482         (target_disconnect): Update.
3483         * target.c (target_disconnect): Make "args" const.
3484         * target-delegates.c: Rebuild.
3485         * remote.c (remote_disconnect): Update.
3486         * record.h (record_disconnect): Update.
3487         * record.c (record_disconnect): Update.
3488         * inf-child.c (inf_child_disconnect): Update.
3489
3490 2014-06-16  Tom Tromey  <tromey@redhat.com>
3491
3492         * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3493         * target.c (debug_to_rcmd, default_rcmd): Update.
3494         * target-delegates.c: Rebuild.
3495         * remote.c (remote_rcmd): Update.
3496         * monitor.c (monitor_rcmd): Update.
3497
3498 2014-06-16  Pedro Alves  <palves@redhat.com>
3499
3500         * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3501         (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3502         have OBJF_SHARED set.
3503         * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3504         (shared_objfile_contains_address_p): ... this.  Check OBJF_SHARED
3505         instead of OBJF_USERLOADED.
3506         * objfiles.h (OBJF_SHARED): Update comment.
3507         (userloaded_objfile_contains_address_p): Rename to ...
3508         (shared_objfile_contains_address_p): ... this, and update
3509         comments.
3510         * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3511         new objfile.
3512         (remove_symbol_file_command): Skip objfiles that don't have
3513         OBJF_SHARED set.
3514
3515 2014-06-16  Tom Tromey  <tromey@redhat.com>
3516
3517         * minsyms.h (prim_record_minimal_symbol)
3518         (prim_record_minimal_symbol_and_info): Update comments.
3519
3520 2014-06-14  Eli Zaretskii  <eliz@gnu.org>
3521
3522         * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3523         or --without-guile, according to how GDB was built.
3524
3525 2014-06-13  Tom Tromey  <tromey@redhat.com>
3526
3527         * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3528         to help_list.
3529         * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3530         to help_list.
3531         * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3532         help_list.
3533         * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3534         help_list.Pass all_commands, not -1, to help_list.
3535         * cli/cli-dump.c (dump_command, append_command)
3536         (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3537         (binary_dump_command, binary_append_command): Pass all_commands,
3538         not -1, to help_list.
3539         * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3540         -1, to help_list.
3541         * valprint.c (set_print, set_print_raw): Pass all_commands, not
3542         -1, to help_list.
3543         * typeprint.c (set_print_type): Pass all_commands, not -1, to
3544         help_list.
3545         * top.c (set_history): Pass all_commands, not -1, to help_list.
3546         * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3547         all_commands, not -1, to help_list.
3548         * symfile.c (overlay_command): Pass all_commands, not -1, to
3549         help_list.
3550         * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3551         help_list.
3552         * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3553         help_list.
3554         * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3555         -1, to help_list.
3556         * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3557         not -1, to help_list.
3558         * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3559         not -1, to help_list.
3560         * maint.c (maintenance_command, maintenance_info_command)
3561         (maintenance_print_command, maintenance_set_cmd): Pass
3562         all_commands, not -1, to help_list.
3563         * macrocmd.c (macro_command): Pass all_commands, not -1, to
3564         help_list.
3565         * language.c (set_check): Pass all_commands, not -1, to help_list.
3566         * infcmd.c (unset_command): Pass all_commands, not -1, to
3567         help_list.
3568         * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3569         help_list.
3570         * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3571         help_list.
3572         * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3573         help_list.
3574         * breakpoint.c (save_command): Pass all_commands, not -1, to
3575         help_list.
3576         * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3577         all_commands, not -1, to help_list.
3578
3579 2014-06-12  Pierre Langlois  <pierre.langlois@embecosm.com>
3580
3581         * regcache.c (struct register_to_invalidate): New structure.
3582         (do_register_invalidate, make_cleanup_regcache_invalidate): New
3583         functions.
3584         (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3585
3586 2014-06-12  Yao Qi  <yao@codesourcery.com>
3587
3588         * varobj.c (varobj_get_num_children): Call
3589         varobj_is_dynamic_p.
3590         (varobj_list_children): Likewise.
3591         (varobj_update): Likewise.  Update comments.
3592
3593 2014-06-12  Yao Qi  <yao@codesourcery.com>
3594
3595         * varobj.c (varobj_pretty_printed_p): Rename to ...
3596         (varobj_is_dynamic_p): ... this.  New function.
3597         * varobj.h (varobj_pretty_printed_p): Remove declaration.
3598         (varobj_is_dynamic_p): Declare.
3599         * mi/mi-cmd-var.c (print_varobj): All callers updated.
3600         (mi_print_value_p, varobj_update_one): Likewise.
3601
3602 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
3603             Yao Qi  <yao@codesourcery.com>
3604
3605         * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3606         (varobj_get_iterator): Wrap up code for pretty-printer by
3607         "#if HAVE_PYTHON" and "#endif".
3608         (update_dynamic_varobj_children): Likewise.
3609
3610 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
3611             Yao Qi  <yao@codesourcery.com>
3612
3613         * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3614         gdb_python_initialized is false.  Move some code from varobj.c.
3615         * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3616         * varobj.c: Move "varobj-iter.h" inclusion earlier.
3617         (struct varobj_item): Moved to varobj-iter.h".
3618         (varobj_clear_saved_item): New function.
3619         (update_dynamic_varobj_children): Move python-related code to
3620         py-varobj.c.
3621         (free_variable): Call varobj_clear_saved_item and
3622         varobj_iter_delete.
3623
3624 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
3625             Yao Qi  <yao@codesourcery.com>
3626
3627         * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3628         (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3629         (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3630         (py-varobj.o): New rule.
3631         * python/py-varobj.c: New file.
3632         * python/python-internal.h (py_varobj_get_iterator): Declare.
3633         * varobj-iter.h: New file.
3634         * varobj.c: Include "varobj-iter.h"
3635         (struct varobj) <child_iter>: Change its type from "PyObject *"
3636         to "struct varobj_iter *".
3637         <saved_item>: Likewise.
3638         [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3639         [HAVE_PYTHON] (varobj_get_iterator): New function.
3640         (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3641         python-specific code to python/py-varobj.c.
3642         (install_visualizer): Call varobj_iter_delete instead of
3643         Py_XDECREF.
3644         * varobj.h (varobj_ensure_python_env): Declare.
3645
3646 2014-06-12  Yao Qi  <yao@codesourcery.com>
3647
3648         * varobj.c (struct varobj_item): New structure.
3649         (create_child_with_value): Update declaration.
3650         (varobj_add_child): Replace arguments 'name' and 'value' with
3651         'item'.  All callers updated.
3652         (install_dynamic_child): Likewise.
3653         (update_dynamic_varobj_children): Likewise.
3654         (varobj_add_child): Likewise.
3655         (create_child_with_value): Likewise.
3656
3657 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
3658
3659         * NEWS: Create a new section for the next release branch.
3660         Rename the section of the current branch, now that it has
3661         been cut.
3662
3663 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
3664
3665         GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3666         * version.in: Bump version to 7.8.50.DATE-cvs.
3667
3668 2014-06-11  Pedro Alves  <palves@redhat.com>
3669
3670         PR remote/17028
3671         * ser-mingw.c (net_windows_socket_check_pending): New function.
3672         (net_windows_select_thread): Ignore spurious wakeups.  Use
3673         net_windows_socket_check_pending.
3674         (net_windows_wait_handle): Check for pending events with
3675         ioctlsocket, through net_windows_socket_check_pending, instead of
3676         checking the socket's event.
3677
3678 2014-06-10  Siva Chandra Reddy  <sivachandra@google.com>
3679
3680         * python/python-internal.h (gdb_PyObject_GetAttrString)
3681         (gdb_PyObject_HasAttrString): New inline function definitions.
3682         * py-value.c (get_field_flag): Remove the now unnecessary cast to
3683         char * of the second argument to PyObject_GetAttrString.
3684
3685 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
3686
3687         * serial.c (serial_write): Fix index of character to be printed
3688         in call to serial_logchar when serial debug traces are enabled.
3689
3690 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
3691
3692         * gdbtypes (resolve_dynamic_range): Add function description.
3693
3694 2014-06-09  Pedro Alves  <palves@redhat.com>
3695
3696         * linux-nat.c (linux_child_follow_fork): Initialize status with
3697         W_STOPCODE (0) instead of 0.  Remove shodowing 'status' local from
3698         inner block.  Only pass the signal to PTRACE_DETACH if in pass
3699         state.
3700
3701 2014-06-09  Gary Benson  <gbenson@redhat.com>
3702
3703         * common/signals.c (gdb_signal_from_host): Reorder to separate
3704         the always-available ANSI-standard signals from the signals that
3705         require checking.
3706         (do_gdb_signal_to_host): Likewise.
3707         * proc-events.c (signal_table): Likewise.
3708
3709 2014-06-08  Hui Zhu  <hui@codesourcery.com>
3710
3711         * common/linux-ptrace.c (linux_disable_event_reporting): New
3712         function.
3713         * common/linux-ptrace.h (linux_disable_event_reporting): New
3714         declaration.
3715         * linux-nat.c (linux_child_follow_fork): Do a single step before
3716         detach.
3717
3718 2014-06-07  Keith Seitz  <keiths@redhat.com>
3719
3720         Revert:
3721         PR c++/16253
3722         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3723         from symbol_matches_domain in symtab.c. All local callers
3724         of symbol_matches_domain updated.
3725         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3726         search STRUCT_DOMAIN.
3727         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3728         independently.  standard_lookup will do that automatically.
3729         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3730         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3731         (cp_lookup_symbol_in_namespace): Likewise.
3732         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3733         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3734         may return a STRUCT_DOMAIN match.
3735         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3736         * cp-support.c: Include language.h.
3737         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3738         VAR_DOMAIN.
3739         * psymtab.c (match_partial_symbol): Compare the requested
3740         domain with the symbol's domain directly.
3741         (lookup_partial_symbol): Likewise.
3742         * symtab.c (lookup_symbol_in_language): Explain when/why
3743         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3744         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3745         appropriate languages.
3746         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3747         and moved to ada-lang.c
3748         (lookup_block_symbol): Explain that this function only returns
3749         symbol matching the requested DOMAIN.
3750         Compare the requested domain with the symbol's domain directly.
3751         (iterate_over_symbols): Compare the requested domain with the
3752         symbol's domain directly.
3753         * symtab.h (symbol_matches_domain): Remove.
3754
3755 2014-06-06  Doug Evans  <xdje42@gmail.com>
3756
3757         * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3758         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3759         (gdbscm_guile_version_is_at_least): Declare.
3760         (gdbscm_scm_string_to_int): Declare.
3761         * guile/guile.c (gdbscm_guile_major_version): New global.
3762         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3763         (guile_datadir): New static global.
3764         (gdbscm_guile_data_directory): New function.
3765         (initialize_scheme_side): Update.
3766         (misc_guile_functions): Add guile-data-directory.
3767         (initialize_gdb_module): Fetch guile version number.
3768         * guile/lib/gdb.scm: Remove call to add-to-load-path.
3769         * guile/lib/gdb/init.scm (%initialize!): Ditto.
3770         * guile/lib/gdb/boot.scm: Use guile-data-directory.
3771         * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3772         comments.
3773         * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3774         * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3775         * guile/scm-value.c (gdbscm_value_to_string): Only call
3776         scm_port_conversion_strategy if Guile version >= 2.0.6.
3777
3778 2014-06-06  Mingjie Xing  <mingjie.xing@gmail.com>
3779
3780         * main.c (print_gdb_help): Add -q and --silent.
3781
3782 2014-06-06  Gary Benson  <gbenson@redhat.com>
3783
3784         * common/signals.c: Remove preprocessor conditionals for
3785         always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3786         SIGSEGV and SIGTERM.
3787         * proc-events.c: Likewise.
3788
3789 2014-06-06  Markus Metzger  <markus.t.metzger@intel.com>
3790
3791         * symfile.c (symfile_free_objfile): Remove restriction to
3792         OBJF_USERLOADED.
3793         * symfile-mem.c (symbol_file_add_from_memory): Call
3794         add_target_sections_of_objfile.
3795
3796 2014-06-05  Ludovic Courtès  <ludo@gnu.org>
3797
3798         * guile/scm-value.c (gdbscm_history_append_x): Use
3799         'vlscm_get_value_smob_arg_unsafe' instead of
3800         'vlscm_scm_to_value'.
3801
3802 2014-06-05  Simon Marchi  <simon.marchi@ericsson.com>
3803
3804         PR mi/15806
3805         * utils.c (printchar): Don't escape at all if quoter is NUL.
3806         Update function documentation to clarify effect of parameter
3807         QUOTER.
3808         * remote.c (escape_buffer): Pass '\\' as the quoter to
3809         fputstrn_unfiltered.
3810         * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3811         generate the output.
3812         (mi_solib_unloaded): Same.
3813
3814 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
3815
3816         * development.sh: Delete.
3817         * Makefile.in (config.status): Adjust dependency on development.sh.
3818         * configure.ac: Adjust development.sh source call.
3819         * configure: Regenerate.
3820
3821 2014-06-04  Doug Evans  <xdje42@gmail.com>
3822
3823         * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3824         is_scheme_bkpt, spec.
3825         (bpscm_make_breakpoint_smob): Initialize new members.
3826         (gdbscm_create_breakpoint_x): Split into two ...
3827         (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3828         (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3829         (scheme_function breakpoint_functions): Update.
3830         * guile/lib/gdb.scm: Delete create-breakpoint!.  Rename
3831         breakpoint-delete! to delete-breakpoint!.  Add make-breakpoint,
3832         register-breakpoint!.
3833
3834 2014-06-04  Joel Brobecker  <brobecker@adacorer.com>
3835
3836         PR server/17023
3837         * mem-break.c (z_type_supported): Return zero if
3838         THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3839
3840 2014-06-04  Tom Tromey  <tromey@redhat.com>
3841
3842         * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3843         value_from_contents_and_address_unresolved.
3844         (ada_template_to_fixed_record_type_1): Likewise.
3845         (ada_which_variant_applies): Likewise.
3846         * value.h (value_from_contents_and_address_unresolved): Declare.
3847         * value.c (value_from_contents_and_address_unresolved): New
3848         function.
3849         * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3850         <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3851         (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3852
3853 2014-06-04  Tom Tromey  <tromey@redhat.com>
3854
3855         * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3856
3857 2014-06-04  Tom Tromey  <tromey@redhat.com>
3858
3859         * procfs.c (procfs_attach): Make "args" const.
3860         * windows-nat.c (windows_attach): Make "args" const.
3861         * nto-procfs.c (procfs_attach): Make "args" const.
3862         * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3863         * go32-nat.c (go32_attach): Make "args" const.
3864         * gnu-nat.c (gnu_attach): Make "args" const.
3865         * darwin-nat.c (darwin_attach): Make "args" const.
3866         * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3867         * linux-nat.c (linux_nat_attach): Make "args" const.
3868         * remote.c (extended_remote_attach_1, extended_remote_attach):
3869         Make "args" const.
3870         * target.h (struct target_ops) <to_attach>: Make "args" const.
3871         (find_default_attach): Likewise.
3872         * utils.c (parse_pid_to_attach): Make "args" const.
3873         * utils.h (parse_pid_to_attach): Update.
3874
3875 2014-06-04  Tom Tromey  <tromey@redhat.com>
3876
3877         * target-delegates.c: Rebuild.
3878         * target.c (default_thread_address_space): New function.
3879         (target_thread_address_space): Simplify.
3880         * target.h (struct target_ops) <to_thread_address_space>: Add
3881         TARGET_DEFAULT_FUNC.
3882
3883 2014-06-04  Doug Evans  <xdje42@gmail.com>
3884
3885         * guile/scm-type.c (type_smob): Remove duplicate typedef.
3886
3887 2014-06-04  Markus Metzger  <markus.t.metzger@intel.com>
3888
3889         * record-btrace.c: Include event-loop.h and inf-loop.h.
3890         (record_btrace_resume_exec_dir)
3891         (record_btrace_async_inferior_event_handler)
3892         (record_btrace_handle_async_inferior_event): New.
3893         (record_btrace_open): Create async event handler.
3894         (record_btrace_close): Delete async event handler.
3895         (record_btrace_resume): Set record_btrace_resume_exec_dir,
3896         Mark async event handler.
3897         (record_btrace_execution_direction): New.
3898         (init_record_btrace_ops): Initialize to_execution_direction.
3899
3900 2014-06-03  Doug Evans  <xdje42@gmail.com>
3901
3902         * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3903         (gdbscm_make_parameter): Ditto.
3904
3905 2014-06-03  Doug Evans  <dje@google.com>
3906
3907         * exec.c (exec_close_1): Call clear_section_table instead of
3908         resize_section_table.
3909         (clear_section_table): New function.
3910         (resize_section_table): Make static.  Rename arg num_added to
3911         adjustment.
3912         * exec.h (clear_section_table): Declare.
3913         (resize_section_table): Delete.
3914         * progspace.c (release_program_space): Call clear_section_table
3915         instead of resize_section_table.
3916
3917 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
3918
3919         * NEWS (Python Scripting): Add entry about the new xmethods
3920         feature.
3921
3922 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
3923
3924         * python/py-xmethods.c: New file.
3925         * python/py-objfile.c (objfile_object): New field 'xmethods'.
3926         (objfpy_dealloc): XDECREF on the new xmethods field.
3927         (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3928         field.
3929         (objfpy_get_xmethods): New function.
3930         (objfile_getset): New entry 'xmethods'.
3931         * python/py-progspace.c (pspace_object): New field 'xmethods'.
3932         (pspy_dealloc): XDECREF on the new xmethods field.
3933         (pspy_new, pspace_to_pspace_object): Initialize xmethods
3934         field.
3935         (pspy_get_xmethods): New function.
3936         (pspace_getset): New entry 'xmethods'.
3937         * python/python-internal.h: Add declarations for new functions.
3938         * python/python.c (_initialize_python): Invoke
3939         gdbpy_initialize_xmethods.
3940         * python/lib/gdb/__init__.py (xmethods): New
3941         attribute.
3942         * python/lib/gdb/xmethod.py: New file.
3943         * python/lib/gdb/command/xmethods.py: New file.
3944
3945 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
3946
3947         * eval.c (evaluate_subexp_standard): Call the xmethod if the
3948         best match method returned by find_overload_match is an xmethod.
3949         * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3950         the best matching operator returned by find_overload_match is an
3951         xmethod.
3952         * valops.c: #include "extension.h".
3953         (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3954         Return void.  The list of matching source methods is returned in
3955         "fn_list" and a vector of matching debug method workers is
3956         returned in "xm_worker_vec".  Update all callers.
3957         (value_find_oload_method_list): Likewise.
3958         (find_oload_champ): Add "xm_worker_vec" parameter.  If it is
3959         non-NULL, then the index of the best matching method in this
3960         vector is returned.  Update all callers.
3961         (find_overload_match): Include xmethods while performing overload
3962         resolution.
3963
3964 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
3965
3966         * defs.h (enum lval_type): New enumerator "lval_xcallable".
3967         * extension-priv.h (struct extension_language_ops): Add the
3968         xmethod interface.
3969         * extension.c (new_xmethod_worker, clone_xmethod_worker,
3970         get_matching_xmethod_workers, get_xmethod_argtypes,
3971         invoke_xmethod, free_xmethod_worker,
3972         free_xmethod_worker_vec): New functions.
3973         * extension.h: #include "common/vec.h".
3974         New function declarations.
3975         (struct xmethod_worker): New struct.
3976         (VEC (xmethod_worker_ptr)): New vector type.
3977         (xmethod_worker_ptr): New typedef.
3978         (xmethod_worker_vec): Likewise.
3979         * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3980         builtin_type.
3981         * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3982         (struct builtin_type): New field "xmethod".
3983         * valarith.c (value_ptradd): Assert that the value argument is not
3984         lval_xcallable.
3985         * valops.c (value_must_coerce_to_target): Return 0 for
3986         lval_xcallable values.
3987         * value.c (struct value): New field XM_WORKER in the field
3988         LOCATION.
3989         (value_address, value_raw_address): Return 0 for lval_xcallable
3990         values.
3991         (set_value_address): Assert that the value is not an
3992         lval_xcallable.
3993         (value_free): Free the associated xmethod worker when freeing
3994         lval_xcallable values.
3995         (set_value_component_location): Assert that the WHOLE value is not
3996         lval_xcallable.
3997         (value_of_xmethod, call_xmethod): New functions.
3998         * value.h: Declare "struct xmethod_worker".
3999         Declare new functions value_of_xmethod, call_xmethod.
4000
4001 2014-06-03  Joel Brobecker  <brobecker@adacore.com>
4002             Pedro Alves  <palves@redhat.com>
4003
4004         PR breakpoints/17000
4005         * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4006         New function, extracted from software_breakpoint_inserted_here_p.
4007         (software_breakpoint_inserted_here_p): Replace factored out code
4008         by call to find_non_raw_software_breakpoint_inserted_here.
4009         (bp_target_info_copy_insertion_state): New function.
4010         (bkpt_insert_location): Handle the case of a single-step
4011         breakpoint already inserted at the same address.
4012         (bkpt_remove_location): Handle the case of a single-step
4013         breakpoint still inserted at the same address.
4014         (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4015         breakpoint already inserted at the same address.
4016         (deprecated_remove_raw_breakpoint): Handle the case of a
4017         non-raw breakpoint still inserted at the same address.
4018         (find_single_step_breakpoint): New function, extracted from
4019         single_step_breakpoint_inserted_here_p.
4020         (find_single_step_breakpoint): New function,
4021         factored out from single_step_breakpoint_inserted_here_p.
4022         (single_step_breakpoint_inserted_here_p): Reimplement.
4023
4024 2014-06-03  Brad Mouring  <bmouring@ni.com>  (tiny patch)
4025
4026         Pushed by Joel Brobecker  <brobecker@adacore.com>
4027         * source.c (show_substitute_path_command): Fix display of matching
4028         substitution rules.
4029
4030 2014-06-03  Gary Benson  <gbenson@redhat.com>
4031
4032         * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4033
4034 2014-06-02  Doug Evans  <xdje42@gmail.com>
4035
4036         Add parameter support for Guile.
4037         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4038         (SUBDIR_GUILE_SRCS): Add scm-param.c.
4039         (scm-param.o): New rule.
4040         * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4041         (gdbscm_misc_error): Declare.
4042         (gdbscm_canonicalize_command_name): Declare.
4043         (gdbscm_scm_to_host_string): Declare.
4044         (gdbscm_scm_from_host_string): Declare.
4045         (gdbscm_initialize_parameters): Declare.
4046         * guile/guile.c (initialize_gdb_module): Call
4047         gdbscm_initialize_parameters.
4048         * guile/lib/gdb.scm: Export parameter symbols.
4049         * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4050         cmdscm_canonicalize_name and made public.  All callers updated.
4051         * guile/scm-exception.c (gdbscm_misc_error): New function.
4052         * guile/scm-param.c: New file.
4053         * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4054         (gdbscm_scm_to_host_string): New function.
4055         (gdbscm_scm_from_host_string): New function.
4056         * scm-utils.c (gdbscm_gc_dup_argv): New function.
4057
4058 2014-06-02  Doug Evans  <xdje42@gmail.com>
4059
4060         Add command support for Guile.
4061         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4062         (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4063         (scm-cmd.o): New rule.
4064         * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4065         (gdbscm_user_error_p): Declare.
4066         (gdbscm_parse_command_name): Declare.
4067         (gdbscm_valid_command_class_p): Declare.
4068         (gdbscm_initialize_commands): Declare.
4069         * guile/guile.c (initialize_gdb_module): Call
4070         gdbscm_initialize_commands.
4071         * guile/lib/gdb.scm: Export command symbols.
4072         * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4073         (throw-user-error): New function.
4074         * guile/scm-cmd.c: New file.
4075         * guile/scm-exception.c (user_error_symbol): New static global.
4076         (gdbscm_user_error_p): New function.
4077         (gdbscm_initialize_exceptions): Set user_error_symbol.
4078         * scm-utils.c (gdbscm_gc_xstrdup): New function.
4079
4080 2014-06-02  Phil Muldoon  <pmuldoon@redhat.com>
4081
4082         * top.c (command_loop): Handle comments here...
4083         (command_line_input): ... not here.
4084
4085 2014-06-02  Doug Evans  <xdje42@gmail.com>
4086
4087         Add progspace support for Guile.
4088         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4089         (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4090         (scm-progspace.o): New rule.
4091         * guile/guile-internal.h (pspace_smob): New typedef.
4092         (psscm_pspace_smob_pretty_printers): Declare.
4093         (psscm_pspace_smob_from_pspace): Declare.
4094         (psscm_scm_from_pspace): Declare.
4095         * guile/guile.c (initialize_gdb_module): Call
4096         gdbscm_initialize_pspaces.
4097         * guile/lib/gdb.scm: Export progspace symbols.
4098         * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4099         support.
4100         (append-pretty-printer!): Ditto.
4101         * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4102         Implement.
4103         * guile/scm-progspace.c: New file.
4104
4105 2014-06-03  Alan Modra  <amodra@gmail.com>
4106
4107         * ppc64-tdep.c (ppc64_standard_linkage8): New.
4108         (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4109
4110 2014-06-02  Doug Evans  <dje@google.com>
4111
4112         Add support for skeletonless type units.
4113         * dwarf2read.c (struct dwarf2_per_objfile): New member
4114         n_allocated_type_units.
4115         (struct dwarf2_per_objfile) <tu_stats>: New member
4116         nr_all_type_units_reallocs.
4117         (create_signatured_type_table_from_index): Initialize
4118         n_allocated_type_units
4119         (create_all_type_units): Ditto.
4120         (add_type_unit): Move up in file.  New arg slot.
4121         All callers updated.  Increase space for all_type_units more
4122         efficiently.
4123         (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4124         (lookup_dwo_signatured_type): Handle skeletonless TUs.
4125         (lookup_dwp_signatured_type): Ditto.
4126         (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4127         All callers updated.
4128         (build_type_psymtabs_1): Leave type_unit_groups as
4129         NULL if no TUs present.
4130         (print_tu_stats): New function.
4131         (process_skeletonless_type_unit): New function.
4132         (process_dwo_file_for_skeletonless_type_units): New
4133         function.
4134         (process_skeletonless_type_units): New function.
4135         (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4136         Call print tu_stats if debugging enabled.
4137
4138 2014-06-02  Pedro Alves  <palves@redhat.com>
4139
4140         * breakpoint.c (build_target_command_list): Don't build a command
4141         list if we have any duplicate location that isn't a dprintf.
4142
4143 2014-06-02  Pedro Alves  <palves@redhat.com>
4144
4145         * breakpoint.c (dprintf_breakpoint_hit): New function.
4146         (initialize_breakpoint_ops): Install it as dprintf's
4147         breakpoint_hit method.
4148
4149 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
4150
4151         * source.c (substitute_path_rule_matches): Simplify using
4152         filename_ncmp instead of FILENAME_CMP.
4153
4154 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
4155
4156         * source.c (substitute_path_rule_matches): Remove trailing spaces.
4157
4158 2014-06-01  Ludovic Courtès  <ludo@gnu.org>
4159
4160         * configure.ac: When Guile is available, check for the
4161         availability of 'scm_new_smob'.
4162         * configure, config.h.in: Regenerate.
4163         * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4164         function.
4165
4166 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
4167
4168         * frame.c (struct frame_info): Add stop_string field.
4169         (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4170         (get_prev_frame_always): Old content moved into
4171         get_prev_frame_always_1.  Call get_prev_frame_always_1 inside
4172         TRY_CATCH, handle MEMORY_ERROR exceptions.
4173         (frame_stop_reason_string): New function definition.
4174         * frame.h (unwind_stop_reason_to_string): Extend comment to
4175         mention frame_stop_reason_string.
4176         (frame_stop_reason_string): New function declaration.
4177         * stack.c (frame_info): Switch to frame_stop_reason_string.
4178         (backtrace_command_1): Switch to frame_stop_reason_string.
4179         * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4180         (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4181         * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4182
4183 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
4184
4185         * frame.c (frame_stop_reason_string): Rename to ...
4186         (unwind_stop_reason_to_string): this.
4187         * frame.h (frame_stop_reason_string): Rename to ...
4188         (unwind_stop_reason_to_string): this.
4189         * stack.c (frame_info): Update call to frame_stop_reason_string.
4190         (backtrace_command_1): Likewise.
4191         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4192         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4193
4194 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
4195
4196         * frame.c (remove_prev_frame): New function.
4197         (get_prev_frame_if_no_cycle): Create / discard cleanup using
4198         remove_prev_frame.
4199
4200 2014-05-29  Pedro Alves  <palves@redhat.com>
4201
4202         * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4203         and make it const.  When a single-step decays to a continue,
4204         clear 'step', not 'hw_step'.  Pass whether the caller wanted
4205         to step to user_visible_resume_ptid, not what we ask the
4206         target to do.
4207
4208 2014-05-29  Pedro Alves  <palves@redhat.com>
4209
4210         * infrun.c (process_event_stop_test, handle_step_into_function)
4211         (handle_step_into_function_backward): Adjust.
4212         Don't set the even thread's stop_step and call stop_waiting before
4213         calling end_stepping_range.  Instead do that ...
4214         (end_stepping_range): ... here.  Take an ecs pointer parameter.
4215
4216 2014-05-29  Pedro Alves  <palves@redhat.com>
4217
4218         * infrun.c (stop_stepping): Rename to ...
4219         (stop_waiting): ... this.
4220         (proceed): Update comment.
4221         (process_event_stop_test, handle_inferior_event)
4222         (handle_signal_stop, handle_step_into_function)
4223         (handle_step_into_function_backward): Update.
4224
4225 2014-05-29  Pedro Alves  <palves@redhat.com>
4226
4227         * infcall.c (run_inferior_call): Don't check whether the current
4228         thread is running after the proceed call.
4229
4230 2014-05-29  Pedro Alves  <palves@redhat.com>
4231             Tom Tromey  <tromey@redhat.com>
4232
4233         * NEWS: Mention "maint set target-async", "set mi-async", and that
4234         background execution commands are now always available.
4235         * target.h (target_async_permitted): Update comment.
4236         * target.c (target_async_permitted, target_async_permitted_1):
4237         Default to 1.
4238         (set_target_async_command): Rename to ...
4239         (maint_set_target_async_command): ... this.
4240         (show_target_async_command): Rename to ...
4241         (maint_show_target_async_command): ... this.
4242         (_initialize_target): Adjust.
4243         * infcmd.c (prepare_execution_command): Make extern.
4244         * inferior.h (prepare_execution_command): Declare.
4245         * infrun.c (set_observer_mode): Leave target async alone.
4246         * mi/mi-interp.c (mi_interpreter_init): Install
4247         mi_on_sync_execution_done as sync_execution_done observer.
4248         (mi_on_sync_execution_done): New function.
4249         (mi_execute_command_input_handler): Don't print the prompt if we
4250         just started a synchronous command with an async target.
4251         (mi_on_resume): Check sync_execution before printing prompt.
4252         * mi/mi-main.h (mi_async_p): Declare.
4253         * mi/mi-main.c: Include gdbcmd.h.
4254         (mi_async_p): New function.
4255         (mi_async, mi_async_1): New globals.
4256         (set_mi_async_command, show_mi_async_command, mi_async): New
4257         functions.
4258         (exec_continue): Call prepare_execution_command.
4259         (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4260         (mi_execute_async_cli_command): Use mi_async_p.
4261         (_initialize_mi_main): Install "set mi-async".  Make
4262         "target-async" a deprecated alias.
4263
4264 2014-05-29  Pedro Alves  <palves@redhat.com>
4265
4266         * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4267         (_initialize_cli_interp): Adjust.
4268         * event-loop.c: Include "observer.h".
4269         (start_event_loop): Notify 'command_error' observers instead of
4270         calling display_gdb_prompt.  Remove FIXME comment.
4271         * event-top.c (display_gdb_prompt): Remove call into the
4272         interpreters.
4273         * inf-loop.c: Include "observer.h".
4274         (inferior_event_handler): Notify 'command_error' observers instead
4275         of calling display_gdb_prompt.
4276         * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4277         observers instead of calling display_gdb_prompt.
4278         * interps.c (interp_set): Don't call display_gdb_prompt.
4279         (current_interp_display_prompt_p): Delete.
4280         * interps.h (interp_prompt_p): Delete declaration.
4281         (interp_prompt_p_ftype): Delete.
4282         (struct interp_procs) <prompt_proc_p>: Delete field.
4283         (current_interp_display_prompt_p): Delete declaration.
4284         * mi-interp.c (mi_interpreter_prompt_p): Delete.
4285         (_initialize_mi_interp): Adjust.
4286         * tui-interp.c (tui_init): Install 'sync_execution_done' and
4287         'command_error' observers.
4288         (tui_on_sync_execution_done, tui_on_command_error): New
4289         functions.
4290         (tui_display_prompt_p): Delete.
4291         (_initialize_tui_interp): Adjust.
4292
4293 2014-05-29  Pedro Alves  <palves@redhat.com>
4294
4295         PR gdb/13860
4296         * cli/cli-interp.c: Include infrun.h and observer.h.
4297         (cli_uiout, cli_interp): New globals.
4298         (cli_on_signal_received, cli_on_end_stepping_range)
4299         (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4300         functions.
4301         (cli_interpreter_init): Install them as 'end_stepping_range',
4302         'signal_received' 'signal_exited', 'exited' and 'no_history'
4303         observers.
4304         (_initialize_cli_interp): Remove cli_interp local.
4305         * infrun.c (handle_inferior_event): Call the several stop reason
4306         observers instead of printing the stop reason directly.
4307         (end_stepping_range): New function.
4308         (print_end_stepping_range_reason, print_signal_exited_reason)
4309         (print_exited_reason, print_signal_received_reason)
4310         (print_no_history_reason): Make static, and add an uiout
4311         parameter.  Print to that instead of to CURRENT_UIOUT.
4312         * infrun.h (print_end_stepping_range_reason)
4313         (print_signal_exited_reason, print_exited_reason)
4314         (print_signal_received_reason print_no_history_reason): New
4315         declarations.
4316         * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4317         'mi_uiout'.
4318         <cli_uiout>: New field.
4319         * mi/mi-interp.c (mi_interpreter_init): Adjust.  Create the new
4320         uiout for CLI output.  Install 'signal_received',
4321         'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4322         observers.
4323         (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4324         (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4325         (mi_on_no_history): New functions.
4326         (ui_out_free_cleanup): Delete function.
4327         (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4328         instead use the one already stored in the MI interpreter data.
4329         (mi_ui_out): Adjust.
4330         * tui/tui-interp.c: Include infrun.h and observer.h.
4331         (tui_interp): New global.
4332         (tui_on_signal_received, tui_on_end_stepping_range)
4333         (tui_on_signal_exited, tui_on_exited)
4334         (tui_on_no_history): New functions.
4335         (tui_init): Install them as 'end_stepping_range',
4336         'signal_received' 'signal_exited', 'exited' and 'no_history'
4337         observers.
4338         (_initialize_tui_interp): Delete tui_interp local.
4339
4340 2014-05-29  Pedro Alves  <palves@redhat.com>
4341
4342         PR gdb/15713
4343         * linux-nat.c (linux_nat_resume_callback): Rename the second
4344         parameter to 'except'.  Skip LP if it points to EXCEPT.
4345         (linux_nat_resume): Don't mark the event lwp as not stopped
4346         before resuming sibling lwps.  Instead ask
4347         linux_nat_resume_callback to skip the event lwp.  Mark it as not
4348         stopped after actually resuming it.
4349         (linux_handle_syscall_trap): Mark the lwp as not stopped after
4350         resuming it.
4351         (wait_lwp): Mark the lwp as stopped here.
4352         (stop_wait_callback): Mark the lwp as not stopped right after
4353         resuming it.  Don't mark lwps as stopped here.
4354         (linux_nat_filter_event): Mark the lwp as stopped earlier.
4355         (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4356
4357 2014-05-29  Pedro Alves  <palves@redhat.com>
4358
4359         PR PR15693
4360         * infrun.c (resume): Determine how much to resume depending on
4361         whether the caller wanted a step, not whether we can hardware step
4362         the target.  Mark all threads that we intend to run as running,
4363         unless we're calling an inferior function.
4364         (normal_stop): If the thread is running an infcall, don't finish
4365         thread state.
4366         * target.c (target_resume): Don't mark threads as running here.
4367
4368 2014-05-28  Joel Brobecker  <brobecker@adacore.com>
4369
4370         * serial.c (_initialize_serial): Remove support for
4371         the "set remotebaud" and "show remotebaud" commands.
4372         * NEWS: Add entry documenting the removal of that command.
4373
4374 2014-05-28  Yao Qi  <yao@codesourcery.com>
4375
4376         * charset.c: Fix typo in comments.
4377
4378 2014-05-27  Gary Benson  <gbenson@redhat.com>
4379
4380         * utils.c (internal_vproblem): Prompt for a bug report.
4381
4382 2014-05-26  Andy Wingo  <wingo@igalia.com>
4383
4384         * guile/scm-arch.c (arscm_mark_arch_smob):
4385         * guile/scm-block.c (bkscm_mark_block_smob)
4386         (bkscm_mark_block_syms_progress_smob):
4387         * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4388         * guile/scm-exception.c (exscm_mark_exception_smob):
4389         * guile/scm-frame.c (frscm_mark_frame_smob):
4390         * guile/scm-iterator.c (itscm_mark_iterator_smob):
4391         * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4392         * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4393         * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4394         (ppscm_mark_pretty_printer_worker_smob):
4395         * guile/scm-symbol.c (syscm_mark_symbol_smob):
4396         * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4397         * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4398         * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4399         mark functions.
4400         * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4401         function.
4402
4403 2014-05-26  Andy Wingo  <wingo@igalia.com>
4404             Doug Evans  <xdje42@gmail.com>
4405
4406         * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4407         empty_base_class.  All uses updated.
4408         (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4409         (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4410         Adapt all callers.
4411         * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4412         (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4413         (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4414         (gdbscm_gsmob_has_property_p, add_property_name)
4415         (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4416         * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4417         (gdb-object-has-property?, gdb-object-properties): Remove.
4418         (gdb-object-kind): Renamed from gsmob-kind.
4419
4420 2014-05-26  Andy Wingo  <wingo@igalia.com>
4421
4422         * configure.ac (try_guile_versions): Allow building with guile 2.2.
4423         * configure: Regenerate.
4424
4425 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
4426
4427         * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4428
4429 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
4430
4431         * record-btrace.c (record_btrace_allow_memory_access): Remove.
4432         (replay_memory_access_read_only, replay_memory_access_read_write)
4433         (replay_memory_access_types, replay_memory_access)
4434         (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4435         (cmd_set_record_btrace, cmd_show_record_btrace)
4436         (cmd_show_replay_memory_access): New.
4437         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4438         (record_btrace_remove_breakpoint): Replace
4439         record_btrace_allow_memory_access with replay_memory_access.
4440         (_initialize_record_btrace): Add commands.
4441         * NEWS: Announce it.
4442
4443 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4444
4445         * aarch64-linux-nat.c (asm/ptrace.h): Include.
4446
4447 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4448
4449         * MAINTAINERS (Write After Approval): Move self back from
4450         paper trail.
4451
4452 2014-05-22  Pedro Alves  <palves@redhat.com>
4453
4454         * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4455         (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4456         (disable_randomization, enum exec_direction_kind)
4457         (execution_direction, stop_registers, start_remote)
4458         (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4459         (wait_for_inferior, normal_stop, get_last_target_status)
4460         (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4461         (insert_step_resume_breakpoint_at_sal)
4462         (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4463         (set_step_info, print_stop_event, signal_stop_state)
4464         (signal_print_state, signal_pass_state, signal_stop_update)
4465         (signal_print_update, signal_pass_update)
4466         (update_signals_program_target, clear_exit_convenience_vars)
4467         (displaced_step_dump_bytes, update_observer_mode)
4468         (signal_catch_update, gdb_signal_from_command): Move
4469         declarations ...
4470         * infrun.h: ... to this new file.
4471         * amd64-tdep.c: Include infrun.h.
4472         * annotate.c: Include infrun.h.
4473         * arch-utils.c: Include infrun.h.
4474         * arm-linux-tdep.c: Include infrun.h.
4475         * arm-tdep.c: Include infrun.h.
4476         * break-catch-sig.c: Include infrun.h.
4477         * breakpoint.c: Include infrun.h.
4478         * common/agent.c: Include infrun.h instead of inferior.h.
4479         * corelow.c: Include infrun.h.
4480         * event-top.c: Include infrun.h.
4481         * go32-nat.c: Include infrun.h.
4482         * i386-tdep.c: Include infrun.h.
4483         * inf-loop.c: Include infrun.h.
4484         * infcall.c: Include infrun.h.
4485         * infcmd.c: Include infrun.h.
4486         * infrun.c: Include infrun.h.
4487         * linux-fork.c: Include infrun.h.
4488         * linux-nat.c: Include infrun.h.
4489         * linux-thread-db.c: Include infrun.h.
4490         * monitor.c: Include infrun.h.
4491         * nto-tdep.c: Include infrun.h.
4492         * procfs.c: Include infrun.h.
4493         * record-btrace.c: Include infrun.h.
4494         * record-full.c: Include infrun.h.
4495         * remote-m32r-sdi.c: Include infrun.h.
4496         * remote-mips.c: Include infrun.h.
4497         * remote-notif.c: Include infrun.h.
4498         * remote-sim.c: Include infrun.h.
4499         * remote.c: Include infrun.h.
4500         * reverse.c: Include infrun.h.
4501         * rs6000-tdep.c: Include infrun.h.
4502         * s390-linux-tdep.c: Include infrun.h.
4503         * solib-irix.c: Include infrun.h.
4504         * solib-osf.c: Include infrun.h.
4505         * solib-svr4.c: Include infrun.h.
4506         * target.c: Include infrun.h.
4507         * top.c: Include infrun.h.
4508         * windows-nat.c: Include infrun.h.
4509         * mi/mi-interp.c: Include infrun.h.
4510         * mi/mi-main.c: Include infrun.h.
4511         * python/py-threadevent.c: Include infrun.h.
4512
4513 2014-05-22  Pedro Alves  <palves@redhat.com>
4514
4515         * infrun.c (handle_inferior_event): Store the exit code for
4516         --return-child-result here, instead of ...
4517         (print_exited_reason): ... here.
4518
4519 2014-05-21  Pedro Alves  <palves@redhat.com>
4520
4521         PR gdb/13860
4522         * gdbthread.h (struct thread_control_state): New field
4523         `command_interp'.
4524         * infrun.c (follow_fork): Copy the new thread control field to the
4525         child fork thread.
4526         (clear_proceed_status_thread): Clear the new thread control field.
4527         (proceed): Set the new thread control field.
4528         * interps.h (command_interp): Declare.
4529         * interps.c (command_interpreter): New global.
4530         (command_interp): New function.
4531         (interp_exec): Set `command_interpreter' while here.
4532         * cli-out.c (cli_uiout_dtor): New function.
4533         (cli_ui_out_impl): Install it.
4534         * mi/mi-interp.c: Include cli-out.h.
4535         (mi_cmd_interpreter_exec): Add comment.
4536         (restore_current_uiout_cleanup): New function.
4537         (ui_out_free_cleanup): New function.
4538         (mi_on_normal_stop): If finishing an execution command started by
4539         a CLI command, or any kind of breakpoint-like event triggered,
4540         print the stop event to the output (CLI) stream.
4541         * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4542
4543 2014-05-21  Pedro Alves  <palves@redhat.com>
4544
4545         * cli/cli-cmds.c (list_command): Handle the first "list" after the
4546         current source line having changed.
4547         * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4548         * infrun.c (normal_stop): Adjust call to
4549         set_current_sal_from_frame.
4550         * source.c (clear_lines_listed_range): New function.
4551         (set_current_source_symtab_and_line, identify_source_line): Clear
4552         the lines listed range.
4553         (line_info): Handle the first "info line" after the current source
4554         line having changed.
4555         * stack.c (print_stack_frame): Remove center handling.
4556         (set_current_sal_from_frame): Remove 'center' parameter.  Don't
4557         center sal.line.
4558
4559 2014-05-21  Pedro Alves  <palves@redhat.com>
4560
4561         * inf-child.c (inf_child_mourn_inferior): New function.
4562         * inf-child.h (inf_child_mourn_inferior): New declaration.
4563         * darwin-nat.c (darwin_mourn_inferior): Use
4564         inf_child_mourn_inferior.
4565         * gnu-nat.c (gnu_mourn_inferior): Likewise.
4566         * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4567         * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4568         * nto-procfs.c (procfs_mourn_inferior): Likewise.
4569         * windows-nat.c (windows_mourn_inferior): Likewise.
4570
4571 2014-05-21  Doug Evans  <xdje42@gmail.com>
4572
4573         * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4574
4575 2014-05-21  Doug Evans  <xdje42@gmail.com>
4576
4577         * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4578         (gdbscm_out_of_range_error): Ditto.
4579         (gdbscm_memory_error): Ditto.
4580         * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4581         * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4582         (gdbscm_out_of_range_error): Update.
4583         (gdbscm_memory_error): Update.
4584         (gdbscm_scm_to_target_string_unsafe): Delete.
4585
4586 2014-05-21  Pedro Alves  <palves@redhat.com>
4587
4588         * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4589         globals.
4590         (inf_child_open_target): New function.
4591         (inf_child_open): Use inf_child_open_target to push the target
4592         instead of erroring out.
4593         (inf_child_disconnect, inf_child_close)
4594         (inf_child_maybe_unpush_target): New functions.
4595         (inf_child_target): Install inf_child_disconnect and
4596         inf_child_close.  Store a pointer to the returned object.
4597         * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4598         declarations.
4599         * target.c (auto_connect_native_target): New global.
4600         (show_default_run_target): New function.
4601         (find_default_run_target): Return NULL if automatically connecting
4602         to the native target is disabled.
4603         (_initialize_target): Install set/show auto-connect-native-target.
4604         * NEWS: Mention "set auto-connect-native-target", and "target
4605         native".
4606         * linux-nat.c (super_close): New global.
4607         (linux_nat_close): Call super_close.
4608         (linux_nat_add_target): Store a pointer to the base class's
4609         to_close method.
4610         * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4611         inf_child_maybe_unpush.
4612         * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4613         already pushed.
4614         (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4615         the inferior.  Use inf_child_maybe_unpush_target.
4616         (inf_ttrace_attach): Don't push the target if it is already
4617         pushed.
4618         (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4619         * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4620         after mourning the inferior.  Use inf_child_maybe_unpush_target.
4621         (darwin_attach_pid): Don't push the target if it is already
4622         pushed.
4623         * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4624         mourning the inferior.  Use inf_child_maybe_unpush_target.
4625         (gnu_detach): Use inf_child_maybe_unpush_target.
4626         * go32-nat.c (go32_create_inferior): Don't push the target if it
4627         is already pushed.
4628         (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4629         * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4630         (procfs_open): Rename to ...
4631         (procfs_open_1): ... this.  Add target_ops parameter.  Adjust
4632         comments.  Can target_preopen before changing node.  Call
4633         inf_child_open_target to push the target explicitly.
4634         (procfs_attach): Don't push the target if it is already pushed.
4635         (procfs_detach): Use inf_child_maybe_unpush_target.
4636         (procfs_create_inferior): Don't push the target if it is already
4637         pushed.
4638         (nto_native_ops): New global.
4639         (procfs_open): Reimplement.
4640         (procfs_native_open): New function.
4641         (init_procfs_targets): Install procfs_native_open as to_open of
4642         "target native".  Store a pointer to the "native" target in
4643         nto_native_ops.
4644         * procfs.c (procfs_attach): Don't push the target if it is already
4645         pushed.
4646         (procfs_detach): Use inf_child_maybe_unpush_target.
4647         (procfs_mourn_inferior): Only unpush the target after mourning the
4648         inferior.  Use inf_child_maybe_unpush_target.
4649         (procfs_init_inferior): Don't push the target if it is already
4650         pushed.
4651         * windows-nat.c (do_initial_windows_stuff): Don't push the target
4652         if it is already pushed.
4653
4654 2014-05-21  Pedro Alves  <palves@redhat.com>
4655
4656         * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4657         and "procfs" targets are now called "native" instead.
4658
4659 2014-05-21  Pedro Alves  <palves@redhat.com>
4660
4661         * go32-nat.c (go32_open): Delete.
4662         (go32_target): Don't override the to_open method.
4663
4664 2014-05-21  Pedro Alves  <palves@redhat.com>
4665
4666         * nto-procfs.c (procfs_can_run): New function.
4667         (nto_procfs_ops): New global.
4668         (init_procfs_targets): New, based on procfs_target.  Install
4669         "target native" in addition to "target procfs".
4670         (_initialize_procfs): Call init_procfs_targets instead of adding
4671         the target here.
4672
4673 2014-05-21  Pedro Alves  <palves@redhat.com>
4674
4675         * windows-nat.c (windows_target): Don't override to_shortname,
4676         to_longname or to_doc.
4677
4678 2014-05-21  Pedro Alves  <palves@redhat.com>
4679
4680         * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4681         to_doc.
4682
4683 2014-05-21  Pedro Alves  <palves@redhat.com>
4684
4685         * darwin-nat.c (_initialize_darwin_inferior): Don't override
4686         to_shortname, to_longname or to_doc.
4687
4688 2014-05-21  Pedro Alves  <palves@redhat.com>
4689
4690         * go32-nat.c (go32_target): Don't override to_shortname,
4691         to_longname or to_doc.
4692
4693 2014-05-21  Pedro Alves  <palves@redhat.com>
4694
4695         * inf-child.c (inf_child_open): Remove mention of "child".
4696         (inf_child_target): Rename target to "native" instead of "child".
4697
4698 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4699
4700         * Makefile.in (SFILES): Delete "regset.c".
4701         (COMMON_OBS): Delete "regset.o".
4702         * regset.c: Remove.
4703         * regset.h (regset_alloc): Delete prototype.
4704
4705 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4706
4707         * sparc-linux-tdep.c (sparc32_linux_gregset)
4708         (sparc32_linux_fpregset): New static regset structures.
4709         (sparc32_linux_init_abi): Drop dynamic regset allocations.
4710         * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4711         'fpregset' fields.
4712         * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4713         (sparc64_linux_fpregset): New static regset structures.
4714         (sparc64_linux_init_abi): Drop dynamic regset allocations.
4715         * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4716         New static regset structures.
4717         (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4718         * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4719         New static regset structures.
4720         (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4721         * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4722         New static regset structures.
4723         (sparc64obsd_init_abi): Drop dynamic regset allocations.
4724         * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4725         New static regset structures.
4726         (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4727
4728 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4729
4730         * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4731         (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4732         register maps ("regmaps") from "*regset" to "*regmap".  Do this
4733         for all regmap types and variables.
4734         * sparc-linux-tdep.c (sparc32_linux_step_trap)
4735         (sparc32_linux_supply_core_gregset)
4736         (sparc32_linux_collect_core_gregset)
4737         (sparc32_linux_supply_core_fpregset)
4738         (sparc32_linux_collect_core_fpregset): Likewise.
4739         * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4740         (sparc_gregmap, sparc_fpregmap): ... these.
4741         (sparc_supply_gregset, sparc_collect_gregset)
4742         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4743         (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4744         (_initialize_sparc_nat): Rename regmaps.
4745         * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4746         (sparc_gregmap, sparc_fpregmap): ... these.
4747         (sparc_supply_gregset, sparc_collect_gregset)
4748         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4749         * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4750         Rename macros to...
4751         (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4752         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4753         Likewise.
4754         * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4755         Rename to...
4756         (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4757         * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4758         (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4759         regmaps.
4760         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4761         (sparc32_bsd_fpregset): Rename to...
4762         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4763         (sparc32_bsd_fpregmap): ... these.
4764         * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4765         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4766         (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4767         (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4768         (struct sparc_gregmap, struct sparc_fpregmap)
4769         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4770         (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4771         (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4772         (sparc32_supply_regset, sparc32_collect_gregset)
4773         (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4774         prototypes.
4775         * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4776         (sparc64_linux_ptrace_gregmap): ... this.
4777         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4778         (_initialize_sparc64_linux_nat): Rename regmaps.
4779         * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4780         (sparc64_linux_core_gregmap): ... this.
4781         (sparc64_linux_supply_core_gregset)
4782         (sparc64_linux_collect_core_gregset)
4783         (sparc64_linux_supply_core_fpregset)
4784         (sparc64_linux_collect_core_fpregset): Rename regmaps.
4785         * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4786         (sparc64_sol2_fpregset): Rename to...
4787         (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4788         * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4789         (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4790         regmaps.
4791         * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4792         (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4793         (sparc64_bsd_fpregset): Rename to...
4794         (struct sparc_gregmap, sparc64_sol2_gregmap)
4795         (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4796         (sparc64_bsd_fpregmap): ... these.
4797         (sparc64_supply_gregset, sparc64_collect_gregset)
4798         (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4799         prototypes.
4800         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4801         * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4802         (sparc64fbsd_gregmap): ... this.
4803         (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4804         (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4805         Rename regmaps.
4806         * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4807         (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4808         (sparc64nbsd_collect_fpregset): Likewise.
4809         * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4810         (sparc64nbsd_gregmap): ... this.
4811         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4812         regmaps.
4813         * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4814         * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4815         (sparc64obsd_gregmap): ... this.
4816         (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4817         regmaps.
4818         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4819         * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4820         (sparc32nbsd_gregmap): ... this.
4821         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4822         regmaps.
4823
4824 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4825
4826         * score-tdep.c (score7_linux_gregset): New static regset
4827         structure.
4828         (score7_linux_regset_from_core_section): Remove dynamic regset
4829         allocation.
4830         (score_gdbarch_init): Drop allocation of tdep structure.
4831         * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4832
4833 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4834
4835         * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4836         regset structures.
4837         (am33_regset_from_core_section): Remove dynamic regset
4838         allocations.
4839
4840 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4841
4842         * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4843         (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4844         structures.
4845         (mips_linux_regset_from_core_section): Remove dynamic regset
4846         allocations.
4847         * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4848         'gregset64', 'fpregset', and 'fpregset64'.
4849         * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4850         deleted tdep fields.
4851
4852 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4853
4854         * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4855         regset structures.
4856         (amd64_regset_from_core_section): Remove dynamic regset
4857         allocations.
4858         * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4859         structure.
4860         (amd64obsd_regset_from_core_section): Remove dynamic regset
4861         allocation.
4862         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4863         Likewise.
4864         * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4865         x86-common regset supply function.
4866         * i386-tdep.c (i386_collect_gregset): Make static.
4867         (i386_gregset): New global regset structure.
4868         (i386_fpregset, i386_xstateregset): New static regset structures.
4869         (i386_regset_from_core_section): Remove dynamic regset
4870         allocations.
4871         (i386_gdbarch_init): Remove initialization of tdep fields
4872         'gregset', 'fpregset', and 'xstateregset'.
4873         * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4874         'fpregset', and 'xstateregset'.
4875         (i386_collect_gregset): Remove prototype.
4876         (i386_gregset): New declaration.
4877         * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4878         structure.
4879         (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4880         allocation.
4881
4882 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4883
4884         * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4885         (arm_linux_vfpregset): New static regset structures.
4886         (arm_linux_regset_from_core_section): Remove dynamic allocation of
4887         regset structures.
4888         * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4889         and 'vfpregset' fields.
4890
4891 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4892
4893         * aarch64-linux-tdep.c (aarch64_linux_gregset)
4894         (aarch64_linux_fpregset): New static regset structures.
4895         (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4896         of regset structures.
4897         * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4898         'fpregset' fields.
4899
4900 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4901
4902         * regset.h (struct regset): Remove gdbarch field.
4903         * regset.c (regset_alloc): Drop initialization of gdbarch field.
4904         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4905         * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4906         Likewise.
4907         * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4908         (ppc32_linux_fpregset, ppc32_linux_vrregset)
4909         (ppc32_linux_vsxregset): Likewise.
4910         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4911         via the regcache instead of the regset.
4912         * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4913         (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4914         * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4915         * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4916         Likewise.
4917
4918 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4919
4920         * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4921         Constify structures.
4922         * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4923         (alphanbsd_aout_gregset): Likewise.
4924         * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4925         * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4926         Likewise.
4927         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4928         * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4929         Likewise.
4930         * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4931         * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4932         * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4933         * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4934         * m88k-tdep.c (m88k_gregset): Likewise.
4935         * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4936         * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4937         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4938         * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4939         * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4940         * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4941         * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4942         * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4943         * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4944         Likewise.
4945         * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4946         * sh-tdep.h (sh_corefile_gregset): Likewise.
4947         * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4948         * vax-tdep.c (vax_gregset): Likewise.
4949
4950 2014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
4951
4952         Fix TLS access for -static -pthread.
4953         * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4954         (try_thread_db_load_1): Initialize it.
4955         (thread_db_get_thread_local_address): Call it if LM is zero.
4956         * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4957         * target.h (struct target_ops) (to_get_thread_local_address): Add
4958         load_module_addr comment.
4959
4960 2014-05-21  Pedro Alves  <palves@redhat.com>
4961
4962         * dcache.c (dcache_read_memory_partial): If reading the cache line
4963         fails, fallback to reading just the memory the caller wanted.
4964
4965 2014-05-20  Doug Evans  <dje@google.com>
4966
4967         * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4968         instead of get_current_arch.
4969
4970 2014-05-20  Pedro Alves  <palves@redhat.com>
4971
4972         * NEWS: Mention that compare-sections now works with all targets.
4973
4974         * remote.c (PACKET_qCRC): New enum value.
4975         (remote_verify_memory): Don't send qCRC if the target has no
4976         execution.  Use packet_support/packet_ok.  If the target doesn't
4977         support the qCRC packet, fallback to a deep memory copy.
4978         (compare_sections_command): Say "target image" instead of "remote
4979         executable".
4980         (_initialize_remote): Add PACKET_qCRC to the list of config
4981         packets that have no associated command.  Extend comment.
4982         * target.c (simple_verify_memory, default_verify_memory): New
4983         function.
4984         * target.h (struct target_ops) <to_verify_memory>: Default to
4985         default_verify_memory.
4986         (simple_verify_memory): New declaration.
4987         * target-delegates.c: Regenerate.
4988
4989 2014-05-20  Markus Metzger  <markus.t.metzger@intel.com>
4990
4991         * record-btrace.c (record_btrace_step_thread): Check for empty history.
4992
4993 2014-05-20  Hui Zhu  <hui@codesourcery.com>
4994             Yao Qi  <yao@codesourcery.com>
4995
4996         PR backtrace/16558
4997         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4998         and change address of sp and pc.
4999
5000 2014-05-19  Tom Tromey  <tromey@redhat.com>
5001
5002         * gdbtypes.c (rank_function): Use XNEWVEC.
5003         * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5004
5005 2014-05-19  Doug Evans  <dje@google.com>
5006
5007         * dwarf2read.c (build_type_psymtabs_1): Renamed from
5008         build_type_unit_groups and moved closer to only caller.  Remove
5009         arguments.  All references updated.  Remove outdated .gdb_index
5010         comment.
5011         (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5012         build_type_psymtabs_1.
5013
5014 2014-05-19  Doug Evans  <dje@google.com>
5015
5016         * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5017         n_type_unit_groups, all_type_unit_groups.  All uses removed.
5018         (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5019         (dw2_get_cutu): Renamed from dw2_get_cu.  All callers updated.
5020         (dw2_get_cu): Renamed from dw2_get_primary_cu.  All callers updated.
5021         (add_type_unit_group_to_table): Delete.
5022
5023 2014-05-19  Doug Evans  <dje@google.com>
5024
5025         * eval.c (evaluate_subexp_standard): Add some comments.
5026
5027 2014-05-17  Doug Evans  <xdje42@gmail.com>
5028
5029         * progspace.c (remove_program_space): Delete, unused.
5030         * progspace.h (remove_program_space): Ditto.
5031
5032 2014-05-17  Doug Evans  <xdje42@gmail.com>
5033
5034         * inferior.c (prune_inferiors): Fix comment.
5035         (remove_inferior_command): Call prune_program_spaces.
5036
5037 2014-05-16  Doug Evans  <dje@google.com>
5038
5039         New command line option -D.
5040         * NEWS: Mention it.
5041         * main.c (set_gdb_data_directory): New function.
5042         (captured_main): Recognize -D.  Flag error for --data-directory "".
5043         Call set_gdb_data_directory.
5044         (print_gdb_help): Print --data-directory, -D.
5045         * main.h (set_gdb_data_directory): Declare.
5046         * top.c (staged_gdb_datadir): New static global.
5047         (set_gdb_datadir): Call set_gdb_data_directory
5048         (show_gdb_datadir): New function.
5049         (init_main): Update init of data-directory parameter.
5050
5051 2014-05-16  Gregory Fong  <gregory.0xf0@gmail.com>
5052
5053         Import the "dirfd" gnulib module.
5054         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5055         * gnulib/aclocal.m4: Update.
5056         * gnulib/config.in: Update.
5057         * gnulib/configure: Update.
5058         * gnulib/import/Makefile.am: Update.
5059         * gnulib/import/Makefile.in: Update.
5060         * gnulib/import/dirfd.c: New.
5061         * gnulib/import/m4/dirfd.m4: New.
5062         * gnulib/import/m4/gnulib-cache.m4: Update.
5063         * gnulib/import/m4/gnulib-comp.m4: Update.
5064
5065 2014-05-16  Pierre Muller  <muller@sourceware.org>
5066             Yao Qi  <yao@codesourcery.com>
5067
5068         * valprint.c (print_wchar): Move the code on checking whether
5069         W is a printable wide char to the default branch of switch
5070         statement below.  Call wchar_printable instead of gdb_iswprint.
5071
5072 2014-05-16  Taimoor Mirza  <tmirza@codesourcery.com>
5073
5074         * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5075         ldr.w and ldrd instructions.
5076
5077 2014-05-15  Doug Evans  <dje@google.com>
5078
5079         * dwarf2read.c (read_structure_type): Delete outdated comments.
5080
5081 2014-05-14  Tom Tromey  <tromey@redhat.com>
5082
5083         * macrocmd.c (print_macro_definition): Reindent.
5084
5085 2014-05-13  Doug Evans  <xdje42@gmail.com>
5086
5087         * python/py-cmd.c (cmdpy_completer): Add comment.
5088         (completers): Make const.
5089
5090 2014-05-13  Simon Marchi  <simon.marchi@ericsson.com>
5091
5092         * infrun.c (resume): Remove should_resume (unused).  Move up
5093         declaration of resume_ptid.
5094
5095 2014-05-13  Tom Tromey  <tromey@redhat.com>
5096
5097         * language.h (unop_type_check): Remove.
5098         (binop_type_check): Don't declare.
5099
5100 2014-05-13  Andreas Arnez  <arnez@vnet.linux.ibm.com>
5101
5102         * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5103         call to regcache_raw_collect.
5104
5105 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
5106
5107         * mi/mi-console.c (mi_console_raw_packet): Use the value from
5108         mi_console->quote as the quoting character.
5109
5110 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
5111
5112         * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5113
5114 2014-04-29  Tom Tromey  <tromey@redhat.com>
5115
5116         * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5117         "show debug varobj".
5118
5119 2014-05-07  Kyle McMartin  <kyle@redhat.com>
5120
5121         Pushed by Joel Brobecker  <brobecker@adacore.com>.
5122         * aarch64-tdep.c (aarch64_software_single_step): New function.
5123         (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5124         with aarch64_software_single_step.
5125
5126 2014-05-05  Joel Brobecker  <brobecker@adacore.com>
5127
5128         GDB 7.7.1 released.
5129
5130 2014-05-05  Keith Seitz  <keiths@redhat.com>
5131
5132         * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5133         variable or history value is successfully parsed.
5134
5135 2014-05-05  Yao Qi  <yao@codesourcery.com>
5136             Pedro Alves  <palves@redhat.com>
5137
5138         * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5139         address of blocks that intersects the requested range.  Trim
5140         LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5141         sections.
5142         * ctf.c (ctf_xfer_partial): Likewise.
5143
5144 2014-05-05  Yao Qi  <yao@codesourcery.com>
5145
5146         * printcmd.c (display_command): Remove the check to
5147         target_has_execution.
5148
5149 2014-05-03  Mark Kettenis  <kettenis@gnu.org>
5150
5151         * ppcobsd-nat.c: Include "obsd-nat.h".
5152         (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5153         add_target.
5154         * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5155
5156 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
5157
5158         * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5159         and 16-bit signed and unsigned arguments.  Update comment.
5160         (stap_parse_probe_arguments): Extend code to handle such
5161         arguments.  Use warning instead of complaint to notify about
5162         unrecognized bitness.
5163
5164 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
5165
5166         PR breakpoints/16889
5167         * stap-probe.c (stap_parse_probe_arguments): Simplify
5168         check for non-prefixed probes (i.e., probes whose
5169         arguments do not start with "N@").  Always set the
5170         argument type to a sane value.
5171
5172 2014-05-01  David Taylor  <dtaylor@emc.com>
5173
5174         * remote.c (compare_sections_command): Add -r option to compare
5175         all loadable read-only sections.
5176
5177 2014-04-30  Siva Chandra Reddy  <sivachandra@google.com>
5178
5179         * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5180         dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5181         Update all callers.
5182         * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5183         * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5184         Remove unused CORE_ADDR argument.  Update all callers.
5185
5186 2014-04-29  Pedro Alves  <palves@redhat.com>
5187
5188         * remote.c (struct packet_config) <detect>: Extend comment.
5189         (add_packet_config_cmd): Don't set the config's detect or support
5190         fields here.
5191         (init_all_packet_configs): Also initialize the config's 'detect'
5192         field.
5193         (reset_all_packet_configs_support): New function.
5194         (remote_open_1): Call reset_all_packet_configs_support instead of
5195         init_all_packet_configs.
5196         (_initialize_remote): Initialize all packet configs.  Assert that
5197         all packets have an associated command, except a few known
5198         outliers.
5199
5200 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
5201
5202         * dwarf2read.c (read_subrange_type): Handle dynamic
5203         DW_AT_lower_bound attributes.
5204
5205 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
5206
5207         * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5208         dynamic bounds before computing its upper bound.
5209         (ada_discrete_type_low_bound): Same as above with the lower bound.
5210
5211 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
5212
5213         * dwarf2read.c (is_dynamic_type): Return true for dynamic
5214         range types.  Adjust the array handling implementation to
5215         take advantage of this change.
5216         (resolve_dynamic_range): New function, mostly extracted from
5217         resolve_dynamic_bounds.
5218         (resolve_dynamic_array): New function, mostly extracted from
5219         resolve_dynamic_bounds.
5220         (resolve_dynamic_bounds): Delete.
5221         (resolve_dynamic_type): Reimplement.  Add handling of
5222         TYPE_CODE_RANGE types.
5223
5224 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
5225
5226         * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5227         handling of parallel ___XA types.
5228
5229 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
5230
5231         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5232         unnecessary second call to static_unwrap_type.
5233
5234 2014-04-27  Hui Zhu  <hui@codesourcery.com>
5235
5236         * stack.c (print_frame_info): Call do_gdb_disassembly with
5237         DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5238
5239 2014-04-26  Doug Evans  <xdje42@gmail.com>
5240
5241         * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5242
5243 2014-04-25  Pedro Alves  <palves@redhat.com>
5244
5245         PR server/16255
5246         * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5247         (linux_ptrace_attach_fail_reason): ... this.  Remove "warning: "
5248         and newline from built string.
5249         * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5250         (linux_ptrace_attach_fail_reason): ... this.
5251         * linux-nat.c (linux_nat_attach): Adjust to use
5252         linux_ptrace_attach_fail_reason.
5253
5254 2014-04-25  Pedro Alves  <palves@redhat.com>
5255
5256         * remote.c (struct remote_state): Remove multi_process_aware,
5257         non_stop_aware, cond_tracepoints, cond_breakpoints,
5258         breakpoint_commands, fast_tracepoints, static_tracepoints,
5259         install_in_trace, disconnected_tracing,
5260         enable_disable_tracepoints, string_tracing, and
5261         augmented_libraries_svr4_read fields.
5262         (remote_multi_process_p): Move further below in the file.
5263         (struct packet_config): Add comments.
5264         (update_packet_config): Delete function.
5265         (show_packet_config_cmd): Use packet_config_support.
5266         (add_packet_config_cmd): Use NULL as set callback.
5267         (packet_ok): "set remote foo-packet"-style commands no longer
5268         change config->supported -- adjust.
5269         (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5270         (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5271         (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5272         (PACKET_QNonStop, PACKET_multiprocess_feature)
5273         (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5274         (PACKET_DisconnectedTracing_feature)
5275         (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5276         (set_remote_protocol_packet_cmd): Delete function.
5277         (packet_config_support, packet_support): New functions.
5278         (set_remote_protocol_Z_packet_cmd): Don't call
5279         update_packet_config.
5280         (remote_query_attached, remote_pass_signals)
5281         (remote_program_signals, remote_threads_info)
5282         (remote_threads_extra_info, remote_start_remote): Use
5283         packet_support.
5284         (remote_start_remote): Use packet_config_support and
5285         packet_support.
5286         (init_all_packet_configs): Set all packets to unknown support,
5287         instead of calling update_packet_config.
5288         (remote_check_symbols): Use packet_support.
5289         (remote_supported_packet): Unconditionally set the packet config's
5290         support status.
5291         (remote_multi_process_feature, remote_non_stop_feature)
5292         (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5293         (remote_breakpoint_commands_feature)
5294         (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5295         (remote_install_in_trace_feature)
5296         (remote_disconnected_tracing_feature)
5297         (remote_enable_disable_tracepoint_feature)
5298         (remote_string_tracing_feature)
5299         (remote_augmented_libraries_svr4_read_feature): Delete functions.
5300         (remote_protocol_features): Adjust to use remote_supported_packet
5301         for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5302         "ConditionalTracepoints", "ConditionalBreakpoints",
5303         "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5304         "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5305         "EnableDisableTracepoints", and "tracenz".
5306         (remote_query_supported): Use packet_support.
5307         (remote_open_1): Adjust.
5308         (extended_remote_attach_1): Use packet_support.  Switch on the
5309         result of packet_ok instead of checking whether the packet ended
5310         up disabled.
5311         (remote_vcont_resume): Use packet_support.
5312         (remote_resume, remote_stop_ns, fetch_register_using_p)
5313         (remote_prepare_to_store, store_register_using_P)
5314         (check_binary_download, remote_write_bytes): Use packet_support.
5315         (remote_vkill): Use packet_support.  Switch on the result of
5316         packet_ok instead of checking whether the packet ended up
5317         disabled.
5318         (extended_remote_supports_disable_randomization): Use
5319         packet_support.
5320         (extended_remote_run): Switch on the result of packet_ok instead
5321         of checking whether the packet ended up disabled.
5322         (remote_insert_breakpoint, remote_remove_breakpoint)
5323         (remote_insert_watchpoint, remote_remove_watchpoint)
5324         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5325         packet_support.
5326         (remote_search_memory): Use packet_config_support.
5327         (remote_get_thread_local_address, remote_get_tib_address)
5328         (remote_hostio_send_command, remote_can_execute_reverse): Use
5329         packet_support.
5330         (remote_supports_cond_tracepoints)
5331         (remote_supports_cond_breakpoints)
5332         (remote_supports_fast_tracepoints)
5333         (remote_supports_static_tracepoints)
5334         (remote_supports_install_in_trace)
5335         (remote_supports_enable_disable_tracepoint)
5336         (remote_supports_string_tracing)
5337         (remote_can_run_breakpoint_commands): Rewrite, checking whether
5338         the packet config says the feature is enabled or disabled.
5339         (remote_download_tracepoint, remote_trace_set_readonly_regions)
5340         (remote_get_trace_status): Use packet_support.
5341         (remote_set_disconnected_tracing): Adjust to check whether the
5342         feature is enabled with packet_support.
5343         (remote_set_trace_buffer_size, remote_use_agent)
5344         (remote_can_use_agent, remote_supports_btrace): Use
5345         packet_support.
5346         (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5347         Use packet_config_support.
5348         (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5349         the packet config says the feature is enabled or disabled.
5350         (set_range_stepping): Use packet_support.
5351
5352 2014-04-25  Tom Tromey  <tromey@redhat.com>
5353
5354         * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5355         argument.
5356
5357 2014-04-24  Sanimir Agovic  <sanimir.agovic@intel.com>
5358
5359         * NEWS: Mention support for C99 variable length arrays.
5360
5361 2014-04-24  Joel Brobecker  <brobecker@adacore.com>
5362
5363         * ada-lang.c (standard_exc): Expand introductory comment.
5364
5365 2014-04-24  Michael Sturm  <michael.sturm@mintel.com>
5366             Walfred Tedeschi  <walfred.tedeschi@intel.com>
5367
5368         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5369         AVX512 registers.
5370         (amd64_linux_read_description): Add code to handle AVX512 xstate
5371         mask and return respective tdesc.
5372         * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5373         and features/i386/x32-avx512-linux.c.
5374         (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5375         (amd64_linux_core_read_description): Add code to handle AVX512
5376         xstate mask and return respective tdesc.
5377         (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5378         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5379         calculation.
5380         (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5381         (tdesc_amd64_avx512_linux): New prototype.
5382         (tdesc_x32_avx512_linux): Likewise.
5383         * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5384         features/i386/x32-avx512.c.
5385         (amd64_ymm_avx512_names): New register names for pseudo
5386         registers YMM16-31.
5387         (amd64_ymmh_avx512_names): New register names for raw registers
5388         YMMH16-31.
5389         (amd64_k_names): New register names for K registers.
5390         (amd64_zmmh_names): New register names for ZMM raw registers.
5391         (amd64_zmm_names): New registers names for ZMM pseudo registers.
5392         (amd64_xmm_avx512_names): New register names for XMM16-31
5393         registers.
5394         (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5395         registers.
5396         (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5397         if feature is present.
5398         (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5399         * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5400         (AMD64_NUM_REGS): Adjust to new number of registers.
5401         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5402         registers supplied via XSTATE by AVX512 registers.
5403         (i386_linux_read_description): Add case for AVX512.
5404         * i386-linux-tdep.c: Include i386-avx512-linux.c.
5405         (i386_linux_gregset_reg_offset): Add AVX512 registers.
5406         (i386_linux_core_read_description): Add case for AVX512.
5407         (i386_linux_init_abi): Install supported register note section
5408         for AVX512.
5409         (_initialize_i386_linux_tdep): Add call to tdesc init function for
5410         AVX512.
5411         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5412         registers to be number of zmm7h + 1.
5413         (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5414         * i386-tdep.c: Include features/i386/i386-avx512.c.
5415         (i386_zmm_names): Add ZMM pseudo register names array.
5416         (i386_zmmh_names): Add ZMM raw register names array.
5417         (i386_k_names): Add K raw register names array.
5418         (num_lower_zmm_regs): Add constant for the number of lower ZMM
5419         registers. AVX512 has 16 more ZMM registers than there are YMM
5420         registers.
5421         (i386_zmmh_regnum_p): Add function to look up register number of
5422         ZMM raw registers.
5423         (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5424         (i386_k_regnum_p): Likewise for K raw registers.
5425         (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5426         registers added by AVX512.
5427         (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5428         registers added by AVX512.
5429         (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5430         added by AVX512.
5431         (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5432         (i386_pseudo_register_name): Add ZMM pseudo registers.
5433         (i386_zmm_type): Construct and return vector registers type for ZMM
5434         registers.
5435         (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5436         ZMM0-31 pseudo registers and K registers.
5437         (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5438         and YMM16-31 registers from register cache.
5439         (i386_pseudo_register_write): Add code to write  K, ZMM and
5440         YMM16-31 registers.
5441         (i386_register_reggroup_p): Add code to include/exclude AVX512
5442         registers in/from respective register groups.
5443         (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5444         registers if feature is present in xcr0.
5445         (i386_gdbarch_init): Add code to initialize AVX512 feature
5446         variables in tdep structure, wire in pseudo registers and call
5447         initialize_tdesc_i386_avx512.
5448         * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5449         variables.
5450         (i386_regnum): Add AVX512 registers.
5451         (I386_SSE_NUM_REGS): New define for number of SSE registers.
5452         (I386_AVX_NUM_REGS): Likewise for AVX registers.
5453         (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5454         (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5455         512 bits wide.
5456         (i386_xmm_avx512_regnum_p): New prototype for register look up.
5457         (i386_ymm_avx512_regnum_p): Likewise.
5458         (i386_k_regnum_p): Likewise.
5459         (i386_zmm_regnum_p): Likewise.
5460         (i386_zmmh_regnum_p): Likewise.
5461         * i387-tdep.c : Update year in copyright notice.
5462         (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5463         XSAVE buffer.
5464         (XSAVE_YMM_AVX512_ADDR): New macro.
5465         (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5466         XSAVE buffer.
5467         (XSAVE_XMM_AVX512_ADDR): New macro.
5468         (xsave_avx512_k_offset): New table for K register offsets in
5469         XSAVE buffer.
5470         (XSAVE_AVX512_K_ADDR): New macro.
5471         (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5472         in XSAVE buffer.
5473         (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5474         (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5475         buffer.
5476         (i387_collect_xsave): Add code to collect AVX512 registers from
5477         XSAVE buffer.
5478         * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5479         of XMM16-31 registers.
5480         (I387_NUM_K_REGS): New define for number of K registers.
5481         (I387_K0_REGNUM): New define for K0 register number.
5482         (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5483         (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5484         (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5485         registers.
5486         (I387_YMM16H_REGNUM): New define for YMM16H register number.
5487         (I387_XMM16_REGNUM): New define for XMM16 register number.
5488         (I387_YMM0_REGNUM): New define for YMM0 register number.
5489         (I387_KEND_REGNUM): New define for last K register number.
5490         (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5491         (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5492         number.
5493         (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5494         number.
5495         * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5496         size.
5497         * features/Makefile: Add AVX512 related files.
5498         * features/i386/32bit-avx512.xml: New file.
5499         * features/i386/64bit-avx512.xml: Likewise.
5500         * features/i386/amd64-avx512-linux.c: Likewise.
5501         * features/i386/amd64-avx512-linux.xml: Likewise.
5502         * features/i386/amd64-avx512.c: Likewise.
5503         * features/i386/amd64-avx512.xml: Likewise.
5504         * features/i386/i386-avx512-linux.c: Likewise.
5505         * features/i386/i386-avx512-linux.xml: Likewise.
5506         * features/i386/i386-avx512.c: Likewise.
5507         * features/i386/i386-avx512.xml: Likewise.
5508         * features/i386/x32-avx512-linux.c: Likewise.
5509         * features/i386/x32-avx512-linux.xml: Likewise.
5510         * features/i386/x32-avx512.c: Likewise.
5511         * features/i386/x32-avx512.xml: Likewise.
5512         * regformats/i386/amd64-avx512-linux.dat: New file.
5513         * regformats/i386/amd64-avx512.dat: Likewise.
5514         * regformats/i386/i386-avx512-linux.dat: Likewise.
5515         * regformats/i386/i386-avx512.dat: Likewise.
5516         * regformats/i386/x32-avx512-linux.dat: Likewise.
5517         * regformats/i386/x32-avx512.dat: Likewise.
5518         * NEWS: Add note about new support for AVX512.
5519
5520
5521 2014-04-23  Pedro Alves  <palves@redhat.com>
5522
5523         * breakpoint.c (insert_bp_location): Tolerate errors if the
5524         breakpoint is set in a user-loaded objfile.
5525         (remove_breakpoint_1): Likewise.  Also tolerate errors if the
5526         location is marked shlib_disabled.  If the breakpoint is set in a
5527         user-loaded objfile is a GDB-side memory breakpoint, validate it
5528         before uninsertion.  (disable_breakpoints_in_freed_objfile): Skip
5529         non-OBJF_USERLOADED objfiles.  Don't clear the location's inserted
5530         flag.
5531         * mem-break.c (memory_validate_breakpoint): New function.
5532         * objfiles.c (userloaded_objfile_contains_address_p): New
5533         function.
5534         * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5535         * target.h (memory_validate_breakpoint): New declaration.
5536
5537 2014-04-23  Pedro Alves  <palves@redhat.com>
5538
5539         * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5540         the breakpoint is set in a shared library, only suppress
5541         errors for software breakpoints, not hardware breakpoints.
5542
5543 2014-04-22  Pedro Alves  <palves@redhat.com>
5544
5545         * infrun.c (schedlock_applies): New function, factored out from
5546         find_thread_needs_step_over.
5547         (find_thread_needs_step_over): Use it.
5548         (switch_back_to_stepped_thread): Always clear trap_expected if the
5549         step over is finished.  Return early if scheduler locking applies.
5550         Look for the stepping thread and a potential step-over thread with
5551         a single loop.
5552         (currently_stepping_or_nexting_callback): Delete.
5553
5554 2014-04-22  Nick Clifton  <nickc@redhat.com>
5555
5556         * NEWS: Mention that ARM sim now supports tracing.
5557
5558 2014-04-22  Yao Qi  <yao@codesourcery.com>
5559
5560         * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5561         to ...
5562         * tracefile.c (tracefile_fetch_registers): ... it.  New
5563         function.
5564         * tracefile.h (tracefile_fetch_registers): Declare.
5565         * ctf.c (ctf_fetch_registers): Remove the bottom.  Call
5566         tracefile_fetch_registers.
5567
5568 2014-04-19  Eli Zaretskii  <eliz@gnu.org>
5569
5570         PR gdb/14018
5571         * windows-nat.c (thread_rec): Don't display a warning when
5572         SuspendThread fails with ERROR_ACCESS_DENIED.  If SuspendThread
5573         fails for any reason, set th->suspended to -1, so that we don't
5574         try to resume such a thread.  Also, don't return NULL in these
5575         cases, to avoid completely ruin the session due to "PC register is
5576         not available" error.
5577         (do_windows_fetch_inferior_registers): Check errors in
5578         GetThreadContext call.
5579         (windows_continue): Accept an additional argument KILLED; if not
5580         zero, ignore errors in the SetThreadContext call, since the
5581         inferior was killed and is shutting down.
5582         (windows_resume, get_windows_debug_event)
5583         (windows_create_inferior, windows_mourn_inferior)
5584         (windows_kill_inferior): All callers of windows_continue changed
5585         to adjust to its new calling sequence.
5586
5587 2014-04-19  Yao Qi  <yao@codesourcery.com>
5588
5589         * ctf.c (ctf_open): Call post_create_inferior.
5590
5591 2014-04-19  Yao Qi  <yao@codesourcery.com>
5592
5593         * ctf.c (handle_id): New static variable.
5594         (ctf_open_dir): Get handle_id from bt_context_add_trace return
5595         value.  Get the declaration of event "register" and get length
5596         of field "contents".
5597
5598 2014-04-19  Yao Qi  <yao@codesourcery.com>
5599
5600         * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5601
5602 2014-04-18  Siva Chandra Reddy  <sivachandra@google.com>
5603
5604         * valops.c (oload_method_static): Remove unnecessary argument
5605         METHOD.  Update all callers.
5606
5607 2014-04-18  Pedro alves  <palves@redhat.com>
5608             Tom Tromey  <tromey@redhat.com>
5609
5610         PR backtrace/15558
5611         * frame.c (get_prev_frame_1): Rename to ...
5612         (get_prev_frame_always): ... this, and make extern.  Adjust.
5613         (skip_artificial_frames): Use get_prev_frame_always.
5614         (frame_unwind_caller_id, frame_pop, get_prev_frame)
5615         (get_frame_unwind_stop_reason): Adjust to rename.
5616         * frame.h (get_prev_frame_always): Declare.
5617         * inline-frame.c: Include frame.h.
5618         (inline_frame_this_id): Use get_prev_frame_always.
5619
5620 2014-04-18  Tristan Gingold  <gingold@adacore.com>
5621
5622         * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5623         code by using bfd_mach_o_get_base_address.
5624
5625 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
5626
5627         * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5628         (spu_ax_pseudo_register_collect): New function.
5629         (spu_ax_pseudo_register_push_stack): Likewise.
5630         (spu_dwarf_reg_to_regnum): Likewise.
5631         (spu_gdbarch_init): Install them.  Append DWARF unwinders.
5632
5633 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
5634
5635         * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5636         Replace FRAME argument with FRAME_ID.
5637         * gdbarch.c, gdbarch.h: Regenerate.
5638         * findvar.c (default_value_from_register): Add GDBARCH argument;
5639         replace FRAME by FRAME_ID.  No longer call get_frame_id.
5640         (value_from_register): Update call to gdbarch_value_from_register.
5641         * value.h (default_value_from_register): Update prototype.
5642         * s390-linux-tdep.c (s390_value_from_register): Update interface
5643         and call to default_value_from_register.
5644         * spu-tdep.c (spu_value_from_register): Likewise.
5645
5646         * findvar.c (address_from_register): Remove TYPE argument.
5647         Do not call value_from_register; use gdbarch_value_from_register
5648         with null_frame_id instead.
5649         * value.h (address_from_register): Update prototype.
5650         * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5651         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5652         address_from_register interface change.
5653
5654 2014-04-17  Yao Qi  <yao@codesourcery.com>
5655
5656         * gdbtypes.h: Update comments to link to types and macros'
5657         definitions.
5658
5659 2014-04-16  Siva Chandra Reddy  <sivachandra@google.com>
5660
5661         * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5662
5663 2014-04-16  Keith Seitz  <keiths@redhat.com>
5664
5665         PR gdb/15827
5666         * dwarf2read.c (skip_one_die): Check that all relative-offset
5667         sibling DIEs fall within range of the current reader's buffer.
5668         (read_partial_die): Likewise.
5669
5670 2014-04-16  Keith Seitz  <keiths@redhat.com>
5671
5672         PR c++/16597
5673         * cp-namespace.c (lookup_symbol_file): If the type name of
5674         `this' is NULL, return immediately.
5675
5676 2014-04-14  Keith Seitz  <keiths@redhat.com>
5677
5678         PR c++/16253
5679         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5680         from symbol_matches_domain in symtab.c. All local callers
5681         of symbol_matches_domain updated.
5682         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5683         search STRUCT_DOMAIN.
5684         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5685         independently.  standard_lookup will do that automatically.
5686         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5687         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5688         (cp_lookup_symbol_in_namespace): Likewise.
5689         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5690         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5691         may return a STRUCT_DOMAIN match.
5692         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5693         * cp-support.c: Include language.h.
5694         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5695         VAR_DOMAIN.
5696         * psymtab.c (match_partial_symbol): Compare the requested
5697         domain with the symbol's domain directly.
5698         (lookup_partial_symbol): Likewise.
5699         * symtab.c (lookup_symbol_in_language): Explain when/why
5700         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5701         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5702         appropriate languages.
5703         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5704         and moved to ada-lang.c
5705         (lookup_block_symbol): Explain that this function only returns
5706         symbol matching the requested DOMAIN.
5707         Compare the requested domain with the symbol's domain directly.
5708         (iterate_over_symbols): Compare the requested domain with the
5709         symbol's domain directly.
5710         * symtab.h (symbol_matches_domain): Remove.
5711
5712 2014-04-14  Tom Tromey  <tromey@redhat.com>
5713
5714         PR c++/15246:
5715         * c-exp.y (type_aggregate_p): New function.
5716         (qualified_name, classify_inner_name): Use it.
5717         * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5718         and TYPE_TARGET_TYPE of an enum type.
5719         * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5720         an enum type.
5721         (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5722         handle TYPE_DECLARED_CLASS.
5723         * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5724         types.
5725         * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5726         * valops.c (enum_constant_from_type): New function.
5727         (value_aggregate_elt): Use it.
5728         * cp-namespace.c (cp_lookup_nested_symbol): Handle
5729         TYPE_CODE_ENUM.
5730
5731 2014-04-14  Tom Tromey  <tromey@redhat.com>
5732
5733         * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5734         (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5735         const.
5736         * value.h (value_aggregate_elt): Update.
5737
5738 2014-04-14  Tom Tromey  <tromey@redhat.com>
5739
5740         * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5741
5742 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
5743
5744         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5745         (evaluate_subexp_standard): Pass noside argument.
5746         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5747         if noside equals EVAL_NORMAL. If the subscript yields a vla type
5748         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5749         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5750         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5751
5752 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
5753
5754         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5755         points to a constant blob.
5756
5757 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
5758
5759         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5760         property and store it as the high bound and flag the range accordingly.
5761         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5762         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5763         * gdbtypes.h (enum range_flags): New enum.
5764         (struct range_bounds): Add flags member.
5765
5766 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
5767
5768         * c-typeprint.c (c_type_print_varspec_suffix): Added
5769         check for not yet resolved high bound. If unresolved, print
5770         "variable length" string to the console instead of random
5771         length.
5772
5773 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
5774
5775         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5776         value.
5777         (ada_template_to_fixed_record_type_1): Likewise.
5778         (ada_to_fixed_type_1): Likewise.
5779         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5780         (cp_print_value): Likewise.
5781         * d-valprint.c (dynamic_array_type): Likewise.
5782         * findvar.c (address_of_variable): Likewise.
5783         * jv-valprint.c (java_value_print): Likewise.
5784         * valops.c (value_ind): Likewise.
5785         * value.c (coerce_ref): Likewise.
5786
5787 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
5788
5789         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5790         value and retrieve the dynamic type size.
5791
5792 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
5793
5794         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5795         passed to sizeof is dynamic evaluate the argument to compute the length.
5796
5797 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
5798             Joel Brobecker  <brobecker@adacore.com>
5799
5800         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5801         (dwarf2_evaluate_property): New function.
5802         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5803         * dwarf2read.c (attr_to_dynamic_prop): New function.
5804         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5805         attribute.
5806         * gdbtypes.c: Include dwarf2loc.h.
5807         (is_dynamic_type): New function.
5808         (resolve_dynamic_type): New function.
5809         (resolve_dynamic_bounds): New function.
5810         (get_type_length): New function.
5811         (check_typedef): Use get_type_length to compute type length.
5812         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5813         (TYPE_LOW_BOUND_KIND): New macro.
5814         (is_dynamic_type): New function prototype.
5815         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5816         to resolve dynamic properties of the type. Update comment.
5817         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5818
5819 2014-04-14  Richard Henderson  <rth@redhat.com>
5820
5821         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5822
5823 2014-04-12  Siva Chandra Reddy  <sivachandra@google.com>
5824             Doug Evans  <xdje42@gmail.com>
5825
5826         * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5827         dereference TYPE_CODE_REF values.
5828
5829 2014-04-11  Joel Brobecker  <brobecker@adacore.com>
5830
5831         Revert the following changes due to regressions:
5832
5833         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5834         (dwarf2_evaluate_property): New function.
5835         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5836         * dwarf2read.c (attr_to_dynamic_prop): New function.
5837         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5838         attribute.
5839         * gdbtypes.c: Include dwarf2loc.h.
5840         (is_dynamic_type): New function.
5841         (resolve_dynamic_type): New function.
5842         (resolve_dynamic_bounds): New function.
5843         (get_type_length): New function.
5844         (check_typedef): Use get_type_length to compute type length.
5845         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5846         (TYPE_LOW_BOUND_KIND): New macro.
5847         (is_dynamic_type): New function prototype.
5848         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5849         to resolve dynamic properties of the type. Update comment.
5850         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5851
5852         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5853         passed to sizeof is dynamic evaluate the argument to compute the length.
5854
5855         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5856         value and retrieve the dynamic type size.
5857
5858         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5859         (ada_template_to_fixed_record_type_1): Likewise.
5860         (ada_to_fixed_type_1): Likewise.
5861         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5862         (cp_print_value): Likewise.
5863         * d-valprint.c (dynamic_array_type): Likewise.
5864         * eval.c (evaluate_subexp_with_coercion): Likewise.
5865         * findvar.c (address_of_variable): Likewise.
5866         * jv-valprint.c (java_value_print): Likewise.
5867         * valops.c (value_ind): Likewise.
5868         * value.c (coerce_ref): Likewise.
5869
5870         * c-typeprint.c (c_type_print_varspec_suffix): Added
5871         check for not yet resolved high bound. If unresolved, print
5872         "variable length" string to the console instead of random
5873         length.
5874
5875         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5876         property and store it as the high bound and flag the range accordingly.
5877         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5878         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5879         * gdbtypes.h (enum range_flags): New enum.
5880         (struct range_bounds): Add flags member.
5881
5882         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5883         points to a constant blob.
5884
5885         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5886         (evaluate_subexp_standard): Pass noside argument.
5887         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5888         if noside equals EVAL_NORMAL. If the subscript yields a vla type
5889         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5890         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5891         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5892
5893 2014-04-11  Keith Seitz  <keiths@redhat.com>
5894
5895         PR c++/16675
5896         * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5897         * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5898         reference types.
5899
5900 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5901
5902         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5903         (evaluate_subexp_standard): Pass noside argument.
5904         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5905         if noside equals EVAL_NORMAL. If the subscript yields a vla type
5906         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5907         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5908         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5909
5910 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5911
5912         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5913         points to a constant blob.
5914
5915 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5916
5917         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5918         property and store it as the high bound and flag the range accordingly.
5919         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5920         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5921         * gdbtypes.h (enum range_flags): New enum.
5922         (struct range_bounds): Add flags member.
5923
5924 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5925
5926         * c-typeprint.c (c_type_print_varspec_suffix): Added
5927         check for not yet resolved high bound. If unresolved, print
5928         "variable length" string to the console instead of random
5929         length.
5930
5931 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5932
5933         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5934         (ada_template_to_fixed_record_type_1): Likewise.
5935         (ada_to_fixed_type_1): Likewise.
5936         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5937         (cp_print_value): Likewise.
5938         * d-valprint.c (dynamic_array_type): Likewise.
5939         * eval.c (evaluate_subexp_with_coercion): Likewise.
5940         * findvar.c (address_of_variable): Likewise.
5941         * jv-valprint.c (java_value_print): Likewise.
5942         * valops.c (value_ind): Likewise.
5943         * value.c (coerce_ref): Likewise.
5944
5945 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5946
5947         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5948         value and retrieve the dynamic type size.
5949
5950 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5951
5952         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5953         passed to sizeof is dynamic evaluate the argument to compute the length.
5954
5955 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5956
5957         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5958         (dwarf2_evaluate_property): New function.
5959         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5960         * dwarf2read.c (attr_to_dynamic_prop): New function.
5961         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5962         attribute.
5963         * gdbtypes.c: Include dwarf2loc.h.
5964         (is_dynamic_type): New function.
5965         (resolve_dynamic_type): New function.
5966         (resolve_dynamic_bounds): New function.
5967         (get_type_length): New function.
5968         (check_typedef): Use get_type_length to compute type length.
5969         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5970         (TYPE_LOW_BOUND_KIND): New macro.
5971         (is_dynamic_type): New function prototype.
5972         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5973         to resolve dynamic properties of the type. Update comment.
5974         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5975
5976 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5977
5978         * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5979         declaring high/low bounds and change uses accordingly. Call
5980         create_range_type instead of create_static_range_type.
5981         * gdbtypes.c (create_range_type): New function.
5982         (create_range_type): Convert bounds into struct bound_prop and pass
5983         them to create_range_type.
5984         * gdbtypes.h (struct bound_prop): New struct.
5985         (create_range_type): New function prototype.
5986         (struct range_bounds): Use struct bound_prop instead of LONGEST for
5987         high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5988         (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5989         part of the bound.
5990         * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5991
5992 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5993
5994         * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5995         * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5996         * ada-lang.c: All uses of create_range_type updated.
5997         * coffread.c: All uses of create_range_type updated.
5998         * dwarf2read.c: All uses of create_range_type updated.
5999         * f-exp.y: All uses of create_range_type updated.
6000         * m2-valprint.c: All uses of create_range_type updated.
6001         * mdebugread.c: All uses of create_range_type updated.
6002         * stabsread.c: All uses of create_range_type updated.
6003         * valops.c: All uses of create_range_type updated.
6004         * valprint.c: All uses of create_range_type updated.
6005
6006 2014-04-10  Pedro Alves  <palves@redhat.com>
6007
6008         * breakpoint.c (single_step_breakpoints)
6009         (single_step_gdbarch): Move up in the file.
6010         (one_breakpoint_xfer_memory): New function, factored out from ...
6011         (breakpoint_xfer_memory): ... here.  Also process single-step
6012         breakpoints.
6013
6014 2014-04-09  Tristan Gingold  <gingold@adacore.com>
6015
6016         * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6017         comments.
6018         (darwin_decode_exception_message): Free port only after use.
6019
6020 2014-04-08  Pierre Langlois  <pierre.langlois@embecosm.com>
6021
6022         * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6023         (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6024         when setting the size of call_length.
6025
6026 2014-04-07  Siva Chandra Reddy  <sivachandra@google.com>
6027
6028         * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6029         dereference TYPE_CODE_REF values.
6030
6031 2014-04-07  Joel Brobecker  <brobecker@adacore.com>
6032
6033         * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6034         end of warning message.
6035
6036 2014-04-03  Doug Evans  <dje@google.com>
6037
6038         * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6039         of stub_comp_unit_die, stub_comp_dir is non-NULL.
6040
6041 2014-04-02  Alan Modra  <amodra@gmail.com>
6042
6043         * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6044         Pass to bfd_elf_bfd_from_remote_memory.  Adjust all callers.
6045         (struct symbol_file_add_from_memory_args): Add size field.
6046         (find_vdso_size): New function.
6047         (add_vsyscall_page): Attempt to find vdso size.
6048
6049 2014-04-01  Doug Evans  <dje@google.com>
6050
6051         * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6052
6053 2014-04-01  Tristan Gingold  <gingold@adacore.com>
6054
6055         * darwin-nat.c (darwin_encode_reply): Add prototype.
6056         (darwin_decode_exception_message): Reply to unknown inferiors.
6057         (darwin_decode_message): Handle message by id.  Ignore message
6058         to unknown inferior.
6059         (darwin_wait): Discard unknown messages, add debug trace.
6060
6061 2014-03-31  Doug Evans  <dje@google.com>
6062
6063         * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6064         comp_dir_string.
6065
6066 2014-03-31  Doug Evans  <dje@google.com>
6067
6068         New option "set print symbol-loading".
6069         * NEWS: Mention it.
6070         * solib.c (solib_read_symbols): Only print symbol loading messages
6071         if requested.
6072         (solib_add): If symbol loading is in "brief" mode, notify user
6073         symbols are being loaded.
6074         (reload_shared_libraries_1): Ditto.
6075         * symfile.c (print_symbol_loading_off): New static global.
6076         (print_symbol_loading_brief): New static global.
6077         (print_symbol_loading_full): New static global.
6078         (print_symbol_loading_enums): New static global.
6079         (print_symbol_loading): New static global.
6080         (print_symbol_loading_p): New function.
6081         (symbol_file_add_with_addrs): Only print symbol loading messages
6082         if requested.
6083         (_initialize_symfile): Register "print symbol-loading" set/show
6084         command.
6085         * symfile.h (print_symbol_loading_p): Declare.
6086
6087 2014-03-30  Doug Evans  <xdje42@gmail.com>
6088
6089         * infrun.c (set_last_target_status): New function.
6090         (handle_inferior_event): Call it.
6091
6092 2014-03-30  Doug Evans  <xdje42@gmail.com>
6093
6094         * inferior.h (enum stop_kind): Improve comment.
6095
6096 2014-03-28  Joel Brobecker  <brobecker@adacore.com>
6097
6098         * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6099         a reference, strip the reference layer before calling
6100         the lang_ops value_has_mutated callback.
6101
6102 2014-03-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6103
6104         Remove some globals from our parser.
6105         * language.c (unk_lang_parser): Add "struct parser_state"
6106         argument.
6107         * language.h (struct language_defn) <la_parser>: Likewise.
6108         * parse.c (expout, expout_size, expout_ptr): Remove variables.
6109         (initialize_expout): Add "struct parser_state" argument.
6110         Rewrite function to use the parser state.
6111         (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6112         write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6113         write_exp_elt_longcst, write_exp_elt_dblcst,
6114         write_exp_elt_decfloatcst, write_exp_elt_type,
6115         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6116         write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6117         write_dollar_variable): Likewise.
6118         (parse_exp_in_context_1): Use parser state.
6119         (insert_type_address_space): Add "struct parser_state" argument.
6120         Use parser state.
6121         (increase_expout_size): New function.
6122         * parser-defs.h: Forward declare "struct language_defn" and
6123         "struct parser_state".
6124         (expout, expout_size, expout_ptr): Remove extern declarations.
6125         (parse_gdbarch, parse_language): Rewrite macro declarations to
6126         accept the parser state.
6127         (struct parser_state): New struct.
6128         (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6129         write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6130         write_exp_elt_decfloatcst, write_exp_elt_type,
6131         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6132         write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6133         write_exp_msymbol, write_dollar_variable,
6134         mark_struct_expression, insert_type_address_space): Add "struct
6135         parser_state" argument.
6136         (increase_expout_size): New function.
6137         * utils.c (do_clear_parser_state): New function.
6138         (make_cleanup_clear_parser_state): Likewise.
6139         * utils.h (make_cleanup_clear_parser_state): New function
6140         prototype.
6141         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6142         Update calls to write_exp* in order to pass the parser state.
6143         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6144         * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6145         (i386_stap_parse_special_token_three_arg_disp): Likewise.
6146         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6147         * stap-probe.c (stap_parse_register_operand): Likewise.
6148         (stap_parse_single_operand): Likewise.
6149         (stap_parse_argument_1): Likewise.
6150         (stap_parse_argument): Use parser state.
6151         * stap-probe.h: Include "parser-defs.h".
6152         (struct stap_parse_info) <pstate>: New field.
6153         * c-exp.y (parse_type): Rewrite to use parser state.
6154         (yyparse): Redefine to c_parse_internal.
6155         (pstate): New global variable.
6156         (parse_number): Add "struct parser_state" argument.
6157         (write_destructor_name): Likewise.
6158         (type_exp): Update calls to write_exp* and similars in order to
6159         use parser state.
6160         (exp1, exp, variable, qualified_name, space_identifier,
6161         typename, typebase): Likewise.
6162         (write_destructor_name, parse_number, lex_one_token,
6163         classify_name, classify_inner_name, c_parse): Add "struct
6164         parser_state" argument.  Update function to use parser state.
6165         * c-lang.h: Forward declare "struct parser_state".
6166         (c_parse): Add "struct parser_state" argument.
6167         * ada-exp.y (parse_type): Rewrite macro to use parser state.
6168         (yyparse): Redefine macro to ada_parse_internal.
6169         (pstate): New variable.
6170         (write_int, write_object_renaming, write_var_or_type,
6171         write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6172         type_int, type_long, type_long_long, type_float, type_double,
6173         type_long_double, type_char, type_boolean, type_system_address):
6174         Add "struct parser_state" argument.
6175         (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6176         or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6177         var_or_type, aggregate, aggregate_component_list,
6178         positional_list, others, component_group,
6179         component_associations): Update calls to write_exp* and similar
6180         functions in order to use parser state.
6181         (ada_parse, write_var_from_sym, write_int,
6182         write_exp_op_with_string, write_object_renaming,
6183         find_primitive_type, write_selectors, write_ambiguous_var,
6184         write_var_or_type, write_name_assoc, type_int, type_long,
6185         type_long_long, type_float, type_double, type_long_double,
6186         type_char, type_boolean, type_system_address): Add "struct
6187         parser_state" argument.  Adjust function to use parser state.
6188         * ada-lang.c (parse): Likewise.
6189         * ada-lang.h: Forward declare "struct parser_state".
6190         (ada_parse): Add "struct parser_state" argument.
6191         * ada-lex.l (processInt, processReal): Likewise.  Adjust all
6192         calls to both functions.
6193         * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6194         parser state.
6195         (yyparse): Redefine macro to f_parse_internal.
6196         (pstate): New variable.
6197         (parse_number): Add "struct parser_state" argument.
6198         (type_exp, exp, subrange, typebase): Update calls to write_exp*
6199         and similars in order to use parser state.
6200         (parse_number): Adjust code to use parser state.
6201         (yylex): Likewise.
6202         (f_parse): New function.
6203         * f-lang.h: Forward declare "struct parser_state".
6204         (f_parse): Add "struct parser_state" argument.
6205         * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6206         parser state.
6207         (yyparse): Redefine macro for java_parse_internal.
6208         (pstate): New variable.
6209         (push_expression_name, push_expression_name, insert_exp): Add
6210         "struct parser_state" argument.
6211         (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6212         FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6213         FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6214         PostIncrementExpression, PostDecrementExpression,
6215         UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6216         UnaryExpressionNotPlusMinus, CastExpression,
6217         MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6218         RelationalExpression, EqualityExpression, AndExpression,
6219         ExclusiveOrExpression, InclusiveOrExpression,
6220         ConditionalAndExpression, ConditionalOrExpression,
6221         ConditionalExpression, Assignment, LeftHandSide): Update
6222         calls to write_exp* and similars in order to use parser state.
6223         (parse_number): Ajust code to use parser state.
6224         (yylex): Likewise.
6225         (java_parse): New function.
6226         (push_variable): Add "struct parser_state" argument.  Adjust
6227         code to user parser state.
6228         (push_fieldnames, push_qualified_expression_name,
6229         push_expression_name, insert_exp): Likewise.
6230         * jv-lang.h: Forward declare "struct parser_state".
6231         (java_parse): Add "struct parser_state" argument.
6232         * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6233         parser state.
6234         (yyparse): Redefine macro to m2_parse_internal.
6235         (pstate): New variable.
6236         (type_exp, exp, fblock, variable, type): Update calls to
6237         write_exp* and similars to use parser state.
6238         (yylex): Likewise.
6239         (m2_parse): New function.
6240         * m2-lang.h: Forward declare "struct parser_state".
6241         (m2_parse): Add "struct parser_state" argument.
6242         * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6243         * objc-lang.h: Forward declare "struct parser_state".
6244         (end_msglist): Add "struct parser_state" argument.
6245         * p-exp.y (parse_type): Rewrite macro to use parser state.
6246         (yyparse): Redefine macro to pascal_parse_internal.
6247         (pstate): New variable.
6248         (parse_number): Add "struct parser_state" argument.
6249         (type_exp, exp1, exp, qualified_name, variable): Update calls to
6250         write_exp* and similars in order to use parser state.
6251         (parse_number, yylex): Adjust code to use parser state.
6252         (pascal_parse): New function.
6253         * p-lang.h: Forward declare "struct parser_state".
6254         (pascal_parse): Add "struct parser_state" argument.
6255         * go-exp.y (parse_type): Rewrite macro to use parser state.
6256         (yyparse): Redefine macro to go_parse_internal.
6257         (pstate): New variable.
6258         (parse_number): Add "struct parser_state" argument.
6259         (type_exp, exp1, exp, variable, type): Update calls to
6260         write_exp* and similars in order to use parser state.
6261         (parse_number, lex_one_token, classify_name, yylex): Adjust code
6262         to use parser state.
6263         (go_parse): Likewise.
6264         * go-lang.h: Forward declare "struct parser_state".
6265         (go_parse): Add "struct parser_state" argument.
6266
6267 2014-03-27  Doug Evans  <dje@google.com>
6268
6269         * dwarf2read.c (read_str_index): Delete arg cu.  All callers updated.
6270
6271 2014-03-27  Doug Evans  <dje@google.com>
6272
6273         * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6274         Remove argument abbrev_section.  All callers updated.
6275
6276 2014-03-27  Doug Evans  <dje@google.com>
6277
6278         * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6279         addr_base, ranges_base.
6280
6281 2014-03-26  Keith Seitz  <keiths@redhat.com>
6282
6283         * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6284         types, not VAR_DOMAIN.
6285
6286 2014-03-25  Sandra Loosemore  <sandra@codesourcery.com>
6287
6288         * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6289         "ra" registers.
6290         * features/nios2-linux.c: Regenerated.
6291         * features/nios2.c: Regenerated.
6292
6293 2014-03-25  Pedro Alves  <palves@redhat.com>
6294
6295         * cli/cli-script.c (script_from_file): Force the interpreter to
6296         sync mode.
6297
6298 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
6299
6300         * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6301         small stack allocation.
6302
6303 2014-03-24  Tristan Gingold  <gingold@adacore.com>
6304
6305         * darwin-nat.c (exc_server): Remove unused prototype.
6306         (darwin_dump_message): Correctly display data on x86_64.
6307         (darwin_encode_reply): Fix style.
6308         Add comments and fix indentation.
6309
6310 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
6311
6312         * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6313
6314 2014-03-22  Doug Evans  <xdje42@gmail.com>
6315
6316         * infcmd.c: Whitespace fixes.
6317         (interrupt_command): Merge two function comments into one.
6318
6319 2014-03-22  Doug Evans  <xdje42@gmail.com>
6320
6321         * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6322         All uses updated.
6323
6324 2014-03-22  Yao Qi  <yao@codesourcery.com>
6325
6326         * remote.c (target_read_live_memory): Remove.
6327         (memory_xfer_live_readonly_partial): Rename it to
6328         remote_xfer_live_readonly_partial.  Remove argument 'object'.
6329         All callers updated.  Call remote_read_bytes_1
6330         instead of target_read_live_memory.
6331         * tracepoint.c (set_traceframe_number): Remove.
6332         (make_cleanup_restore_traceframe_number): Likewise .
6333         * tracepoint.h (set_traceframe_number): Remove declaration.
6334         (make_cleanup_restore_traceframe_number): Likewise.
6335
6336 2014-03-22  Yao Qi  <yao@codesourcery.com>
6337
6338         * remote.c (remote_read_bytes): Move code on reading from the
6339         remote stub to ...
6340         (remote_read_bytes_1): ... here.  New function.
6341
6342 2014-03-22  Yao Qi  <yao@codesourcery.com>
6343
6344         * ctf.c (ctf_xfer_partial): Check the return value of
6345         exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6346         return TARGET_XFER_UNAVAILABLE.
6347         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6348         * target.c (target_read_live_memory): Move it to remote.c.
6349         (memory_xfer_live_readonly_partial): Likewise.
6350         (memory_xfer_partial_1): Move some code to remote_read_bytes.
6351         * remote.c (target_read_live_memory): Moved from target.c.
6352         (memory_xfer_live_readonly_partial): Likewise.
6353         (remote_read_bytes): Factored out from
6354         memory_xfer_partial_1.
6355
6356 2014-03-21  Daniel Gutson  <daniel.gutson@tallertechnologies.com>
6357
6358         * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6359         NULL pointer.
6360
6361 2014-03-21  Pedro Alves  <palves@redhat.com>
6362
6363         * infrun.c (normal_stop): Extend comment.
6364
6365 2014-03-21  Hui Zhu  <hui@codesourcery.com>
6366             Pedro Alves  <palves@redhat.com>
6367
6368         * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6369         static buffer.
6370         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6371         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6372         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6373
6374 2014-03-20  Maciej W. Rozycki  <macro@codesourcery.com>
6375
6376         * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6377         `z' formatted output modifier.
6378
6379 2014-03-20  Tom Tromey  <tromey@redhat.com>
6380             Sergio Durigan Junior  <sergiodj@redhat.com>
6381
6382         * probe.c (parse_probes): Turn assert into an ordinary error.
6383         * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6384         exceptions when parsing probes.  Rearrange the code for clarity.
6385
6386 2014-03-20  Tom Tromey  <tromey@redhat.com>
6387
6388         PR gdb/14135
6389         * top.c (execute_command): Only dispatch events if the command
6390         started the target.
6391
6392 2014-03-20  Tom Tromey  <tromey@redhat.com>
6393
6394         PR cli/15718
6395         * infcall.c: Include event-top.h.
6396         (run_inferior_call): Call async_disable_stdin if needed.
6397
6398 2014-03-20  Pedro Alves  <palves@redhat.com>
6399
6400         * infrun.c (prepare_to_proceed): Delete.
6401         (thread_still_needs_step_over): New function.
6402         (find_thread_needs_step_over): New function.
6403         (proceed): If the current thread needs a step-over, set its
6404         steping_over_breakpoint flag.  Adjust to use
6405         find_thread_needs_step_over instead of prepare_to_proceed.
6406         (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6407         BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6408         breakpoint.
6409         (switch_back_to_stepped_thread): Step over breakpoints of all
6410         threads not the stepping thread, before switching back to the
6411         stepping thread.
6412
6413 2014-03-20  Pedro Alves  <palves@redhat.com>
6414
6415         * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6416         extern.
6417         * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6418         * infrun.c (saved_singlestep_ptid)
6419         (stepping_past_singlestep_breakpoint): Delete.
6420         (resume): Remove stepping_past_singlestep_breakpoint handling.
6421         (proceed): Store the prev_pc of the stepping thread too.
6422         (init_wait_for_inferior): Adjust.  Clear singlestep_ptid and
6423         singlestep_pc.
6424         (enum infwait_states): Delete infwait_thread_hop_state.
6425         (struct execution_control_state) <hit_singlestep_breakpoint>: New
6426         field.
6427         (handle_inferior_event): Adjust.
6428         (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6429         handling and the thread-hop code.  Before removing single-step
6430         breakpoints, check whether the thread hit a single-step breakpoint
6431         of another thread.  If it did, the trap is not a random signal.
6432         (switch_back_to_stepped_thread): If the event thread hit a
6433         single-step breakpoint, unblock it before switching to the
6434         stepping thread.  Handle the case of the stepped thread having
6435         advanced already.
6436         (keep_going): Handle the case of the current thread moving past a
6437         single-step breakpoint.
6438
6439 2014-03-20  Pedro Alves  <palves@redhat.com>
6440
6441         PR breakpoints/7143
6442         * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6443         are being stepped over.
6444         (breakpoint_address_match): Make extern.
6445         * breakpoint.h (breakpoint_address_match): New declaration.
6446         * inferior.h (stepping_past_instruction_at): New declaration.
6447         * infrun.c (struct step_over_info): New type.
6448         (step_over_info): New global.
6449         (set_step_over_info, clear_step_over_info)
6450         (stepping_past_instruction_at): New functions.
6451         (handle_inferior_event): Clear the step-over info when
6452         trap_expected is cleared.
6453         (resume): Remove now stale comment.
6454         (clear_proceed_status): Clear step-over info.
6455         (proceed): Adjust step-over handling to set or clear the step-over
6456         info instead of removing all breakpoints.
6457         (handle_signal_stop): When setting up a thread-hop, don't remove
6458         breakpoints here.
6459         (stop_stepping): Clear step-over info.
6460         (keep_going): Adjust step-over handling to set or clear step-over
6461         info and then always inserting breakpoints, instead of removing
6462         all breakpoints when stepping over one.
6463
6464 2014-03-20  Pedro Alves  <palves@redhat.com>
6465
6466         * infrun.c (previous_inferior_ptid): Adjust comment.
6467         (deferred_step_ptid): Delete.
6468         (infrun_thread_ptid_changed, prepare_to_proceed)
6469         (init_wait_for_inferior): Adjust.
6470         (handle_signal_stop): Delete deferred_step_ptid handling.
6471
6472 2014-03-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
6473
6474         PR gdb/15358
6475         * defs.h (sync_quit_force_run): New declaration.
6476         (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6477         * event-top.c (async_sigterm_handler): New declaration.
6478         (async_sigterm_token): New variable.
6479         (async_init_signals): Create also async_sigterm_token.
6480         (async_sigterm_handler): New function.
6481         (sync_quit_force_run): New variable.
6482         (handle_sigterm): Replace quit_force call by other calls.
6483         * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6484
6485 2014-03-18  Maciej W. Rozycki  <macro@codesourcery.com>
6486
6487         * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6488         offset into SPE pseudo registers.
6489
6490 2014-03-18  Pedro Alves  <palves@redhat.com>
6491
6492         PR gdb/13860
6493         * inferior.h (print_stop_event): Declare.
6494         * infrun.c (print_stop_event): New, factored out from ...
6495         (normal_stop): ... this.
6496         * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6497         of bpstat_print/print_stack_frame.
6498
6499 2014-03-17  Tom Tromey  <tromey@redhat.com>
6500
6501         * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6502
6503 2014-03-17  Pierre-Marie de Rodat  <derodat@adacore.com>
6504
6505         * ada-lang.c (decode_constrained_packed_array): Perform a
6506         minimal coercion for reference with coerce_ref instead of
6507         ada_coerce_ref.
6508
6509 2014-03-17  Tristan Gingold  <gingold@adacore.com>
6510
6511         * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6512         (darwin_solib_create_inferior_hook): Emit a warning if version
6513         is unhandled.
6514
6515 2014-03-16  Ulrich Weigand  <uweigand@de.ibm.com>
6516
6517         * python/py-value.c (get_field_flag): Cast flag_name argument to
6518         PyObject_GetAttrString to support Python 2.4.
6519
6520 2014-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
6521
6522         * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6523         (Global Maintainers): Remove Jan Kratochvil.
6524
6525 2014-03-14  Pedro Alves  <palves@redhat.com>
6526
6527         * inferior.h (terminal_ours_for_output): Rename to ...
6528         (child_terminal_ours_for_output): ... this.
6529         (terminal_save_ours): Rename to ...
6530         (child_terminal_save_ours): ... this.
6531         (terminal_ours): Rename to ...
6532         (child_terminal_ours): ... this.
6533         (terminal_inferior): Rename to ...
6534         (child_terminal_inferior): ... this.
6535         (terminal_init_inferior): Rename to ...
6536         (child_terminal_init_inferior): ... this.
6537         (terminal_init_inferior_with_pgrp): Rename to ...
6538         (child_terminal_init_inferior_with_pgrp): ... this.
6539         * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6540         (child_terminal_init_with_pgrp): ... this.
6541         (terminal_save_ours): Rename to ...
6542         (child_terminal_save_ours): ... this.
6543         (terminal_init_inferior): Rename to ...
6544         (child_terminal_init): ... this.  Adjust.
6545         (terminal_inferior): Rename to ...
6546         (child_terminal_inferior): ... this.
6547         (terminal_ours_for_output): Rename to ...
6548         (child_terminal_ours_for_output): ... this.  Adjust.
6549         (terminal_ours): Rename to ...
6550         (child_terminal_ours): ... this.
6551         (terminal_ours_1): Rename to ...
6552         (child_terminal_ours_1): ... this.  Adjust.
6553         * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6554         * windows-nat.c (do_initial_windows_stuff): Adjust.
6555         * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6556         (gnu_terminal_init): ... this.  Adjust.
6557         (gnu_target): Adjust.
6558         * inf-child.c (inf_child_target): Adjust.
6559
6560 2014-03-13  Doug Evans  <xdje42@gmail.com>
6561
6562         PR guile/16612
6563         * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6564         new eq?-hashtab.
6565
6566 2014-03-13  Doug Evans  <xdje42@gmail.com>
6567
6568         * value.c (record_latest_value): Call release_value_or_incref
6569         instead of release_value.
6570
6571 2014-03-13  Pedro Alves  <palves@redhat.com>
6572
6573         * procfs.c (procfs_target): Don't override to_shortname,
6574         to_longname or to_doc.
6575
6576 2014-03-13  Pedro Alves  <palves@redhat.com>
6577
6578         * inf-child.c (inf_child_open, inf_child_target): Don't mention
6579         Unix in user visible strings.
6580
6581 2014-03-12  Stan Shebs  <stan@codesourcery.com>
6582
6583         * gdbtypes.h: Annotate comments for Doxygen, add a page
6584         block comment with some general info.
6585
6586 2014-03-12  Pedro Alves  <palves@redhat.com>
6587
6588         * infcmd.c (prepare_execution_command): New function, factored out
6589         from several execution commands.
6590         (run_command_1, continue_command, step_1, jump_command)
6591         (signal_command, until_command, advance_command, finish_command)
6592         (attach_command): Use prepare_execution_command.
6593
6594 2014-03-12  Omair Javaid  <omair.javaid@linaro.org>
6595
6596         * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6597         (MAX_BPTS): Define.
6598         (MAX_WPTS): Define.
6599         (struct arm_linux_thread_points): Removed.
6600         (struct arm_linux_process_info): New.
6601         (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6602         (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6603         (arm_linux_find_breakpoints_by_tid): Removed.
6604         (struct arch_lwp_info): New.
6605         (arm_linux_find_process_pid): New functions.
6606         (arm_linux_add_process): New functions.
6607         (arm_linux_process_info_get): New functions.
6608         (arm_linux_forget_process): New function.
6609         (arm_linux_get_debug_reg_state): New function.
6610         (struct update_registers_data): New.
6611         (update_registers_callback): New function.
6612         (arm_linux_insert_hw_breakpoint1): Updated.
6613         (arm_linux_remove_hw_breakpoint1): Updated.
6614         (arm_linux_insert_hw_breakpoint): Updated.
6615         (arm_linux_remove_hw_breakpoint): Updated.
6616         (arm_linux_insert_watchpoint): Updated.
6617         (arm_linux_remove_watchpoint): Updated.
6618         (arm_linux_new_thread): Updated.
6619         (arm_linux_prepare_to_resume): New function.
6620         (arm_linux_new_fork): New function.
6621         (_initialize_arm_linux_nat): Updated.
6622
6623 2014-03-12  Pedro Alves  <palves@redhat.com>
6624
6625         * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6626
6627 2014-03-12  Tom Tromey  <tromey@redhat.com>
6628
6629         * inf-child.c (return_zero): New function.
6630         (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6631         * aix-thread.c (aix_thread_inferior_created): New function.
6632         (aix_thread_attach): Remove.
6633         (init_aix_thread_ops): Don't set to_attach.
6634         (_initialize_aix_thread): Register inferior_created observer.
6635         * corelow.c (init_core_ops): Don't set to_attach or
6636         to_create_inferior.
6637         * exec.c (init_exec_ops): Don't set to_attach or
6638         to_create_inferior.
6639         * infcmd.c (run_command_1): Use find_run_target.  Make direct
6640         target calls.
6641         (attach_command): Use find_attach_target.  Make direct target
6642         calls.
6643         * record-btrace.c (init_record_btrace_ops): Don't set
6644         to_create_inferior.
6645         * record-full.c (record_full_can_async_p, record_full_is_async_p):
6646         Remove.
6647         (init_record_full_ops, init_record_full_core_ops): Update.  Don't
6648         set to_create_inferior.
6649         * target.c (complete_target_initialization): Add assertion.
6650         (target_create_inferior): Remove.
6651         (find_default_attach, find_default_create_inferior): Remove.
6652         (find_attach_target, find_run_target): New functions.
6653         (find_default_is_async_p, find_default_can_async_p)
6654         (target_supports_non_stop, target_attach): Remove.
6655         (init_dummy_target): Don't set to_create_inferior or
6656         to_supports_non_stop.
6657         * target.h (struct target_ops) <to_attach>: Add comment.  Remove
6658         TARGET_DEFAULT_FUNC.
6659         <to_create_inferior>: Add comment.
6660         <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6661         TARGET_DEFAULT_RETURN.
6662         <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6663         (find_attach_target, find_run_target): Declare.
6664         (target_create_inferior): Remove.
6665         (target_has_execution_1): Update comment.
6666         (target_supports_non_stop): Remove.
6667         * target-delegates.c: Rebuild.
6668
6669 2014-03-12  Pedro Alves  <palves@redhat.com>
6670
6671         * inf-child.h: Update comment to not mention Unix.
6672
6673 2014-03-12  Pedro Alves  <palves@redhat.com>
6674
6675         * inf-child.c: Update top comment to not mention Unix.  Add
6676         generic comment describing how this target is meant to be used.
6677         (inf_child_post_attach, inf_child_post_startup_inferior)
6678         (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6679         Unix in comment.
6680
6681 2014-03-12  Pedro Alves  <palves@redhat.com>
6682
6683         * nto-procfs.c: Include inf-child.h.
6684         (procfs_ops): Delete global.
6685         (procfs_can_run): Delete method.
6686         (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6687         target pointer instead of referencing procfs_ops.
6688         (procfs_prepare_to_store): Delete.
6689         (init_procfs_ops): Delete function.
6690         (procfs_target): New function, based on init_procfs_ops, but
6691         inherit inf_child_target.
6692         (_initialize_procfs): Use procfs_target.
6693
6694 2014-03-12  Pedro Alves  <palves@redhat.com>
6695
6696         * windows-nat.c: Include inf-child.h.
6697         (windows_ops): Delete global.
6698         (windows_open, windows_prepare_to_store, windows_can_run): Delete
6699         methods.
6700         (init_windows_ops): Delete function.
6701         (windows_target): New function, based on init_windows_ops, but
6702         inherit inf_child_target.
6703         (_initialize_windows_nat): Use windows_target.  Install x86
6704         specific target methods here.
6705
6706 2014-03-10  Doug Evans  <xdje42@gmail.com>
6707
6708         * guile/guile.c (call_initialize_gdb_module): New function.
6709         (initialize_guile): Replace call to scm_init_guile with call to
6710         scm_with_guile.
6711
6712 2014-03-10  Joel Brobecker  <brobecker@adacore.com>
6713
6714         * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6715         in call to TYPE_CODE macro.
6716
6717 2014-03-10  Jerome Guitton  <guitton@adacore.com>
6718
6719         * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6720         Resolve tagged types to full view.
6721
6722 2014-03-10  Hui Zhu  <hui@codesourcery.com>
6723
6724         * target.h (target_insert_breakpoint): Remove "hardware" from its
6725         comments.
6726
6727 2014-03-07  Doug Evans  <dje@google.com>
6728
6729         * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6730
6731 2014-03-07  Doug Evans  <dje@google.com>
6732
6733         * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6734         Remove unused local comp_dir_attr.  Assert exactly one of
6735         stub_comp_unit_die, stub_comp_dir is non-NULL.
6736
6737 2014-03-07  Joel Brobecker  <brobecker@adacore.com>
6738
6739         * target.h (complete_target_initialization, add_target):
6740         Add comment.
6741
6742 2014-03-07  Pedro Alves  <palves@redhat.com>
6743
6744         * go32-nat.c: Include inf-child.h.
6745         (go32_ops): Delete global.
6746         (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6747         Delete methods.
6748         (go32_create_inferior): Push the passed in target pointer instead
6749         of referencing go32_ops.
6750         (init_go32_ops): Delete function.  Moved parts to _initialize_go32_nat.
6751         (go32_target): New function, based on init_go32_ops, but inherit
6752         inf_child_target.
6753         (_initialize_go32_nat): Use go32_target.  Move parts of
6754         init_go32_ops here.
6755
6756 2014-03-06  Joel Brobecker  <brobecker@adacore.com>
6757
6758         * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6759         (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6760         SYMBOL_VALUE_ADDRESS.
6761         (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6762
6763 2014-03-06  Yao Qi  <yao@codesourcery.com>
6764
6765         * breakpoint.c (get_tracepoint_by_number): Remove argument
6766         optional_p.  All callers updated.  Adjust comments.  Update
6767         output message.
6768         * breakpoint.h (get_tracepoint_by_number): Update declaration.
6769
6770 2014-03-06  Yao Qi  <yao@codesourcery.com>
6771
6772         * reverse.c (goto_bookmark_command): Add local 'p'.  Emit error
6773         early if get_number returns zero.  Use 'p' instead of 'args'.
6774
6775 2014-03-06  Yao Qi  <yao@codesourcery.com>
6776
6777         * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6778         message.
6779
6780 2014-03-06  Yao Qi  <yao@codesourcery.com>
6781
6782         PR breakpoints/16508
6783         * tracepoint.c (check_trace_running): New function.
6784         (trace_find_command): Move code to check_trace_running and
6785         call check_trace_running.
6786         (trace_find_pc_command): Likewise.
6787         (trace_find_tracepoint_command): Likewise.
6788         (trace_find_line_command): Likewise.
6789         (trace_find_range_command): Likewise.
6790         * tracepoint.h (check_trace_running): Likewise.
6791         * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6792
6793 2014-03-06  Yao Qi  <yao@codesourcery.com>
6794
6795         * target.h (struct target_ops) <to_traceframe_info>: Use
6796         TARGET_DEFAULT_NORETURN (tcomplain ()).
6797         * target-delegates.c: Regenerated.
6798
6799 2014-03-05  Pedro Alves  <palves@redhat.com>
6800
6801         PR gdb/16575
6802         * dcache.c (dcache_poke_byte): Constify ptr parameter.  Return
6803         void.  Update comment.
6804         (dcache_xfer_memory): Delete.
6805         (dcache_read_memory_partial): New, based on the read bits of
6806         dcache_xfer_memory.
6807         (dcache_update): Add status parameter.  Use ULONGEST for len, and
6808         adjust.  Discard cache lines if the reason for the update was
6809         error.
6810         * dcache.h (dcache_xfer_memory): Delete declaration.
6811         (dcache_read_memory_partial): New declaration.
6812         (dcache_update): Update prototype.
6813         * target.c (raw_memory_xfer_partial): Update the dcache here.
6814         (memory_xfer_partial_1): Don't handle dcache writes here.
6815
6816 2014-03-05  Mike Frysinger  <vapier@gentoo.org>
6817
6818         * remote-sim.c (gdbsim_load): Add const to prog.
6819
6820 2014-03-03  Tom Tromey  <tromey@redhat.com>
6821
6822         * elfread.c (probe_key): Change to bfd_data.
6823         (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6824         now per-BFD, not per-objfile.
6825         * stap-probe.c (stap_probe_destroy): Update comment.
6826         (handle_stap_probe): Allocate on the per-BFD obstack.
6827
6828 2014-03-03  Tom Tromey  <tromey@redhat.com>
6829
6830         * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6831         * breakpoint.c (create_longjmp_master_breakpoint): Use
6832         get_probe_address.
6833         (add_location_to_breakpoint, bkpt_probe_insert_location)
6834         (bkpt_probe_remove_location): Update.
6835         * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6836         * elfread.c (elf_symfile_relocate_probe): Remove.
6837         (elf_probe_fns): Update.
6838         (insert_exception_resume_breakpoint): Change type of "probe"
6839         parameter to bound_probe.
6840         (check_exception_resume): Update.
6841         * objfiles.c (objfile_relocate1): Don't relocate probes.
6842         * probe.c (bound_probe_s): New typedef.
6843         (parse_probes): Use get_probe_address.  Set sal's objfile.
6844         (find_probe_by_pc): Return a bound_probe.
6845         (collect_probes): Return a VEC(bound_probe_s).
6846         (compare_probes): Update.
6847         (gen_ui_out_table_header_info): Change type of "probes"
6848         parameter.  Update.
6849         (info_probes_for_ops): Update.
6850         (get_probe_address): New function.
6851         (probe_safe_evaluate_at_pc): Update.
6852         * probe.h (struct probe_ops) <get_probe_address>: New field.
6853         <set_semaphore, clear_semaphore>: Add objfile parameter.
6854         (struct probe) <objfile>: Remove field.
6855         <arch>: New field.
6856         <address>: Update comment.
6857         (struct bound_probe): New.
6858         (find_probe_by_pc): Return a bound_probe.
6859         (get_probe_address): Declare.
6860         * solib-svr4.c (struct probe_and_action) <address>: New field.
6861         (hash_probe_and_action, equal_probe_and_action): Update.
6862         (register_solib_event_probe): Add address parameter.
6863         (solib_event_probe_at): Update.
6864         (svr4_create_probe_breakpoints): Add objfile parameter.  Use
6865         get_probe_address.
6866         * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6867         (stap_get_probe_address): New function.
6868         (stap_can_evaluate_probe_arguments, compute_probe_arg)
6869         (compile_probe_arg): Update.
6870         (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6871         address.
6872         (handle_stap_probe): Don't relocate the probe.
6873         (stap_relocate): Remove.
6874         (stap_gen_info_probes_table_values): Update.
6875         (stap_probe_ops): Remove stap_relocate.
6876         * symfile-debug.c (debug_sym_relocate_probe): Remove.
6877         (debug_sym_probe_fns): Update.
6878         * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6879         * symtab.c (init_sal): Use memset.
6880         * symtab.h (struct symtab_and_line) <objfile>: New field.
6881         * tracepoint.c (start_tracing, stop_tracing): Update.
6882
6883 2014-03-03  Tom Tromey  <tromey@redhat.com>
6884
6885         * probe.h (parse_probes, find_probe_by_pc)
6886         (find_probes_in_objfile): Fix comments.
6887
6888 2014-03-02  Doug Evans  <xdje42@gmail.com>
6889
6890         * infrun.c (handle_signal_stop): Replace test for
6891         TARGET_WAITKIND_STOPPED with an assert.
6892
6893 2014-03-02  Doug Evans  <xdje42@gmail.com>
6894
6895         * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6896
6897 2014-03-02  Doug Evans  <xdje42@gmail.com>
6898
6899         * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6900
6901 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
6902
6903         * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6904
6905 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
6906
6907         * i386obsd-nat.c: Include "obsd-nat.h".
6908         (_initialize_i386obsd_nat): Call obsd_add_target instead of
6909         add_target.
6910         * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6911
6912 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
6913
6914         * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6915
6916 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
6917
6918         * mips64obsd-nat.c: Include "obsd-nath".
6919         (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6920         add_target
6921         * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6922
6923 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
6924
6925         * amd64obsd-nat.c: Include "obsd-nat,h.
6926         (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6927         add_target.
6928         * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6929
6930 2014-02-28  Siva Chandra Reddy  <sivachandra@google.com>
6931
6932         * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6933         (find_overload_match): Update call to find_oload_champ.
6934         (find_oload_champ_namespace_loop): Likewise
6935
6936 2014-02-28  Mark Kettenis  <kettenis@gnu.org>
6937
6938         * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6939
6940         * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6941         * config/sparc/obsd64.mh: New file.
6942         * sparc64obsd-nat.c: New file.
6943
6944         * obsd-nat.h: New file.
6945         * obsd-nat.c: New file.
6946         * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6947         (ALLDEPFILES): Add obsd-nat.c.
6948
6949 2014-02-28  Tom Tromey  <tromey@redhat.com>
6950
6951         * cli-out.c (cli_ui_out_impl): Now const.  Remove comment.
6952         * cli-out.h (cli_ui_out_impl): Now const.
6953         * mi/mi-out.c (mi_ui_out_impl): Now const.  Remove comment.
6954         * ui-out.c (struct ui_out) <impl>: Now const.
6955         (default_ui_out_impl): Now const.
6956         (ui_out_new): Make 'impl' parameter const.
6957         * ui-out.h (ui_out_new): Update.
6958
6959 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
6960
6961         * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6962
6963 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
6964
6965         * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6966
6967 2014-02-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
6968
6969         Additional PR 8882 fix.
6970         * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6971
6972 2014-02-27  Pedro Alves  <palves@redhat.com>
6973
6974         * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6975         isn't set.
6976
6977 2014-02-27  Pedro Alves  <palves@redhat.com>
6978
6979         PR 12702
6980         * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6981         * nat/linux-waitpid.c: Include string.h.
6982         (status_to_str): Moved here and made extern.
6983         * nat/linux-waitpid.h (status_to_str): New declaration.
6984
6985 2014-02-27  Hui Zhu  <hui@codesourcery.com>
6986
6987         PR 12702
6988         * infrun.c (ptid_match): Move ...
6989         * common/ptid.c (ptid_match): ... here.
6990         * inferior.h (ptid_match): Move ...
6991         * common/ptid.h (ptid_match): ... here.
6992
6993 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
6994
6995         * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6996         * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6997         gdb_target_obs.
6998
6999 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
7000
7001         * obsd-tdep.c (obsd_auxv_parse): New function.
7002         (obsd_init_abi): Set auxv_parse.
7003
7004         * gdbarch.sh (auxv_parse): New.
7005         * gdbarch.h: Regenerated.
7006         * gdbarch.c: Regenerated.
7007         * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7008
7009 2014-02-26  Ludovic Courtès  <ludo@gnu.org>
7010
7011         * guile/scm-value.c (gdbscm_history_append_x): New function.
7012         (value_functions): Add it.
7013
7014 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
7015
7016         * dwarf2read.c (attr_value_as_address): New function.
7017         (dwarf2_find_base_address, read_call_site_scope): Use
7018         attr_value_as_address in place of DW_ADDR.
7019         (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7020         the low and high addresses.  Slight rework of the handling
7021         of the high pc being a constant form, and limit it to
7022         DWARF verson 4 or higher.
7023         (dwarf2_record_block_ranges): Likewise.
7024         (read_partial_die): Likewise.
7025         (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7026
7027 2014-02-26  Tom Tromey  <tromey@redhat.com>
7028
7029         * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7030
7031 2014-02-26  Tom Tromey  <tromey@redhat.com>
7032
7033         * elfread.c (elf_read_minimal_symbols): Return early if
7034         minimal symbols have already been read.  Add "ei" parameter.
7035         (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7036         * minsyms.c (prim_record_minimal_symbol_full): Update.
7037         * objfiles.h (struct objstats) <n_minsyms>: Move...
7038         (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7039         * symmisc.c (print_objfile_statistics): Update.
7040
7041 2014-02-26  Tom Tromey  <tromey@redhat.com>
7042
7043         * elfread.c (elf_read_minimal_symbols): New function, from
7044         elf_symfile_read.
7045         (elf_symfile_read): Call it.
7046
7047 2014-02-26  Tom Tromey  <tromey@redhat.com>
7048
7049         * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7050         (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7051         (lookup_minimal_symbol_solib_trampoline)
7052         (lookup_minimal_symbol_by_pc_section_1)
7053         (lookup_minimal_symbol_and_objfile): Update.
7054         (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7055         Don't allocate a minimal symbol if minsyms have already been read.
7056         (build_minimal_symbol_hash_tables): Update.
7057         (install_minimal_symbols): Do nothing if minsyms already read.
7058         Use the per-BFD obstack.
7059         (terminate_minimal_symbol_table): Use the per-BFD obstack.
7060         * objfiles.c (allocate_objfile): Call
7061         terminate_minimal_symbol_table later.
7062         (have_minimal_symbols): Update.
7063         * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7064         minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7065         Move from struct objfile.
7066         <minsyms_read>: New field.
7067         (struct objfile) <msymbols, minimal_symbol_count,
7068         msymbol_hash, msymbol_demangled_hash>: Move.
7069         (ALL_OBJFILE_MSYMBOLS): Update.
7070         * symfile.c (read_symbols): Set minsyms_read.
7071         (reread_symbols): Update.
7072         * symmisc.c (dump_objfile, dump_msymbols): Update.
7073
7074 2014-02-26  Tom Tromey  <tromey@redhat.com>
7075
7076         * minsyms.c (msymbols_sort): Remove.
7077         * minsyms.h (msymbols_sort): Remove.
7078         * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7079         * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7080         * elfread.c (elf_symtab_read): Don't add section offsets.
7081         * xcoffread.c (record_minimal_symbol): Don't add section offset
7082         to minimal symbol address.
7083         * somread.c (text_offset, data_offset): Remove.
7084         (som_symtab_read): Don't add section offsets to minimal symbol
7085         addresses.
7086         * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7087         Don't add section offsets to minimal symbols.
7088         * coffread.c (coff_symtab_read): Don't add section offsets
7089         to minimal symbol addresses.
7090         * machoread.c (macho_symtab_add_minsym): Don't add section offset
7091         to minimal symbol addresses.
7092         * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7093         section offset to minimal symbol addresses.
7094         * mdebugread.c (parse_partial_symbols): Don't add section
7095         offset to minimal symbol addresses.
7096         * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7097         offset to minimal symbol addresses.
7098
7099 2014-02-26  Tom Tromey  <tromey@redhat.com>
7100
7101         * ada-lang.c (ada_main_name): Update.
7102         (ada_add_standard_exceptions): Update.
7103         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7104         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7105         * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7106         * auxv.c (ld_so_xfer_auxv): Update.
7107         * avr-tdep.c (avr_scan_prologue): Update.
7108         * ax-gdb.c (gen_var_ref): Update.
7109         * blockframe.c (get_pc_function_start)
7110         (find_pc_partial_function_gnu_ifunc): Update.
7111         * breakpoint.c (create_overlay_event_breakpoint)
7112         (create_longjmp_master_breakpoint)
7113         (create_std_terminate_master_breakpoint)
7114         (create_exception_master_breakpoint): Update.
7115         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7116         * c-valprint.c (c_val_print): Update.
7117         * coff-pe-read.c (add_pe_forwarded_sym): Update.
7118         * common/agent.c (agent_look_up_symbols): Update.
7119         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7120         * dwarf2loc.c (call_site_to_target_addr): Update.
7121         * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7122         * elfread.c (elf_gnu_ifunc_record_cache)
7123         (elf_gnu_ifunc_resolve_by_got): Update.
7124         * findvar.c (default_read_var_value): Update.
7125         * frame.c (inside_main_func): Update.
7126         * frv-tdep.c (frv_frame_this_id): Update.
7127         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7128         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7129         Update.
7130         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7131         (hppa_hpux_find_dummy_bpaddr): Update.
7132         * hppa-tdep.c (hppa_symbol_address): Update.
7133         * infcmd.c (until_next_command): Update.
7134         * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7135         Update.
7136         * linespec.c (minsym_found, add_minsym): Update.
7137         * linux-nat.c (get_signo): Update.
7138         * linux-thread-db.c (inferior_has_bug): Update.
7139         * m32c-tdep.c (m32c_return_value)
7140         (m32c_m16c_address_to_pointer): Update.
7141         * m32r-tdep.c (m32r_frame_this_id): Update.
7142         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7143         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7144         * maint.c (maintenance_translate_address): Update.
7145         * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7146         (frob_address): New function.
7147         (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7148         frob_address.  Rename parameter to "pc_in".
7149         (compare_minimal_symbols, compact_minimal_symbols): Use raw
7150         addresses.
7151         (find_solib_trampoline_target, minimal_symbol_upper_bound):
7152         Update.
7153         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7154         * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7155         * objc-lang.c (find_objc_msgsend): Update.
7156         * objfiles.c (objfile_relocate1): Update.
7157         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7158         * p-valprint.c (pascal_val_print): Update.
7159         * parse.c (write_exp_msymbol): Update.
7160         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7161         (ppc_elfv2_skip_entrypoint): Update.
7162         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7163         * printcmd.c (build_address_symbolic, msym_info)
7164         (address_info): Update.
7165         * proc-service.c (ps_pglobal_lookup): Update.
7166         * psymtab.c (find_pc_sect_psymtab_closer)
7167         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7168         Change msymbol parameter to bound_minimal_symbol.
7169         * ravenscar-thread.c (get_running_thread_id): Update.
7170         * remote.c (remote_check_symbols): Update.
7171         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7172         address.
7173         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7174         * solib-dsbt.c (lm_base): Update.
7175         * solib-frv.c (lm_base, main_got): Update.
7176         * solib-irix.c (locate_base): Update.
7177         * solib-som.c (som_solib_create_inferior_hook)
7178         (link_map_start): Update.
7179         * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7180         * solib-svr4.c (elf_locate_base, enable_break): Update.
7181         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7182         (flush_ea_cache): Update.
7183         * stabsread.c (define_symbol, scan_file_globals): Update.
7184         * stack.c (find_frame_funname): Update.
7185         * symfile-debug.c (debug_qf_expand_symtabs_matching)
7186         (debug_qf_find_pc_sect_symtab): Update.
7187         * symfile.c (simple_read_overlay_table)
7188         (simple_overlay_update): Update.
7189         * symfile.h (struct quick_symbol_functions)
7190         <find_pc_sect_symtab>: Change type of msymbol to
7191         bound_minimal_symbol.
7192         * symmisc.c (dump_msymbols): Update.
7193         * symtab.c (find_pc_sect_symtab_via_partial)
7194         (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7195         (search_symbols, print_msymbol_info): Update.
7196         * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7197         (MSYMBOL_VALUE_ADDRESS): Redefine.
7198         (BMSYMBOL_VALUE_ADDRESS): New macro.
7199         * tracepoint.c (scope_info): Update.
7200         * tui/tui-disasm.c (tui_find_disassembly_address)
7201         (tui_get_begin_asm_address): Update.
7202         * valops.c (find_function_in_inferior): Update.
7203         * value.c (value_static_field, value_fn_field): Update.
7204
7205 2014-02-26  Tom Tromey  <tromey@redhat.com>
7206
7207         * ada-lang.c (ada_update_initial_language): Update.
7208         (ada_main_name, ada_has_this_exception_support): Update.
7209         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7210         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7211         * arm-tdep.c (arm_skip_stub): Update.
7212         * auxv.c (ld_so_xfer_auxv): Update.
7213         * avr-tdep.c (avr_scan_prologue): Update.
7214         * ax-gdb.c (gen_var_ref): Update.
7215         * breakpoint.c (struct breakpoint_objfile_data)
7216         <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7217         type to bound_minimal_symbol.
7218         (create_overlay_event_breakpoint)
7219         (create_longjmp_master_breakpoint)
7220         (create_std_terminate_master_breakpoint)
7221         (create_exception_master_breakpoint): Update.
7222         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7223         * c-exp.y (classify_name): Update.
7224         * coffread.c (coff_symfile_read): Update.
7225         * common/agent.c (agent_look_up_symbols): Update.
7226         * d-lang.c (d_main_name): Update.
7227         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7228         * dec-thread.c (enable_dec_thread): Update.
7229         * dwarf2loc.c (call_site_to_target_addr): Update.
7230         * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7231         * eval.c (evaluate_subexp_standard): Update.
7232         * findvar.c (struct minsym_lookup_data) <result>: Change type
7233         to bound_minimal_symbol.
7234         <objfile>: Remove.
7235         (minsym_lookup_iterator_cb, default_read_var_value): Update.
7236         * frame.c (inside_main_func): Update.
7237         * frv-tdep.c (frv_frame_this_id): Update.
7238         * gcore.c (call_target_sbrk): Update.
7239         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7240         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7241         Update.
7242         * go-lang.c (go_main_name): Update.
7243         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7244         (hppa_hpux_find_import_stub_for_addr): Update.
7245         * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7246         Update.  Change return type.
7247         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7248         type.
7249         * jit.c (jit_breakpoint_re_set_internal): Update.
7250         * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7251         Update.
7252         * linux-nat.c (get_signo): Update.
7253         * linux-thread-db.c (inferior_has_bug): Update
7254         * m32c-tdep.c (m32c_return_value)
7255         (m32c_m16c_address_to_pointer): Update.
7256         * m32r-tdep.c (m32r_frame_this_id): Update.
7257         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7258         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7259         * minsyms.c (lookup_minimal_symbol_internal): Rename to
7260         lookup_minimal_symbol.  Change return type.
7261         (lookup_minimal_symbol): Remove.
7262         (lookup_bound_minimal_symbol): Update.
7263         (lookup_minimal_symbol_text): Change return type.
7264         (lookup_minimal_symbol_solib_trampoline): Change return type.
7265         * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7266         (lookup_minimal_symbol_solib_trampoline): Change return type.
7267         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7268         * objc-lang.c (lookup_objc_class, lookup_child_selector)
7269         (value_nsstring, find_imps): Update.
7270         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7271         * p-lang.c (pascal_main_name): Update.
7272         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7273         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7274         * proc-service.c (ps_pglobal_lookup): Update.
7275         * ravenscar-thread.c (get_running_thread_msymbol): Change
7276         return type.
7277         (has_ravenscar_runtime, get_running_thread_id): Update.
7278         * remote.c (remote_check_symbols): Update.
7279         * sol-thread.c (ps_pglobal_lookup): Update.
7280         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7281         * solib-dsbt.c (lm_base): Update.
7282         * solib-frv.c (lm_base, frv_relocate_section_addresses):
7283         Update.
7284         * solib-irix.c (locate_base): Update.
7285         * solib-som.c (som_solib_create_inferior_hook)
7286         (som_solib_desire_dynamic_linker_symbols, link_map_start):
7287         Update.
7288         * solib-spu.c (spu_enable_break): Update.
7289         * solib-svr4.c (elf_locate_base, enable_break): Update.
7290         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7291         (flush_ea_cache): Update.
7292         * stabsread.c (define_symbol): Update.
7293         * symfile.c (simple_read_overlay_table): Update.
7294         * symtab.c (find_pc_sect_line): Update.
7295         * tracepoint.c (scope_info): Update.
7296         * tui-disasm.c (tui_get_begin_asm_address): Update.
7297         * value.c (value_static_field): Update.
7298
7299 2014-02-26  Tom Tromey  <tromey@redhat.com>
7300
7301         * minsyms.c (prim_record_minimal_symbol_full): Use
7302         SET_MSYMBOL_VALUE_ADDRESS.
7303         * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7304         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7305         SET_MSYMBOL_VALUE_ADDRESS.
7306         * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7307         (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7308
7309 2014-02-26  Tom Tromey  <tromey@redhat.com>
7310
7311         * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7312         (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7313         (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7314         (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7315         (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7316         (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7317         (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7318         * ada-lang.c (ada_main_name): Update.
7319         (ada_lookup_simple_minsym): Update.
7320         (ada_make_symbol_completion_list): Update.
7321         (ada_add_standard_exceptions): Update.
7322         * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7323         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7324         * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7325         * arm-tdep.c (skip_prologue_function): Update.
7326         (arm_skip_stack_protector, arm_skip_stub): Update.
7327         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7328         (arm_wince_skip_main_prologue): Update.
7329         * auxv.c (ld_so_xfer_auxv): Update.
7330         * avr-tdep.c (avr_scan_prologue): Update.
7331         * ax-gdb.c (gen_var_ref): Update.
7332         * block.c (call_site_for_pc): Update.
7333         * blockframe.c (get_pc_function_start): Update.
7334         (find_pc_partial_function_gnu_ifunc): Update.
7335         * breakpoint.c (create_overlay_event_breakpoint): Update.
7336         (create_longjmp_master_breakpoint): Update.
7337         (create_std_terminate_master_breakpoint): Update.
7338         (create_exception_master_breakpoint): Update.
7339         (resolve_sal_pc): Update.
7340         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7341         * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7342         Update.
7343         * c-valprint.c (c_val_print): Update.
7344         * coff-pe-read.c (add_pe_forwarded_sym): Update.
7345         * coffread.c (coff_symfile_read): Update.
7346         * common/agent.c (agent_look_up_symbols): Update.
7347         * dbxread.c (find_stab_function_addr): Update.
7348         (end_psymtab): Update.
7349         * dwarf2loc.c (call_site_to_target_addr): Update.
7350         (func_verify_no_selftailcall): Update.
7351         (tailcall_dump): Update.
7352         (call_site_find_chain_1): Update.
7353         (dwarf_expr_reg_to_entry_parameter): Update.
7354         * elfread.c (elf_gnu_ifunc_record_cache): Update.
7355         (elf_gnu_ifunc_resolve_by_got): Update.
7356         * f-valprint.c (info_common_command): Update.
7357         * findvar.c (read_var_value): Update.
7358         * frame.c (get_prev_frame_1): Update.
7359         (inside_main_func): Update.
7360         * frv-tdep.c (frv_skip_main_prologue): Update.
7361         (frv_frame_this_id): Update.
7362         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7363         * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7364         * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7365         (gnuv3_skip_trampoline): Update.
7366         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7367         (hppa64_hpux_in_solib_call_trampoline): Update.
7368         (hppa_hpux_skip_trampoline_code): Update.
7369         (hppa64_hpux_search_dummy_call_sequence): Update.
7370         (hppa_hpux_find_import_stub_for_addr): Update.
7371         (hppa_hpux_find_dummy_bpaddr): Update.
7372         * hppa-tdep.c (hppa_symbol_address)
7373         (hppa_lookup_stub_minimal_symbol): Update.
7374         * i386-tdep.c (i386_skip_main_prologue): Update.
7375         (i386_pe_skip_trampoline_code): Update.
7376         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7377         * infcall.c (get_function_name): Update.
7378         * infcmd.c (until_next_command): Update.
7379         * jit.c (jit_breakpoint_re_set_internal): Update.
7380         (jit_inferior_init): Update.
7381         * linespec.c (minsym_found): Update.
7382         (add_minsym): Update.
7383         * linux-fork.c (info_checkpoints_command): Update.
7384         * linux-nat.c (get_signo): Update.
7385         * linux-thread-db.c (inferior_has_bug): Update.
7386         * m32c-tdep.c (m32c_return_value): Update.
7387         (m32c_m16c_address_to_pointer): Update.
7388         (m32c_m16c_pointer_to_address): Update.
7389         * m32r-tdep.c (m32r_frame_this_id): Update.
7390         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7391         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7392         * maint.c (maintenance_translate_address): Update.
7393         * minsyms.c (add_minsym_to_hash_table): Update.
7394         (add_minsym_to_demangled_hash_table): Update.
7395         (msymbol_objfile): Update.
7396         (lookup_minimal_symbol): Update.
7397         (iterate_over_minimal_symbols): Update.
7398         (lookup_minimal_symbol_text): Update.
7399         (lookup_minimal_symbol_by_pc_name): Update.
7400         (lookup_minimal_symbol_solib_trampoline): Update.
7401         (lookup_minimal_symbol_by_pc_section_1): Update.
7402         (lookup_minimal_symbol_and_objfile): Update.
7403         (prim_record_minimal_symbol_full): Update.
7404         (compare_minimal_symbols): Update.
7405         (compact_minimal_symbols): Update.
7406         (build_minimal_symbol_hash_tables): Update.
7407         (install_minimal_symbols): Update.
7408         (terminate_minimal_symbol_table): Update.
7409         (find_solib_trampoline_target): Update.
7410         (minimal_symbol_upper_bound): Update.
7411         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7412         * mips-tdep.c (mips_stub_frame_sniffer): Update.
7413         (mips_skip_pic_trampoline_code): Update.
7414         * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7415         * objc-lang.c (selectors_info): Update.
7416         (classes_info): Update.
7417         (find_methods): Update.
7418         (find_imps): Update.
7419         (find_objc_msgsend): Update.
7420         * objfiles.c (objfile_relocate1): Update.
7421         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7422         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7423         * p-valprint.c (pascal_val_print): Update.
7424         * parse.c (write_exp_msymbol): Update.
7425         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7426         (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7427         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7428         * printcmd.c (build_address_symbolic): Update.
7429         (sym_info): Update.
7430         (address_info): Update.
7431         * proc-service.c (ps_pglobal_lookup): Update.
7432         * psymtab.c (find_pc_sect_psymtab_closer): Update.
7433         (find_pc_sect_psymtab): Update.
7434         * python/py-framefilter.c (py_print_frame): Update.
7435         * ravenscar-thread.c (get_running_thread_id): Update.
7436         * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7437         Update.
7438         * remote.c (remote_check_symbols): Update.
7439         * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7440         (rs6000_skip_trampoline_code): Update.
7441         * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7442         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7443         * solib-dsbt.c (lm_base): Update.
7444         * solib-frv.c (lm_base): Update.
7445         (main_got): Update.
7446         * solib-irix.c (locate_base): Update.
7447         * solib-som.c (som_solib_create_inferior_hook): Update.
7448         (som_solib_desire_dynamic_linker_symbols): Update.
7449         (link_map_start): Update.
7450         * solib-spu.c (spu_enable_break): Update.
7451         (ocl_enable_break): Update.
7452         * solib-svr4.c (elf_locate_base): Update.
7453         (enable_break): Update.
7454         * spu-tdep.c (spu_get_overlay_table): Update.
7455         (spu_catch_start): Update.
7456         (flush_ea_cache): Update.
7457         * stabsread.c (define_symbol): Update.
7458         (scan_file_globals): Update.
7459         * stack.c (find_frame_funname): Update.
7460         (frame_info): Update.
7461         * symfile.c (simple_read_overlay_table): Update.
7462         (simple_overlay_update): Update.
7463         * symmisc.c (dump_msymbols): Update.
7464         * symtab.c (fixup_section): Update.
7465         (find_pc_sect_line): Update.
7466         (skip_prologue_sal): Update.
7467         (search_symbols): Update.
7468         (print_msymbol_info): Update.
7469         (rbreak_command): Update.
7470         (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7471         (completion_list_objc_symbol): Update.
7472         (default_make_symbol_completion_list_break_on): Update.
7473         * tracepoint.c (scope_info): Update.
7474         * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7475         (tui_get_begin_asm_address): Update.
7476         * valops.c (find_function_in_inferior): Update.
7477         * value.c (value_static_field): Update.
7478         (value_fn_field): Update.
7479
7480 2014-02-26  Tom Tromey  <tromey@redhat.com>
7481
7482         * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7483         bound minimal symbols.  Move code that knows about minsym
7484         table layout...
7485         * minsyms.c (minimal_symbol_upper_bound): ... here.  New
7486         function.
7487         * minsyms.h (minimal_symbol_upper_bound): Declare.
7488         * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7489         minimal_symbol_upper_bound.
7490
7491 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
7492
7493         * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7494         Use the type's name if its basic type does not have a tag.
7495
7496 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
7497
7498         * dwarf2read.c (read_subrange_type): Add comment.
7499
7500 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
7501
7502         * dwarf2read.c (update_enumeration_type_from_children): New
7503         function, mostly extracted from process_structure_scope.
7504         (read_enumeration_type): Call update_enumeration_type_from_children.
7505         (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7506         and flag_flag_enum fields.
7507
7508 2014-02-26  Pedro Alves  <palves@redhat.com>
7509
7510         * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7511         (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7512         to_xfer_partial method.
7513
7514 2014-02-26  Pedro Alves  <palves@redhat.com>
7515
7516         * target.c (complete_target_initialization): Don't install
7517         default_xfer_partial as to_xfer_partial hook.
7518         (nomemory): Delete.
7519         (update_current_target): Don't INHERIT nor de_fault
7520         deprecated_xfer_memory.  Delete de_fault macro.
7521         (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7522         (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7523         * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7524         field.
7525
7526 2014-02-26  Pedro Alves  <palves@redhat.com>
7527
7528         * go32-nat.c (my_write_child): New function.
7529         (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7530         (go32_xfer_partial): New function.
7531         (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7532         Instead install a to_xfer_partial hook.
7533
7534 2014-02-26  Pedro Alves  <palves@redhat.com>
7535
7536         * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7537         to_xfer_partial helper.  Rewrite.
7538         (procfs_xfer_partial): New function.
7539         (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7540         Install a to_xfer_partial hook.
7541
7542 2014-02-26  Pedro Alves  <palves@redhat.com>
7543
7544         * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7545         (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7546         (m32r_xfer_partial): New function.
7547         (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7548         Install a to_xfer_partial hook.
7549
7550 2014-02-26  Pedro Alves  <palves@redhat.com>
7551
7552         * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7553         helper.
7554         (mips_xfer_partial): New function.
7555         (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7556         hook.  Install a to_xfer_partial hook.
7557
7558 2014-02-26  Joel Brobecker  <brobecker@adacore.com>
7559
7560         * gdbtypes.h (create_array_type_with_stride): Add declaration.
7561         * gdbtypes.c (create_array_type_with_stride): New function,
7562         renaming create_array_type, but with an added parameter
7563         called "bit_stride".
7564         (create_array_type): Re-implement using
7565         create_array_type_with_stride.
7566         * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7567         and DW_AT_bit_stride attributes.
7568
7569 2014-02-26  Pedro Alves  <palves@redhat.com>
7570
7571         * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7572         task-specific breakpoints.
7573
7574 2014-02-25  Pedro Alves  <palves@redhat.com>
7575
7576         * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7577         handling of object == TARGET_OBJECT_UNWIND_TABLE.
7578
7579 2014-02-25  Stan Shebs  <stan@codesourcery.com>
7580
7581         * defs.h: Annotate comments for Doxygen.
7582
7583 2014-02-25  Tom Tromey  <tromey@redhat.com>
7584
7585         * target.h (target_ignore): Don't declare.
7586         * target.c (target_ignore): Remove.
7587
7588 2014-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
7589
7590         PR gdb/16626
7591         * auto-load.c (auto_load_objfile_script_1): Change filename to
7592         debugfile.
7593
7594 2014-02-25  Joel Brobecker  <brobecker@adacore.com>
7595
7596         * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7597         documentation.  Adjust prototype to match the target_ops
7598         to_xfer_partial method.  Adjust implementation accordingly.
7599
7600 2014-02-25  Hui Zhu  <hui@codesourcery.com>
7601
7602         * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7603         to_traceframe_info.
7604
7605 2014-02-25  Kevin Buettner  <kevinb@redhat.com>
7606
7607         * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7608         (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7609         (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7610         (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7611         (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7612         (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7613         (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7614         (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7615         New constants.
7616         (rl78_register_type): Use a data pointer type for SP and
7617         new pseudo registers mentioned above.  Use a 16 bit integer
7618         type for all other register pairs.
7619         (rl78_register_name, rl78_g10_register_name): Update for
7620         new pseudo registers.
7621         (rl78_pseudo_register_read): Likewise.
7622         (rl78_pseudo_register_write): Likewise.
7623         (rl78_dwarf_reg_to_regnum): Return register numbers representing
7624         to the newly added pseudo registers.
7625
7626 2014-02-24  Doug Evans  <dje@google.com>
7627
7628         * value.c (record_latest_value): Fix comment.
7629         * printcmd.c (print_command_1): Remove code to handle -1 return from
7630         record_latest_value.
7631
7632 2014-02-24  Pedro Alves  <palves@redhat.com>
7633
7634         * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7635         deprecated_xfer_memory hook.
7636         (procfs_xfer_partial): Call procfs_xfer_memory instead
7637         of the deprecated_xfer_memory target hook.
7638         (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7639         helper.
7640
7641 2014-02-24  Yuanhui Zhang  <asmwarrior@gmail.com>
7642
7643         * windows-nat.c (windows_xfer_shared_libraries): Return
7644         TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7645         requested object is TARGET_OBJECT_LIBRARIES.
7646
7647 2014-02-24  Yao Qi  <yao@codesourcery.com>
7648
7649         * target.h (enum target_xfer_status)
7650         <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7651         <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7652         explicitly.  New.
7653         * corefile.c (memory_error_message): User updated.
7654         * exec.c (section_table_read_available_memory): Likewise.
7655         * record-btrace.c (record_btrace_xfer_partial): Likewise.
7656         * target.c (target_xfer_status_to_string): Likewise.
7657         (raw_memory_xfer_partial): Likewise.
7658         (memory_xfer_partial_1, target_xfer_partial): Likewise.
7659         * valops.c (read_value_memory): Likewise.
7660         * exec.h: Update comments.
7661
7662 2014-02-24  Yao Qi  <yao@codesourcery.com>
7663
7664         * target.c (target_xfer_status_to_string): Rename argument err
7665         to status.
7666         * target.h (target_xfer_status_to_string): Update declaration.
7667         Replace target_xfer_error_to_string with
7668         target_xfer_status_to_string in comment.
7669
7670 2014-02-24  Yao Qi  <yao@codesourcery.com>
7671
7672         * mips-linux-nat.c (super_close): Update its type.
7673         (mips_linux_close): Pass 'self' to super_close.
7674
7675 2014-02-24  Yao Qi  <yao@codesourcery.com>
7676
7677         * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7678         * corefile.c (read_memory): Adjusted.
7679         * target.c (target_write_with_progress): Adjusted.
7680
7681 2014-02-23  Yao Qi  <yao@codesourcery.com>
7682
7683         Revert two patches:
7684
7685         2013-10-25  Yao Qi  <yao@codesourcery.com>
7686
7687         * remote.c (remote_traceframe_info): Return early if
7688         traceframe is not selected.
7689
7690         2013-07-19  Yao Qi  <yao@codesourcery.com>
7691
7692         * target.c (update_current_target): Change the default action
7693         of 'to_traceframe_info' from tcomplain to return_zero.
7694         * target.h (struct target_ops) <to_traceframe_info>: Add more
7695         comments.
7696
7697 2014-02-23  Yao Qi  <yao@codesourcery.com>
7698
7699         * valops.c (read_value_memory): Rewrite it.  Call
7700         target_xfer_partial in a loop.
7701         * exec.h (section_table_available_memory): Remove declaration.
7702         Move comments to ...
7703         * exec.c (section_table_available_memory): ... here.  Make it
7704         static.
7705
7706 2014-02-23  Yao Qi  <yao@codesourcery.com>
7707
7708         * exec.c (section_table_read_available_memory): New function.
7709         * exec.h (section_table_read_available_memory): Declare.
7710         * ctf.c (ctf_xfer_partial): Call
7711         section_table_read_available_memory.
7712         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7713
7714 2014-02-23  Yao Qi  <yao@codesourcery.com>
7715
7716         * ctf.c (ctf_xfer_partial): Move code to ...
7717         * exec.c (exec_read_partial_read_only): ... it.  New function.
7718         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7719         * tracefile.c: Include "exec.h".
7720         * exec.h (exec_read_partial_read_only): Declare.
7721
7722 2014-02-23  Yao Qi  <yao@codesourcery.com>
7723
7724         * tracefile-tfile.c (tfile_has_all_memory): Remove.
7725         (tfile_has_memory): Remove.
7726         (init_tfile_ops): Don't set fields to_has_all_memory and
7727         to_has_memory of tfile_ops.
7728         * tracefile.c (tracefile_has_all_memory): New function.
7729         (tracefile_has_memory): New function.
7730         (init_tracefile_ops): Initialize fields to_has_all_memory and
7731         to_has_memory of 'ops'.
7732
7733 2014-02-23  Yao Qi  <yao@codesourcery.com>
7734
7735         * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7736         (ctf_thread_alive, ctf_get_trace_status): Remove.
7737         (init_ctf_ops): Don't set some fields of ctf_ops.  Call
7738         init_tracefile_ops.
7739         * tracefile-tfile.c (tfile_get_trace_status): Remove.
7740         (tfile_has_stack, tfile_has_registers): Remove.
7741         (tfile_thread_alive): Remove.
7742         (init_tfile_ops): Don't set some fields of tfile_ops.  Call
7743         init_tracefile_ops.
7744         * tracefile.c (tracefile_has_stack): New function.
7745         (tracefile_has_registers): New function.
7746         (tracefile_thread_alive): New function.
7747         (tracefile_get_trace_status): New function.
7748         (init_tracefile_ops): New function.
7749         * tracefile.h (init_tracefile_ops): Declare.
7750
7751 2014-02-23  Yao Qi  <yao@codesourcery.com>
7752
7753         * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7754         (O_LARGEFILE): Likewise.
7755         (tfile_ops): Likewise.
7756         (TRACE_HEADER_SIZE): Likewise.
7757         (trace_fd, trace_frames_offset, cur_offset): Likewise.
7758         (cur_data_size): Likewise.
7759         (tfile_read, tfile_open, tfile_interp_line): Likewise.
7760         (tfile_close, tfile_files_info): Likewise.
7761         (tfile_get_trace_status): Likewise.
7762         (tfile_get_tracepoint_status): Likewise.
7763         (tfile_get_traceframe_address): Likewise.
7764         (tfile_trace_find, match_blocktype): Likewise.
7765         (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7766         (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7767         (tfile_get_trace_state_variable_value): Likewise.
7768         (tfile_has_all_memory, tfile_has_memory): Likewise.
7769         (tfile_has_stack, tfile_has_registers): Likewise.
7770         (tfile_thread_alive, build_traceframe_info): Likewise.
7771         (tfile_traceframe_info, init_tfile_ops): Likewise.
7772         (_initialize_tracepoint): Don't call init_tfile_ops
7773         and add_target_with_completer.
7774         * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7775         exec.h, completer.h and filenames.h.
7776         (_initialize_tracefile_tfile): New function.
7777
7778 2014-02-23  Yao Qi  <yao@codesourcery.com>
7779
7780         * Makefile.in (REMOTE_OBS): Append tracefile.o and
7781         tracefile-tfile.o.
7782         (HFILES_NO_SRCDIR): Add tracefile.h.
7783         * ctf.c: Include "tracefile.h".
7784         * tracefile.h: New file.
7785         * tracefile.c: New file
7786         * tracefile-tfile.c: New file.
7787         * tracepoint.c: Include "tracefile.h".
7788         (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7789         (stop_reason_names): Add const.
7790         (trace_file_writer_xfree): Move it to tracefile.c.
7791         (trace_save, trace_save_command, trace_save_tfile): Likewise.
7792         (trace_save_ctf): Likewise.
7793         (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7794         (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7795         (tfile_write_header, tfile_write_regblock_type): Likewise.
7796         (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7797         (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7798         (tfile_write_raw_data, tfile_end): Likewise.
7799         (tfile_trace_file_writer_new): Likewise.
7800         (free_uploaded_tp): Make it extern.
7801         (free_uploaded_tsv): Make it extern.
7802         (_initialize_tracepoint): Move code to register command 'tsave'
7803         to tracefile.c.
7804         * tracepoint.h (stop_reason_names): Declare.
7805         (struct trace_frame_write_ops): Move it to tracefile.h.
7806         (struct trace_file_write_ops): Likewise.
7807         (struct trace_file_writer): Likewise.
7808         (free_uploaded_tsvs, free_uploaded_tps): Declare.
7809
7810 2014-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
7811
7812         PR gdb/16594
7813         * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7814         process name.
7815         (get_cores_used_by_process): New parameter num_cores, use it.
7816         (linux_xfer_osdata_processes): Pass num_cores to it.
7817         * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7818         process name.
7819
7820 2014-02-21  Andreas Arnez  <arnez@vnet.linux.ibm.com>
7821
7822         * target.c (memory_xfer_partial): Fix length arg in call to
7823         breakpoint_xfer_memory.
7824
7825 2014-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
7826
7827         PR tdep/16397
7828         * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7829         number comes after the + or - signs.  Adjust length of register
7830         name to be extracted.
7831
7832 2014-02-20  Tom Tromey  <tromey@redhat.com>
7833
7834         * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7835         (ada_varobj_ops): Mark "extern".
7836
7837 2014-02-20  Tom Tromey  <tromey@redhat.com>
7838
7839         * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7840
7841 2014-02-20  Doug Evans  <xdje42@gmail.com>
7842
7843         * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7844         All callers updated.
7845         (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7846         All callers updated.
7847         * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7848         (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7849
7850 2014-02-20  lin zuojian  <manjian2006@gmail.com>
7851             Joel Brobecker  <brobecker@adacore.com>
7852             Doug Evans  <xdje42@gmail.com>
7853
7854         PR symtab/16581
7855         * dwarf2read.c (struct die_info): New member in_process.
7856         (reset_die_in_process): New function.
7857         (process_die): Set it at the start, reset when returning.
7858         (inherit_abstract_dies): Only call process_die if origin_child_die
7859         not already being processed.
7860
7861 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
7862
7863         * windows-nat.c (handle_unload_dll): Add function documentation.
7864         (do_initial_windows_stuff): Add comment explaining why we wait
7865         until after inferior initialization has finished before
7866         processing all DLLs.
7867
7868 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
7869
7870         * windows-nat.c (get_module_name): Delete.
7871         (windows_get_exec_module_filename): New function, mostly
7872         inspired from get_module_name.
7873         (windows_pid_to_exec_file): Replace call to get_module_name
7874         by call to windows_get_exec_module_filename.
7875
7876 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
7877
7878         * windows-nat.c (handle_load_dll): Rewrite this function's
7879         introductory comment.  Remove code using get_module_name
7880         to get the DLL's name.
7881
7882 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
7883
7884         * windows-nat.c (get_windows_debug_event): Ignore
7885         LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7886         if windows_initialization_done == 0.
7887         (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7888         Adjust implementation to always load all DLLs.
7889         (do_initial_windows_stuff): Replace call to
7890         windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7891
7892 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
7893
7894         * windows-nat.c (_initialize_windows_nat): Deprecate the
7895         "dll-symbols" command.  Turn the "add-shared-symbol-files"
7896         and "assf" aliases into commands, and deprecate them as well.
7897         * NEWS: Add entry explaining that "dll-symbols" and its two
7898         aliases are now deprecated.
7899
7900 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
7901
7902         * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7903         new-line in debug string.  Remove trailing spaces.
7904
7905 2014-02-19  Stan Shebs  <stan@codesourcery.com>
7906
7907         * darwin-nat.c (darwin_xfer_partial): Fix return type.
7908
7909 2014-02-19  Siva Chandra Reddy  <sivachandra@google.com>
7910
7911         * NEWS: Add entry for the new feature
7912         * python/py-value.c (valpy_binop): Call value_x_binop for struct
7913         and class values.
7914
7915 2014-02-19  Stan Shebs  <stan@codesourcery.com>
7916
7917         * MAINTAINERS: List Yao Qi as nios2 maintainer.
7918
7919 2014-02-19  Pedro Alves  <palves@redhat.com>
7920
7921         * common/ptid.h (struct ptid): Mention that process_stratum
7922         targets should prefer ptid.lwp.
7923
7924 2014-02-19  Pedro Alves  <palves@redhat.com>
7925
7926         * remote.c (remote_thread_alive, write_ptid, read_ptid)
7927         (read_ptid, remote_newthread_step, remote_threads_extra_info)
7928         (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7929         (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7930         store remote thread ids rather than ptid.tid.
7931         (_initialize_remote): Adjust.
7932
7933 2014-02-19  Tom Tromey  <tromey@redhat.com>
7934
7935         * target.c (target_get_unwinder): Rewrite.
7936         (target_get_tailcall_unwinder): Rewrite.
7937         * record-btrace.c (record_btrace_to_get_unwinder): New function.
7938         (record_btrace_to_get_tailcall_unwinder): New function.
7939         (init_record_btrace_ops): Update.
7940         * target.h (struct target_ops) <to_get_unwinder,
7941         to_get_tailcall_unwinder>: Now function pointers.  Use
7942         TARGET_DEFAULT_RETURN.
7943
7944 2014-02-19  Tom Tromey  <tromey@redhat.com>
7945
7946         * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7947         argument.
7948         (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7949
7950 2014-02-19  Tom Tromey  <tromey@redhat.com>
7951
7952         * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7953         directly.
7954         * target-delegates.c: Rebuild.
7955         * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7956         TARGET_DEFAULT_FUNC.
7957         * target.c (default_target_decr_pc_after_break): Rename from
7958         forward_target_decr_pc_after_break.  Simplify.
7959         (target_decr_pc_after_break): Rely on delegation.
7960
7961 2014-02-19  Tom Tromey  <tromey@redhat.com>
7962
7963         * target.c (update_current_target): Do not INHERIT to_doc or
7964         to_magic.  Do not de_fault to_open or to_close.
7965
7966 2014-02-19  Tom Tromey  <tromey@redhat.com>
7967
7968         * gcore.h (objfile_find_memory_regions): Declare.
7969         * gcore.c (objfile_find_memory_regions): No longer static.  Add
7970         "self" argument.
7971         (_initialize_gcore): Don't call exec_set_find_memory_regions.
7972         * exec.c: Include gcore.h.
7973         (exec_set_find_memory_regions): Remove.
7974         (exec_find_memory_regions): Remove.
7975         (exec_do_find_memory_regions): Remove.
7976         (init_exec_ops): Update.
7977         * defs.h (exec_set_find_memory_regions): Remove.
7978
7979 2014-02-19  Tom Tromey  <tromey@redhat.com>
7980
7981         * target-delegates.c: Rebuild.
7982         * target.h (struct target_ops) <to_extra_thread_info,
7983         to_thread_name, to_pid_to_exec_file, to_get_section_table,
7984         to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7985         not 0, in TARGET_DEFAULT_RETURN.
7986
7987 2014-02-19  Tom Tromey  <tromey@redhat.com>
7988
7989         * target.c (complete_target_initialization): Remove casts.  Use
7990         return_zero_has_execution.
7991         (return_zero): Add "ignore" argument.
7992         (return_zero_has_execution): New function.
7993         (init_dummy_target): Remove casts.  Use
7994         return_zero_has_execution.
7995
7996 2014-02-19  Tom Tromey  <tromey@redhat.com>
7997
7998         * target.c (update_current_target): Update comments.  Do not
7999         INHERIT to_stratum.
8000
8001 2014-02-19  Tom Tromey  <tromey@redhat.com>
8002
8003         * arm-linux-nat.c (arm_linux_read_description): Delegate when
8004         needed.
8005         * corelow.c (core_read_description): Delegate when needed.
8006         * remote.c (remote_read_description): Delegate when needed.
8007         * target-delegates.c: Rebuild.
8008         * target.c (target_read_description): Rewrite.
8009         * target.h (struct target_ops) <to_read_description>: Update
8010         comment.  Use TARGET_DEFAULT_RETURN.
8011
8012 2014-02-19  Tom Tromey  <tromey@redhat.com>
8013
8014         * target-delegates.c: Rebuild.
8015         * target.c (update_current_target): Don't inherit or default
8016         to_can_run.
8017         (find_default_run_target): Check against delegate_can_run.
8018         * target.h (struct target_ops) <to_can_run>: Use
8019         TARGET_DEFAULT_RETURN.
8020
8021 2014-02-19  Tom Tromey  <tromey@redhat.com>
8022
8023         * target-delegates.c: Rebuild.
8024         * target.c (target_disconnect): Unconditionally delegate.
8025         * target.h (struct target_ops) <to_disconnect>: Use
8026         TARGET_DEFAULT_NORETURN.
8027
8028 2014-02-19  Tom Tromey  <tromey@redhat.com>
8029
8030         * record.c (record_stop): Unconditionally delegate.
8031         * target-delegates.c: Rebuild.
8032         * target.c (target_stop_recording): Unconditionally delegate.
8033         * target.h (struct target_ops) <to_stop_recording>: Use
8034         TARGET_DEFAULT_IGNORE.
8035
8036 2014-02-19  Tom Tromey  <tromey@redhat.com>
8037
8038         * target-delegates.c: Rebuild.
8039         * target.c (target_enable_btrace): Unconditionally delegate.
8040         * target.h (struct target_ops) <to_enable_btrace>: Use
8041         TARGET_DEFAULT_NORETURN.
8042
8043 2014-02-19  Tom Tromey  <tromey@redhat.com>
8044
8045         * target-delegates.c: Rebuild.
8046         * target.c (target_read_btrace): Unconditionally delegate.
8047         * target.h (struct target_ops) <to_read_btrace>: Use
8048         TARGET_DEFAULT_NORETURN.
8049
8050 2014-02-19  Tom Tromey  <tromey@redhat.com>
8051
8052         * target-delegates.c: Rebuild.
8053         * target.c (target_teardown_btrace): Unconditionally delegate.
8054         * target.h (struct target_ops) <to_teardown_btrace>: Use
8055         TARGET_DEFAULT_NORETURN.
8056
8057 2014-02-19  Tom Tromey  <tromey@redhat.com>
8058
8059         * target-delegates.c: Rebuild.
8060         * target.c (target_disable_btrace): Unconditionally delegate.
8061         * target.h (struct target_ops) <to_disable_btrace>: Use
8062         TARGET_DEFAULT_NORETURN.
8063
8064 2014-02-19  Tom Tromey  <tromey@redhat.com>
8065
8066         * target-delegates.c: Rebuild.
8067         * target.c (default_search_memory): New function.
8068         (simple_search_memory): Update comment.
8069         (target_search_memory): Unconditionally delegate.
8070         * target.h (struct target_ops) <to_search_memory>: Use
8071         TARGET_DEFAULT_FUNC.
8072
8073 2014-02-19  Tom Tromey  <tromey@redhat.com>
8074
8075         * auxv.c (default_auxv_parse): No longer static.
8076         (target_auxv_parse): Unconditionally delegate.
8077         * auxv.h (default_auxv_parse): Declare.
8078         * target-delegates.c: Rebuild.
8079         * target.c: Include auxv.h.
8080         * target.h (struct target_ops) <to_auxv_parse>: Use
8081         TARGET_DEFAULT_FUNC.
8082
8083 2014-02-19  Tom Tromey  <tromey@redhat.com>
8084
8085         * target-delegates.c: Rebuild.
8086         * target.c (target_memory_map): Unconditionally delegate.
8087         * target.h (struct target_ops) <to_memory_map>: Use
8088         TARGET_DEFAULT_RETURN.
8089
8090 2014-02-19  Tom Tromey  <tromey@redhat.com>
8091
8092         * target-delegates.c: Rebuild.
8093         * target.c (target_thread_alive): Unconditionally delegate.
8094         * target.h (struct target_ops) <to_thread_alive>: Use
8095         TARGET_DEFAULT_RETURN.
8096
8097 2014-02-19  Tom Tromey  <tromey@redhat.com>
8098
8099         * target-delegates.c: Rebuild.
8100         * target.c (target_save_record): Unconditionally delegate.
8101         * target.h (struct target_ops) <to_save_record>: Use
8102         TARGET_DEFAULT_NORETURN.
8103
8104 2014-02-19  Tom Tromey  <tromey@redhat.com>
8105
8106         * target-delegates.c: Rebuild.
8107         * target.c (target_delete_record): Unconditionally delegate.
8108         * target.h (struct target_ops) <to_delete_record>: Use
8109         TARGET_DEFAULT_NORETURN.
8110
8111 2014-02-19  Tom Tromey  <tromey@redhat.com>
8112
8113         * target-delegates.c: Rebuild.
8114         * target.c (target_record_is_replaying): Unconditionally
8115         delegate.
8116         * target.h (struct target_ops) <to_record_is_replaying>: Use
8117         TARGET_DEFAULT_RETURN.
8118
8119 2014-02-19  Tom Tromey  <tromey@redhat.com>
8120
8121         * target-delegates.c: Rebuild.
8122         * target.c (target_goto_record_begin): Unconditionally delegate.
8123         * target.h (struct target_ops) <to_goto_record_begin>: Use
8124         TARGET_DEFAULT_NORETURN.
8125
8126 2014-02-19  Tom Tromey  <tromey@redhat.com>
8127
8128         * target-delegates.c: Rebuild.
8129         * target.c (target_goto_record_end): Unconditionally delegate.
8130         * target.h (struct target_ops) <to_goto_record_end>: Use
8131         TARGET_DEFAULT_NORETURN.
8132
8133 2014-02-19  Tom Tromey  <tromey@redhat.com>
8134
8135         * target-delegates.c: Rebuild.
8136         * target.c (target_goto_record): Unconditionally delegate.
8137         * target.h (struct target_ops) <to_goto_record>: Use
8138         TARGET_DEFAULT_NORETURN.
8139
8140 2014-02-19  Tom Tromey  <tromey@redhat.com>
8141
8142         * target-delegates.c: Rebuild.
8143         * target.c (target_insn_history): Unconditionally delegate.
8144         * target.h (struct target_ops) <to_insn_history>: Use
8145         TARGET_DEFAULT_NORETURN.
8146
8147 2014-02-19  Tom Tromey  <tromey@redhat.com>
8148
8149         * target-delegates.c: Rebuild.
8150         * target.c (target_insn_history_from): Unconditionally delegate.
8151         * target.h (struct target_ops) <to_insn_history_from>: Use
8152         TARGET_DEFAULT_NORETURN.
8153
8154 2014-02-19  Tom Tromey  <tromey@redhat.com>
8155
8156         * target-delegates.c: Rebuild.
8157         * target.c (target_insn_history_range): Unconditionally delegate.
8158         * target.h (struct target_ops) <to_insn_history_range>: Use
8159         TARGET_DEFAULT_NORETURN.
8160
8161 2014-02-19  Tom Tromey  <tromey@redhat.com>
8162
8163         * target-delegates.c: Rebuild.
8164         * target.c (target_call_history): Unconditionally delegate.
8165         * target.h (struct target_ops) <to_call_history>: Use
8166         TARGET_DEFAULT_NORETURN.
8167
8168 2014-02-19  Tom Tromey  <tromey@redhat.com>
8169
8170         * target-delegates.c: Rebuild.
8171         * target.c (target_call_history_from): Unconditionally delegate.
8172         * target.h (struct target_ops) <to_call_history_from>: Use
8173         TARGET_DEFAULT_NORETURN.
8174
8175 2014-02-19  Tom Tromey  <tromey@redhat.com>
8176
8177         * target-delegates.c: Rebuild.
8178         * target.c (target_call_history_range): Unconditionally delegate.
8179         * target.h (struct target_ops) <to_call_history_range>: Use
8180         TARGET_DEFAULT_NORETURN.
8181
8182 2014-02-19  Tom Tromey  <tromey@redhat.com>
8183
8184         * target-delegates.c: Rebuild.
8185         * target.c (target_verify_memory): Unconditionally delegate.
8186         * target.h (struct target_ops) <to_verify_memory>: Use
8187         TARGET_DEFAULT_NORETURN.
8188
8189 2014-02-19  Tom Tromey  <tromey@redhat.com>
8190
8191         * target-delegates.c: Rebuild.
8192         * target.c (target_core_of_thread): Unconditionally delegate.
8193         * target.h (struct target_ops) <to_core_of_thread>: Use
8194         TARGET_DEFAULT_RETURN.
8195
8196 2014-02-19  Tom Tromey  <tromey@redhat.com>
8197
8198         * target-delegates.c: Rebuild.
8199         * target.c (target_flash_done): Unconditionally delegate.
8200         * target.h (struct target_ops) <to_flash_done>: Use
8201         TARGET_DEFAULT_NORETURN.
8202
8203 2014-02-19  Tom Tromey  <tromey@redhat.com>
8204
8205         * target-delegates.c: Rebuild.
8206         * target.c (target_flash_erase): Unconditionally delegate.
8207         * target.h (struct target_ops) <to_flash_erase>: Use
8208         TARGET_DEFAULT_NORETURN.
8209
8210 2014-02-19  Tom Tromey  <tromey@redhat.com>
8211
8212         * target-delegates.c: Rebuild.
8213         * target.c (target_get_section_table): Unconditionally delegate.
8214         * target.h (struct target_ops) <to_get_section_table>: Use
8215         TARGET_DEFAULT_RETURN.
8216
8217 2014-02-19  Tom Tromey  <tromey@redhat.com>
8218
8219         * target-delegates.c: Rebuild.
8220         * target.c (target_pid_to_str): Unconditionally delegate.
8221         (init_dummy_target): Don't initialize to_pid_to_str.
8222         (default_pid_to_str): Rename from dummy_pid_to_str.
8223         * target.h (struct target_ops) <to_pid_to_str>: Use
8224         TARGET_DEFAULT_FUNC.
8225
8226 2014-02-19  Tom Tromey  <tromey@redhat.com>
8227
8228         * target-delegates.c: Rebuild.
8229         * target.c (target_find_new_threads): Unconditionally delegate.
8230         * target.h (struct target_ops) <to_find_new_threads>: Use
8231         TARGET_DEFAULT_RETURN.
8232
8233 2014-02-19  Tom Tromey  <tromey@redhat.com>
8234
8235         * target-delegates.c: Rebuild.
8236         * target.c (target_program_signals): Unconditionally delegate.
8237         * target.h (struct target_ops) <to_program_signals>: Use
8238         TARGET_DEFAULT_IGNORE.
8239
8240 2014-02-19  Tom Tromey  <tromey@redhat.com>
8241
8242         * target-delegates.c: Rebuild.
8243         * target.c (target_pass_signals): Unconditionally delegate.
8244         * target.h (struct target_ops) <to_pass_signals>: Use
8245         TARGET_DEFAULT_IGNORE.
8246
8247 2014-02-19  Tom Tromey  <tromey@redhat.com>
8248
8249         * target-delegates.c: Rebuild.
8250         * target.c (default_mourn_inferior): New function.
8251         (target_mourn_inferior): Unconditionally delegate.
8252         * target.h (struct target_ops) <to_mourn_inferior>: Use
8253         TARGET_DEFAULT_FUNC.
8254
8255 2014-02-19  Tom Tromey  <tromey@redhat.com>
8256
8257         * target-delegates.c: Rebuild.
8258         * target.c (default_follow_fork): New function.
8259         (target_follow_fork): Unconditionally delegate.
8260         * target.h (struct target_ops) <to_follow_fork>: Use
8261         TARGET_DEFAULT_FUNC.
8262
8263 2014-02-19  Tom Tromey  <tromey@redhat.com>
8264
8265         * target-delegates.c: Rebuild.
8266         * target.c (target_kill): Unconditionally delegate.
8267         * target.h (struct target_ops) <to_kill>: Use
8268         TARGET_DEFAULT_NORETURN.
8269
8270 2014-02-19  Tom Tromey  <tromey@redhat.com>
8271
8272         * target-delegates.c: Rebuild.
8273         * target.c (target_masked_watch_num_registers): Unconditionally
8274         delegate.
8275         * target.h (struct target_ops) <to_masked_watch_num_registers>:
8276         Use TARGET_DEFAULT_RETURN.
8277
8278 2014-02-19  Tom Tromey  <tromey@redhat.com>
8279
8280         * target-delegates.c: Rebuild.
8281         * target.c (target_remove_mask_watchpoint): Unconditionally
8282         delegate.
8283         * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8284         TARGET_DEFAULT_RETURN.
8285
8286 2014-02-19  Tom Tromey  <tromey@redhat.com>
8287
8288         * target-delegates.c: Rebuild.
8289         * target.c (target_insert_mask_watchpoint): Unconditionally
8290         delegate.
8291         * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8292         TARGET_DEFAULT_RETURN.
8293
8294 2014-02-19  Tom Tromey  <tromey@redhat.com>
8295
8296         * target-delegates.c: Rebuild.
8297         * target.c (target_ranged_break_num_registers): Unconditionally
8298         delegate.
8299         * target.h (struct target_ops) <to_ranged_break_num_registers>:
8300         Use TARGET_DEFAULT_RETURN.
8301
8302 2014-02-19  Tom Tromey  <tromey@redhat.com>
8303
8304         * target-delegates.c: Rebuild.
8305         * target.c (target_fetch_registers): Unconditionally delegate.
8306         * target.h (struct target_ops) <to_fetch_registers>: Use
8307         TARGET_DEFAULT_NORETURN.
8308
8309 2014-02-19  Tom Tromey  <tromey@redhat.com>
8310
8311         * target-delegates.c: Rebuild.
8312         * target.c (update_current_target): Don't inherit or default
8313         to_stop.
8314         * target.h (struct target_ops) <to_stop>: Use
8315         TARGET_DEFAULT_IGNORE.
8316
8317 2014-02-19  Tom Tromey  <tromey@redhat.com>
8318
8319         * target-delegates.c: Rebuild.
8320         * target.c (update_current_target): Don't inherit or default
8321         to_can_run_breakpoint_commands.
8322         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8323         Use TARGET_DEFAULT_RETURN.
8324
8325 2014-02-19  Tom Tromey  <tromey@redhat.com>
8326
8327         * target-delegates.c: Rebuild.
8328         * target.c (update_current_target): Don't inherit or default
8329         to_supports_evaluation_of_breakpoint_conditions.
8330         * target.h (struct target_ops)
8331         <to_supports_evaluation_of_breakpoint_conditions>: Use
8332         TARGET_DEFAULT_RETURN.
8333
8334 2014-02-19  Tom Tromey  <tromey@redhat.com>
8335
8336         * target-delegates.c: Rebuild.
8337         * target.c (update_current_target): Don't inherit or default
8338         to_augmented_libraries_svr4_read.
8339         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8340         Use TARGET_DEFAULT_RETURN.
8341
8342 2014-02-19  Tom Tromey  <tromey@redhat.com>
8343
8344         * target-delegates.c: Rebuild.
8345         * target.c (update_current_target): Don't inherit or default
8346         to_can_use_agent.
8347         * target.h (struct target_ops) <to_can_use_agent>: Use
8348         TARGET_DEFAULT_RETURN.
8349
8350 2014-02-19  Tom Tromey  <tromey@redhat.com>
8351
8352         * target-delegates.c: Rebuild.
8353         * target.c (update_current_target): Don't inherit or default
8354         to_use_agent.
8355         * target.h (struct target_ops) <to_use_agent>: Use
8356         TARGET_DEFAULT_NORETURN.
8357
8358 2014-02-19  Tom Tromey  <tromey@redhat.com>
8359
8360         * target-delegates.c: Rebuild.
8361         * target.c (update_current_target): Don't inherit or default
8362         to_traceframe_info.
8363         (return_null): Remove.
8364         * target.h (struct target_ops) <to_traceframe_info>: Use
8365         TARGET_DEFAULT_RETURN.
8366
8367 2014-02-19  Tom Tromey  <tromey@redhat.com>
8368
8369         * target-delegates.c: Rebuild.
8370         * target.c (update_current_target): Don't inherit or default
8371         to_static_tracepoint_markers_by_strid.
8372         * target.h (struct target_ops)
8373         <to_static_tracepoint_markers_by_strid>: Use
8374         TARGET_DEFAULT_NORETURN.
8375
8376 2014-02-19  Tom Tromey  <tromey@redhat.com>
8377
8378         * target-delegates.c: Rebuild.
8379         * target.c (update_current_target): Don't inherit or default
8380         to_static_tracepoint_marker_at.
8381         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8382         Use TARGET_DEFAULT_RETURN.
8383
8384 2014-02-19  Tom Tromey  <tromey@redhat.com>
8385
8386         * target-delegates.c: Rebuild.
8387         * target.c (update_current_target): Don't inherit or default
8388         to_set_permissions.
8389         * target.h (struct target_ops) <to_set_permissions>: Use
8390         TARGET_DEFAULT_IGNORE.
8391
8392 2014-02-19  Tom Tromey  <tromey@redhat.com>
8393
8394         * target-delegates.c: Rebuild.
8395         * target.c (update_current_target): Don't inherit or default
8396         to_get_tib_address.
8397         * target.h (struct target_ops) <to_get_tib_address>: Use
8398         TARGET_DEFAULT_NORETURN.
8399
8400 2014-02-19  Tom Tromey  <tromey@redhat.com>
8401
8402         * target-delegates.c: Rebuild.
8403         * target.c (update_current_target): Don't inherit or default
8404         to_set_trace_notes.
8405         * target.h (struct target_ops) <to_set_trace_notes>: Use
8406         TARGET_DEFAULT_RETURN.
8407
8408 2014-02-19  Tom Tromey  <tromey@redhat.com>
8409
8410         * target-delegates.c: Rebuild.
8411         * target.c (update_current_target): Don't initialize
8412         to_set_trace_buffer_size.
8413         * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8414         TARGET_DEFAULT_IGNORE.
8415
8416 2014-02-19  Tom Tromey  <tromey@redhat.com>
8417
8418         * target-delegates.c: Rebuild.
8419         * target.c (update_current_target): Don't inherit or default
8420         to_set_circular_trace_buffer.
8421         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8422         TARGET_DEFAULT_IGNORE.
8423
8424 2014-02-19  Tom Tromey  <tromey@redhat.com>
8425
8426         * target-delegates.c: Rebuild.
8427         * target.c (update_current_target): Don't inherit or default
8428         to_set_disconnected_tracing.
8429         * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8430         TARGET_DEFAULT_IGNORE.
8431
8432 2014-02-19  Tom Tromey  <tromey@redhat.com>
8433
8434         * target-delegates.c: Rebuild.
8435         * target.c (update_current_target): Don't inherit or default
8436         to_get_min_fast_tracepoint_insn_len.
8437         (return_minus_one): Remove.
8438         * target.h (struct target_ops)
8439         <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8440
8441 2014-02-19  Tom Tromey  <tromey@redhat.com>
8442
8443         * target-delegates.c: Rebuild.
8444         * target.c (update_current_target): Don't inherit or default
8445         to_get_raw_trace_data.
8446         * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8447         TARGET_DEFAULT_NORETURN.
8448
8449 2014-02-19  Tom Tromey  <tromey@redhat.com>
8450
8451         * target-delegates.c: Rebuild.
8452         * target.c (update_current_target): Don't inherit or default
8453         to_upload_trace_state_variables.
8454         * target.h (struct target_ops) <to_upload_trace_state_variables>:
8455         Use TARGET_DEFAULT_RETURN.
8456
8457 2014-02-19  Tom Tromey  <tromey@redhat.com>
8458
8459         * target-delegates.c: Rebuild.
8460         * target.c (update_current_target): Don't inherit or default
8461         to_upload_tracepoints.
8462         * target.h (struct target_ops) <to_upload_tracepoints>: Use
8463         TARGET_DEFAULT_RETURN.
8464
8465 2014-02-19  Tom Tromey  <tromey@redhat.com>
8466
8467         * target-delegates.c: Rebuild.
8468         * target.c (update_current_target): Don't inherit or default
8469         to_save_trace_data.
8470         * target.h (struct target_ops) <to_save_trace_data>: Use
8471         TARGET_DEFAULT_NORETURN.
8472
8473 2014-02-19  Tom Tromey  <tromey@redhat.com>
8474
8475         * target-delegates.c: Rebuild.
8476         * target.c (update_current_target): Don't inherit or default
8477         to_get_trace_state_variable_value.
8478         * target.h (struct target_ops)
8479         <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8480
8481 2014-02-19  Tom Tromey  <tromey@redhat.com>
8482
8483         * target-delegates.c: Rebuild.
8484         * target.c (update_current_target): Don't inherit or default
8485         to_trace_find.
8486         * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8487
8488 2014-02-19  Tom Tromey  <tromey@redhat.com>
8489
8490         * target-delegates.c: Rebuild.
8491         * target.c (update_current_target): Don't inherit or default
8492         to_trace_stop.
8493         * target.h (struct target_ops) <to_trace_stop>: Use
8494         TARGET_DEFAULT_NORETURN.
8495
8496 2014-02-19  Tom Tromey  <tromey@redhat.com>
8497
8498         * target-delegates.c: Rebuild.
8499         * target.c (update_current_target): Don't inherit or default
8500         to_get_tracepoint_status.
8501         * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8502         TARGET_DEFAULT_NORETURN.
8503
8504 2014-02-19  Tom Tromey  <tromey@redhat.com>
8505
8506         * target-delegates.c: Rebuild.
8507         * target.c (update_current_target): Don't inherit or default
8508         to_get_trace_status.
8509         * target.h (struct target_ops) <to_get_trace_status>: Use
8510         TARGET_DEFAULT_RETURN.
8511
8512 2014-02-19  Tom Tromey  <tromey@redhat.com>
8513
8514         * target-delegates.c: Rebuild.
8515         * target.c (update_current_target): Don't inherit or default
8516         to_trace_start.
8517         * target.h (struct target_ops) <to_trace_start>: Use
8518         TARGET_DEFAULT_NORETURN.
8519
8520 2014-02-19  Tom Tromey  <tromey@redhat.com>
8521
8522         * target-delegates.c: Rebuild.
8523         * target.c (update_current_target): Don't inherit or default
8524         to_trace_set_readonly_regions.
8525         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8526         Use TARGET_DEFAULT_NORETURN.
8527
8528 2014-02-19  Tom Tromey  <tromey@redhat.com>
8529
8530         * target-delegates.c: Rebuild.
8531         * target.c (update_current_target): Don't inherit or default
8532         to_disable_tracepoint.
8533         * target.h (struct target_ops) <to_disable_tracepoint>: Use
8534         TARGET_DEFAULT_NORETURN.
8535
8536 2014-02-19  Tom Tromey  <tromey@redhat.com>
8537
8538         * target-delegates.c: Rebuild.
8539         * target.c (update_current_target): Don't inherit or default
8540         to_enable_tracepoint.
8541         * target.h (struct target_ops) <to_enable_tracepoint>: Use
8542         TARGET_DEFAULT_NORETURN.
8543
8544 2014-02-19  Tom Tromey  <tromey@redhat.com>
8545
8546         * target-delegates.c: Rebuild.
8547         * target.c (update_current_target): Don't inherit or default
8548         to_download_trace_state_variable.
8549         * target.h (struct target_ops) <to_download_trace_state_variable>:
8550         Use TARGET_DEFAULT_NORETURN.
8551
8552 2014-02-19  Tom Tromey  <tromey@redhat.com>
8553
8554         * target-delegates.c: Rebuild.
8555         * target.c (update_current_target): Don't inherit or default
8556         to_can_download_tracepoint.
8557         * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8558         TARGET_DEFAULT_RETURN.
8559
8560 2014-02-19  Tom Tromey  <tromey@redhat.com>
8561
8562         * target-delegates.c: Rebuild.
8563         * target.c (update_current_target): Don't inherit or default
8564         to_download_tracepoint.
8565         * target.h (struct target_ops) <to_download_tracepoint>: Use
8566         TARGET_DEFAULT_NORETURN.
8567
8568 2014-02-19  Tom Tromey  <tromey@redhat.com>
8569
8570         * target-delegates.c: Rebuild.
8571         * target.c (update_current_target): Don't inherit or default
8572         to_trace_init.
8573         * target.h (struct target_ops) <to_trace_init>: Use
8574         TARGET_DEFAULT_RETURN.
8575
8576 2014-02-19  Tom Tromey  <tromey@redhat.com>
8577
8578         * target-delegates.c: Rebuild.
8579         * target.c (update_current_target): Don't inherit or default
8580         to_supports_string_tracing.
8581         * target.h (struct target_ops) <to_supports_string_tracing>: Use
8582         TARGET_DEFAULT_RETURN.
8583
8584 2014-02-19  Tom Tromey  <tromey@redhat.com>
8585
8586         * target-delegates.c: Rebuild.
8587         * target.c (update_current_target): Don't inherit or default
8588         to_supports_enable_disable_tracepoint.
8589         * target.h (struct target_ops)
8590         <to_supports_enable_disable_tracepoint>: Use
8591         TARGET_DEFAULT_RETURN.
8592
8593 2014-02-19  Tom Tromey  <tromey@redhat.com>
8594
8595         * target-delegates.c: Rebuild.
8596         * target.c (update_current_target): Don't inherit or default
8597         to_supports_multi_process.
8598         * target.h (struct target_ops) <to_supports_multi_process>: Use
8599         TARGET_DEFAULT_RETURN.
8600
8601 2014-02-19  Tom Tromey  <tromey@redhat.com>
8602
8603         * target-delegates.c: Rebuild.
8604         * target.c (update_current_target): Don't inherit or default
8605         to_get_ada_task_ptid.
8606         * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8607         TARGET_DEFAULT_FUNC.
8608
8609 2014-02-19  Tom Tromey  <tromey@redhat.com>
8610
8611         * target-delegates.c: Rebuild.
8612         * target.c (update_current_target): Don't inherit or default
8613         to_thread_architecture.
8614         * target.h (struct target_ops) <to_thread_architecture>: Use
8615         TARGET_DEFAULT_FUNC.
8616
8617 2014-02-19  Tom Tromey  <tromey@redhat.com>
8618
8619         * target-delegates.c: Rebuild.
8620         * target.c (update_current_target): Don't inherit or default
8621         to_execution_direction.
8622         * target.h (struct target_ops) <to_execution_direction>: Use
8623         TARGET_DEFAULT_FUNC.
8624
8625 2014-02-19  Tom Tromey  <tromey@redhat.com>
8626
8627         * target-delegates.c: Rebuild.
8628         * target.c (update_current_target): Don't inherit or default
8629         to_can_execute_reverse.
8630         * target.h (struct target_ops) <to_can_execute_reverse>: Use
8631         TARGET_DEFAULT_RETURN.
8632         (target_can_execute_reverse): Unconditionally delegate.
8633
8634 2014-02-19  Tom Tromey  <tromey@redhat.com>
8635
8636         * target-delegates.c: Rebuild.
8637         * target.c (update_current_target): Don't inherit or default
8638         to_goto_bookmark.
8639         (dummy_goto_bookmark): Remove.
8640         (init_dummy_target): Don't inherit or default to_goto_bookmark.
8641         * target.h (struct target_ops) <to_goto_bookmark>: Use
8642         TARGET_DEFAULT_NORETURN.
8643
8644 2014-02-19  Tom Tromey  <tromey@redhat.com>
8645
8646         * target-delegates.c: Rebuild.
8647         * target.c (update_current_target): Don't inherit or default
8648         to_get_bookmark.
8649         (dummy_get_bookmark): Remove.
8650         (init_dummy_target): Don't inherit or default to_get_bookmark.
8651         * target.h (struct target_ops) <to_get_bookmark>: Use
8652         TARGET_DEFAULT_NORETURN
8653
8654 2014-02-19  Tom Tromey  <tromey@redhat.com>
8655
8656         * target-delegates.c: Rebuild.
8657         * target.c (update_current_target): Don't inherit or default
8658         to_make_corefile_notes.
8659         (init_dummy_target): Don't initialize to_make_corefile_notes.
8660         * target.h (struct target_ops) <to_make_corefile_notes>: Use
8661         TARGET_DEFAULT_FUNC.
8662
8663 2014-02-19  Tom Tromey  <tromey@redhat.com>
8664
8665         * target-delegates.c: Rebuild.
8666         * target.c (update_current_target): Don't inherit or default
8667         to_find_memory_regions.
8668         (init_dummy_target): Don't initialize to_find_memory_regions.
8669         * target.h (struct target_ops) <to_find_memory_regions>: Use
8670         TARGET_DEFAULT_FUNC.
8671
8672 2014-02-19  Tom Tromey  <tromey@redhat.com>
8673
8674         * target-delegates.c: Rebuild.
8675         * target.c (update_current_target): Don't inherit or default
8676         to_log_command.
8677         * target.h (struct target_ops) <to_log_command>: Use
8678         TARGET_DEFAULT_IGNORE.
8679         (target_log_command): Unconditionally delegate.
8680
8681 2014-02-19  Tom Tromey  <tromey@redhat.com>
8682
8683         * target-delegates.c: Rebuild.
8684         * target.c (update_current_target): Don't inherit or default
8685         to_pid_to_exec_file.
8686         * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8687         TARGET_DEFAULT_RETURN.
8688
8689 2014-02-19  Tom Tromey  <tromey@redhat.com>
8690
8691         * target-delegates.c: Rebuild.
8692         * target.c (update_current_target): Don't inherit or default
8693         to_thread_name.
8694         (target_thread_name): Unconditionally delegate.
8695         * target.h (struct target_ops) <to_thread_name>: Use
8696         TARGET_DEFAULT_RETURN.
8697
8698 2014-02-19  Tom Tromey  <tromey@redhat.com>
8699
8700         * target-delegates.c: Rebuild.
8701         * target.c (update_current_target): Don't inherit or default
8702         to_extra_thread_info.
8703         * target.h (struct target_ops) <to_extra_thread_info>: Use
8704         TARGET_DEFAULT_RETURN.
8705
8706 2014-02-19  Tom Tromey  <tromey@redhat.com>
8707
8708         * target-delegates.c: Rebuild.
8709         * target.c (update_current_target): Don't inherit or default
8710         to_has_exited.
8711         * target.h (struct target_ops) <to_has_exited>: Use
8712         TARGET_DEFAULT_RETURN..
8713
8714 2014-02-19  Tom Tromey  <tromey@redhat.com>
8715
8716         * target-delegates.c: Rebuild.
8717         * target.c (update_current_target): Don't inherit or default
8718         to_set_syscall_catchpoint.
8719         (return_one): Remove.
8720         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8721         TARGET_DEFAULT_RETURN.
8722
8723 2014-02-19  Tom Tromey  <tromey@redhat.com>
8724
8725         * target-delegates.c: Rebuild.
8726         * target.c (update_current_target): Don't inherit or default
8727         to_insert_exec_catchpoint.
8728         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8729         TARGET_DEFAULT_RETURN.
8730
8731 2014-01-08  Tom Tromey  <tromey@redhat.com>
8732
8733         * target-delegates.c: Rebuild.
8734         * target.c (update_current_target): Don't inherit or default
8735         to_insert_exec_catchpoint.
8736         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8737         TARGET_DEFAULT_RETURN.
8738
8739 2014-02-19  Tom Tromey  <tromey@redhat.com>
8740
8741         * target-delegates.c: Rebuild.
8742         * target.c (update_current_target): Don't inherit or default
8743         to_remove_vfork_catchpoint.
8744         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8745         TARGET_DEFAULT_RETURN.
8746
8747 2014-02-19  Tom Tromey  <tromey@redhat.com>
8748
8749         * target-delegates.c: Rebuild.
8750         * target.c (update_current_target): Don't inherit or default
8751         to_insert_vfork_catchpoint.
8752         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8753         TARGET_DEFAULT_RETURN.
8754
8755 2014-02-19  Tom Tromey  <tromey@redhat.com>
8756
8757         * target-delegates.c: Rebuild.
8758         * target.c (update_current_target): Don't inherit or default
8759         to_remove_fork_catchpoint.
8760         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8761         TARGET_DEFAULT_RETURN.
8762
8763 2014-02-19  Tom Tromey  <tromey@redhat.com>
8764
8765         * target-delegates.c: Rebuild.
8766         * target.c (update_current_target): Don't inherit or default
8767         to_insert_fork_catchpoint.
8768         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8769         TARGET_DEFAULT_RETURN.
8770
8771 2014-02-19  Tom Tromey  <tromey@redhat.com>
8772
8773         * target-delegates.c: Rebuild.
8774         * target.c (update_current_target): Don't inherit or default
8775         to_post_startup_inferior.
8776         * target.h (struct target_ops) <to_post_startup_inferior>: Use
8777         TARGET_DEFAULT_IGNORE.
8778
8779 2014-02-19  Tom Tromey  <tromey@redhat.com>
8780
8781         * target-delegates.c: Rebuild.
8782         * target.c (update_current_target): Don't inherit or default
8783         to_load.
8784         * target.h (struct target_ops) <to_load>: Use
8785         TARGET_DEFAULT_NORETURN.
8786
8787 2014-02-19  Tom Tromey  <tromey@redhat.com>
8788
8789         * target-delegates.c: Rebuild.
8790         * target.c (update_current_target): Don't inherit or default
8791         to_terminal_info.
8792         * target.h (struct target_ops) <to_terminal_info>: Use
8793         TARGET_DEFAULT_FUNC.
8794
8795 2014-02-19  Tom Tromey  <tromey@redhat.com>
8796
8797         * target-delegates.c: Rebuild.
8798         * target.c (update_current_target): Don't inherit or default
8799         to_terminal_save_ours.
8800         * target.h (struct target_ops) <to_terminal_save_ours>: Use
8801         TARGET_DEFAULT_IGNORE.
8802
8803 2014-02-19  Tom Tromey  <tromey@redhat.com>
8804
8805         * target-delegates.c: Rebuild.
8806         * target.c (update_current_target): Don't inherit or default
8807         to_terminal_ours.
8808         * target.h (struct target_ops) <to_terminal_ours>: Use
8809         TARGET_DEFAULT_IGNORE.
8810
8811 2014-02-19  Tom Tromey  <tromey@redhat.com>
8812
8813         * target-delegates.c: Rebuild.
8814         * target.c (update_current_target): Don't inherit or default
8815         to_terminal_ours_for_output.
8816         * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8817         TARGET_DEFAULT_IGNORE.
8818
8819 2014-02-19  Tom Tromey  <tromey@redhat.com>
8820
8821         * target-delegates.c: Rebuild.
8822         * target.c (update_current_target): Don't inherit or default
8823         to_terminal_inferior.
8824         * target.h (struct target_ops) <to_terminal_inferior>: Use
8825         TARGET_DEFAULT_IGNORE.
8826
8827 2014-02-19  Tom Tromey  <tromey@redhat.com>
8828
8829         * target-delegates.c: Rebuild.
8830         * target.c (update_current_target): Don't inherit or default
8831         to_terminal_init.
8832         * target.h (struct target_ops) <to_terminal_init>: Use
8833         TARGET_DEFAULT_IGNORE.
8834
8835 2014-02-19  Tom Tromey  <tromey@redhat.com>
8836
8837         * target-delegates.c: Rebuild.
8838         * target.c (update_current_target): Don't inherit or default
8839         to_can_accel_watchpoint_condition.
8840         * target.h (struct target_ops)
8841         <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8842
8843 2014-02-19  Tom Tromey  <tromey@redhat.com>
8844
8845         * target-delegates.c: Rebuild.
8846         * target.c (update_current_target): Don't inherit or default
8847         to_region_ok_for_hw_watchpoint.
8848         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8849         Use TARGET_DEFAULT_FUNC.
8850
8851 2014-02-19  Tom Tromey  <tromey@redhat.com>
8852
8853         * target-delegates.c: Rebuild.
8854         * target.c (update_current_target): Don't inherit or default
8855         to_watchpoint_addr_within_range.
8856         * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8857         Use TARGET_DEFAULT_FUNC.
8858
8859 2014-02-19  Tom Tromey  <tromey@redhat.com>
8860
8861         * target-delegates.c: Rebuild.
8862         * target.c (update_current_target): Don't inherit or default
8863         to_remove_watchpoint.
8864         * target.h (struct target_ops) <to_remove_watchpoint>: Use
8865         TARGET_DEFAULT_NORETURN.
8866
8867 2014-02-19  Tom Tromey  <tromey@redhat.com>
8868
8869         * target-delegates.c: Rebuild.
8870         * target.c (update_current_target): Don't inherit or default
8871         to_insert_watchpoint.
8872         * target.h (struct target_ops) <to_insert_watchpoint>: Use
8873         TARGET_DEFAULT_RETURN.
8874
8875 2014-02-19  Tom Tromey  <tromey@redhat.com>
8876
8877         * target-delegates.c: Rebuild.
8878         * target.c (update_current_target): Don't inherit or default
8879         to_remove_hw_breakpoint.
8880         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8881         TARGET_DEFAULT_RETURN.
8882
8883 2014-02-19  Tom Tromey  <tromey@redhat.com>
8884
8885         * target-delegates.c: Rebuild.
8886         * target.c (update_current_target): Don't inherit or default
8887         to_insert_hw_breakpoint.
8888         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8889         TARGET_DEFAULT_RETURN.
8890
8891 2014-02-19  Tom Tromey  <tromey@redhat.com>
8892
8893         * target-delegates.c: Rebuild.
8894         * target.c (update_current_target): Don't inherit or default
8895         to_can_use_hw_breakpoint.
8896         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8897         TARGET_DEFAULT_RETURN.
8898
8899 2014-02-19  Tom Tromey  <tromey@redhat.com>
8900
8901         * target-delegates.c: Rebuild.
8902         * target.c (update_current_target): Don't inherit or default
8903         to_files_info.
8904         * target.h (struct target_ops) <to_files_info>: Use
8905         TARGET_DEFAULT_IGNORE.
8906
8907 2014-02-19  Tom Tromey  <tromey@redhat.com>
8908
8909         * target-delegates.c: Rebuild.
8910         * target.c (update_current_target): Don't inherit or default
8911         to_store.
8912         * target.h (struct target_ops) <to_store>: Use
8913         TARGET_DEFAULT_NORETURN.
8914
8915 2014-02-19  Tom Tromey  <tromey@redhat.com>
8916
8917         * target-delegates.c: Rebuild.
8918         * target.c (update_current_target): Don't inherit or default
8919         to_post_attach.
8920         * target.h (struct target_ops) <to_post_attach>: Use
8921         TARGET_DEFAULT_IGNORE.
8922
8923 2014-02-19  Tom Tromey  <tromey@redhat.com>
8924
8925         * target-delegates.c: Rebuild.
8926         * target.c (update_current_target): Don't inherit or default
8927         to_rcmd.
8928         (default_rcmd): New function.
8929         (do_monitor_command): Unconditionally delegate.
8930         * target.h (struct target_ops) <to_rmcd>: Use
8931         TARGET_DEFAULT_FUNC.
8932
8933 2014-02-19  Tom Tromey  <tromey@redhat.com>
8934
8935         * target-delegates.c: Rebuild.
8936         * target.c (init_dummy_target): Don't initialize to_attach.
8937         (target_attach): Unconditionally delegate.
8938         * target.h (struct target_ops) <to_attach>: Use
8939         TARGET_DEFAULT_FUNC.
8940
8941 2014-02-19  Tom Tromey  <tromey@redhat.com>
8942
8943         * target-delegates.c: Rebuild.
8944         * target.c (target_detach): Unconditionally delegate.
8945         (init_dummy_target): Don't initialize to_detach.
8946         * target.h (struct target_ops) <to_detach>: Use
8947         TARGET_DEFAULT_IGNORE.
8948
8949 2014-02-19  Tom Tromey  <tromey@redhat.com>
8950
8951         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8952         Add argument.
8953         (target_augmented_libraries_svr4_read): Add argument.
8954         * target.c (update_current_target): Update.
8955         * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8956         argument.
8957
8958 2014-02-19  Tom Tromey  <tromey@redhat.com>
8959
8960         * target.h (struct target_ops) <to_call_history_range>: Add
8961         argument.
8962         * target.c (target_call_history_range): Add argument.
8963         * record-btrace.c (record_btrace_call_history_range): Add 'self'
8964         argument.
8965         (record_btrace_call_history_from): Update.
8966
8967 2014-02-19  Tom Tromey  <tromey@redhat.com>
8968
8969         * target.h (struct target_ops) <to_call_history_from>: Add
8970         argument.
8971         * target.c (target_call_history_from): Add argument.
8972         * record-btrace.c (record_btrace_call_history_from): Add 'self'
8973         argument.
8974
8975 2014-02-19  Tom Tromey  <tromey@redhat.com>
8976
8977         * target.h (struct target_ops) <to_call_history>: Add argument.
8978         * target.c (target_call_history): Add argument.
8979         * record-btrace.c (record_btrace_call_history): Add 'self'
8980         argument.
8981
8982 2014-02-19  Tom Tromey  <tromey@redhat.com>
8983
8984         * target.h (struct target_ops) <to_insn_history_range>: Add
8985         argument.
8986         * target.c (target_insn_history_range): Add argument.
8987         * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8988         argument.
8989         (record_btrace_insn_history_from): Update.
8990
8991 2014-02-19  Tom Tromey  <tromey@redhat.com>
8992
8993         * target.h (struct target_ops) <to_insn_history_from>: Add
8994         argument.
8995         * target.c (target_insn_history_from): Add argument.
8996         * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8997         argument.
8998
8999 2014-02-19  Tom Tromey  <tromey@redhat.com>
9000
9001         * target.h (struct target_ops) <to_insn_history>: Add argument.
9002         * target.c (target_insn_history): Add argument.
9003         * record-btrace.c (record_btrace_insn_history): Add 'self'
9004         argument.
9005
9006 2014-02-19  Tom Tromey  <tromey@redhat.com>
9007
9008         * target.h (struct target_ops) <to_goto_record>: Add argument.
9009         * target.c (target_goto_record): Add argument.
9010         * record-full.c (record_full_goto): Add 'self' argument.
9011         * record-btrace.c (record_btrace_goto): Add 'self' argument.
9012
9013 2014-02-19  Tom Tromey  <tromey@redhat.com>
9014
9015         * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9016         * target.c (target_goto_record_end): Add argument.
9017         * record-full.c (record_full_goto_end): Add 'self' argument.
9018         * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9019
9020 2014-02-19  Tom Tromey  <tromey@redhat.com>
9021
9022         * target.h (struct target_ops) <to_goto_record_begin>: Add
9023         argument.
9024         * target.c (target_goto_record_begin): Add argument.
9025         * record-full.c (record_full_goto_begin): Add 'self' argument.
9026         * record-btrace.c (record_btrace_goto_begin): Add 'self'
9027         argument.
9028
9029 2014-02-19  Tom Tromey  <tromey@redhat.com>
9030
9031         * target.h (struct target_ops) <to_record_is_replaying>: Add
9032         argument.
9033         * target.c (target_record_is_replaying): Add argument.
9034         * record-full.c (record_full_is_replaying): Add 'self' argument.
9035         * record-btrace.c (record_btrace_is_replaying): Add 'self'
9036         argument.
9037         (record_btrace_xfer_partial, record_btrace_store_registers)
9038         (record_btrace_prepare_to_store, record_btrace_resume)
9039         (record_btrace_wait, record_btrace_decr_pc_after_break)
9040         (record_btrace_find_new_threads, record_btrace_thread_alive):
9041         Update.
9042
9043 2014-02-19  Tom Tromey  <tromey@redhat.com>
9044
9045         * target.h (struct target_ops) <to_delete_record>: Add argument.
9046         * target.c (target_delete_record): Add argument.
9047         * record-full.c (record_full_delete): Add 'self' argument.
9048
9049 2014-02-19  Tom Tromey  <tromey@redhat.com>
9050
9051         * target.h (struct target_ops) <to_save_record>: Add argument.
9052         * target.c (target_save_record): Add argument.
9053         * record-full.c (record_full_save): Add 'self' argument.
9054         (record_full_save): Add 'self' argument.
9055
9056 2014-02-19  Tom Tromey  <tromey@redhat.com>
9057
9058         * target.h (struct target_ops) <to_info_record>: Add argument.
9059         * target.c (target_info_record): Add argument.
9060         * record.c (info_record_command): Add argument.
9061         * record-full.c (record_full_info): Add 'self' argument.
9062         * record-btrace.c (record_btrace_info): Add 'self' argument.
9063
9064 2014-02-19  Tom Tromey  <tromey@redhat.com>
9065
9066         * target.h (struct target_ops) <to_stop_recording>: Add argument.
9067         * target.c (target_stop_recording): Add argument.
9068         * record.c (record_stop): Add argument.
9069         * record-btrace.c (record_btrace_stop_recording): Add 'self'
9070         argument.
9071
9072 2014-02-19  Tom Tromey  <tromey@redhat.com>
9073
9074         * target.h (struct target_ops) <to_read_btrace>: Add argument.
9075         * target.c (struct target_ops) <to_read_btrace>: Add argument.
9076         * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9077         argument.
9078         * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9079         (_initialize_amd64_linux_nat): Use it.
9080         * i386-linux-nat.c (i386_linux_read_btrace): New function.
9081         (_initialize_i386_linux_nat): Use it.
9082
9083 2014-02-19  Tom Tromey  <tromey@redhat.com>
9084
9085         * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9086         * target.c (target_teardown_btrace): Add argument.
9087         * remote.c (remote_teardown_btrace): Add 'self' argument.
9088         * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9089         argument.
9090         * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9091         argument.
9092
9093 2014-02-19  Tom Tromey  <tromey@redhat.com>
9094
9095         * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9096         * target.c (target_disable_btrace): Add argument.
9097         * remote.c (remote_disable_btrace): Add 'self' argument.
9098         * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9099         argument.
9100         * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9101         argument.
9102
9103 2014-02-19  Tom Tromey  <tromey@redhat.com>
9104
9105         * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9106         * target.c (target_enable_btrace): Add argument.
9107         * remote.c (remote_enable_btrace): Add 'self' argument.
9108         * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9109         argument.
9110         * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9111         argument.
9112
9113 2014-02-19  Tom Tromey  <tromey@redhat.com>
9114
9115         * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9116         (target_can_use_agent): Add argument.
9117         * target.c (update_current_target): Update.
9118         * remote.c (remote_can_use_agent): Add 'self' argument.
9119         * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9120
9121 2014-02-19  Tom Tromey  <tromey@redhat.com>
9122
9123         * target.h (struct target_ops) <to_use_agent>: Add argument.
9124         (target_use_agent): Add argument.
9125         * target.c (update_current_target): Update.
9126         * remote.c (remote_use_agent): Add 'self' argument.
9127         * inf-child.c (inf_child_use_agent): Add 'self' argument.
9128
9129 2014-02-19  Tom Tromey  <tromey@redhat.com>
9130
9131         * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9132         * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9133         (target_traceframe_info): Add argument.
9134         * target.c (update_current_target): Update.
9135         * remote.c (remote_traceframe_info): Add 'self' argument.
9136         * ctf.c (ctf_traceframe_info): Add 'self' argument.
9137
9138 2014-02-19  Tom Tromey  <tromey@redhat.com>
9139
9140         * target.h (target_static_tracepoint_markers_by_strid): Add
9141         argument.
9142         (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9143         'self' argument.
9144         * target.c (update_current_target): Update.
9145         * remote.c (struct target_ops)
9146         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9147         * linux-nat.c (struct target_ops)
9148         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9149
9150 2014-02-19  Tom Tromey  <tromey@redhat.com>
9151
9152         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9153         Add argument.
9154         (target_static_tracepoint_marker_at): Add argument.
9155         * target.c (update_current_target): Update.
9156         * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9157         argument.
9158
9159 2014-02-19  Tom Tromey  <tromey@redhat.com>
9160
9161         * target.h (struct target_ops) <to_set_permissions>: Add argument.
9162         (target_set_permissions): Add argument.
9163         * target.c (update_current_target): Update.
9164         * remote.c (remote_set_permissions): Add 'self' argument.
9165         (remote_start_remote): Update.
9166
9167 2014-02-19  Tom Tromey  <tromey@redhat.com>
9168
9169         * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9170         * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9171         (target_get_tib_address): Add argument.
9172         * target.c (update_current_target): Update.
9173         * remote.c (remote_get_tib_address): Add 'self' argument.
9174
9175 2014-02-19  Tom Tromey  <tromey@redhat.com>
9176
9177         * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9178         (target_set_trace_notes): Add argument.
9179         * target.c (update_current_target): Update.
9180         * remote.c (remote_set_trace_notes): Add 'self' argument.
9181
9182 2014-02-19  Tom Tromey  <tromey@redhat.com>
9183
9184         * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9185         argument.
9186         (target_set_trace_buffer_size): Add argument.
9187         * target.c (update_current_target): Update.
9188         * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9189
9190 2014-02-19  Tom Tromey  <tromey@redhat.com>
9191
9192         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9193         argument.
9194         (target_set_circular_trace_buffer): Add argument.
9195         * target.c (update_current_target): Update.
9196         * remote.c (remote_set_circular_trace_buffer): Add 'self'
9197         argument.
9198
9199 2014-02-19  Tom Tromey  <tromey@redhat.com>
9200
9201         * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9202         argument.
9203         (target_set_disconnected_tracing): Add argument.
9204         * target.c (update_current_target): Update.
9205         * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9206
9207 2014-02-19  Tom Tromey  <tromey@redhat.com>
9208
9209         * target.h (struct target_ops)
9210         <to_get_min_fast_tracepoint_insn_len>: Add argument.
9211         (target_get_min_fast_tracepoint_insn_len): Add argument.
9212         * target.c (update_current_target): Update.
9213         * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9214         argument.
9215
9216 2014-02-19  Tom Tromey  <tromey@redhat.com>
9217
9218         * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9219         argument.
9220         (target_get_raw_trace_data): Add argument.
9221         * target.c (update_current_target): Update.
9222         * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9223
9224 2014-02-19  Tom Tromey  <tromey@redhat.com>
9225
9226         * target.h (struct target_ops) <to_upload_trace_state_variables>:
9227         Add argument.
9228         (target_upload_trace_state_variables): Add argument.
9229         * target.c (update_current_target): Update.
9230         * remote.c (remote_upload_trace_state_variables): Add 'self'
9231         argument.
9232         (remote_start_remote): Update.
9233
9234 2014-02-19  Tom Tromey  <tromey@redhat.com>
9235
9236         * target.h (struct target_ops) <to_upload_tracepoints>: Add
9237         argument.
9238         (target_upload_tracepoints): Add argument.
9239         * target.c (update_current_target): Update.
9240         * remote.c (remote_upload_tracepoints): Add 'self' argument.
9241         (remote_start_remote): Update.
9242
9243 2014-02-19  Tom Tromey  <tromey@redhat.com>
9244
9245         * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9246         (target_save_trace_data): Add argument.
9247         * target.c (update_current_target): Update.
9248         * remote.c (remote_save_trace_data): Add 'self' argument.
9249
9250 2014-02-19  Tom Tromey  <tromey@redhat.com>
9251
9252         * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9253         argument.
9254         * target.h (struct target_ops)
9255         <to_get_trace_state_variable_value>: Add argument.
9256         (target_get_trace_state_variable_value): Add argument.
9257         * target.c (update_current_target): Update.
9258         * remote.c (remote_get_trace_state_variable_value): Add 'self'
9259         argument.
9260         * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9261
9262 2014-02-19  Tom Tromey  <tromey@redhat.com>
9263
9264         * tracepoint.c (tfile_trace_find): Add 'self' argument.
9265         * target.h (struct target_ops) <to_trace_find>: Add argument.
9266         (target_trace_find): Add argument.
9267         * target.c (update_current_target): Update.
9268         * remote.c (remote_trace_find): Add 'self' argument.
9269         * ctf.c (ctf_trace_find): Add 'self' argument.
9270
9271 2014-02-19  Tom Tromey  <tromey@redhat.com>
9272
9273         * target.h (struct target_ops) <to_trace_stop>: Add argument.
9274         (target_trace_stop): Add argument.
9275         * target.c (update_current_target): Update.
9276         * remote.c (remote_trace_stop): Add 'self' argument.
9277
9278 2014-02-19  Tom Tromey  <tromey@redhat.com>
9279
9280         * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9281         * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9282         argument.
9283         (target_get_tracepoint_status): Add argument.
9284         * target.c (update_current_target): Update.
9285         * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9286
9287 2014-02-19  Tom Tromey  <tromey@redhat.com>
9288
9289         * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9290         * target.h (struct target_ops) <to_get_trace_status>: Add
9291         argument.
9292         (target_get_trace_status): Add argument.
9293         * target.c (update_current_target): Update.
9294         * remote.c (remote_get_trace_status): Add 'self' argument.
9295         (remote_start_remote, remote_can_download_tracepoint): Update.
9296         * ctf.c (ctf_get_trace_status): Add 'self' argument.
9297
9298 2014-02-19  Tom Tromey  <tromey@redhat.com>
9299
9300         * target.h (struct target_ops) <to_trace_start>: Add argument.
9301         (target_trace_start): Add argument.
9302         * target.c (update_current_target): Update.
9303         * remote.c (remote_trace_start): Add 'self' argument.
9304
9305 2014-02-19  Tom Tromey  <tromey@redhat.com>
9306
9307         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9308         Add argument.
9309         (target_trace_set_readonly_regions): Add argument.
9310         * target.c (update_current_target): Update.
9311         * remote.c (remote_trace_set_readonly_regions): Add 'self'
9312         argument.
9313
9314 2014-02-19  Tom Tromey  <tromey@redhat.com>
9315
9316         * target.h (struct target_ops) <to_disable_tracepoint>: Add
9317         argument.
9318         (target_disable_tracepoint): Add argument.
9319         * target.c (update_current_target): Update.
9320         * remote.c (remote_disable_tracepoint): Add 'self' argument.
9321
9322 2014-02-19  Tom Tromey  <tromey@redhat.com>
9323
9324         * target.h (struct target_ops) <to_enable_tracepoint>: Add
9325         argument.
9326         (target_enable_tracepoint): Add argument.
9327         * target.c (update_current_target): Update.
9328         * remote.c (remote_enable_tracepoint): Add 'self' argument.
9329
9330 2014-02-19  Tom Tromey  <tromey@redhat.com>
9331
9332         * target.h (struct target_ops) <to_download_trace_state_variable>:
9333         Add argument.
9334         (target_download_trace_state_variable): Add argument.
9335         * target.c (update_current_target): Update.
9336         * remote.c (remote_download_trace_state_variable): Add 'self'
9337         argument.
9338
9339 2014-02-19  Tom Tromey  <tromey@redhat.com>
9340
9341         * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9342         argument.
9343         (target_can_download_tracepoint): Add argument.
9344         * target.c (update_current_target): Update.
9345         * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9346
9347 2014-02-19  Tom Tromey  <tromey@redhat.com>
9348
9349         * target.h (struct target_ops) <to_download_tracepoint>: Add
9350         argument.
9351         (target_download_tracepoint): Add argument.
9352         * target.c (update_current_target): Update.
9353         * remote.c (remote_download_tracepoint): Add 'self' argument.
9354
9355 2014-02-19  Tom Tromey  <tromey@redhat.com>
9356
9357         * target.h (struct target_ops) <to_trace_init>: Add argument.
9358         (target_trace_init): Add argument.
9359         * target.c (update_current_target): Update.
9360         * remote.c (remote_trace_init): Add 'self' argument.
9361
9362 2014-02-19  Tom Tromey  <tromey@redhat.com>
9363
9364         * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9365         * target.c (target_fileio_readlink): Add argument.
9366         * remote.c (remote_hostio_readlink): Add 'self' argument.
9367         * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9368
9369 2014-02-19  Tom Tromey  <tromey@redhat.com>
9370
9371         * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9372         * target.c (target_fileio_unlink): Add argument.
9373         * remote.c (remote_hostio_unlink): Add 'self' argument.
9374         (remote_file_delete): Update.
9375         * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9376
9377 2014-02-19  Tom Tromey  <tromey@redhat.com>
9378
9379         * target.h (struct target_ops) <to_fileio_close>: Add argument.
9380         * target.c (target_fileio_close): Add argument.
9381         * remote.c (remote_hostio_close): Add 'self' argument.
9382         (remote_hostio_close_cleanup): Update.
9383         (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9384         Update.
9385         * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9386
9387 2014-02-19  Tom Tromey  <tromey@redhat.com>
9388
9389         * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9390         * target.c (target_fileio_pread): Add argument.
9391         * remote.c (remote_hostio_pread): Add 'self' argument.
9392         (remote_bfd_iovec_pread, remote_file_get): Update.
9393         * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9394
9395 2014-02-19  Tom Tromey  <tromey@redhat.com>
9396
9397         * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9398         * target.c (target_fileio_pwrite): Add argument.
9399         * remote.c (remote_hostio_pwrite): Add 'self' argument.
9400         (remote_file_put): Update.
9401         * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9402
9403 2014-02-19  Tom Tromey  <tromey@redhat.com>
9404
9405         * target.h (struct target_ops) <to_fileio_open>: Add argument.
9406         * target.c (target_fileio_open): Add argument.
9407         * remote.c (remote_hostio_open): Add 'self' argument.
9408         (remote_bfd_iovec_open): Add 'self' argument.
9409         (remote_file_put): Add 'self' argument.
9410         (remote_file_get): Add 'self' argument.
9411         * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9412
9413 2014-02-19  Tom Tromey  <tromey@redhat.com>
9414
9415         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9416         Add argument.
9417         (target_can_run_breakpoint_commands): Add argument.
9418         * target.c (update_current_target): Update.
9419         * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9420         argument.
9421         (remote_insert_breakpoint): Add 'self' argument.
9422         (remote_insert_hw_breakpoint): Add 'self' argument.
9423         (remote_can_run_breakpoint_commands): Add 'self' argument.
9424
9425 2014-02-19  Tom Tromey  <tromey@redhat.com>
9426
9427         * target.h (struct target_ops)
9428         <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9429         (target_supports_evaluation_of_breakpoint_conditions): Add
9430         argument.
9431         * target.c (update_current_target): Update.
9432         * remote.c (remote_supports_cond_breakpoints): Add 'self'
9433         argument.
9434         (remote_insert_breakpoint): Add 'self' argument.
9435         (remote_insert_hw_breakpoint): Add 'self' argument.
9436         (remote_supports_cond_breakpoints): Add 'self' argument.
9437
9438 2014-02-19  Tom Tromey  <tromey@redhat.com>
9439
9440         * target.h (struct target_ops) <to_supports_string_tracing>: Add
9441         argument.
9442         (target_supports_string_tracing): Add argument.
9443         * target.c (update_current_target): Update.
9444         * remote.c (remote_supports_string_tracing): Add 'self' argument.
9445
9446 2014-02-19  Tom Tromey  <tromey@redhat.com>
9447
9448         * target.h (struct target_ops)
9449         <to_supports_disable_randomization>: Add argument.
9450         * target.c (find_default_supports_disable_randomization): Add
9451         argument.
9452         (target_supports_disable_randomization): Add argument.
9453         (find_default_supports_disable_randomization): Add 'self'
9454         argument.
9455         * remote.c (extended_remote_supports_disable_randomization): Add
9456         'self' argument.
9457         (remote_supports_disable_randomization): Add 'self' argument.
9458         (extended_remote_create_inferior): Update.
9459         * linux-nat.c (linux_nat_supports_disable_randomization): Add
9460         'self' argument.
9461
9462 2014-02-19  Tom Tromey  <tromey@redhat.com>
9463
9464         * target.h (struct target_ops)
9465         <to_supports_enable_disable_tracepoint>: Add argument.
9466         (target_supports_enable_disable_tracepoint): Add argument.
9467         * target.c (update_current_target): Update.
9468         * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9469         argument.
9470
9471 2014-02-19  Tom Tromey  <tromey@redhat.com>
9472
9473         * target.h (struct target_ops) <to_supports_multi_process>: Add
9474         argument.
9475         (target_supports_multi_process): Add argument.
9476         * target.c (update_current_target): Update.
9477         * remote.c (remote_supports_multi_process): Add 'self' argument.
9478         * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9479         argument.
9480         * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9481         argument.
9482
9483 2014-02-19  Tom Tromey  <tromey@redhat.com>
9484
9485         * target.h (struct target_ops) <to_execution_direction>: Add
9486         argument.
9487         (target_execution_direction): Add argument.
9488         * target.c (default_execution_direction): Add 'self' argument.
9489         * record-full.c (record_full_execution_direction): Add 'self'
9490         argument.
9491
9492 2014-02-19  Tom Tromey  <tromey@redhat.com>
9493
9494         * target.h (struct target_ops) <to_can_execute_reverse>: Add
9495         argument.
9496         (target_can_execute_reverse): Add argument.
9497         * remote.c (remote_can_execute_reverse): Add 'self' argument.
9498         * record-full.c (record_full_can_execute_reverse): Add 'self'
9499         argument.
9500         * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9501         argument.
9502
9503 2014-02-19  Tom Tromey  <tromey@redhat.com>
9504
9505         * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9506         * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9507         argument.
9508         (target_get_ada_task_ptid): Add argument.
9509         * target.c (update_current_target): Update.
9510         (default_get_ada_task_ptid): Add 'self' argument.
9511         * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9512         * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9513         * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9514         argument.
9515         * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9516         argument.
9517         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9518         argument.
9519         * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9520         argument.
9521         * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9522         * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9523         argument.
9524
9525 2014-02-19  Tom Tromey  <tromey@redhat.com>
9526
9527         * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9528         (target_goto_bookmark): Add argument.
9529         * target.c (dummy_goto_bookmark): Add 'self' argument.
9530         * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9531
9532 2014-02-19  Tom Tromey  <tromey@redhat.com>
9533
9534         * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9535         (target_get_bookmark): Add argument.
9536         * target.c (dummy_get_bookmark): Add 'self' argument.
9537         * record-full.c (record_full_get_bookmark): Add 'self' argument.
9538
9539 2014-02-19  Tom Tromey  <tromey@redhat.com>
9540
9541         * target.h (struct target_ops) <to_make_corefile_notes>: Add
9542         argument.
9543         (target_make_corefile_notes): Add argument.
9544         * target.c (dummy_make_corefile_notes): Add 'self' argument.
9545         * procfs.c (procfs_make_note_section): Add 'self' argument.
9546         (procfs_make_note_section): Add 'self' argument.
9547         (procfs_make_note_section): Add 'self' argument.
9548         * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9549         argument.
9550         * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9551         * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9552         * exec.c (exec_make_note_section): Add 'self' argument.
9553         (exec_make_note_section): Add 'self' argument.
9554
9555 2014-02-19  Tom Tromey  <tromey@redhat.com>
9556
9557         * target.h (struct target_ops) <to_find_memory_regions>: Add
9558         argument.
9559         (target_find_memory_regions): Add argument.
9560         * target.c (dummy_find_memory_regions): Add 'self' argument.
9561         * procfs.c (proc_find_memory_regions): Add 'self' argument.
9562         * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9563         * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9564         * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9565         * exec. (exec_do_find_memory_regions): New global.
9566         (exec_set_find_memory_regions): Rewrite.
9567         (exec_find_memory_regions): New function.
9568         (init_exec_ops): Use exec_find_memory_regions.
9569
9570 2014-02-19  Tom Tromey  <tromey@redhat.com>
9571
9572         * target.h (struct target_ops) <to_supports_non_stop>: Add
9573         argument.
9574         * target.c (find_default_supports_non_stop): Add argument.
9575         (target_supports_non_stop): Add argument.
9576         (find_default_supports_non_stop): Add 'self' argument.
9577         * remote.c (remote_supports_non_stop): Add 'self' argument.
9578         * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9579
9580 2014-02-19  Tom Tromey  <tromey@redhat.com>
9581
9582         * target.h (struct target_ops) <to_log_command>: Add argument.
9583         (target_log_command): Add argument.
9584         * serial.h (serial_log_command): Add 'self' argument.
9585         * serial.c (serial_log_command): Add 'self' argument.
9586
9587 2014-02-19  Tom Tromey  <tromey@redhat.com>
9588
9589         * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9590         * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9591         argument.
9592         (target_pid_to_exec_file): Add argument.
9593         * target.c (debug_to_pid_to_exec_file): Add argument.
9594         (update_current_target): Update.
9595         * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9596         * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9597         * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9598         (linux_handle_extended_wait): Update.
9599         * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9600         * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9601         * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9602         * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9603
9604 2014-02-19  Tom Tromey  <tromey@redhat.com>
9605
9606         * target.h (struct target_ops) <to_rcmd>: Add argument.
9607         (target_rcmd): Add argument.
9608         * target.c (debug_to_rcmd): Add argument.
9609         (update_current_target, do_monitor_command): Update.
9610         * remote.c (remote_rcmd): Add 'self' argument.
9611         * monitor.c (monitor_rcmd): Add 'self' argument.
9612
9613 2014-02-19  Tom Tromey  <tromey@redhat.com>
9614
9615         * windows-nat.c (windows_stop): Add 'self' argument.
9616         * target.h (struct target_ops) <to_stop>: Add argument.
9617         * target.c (target_stop): Add argument.
9618         (debug_to_stop): Add argument.
9619         (update_current_target): Update.
9620         * remote.c (remote_stop): Add 'self' argument.
9621         * remote-sim.c (gdbsim_stop): Add 'self' argument.
9622         (gdbsim_cntrl_c): Update.
9623         * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9624         * procfs.c (procfs_stop): Add 'self' argument.
9625         * nto-procfs.c (procfs_stop): Add 'self' argument.
9626         * monitor.c (monitor_stop): Add 'self' argument.
9627         (monitor_open): Update.
9628         * linux-nat.c (linux_nat_stop): Add argument.
9629         * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9630         * gnu-nat.c (gnu_stop): Add 'self' argument.
9631         * darwin-nat.c (darwin_stop): Add 'self' argument.
9632
9633 2014-02-19  Tom Tromey  <tromey@redhat.com>
9634
9635         * target.h (struct target_ops) <to_thread_name>: Add argument.
9636         * target.c (target_thread_name): Add argument.
9637         (update_current_target): Update.
9638         * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9639
9640 2014-02-19  Tom Tromey  <tromey@redhat.com>
9641
9642         * target.h (struct target_ops) <to_extra_thread_info>: Add
9643         argument.
9644         (target_extra_thread_info): Add argument.
9645         * target.c (update_current_target): Update.
9646         * remote.c (remote_threads_extra_info): Add 'self' argument.
9647         * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9648         argument.
9649         * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9650         * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9651         * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9652         argument.
9653         * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9654         argument.
9655         * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9656         argument.
9657         * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9658         argument.
9659
9660 2014-02-19  Tom Tromey  <tromey@redhat.com>
9661
9662         * target.h (struct target_ops) <to_program_signals>: Add argument.
9663         * target.c (target_program_signals): Add argument.
9664         * remote.c (remote_program_signals): Add 'self' argument.
9665
9666 2014-02-19  Tom Tromey  <tromey@redhat.com>
9667
9668         * target.h (struct target_ops) <to_pass_signals>: Add argument.
9669         * target.c (target_pass_signals): Add argument.
9670         * remote.c (remote_pass_signals): Add 'self' argument.
9671         (remote_start_remote): Update.
9672         * procfs.c (procfs_pass_signals): Add 'self' argument.
9673         * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9674         * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9675         (linux_nat_create_inferior, linux_nat_attach): Update.
9676
9677 2014-02-19  Tom Tromey  <tromey@redhat.com>
9678
9679         * windows-nat.c (windows_can_run): Add 'self' argument.
9680         * target.h (struct target_ops) <to_can_run>: Add argument.
9681         (target_can_run): Add argument.
9682         * target.c (debug_to_can_run): Add argument.
9683         (update_current_target): Update.
9684         * nto-procfs.c (procfs_can_run): Add 'self' argument.
9685         * inf-child.c (inf_child_can_run): Add 'self' argument.
9686         * go32-nat.c (go32_can_run): Add 'self' argument.
9687
9688 2014-02-19  Tom Tromey  <tromey@redhat.com>
9689
9690         * target.h (struct target_ops) <to_has_exited>: Add argument.
9691         (target_has_exited): Add argument.
9692         * target.c (debug_to_has_exited): Add argument.
9693         (update_current_target): Update.
9694
9695 2014-02-19  Tom Tromey  <tromey@redhat.com>
9696
9697         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9698         argument.
9699         (target_set_syscall_catchpoint): Add argument.
9700         * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9701         argument.
9702         * target.c (update_current_target): Update.
9703
9704 2014-02-19  Tom Tromey  <tromey@redhat.com>
9705
9706         * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9707         argument.
9708         (target_remove_exec_catchpoint): Add argument.
9709         * target.c (debug_to_remove_exec_catchpoint): Add argument.
9710         (update_current_target): Update.
9711         * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9712         argument.
9713
9714 2014-02-19  Tom Tromey  <tromey@redhat.com>
9715
9716         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9717         argument.
9718         (target_insert_exec_catchpoint): Add argument.
9719         * target.c (debug_to_insert_exec_catchpoint): Add argument.
9720         (update_current_target): Update.
9721         * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9722         argument.
9723
9724 2014-02-19  Tom Tromey  <tromey@redhat.com>
9725
9726         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9727         argument.
9728         (target_remove_vfork_catchpoint): Add argument.
9729         * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9730         (update_current_target): Update.
9731         * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9732         argument.
9733
9734 2014-02-19  Tom Tromey  <tromey@redhat.com>
9735
9736         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9737         argument.
9738         (target_insert_vfork_catchpoint): Add argument.
9739         * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9740         (update_current_target): Update.
9741         * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9742         argument.
9743
9744 2014-02-19  Tom Tromey  <tromey@redhat.com>
9745
9746         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9747         argument.
9748         (target_remove_fork_catchpoint): Add argument.
9749         * target.c (debug_to_remove_fork_catchpoint): Add argument.
9750         (update_current_target): Update.
9751         * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9752         argument.
9753
9754 2014-02-19  Tom Tromey  <tromey@redhat.com>
9755
9756         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9757         argument.
9758         (target_insert_fork_catchpoint): Add argument.
9759         * target.c (debug_to_insert_fork_catchpoint): Add argument.
9760         (update_current_target): Update.
9761         * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9762         argument.
9763
9764 2014-02-19  Tom Tromey  <tromey@redhat.com>
9765
9766         * target.h (struct target_ops) <to_post_startup_inferior>: Add
9767         argument.
9768         (target_post_startup_inferior): Add argument.
9769         * target.c (debug_to_post_startup_inferior): Add argument.
9770         (update_current_target): Update.
9771         * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9772         argument.
9773         * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9774         argument.
9775         * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9776         argument.
9777         * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9778         argument.
9779         * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9780         'self' argument.
9781         (super_post_startup_inferior): Likewise.
9782         * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9783         'self' argument.
9784         (super_post_startup_inferior): Likewise.
9785         * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9786         Add 'self' argument.
9787         (super_post_startup_inferior): Likewise.
9788
9789 2014-02-19  Tom Tromey  <tromey@redhat.com>
9790
9791         * target.h (struct target_ops) <to_load>: Add argument.
9792         * target.c (target_load): Add argument.
9793         (debug_to_load): Add argument.
9794         (update_current_target): Update.
9795         * remote.c (remote_load): Add 'self' argument.
9796         * remote-sim.c (gdbsim_load): Add 'self' argument.
9797         * remote-mips.c (mips_load): Add 'self' argument.
9798         * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9799         * monitor.c (monitor_load): Add 'self' argument.
9800         * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9801
9802 2014-02-19  Tom Tromey  <tromey@redhat.com>
9803
9804         * target.h (struct target_ops) <to_terminal_info>: Add argument.
9805         (target_terminal_info): Add argument.
9806         * target.c (debug_to_terminal_info): Add argument.
9807         (default_terminal_info): Likewise.
9808         * inflow.c (child_terminal_info): Add 'self' argument.
9809         * inferior.h (child_terminal_info): Add 'self' argument.
9810         * go32-nat.c (go32_terminal_info): Add 'self' argument.
9811
9812 2014-02-19  Tom Tromey  <tromey@redhat.com>
9813
9814         * target.h (struct target_ops) <to_terminal_save_ours>: Add
9815         argument.
9816         (target_terminal_save_ours): Add argument.
9817         * target.c (debug_to_terminal_save_ours): Add argument.
9818         (update_current_target): Update.
9819         * inflow.c (terminal_save_ours): Add 'self' argument.
9820         * inferior.h (terminal_save_ours): Add 'self' argument.
9821
9822 2014-02-19  Tom Tromey  <tromey@redhat.com>
9823
9824         * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9825         (target_terminal_ours): Add argument.
9826         * target.c (debug_to_terminal_ours): Add argument.
9827         (update_current_target): Update.
9828         * remote.c (remote_terminal_ours): Add 'self' argument.
9829         (remote_close): Update.
9830         * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9831         * inflow.c (terminal_ours): Add 'self' argument.
9832         * inferior.h (terminal_ours): Add 'self' argument.
9833         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9834
9835 2014-02-19  Pedro Alves  <palves@redhat.com>
9836             Tom Tromey  <tromey@redhat.com>
9837
9838         * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9839         argument.
9840         (target_terminal_ours_for_output): Add argument.
9841         * target.c (debug_to_terminal_ours_for_output): Add argument.
9842         (update_current_target): Update.
9843         * inflow.c (terminal_ours_for_output): Add 'self' argument.
9844         * inferior.h (terminal_ours_for_output): Add 'self' argument.
9845         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9846
9847 2014-02-19  Tom Tromey  <tromey@redhat.com>
9848
9849         * target.h (struct target_ops) <to_terminal_inferior>: Add
9850         argument.
9851         * target.c (target_terminal_inferior): Add argument.
9852         (update_current_target): Update.
9853         * remote.c (remote_terminal_inferior): Add 'self' argument.
9854         * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9855         * inflow.c (terminal_inferior): Add 'self' argument.
9856         * inferior.h (terminal_inferior): Add 'self' argument.
9857         * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9858         (go32_terminal_inferior): Add 'self' argument.
9859
9860 2014-02-19  Tom Tromey  <tromey@redhat.com>
9861
9862         * target.h (struct target_ops) <to_terminal_init>: Add argument.
9863         (target_terminal_init): Add argument.
9864         * target.c (debug_to_terminal_init): Add argument.
9865         (update_current_target): Update.
9866         * inflow.c (terminal_init_inferior): Add 'self' argument.
9867         * inferior.h (terminal_init_inferior): Add 'self' argument.
9868         * go32-nat.c (go32_terminal_init): Add 'self' argument.
9869         * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9870
9871 2014-02-19  Tom Tromey  <tromey@redhat.com>
9872
9873         * target.h (struct target_ops)
9874         <to_can_accel_watchpoint_condition>: Add argument.
9875         (target_can_accel_watchpoint_condition): Add argument.
9876         * target.c (debug_to_can_accel_watchpoint_condition): Add
9877         argument.
9878         (update_current_target): Update.
9879         * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9880         'self' argument.
9881
9882 2014-02-19  Tom Tromey  <tromey@redhat.com>
9883
9884         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9885         Add argument.
9886         (target_region_ok_for_hw_watchpoint): Add argument.
9887         * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9888         (default_region_ok_for_hw_watchpoint): Add argument.
9889         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9890         * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9891         argument.
9892         * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9893         argument.
9894         * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9895         argument.
9896         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9897         'self' argument.
9898         * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9899         'self' argument.
9900         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9901         'self' argument.
9902         * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9903         * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9904         'self' argument.
9905         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9906         Add 'self' argument.
9907
9908 2014-02-19  Tom Tromey  <tromey@redhat.com>
9909
9910         * target.h (struct target_ops) <to_insert_watchpoint>: Add
9911         argument.
9912         (target_insert_watchpoint): Add argument.
9913         * target.c (debug_to_insert_watchpoint): Add argument.
9914         (update_current_target): Update.
9915         * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9916         * remote.c (remote_insert_watchpoint): Add 'self' argument.
9917         * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9918         * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9919         * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9920         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9921         argument.
9922         * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9923         (procfs_insert_hw_watchpoint): Add 'self' argument.
9924         * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9925         argument.
9926         * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9927         argument.
9928         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9929         argument.
9930         * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9931         * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9932         argument.
9933         * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9934         'self' argument.
9935
9936 2014-02-19  Tom Tromey  <tromey@redhat.com>
9937
9938         * target.h (struct target_ops) <to_remove_watchpoint>: Add
9939         argument.
9940         (target_remove_watchpoint): Add argument.
9941         * target.c (debug_to_remove_watchpoint): Add argument.
9942         (update_current_target): Update.
9943         * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9944         * remote.c (remote_remove_watchpoint): Add 'self' argument.
9945         * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9946         * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9947         * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9948         * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9949         argument.
9950         * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9951         * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9952         argument.
9953         * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9954         argument.
9955         * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9956         argument.
9957         * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9958         * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9959         argument.
9960         * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9961         'self' argument.
9962
9963 2014-02-19  Tom Tromey  <tromey@redhat.com>
9964
9965         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9966         argument.
9967         (target_remove_hw_breakpoint): Add argument.
9968         * target.c (debug_to_remove_hw_breakpoint): Add argument.
9969         (update_current_target): Update.
9970         * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9971         * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9972         argument.
9973         * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9974         * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9975         argument.
9976         * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9977         'self' argument.
9978
9979 2014-02-19  Tom Tromey  <tromey@redhat.com>
9980
9981         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9982         argument.
9983         (target_insert_hw_breakpoint): Add argument.
9984         * target.c (debug_to_insert_hw_breakpoint): Add argument.
9985         (update_current_target): Update.
9986         * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9987         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9988         argument.
9989         * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9990         * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9991         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9992         argument.
9993         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9994         'self' argument.
9995
9996 2014-02-19  Tom Tromey  <tromey@redhat.com>
9997
9998         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9999         argument.
10000         (target_can_use_hardware_watchpoint): Add argument.
10001         * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10002         (update_current_target): Update.
10003         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10004         argument.
10005         * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10006         argument.
10007         * remote.c (remote_check_watch_resources): Add 'self' argument.
10008         * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10009         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10010         argument.
10011         * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10012         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10013         argument.
10014         * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10015         argument.
10016         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10017         argument.
10018         * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10019         argument.
10020         * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10021         argument.
10022         * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10023         argument.
10024         * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10025         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10026         argument.
10027         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10028         'self' argument.
10029
10030 2014-02-19  Tom Tromey  <tromey@redhat.com>
10031
10032         * target.h (struct target_ops) <to_post_attach>: Add argument.
10033         (target_post_attach): Add argument.
10034         * target.c (debug_to_post_attach): Add argument.
10035         (update_current_target): Update.
10036         * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10037         * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10038         * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10039         * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10040         * inf-child.c (inf_child_post_attach): Add 'self' argument.
10041
10042 2014-02-19  Tom Tromey  <tromey@redhat.com>
10043
10044         * windows-nat.c (windows_close): Add 'self' argument.
10045         * tracepoint.c (tfile_close): Add 'self' argument.
10046         * target.h (struct target_ops) <to_close>: Add argument.
10047         * target.c (target_close): Add argument.
10048         (update_current_target): Update.
10049         * remote.c (remote_close): Add 'self' argument.
10050         * remote-sim.c (gdbsim_close): Add 'self' argument.
10051         * remote-mips.c (mips_close): Add 'self' argument.
10052         * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10053         * record-full.c (record_full_close): Add 'self' argument.
10054         * record-btrace.c (record_btrace_close): Add 'self' argument.
10055         * monitor.h (monitor_close): Add 'self' argument.
10056         * monitor.c (monitor_close): Add 'self' argument.
10057         * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10058         * linux-nat.c (linux_nat_close): Add argument.
10059         * go32-nat.c (go32_close): Add 'self' argument.
10060         * exec.c (exec_close_1): Add 'self' argument.
10061         * ctf.c (ctf_close): Add 'self' argument.
10062         * corelow.c (core_close): Add 'self' argument.
10063         (core_close_cleanup): Update.
10064         * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10065         * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10066
10067 2014-02-19  Tom Tromey  <tromey@redhat.com>
10068
10069         * remote.c (remote_load): New function.
10070         (init_remote_ops): Use it.
10071
10072 2014-02-19  Tom Tromey  <tromey@redhat.com>
10073
10074         * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10075         argument.
10076         * common/linux-btrace.h (linux_supports_btrace): Update.
10077         * remote.c (remote_supports_btrace): Add "self" argument.
10078         * target-delegates.c: Rebuild.
10079         * target.c (target_supports_btrace): Remove.
10080         * target.h (struct target_ops) <to_supports_btrace>: Add
10081         target_ops argument.
10082         (target_supports_btrace): New define.
10083
10084 2014-02-19  Tom Tromey  <tromey@redhat.com>
10085
10086         * record-full.c (record_full_beneath_to_resume_ops)
10087         (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10088         (record_full_beneath_to_wait)
10089         (record_full_beneath_to_store_registers_ops)
10090         (record_full_beneath_to_store_registers)
10091         (record_full_beneath_to_xfer_partial_ops)
10092         (record_full_beneath_to_xfer_partial)
10093         (record_full_beneath_to_insert_breakpoint_ops)
10094         (record_full_beneath_to_insert_breakpoint)
10095         (record_full_beneath_to_remove_breakpoint_ops)
10096         (record_full_beneath_to_remove_breakpoint)
10097         (record_full_beneath_to_stopped_by_watchpoint)
10098         (record_full_beneath_to_stopped_data_address)
10099         (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10100         (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10101         (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10102         (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10103         (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10104         (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10105         (tmp_to_stopped_data_address, tmp_to_async): Remove.
10106         (record_full_open_1, record_full_open): Update.  Use RECORD_IS_USED.
10107         (record_full_resume, record_full_wait_1)
10108         (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10109         (record_full_store_registers, record_full_xfer_partial)
10110         (record_full_insert_breakpoint, record_full_remove_breakpoint)
10111         (record_full_async, record_full_core_xfer_partial): Use target
10112         delegation.
10113         * target-delegates.c: Rebuild.
10114         * target.c (current_xfer_partial): Remove.
10115         (update_current_target): Do not INHERIT or de_fault
10116         to_insert_breakpoint, to_remove_breakpoint,
10117         to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10118         to_is_async_p, to_async.  Do not set to_xfer_partial field.
10119         (default_xfer_partial): Simplify.
10120         (current_xfer_partial): Remove.
10121         (target_wait, target_resume): Simplify.
10122         (find_default_can_async_p, find_default_is_async_p): Update.
10123         (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10124         to_xfer_partial, to_stopped_by_watchpoint,
10125         to_stopped_data_address.
10126         (target_store_registers): Simplify.
10127         (forward_target_remove_breakpoint)
10128         (forward_target_insert_breakpoint): Remove.
10129         (target_remove_breakpoint, target_insert_breakpoint)
10130         (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10131         * target.h (struct target_ops) <to_resume, to_wait,
10132         to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10133         to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10134         to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10135         markup.
10136         (forward_target_remove_breakpoint)
10137         (forward_target_insert_breakpoint): Remove.
10138         * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10139         directly.
10140         (record_btrace_insert_breakpoint): Delegate directly.
10141
10142 2014-02-19  Tom Tromey  <tromey@redhat.com>
10143
10144         PR build/7701:
10145         * target-delegates.c: New file.
10146         * target.c: Include target-delegates.c.
10147         (init_dummy_target): Call install_dummy_methods.
10148         (complete_target_initialization): Call install_delegators.
10149         * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10150         (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10151         * make-target-delegates: New file.
10152
10153 2014-02-19  Tom Tromey  <tromey@redhat.com>
10154
10155         * record.c (find_record_target): Use find_target_at.
10156         * target.c (find_target_at): New function.
10157         * target.h (find_target_at): Declare.
10158
10159 2014-02-19  Tom Tromey  <tromey@redhat.com>
10160
10161         * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10162         Add 'ops' argument.
10163         * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10164         'ops' argument.
10165         * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10166         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10167         'ops' argument.
10168         * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10169         argument.
10170         * linux-nat.c (save_sigtrap): Update.
10171         (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10172         (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10173         (linux_nat_close): Update.
10174         * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10175         argument.
10176         * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10177         argument.
10178         * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10179         * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10180         (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10181         (tmp_to_async): Add 'ops' argument.
10182         (record_full_stopped_by_watchpoint, record_full_async)
10183         (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10184         argument.
10185         * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10186         (m32r_stopped_by_watchpoint): Add 'ops' argument.
10187         * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10188         * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10189         (remote_is_async_p, remote_async): Add 'ops' argument.
10190         (remote_stopped_data_address): Update.
10191         * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10192         * target.c (update_current_target)
10193         (find_default_can_async_p, find_default_is_async_p): Update.
10194         (init_dummy_target): Update.
10195         (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10196         * target.h (struct target_ops) <to_stopped_by_watchpoint,
10197         to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10198         (target_can_async_p, target_is_async_p, target_async)
10199         (target_stopped_by_watchpoint): Update.
10200
10201 2014-02-19  Yao Qi  <yao@codesourcery.com>
10202
10203         PR gdb/16220
10204         * gdbarch.sh: Remove startup_gdbarch.
10205         * gdbarch.c: Regenerated.
10206         * gdbarch.h: Likewise.
10207
10208 2014-02-17  Kevin Buettner  <kevinb@redhat.com>
10209
10210         * rl78-tdep.c (rl78_g10_register_name): New function.
10211         (rl78_return_value): Add g10 support.
10212         (rl78_gdbarch_init): Register rl78_g10_register_name for the
10213         g10.
10214
10215 2014-02-17  Doug Evans  <xdje42@gmail.com>
10216
10217         * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10218         (SUBDIR_GUILE_SRCS): Ditto.
10219         (scm-gsmob.o): Ditto.
10220
10221 2014-02-17  Yao Qi  <yao@codesourcery.com>
10222
10223         * gnu-nat.c (ILL_RPC): Declare defined function.
10224
10225 2014-02-17  Yao Qi  <yao@codesourcery.com>
10226
10227         * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10228         mach_msg_type_number_t.
10229         (gnu_write_inferior): Likewise.
10230
10231 2014-02-17  Yao Qi  <yao@codesourcery.com>
10232
10233         * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10234         in format string.
10235         (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10236         (inf_validate_procs, inf_signal): Likewise.
10237         (S_exception_raise_request): Likewise.
10238         (do_mach_notify_dead_name): Likewise.
10239         (steal_exc_port): Likewise.
10240         (gnu_read_inferior): Change 'copy_count''s type to
10241         mach_msg_type_number_t.
10242         (gnu_write_inferior): Likewise.  Use 'lx' instead of 'x' in
10243         format string.
10244
10245 2014-02-16  Thomas Schwinge  <thomas@codesourcery.com>
10246
10247         * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10248         flag.  Adjust all users; in particular...
10249         (gnu_wait): ..., don't decrement its value in here...
10250         (gnu_create_inferior): ..., and instead set the flag in here,
10251         around the startup_inferior call, and call that one with
10252         START_INFERIOR_TRAPS_EXPECTED.
10253
10254         * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10255         (ILL_RPC): ... new macro.
10256         (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10257         (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10258         (do_mach_notify_send_once, S_proc_setmsgport_reply)
10259         (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10260         functions with ILL_RPC macro.
10261         (S_proc_pid2task_reply, S_proc_task2pid_reply)
10262         (S_proc_task2proc_reply, S_proc_proc2task_reply)
10263         (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10264         (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10265         (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10266         (S_proc_getlogin_reply, S_proc_getsid_reply)
10267         (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10268         (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10269         (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10270         (S_proc_getnports_reply, S_proc_is_important_reply)
10271         (S_proc_get_code_reply): New stub functions, generated with
10272         ILL_RPC macro.
10273
10274         * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10275         collected the type check structures.
10276
10277         * reply_mig_hack.awk: Don't expect to see the auto keyword.
10278
10279 2014-02-14  Doug Evans  <dje@google.com>
10280
10281         * target.c (target_write_partial): Fix result type.
10282
10283 2014-02-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
10284
10285         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10286         the proper offsets to access fpregset_t.
10287
10288 2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>
10289
10290         * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10291         (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10292         * h8300-tdep.c (setmachinelist): Remove global.
10293         * hppa-tdep.c (hppa_sigtramp): Remove global.
10294         * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10295         RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10296         * ravenscar-thread.c (update_target_observer): Remove global.
10297         * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10298
10299 2014-02-12  Tom Tromey  <tromey@redhat.com>
10300
10301         * common/rsp-low.c: Update comments.
10302         * common/rsp-low.h: Update comments.
10303
10304 2014-02-12  Tom Tromey  <tromey@redhat.com>
10305
10306         * common/rsp-low.c (convert_ascii_to_int): Remove.
10307         * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10308
10309 2014-02-12  Tom Tromey  <tromey@redhat.com>
10310
10311         * common/rsp-low.h (unhexify): Don't declare.
10312         * common/rsp-low.c (unhexify): Remove.
10313
10314 2014-02-12  Tom Tromey  <tromey@redhat.com>
10315
10316         * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10317         * common/rsp-low.c (convert_int_to_ascii): Remove.
10318
10319 2014-02-12  Tom Tromey  <tromey@redhat.com>
10320
10321         * common/rsp-low.h (hexify): Don't declare.
10322         * common/rsp-low.c (hexify): Remove.
10323
10324 2014-02-12  Tom Tromey  <tromey@redhat.com>
10325
10326         * common/rsp-low.c (hexify): Never take strlen of argument.
10327
10328 2014-02-12  Tom Tromey  <tromey@redhat.com>
10329
10330         * common/rsp-low.c (bin2hex): Never take strlen of argument.
10331         * remote.c (extended_remote_run, remote_rcmd)
10332         (remote_download_trace_state_variable, remote_save_trace_data)
10333         (remote_set_trace_notes): Update.
10334         * tracepoint.c (encode_source_string, tfile_write_status)
10335         (tfile_write_uploaded_tsv): Update.
10336
10337 2014-02-12  Tom Tromey  <tromey@redhat.com>
10338
10339         * tracepoint.c: Include rsp-low.h.
10340         * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10341         * remote.c: Include rsp-low.h.
10342         (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10343         (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10344         (remote_unescape_input): Move to common/rsp-low.c.
10345         * common/rsp-low.h: New file.
10346         * common/rsp-low.c: New file.
10347         * Makefile.in (SFILES): Add common/rsp-low.c.
10348         (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10349         (COMMON_OBS): Add rsp-low.o.
10350         (rsp-low.o): New target.
10351
10352 2014-02-12  Tom Tromey  <tromey@redhat.com>
10353
10354         * utils.h: Include print-utils.h.
10355         (host_address_to_string, plongest, pulongest, phex, phex_nz)
10356         (int_string, core_addr_to_string, core_addr_to_string_nz)
10357         (hex_string, hex_string_custom): Don't declare.
10358         * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10359         (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10360         (hex_string_custom, int_string, core_addr_to_string)
10361         (core_addr_to_string_nz, host_address_to_string): Move to
10362         common/print-utils.c.
10363         * common/print-utils.h: New file.
10364         * common/print-utils.c: New file
10365         * Makefile.in (SFILES): Add common/print-utils.c.
10366         (HFILES_NO_SRCDIR): Add common/print-utils.h.
10367         (COMMON_OBS): Add print-utils.o.
10368         (print-utils.o): New target.
10369
10370 2014-02-12  Tom Tromey  <tromey@redhat.com>
10371
10372         * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10373
10374 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
10375
10376         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10377
10378 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
10379
10380         * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10381         if a PT_IO ptrace request returns sucessfully but indicates that 0
10382         bytes were transferred.
10383
10384 2014-02-12  Pedro Alves  <palves@redhat.com>
10385             Kevin Buettner <kevinb@redhat.com>
10386
10387         * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10388         TYPE_INSTANCE_FLAG_CODE_SPACE.
10389
10390 2014-02-12  Pedro Alves  <palves@redhat.com>
10391
10392         * h8300-tdep.c (pseudo_from_raw_register)
10393         (raw_from_pseudo_register): New functions.
10394         (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10395         them.
10396
10397 2014-02-12  Pedro Alves  <palves@redhat.com>
10398
10399         * h8300-tdep.c (h8300_register_sim_regno): New function.
10400         (h8300_gdbarch_init): Install h8300_register_sim_regno as
10401         gdbarch_register_sim_regno hook.
10402
10403 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
10404
10405         * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10406
10407 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
10408
10409         * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10410
10411 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
10412
10413         * obsd-tdep.h (obsd_init_abi): New prototype.
10414         * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10415         (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10416         (obsd_init_abi): New functions.
10417         * i386obsd-tdep.c: Include "obsd-tdep.h".
10418         (i386obsd_init_abi): Call obsd_init_abi.
10419         * amd64obsd-tdep.c: Include "obsd-tdep.h".
10420         (amd64obsd_init_abi): Call obsd_init_abi.
10421         * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10422         obsd-tdep.c to gdb_target_obs.
10423
10424 2014-02-11  Jose E. Marchesi  <jose.marchesi@oracle.com>
10425
10426         * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10427         double float arguments to 16-byte in the argument slots.
10428
10429 2014-02-11  Doug Evans  <xdje42@gmail.com>
10430
10431         * configure.ac: Don't crash if pkg-config is not found and guile
10432         wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
10433         in guile checks.
10434         * configure: Regenerate.
10435
10436 2014-02-11  Yao Qi  <yao@codesourcery.com>
10437
10438         * aix-thread.c (aix_thread_xfer_partial): Update comments.
10439         * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10440         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10441         * gnu-nat.c (gnu_xfer_memory): Likewise.
10442         * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
10443         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10444         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10445         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10446
10447 2014-02-11  Yao Qi  <yao@codesourcery.com>
10448
10449         * target.h (enum target_xfer_error): Rename to ...
10450         (enum target_xfer_status): ... it.  New.  All users updated.
10451         (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10452         New.
10453         (TARGET_XFER_STATUS_ERROR_P): New macro.
10454         (target_xfer_error_to_string): Remove declaration.
10455         (target_xfer_status_to_string): Declare.
10456         (target_xfer_partial_ftype): Adjust it.
10457         (struct target_ops) <to_xfer_partial>: Return
10458         target_xfer_status.  Add argument xfered_len.  Update
10459         comments.
10460         * target.c (target_xfer_error_to_string): Rename to ...
10461         (target_xfer_status_to_string): ... it.  New.  All callers
10462         updated.
10463         (target_read_live_memory): Likewise.  Call target_xfer_partial
10464         instead of target_read.
10465         (memory_xfer_live_readonly_partial): Return
10466         target_xfer_status.  Add argument xfered_len.
10467         (raw_memory_xfer_partial): Likewise.
10468         (memory_xfer_partial_1): Likewise.
10469         (memory_xfer_partial): Likewise.
10470         (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
10471         properly.  Update debug message.
10472         (default_xfer_partial, current_xfer_partial): Likewise.
10473         (target_write_partial): Likewise.
10474         (target_read_partial): Likewise.  All callers updated.
10475         (read_whatever_is_readable): Likewise.
10476         (target_write_with_progress): Likewise.
10477         (target_read_alloc_1): Likewise.
10478
10479         * aix-thread.c (aix_thread_xfer_partial): Likewise.
10480         * auxv.c (procfs_xfer_auxv): Likewise.
10481         (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10482         * bfd-target.c (target_bfd_xfer_partial): Likewise.
10483         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10484         * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10485         * corefile.c (read_memory): Adjust.
10486         * corelow.c (core_xfer_partial): Likewise.
10487         * ctf.c (ctf_xfer_partial): Likewise.
10488         * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
10489         updated.
10490         (darwin_xfer_partial): Likewise.
10491         * exec.c (section_table_xfer_memory_partial): Likewise.  All
10492         callers updated.
10493         (exec_xfer_partial): Likewise.
10494         * exec.h (section_table_xfer_memory_partial): Update
10495         declaration.
10496         * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
10497         negative.
10498         (gnu_xfer_partial): Likewise.
10499         * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10500         (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10501         (ia64_hpux_xfer_solib_got): Likewise.
10502         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
10503         type of 'partial_len' to ULONGEST.
10504         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10505         * linux-nat.c (linux_xfer_siginfo ): Likewise.
10506         (linux_nat_xfer_partial): Likewise.
10507         (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10508         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10509         * monitor.c (monitor_xfer_memory): Likewise.
10510         (monitor_xfer_partial): Likewise.
10511         * procfs.c (procfs_xfer_partial): Likewise.
10512         * record-btrace.c (record_btrace_xfer_partial): Likewise.
10513         * record-full.c (record_full_xfer_partial): Likewise.
10514         (record_full_core_xfer_partial): Likewise.
10515         * remote-sim.c (gdbsim_xfer_memory): Likewise.
10516         (gdbsim_xfer_partial): Likewise.
10517         * remote.c (remote_write_bytes_aux): Likewise.  All callers
10518         updated.
10519         (remote_write_bytes, remote_read_bytes): Likewise.  All
10520         callers updated.
10521         (remote_flash_erase): Likewise.  All callers updated.
10522         (remote_write_qxfer): Likewise.  All callers updated.
10523         (remote_read_qxfer): Likewise.  All callers updated.
10524         (remote_xfer_partial): Likewise.
10525         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10526         (rs6000_xfer_shared_libraries): Likewise.
10527         * sol-thread.c (sol_thread_xfer_partial): Likewise.
10528         (sol_thread_xfer_partial): Likewise.
10529         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10530         (sparc_xfer_partial): Likewise.
10531         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
10532         updated.
10533         (spu_xfer_partial): Likewise.
10534         * spu-multiarch.c (spu_xfer_partial): Likewise.
10535         * tracepoint.c (tfile_xfer_partial): Likewise.
10536         * windows-nat.c (windows_xfer_memory): Likewise.
10537         (windows_xfer_shared_libraries): Likewise.
10538         (windows_xfer_partial): Likewise.
10539         * valprint.c: Replace 'target_xfer_error' with
10540         'target_xfer_status' in comments.
10541
10542 2014-02-11  Simon Marchi  <simon.marchi@ericsson.com>  (tiny patch)
10543
10544         Checked in by Joel Brobecker <brobecker@adacore.com>.
10545         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10546
10547 2014-02-11  Joel Brobecker  <brobecker@adacore.com>
10548
10549         * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10550         function parameters.
10551
10552 2014-02-10  Will Newton  <will.newton@linaro.org>
10553
10554         * elfread.c (elf_rel_plt_read): Look for a .got section if
10555         looking up .got.plt fails.
10556         (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10557         on address passed to elf_gnu_ifunc_record_cache.
10558         (elf_gnu_ifunc_resolve_addr): Likewise.
10559         (elf_gnu_ifunc_resolver_return_stop): Likewise.
10560
10561 2014-02-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
10562
10563         * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10564         (X_RETTURN): New macro.
10565         * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10566
10567         * sparc64-tdep.c (sparc64_init_abi): Hook
10568         sparc_in_function_epilogue_p.
10569
10570 2014-02-10  Gary Benson  <gbenson@redhat.com>
10571
10572         * symfile-debug.c (debug_qf_expand_symtabs_matching):
10573         Rename name_matcher to symbol_matcher.
10574
10575 2014-02-10  Gary Benson  <gbenson@redhat.com>
10576
10577         * symfile-debug.c (debug_qf_expand_symtabs_matching):
10578         Use expand_symtabs_file_matcher_ftype and
10579         expand_symtabs_symbol_matcher_ftype.
10580
10581 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
10582
10583         * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10584         (struct ada_symbol_cache): New.
10585         (ada_free_symbol_cache): Forward declare.
10586         (struct ada_pspace_data): New.
10587         (ada_pspace_data_handle): New static global.
10588         (get_ada_pspace_data, ada_pspace_data_cleanup)
10589         (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10590         (cache_space, cache): Delete, now folded inside struct
10591         ada_pspace_data.
10592         (ada_get_symbol_cache): New function.
10593         (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10594         implementation.
10595         (_initialize_ada_language): Remove initialization of cache_space.
10596         Move call to observer_attach_inferior_exit up, grouping it
10597         with the other observer registrations inside this function.
10598         Rename command to be more general.  Add call to
10599         register_program_space_data_with_cleanup.
10600
10601 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
10602
10603         * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10604         ada_new_objfile_observer.
10605         (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10606         (_initialize_tasks): Update uses of ada_new_objfile_observer
10607         and ada_tasks_normal_stop_observer.
10608
10609 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
10610
10611         * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10612         returned by the 'Length attribute to integer.
10613
10614 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
10615
10616         * ada-lang.c (_initialize_ada_language): Initialize
10617         cache_space obstack.
10618
10619 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
10620
10621         * ada-lang.c (HASH_SIZE): New macro.
10622         (struct cache_entry): New type.
10623         (cache_space, cache): New static globals.
10624         (ada_clear_symbol_cache, find_entry): New functions.
10625         (lookup_cached_symbol, cache_symbol): Implement.
10626         (ada_new_objfile_observer, ada_free_objfile_observer): New.
10627         (_initialize_ada_language): Attach ada_new_objfile_observer
10628         and ada_free_objfile_observer.
10629
10630 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
10631
10632         * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10633         (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10634         struct block * parameter.
10635         (ada_lookup_symbol_list_worker): Constify local variable "block".
10636         Remove cast which is no longer necessary.
10637
10638 2014-02-10  Doug Evans  <xdje42@gmail.com>
10639
10640         Add Guile as an extension language.
10641         * NEWS: Mention Guile scripting.
10642         * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10643         (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10644         (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10645         (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10646         (CLIBS): Add GUILE_LIBS.
10647         (install-guile): New rule.
10648         (guile.o): New rule.
10649         (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10650         (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10651         (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10652         (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10653         (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10654         (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10655         (scm-type.o, scm-utils.o, scm-value.o): New rules.
10656         * configure.ac: New option --with-guile.
10657         * configure: Regenerate.
10658         * config.in: Regenerate.
10659         * auto-load.c: Remove #include "python/python.h".  Add #include
10660         "gdb/section-scripts.h".
10661         (source_section_scripts): Handle Guile scripts.
10662         (_initialize_auto_load): Add name of Guile objfile script to
10663         scripts-directory help text.
10664         * breakpoint.c (condition_command): Tweak comment to include Scheme.
10665         * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10666         (struct breakpoint): New member scm_bp_object.
10667         * defs.h (enum command_control_type): New value guile_control.
10668         * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
10669         "extension.h".
10670         (show_user): Update comment.
10671         (_initialize_cli_cmds): Update help text for "show user".  Update help
10672         text for max-user-call-depth.
10673         * cli/cli-script.c: Remove #include "python/python.h".  Add #include
10674         "extension.h".
10675         (multi_line_command_p): Add guile_control.
10676         (print_command_lines): Handle guile_control.
10677         (execute_control_command, recurse_read_control_structure): Ditto.
10678         (process_next_line): Recognize "guile" commands.
10679         * disasm.c (gdb_disassemble_info): Make non-static.
10680         * disasm.h: #include "dis-asm.h".
10681         (struct gdbarch): Add forward decl.
10682         (gdb_disassemble_info): Declare.
10683         * extension.c: #include "guile/guile.h".
10684         (extension_languages): Add guile.
10685         (get_ext_lang_defn): Handle EXT_LANG_GDB.
10686         * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10687         * gdbtypes.c (get_unsigned_type_max): New function.
10688         (get_signed_type_minmax): New function.
10689         * gdbtypes.h (get_unsigned_type_max): Declare.
10690         (get_signed_type_minmax): Declare.
10691         * guile/README: New file.
10692         * guile/guile-internal.h: New file.
10693         * guile/guile.c: New file.
10694         * guile/guile.h: New file.
10695         * guile/scm-arch.c: New file.
10696         * guile/scm-auto-load.c: New file.
10697         * guile/scm-block.c: New file.
10698         * guile/scm-breakpoint.c: New file.
10699         * guile/scm-disasm.c: New file.
10700         * guile/scm-exception.c: New file.
10701         * guile/scm-frame.c: New file.
10702         * guile/scm-gsmob.c: New file.
10703         * guile/scm-iterator.c: New file.
10704         * guile/scm-lazy-string.c: New file.
10705         * guile/scm-math.c: New file.
10706         * guile/scm-objfile.c: New file.
10707         * guile/scm-ports.c: New file.
10708         * guile/scm-pretty-print.c: New file.
10709         * guile/scm-safe-call.c: New file.
10710         * guile/scm-string.c: New file.
10711         * guile/scm-symbol.c: New file.
10712         * guile/scm-symtab.c: New file.
10713         * guile/scm-type.c: New file.
10714         * guile/scm-utils.c: New file.
10715         * guile/scm-value.c: New file.
10716         * guile/lib/gdb.scm: New file.
10717         * guile/lib/gdb/boot.scm: New file.
10718         * guile/lib/gdb/experimental.scm: New file.
10719         * guile/lib/gdb/init.scm: New file.
10720         * guile/lib/gdb/iterator.scm: New file.
10721         * guile/lib/gdb/printing.scm: New file.
10722         * guile/lib/gdb/types.scm: New file.
10723         * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10724         (VPATH): Add $(GUILE_SRCDIR).
10725         (GUILE_DIR): New variable.
10726         (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10727         (all): Add stamp-guile dependency.
10728         (stamp-guile): New rule.
10729         (clean-guile, install-guile, uninstall-guile): New rules.
10730         (install-only): Add install-guile dependency.
10731         (uninstall): Add uninstall-guile dependency.
10732         (clean): Add clean-guile dependency.
10733
10734 2014-02-09  Doug Evans  <xdje42@gmail.com>
10735
10736         Revert this patch (which I approved, mea culpa).
10737
10738         2014-02-08  Mark Kettenis  <kettenis@gnu.org>
10739
10740         * Makefile.in (all-lib): Remove.
10741         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10742
10743 2014-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
10744
10745         Fix Python stack corruption.
10746         * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10747         gdb_py_longest.
10748
10749 2014-02-08  Mark Kettenis  <kettenis@gnu.org>
10750
10751         * Makefile.in (all-lib): Remove.
10752         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10753
10754 2014-02-07  Doug Evans  <dje@google.com>
10755
10756         * extension-priv.h (extension_language_script_ops): Add comment.
10757         (extension_language_ops): Add comment.
10758         (active_ext_lang_state): Fix typo in comment.
10759
10760 2014-02-07  Pedro Alves  <palves@redhat.com>
10761
10762         PR breakpoints/16292
10763         * infrun.c (handle_signal_stop) <signal arrives while stepping
10764         over a breakpoint>: Switch back to the stepping thread.
10765
10766 2014-02-07  Yao Qi  <yao@codesourcery.com>
10767
10768         * target.c (target_xfer_partial): Return zero if LEN is zero.
10769
10770 2014-02-07  Yao Qi  <yao@codesourcery.com>
10771
10772         * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10773         (ld_so_xfer_auxv): Likewise.
10774         * bfd-target.c (target_bfd_xfer_partial): Likewise.
10775         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10776         * corelow.c (core_xfer_partial): Likewise.
10777         * ctf.c (ctf_xfer_partial): Likewise.
10778         * darwin-nat.c (darwin_read_dyld_info): Likewise.
10779         (darwin_xfer_partial): Likewise.
10780         * exec.c (exec_xfer_partial): Likewise.
10781         * gnu-nat.c (gnu_xfer_partial): Likewise.
10782         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10783         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10784         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10785         * linux-nat.c (linux_xfer_siginfo): Likewise.
10786         (linux_proc_xfer_spu): Likewise.
10787         * procfs.c (procfs_xfer_partial): Likewise.
10788         * record-full.c (record_full_xfer_partial): Likewise.
10789         (record_full_core_xfer_partial): Likewise.
10790         * remote-sim.c (gdbsim_xfer_partial): Likewise.
10791         * remote.c (remote_write_qxfer): Likewise.
10792         (remote_write_qxfer, remote_read_qxfer): Likewise.
10793         (remote_xfer_partial): Likewise.
10794         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10795         (rs6000_xfer_shared_libraries): Likewise.
10796         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10797         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10798         (spu_xfer_partial): Likewise.
10799         * target.c (memory_xfer_partial_1): Likewise.
10800         * tracepoint.c (tfile_xfer_partial): Likewise.
10801         * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10802         (windows_xfer_partial): Likewise.
10803
10804 2014-02-07  Yao Qi  <yao@codesourcery.com>
10805
10806         * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
10807         comments.
10808         (core_xfer_shared_libraries_aix): Likewise.
10809         * gdbarch.c, gdbarch.h: Regenerated.
10810         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10811         ULONGEST.  Change 'len_avail' type to ULONGEST.
10812         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10813         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10814         declaration.
10815         (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10816
10817 2014-02-07  Yao Qi  <yao@codesourcery.com>
10818
10819         * corefile.c (memory_error): Get 'exception' from ERR and pass
10820         'exception' to throw_error.
10821
10822 2014-02-06  Doug Evans  <xdje42@gmail.com>
10823
10824         * configure.ac (libpython checking): Remove all but python.o from
10825         CONFIG_OBS.  Remove all but python.c from CONFIG_SRCS.
10826         * configure: Regenerate.
10827
10828         * Makefile.in (SFILES): Add extension.c.
10829         (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10830         (COMMON_OBS): Add extension.o.
10831         * extension.h: New file.
10832         * extension-priv.h: New file.
10833         * extension.c: New file.
10834
10835         * python/python-internal.h: #include "extension.h".
10836         (gdbpy_auto_load_enabled): Declare.
10837         (gdbpy_apply_val_pretty_printer): Declare.
10838         (gdbpy_apply_frame_filter): Declare.
10839         (gdbpy_preserve_values): Declare.
10840         (gdbpy_breakpoint_cond_says_stop): Declare.
10841         (gdbpy_breakpoint_has_cond): Declare.
10842         (void source_python_script_for_objfile): Delete.
10843         * python/python.c: #include "extension-priv.h".
10844         Delete inclusion of "observer.h".
10845         (extension_language_python): Moved here and renamed from
10846         script_language_python in py-auto-load.c.
10847         Redefined to be of type extension_language_defn.
10848         (python_extension_script_ops): New global.
10849         (python_extension_ops): New global.
10850         (struct python_env): New member previous_active.
10851         (restore_python_env): Call restore_active_ext_lang.
10852         (ensure_python_env): Call set_active_ext_lang.
10853         (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10854         New arg extlang.
10855         (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10856         New arg extlang.
10857         (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10858         New arg extlang.
10859         (gdbpy_eval_from_control_command): Renamed from
10860         eval_python_from_control_command, made static.  New arg extlang.
10861         (gdbpy_source_script) Renamed from source_python_script, made static.
10862         New arg extlang.
10863         (gdbpy_before_prompt_hook): Renamed from before_prompt_hook.  Change
10864         result to int.  New arg extlang.
10865         (gdbpy_source_objfile_script): Renamed from
10866         source_python_script_for_objfile, made static.  New arg extlang.
10867         (gdbpy_start_type_printers): Renamed from start_type_printers, made
10868         static.  New args extlang, extlang_printers.  Change result type to
10869         "void".
10870         (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10871         static.  New arg extlang.  Rename arg printers to extlang_printers
10872         and change type to ext_lang_type_printers *.
10873         (gdbpy_free_type_printers): Renamed from free_type_printers, made
10874         static.  Replace argument arg with extlang, extlang_printers.
10875         (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10876         (!HAVE_PYTHON, source_python_script): Delete.
10877         (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10878         (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10879         (!HAVE_PYTHON, start_type_printers): Delete.
10880         (!HAVE_PYTHON, apply_type_printers): Delete.
10881         (!HAVE_PYTHON, free_type_printers): Delete.
10882         (_initialize_python): Delete call to observer_attach_before_prompt.
10883         (finalize_python): Set/restore active extension language.
10884         (gdbpy_finish_initialization) Renamed from
10885         finish_python_initialization, made static.  New arg extlang.
10886         (gdbpy_initialized): New function.
10887         * python/python.h: #include "extension.h".  Delete #include
10888         "value.h", "mi/mi-cmds.h".
10889         (extension_language_python): Declare.
10890         (GDBPY_AUTO_FILE_NAME): Delete.
10891         (enum py_bt_status): Moved to extension.h and renamed to
10892         ext_lang_bt_status.
10893         (enum frame_filter_flags): Moved to extension.h.
10894         (enum py_frame_args): Moved to extension.h and renamed to
10895         ext_lang_frame_args.
10896         (finish_python_initialization): Delete.
10897         (eval_python_from_control_command): Delete.
10898         (source_python_script): Delete.
10899         (apply_val_pretty_printer): Delete.
10900         (apply_frame_filter): Delete.
10901         (preserve_python_values): Delete.
10902         (gdbpy_script_language_defn): Delete.
10903         (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10904         (start_type_printers, apply_type_printers, free_type_printers): Delete.
10905
10906         * auto-load.c: #include "extension.h".
10907         (GDB_AUTO_FILE_NAME): Delete.
10908         (auto_load_gdb_scripts_enabled): Make public.  New arg extlang.
10909         (script_language_gdb): Delete, moved to extension.c and renamed to
10910         extension_language_gdb.
10911         (source_gdb_script_for_objfile): Delete.
10912         (auto_load_pspace_info): New member unsupported_script_warning_printed.
10913         (loaded_script): Change type of language member to
10914         struct extension_language_defn *.
10915         (init_loaded_scripts_info): Initialize
10916         unsupported_script_warning_printed.
10917         (maybe_add_script): Make static.  Change type of language arg to
10918         struct extension_language_defn *.
10919         (clear_section_scripts): Reset unsupported_script_warning_printed.
10920         (auto_load_objfile_script_1): Rewrite to use extension language API.
10921         (auto_load_objfile_script): Make public.  Remove support-compiled-in
10922         and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10923         (source_section_scripts): Rewrite to use extension language API.
10924         (load_auto_scripts_for_objfile): Rewrite to use
10925         auto_load_scripts_for_objfile.
10926         (collect_matching_scripts_data): Change type of language member to
10927         struct extension_language_defn *.
10928         (auto_load_info_scripts): Change type of language arg to
10929         struct extension_language_defn *.
10930         (unsupported_script_warning_print): New function.
10931         (script_not_found_warning_print): Make static.
10932         (_initialize_auto_load): Rewrite construction of scripts-directory
10933         help.
10934         * auto-load.h (struct objfile): Add forward decl.
10935         (struct script_language): Delete.
10936         (struct auto_load_pspace_info): Add forward decl.
10937         (struct extension_language_defn): Add forward decl.
10938         (maybe_add_script): Delete.
10939         (auto_load_objfile_script): Declare.
10940         (script_not_found_warning_print): Delete.
10941         (auto_load_info_scripts): Update prototype.
10942         (auto_load_gdb_scripts_enabled): Declare.
10943         * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10944         auto_load_python_scripts_enabled and made public.
10945         (script_language_python): Delete, moved to python.c.
10946         (gdbpy_script_language_defn): Delete.
10947         (info_auto_load_python_scripts): Update to use
10948         extension_language_python.
10949
10950         * breakpoint.c (condition_command): Replace call to
10951         gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10952         (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10953         with call to breakpoint_ext_lang_cond_says_stop.
10954         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10955         from gdbpy_should_stop.  Change result type to enum scr_bp_stop.
10956         New arg slang.  Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10957         (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10958         New arg slang.
10959         (local_setattro): Print name of extension language with existing
10960         stop condition.
10961
10962         * valprint.c (val_print, value_print): Update to call
10963         apply_ext_lang_val_pretty_printer.
10964         * cp-valprint.c (cp_print_value): Update call to
10965         apply_ext_lang_val_pretty_printer.
10966         * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10967         (gdbpy_apply_val_pretty_printer): Renamed from
10968         apply_val_pretty_printer.  New arg extlang.
10969         (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10970
10971         * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10972         extension language API.
10973         * cli/cli-script.c (execute_control_command): Update to call
10974         eval_ext_lang_from_control_command.
10975
10976         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10977         enum ext_lang_bt_status values.  Update call to
10978         apply_ext_lang_frame_filter.
10979         (mi_cmd_stack_list_locals): Ditto.
10980         (mi_cmd_stack_list_args): Ditto.
10981         (mi_cmd_stack_list_variables): Ditto.
10982         * mi/mi-main.c: Delete #include "python/python-internal.h".
10983         Add #include "extension.h".
10984         (mi_cmd_list_features): Replace reference to python internal variable
10985         gdb_python_initialized with call to ext_lang_initialized_p.
10986
10987         * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10988         Update to use enum ext_lang_frame_args.  Update to call
10989         apply_ext_lang_frame_filter.
10990         * python/py-framefilter.c (extract_sym): Update to use enum
10991         ext_lang_bt_status.
10992         (extract_value, py_print_type, py_print_value): Ditto.
10993         (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10994         (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10995         (py_print_frame): Ditto.
10996         (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10997         New arg extlang.  Update to use enum ext_lang_bt_status.
10998
10999         * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11000         finish_python_initialization.  Replace with call to
11001         finish_ext_lang_initialization.
11002
11003         * typeprint.c (do_free_global_table): Update to call
11004         free_ext_lang_type_printers.
11005         (create_global_typedef_table): Update to call
11006         start_ext_lang_type_printers.
11007         (find_global_typedef): Update to call apply_ext_lang_type_printers.
11008         * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11009         (type_print_options): Change type of global_printers from "void *"
11010         to "struct ext_lang_type_printers *".
11011
11012         * value.c (preserve_values): Update to call preserve_ext_lang_values.
11013         * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11014         (gdbpy_preserve_values): Renamed from preserve_python_values.
11015         New arg extlang.
11016         (!HAVE_PYTHON, preserve_python_values): Delete.
11017
11018         * utils.c (quit_flag): Delete, moved to extension.c.
11019         (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11020         extension.c.
11021
11022         * eval.c: Delete #include "python/python.h".
11023         * main.c: Delete #include "python/python.h".
11024
11025         * defs.h: Update comment.
11026
11027 2014-02-06  Joel Brobecker  <brobecker@adacore.com>
11028
11029         GDB 7.7 released.
11030
11031 2014-02-05  Mark Kettenis  <kettenis@gnu.org>
11032
11033         * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11034         defined.
11035
11036 2014-02-05  Yao Qi  <yao@codesourcery.com>
11037
11038         * remote.c (remote_pass_signals): Remove local 'buf' and use
11039         rs->buf.
11040         (remote_program_signals): Likewise.
11041
11042 2014-02-05  Yao Qi  <yao@codesourcery.com>
11043
11044         * ctf.c: Include "inferior.h" and "gdbthread.h".
11045         (CTF_PID): A new macro.
11046         (ctf_open): Call inferior_appeared and add_thread_silent.
11047         (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11048         (ctf_thread_alive): New function.
11049         (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11050
11051 2014-02-05  Yao Qi  <yao@codesourcery.com>
11052
11053         Revert this patch:
11054
11055         2013-05-24  Yao Qi  <yao@codesourcery.com>
11056
11057         * tracepoint.c (TFILE_PID): Remove.
11058         (tfile_open): Don't add thread and inferior.
11059         (tfile_close): Don't set 'inferior_ptid'.  Don't call
11060         exit_inferior_silent.
11061         (tfile_thread_alive): Remove.
11062         (init_tfile_ops): Don't set field 'to_thread_alive' of
11063         tfile_ops.
11064
11065 2014-02-04  Christian Eggers  <ceggers@gmx.de>  (tiny change)
11066
11067         * remote.c (remote_start_remote): Call remote_check_symbols even
11068         if only symbol-file (not file) has been given.
11069
11070 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11071
11072         * gdbarch.sh (skip_entrypoint): New callback.
11073         * gdbarch.c, gdbarch.h: Regenerate.
11074         * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11075         * infrun.c (fill_in_stop_func): Likewise.
11076         * ppc-linux-tdep.c: Include "elf/ppc64.h".
11077         (ppc_elfv2_elf_make_msymbol_special): New function.
11078         (ppc_elfv2_skip_entrypoint): Likewise.
11079         (ppc_linux_init_abi): Install them for ELFv2.
11080
11081 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11082
11083         * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11084         (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11085         (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11086         (ppc64_sysv_abi_return_value): Likewise.  Also, handle small
11087         structures returned in GPRs.
11088
11089 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11090
11091         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11092         offset to the stack parameter list for the ELFv2 ABI.
11093
11094 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11095
11096         * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11097         set_gdbarch_convert_from_func_ptr_addr and
11098         set_gdbarch_elf_make_msymbol_special for ELFv1.
11099         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11100         function descriptors on ELFv1.
11101         (ppc64_sysv_abi_push_dummy_call): Likewise.  On ELFv2,
11102         set up r12 at function entry.
11103
11104 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11105
11106         * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11107         (struct gdbarch_tdep): New member elf_abi.
11108
11109         * rs6000-tdep.c: Include "elf/ppc64.h".
11110         (rs6000_gdbarch_init): Detect ELF ABI version.
11111
11112 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11113
11114         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11115         within a register pair holding a DFP 128-bit value on little-endian.
11116         (ppc64_sysv_abi_return_value_base): Likewise.
11117         * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11118         (dfp_pseudo_register_write): Likewise.
11119
11120 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11121
11122         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11123         offset on little-endian when passing _Decimal32.
11124         (ppc64_sysv_abi_return_value_base): Likewise for return values.
11125
11126 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11127
11128         * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11129         of the overlapped FP register within the VSX register on little-
11130         endian platforms.
11131         (efpr_pseudo_register_write): Likewise.
11132
11133 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11134
11135         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11136         offset on little-endian when passing small structures.
11137
11138 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11139
11140         * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11141         (struct ppc64_sysv_argpos): New data structure.
11142         (ppc64_sysv_abi_push_float): Remove.
11143         (ppc64_sysv_abi_push_val): New function.
11144         (ppc64_sysv_abi_push_integer): Likewise.
11145         (ppc64_sysv_abi_push_freg): Likewise.
11146         (ppc64_sysv_abi_push_vreg): Likewise.
11147         (ppc64_sysv_abi_push_param): Likewise.
11148         (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11149         (ppc64_sysv_abi_return_value_base): New function.
11150         (ppc64_sysv_abi_return_value): Refactor to use it.
11151
11152 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11153
11154         * NEWS: Document new target powerpc64le-*-linux*.
11155
11156 2014-02-04  Mark Kettenis  <kettenis@gnu.org>
11157
11158         * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11159         (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11160         core dumps.
11161         (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11162         register set used in ELF core dumps.  Add floating-point register set.
11163
11164 2014-02-03  Kevin Buettner  <kevinb@redhat.com>
11165
11166         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11167         dwarf2_to_gdb[] table using symbolic constants.  Adjust
11168         penultimate entry from number representing the PC register
11169         to symbolic constant representing the MDR register.  Add
11170         constant for the PC register to the end of the table.
11171
11172 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
11173
11174         * bsd-kvm.c: Include <sys/param.h>
11175
11176 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
11177
11178         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11179
11180 2014-01-31  Joel Brobecker  <brobecker@adacore.com>
11181
11182         * ada-lang.h (clear_ada_sym_cache): Delete.
11183
11184 2014-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
11185
11186         * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11187
11188 2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>
11189
11190         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11191           the sigreturn register save area only if the syscall is
11192           sigreturn.
11193
11194 2014-01-29  Joel Brobecker  <brobecker@adacore.com>
11195
11196         * valops.c (value_slice): Minor reformatting.
11197
11198 2014-01-28  Ulrich Weigand  <uweigand@de.ibm.com>
11199
11200         * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11201
11202 2014-01-28  Joel Brobecker  <brobecker@adacore.com>
11203
11204         * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11205         New static globals.
11206         (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11207         (ada_ignore_descriptive_types_p): New static global.
11208         (find_parallel_type_by_descriptive_type): Return immediately
11209         if ada_ignore_descriptive_types_p is set.
11210         (_initialize_ada_language): Register new commands "maintenance
11211         set ada", "maintenance show ada", "maintenance set ada
11212         ignore-descriptive-types" and "maintenance show ada
11213         ignore-descriptive-types".
11214         * NEWS: Add entry for new "maint ada set/show
11215         ignore-descriptive-types" commands.
11216
11217 2014-01-27  Markus Metzger  <markus.t.metzger@intel.com>
11218
11219         * record-btrace.c (record_btrace_close): Call btrace_teardown
11220         for all threads.
11221
11222 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
11223
11224         * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11225         "ui-out.h".
11226
11227 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
11228
11229         * ada-typeprint (type_is_full_subrange_of_target_type):
11230         New function.
11231         (print_range): Add parameter bounds_prefered_p.  If not set,
11232         try printing range types using the name of their base type.
11233         (print_range_type): Add parameter bounds_prefered_p.
11234         Use it in call to print_range.
11235         (print_array_type, ada_print_type): Update calls to print_range
11236         and print_range_type.
11237
11238 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
11239
11240         * ada-typeprint.c (print_array_type, print_choices, print_range)
11241         (print_range_bound, print_dynamic_range_bound, print_range_type):
11242         Remove declaration.
11243
11244 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
11245
11246         * ada-typeprint.c (print_range): Add missing empty line
11247         after local declaration.
11248
11249 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
11250
11251         * ada-valprint.c (print_optional_low_bound): Get index_type's
11252         target type for as long as it is a TYPE_CODE_RANGE.
11253
11254 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
11255
11256         * procfs.c (procfs_make_note_section): Remove assertion and
11257         associated comment.
11258
11259 2014-01-24  Yao Qi  <yao@codesourcery.com>
11260
11261         * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11262         * corelow.c (get_core_siginfo): Likewise.
11263
11264 2014-01-24  Yao Qi  <yao@codesourcery.com>
11265
11266         * remote.c (remote_write_bytes_aux): Change type of 'len' to
11267         ULONGEST.  Don't check 'len' is negative.
11268         (remote_write_bytes):  Change type of 'len' to ULONGEST.
11269
11270 2014-01-23  Tom Tromey  <tromey@redhat.com>
11271
11272         PR python/16485:
11273         * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11274         Handle exception from frame.block.
11275         (FrameVars.fetch_frame_locals): Likewise.
11276
11277 2014-01-23  Tom Tromey  <tromey@redhat.com>
11278
11279         PR python/16487:
11280         * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11281         on a NULL pointer.  Move "goto error" to correct place.
11282
11283 2014-01-23  Tom Tromey  <tromey@redhat.com>
11284
11285         PR python/16491:
11286         * python/py-framefilter.c (apply_frame_filter): Call
11287         ensure_python_env after computing gdbarch.
11288
11289 2014-01-23  Yao Qi  <yao@codesourcery.com>
11290
11291         * target.c (raw_memory_xfer_partial): Change argument type
11292         from void * to gdb_byte *.
11293         (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11294
11295 2014-01-22  Doug Evans  <dje@google.com>
11296
11297         New gdbserver option --debug-format=timestamp.
11298         * NEWS: Mention it.
11299
11300 2014-01-22  Andreas Arnez  <arnez@vnet.linux.ibm.com>
11301
11302         * syscalls/s390x-linux.xml: New file.
11303         * syscalls/s390-linux.xml: New file.
11304         * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11305         (XML_SYSCALL_FILENAME_S390X): Likewise.
11306         (op_svc): New enum value for SVC opcode.
11307         (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11308         (s390_linux_get_syscall_number): New function.
11309         (s390_gdbarch_init): Register '*get_syscall_number' and the
11310         syscall xml file name.
11311         * data-directory/Makefile.in (SYSCALLS_FILES): Add
11312         "s390-linux.xml" and "s390x-linux.xml".
11313         * NEWS: Announce new feature.
11314
11315 2014-01-22  Baruch Siach  <baruch@tkos.co.il>
11316
11317         * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11318
11319 2014-01-22  Pedro Alves  <palves@redhat.com>
11320
11321         * xtensa-config.c: Include defs.h.
11322
11323 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
11324
11325         * common/common-utils.h: Add "ARI:" comment beside __func__
11326         reference.
11327
11328 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
11329
11330         * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11331         documentation a bit.
11332
11333 2014-01-21  Roland McGrath  <mcgrathr@google.com>
11334
11335         * configure.ac: Call AM_PROG_INSTALL_STRIP.
11336         * configure: Regenerate.
11337         * aclocal.m4: Regenerate.
11338         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11339         New substituted variables.
11340         (install-strip): New target.
11341         (INSTALL_SCRIPT): New substituted variable.
11342         (FLAGS_TO_PASS): Add it.
11343         (install-only): Use $(INSTALL_SCRIPT) rather than
11344         $(INSTALL_PROGRAM) for gcore.
11345
11346 2014-01-20  Tom Tromey  <tromey@redhat.com>
11347
11348         * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11349         together.
11350
11351 2014-01-20  Tom Tromey  <tromey@redhat.com>
11352
11353         * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11354         (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11355         (deprecated_cmd_warning, complete_on_cmdlist): Update.
11356         * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11357         (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11358         (struct cmd_list_element) <flags>: Remove.
11359         <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11360         doc_allocated>: New fields.
11361         <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11362         bitfields.
11363         * maint.c (maintenance_do_deprecate): Update.
11364         * top.c (execute_command): Update.
11365
11366 2014-01-20  Baruch Siach  <baruch@tkos.co.il>
11367
11368         * xtensa-linux-nat.c: Include asm/ptrace.h.
11369
11370 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
11371
11372         * Makefile.in (SFILES): Add d-support.c.
11373         (COMMON_OBS): Add d-support.o.
11374         * d-lang.h (d_parse_symbol): Add comment, now defined in
11375         d-support.c.
11376         * d-lang.c (parse_call_convention)
11377         (parse_attributes, parse_function_types)
11378         (parse_function_args, parse_type, parse_identifier)
11379         (call_convention_p, d_parse_symbol): Move functions to ...
11380         * d-support.c: ... New file.
11381
11382 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
11383
11384         * d-lang.h (d_parse_symbol): Add declaration.
11385         * d-lang.c (extract_identifiers)
11386         (extract_type_info): Remove functions.
11387         (parse_call_convention, parse_attributes)
11388         (parse_function_types, parse_function_args)
11389         (parse_type, parse_identifier, call_convention_p)
11390         (d_parse_symbol): New functions.
11391         (d_demangle): Use d_parse_symbol to demangle D symbols.
11392
11393 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
11394
11395         * d-lang.h (struct builtin_d_type): New data type.
11396         (builtin_d_type): Add declaration.
11397         * d-lang.c (d_language_arch_info, build_d_types)
11398         (builtin_d_type): New functions.
11399         (enum d_primitive_types): New data type.
11400         (d_language_defn): Change c_language_arch_info to
11401         d_language_arch_info.
11402         (d_type_data): New static variable.
11403         (_initialize_d_language): Initialize d_type_data.
11404
11405 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
11406
11407         * d-lang.h (d_main_name): Add declaration.
11408         * d-lang.c (d_main_name): New function.
11409         * symtab.c (find_main_name): Add call to d_main_name.
11410
11411 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
11412
11413         * d-lang.c (d_language_defn): Change macro_expansion_c to
11414         macro_expansion_no.
11415
11416 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
11417
11418         * MAINTAINERS: Add myself as a write-after-approval maintainer.
11419
11420 2014-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
11421
11422         * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11423         gdb_exception" declaration.
11424         * remote.c (getpkt_or_notif_sane): Likewise.
11425
11426 2014-01-17  Doug Evans  <dje@google.com>
11427
11428         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11429         function, contents of dirnames_to_char_ptr_vec_append moved here.
11430         (delim_string_to_char_ptr_vec): New function.
11431         (dirnames_to_char_ptr_vec_append): Rewrite.
11432         * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11433
11434 2014-01-17  Doug Evans  <dje@google.com>
11435
11436         * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11437         and moved here ...
11438         * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11439         #include "common-utils.h".
11440         (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11441         * common/vec.h (VEC_ASSERT_PASS): Update.
11442         * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11443         (MACH_CHECK_ERROR): Update.
11444
11445 2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>
11446
11447         * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11448         comments.
11449         * gdbarch.h: Regenerate.
11450
11451 2014-01-16  Tom Tromey  <tromey@redhat.com>
11452
11453         * value.c (struct value) <regnum>: Move earlier.
11454
11455 2014-01-16  Tom Tromey  <tromey@redhat.com>
11456
11457         * remote.c (extended_remote_create_inferior): Rename from
11458         extended_remote_create_inferior_1.  Add "ops" argument.  Remove
11459         old implementation.
11460
11461 2014-01-16  Pedro Alves  <palves@redhat.com>
11462
11463         * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11464         NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11465         the backchain.
11466
11467 2014-01-16  Doug Evans  <dje@google.com>
11468
11469         * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11470
11471 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11472
11473         * btrace.h (btrace_thread_flag): New.
11474         (struct btrace_thread_info) <flags>: New.
11475         * record-btrace.c (record_btrace_resume_thread)
11476         (record_btrace_find_thread_to_move, btrace_step_no_history)
11477         (btrace_step_stopped, record_btrace_start_replaying)
11478         (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11479         (record_btrace_find_resume_thread): New.
11480         (record_btrace_resume, record_btrace_wait): Extend.
11481         (record_btrace_can_execute_reverse): New.
11482         (record_btrace_open): Fail in non-stop mode.
11483         (record_btrace_set_replay): Split into this, ...
11484         (record_btrace_stop_replaying): ... this, ...
11485         (record_btrace_clear_histories): ... and this.
11486         (init_record_btrace_ops): Init to_can_execute_reverse.
11487         * NEWS: Announce it.
11488
11489 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11490
11491         * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11492         (forward_target_decr_pc_after_break)
11493         (target_decr_pc_after_break): New.
11494         * target.c (forward_target_decr_pc_after_break)
11495         (target_decr_pc_after_break): New.
11496         * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11497         instead of gdbarch_decr_pc_after_break.
11498         * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11499         instead of gdbarch_decr_pc_after_break.
11500         * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11501         instead of gdbarch_decr_pc_after_break.
11502         * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11503         instead of gdbarch_decr_pc_after_break.
11504         * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11505         instead of gdbarch_decr_pc_after_break.
11506         * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11507         instead of gdbarch_decr_pc_after_break.
11508
11509 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11510
11511         * btrace.c: Include regcache.h.
11512         (btrace_add_pc): New.
11513         (btrace_enable): Call btrace_add_pc.
11514         (btrace_is_empty): New.
11515         * btrace.h (btrace_is_empty): New.
11516         * record-btrace.c (require_btrace, record_btrace_info): Call
11517         btrace_is_empty.
11518
11519 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11520
11521         * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11522         Support delta reads.
11523         (linux_disable_btrace): Change return type.
11524         * common/linux-btrace.h (linux_read_btrace): Change parameters
11525         and return type to allow error reporting.  Update users.
11526         (linux_disable_btrace): Change return type.  Update users.
11527         * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11528         New.
11529         (btrace_error): New.
11530         (btrace_block) <begin>: Comment on BEGIN == 0.
11531         * btrace.c (btrace_compute_ftrace): Start from the end of
11532         the current trace.
11533         (btrace_stitch_trace, btrace_clear_history): New.
11534         (btrace_fetch): Read delta trace, return if replaying.
11535         (btrace_clear): Move clear history code to btrace_clear_history.
11536         (parse_xml_btrace): Throw an error if parsing failed.
11537         * target.h (struct target_ops) <to_read_btrace>: Change parameters
11538         and return type to allow error reporting.
11539         (target_read_btrace): Change parameters and return type to allow
11540         error reporting.
11541         * target.c (target_read_btrace): Update.
11542         * remote.c (remote_read_btrace): Support delta reads.  Pass
11543         errors on.
11544         * NEWS: Announce it.
11545
11546 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11547
11548         * record.h (record_btrace_frame_unwind)
11549         (record_btrace_tailcall_frame_unwind): New declarations.
11550         * dwarf2-frame: Include record.h
11551         (dwarf2_frame_cfa): Throw an error for btrace frames.
11552         * record-btrace.c: Include hashtab.h.
11553         (btrace_get_bfun_name): New.
11554         (btrace_call_history): Call btrace_get_bfun_name.
11555         (struct btrace_frame_cache): New.
11556         (bfcache): New.
11557         (bfcache_hash, bfcache_eq, bfcache_new): New.
11558         (btrace_get_frame_function): New.
11559         (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11560         (record_btrace_frame_this_id): Compute own id.
11561         (record_btrace_frame_prev_register): Provide PC, throw_error
11562         for all other registers.
11563         (record_btrace_frame_sniffer): Detect btrace frames.
11564         (record_btrace_tailcall_frame_sniffer): New.
11565         (record_btrace_frame_dealloc_cache): New.
11566         (record_btrace_frame_unwind): Add new functions.
11567         (record_btrace_tailcall_frame_unwind): New.
11568         (_initialize_record_btrace): Allocate cache.
11569         * btrace.c (btrace_clear): Call reinit_frame_cache.
11570         * NEWS: Announce it.
11571
11572 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11573
11574         * record-btrace.c (record_btrace_set_replay)
11575         (record_btrace_goto_begin, record_btrace_goto_end)
11576         (record_btrace_goto): New.
11577         (init_record_btrace_ops): Initialize them.
11578         * NEWS: Announce it.
11579
11580 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11581
11582         * record-btrace.c (record_btrace_find_new_threads)
11583         (record_btrace_thread_alive): New.
11584         (init_record_btrace_ops): Initialize to_find_new_threads and
11585         to_thread_alive.
11586
11587 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11588
11589         * record-btrace.c (record_btrace_resume): New.
11590         (record_btrace_wait): New.
11591         (init_record_btrace_ops): Initialize to_wait and to_resume.
11592
11593 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11594
11595         * record-btrace.c (record_btrace_xfer_partial)
11596         (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11597         (record_btrace_allow_memory_access): New.
11598         (init_record_btrace_ops): Initialize new methods.
11599         * target.c (raw_memory_xfer_partial): Bail out if target reports
11600         that this memory is not available.
11601
11602 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11603
11604         * target.h (target_ops) <to_insert_breakpoint>
11605         <to_remove_breakpoint>: Add target_ops parameter.
11606         (forward_target_insert_breakpoint): New.
11607         (forward_target_remove_breakpoint): New.
11608         (memory_remove_breakpoint, memory_insert_breakpoint):
11609         Add target_ops parameter.
11610         * target.c (target_insert_breakpoint): Split into this and ...
11611         (forward_target_insert_breakpoint): ... this.
11612         (target_remove_breakpoint): Split into this and ...
11613         (forward_target_remove_breakpoint): ... this.
11614         (debug_to_insert_breakpoint): Add target_ops parameter.
11615         Call forward_target_insert_breakpoint.
11616         (debug_to_remove_breakpoint): Add target_ops parameter.
11617         Call forward_target_remove_breakpoint.
11618         (update_current_target): Do not inherit or default to_insert_breakpoint
11619         and to_remove_breakpoint.
11620         * corelow.c (ignore): Add target_ops parameter.
11621         * exec.c (ignore): Add target_ops parameter.
11622         * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11623         Add target_ops parameter.
11624         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11625         Add target_ops parameter.
11626         * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11627         Add target_ops parameter.
11628         * record-full.c (record_full_beneath_to_insert_breakpoint)
11629         (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11630         (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11631         (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11632         (record_full_core_remove_breakpoint): Add target_ops parameter.
11633         Update users.
11634         (record_full_beneath_to_insert_breakpoint_ops)
11635         (record_full_beneath_to_remove_breakpoint_ops)
11636         (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11637         (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11638         tmp_to_remove_breakpoint_ops,
11639         record_full_beneath_to_insert_breakpoint_ops, and
11640         record_full_beneath_to_remove_breakpoint_ops.
11641         * remote-m32r-sdi.c (m32r_insert_breakpoint)
11642         (m32r_remove_breakpoint): Add target_ops parameter.
11643         * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11644         Add target_ops parameter.
11645         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11646         Add target_ops parameter.
11647
11648 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
11649             Markus Metzger  <markus.t.metzger@intel.com>
11650
11651         * record-btrace.c: Include frame-unwind.h.
11652         (record_btrace_frame_unwind_stop_reason)
11653         (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11654         (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11655         New.
11656         (init_record_btrace_ops): Install it.
11657
11658 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
11659
11660         * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11661         get_prev_frame_1.
11662
11663 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
11664
11665         * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11666         earlier.
11667
11668 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
11669
11670         * frame-unwind.c: Include target.h.
11671         (frame_unwind_try_unwinder): New function with code from ...
11672         (frame_unwind_find_by_frame): ... here.  New variable
11673         unwinder_from_target, call also target_get_unwinder)
11674         (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11675         * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11676         * target.h (struct target_ops): New fields to_get_unwinder and
11677         to_get_tailcall_unwinder.
11678         (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11679
11680 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11681
11682         * record-btrace.c (record_btrace_fetch_registers)
11683         (record_btrace_store_registers)
11684         (record_btrace_to_prepare_to_store): New.
11685         (init_record_btrace_ops): Add the above.
11686
11687 2014-01-16  Tom Tromey  <tromey@redhat.com>
11688
11689         * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11690         * target.h (struct target_ops) <to_prepare_to_store>: Add
11691         argument.
11692         (target_prepare_to_store): Add argument.
11693         * target.c (debug_to_prepare_to_store): Add argument.
11694         (update_current_target): Update.
11695         * remote.c (remote_prepare_to_store): Add 'self' argument.
11696         * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11697         * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11698         * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11699         * record-full.c (record_full_core_prepare_to_store): Add 'self'
11700         argument.
11701         * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11702         * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11703         * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11704         * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11705         * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11706
11707 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11708
11709         * btrace.h (replay) <replay>: New.
11710         (btrace_is_replaying): New.
11711         * btrace.c (btrace_clear): Free replay iterator.
11712         (btrace_is_replaying): New.
11713         * record-btrace.c (record_btrace_is_replaying): New.
11714         (record_btrace_info): Print insn number if replaying.
11715         (record_btrace_insn_history): Start at replay position.
11716         (record_btrace_call_history): Start at replay position.
11717         (init_record_btrace_ops): Init to_record_is_replaying.
11718
11719 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11720
11721         * record-btrace.c (record_btrace_insn_history_range): Include
11722         end.
11723         (record_btrace_insn_history_from): Adjust range.
11724         (record_btrace_call_history_range): Include
11725         end.
11726         (record_btrace_call_history_from): Adjust range.
11727         * NEWS: Announce changes.
11728
11729 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11730
11731         * record.h (enum record_print_flag)
11732         <record_print_indent_calls>: New.
11733         * record.c (get_call_history_modifiers): Recognize /c modifier.
11734         (_initialize_record): Document /c modifier.
11735         * record-btrace.c (btrace_call_history): Add btinfo parameter.
11736         Reorder fields.  Optionally indent the function name.  Update
11737         all users.
11738         * NEWS: Announce changes.
11739
11740 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11741
11742         * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11743
11744 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11745
11746         * btrace.c (ftrace_new_function): Start counting at one.
11747         * record-btrace.c (record_btrace_info): Adjust number of calls
11748         and insns.
11749         * NEWS: Announce it.
11750
11751 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11752
11753         * record-btrace.c (btrace_call_history_insn_range): Print
11754         insn range as [begin, end].
11755
11756 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11757
11758         * btrace.h (struct btrace_func_link): New.
11759         (enum btrace_function_flag): New.
11760         (struct btrace_inst): Rename to ...
11761         (struct btrace_insn): ...this. Update all users.
11762         (struct btrace_func) <ibegin, iend>: Remove.
11763         (struct btrace_func_link): New.
11764         (struct btrace_func): Rename to ...
11765         (struct btrace_function): ...this. Update all users.
11766         (struct btrace_function) <segment, flow, up, insn, insn_offset)
11767         (number, level, flags>: New.
11768         (struct btrace_insn_iterator): Rename to ...
11769         (struct btrace_insn_history): ...this.
11770         Update all users.
11771         (struct btrace_insn_iterator, btrace_call_iterator): New.
11772         (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11773         (struct btrace_target_info) <begin, end, level>
11774         <insn_history, call_history>: New.
11775         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11776         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11777         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11778         (btrace_call_number, btrace_call_begin, btrace_call_end)
11779         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11780         (btrace_find_function_by_number, btrace_set_insn_history)
11781         (btrace_set_call_history): New.
11782         * btrace.c (btrace_init_insn_iterator)
11783         (btrace_init_func_iterator, compute_itrace): Remove.
11784         (ftrace_print_function_name, ftrace_print_filename)
11785         (ftrace_skip_file): Change
11786         parameter to const.
11787         (ftrace_init_func): Remove.
11788         (ftrace_debug): Use new btrace_function fields.
11789         (ftrace_function_switched): Also consider gaining and
11790         losing symbol information).
11791         (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11792         (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11793         (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11794         New.
11795         (ftrace_new_function): Move. Remove debug print.
11796         (ftrace_update_lines, ftrace_update_insns): New.
11797         (ftrace_update_function): Check for call, ret, and jump.
11798         (compute_ftrace): Renamed to ...
11799         (btrace_compute_ftrace): ...this. Rewritten to compute call
11800         stack.
11801         (btrace_fetch, btrace_clear): Updated.
11802         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11803         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11804         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11805         (btrace_call_number, btrace_call_begin, btrace_call_end)
11806         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11807         (btrace_find_function_by_number, btrace_set_insn_history)
11808         (btrace_set_call_history): New.
11809         * record-btrace.c (require_btrace): Use new btrace thread
11810         info fields.
11811         (record_btrace_info, btrace_insn_history)
11812         (record_btrace_insn_history, record_btrace_insn_history_range):
11813         Use new btrace thread info fields and new iterator.
11814         (btrace_func_history_src_line): Rename to ...
11815         (btrace_call_history_src_line): ...this. Use new btrace
11816         thread info fields.
11817         (btrace_func_history): Rename to ...
11818         (btrace_call_history): ...this. Use new btrace thread info
11819         fields and new iterator.
11820         (record_btrace_call_history, record_btrace_call_history_range):
11821         Use new btrace thread info fields and new iterator.
11822
11823 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11824
11825         * frame.h (frame_id_build_unavailable_stack_special): New.
11826         * frame.c (frame_id_build_unavailable_stack_special): New.
11827
11828 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11829
11830         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11831         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11832         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11833         to gdbarch.
11834         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11835         (i386_insn_is_jump, i386_jmp_p): New.
11836         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11837         insn_is_jump to gdbarch.
11838         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11839         * gdbarch.h: Regenerated.
11840         * gdbarch.c: Regenerated.
11841         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11842         (default_insn_is_jump): New.
11843         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11844         (default_insn_is_jump): New.
11845
11846 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11847
11848         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11849         Change to ...
11850         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
11851         (btrace_read_type) <btrace_read_new>: Change to ...
11852         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
11853
11854 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11855
11856         * common/linux-btrace.c (linux_read_btrace): Free trace from
11857         previous iteration.
11858
11859 2014-01-15  Doug Evans  <dje@google.com>
11860
11861         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11862         uint32_t.
11863
11864 2014-01-15  Tom Tromey  <tromey@redhat.com>
11865
11866         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11867         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11868         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11869         (set_objfile_main_name): New function.
11870         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11871         language_of_main>: New fields.
11872         (set_objfile_main_name): Declare.
11873         * symtab.c (find_main_name): Loop over objfiles to find the main
11874         name and language.
11875         (set_main_name): Now static.
11876         (get_main_info): Add comment.
11877         * symtab.h (set_main_name): Don't declare.
11878
11879 2014-01-15  Tom Tromey  <tromey@redhat.com>
11880
11881         * symtab.c (main_progspace_key): New global.
11882         (struct main_info): New.
11883         (name_of_main, language_of_main): Remove.
11884         (get_main_info, main_info_cleanup): New function.
11885         (set_main_name, main_name, main_language): Use get_main_info.
11886         (_initialize_symtab): Initialize main_progspace_key.
11887
11888 2014-01-15  Tom Tromey  <tromey@redhat.com>
11889
11890         * dbxread.c (process_one_symbol): Update.
11891         * dwarf2read.c (read_partial_die): Update.
11892         * symfile.c (set_initial_language): Call main_language.
11893         * symtab.c (language_of_main): Now static.
11894         (set_main_name): Add 'lang' parameter.
11895         (find_main_name): Update.
11896         (main_language): New function.
11897         (symtab_observer_executable_changed): Update.
11898         * symtab.h (set_main_name): Update.
11899         (language_of_main): Remove.
11900         (main_language): Declare.
11901
11902 2014-01-15  Tom Tromey  <tromey@redhat.com>
11903
11904         * symfile.c (init_entry_point_info): Use new "initialized" field.
11905         Update.
11906         * objfiles.h (struct entry_point) <initialized>: New field.
11907         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11908         (struct objfile) <ei>: ...here.  Remove.
11909         * objfiles.c (entry_point_address_query): Update.
11910
11911 2014-01-15  Tom Tromey  <tromey@redhat.com>
11912
11913         * objfiles.c (entry_point_address_query): Relocate entry point
11914         address.
11915         (objfile_relocate1): Do not relocate entry point address.
11916         * objfiles.h (struct entry_info) <entry_point>: Update comment.
11917         <the_bfd_section_index>: New field.
11918         * symfile.c (init_entry_point_info): Find the entry point's
11919         section.
11920
11921 2014-01-15  Tom Tromey  <tromey@redhat.com>
11922
11923         * solib-frv.c (enable_break): Use entry_point_address_query.
11924
11925 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
11926
11927         * NEWS: Add note on improved process record-replay on
11928         arm*-linux* targets.
11929
11930 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
11931
11932         * arm-tdep.c (enum arm_record_result): New enum.
11933         (arm_record_unsupported_insn): New function.
11934         (arm_record_coproc_data_proc): Removed.
11935         (thumb2_record_ld_st_multiple): New function.
11936         (thumb2_record_ld_st_dual_ex_tbb): New function.
11937         (thumb2_record_data_proc_sreg_mimm): New function.
11938         (thumb2_record_ps_dest_generic): New function.
11939         (thumb2_record_branch_misc_cntrl): New function.
11940         (thumb2_record_str_single_data): New function.
11941         (thumb2_record_ld_mem_hints): New function.
11942         (thumb2_record_ld_word): New function.
11943         (thumb2_record_lmul_lmla_div): New function.
11944         (thumb2_record_decode_insn_handler): New function.
11945         (decode_insn): Add thumb32 instruction handlers.
11946
11947 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
11948
11949         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11950         (struct arm_linux_record_tdep): Declare.
11951         (arm_canonicalize_syscall): New function.
11952         (arm_all_but_pc_registers_record): New function.
11953         (arm_linux_syscall_record): New function.
11954         (arm_linux_init_abi): Add syscall recording constructs.
11955         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11956         decoding.  (arm_record_coproc_data_proc): Update arm syscall
11957         decoding.
11958         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11959         <arm_syscall_record>: New field.
11960         * configure.tgt (arm*-*-linux*): Add linux-record.o to
11961         gdb_target_obs.
11962
11963 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
11964
11965         * arm-tdep.c (thumb_record_misc): Update to use sp as base
11966         register for push instruction recording.
11967
11968 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
11969
11970         * arm-tdep.c (thumb_record_misc): Update to correct logical
11971         error while recording ldm, ldmia and pop instructions.
11972
11973 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
11974
11975         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11976
11977 2014-01-15  Pedro Alves  <palves@redhat.com>
11978
11979         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11980         (go32_resume, go32_fetch_registers, store_register)
11981         (go32_store_registers, go32_prepare_to_store)
11982         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11983         (go32_create_inferior, go32_can_run, go32_terminal_init)
11984         (go32_terminal_inferior, go32_terminal_ours): Delete forward
11985         declarations.
11986
11987 2014-01-15  Tom Tromey  <tromey@redhat.com>
11988
11989         * target.h (async_callback_ftype): New typedef.
11990         (struct target_ops) <to_async>: Use it.
11991
11992 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
11993
11994         * python/py-value.c (get_field_type): Remove unnecessary curly
11995         braces for single-statement if block.
11996
11997 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
11998
11999         * python/py-type.c (convert_field): Add missing empty line
12000         after declarations.
12001
12002 2014-01-14  Doug Evans  <dje@google.com>
12003
12004         * symfile.h (expand_symtabs_matching): Renamed from
12005         expand_partial_symbol_names.  Update prototype.
12006         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12007         * symfile.c (expand_symtabs_matching): Renamed from
12008         expand_partial_symbol_names.  New args file_matcher, kind.
12009         Rename arg fun to symbol_matcher.
12010         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12011         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12012         ada_expand_partial_symbol_name.
12013         (ada_make_symbol_completion_list): Update to call
12014         expand_symtabs_matching.
12015         (ada_add_global_exceptions): Call expand_symtabs_matching.
12016         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12017         call map_symbol_filenames.
12018         * symtab.c (sources_info): Update to call map_symbol_filenames.
12019         (search_symbols): Call expand_symtabs_matching.
12020         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12021         (default_make_symbol_completion_list_break_on): Update to call
12022         expand_symtabs_matching.
12023         (make_source_files_completion_list): Update to call
12024         map_symbol_filenames.
12025
12026 2014-01-14  Doug Evans  <dje@google.com>
12027
12028         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12029         (expand_symtabs_symbol_matcher_ftype): New typedef.
12030         (quick_symbol_functions.expand_symtabs_matching): Update to use.
12031         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12032         * symfile.c (expand_partial_symbol_names): Update to use
12033         expand_symtabs_symbol_matcher_ftype.
12034         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12035         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12036         Arg name_matcher renamed to symbol_matcher.
12037         * psymtab.c (recursively_search_psymtabs): Update to use
12038         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
12039         sym_matcher.
12040         (expand_symtabs_matching_via_partial): Update to use
12041         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12042         Arg name_matcher renamed to symbol_matcher.
12043
12044 2014-01-14  Doug Evans  <dje@google.com>
12045
12046         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12047         (map_partial_symbol_filenames): Ditto.
12048         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12049         (map_partial_symbol_filenames): Ditto.
12050         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12051         (map_partial_symbol_filenames): Ditto.
12052         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12053         (map_partial_symbol_filenames): Ditto.
12054         * symtab.c: Delete #include "psymtab.h".
12055
12056 2014-01-14  Pedro Alves  <palves@redhat.com>
12057             Tom Tromey  <tromey@redhat.com>
12058
12059         * infrun.c (use_displaced_stepping): Use find_record_target
12060         instead of RECORD_IS_USED.
12061         (adjust_pc_after_break): Use record_full_is_used instead of
12062         RECORD_IS_USED.
12063         * record-btrace.c (record_btrace_open): Call record_preopen
12064         instead of checking RECORD_IS_USED.
12065         * record-full.c (record_full_shortname)
12066         (record_full_core_shortname): New globals.
12067         (record_full_is_used): New function.
12068         (find_full_open): Call record_preopen instead of checking
12069         RECORD_IS_USED.
12070         (init_record_full_ops): Set the target's shortname to
12071         record_full_shortname.
12072         (init_record_full_core_ops): Set the target's shortname to
12073         record_full_core_shortname.
12074         * record-full.h (record_full_is_used): Declare.
12075         * record.c (find_record_target): Make extern.
12076         (record_preopen): New function.
12077         * record.h (RECORD_IS_USED): Delete macro.
12078         (find_record_target, record_preopen): Declare functions.
12079
12080 2014-01-14  Yao Qi  <yao@codesourcery.com>
12081
12082         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12083         'len''s type to ULONGEST.
12084         (core_xfer_shared_libraries_aix): Likewise.
12085         * gdbarch.c, gdbarch.h: Regenerated.
12086         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12087         Change type of 'len' to ULONGEST.
12088         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12089         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12090
12091 2014-01-14  Yao Qi  <yao@codesourcery.com>
12092
12093         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12094         type of 'len' to ULONGEST.
12095         (linux_xfer_osdata_processgroups): Likewise.
12096         (linux_xfer_osdata_threads): Likewise.
12097         (linux_xfer_osdata_fds): Likewise.
12098         (linux_xfer_osdata_isockets): Likewise.
12099         (linux_xfer_osdata_shm): Likewise.
12100         (linux_xfer_osdata_sem): Likewise.
12101         (linux_xfer_osdata_msg): Likewise.
12102         (linux_common_xfer_osdata): Likewise.
12103         (struct osdata_type) <getter>: Likewise.
12104         * common/linux-osdata.h (linux_common_xfer_osdata): Update
12105         the declaration.
12106
12107 2014-01-14  Yao Qi  <yao@codesourcery.com>
12108
12109         * target.h (target_xfer_partial_ftype): Update.
12110         (struct target_ops) <to_xfer_partial>: Change 'len' type to
12111         ULONGEST.
12112         * aix-thread.c (aix_thread_xfer_partial): Change type of
12113         argument 'len' to ULONGEST.
12114         * auxv.c (procfs_xfer_auxv): Likewise.
12115         (ld_so_xfer_auxv): Likewise.
12116         (memory_xfer_auxv): Likewise.
12117         * bfd-target.c (target_bfd_xfer_partial): Likewise.
12118         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12119         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12120         * corelow.c (core_xfer_partial): Likewise.
12121         * ctf.c (ctf_xfer_partial): Likewise.
12122         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
12123         '%u'.
12124         (darwin_read_dyld_info): Likewise.
12125         (darwin_xfer_partial): Likewise.
12126         * exec.c (section_table_xfer_memory_partial): Likewise.
12127         (exec_xfer_partial): Likewise.
12128         * exec.h (section_table_xfer_memory_partial): Update
12129         declaration.
12130         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
12131         instead of plongest.
12132         (gnu_xfer_partial): Likewise.
12133         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12134         (ia64_hpux_xfer_solib_got): Likewise.
12135         (ia64_hpux_xfer_partial): Likewise.
12136         * ia64-linux-nat.c (ia64_linux_xfer_partial):
12137         * inf-ptrace.c (inf_ptrace_xfer_partial):
12138         * inf-ttrace.c (inf_ttrace_xfer_partial):
12139         * linux-nat.c (linux_xfer_siginfo): Likewise.
12140         (linux_nat_xfer_partial): Likewise.
12141         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12142         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12143         * monitor.c (monitor_xfer_memory): Likewise.
12144         (monitor_xfer_partial): Likewise.
12145         * procfs.c (procfs_xfer_partial): Likewise.
12146         * record-full.c (record_full_xfer_partial): Likewise.
12147         (record_full_core_xfer_partial): Likewise.
12148         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
12149         instead of plongest.
12150         (gdbsim_xfer_partial): Likewise.
12151         * remote.c (remote_xfer_partial): Likewise.
12152         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12153         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12154         declaration.
12155         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12156         (rs6000_xfer_shared_libraries): Likewise.
12157         * sol-thread.c (sol_thread_xfer_partial): Likewise.
12158         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12159         (sparc_xfer_partial): Likewise.
12160         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12161         (spu_xfer_partial): Likewise.
12162         * spu-multiarch.c (spu_xfer_partial): Likewise.
12163         * target.c (target_read_live_memory): Likewise.
12164         (memory_xfer_live_readonly_partial): Likewise.
12165         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12166         (target_xfer_partial, default_xfer_partial): Likewise.
12167         (current_xfer_partial): Likewise.
12168         * tracepoint.c (tfile_xfer_partial): Likewise.
12169         * windows-nat.c (windows_xfer_memory): Likewise.  Call
12170         pulongest instead of plongest.
12171         (windows_xfer_partial): Likewise.
12172         (windows_xfer_shared_libraries): Likewise.
12173
12174 2014-01-14  Yao Qi  <yao@codesourcery.com>
12175
12176         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12177         target_xfer_partial_ftype.
12178
12179 2014-01-13  Siva Chandra Reddy  <sivachandra@google.com>
12180
12181         PR python/15464
12182         PR python/16113
12183         * valops.c (value_struct_elt_bitpos): New function
12184         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12185         object to 'None' if the field name is an empty string ("").
12186         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12187         attribute to look for a field when 'name' is 'None'.
12188         (get_field_type): New function
12189
12190 2014-01-13  Doug Evans  <dje@google.com>
12191
12192         PR symtab/16426
12193         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12194         (try_open_dwop_file): Ditto.
12195         * gdb_bfd.c: #include "vec.h".
12196         (bfdp): New typedef.
12197         (struct gdb_bfd_data): New member included_bfds.
12198         (gdb_bfd_unref): Unref all included bfds.
12199         (gdb_bfd_record_inclusion): New function.
12200         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12201
12202 2014-01-13  Tom Tromey  <tromey@redhat.com>
12203
12204         * gdbcore.h (deprecated_core_resize_section_table): Remove.
12205
12206 2014-01-13  Tom Tromey  <tromey@redhat.com>
12207
12208         * defs.h (use_windows): Remove.
12209         * gdb.c (main): Update.
12210         * main.c (captured_main, gdb_main): Update.
12211         * main.h (struct captured_main_args) <use_windows>: Remove.
12212         * top.c (use_windows): Remove.
12213
12214 2014-01-13  Tom Tromey  <tromey@redhat.com>
12215
12216         * defs.h (deprecated_flush_hook): Remove.
12217
12218 2014-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
12219
12220         PR threads/16216
12221         * linux-thread-db.c (try_thread_db_load): Add parameter
12222         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
12223         (try_thread_db_load_from_pdir_1): Move it there from here.
12224         (try_thread_db_load_from_sdir): Update caller.
12225         (try_thread_db_load_from_dir): Move it there from here.
12226
12227 2014-01-13  Patrick Palka  <patrick@parcs.ath.cx>
12228
12229         * regformats/regdat.sh: Always rewrite the register file.
12230
12231 2014-01-13  Pedro Alves  <palves@redhat.com>
12232
12233         * Makefile.in (CHECK_HEADERS): New variable.
12234         (check-headers:): New rule.
12235
12236 2014-01-13  Tom Tromey  <tromey@redhat.com>
12237
12238         * cli/cli-setshow.c (do_set_command): Update.
12239         * defs.h (deprecated_set_hook): Remove.
12240         * top.c (deprecated_set_hook): Remove.
12241
12242 2014-01-13  Pedro Alves  <palves@redhat.com>
12243
12244         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12245         the tracepoint if the PC is a pseudo-register.
12246
12247 2014-01-13  Tom Tromey  <tromey@redhat.com>
12248
12249         * defs.h (XCALLOC): Remove.
12250         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12251         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12252         * dwarf2loc.c (allocate_piece_closure): Likewise.
12253         * elfread.c (elf_symfile_segments): Likewise.
12254         (elf_symfile_segments): Likewise.
12255         * gdbtypes.c (copy_type_recursive): Likewise.
12256         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12257         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12258         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12259         XCALLOC.
12260         * mt-tdep.c (mt_gdbarch_init): Likewise.
12261         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12262         XCALLOC.
12263         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12264         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12265         * registry.c (registry_alloc_data): Likewise.
12266         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12267         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12268         * serial.c (serial_fdopen_ops): Likewise.
12269         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12270         XCALLOC.
12271         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12272         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12273         not XCALLOC.
12274
12275 2014-01-13  Tom Tromey  <tromey@redhat.com>
12276
12277         * defs.h (XMALLOC): Remove.
12278         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12279         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12280         * cli-out.c (struct ui_out *): Likewise.
12281         * cli/cli-dump.c (add_dump_command): Likewise.
12282         (add_dump_command): Likewise.
12283         * complaints.c (get_complaints): Likewise.
12284         (find_complaint): Likewise.
12285         * dwarf2-frame.c (execute_cfa_program): Likewise.
12286         * dwarf2read.c (abbrev_table_read_table): Likewise.
12287         * gdbarch.sh: Likewise.
12288         * gdbarch.c: Rebuild.
12289         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12290         * interps.c (interp_new): Likewise.
12291         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12292         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12293         * mi/mi-console.c (mi_console_file_new): Likewise.
12294         * mi/mi-interp.c (mi_interpreter_init): Likewise.
12295         * mi/mi-out.c (mi_out_new): Likewise.
12296         * mi/mi-parse.c (mi_parse): Likewise.
12297         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12298         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12299         * observer.c (xalloc_observer_list_node): Likewise.
12300         * regcache.c (regcache_xmalloc_1): Likewise.
12301         * reggroups.c (reggroup_new): Likewise.
12302         (_initialize_reggroup): Likewise.
12303         * registry.c (register_data_with_cleanup): Likewise.
12304         * remote.c (remote_notif_stop_alloc_reply): Likewise.
12305         * ser-base.c (serial_ttystate): Likewise.
12306         * ser-mingw.c (make_pipe_state): Likewise.
12307         * ser-pipe.c (pipe_open): Likewise.
12308         * serial.c (serial_open): Likewise.
12309         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12310         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12311         (tui_alloc_win_info): Likewise.
12312         (tui_add_content_elements): Likewise.
12313         * tui/tui-file.c (tui_file_new): Likewise.
12314         * tui/tui-out.c (tui_out_new): Likewise.
12315         * ui-file.c (mem_file_new): Likewise.
12316         * ui-out.c (push_level): Likewise.
12317         (make_cleanup_ui_out_end): Likewise.
12318         (append_header_to_list): Likewise.
12319         (ui_out_new): Likewise.
12320         * user-regs.c (user_reg_add_builtin): Likewise.
12321
12322 2014-01-13  Tom Tromey  <tromey@redhat.com>
12323
12324         * defs.h (XZALLOC): Remove.
12325         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12326         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12327         (get_ada_tasks_inferior_data): Likewise.
12328         * auto-load.c (get_auto_load_pspace_data): Likewise.
12329         * auxv.c (get_auxv_inferior_data): Likewise.
12330         * bfd-target.c (target_bfd_reopen): Likewise.
12331         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12332         (deprecated_insert_raw_breakpoint): Likewise.
12333         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12334         * corelow.c (core_open): Likewise.
12335         * darwin-nat.c (darwin_check_new_threads): Likewise.
12336         (darwin_attach_pid): Likewise.
12337         * dummy-frame.c (dummy_frame_push): Likewise.
12338         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12339         * dwarf2loc.c (allocate_piece_closure): Likewise.
12340         * elfread.c (elf_symfile_segments): Likewise.
12341         * eval.c (ptrmath_type_p): Likewise.
12342         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12343         * gdbtypes.c (alloc_type_arch): Likewise.
12344         (alloc_type_instance): Likewise.
12345         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12346         * inf-child.c (inf_child_can_use_agent): Likewise.
12347         * inflow.c (get_inflow_inferior_data): Likewise.
12348         * infrun.c (save_infcall_suspend_state): Likewise.
12349         * jit.c (jit_reader_load): Likewise.
12350         (get_jit_objfile_data): Likewise.
12351         (get_jit_program_space_data): Likewise.
12352         (jit_object_open_impl): Likewise.
12353         (jit_symtab_open_impl): Likewise.
12354         (jit_block_open_impl): Likewise.
12355         (jit_frame_sniffer): Likewise.
12356         * linux-fork.c (add_fork): Likewise.
12357         * maint.c (make_command_stats_cleanup): Likewise.
12358         * objfiles.c (get_objfile_pspace_data): Likewise.
12359         * opencl-lang.c (struct lval_closure): Likewise.
12360         * osdata.c (osdata_start_osdata): Likewise.
12361         * progspace.c (new_address_space): Likewise.
12362         (add_program_space): Likewise.
12363         * remote-sim.c (get_sim_inferior_data): Likewise.
12364         * sh-tdep.c (sh_gdbarch_init): Likewise.
12365         * skip.c (Ignore): Likewise.
12366         (skip_delete_command): Likewise.
12367         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12368         (library_list_start_library): Likewise.
12369         (solib_aix_current_sos): Likewise.
12370         * solib-darwin.c (get_darwin_info): Likewise.
12371         (darwin_current_sos): Likewise.
12372         * solib-dsbt.c (get_dsbt_info): Likewise.
12373         * solib-ia64-hpux.c (new_so_list): Likewise.
12374         (ia64_hpux_get_solib_linkage_addr): Likewise.
12375         * solib-spu.c (append_ocl_sos): Likewise.
12376         (spu_current_sos): Likewise.
12377         * solib-svr4.c (get_svr4_info): Likewise.
12378         (svr4_keep_data_in_core): Likewise.
12379         (library_list_start_library): Likewise.
12380         (svr4_default_sos): Likewise.
12381         (svr4_read_so_list): Likewise.
12382         * solib-target.c (library_list_start_library): Likewise.
12383         (solib_target_current_sos): Likewise.
12384         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12385         * symfile-debug.c (install_symfile_debug_logging): Likewise.
12386         * symfile.c (default_symfile_segments): Likewise.
12387         * target-descriptions.c (tdesc_data_init): Likewise.
12388         (tdesc_create_reg): Likewise.
12389         (struct tdesc_type *): Likewise.
12390         (tdesc_create_vector): Likewise.
12391         (tdesc_set_struct_size): Likewise.
12392         (struct tdesc_type *): Likewise.
12393         (tdesc_free_feature): Likewise.
12394         (tdesc_create_feature): Likewise.
12395         * windows-nat.c (windows_add_thread): Likewise.
12396         (windows_make_so): Likewise.
12397         * xml-support.c (gdb_xml_body_text): Likewise.
12398         (gdb_xml_create_parser_and_cleanup): Likewise.
12399         (xml_process_xincludes): Likewise.
12400         * xml-syscall.c (allocate_syscalls_info): Likewise.
12401         (syscall_create_syscall_desc): Likewise.
12402
12403 2014-01-12  Sergio Durigan Junior  <sergiodj@redhat.com>
12404
12405         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12406         function, with code from i386_stap_parse_special_token.
12407         (i386_stap_parse_special_token_three_arg_disp): Likewise.
12408         (i386_stap_parse_special_token): Move code to the two functions
12409         above; simplify it.
12410
12411 2014-01-09  Pedro Alves  <palves@redhat.com>
12412             Hui Zhu  <hui@codesourcery.com>
12413
12414         PR gdb/16101
12415         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12416         bp_err_string.  Don't mark the location shlib_disabled if the
12417         error thrown wasn't a generic or memory error.  Catch errors
12418         thrown while inserting breakpoints in overlayed code.  Output
12419         error message of software breakpoints.
12420         * remote.c (remote_insert_breakpoint): If this breakpoint has
12421         target-side commands but this stub doesn't support Z0 packets,
12422         throw NOT_SUPPORTED_ERROR error.
12423         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12424         * target.h (target_insert_breakpoint): Extend comment.
12425         (target_insert_hw_breakpoint): Add comment.
12426
12427 2014-01-08  Pedro Alves  <palves@redhat.com>
12428
12429         * remote.c (remote_add_thread): Add threads silently if starting
12430         up.
12431         (remote_notice_new_inferior): If in all-stop, and starting up,
12432         don't call notice_new_inferior.
12433         (get_current_thread): New function, factored out from ...
12434         (add_current_inferior_and_thread): ... this.  Adjust.
12435         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
12436         found any thread, then select the remote's current thread as GDB's
12437         current thread too.
12438
12439 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
12440
12441         * NEWS: Create a new section for the next release branch.
12442         Rename the section of the current branch, now that it has
12443         been cut.
12444
12445 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
12446
12447         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12448         * version.in: Bump version to 7.7.50.DATE-cvs.
12449
12450 2014-01-08  Yao Qi  <yao@codesourcery.com>
12451
12452         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12453         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
12454         (spu_xfer_partial): Cast 'buf' to 'const char *'.
12455
12456 2014-01-08  Yao Qi  <yao@codesourcery.com>
12457
12458         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12459         return value of bfd_get_filename to symbol_file_add_from_bfd.
12460
12461 2014-01-08  Pierre Muller  <muller@sourceware.org>
12462
12463         Fix PR16201.
12464         * coff-pe-read.c (struct read_pe_section_data): Add index field.
12465         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12466         to prim_record_mininal_symbol_and_info.
12467         (add_pe_forwarded_sym): Use known section number of forwarded symbol
12468         in call to prim_record_minimal_symbol_and_info.
12469         (read_pe_exported_syms): Set index field of section_data.
12470
12471 2014-01-07  Andrew Pinski  <apinski@cavium.com>
12472
12473         * features/aarch64-core.xml (cpsr): Change to be 64bit.
12474         * features/aarch64.c: Regenerate.
12475
12476 2014-01-07  Andreas Schwab  <schwab@linux-m68k.org>
12477
12478         * target.c (return_null): Define.
12479         (update_current_target): Use it instead of return_zero for
12480         functions that return a pointer.
12481
12482 2014-01-07  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
12483
12484         * source.c (add_path): Fix check for duplicated paths in the previously
12485         included paths.
12486
12487 2014-01-07  Honggyu Kim  <hong.gyu.kim@lge.com>
12488
12489         * ada-lang.c: Remove duplicated include statements.
12490         * alphabsd-nat.c: Ditto.
12491         * amd64-darwin-tdep.c: Ditto.
12492         * amd64fbsd-nat.c: Ditto.
12493         * auto-load.c: Ditto.
12494         * ax-gdb.c: Ditto.
12495         * breakpoint.c: Ditto.
12496         * dbxread.c: Ditto.
12497         * fork-child.c: Ditto.
12498         * gdb_usleep.c: Ditto.
12499         * i386-darwin-tdep.c: Ditto.
12500         * i386fbsd-nat.c: Ditto.
12501         * infcmd.c: Ditto.
12502         * inferior.c: Ditto.
12503         * jv-lang.c: Ditto.
12504         * linux-nat.c: Ditto.
12505         * linux-tdep.c: Ditto.
12506         * m68kbsd-nat.c: Ditto.
12507         * m68klinux-nat.c: Ditto.
12508         * microblaze-tdep.c: Ditto.
12509         * mips-linux-tdep.c: Ditto.
12510         * mn10300-tdep.c: Ditto.
12511         * nto-tdep.c: Ditto.
12512         * opencl-lang.c: Ditto.
12513         * osdata.c: Ditto.
12514         * printcmd.c: Ditto.
12515         * regcache.c: Ditto.
12516         * remote-m32r-sdi.c: Ditto.
12517         * remote.c: Ditto.
12518         * symfile.c: Ditto.
12519         * symtab.c: Ditto.
12520         * tilegx-linux-nat.c: Ditto.
12521         * tilegx-tdep.c: Ditto.
12522         * tracepoint.c: Ditto.
12523         * valops.c: Ditto.
12524         * vaxbsd-nat.c: Ditto.
12525         * windows-nat.c: Ditto.
12526         * xtensa-tdep.c: Ditto.
12527
12528 2014-01-07  Yao Qi  <yao@codesourcery.com>
12529
12530         * spu-linux-nat.c (_initialize_spu_nat): Declare.
12531
12532 2014-01-07  Yao Qi  <yao@codesourcery.com>
12533             Joel Brobecker  <brobecker@adacore.com>
12534
12535         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12536         (pdc_write_regs): Likewise.
12537         (fetch_regs_kernel_thread): Likewise.
12538         (store_regs_kernel_thread): Likewise.
12539
12540 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12541
12542         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12543         tagged type objects to their actual type.
12544
12545 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12546
12547         * ada-valprint.c (print_field_values): Add "language" parameter.
12548         Update calls to print_field_values and print_variant_part.
12549         Pass new parameter "language" in call to val_print instead
12550         of "current_language".  Replace call to ada_val_print by call
12551         to val_print.
12552         (print_variant_part): Add "language" parameter.
12553         (ada_val_print_struct_union): Update call to print_field_values.
12554
12555 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12556
12557         * ada-valprint.c (ui_memcpy): Delete.
12558         (ada_print_floating): Update documentation.  Add empty line
12559         between between function documentation and implementation.
12560         Delete variable "buffer".  Use ui_file_xstrdup in place of
12561         ui_file_put.  Minor adjustments following this change.
12562
12563 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12564
12565         * ada-valprint.c (ada_val_print_string): New function,
12566         extracted from ada_val_print_array.
12567         (ada_val_print_array): Replace extracted code by call
12568         to ada_val_print_string followed by a return.  Move
12569         "else" branch to the function's top block.
12570
12571 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12572
12573         * ada-valprint.c (ada_val_print_array): Move implementation
12574         down.  Rename parameter "offset" and "val" into "offset_aligned"
12575         and "original_value" respectively.  Add parameter "offset".
12576
12577 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12578
12579         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12580         re-organizing the code. Change the "???" message printed
12581         when target type is a TYPE_CODE_UNDEF into
12582         "<ref to undefined type>".
12583
12584 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12585
12586         * ada-valprint.c (print_record): Delete, implementation inlined...
12587         (ada_val_print_struct_union): ... here.  Remove call to
12588         ada_check_typedef in inlined implementation.
12589
12590 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12591
12592         * ada-valprint.c (ada_val_print_gnat_array): New function,
12593         extracted from ada_val_print_1;
12594         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12595         (ada_val_print_flt, ada_val_print_struct_union)
12596         (ada_val_print_ref): Likewise.
12597         (ada_val_print_1): Delete variables i and elttype.
12598         Replace extracted-out code by call to corresponding
12599         new functions.
12600
12601 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12602
12603         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12604
12605 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12606
12607         * ada-valprint.c (ada_val_print_1): Replace calls to
12608         ada_val_print_1 by calls to val_print.
12609
12610 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12611
12612         * ada-valprint.c (ada_val_print_1): Add parameter "language".
12613         Update calls to self accordingly.  Replace calls to c_val_print
12614         by calls to val_print.
12615
12616 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12617
12618         * ada-valprint.c (print_record): Delete declaration.
12619         (adjust_type_signedness, ada_val_print_1): Likewise.
12620         (ada_val_print): Move function implementation down.
12621         (print_variant_part, print_field_values, print_record):
12622         Move function implementation up.
12623
12624 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12625
12626         * python/py-type.c (typy_get_name): New function.
12627         (type_object_getset): Add entry for attribute "name".
12628         * NEWS: Add entry mentioning this new attribute.
12629
12630 2014-01-07  Yao Qi  <yao@codesourcery.com>
12631
12632         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12633         statement.
12634
12635 2014-01-07  Yao Qi  <yao@codesourcery.com>
12636
12637         * gnu-nat.c (info_port_rights): Add qualifier const to
12638         argument args.
12639
12640 2014-01-07  Yao Qi  <yao@codesourcery.com>
12641
12642         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12643
12644 2014-01-07  Yao Qi  <yao@codesourcery.com>
12645
12646         * gnu-nat.c (make_inf) Update declaration.
12647         (make_inf): Make it static.
12648         (inf_set_traced): Likewise.
12649         (inf_port_to_thread, inf_task_died_status): Likewise.
12650
12651 2014-01-07  Yao Qi  <yao@codesourcery.com>
12652
12653         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12654
12655 2014-01-07  Yao Qi  <yao@codesourcery.com>
12656
12657         * gnu-nat.c (_initialize_gnu_nat): Declare.
12658
12659 2014-01-07  Yao Qi  <yao@codesourcery.com>
12660
12661         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12662         'enum bfd_endian'.
12663         (struct gdbarch_info) <byte_order>: Change type to
12664         'enum bfd_endian'.
12665         <byte_order_for_code>: Likewise.
12666         * gdbarch.c, gdbarch.h: Regenerated.
12667
12668 2014-01-06  Sasha Smundak  <asmundak@google.com>
12669
12670         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12671
12672 2014-01-06  Tom Tromey  <tromey@redhat.com>
12673
12674         * doublest.c (convert_doublest_to_floatformat): Use const, not
12675         CONST.
12676         * somread.c (som_symtab_read): Likewise.
12677
12678 2014-01-07  Hui Zhu  <hui@codesourcery.com>
12679
12680         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12681         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12682         (gdb_bfd_fopen): Ditto.
12683         (gdb_bfd_openr): Ditto.
12684         (gdb_bfd_openw): Ditto.
12685         (gdb_bfd_openr_iovec): Ditto.
12686         (gdb_bfd_fdopenr): Ditto.
12687         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12688         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12689         with xstrdup.
12690         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12691         with xstrdup.
12692         * symfile-mem.c (symbol_file_add_from_memory): Removed
12693         gdb_bfd_stash_filename.
12694
12695 2014-01-03  Doug Evans  <dje@google.com>
12696
12697         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12698         output.
12699
12700 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
12701
12702         Update year range in copyright notice of all files.
12703
12704 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
12705
12706         * top.c (print_gdb_version): Set copyright year to 2014.
12707
12708 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
12709
12710         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12711
12712 For older changes see ChangeLog-2013.
12713 \f
12714 Local Variables:
12715 mode: change-log
12716 left-margin: 8
12717 fill-column: 74
12718 version-control: never
12719 coding: utf-8
12720 End: