7348bfb223d84cb9db1c3a067e9627c9e5e0ba68
[external/binutils.git] / gdb / ChangeLog
1 2014-09-03  Sasha Smundak  <asmundak@google.com>
2
3         * python/py-frame.c (frapy_read_register): New function.
4
5 2014-09-03  James Hogan  <james.hogan@imgtec.com>
6
7         * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
8         prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
9
10 2014-09-03  Sergio Durigan Junior  <sergiodj@redhat.com>
11
12         PR python/16699
13         * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
14         function.
15         (add_cmd): Set "completer_handle_brkchars" to NULL.
16         * cli/cli-decode.h (struct cmd_list_element)
17         <completer_handle_brkchars>: New field.
18         * command.h (completer_ftype_void): New typedef.
19         (set_cmd_completer_handle_brkchars): New prototype.
20         * completer.c (set_gdb_completion_word_break_characters): New
21         function.
22         (complete_line_internal): Call "completer_handle_brkchars"
23         callback from command.
24         * completer.h: Include "command.h".
25         (set_gdb_completion_word_break_characters): New prototype.
26         * python/py-cmd.c (cmdpy_completer_helper): New function.
27         (cmdpy_completer_handle_brkchars): New function.
28         (cmdpy_completer): Adjust to use cmdpy_completer_helper.
29         (cmdpy_init): Set completer_handle_brkchars to
30         cmdpy_completer_handle_brkchars.
31
32 2014-09-03  Gary Benson  <gbenson@redhat.com>
33
34         * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
35         (ALL_DEBUG_ADDRESS_REGISTERS): New macro.  All uses updated.
36         Loop conditions changed to equivalent form.
37         (struct x86_debug_reg_state): Updated dr_ref_count comment.
38         * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
39         ALL_DEBUG_ADDRESS_REGISTERS.
40
41 2014-09-03  Joel Brobecker  <brobecker@adacore.com>
42
43         * dwarf2loc.h (dwarf2_evaluate_property): Minor function
44         description fix.
45
46 2014-09-02  Doug Evans  <dje@google.com>
47
48         * typeprint.c (find_global_typedef): Fix comment.
49
50 2014-09-02  Gary Benson  <gbenson@redhat.com>
51
52         * i386-nat.h: Renamed as...
53         * x86-nat.h: New file.  All type, function and variable name
54         prefixes changed from "i386_" to "x86_".  All references updated.
55         * i386-nat.c: Renamed as...
56         * x86-nat.c: New file.  All type, function and variable name
57         prefixes changed from "i386_" to "x86_".  All references updated.
58         * common/i386-xstate.h: Renamed as...
59         * common/x86-xstate.h: New file.  All type, function and variable
60         name prefixes changed from "i386_" to "x86_".  All references
61         updated.
62         * nat/i386-cpuid.h: Renamed as...
63         * nat/x86-cpuid.h: New file.  All type, function and variable name
64         prefixes changed from "i386_" to "x86_".  All references updated.
65         * nat/i386-gcc-cpuid.h: Renamed as...
66         * nat/x86-gcc-cpuid.h: New file.  All type, function and variable
67         name prefixes changed from "i386_" to "x86_".  All references
68         updated.
69         * nat/i386-dregs.h: Renamed as...
70         * nat/x86-dregs.h: New file.  All type, function and variable name
71         prefixes changed from "i386_" to "x86_".  All references updated.
72         * nat/i386-dregs.c: Renamed as...
73         * nat/x86-dregs.c: New file.  All type, function and variable name
74         prefixes changed from "i386_" to "x86_".  All references updated.
75
76 2014-09-01  Maciej W. Rozycki  <macro@codesourcery.com>
77
78         * varobj.c (_initialize_varobj): Move to the end of file.
79
80 2014-08-29  Gary Benson  <gbenson@redhat.com>
81
82         * common/common-exceptions.h: New file.
83         * common/common-exceptions.c: Likewise.
84         * Makefile.in (SFILES): Add common/common-exceptions.c.
85         (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
86         (COMMON_OBS): Add common-exceptions.o.
87         (common-exceptions.o): New rule.
88         * exceptions.h (common-exceptions.h): Include.
89         (gdb_setjmp.h): Do not include.
90         (return_reason): Moved to common-exceptions.h.
91         (enum return_reason): Likewise.
92         (RETURN_MASK): Likewise.
93         (typedef return_mask): Likewise.
94         (enum errors): Likewise.
95         (struct gdb_exception): Likewise.
96         (exceptions_state_mc_init): Likewise.
97         (exceptions_state_mc_action_iter): Likewise.
98         (exceptions_state_mc_action_iter_1): Likewise.
99         (TRY_CATCH): Likewise.
100         (throw_exception): Likewise.
101         (throw_verror): Likewise.
102         (throw_vquit): Likewise.
103         (throw_error): Likewise.
104         (throw_quit): Likewise.
105         * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
106         (enum catcher_action): Likewise.
107         (struct catcher): Likewise.
108         (current_catcher): Likewise.
109         (catcher_list_size): Likewise.
110         (exceptions_state_mc_init): Likewise.
111         (catcher_pop): Likewise.
112         (exceptions_state_mc): Likewise.
113         (exceptions_state_mc_action_iter): Likewise.
114         (exceptions_state_mc_action_iter_1): Likewise.
115         (throw_exception): Likewise.
116         (exception_messages): Likewise.
117         (exception_messages_size): Likewise.
118         (throw_it): Likewise.
119         (throw_verror): Likewise.
120         (throw_vquit): Likewise.
121         (throw_error): Likewise.
122         (throw_quit): Likewise.
123         (prepare_to_throw_exception): New function.
124
125 2014-08-29  Gary Benson  <gbenson@redhat.com>
126
127         * common/gdb_setjmp.h: New file.
128         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
129         * configure.ac: Move sigsetjmp check...
130         * common/common.m4: ...here.
131         * configure: Regenerate.
132         * cp-support.c (SIGJMP_BUF): Delete.
133         (SIGSETJMP): Likewise.
134         (SIGLONGJMP): Likewise.
135         * exceptions.h (gdb_setjmp.h): Include.
136         (setjmp.h): Do not include.
137         (EXCEPTIONS_SIGJMP_BUF): Delete.
138         (EXCEPTIONS_SIGSETJMP): Likewise.
139         (EXCEPTIONS_SIGLONGJMP): Likewise.
140         Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
141         from gdb_setjmp.h.
142         * exceptions.c: Likewise.
143
144 2014-08-29  Gary Benson  <gbenson@redhat.com>
145
146         * cleanups.h: Moved to...
147         * common/cleanups.h: New file.
148         * cleanups.c: Moved to...
149         * common/cleanups.c: New file.  Include common-defs.h and
150         cleanups.h.  Do not include defs.h.
151         * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
152         (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
153         (cleanups.o): New rule.
154
155 2014-08-29  Gary Benson  <gbenson@redhat.com>
156
157         * common/errors.h (internal_warning): New declaration.
158         (internal_vwarning): Likewise.
159         * common/errors.c (internal_warning): New function.
160         * utils.h (internal_warning): Don't declare.
161         (internal_vwarning): Likewise.
162         * utils.c (internal_warning): Removed.
163
164 2014-08-29  Gary Benson  <gbenson@redhat.com>
165
166         * main.c (captured_main): Use warning during startup.
167         Prefix startup warning messages with command name.
168
169 2014-08-29  Gary Benson  <gbenson@redhat.com>
170
171         * main.c (captured_main): Handle usage errors with error.
172
173 2014-08-29  Gary Benson  <gbenson@redhat.com>
174
175         * go32-nat.c (go32_create_inferior): Replace a fprintf/
176         exit pair with a call to error.  Wrap the message with _().
177
178 2014-08-29  Gary Benson  <gbenson@redhat.com>
179
180         * main.c (captured_main): Replace a fprintf/exit
181         pair with a call to error.  Wrap the message with _().
182
183 2014-08-29  Gary Benson  <gbenson@redhat.com>
184
185         * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
186         pairs with calls to error.  Wrap the message with _().
187
188 2014-08-29  Gary Benson  <gbenson@redhat.com>
189
190         * utils.c (vwarning): Protect calls to target_terminal_ours
191         and wrap_here.
192
193 2014-08-29  Gary Benson  <gbenson@redhat.com>
194
195         * exceptions.c (print_flush): Protect calls to
196         target_terminal_ours and wrap_here.
197
198 2014-08-29  Gary Benson  <gbenson@redhat.com>
199
200         * utils.h (filtered_printing_initialized): New declaration.
201         * utils.c (abort_with_message): New function.
202         (internal_vproblem): Use abort_with_message for first level
203         recursive internal problems, and if gdb_stderr is not set up.
204         Protect calls to target_terminal_ours, begin_line and query.
205
206 2014-08-28  Doug Evans  <dje@google.com>
207
208         * symtab.c (in_prologue): Move definition to better spot.
209         (skip_prologue_using_sal): Ditto.
210
211 2014-08-28  Doug Evans  <dje@google.com>
212
213         * symtab.c (find_function_start_sal): Move definition to better spot.
214
215 2014-08-28  Yao Qi  <yao@codesourcery.com>
216
217         * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
218         found_stack_adjust in forward scan.  Remove condition check
219         on found_stack_adjust which is always true.  Indent the code.
220
221 2014-08-28  Yao Qi  <yao@codesourcery.com>
222
223         * dwarf2read.c (dwarf_decode_lines): Update declaration.
224         (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
225         (dwarf_decode_lines): Remove argument
226         want_line_info.  Remove condition check on want_line_info.
227         Callers update.
228
229 2014-08-27  Doug Evans  <dje@google.com>
230
231         * dwarf2read.c (dwarf_record_line): Fix typo.
232
233 2014-08-27  Patrick Palka  <patrick@parcs.ath.cx>
234
235         * target.h (struct target_ops::to_terminal_save_ours): Remove
236         declaration.
237         (target_terminal_save_ours): Remove macro.
238         * target-delegates.c: Regenerate.
239         * inf-child.c (inf_child_target): Don't set the nonexistent
240         field to_terminal_save_ours.
241         * inferior.h (child_terminal_save_ours): Remove declaration.
242         * terminal.h (gdb_save_tty_state): New declaration.
243         * inflow.c (child_terminal_save_ours): Rename to ...
244         (gdb_save_tty_state): ... this.
245         * tui/tui.c: Include terminal.h.
246         (tui_enable): Use gdb_save_tty_state instead of
247         target_terminal_save_ours.
248         (tui_disable): Likewise.
249
250 2014-08-25  Doug Evans  <dje@google.com>
251
252         * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
253         Pass NULL instead of 0 for context pointer.
254
255 2014-08-25  Yao Qi  <yao@codesourcery.com>
256
257         * dwarf2read.c: Fix grammatical error.
258
259 2014-08-24  Yao Qi  <yao@codesourcery.com>
260
261         * dwarf2read.c (scan_partial_symbols):  Update comments.
262         Rename argument 'need_pc' with 'set_addrmap'.
263         ï¼ˆadd_partial_namespace): Rename argument 'need_pc' with
264         'set_addrmap'.
265         (add_partial_module): Likewise.
266         (add_partial_subprogram): Likewise.  Update comments.
267         (dwarf2_name): Fix typo.
268
269 2014-08-22  Doug Evans  <dje@google.com>
270
271         PR 17276
272         * dwarf2read.c (dwarf_record_line_p): New function.
273         (dwarf_decode_lines_1): Ignore subsequent line number entries
274         for the same line if any entry had a non-zero discriminator.
275
276 2014-08-22  Doug Evans  <dje@google.com>
277
278         * buildsym.h (record_line_ftype): New typedef.
279         (record_line): Use it.
280         * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
281         (dwarf_decode_lines_1): Call them.
282
283 2014-08-22  Yao Qi  <yao@codesourcery.com>
284
285         * ctf.c (CTF_FILE_MIN_SIZE): Remove.
286         (ctf_end): Remove code.
287
288 2014-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
289
290         * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
291         (linux_make_corefile_notes): call update_thread_list, protected against
292         exceptions.
293
294 2014-08-21  Pedro Alves  <palves@redhat.com>
295
296         * infcmd.c (attach_command): Remove comment.
297
298 2014-08-21  Bin Cheng  <bin.cheng@arm.com>
299
300         * aarch64-linux-nat.c (dr_changed_t): Change the type from
301         unsigned LONGEST to ULONGEST.
302
303 2014-08-20  Pedro Alves  <palves@redhat.com>
304
305         * Makefile.in (check-read1): New rule.
306
307 2014-08-20  Joel Brobecker  <brobecker@adacore.com>
308
309         * value.c (value_from_contents_and_address): Strip resolved_type's
310         typedef layers before checking its TYPE_DATA_LOCATION.
311
312 2014-08-20  Pedro Alves  <palves@redhat.com>
313
314         * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
315
316 2014-08-20  Yao Qi  <yao@codesourcery.com>
317
318         * amd64-tdep.c (amd64_classify): Add a blank line after the
319         example.  Move "*/" to a new line.
320         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
321         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
322         * dwarf2read.c (psymtab_include_file_name): Likewise.
323
324 2014-08-19  Andrew Burgess  <aburgess@broadcom.com>
325             Pedro Alves  <palves@redhat.com>
326
327         PR symtab/14604
328         PR symtab/14605
329         * ada-lang.c (coerce_unspec_val_to_type): Use
330         value_contents_copy_raw.
331         * ada-valprint.c (val_print_packed_array_elements): Adjust.
332         * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
333         * cp-valprint.c (cp_print_value_fields): Let the common printing
334         code handle optimized out values.
335         (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
336         * d-valprint.c (dynamic_array_type): Use
337         value_bits_any_optimized_out.
338         * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
339         check_any_valid fields.
340         (check_pieced_value_bits): Delete and inline ...
341         (check_pieced_synthetic_pointer): ... here.
342         (check_pieced_value_validity): Delete.
343         (check_pieced_value_invalid): Delete.
344         (pieced_value_funcs): Remove check_validity and check_any_valid
345         fields.
346         (read_pieced_value): Use mark_value_bits_optimized_out.
347         (write_pieced_value): Switch to use
348         mark_value_bytes_optimized_out.
349         (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
350         of assuming the whole value is optimized out.
351         * findvar.c (read_frame_register_value): Remove special handling
352         of optimized out registers.
353         (value_from_register): Use mark_value_bytes_optimized_out.
354         * frame-unwind.c (frame_unwind_got_optimized): Use
355         mark_value_bytes_optimized_out.
356         * jv-valprint.c (java_value_print): Adjust.
357         (java_print_value_fields): Let the common printing code handle
358         optimized out values.
359         * mips-tdep.c (mips_print_register): Remove special handling of
360         optimized out registers.
361         * opencl-lang.c (lval_func_check_validity): Delete.
362         (lval_func_check_any_valid): Delete.
363         (opencl_value_funcs): Remove check_validity and check_any_valid
364         fields.
365         * p-valprint.c (pascal_object_print_value_fields): Let the common
366         printing code handle optimized out values.
367         * stack.c (read_frame_arg): Remove special handling of optimized
368         out values.  Fetch both VAL and ENTRYVAL before comparing
369         contents.  Adjust to value_available_contents_eq rename.
370         * valprint.c (valprint_check_validity)
371         (val_print_scalar_formatted): Use value_bits_any_optimized_out.
372         (val_print_array_elements): Adjust.
373         * value.c (struct value) <optimized_out>: Now a VEC(range_s).
374         (value_bits_any_optimized_out): New function.
375         (value_entirely_covered_by_range_vector): New function, factored
376         out from value_entirely_unavailable.
377         (value_entirely_unavailable): Reimplement.
378         (value_entirely_optimized_out): New function.
379         (insert_into_bit_range_vector): New function, factored out from
380         mark_value_bits_unavailable.
381         (mark_value_bits_unavailable): Reimplement.
382         (struct ranges_and_idx): New struct.
383         (find_first_range_overlap_and_match): New function, factored out
384         from value_available_contents_bits_eq.
385         (value_available_contents_bits_eq): Rename to ...
386         (value_contents_bits_eq): ... this.  Check both unavailable
387         contents and optimized out contents.
388         (value_available_contents_eq): Rename to ...
389         (value_contents_eq): ... this.
390         (allocate_value_lazy): Remove reference to the old optimized_out
391         boolean.
392         (allocate_optimized_out_value): Use
393         mark_value_bytes_optimized_out.
394         (require_not_optimized_out): Adjust to check whether the
395         optimized_out vec is empty.
396         (ranges_copy_adjusted): New function, factored out from
397         value_contents_copy_raw.
398         (value_contents_copy_raw): Also copy the optimized out ranges.
399         Assert the destination ranges aren't optimized out.
400         (value_contents_copy): Update comment, remove call to
401         require_not_optimized_out.
402         (value_contents_equal): Adjust to check whether the optimized_out
403         vec is empty.
404         (set_value_optimized_out, value_optimized_out_const): Delete.
405         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
406         New functions.
407         (value_entirely_optimized_out, value_bits_valid): Delete.
408         (value_copy): Take a VEC copy of the 'optimized_out' field.
409         (value_primitive_field): Remove special handling of optimized out.
410         (value_fetch_lazy): Assert that lazy values have no unavailable
411         regions.  Use value_bits_any_optimized_out.  Remove some special
412         handling for optimized out values.
413         * value.h: Add intro comment about <optimized out> and
414         <unavailable>.
415         (struct lval_funcs): Remove check_validity and check_any_valid
416         fields.
417         (set_value_optimized_out, value_optimized_out_const): Remove.
418         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
419         New declarations.
420         (value_bits_any_optimized_out): New declaration.
421         (value_bits_valid): Delete declaration.
422         (value_available_contents_eq): Rename to ...
423         (value_contents_eq): ... this, and extend comments.
424
425 2014-08-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
426
427         Fix -fsanitize=address on unreadable inferior strings.
428         * valprint.c (val_print_string): Fix access before BUFFER.
429
430 2014-08-19  Simon Marchi  <simon.marchi@ericsson.com>
431
432         * target.c (target_struct_size): Remove.
433         (target_struct_allocsize): Remove.
434         (DEFAULT_ALLOCSIZE): Remove.
435         (target_ops_p): New typedef.
436         (DEF_VEC_P (target_ops_p)): New vector type.
437         (target_structs): Change type to VEC (target_ops_p).
438         (add_target_with_completer): Replace "push" code by VEC_safe_push.
439         (find_default_run_target): Rewrite for loop following changes to
440         target_structs.
441
442 2014-08-19  Joel Brobecker  <brobecker@adacore.com>
443
444         * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
445         Adjust code accordingly.  Adjust function description comment.
446
447 2014-08-19  Yao Qi  <yao@codesourcery.com>
448
449         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
450         types.
451
452 2014-08-19  Alan Modra  <amodra@gmail.com>
453
454         * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
455         * config.in: Regenerate.
456         * configure: Regenerate.
457
458 2014-08-19  Tom Tromey  <tromey@redhat.com>
459             Gary Benson  <gbenson@redhat.com>
460
461         * common/common-debug.h: New file.
462         * common/common-debug.c: Likewise.
463         * debug.c: Likewise.
464         * Makefile.in (SFILES): Add common/common-debug.c.
465         (HFILES_NO_SRCDIR): Add common/common-debug.h.
466         (COMMON_OBS): Add common-debug.o and debug.o.
467         (common-debug.o): New rule.
468         * common/common-defs.h: Include common-debug.h.
469         * common/agent.c (debug_agent_printf): New function.
470         (DEBUG_AGENT): Redefine.
471         * nat/i386-dregs.c (debug_printf): Undefine.
472
473 2014-08-19  Gary Benson  <gbenson@redhat.com>
474
475         * common/common-defs.h: Include print-utils.h.
476         * utils.h: Do not include print-utils.h.
477
478 2014-08-19  Tom Tromey  <tromey@redhat.com>
479             Gary Benson  <gbenson@redhat.com>
480
481         * common/common-types.h: New file.
482         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
483         * common/common-defs.h: Include common-types.h.
484         * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
485         (ULONGEST): Remove.
486
487 2014-08-19  Tom Tromey  <tromey@redhat.com>
488             Gary Benson  <gbenson@redhat.com>
489
490         * common/errors.h: New file.
491         * common/errors.c: Likewise.
492         * Makefile.in (SFILES): Add common/errors.c.
493         (HFILES_NO_SRCDIR): Add common/errors.h.
494         (COMMON_OBS): Add errors.o.
495         (errors.o): New rule.
496         * common/common-defs.h: Include errors.h.
497         * utils.h (perror_with_name, error, verror, warning, vwarning):
498         Don't declare.
499         * common/common-utils.h: (malloc_failure, internal_error):
500         Likewise.
501
502 2014-08-19  Gary Benson  <gbenson@redhat.com>
503
504         * utils.c (internal_vproblem): Always print the message.
505
506 2014-08-18  Doug Evans  <dje@google.com>
507
508         * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
509
510 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
511
512         * ada-typeprint.c (type_is_full_subrange_of_target_type):
513         Return 0 if TYPE is dynamic.
514         (print_range): Add handling of dynamic ranges.
515
516 2014-08-18  Keven Boell  <keven.boell@intel.com>
517             Joel Brobecker  <brobecker@adacore.com>
518
519         * gdbtypes.h (struct main_type): Add field "data_location".
520         (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
521         (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
522         * gdbtypes.c (is_dynamic_type): Return 1 if the type has
523         a dynamic data location.
524         (resolve_dynamic_type): Add DW_AT_data_location handling.
525         (copy_recursive, copy_type): Copy the data_location information
526         when present.
527         * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
528         * value.c (value_from_contents_and_address): Add
529         DW_AT_data_location handling.
530
531 2014-08-18  Keven Boell  <keven.boell@intel.com>
532             Joel Brobecker  <brobecker@adacore.com>
533
534         * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
535         field "get_object_address".
536         * dwarf2expr.c (execute_stack_op): Add handling for
537         DW_OP_push_object_address.
538         * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
539         * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
540         (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
541         (dwarf_expr_get_obj_addr): New function.
542         (dwarf_expr_ctx_funcs): Add get_object_address field.
543         (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
544         (dwarf2_locexpr_baton_eval): Add parameter "addr".  Use it.
545         (dwarf2_evaluate_property): Add parameter "address".  Use it.
546         (needs_get_obj_addr): New function.
547         (needs_frame_ctx_funcs): Add get_object_address field.
548         (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
549         * gdbtypes.c (resolve_dynamic_range): Add "addr" field.  Use it.
550         (resolve_dynamic_array): Likewise.
551
552 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
553
554         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
555         When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
556         fixed value for records and unions for which some GNAT encodings
557         are present.
558
559 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
560
561         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
562         rewrite to avoid "else if" and "else" constructs.  Should be
563         a no-op in practice.
564
565 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
566
567         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
568         of lexical block.
569
570 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
571
572         PR c++/17132
573         * eval.c: Update all calls to find_overload_match.
574         * valarith.c: Likewise.
575         (value_user_defined_cpp_op, value_user_defined_op): New
576         argument NOSIDE.  Update all callers.
577         * valops.c (find_overload_match): New argument NOSIDE.
578         * value.h (find_overload_match): Update signature.
579
580 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
581
582         * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
583         'items' methods instead of 'iteritems' method on dictionaries.
584
585 2014-08-15  Doug Evans  <dje@google.com>
586
587         * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
588         closer to use.
589
590 2014-08-15  Doug Evans  <dje@google.com>
591
592         * dwarf2read.c (dwarf_decode_lines_1): Add comment.
593
594 2014-08-15  Doug Evans  <dje@google.com>
595
596         * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
597
598 2014-08-15  Doug Evans  <dje@google.com>
599
600         * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
601         unused.
602
603 2014-08-15  Eli Zaretskii  <eliz@gnu.org>
604
605         * dcache.h: Include target.h, to avoid compile time warnings.
606
607 2014-08-15  Joel Brobecker  <brobecker@adacore.com>
608
609         * gdbarch.sh: #include "frame.h" in gdbarch.h.  Delete "struct
610         frame_info" partial declaration.
611         * gdbarch.h: Regenerate.
612
613 2014-08-15  Yao Qi  <yao@codesourcery.com>
614
615         * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
616         Add parameter 'decode_for_pst_p'.  Callers update.
617
618 2014-08-13  Yao Qi  <yao@codesourcery.com>
619
620         PR build/17104
621         * configure.ac: Use local variable 'pos'.
622         * configure: Regenerated.
623
624 2014-08-11  Doug Evans  <dje@google.com>
625
626         * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
627         message, it is redundant with "Reading symbols from ..." message.
628
629 2014-08-10  Doug Evans  <xdje42@gmail.com>
630
631         * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
632
633 2014-08-09  Yao Qi  <yao@codesourcery.com>
634
635         PR remote/9053
636         * remote.c (remote_xfer_partial): Remove dead code.
637
638 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
639
640         * ia64-linux-tdep.c: Include "regset.h".
641         (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
642         (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
643         (ia64_linux_supply_fpregset): New function.
644         (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
645         (ia64_linux_regset_from_core_section): New function.
646         (ia64_linux_init_abi): Set regset_from_core_section gdbarch
647         method.
648
649 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
650
651         * m68klinux-tdep.c: Include "regset.h".
652         (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
653         (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
654         (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
655         (m68k_linux_regset_from_core_section): New function.
656         (m68k_linux_init_abi): Set regset_from_core_section gdbarch
657         method.
658
659 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
660
661         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
662         function.  Move logic to...
663         (tilegx_linux_regmap): ... this new register map.
664         (tilegx_linux_regset): Refer to register map, replace supply
665         method by regcache_supply_regset, and add collect method.
666         * tilegx-tdep.h (enum tilegx_regnum): New enum value
667         TILEGX_FIRST_EASY_REGNUM.
668
669 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
670
671         * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
672         that calls regcache_supply_regset and handles the EPC register
673         separately.  Move main logic to...
674         (score7_linux_gregmap): ... this new register map.
675         (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
676         (score7_linux_gregset): Refer to register map.  Add collect method.
677         (score7_linux_regset_from_core_section): Replace
678         sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
679         * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
680         (struct regset): Delete unused forward declaraction.
681         (struct pt_regs): Delete structure definition.
682         (elf_gregset_t): Delete typedef.
683
684 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
685
686         * nios2-linux-tdep.c (nios2_collect_gregset): New function.
687         (nios2_core_regset): Add collect method.
688
689 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
690
691         * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
692         platform-independent and don't write to read-only input buffer.
693         (m32r_linux_collect_gregset): New function.
694         (m32r_linux_gregset): Add collect method.
695
696 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
697
698         * hppa-linux-tdep.c (greg_map): Rename to...
699         (hppa_linux_gregmap): ... this.  Also convert to
700         regcache_map_entry format.
701         (hppa_linux_supply_regset): Delete function.
702         (hppa_linux_supply_fpregset): Delete function.  Move logic to...
703         (hppa_linux_fpregmap): ... this new register map.
704         (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
705         register map, replace supply method by regcache_supply_regset, and
706         add collect method regcache_collect_regset.
707
708 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
709
710         * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
711         (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
712         (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
713         (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
714         (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
715         (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
716         (frv_linux_supply_gregset): Replace main logic by call to
717         regcache_supply_regset, but keep clearing gr32-gr63.
718         (frv_linux_supply_fpregset): Delete function.
719         (frv_linux_gregset): Refer to appropriate register map and add
720         regcache_collect_regset as the collect method.
721         (frv_linux_fpregset): Likewise.  Also exchange the supply method
722         by regcache_supply_regset.
723
724 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
725
726         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
727         by call to alpha_supply_int_regs.
728         (alpha_linux_collect_gregset): New function.
729         (alpha_linux_supply_fpregset): Replace logic by call to
730         alpha_supply_fp_regs.
731         (alpha_linux_collect_fpregset): New function.
732         (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
733
734 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
735
736         * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
737         by call to regcache_collect_regset.
738         (supply_gregset, supply_fpregset): Call regcache_supply_regset
739         instead of aarch64_linux_supply_gregset/_fpregset.
740         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
741         (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
742         header file instead.
743         (aarch64_linux_supply_gregset, supply_gregset_from_core)
744         (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
745         functions.  Move logic to ...
746         (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
747         register maps.
748         (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
749         refer to new register maps, replace *_regset_from_core by
750         regcache_supply_regset, and also use regcache_collect_regset.
751         * aarch64-linux-tdep.h: Include "regset.h".
752         (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
753         Delete prototypes.
754         (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
755         macros, moved from C source file.
756         (aarch64_linux_gregset, aarch64_linux_fpregset): New global
757         variable declarations.
758
759 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
760
761         * s390-linux-nat.c: Include "regset.h".
762         (regmap_gregset): Delete macro.
763         (s390_64_regmap_gregset): New register map for
764         regcache_supply/_collect_regset.
765         (s390_64_gregset): New regset.
766         (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
767         (regmap_fpregset): Delete macro.
768         (s390_native_supply, s390_native_collect): Delete functions.
769         (supply_gregset, fill_gregset): Replace s390-specific regmap
770         handling by a call to regcache_supply/_collect_regset.
771         (supply_fpregset, fill_fpregset): Call regcache_supply/
772         _collect_regset instead of s390_native_supply/_collect.
773         (fetch_regset, store_regset): Likewise.  Also change the last
774         parameter to a regset instead of a regmap.
775         (s390_linux_fetch_inferior_registers)
776         (390_linux_store_inferior_registers): Adjust last parameter in
777         calls to fetch_regset and store_regset.
778         * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
779         (s390_gregmap): ... this.  Also make static const and convert to
780         regcache_map_entry format.
781         (s390x_regmap_gregset): Delete.
782         (s390_regmap_fpregset): Rename to...
783         (s390_fpregmap): ... this.  Make static const and convert to
784         regcache_map_entry format.
785         (s390_regmap_upper, s390_regmap_last_break)
786         (s390x_regmap_last_break, s390_regmap_system_call)
787         (s390_regmap_tdb): Likewise.
788         (s390_supply_regset, s390_collect_regset): Remove functions.
789         (s390_supply_tdb_regset): Call regcache_supply_regset instead of
790         s390_supply_regset.
791         (s390_gregset, s390_fpregset, s390_upper_regset)
792         (s390_last_break_regset, s390x_last_break_regset)
793         (s390_system_call_regset, s390_tdb_regset): Make global and
794         replace s390_supply/_collect_regset by regcache_supply/
795         _collect_regset.
796         (s390x_gregset): Delete.
797         (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
798         * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
799         (s390_regmap_fpregset, s390_regmap_last_break)
800         (s390x_regmap_last_break, s390_regmap_system_call)
801         (s390_regmap_tdb): Delete global variable declarations.
802         (s390_gregset, s390_fpregset, s390_last_break_regset)
803         (s390x_last_break_regset, s390_system_call_regset)
804         (s390_tdb_regset): New global variable declarations.
805
806 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
807
808         * regcache.c: Include "regset.h".
809         (regcache_transfer_regset): New local function.
810         (regcache_supply_regset, regcache_collect_regset): New functions.
811         * regcache.h (struct regcache_map_entry): New structure.
812         (REGCACHE_MAP_SKIP): New enum value.
813         (regcache_supply_regset, regcache_collect_regset): New prototypes.
814
815 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
816
817         * regset.h (struct regset): Rename 'descr' field to 'regmap'.
818         * ppc-linux-tdep.c (ppc_linux_supply_gregset)
819         (ppc_linux_collect_gregset ): Likewise.
820         * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
821         (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
822         (ppc_collect_vrregset): Likewise.
823         * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
824         Likewise.
825
826 2014-08-07  Yao Qi  <yao@codesourcery.com>
827
828         * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
829         * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
830         * remote.c (remote_read_bytes): Likewise.
831
832 2014-08-07  Yao Qi  <yao@codesourcery.com>
833
834         * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
835
836 2014-08-07  Yao Qi  <yao@codesourcery.com>
837
838         PR remote/17230
839         * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
840         TARGET_XFER_OK instead of 0.
841
842 2014-08-07  Gary Benson  <gbenson@redhat.com>
843
844         * common/common-defs.h: Include errno.h.
845         * defs.h: Do not include errno.h.
846         * ada-typeprint.c: Likewise.
847         * c-typeprint.c: Likewise.
848         * core-regset.c: Likewise.
849         * corefile.c: Likewise.
850         * corelow.c: Likewise.
851         * event-loop.c: Likewise.
852         * f-typeprint.c: Likewise.
853         * gnu-nat.c: Likewise.
854         * go32-nat.c: Likewise.
855         * i386gnu-nat.c: Likewise.
856         * m2-typeprint.c: Likewise.
857         * nat/linux-btrace.c: Likewise.
858         * p-typeprint.c: Likewise.
859         * procfs.c: Likewise.
860         * remote-sim.c: Likewise.
861         * rs6000-nat.c: Likewise.
862         * target.c: Likewise.
863         * typeprint.c: Likewise.
864         * ui-file.c: Likewise.
865         * valops.c: Likewise.
866         * valprint.c: Likewise.
867
868 2014-08-07  Gary Benson  <gbenson@redhat.com>
869
870         * common/common-defs.h: Include string.h.
871         * aarch64-tdep.c: Do not include string.h.
872         * ada-exp.y: Likewise.
873         * ada-lang.c: Likewise.
874         * ada-lex.l: Likewise.
875         * ada-typeprint.c: Likewise.
876         * ada-valprint.c: Likewise.
877         * aix-thread.c: Likewise.
878         * alpha-linux-tdep.c: Likewise.
879         * alpha-mdebug-tdep.c: Likewise.
880         * alpha-nat.c: Likewise.
881         * alpha-osf1-tdep.c: Likewise.
882         * alpha-tdep.c: Likewise.
883         * alphanbsd-tdep.c: Likewise.
884         * amd64-dicos-tdep.c: Likewise.
885         * amd64-linux-tdep.c: Likewise.
886         * amd64-nat.c: Likewise.
887         * amd64-sol2-tdep.c: Likewise.
888         * amd64fbsd-tdep.c: Likewise.
889         * amd64obsd-tdep.c: Likewise.
890         * arch-utils.c: Likewise.
891         * arm-linux-nat.c: Likewise.
892         * arm-linux-tdep.c: Likewise.
893         * arm-tdep.c: Likewise.
894         * arm-wince-tdep.c: Likewise.
895         * armbsd-tdep.c: Likewise.
896         * armnbsd-nat.c: Likewise.
897         * armnbsd-tdep.c: Likewise.
898         * armobsd-tdep.c: Likewise.
899         * avr-tdep.c: Likewise.
900         * ax-gdb.c: Likewise.
901         * ax-general.c: Likewise.
902         * bcache.c: Likewise.
903         * bfin-tdep.c: Likewise.
904         * breakpoint.c: Likewise.
905         * build-id.c: Likewise.
906         * buildsym.c: Likewise.
907         * c-exp.y: Likewise.
908         * c-lang.c: Likewise.
909         * c-typeprint.c: Likewise.
910         * c-valprint.c: Likewise.
911         * charset.c: Likewise.
912         * cli-out.c: Likewise.
913         * cli/cli-cmds.c: Likewise.
914         * cli/cli-decode.c: Likewise.
915         * cli/cli-dump.c: Likewise.
916         * cli/cli-interp.c: Likewise.
917         * cli/cli-logging.c: Likewise.
918         * cli/cli-script.c: Likewise.
919         * cli/cli-setshow.c: Likewise.
920         * cli/cli-utils.c: Likewise.
921         * coffread.c: Likewise.
922         * common/agent.c: Likewise.
923         * common/buffer.c: Likewise.
924         * common/buffer.h: Likewise.
925         * common/common-utils.c: Likewise.
926         * common/filestuff.c: Likewise.
927         * common/filestuff.c: Likewise.
928         * common/format.c: Likewise.
929         * common/print-utils.c: Likewise.
930         * common/rsp-low.c: Likewise.
931         * common/signals.c: Likewise.
932         * common/vec.h: Likewise.
933         * common/xml-utils.c: Likewise.
934         * core-regset.c: Likewise.
935         * corefile.c: Likewise.
936         * corelow.c: Likewise.
937         * cp-abi.c: Likewise.
938         * cp-name-parser.y: Likewise.
939         * cp-support.c: Likewise.
940         * cp-valprint.c: Likewise.
941         * cris-tdep.c: Likewise.
942         * d-exp.y: Likewise.
943         * darwin-nat.c: Likewise.
944         * dbxread.c: Likewise.
945         * dcache.c: Likewise.
946         * demangle.c: Likewise.
947         * dicos-tdep.c: Likewise.
948         * disasm.c: Likewise.
949         * doublest.c: Likewise.
950         * dsrec.c: Likewise.
951         * dummy-frame.c: Likewise.
952         * dwarf2-frame.c: Likewise.
953         * dwarf2loc.c: Likewise.
954         * dwarf2read.c: Likewise.
955         * elfread.c: Likewise.
956         * environ.c: Likewise.
957         * eval.c: Likewise.
958         * event-loop.c: Likewise.
959         * exceptions.c: Likewise.
960         * exec.c: Likewise.
961         * expprint.c: Likewise.
962         * f-exp.y: Likewise.
963         * f-lang.c: Likewise.
964         * f-typeprint.c: Likewise.
965         * f-valprint.c: Likewise.
966         * fbsd-nat.c: Likewise.
967         * findcmd.c: Likewise.
968         * findvar.c: Likewise.
969         * fork-child.c: Likewise.
970         * frame.c: Likewise.
971         * frv-linux-tdep.c: Likewise.
972         * frv-tdep.c: Likewise.
973         * gdb.c: Likewise.
974         * gdb_bfd.c: Likewise.
975         * gdbarch.c: Likewise.
976         * gdbarch.sh: Likewise.
977         * gdbtypes.c: Likewise.
978         * gnu-nat.c: Likewise.
979         * gnu-v2-abi.c: Likewise.
980         * gnu-v3-abi.c: Likewise.
981         * go-exp.y: Likewise.
982         * go-lang.c: Likewise.
983         * go32-nat.c: Likewise.
984         * guile/guile.c: Likewise.
985         * guile/scm-auto-load.c: Likewise.
986         * hppa-hpux-tdep.c: Likewise.
987         * hppa-linux-nat.c: Likewise.
988         * hppanbsd-tdep.c: Likewise.
989         * hppaobsd-tdep.c: Likewise.
990         * i386-cygwin-tdep.c: Likewise.
991         * i386-dicos-tdep.c: Likewise.
992         * i386-linux-tdep.c: Likewise.
993         * i386-nto-tdep.c: Likewise.
994         * i386-sol2-tdep.c: Likewise.
995         * i386-tdep.c: Likewise.
996         * i386bsd-tdep.c: Likewise.
997         * i386gnu-nat.c: Likewise.
998         * i386nbsd-tdep.c: Likewise.
999         * i386obsd-tdep.c: Likewise.
1000         * i387-tdep.c: Likewise.
1001         * ia64-libunwind-tdep.c: Likewise.
1002         * ia64-linux-nat.c: Likewise.
1003         * inf-child.c: Likewise.
1004         * inf-ptrace.c: Likewise.
1005         * inf-ttrace.c: Likewise.
1006         * infcall.c: Likewise.
1007         * infcmd.c: Likewise.
1008         * inflow.c: Likewise.
1009         * infrun.c: Likewise.
1010         * interps.c: Likewise.
1011         * iq2000-tdep.c: Likewise.
1012         * irix5-nat.c: Likewise.
1013         * jv-exp.y: Likewise.
1014         * jv-lang.c: Likewise.
1015         * jv-typeprint.c: Likewise.
1016         * jv-valprint.c: Likewise.
1017         * language.c: Likewise.
1018         * linux-fork.c: Likewise.
1019         * linux-nat.c: Likewise.
1020         * lm32-tdep.c: Likewise.
1021         * m2-exp.y: Likewise.
1022         * m2-typeprint.c: Likewise.
1023         * m32c-tdep.c: Likewise.
1024         * m32r-linux-nat.c: Likewise.
1025         * m32r-linux-tdep.c: Likewise.
1026         * m32r-rom.c: Likewise.
1027         * m32r-tdep.c: Likewise.
1028         * m68hc11-tdep.c: Likewise.
1029         * m68k-tdep.c: Likewise.
1030         * m68kbsd-tdep.c: Likewise.
1031         * m68klinux-nat.c: Likewise.
1032         * m68klinux-tdep.c: Likewise.
1033         * m88k-tdep.c: Likewise.
1034         * machoread.c: Likewise.
1035         * macrocmd.c: Likewise.
1036         * main.c: Likewise.
1037         * mdebugread.c: Likewise.
1038         * mem-break.c: Likewise.
1039         * memattr.c: Likewise.
1040         * memory-map.c: Likewise.
1041         * mep-tdep.c: Likewise.
1042         * mi/mi-cmd-break.c: Likewise.
1043         * mi/mi-cmd-disas.c: Likewise.
1044         * mi/mi-cmd-env.c: Likewise.
1045         * mi/mi-cmd-stack.c: Likewise.
1046         * mi/mi-cmd-var.c: Likewise.
1047         * mi/mi-cmds.c: Likewise.
1048         * mi/mi-console.c: Likewise.
1049         * mi/mi-getopt.c: Likewise.
1050         * mi/mi-interp.c: Likewise.
1051         * mi/mi-main.c: Likewise.
1052         * mi/mi-parse.c: Likewise.
1053         * microblaze-rom.c: Likewise.
1054         * microblaze-tdep.c: Likewise.
1055         * mingw-hdep.c: Likewise.
1056         * minidebug.c: Likewise.
1057         * minsyms.c: Likewise.
1058         * mips-irix-tdep.c: Likewise.
1059         * mips-linux-tdep.c: Likewise.
1060         * mips-tdep.c: Likewise.
1061         * mips64obsd-tdep.c: Likewise.
1062         * mipsnbsd-tdep.c: Likewise.
1063         * mipsread.c: Likewise.
1064         * mn10300-linux-tdep.c: Likewise.
1065         * mn10300-tdep.c: Likewise.
1066         * monitor.c: Likewise.
1067         * moxie-tdep.c: Likewise.
1068         * mt-tdep.c: Likewise.
1069         * nat/linux-btrace.c: Likewise.
1070         * nat/linux-osdata.c: Likewise.
1071         * nat/linux-procfs.c: Likewise.
1072         * nat/linux-ptrace.c: Likewise.
1073         * nat/linux-waitpid.c: Likewise.
1074         * nbsd-tdep.c: Likewise.
1075         * nios2-linux-tdep.c: Likewise.
1076         * nto-procfs.c: Likewise.
1077         * nto-tdep.c: Likewise.
1078         * objc-lang.c: Likewise.
1079         * objfiles.c: Likewise.
1080         * opencl-lang.c: Likewise.
1081         * osabi.c: Likewise.
1082         * osdata.c: Likewise.
1083         * p-exp.y: Likewise.
1084         * p-lang.c: Likewise.
1085         * p-typeprint.c: Likewise.
1086         * parse.c: Likewise.
1087         * posix-hdep.c: Likewise.
1088         * ppc-linux-nat.c: Likewise.
1089         * ppc-sysv-tdep.c: Likewise.
1090         * ppcfbsd-tdep.c: Likewise.
1091         * ppcnbsd-tdep.c: Likewise.
1092         * ppcobsd-tdep.c: Likewise.
1093         * printcmd.c: Likewise.
1094         * procfs.c: Likewise.
1095         * prologue-value.c: Likewise.
1096         * python/py-auto-load.c: Likewise.
1097         * python/py-gdb-readline.c: Likewise.
1098         * ravenscar-thread.c: Likewise.
1099         * regcache.c: Likewise.
1100         * registry.c: Likewise.
1101         * remote-fileio.c: Likewise.
1102         * remote-m32r-sdi.c: Likewise.
1103         * remote-mips.c: Likewise.
1104         * remote-notif.c: Likewise.
1105         * remote-sim.c: Likewise.
1106         * remote.c: Likewise.
1107         * reverse.c: Likewise.
1108         * rs6000-aix-tdep.c: Likewise.
1109         * ser-base.c: Likewise.
1110         * ser-go32.c: Likewise.
1111         * ser-mingw.c: Likewise.
1112         * ser-pipe.c: Likewise.
1113         * ser-tcp.c: Likewise.
1114         * ser-unix.c: Likewise.
1115         * serial.c: Likewise.
1116         * sh-tdep.c: Likewise.
1117         * sh64-tdep.c: Likewise.
1118         * shnbsd-tdep.c: Likewise.
1119         * skip.c: Likewise.
1120         * sol-thread.c: Likewise.
1121         * solib-dsbt.c: Likewise.
1122         * solib-frv.c: Likewise.
1123         * solib-osf.c: Likewise.
1124         * solib-som.c: Likewise.
1125         * solib-spu.c: Likewise.
1126         * solib-target.c: Likewise.
1127         * solib.c: Likewise.
1128         * somread.c: Likewise.
1129         * source.c: Likewise.
1130         * sparc-nat.c: Likewise.
1131         * sparc-sol2-tdep.c: Likewise.
1132         * sparc-tdep.c: Likewise.
1133         * sparc64-tdep.c: Likewise.
1134         * sparc64fbsd-tdep.c: Likewise.
1135         * sparc64nbsd-tdep.c: Likewise.
1136         * sparcnbsd-tdep.c: Likewise.
1137         * spu-linux-nat.c: Likewise.
1138         * spu-multiarch.c: Likewise.
1139         * spu-tdep.c: Likewise.
1140         * stabsread.c: Likewise.
1141         * stack.c: Likewise.
1142         * std-regs.c: Likewise.
1143         * symfile.c: Likewise.
1144         * symmisc.c: Likewise.
1145         * symtab.c: Likewise.
1146         * target.c: Likewise.
1147         * thread.c: Likewise.
1148         * tilegx-linux-nat.c: Likewise.
1149         * tilegx-tdep.c: Likewise.
1150         * top.c: Likewise.
1151         * tracepoint.c: Likewise.
1152         * tui/tui-command.c: Likewise.
1153         * tui/tui-data.c: Likewise.
1154         * tui/tui-disasm.c: Likewise.
1155         * tui/tui-file.c: Likewise.
1156         * tui/tui-layout.c: Likewise.
1157         * tui/tui-out.c: Likewise.
1158         * tui/tui-regs.c: Likewise.
1159         * tui/tui-source.c: Likewise.
1160         * tui/tui-stack.c: Likewise.
1161         * tui/tui-win.c: Likewise.
1162         * tui/tui-windata.c: Likewise.
1163         * tui/tui-winsource.c: Likewise.
1164         * typeprint.c: Likewise.
1165         * ui-file.c: Likewise.
1166         * ui-out.c: Likewise.
1167         * user-regs.c: Likewise.
1168         * utils.c: Likewise.
1169         * v850-tdep.c: Likewise.
1170         * valarith.c: Likewise.
1171         * valops.c: Likewise.
1172         * valprint.c: Likewise.
1173         * value.c: Likewise.
1174         * varobj.c: Likewise.
1175         * vax-tdep.c: Likewise.
1176         * vaxnbsd-tdep.c: Likewise.
1177         * vaxobsd-tdep.c: Likewise.
1178         * windows-nat.c: Likewise.
1179         * xcoffread.c: Likewise.
1180         * xml-support.c: Likewise.
1181         * xstormy16-tdep.c: Likewise.
1182         * xtensa-linux-nat.c: Likewise.
1183
1184 2014-08-07  Gary Benson  <gbenson@redhat.com>
1185
1186         * common/common-defs.h: Include gdb_assert.h.
1187         * aarch64-tdep.c: Do not include gdb_assert.h.
1188         * addrmap.c: Likewise.
1189         * aix-thread.c: Likewise.
1190         * alpha-linux-tdep.c: Likewise.
1191         * alpha-mdebug-tdep.c: Likewise.
1192         * alphanbsd-tdep.c: Likewise.
1193         * amd64-nat.c: Likewise.
1194         * amd64-tdep.c: Likewise.
1195         * amd64bsd-nat.c: Likewise.
1196         * amd64fbsd-nat.c: Likewise.
1197         * amd64fbsd-tdep.c: Likewise.
1198         * amd64nbsd-nat.c: Likewise.
1199         * amd64nbsd-tdep.c: Likewise.
1200         * amd64obsd-nat.c: Likewise.
1201         * amd64obsd-tdep.c: Likewise.
1202         * arch-utils.c: Likewise.
1203         * arm-tdep.c: Likewise.
1204         * armbsd-tdep.c: Likewise.
1205         * auxv.c: Likewise.
1206         * bcache.c: Likewise.
1207         * bfin-tdep.c: Likewise.
1208         * blockframe.c: Likewise.
1209         * breakpoint.c: Likewise.
1210         * bsd-kvm.c: Likewise.
1211         * bsd-uthread.c: Likewise.
1212         * buildsym.c: Likewise.
1213         * c-exp.y: Likewise.
1214         * c-lang.c: Likewise.
1215         * charset.c: Likewise.
1216         * cleanups.c: Likewise.
1217         * cli-out.c: Likewise.
1218         * cli/cli-decode.c: Likewise.
1219         * cli/cli-dump.c: Likewise.
1220         * cli/cli-logging.c: Likewise.
1221         * cli/cli-script.c: Likewise.
1222         * cli/cli-utils.c: Likewise.
1223         * coffread.c: Likewise.
1224         * common/common-utils.c: Likewise.
1225         * common/queue.h: Likewise.
1226         * common/signals.c: Likewise.
1227         * common/vec.h: Likewise.
1228         * complaints.c: Likewise.
1229         * completer.c: Likewise.
1230         * corelow.c: Likewise.
1231         * cp-abi.c: Likewise.
1232         * cp-name-parser.y: Likewise.
1233         * cp-namespace.c: Likewise.
1234         * cp-support.c: Likewise.
1235         * cris-tdep.c: Likewise.
1236         * dbxread.c: Likewise.
1237         * dictionary.c: Likewise.
1238         * doublest.c: Likewise.
1239         * dsrec.c: Likewise.
1240         * dummy-frame.c: Likewise.
1241         * dwarf2-frame-tailcall.c: Likewise.
1242         * dwarf2-frame.c: Likewise.
1243         * dwarf2expr.c: Likewise.
1244         * dwarf2loc.c: Likewise.
1245         * dwarf2read.c: Likewise.
1246         * eval.c: Likewise.
1247         * event-loop.c: Likewise.
1248         * exceptions.c: Likewise.
1249         * expprint.c: Likewise.
1250         * f-valprint.c: Likewise.
1251         * fbsd-nat.c: Likewise.
1252         * findvar.c: Likewise.
1253         * frame-unwind.c: Likewise.
1254         * frame.c: Likewise.
1255         * frv-tdep.c: Likewise.
1256         * gcore.c: Likewise.
1257         * gdb-dlfcn.c: Likewise.
1258         * gdb_bfd.c: Likewise.
1259         * gdbarch.c: Likewise.
1260         * gdbarch.sh: Likewise.
1261         * gdbtypes.c: Likewise.
1262         * gnu-nat.c: Likewise.
1263         * gnu-v3-abi.c: Likewise.
1264         * go-lang.c: Likewise.
1265         * guile/scm-exception.c: Likewise.
1266         * guile/scm-gsmob.c: Likewise.
1267         * guile/scm-lazy-string.c: Likewise.
1268         * guile/scm-math.c: Likewise.
1269         * guile/scm-pretty-print.c: Likewise.
1270         * guile/scm-safe-call.c: Likewise.
1271         * guile/scm-utils.c: Likewise.
1272         * guile/scm-value.c: Likewise.
1273         * h8300-tdep.c: Likewise.
1274         * hppa-hpux-nat.c: Likewise.
1275         * hppa-tdep.c: Likewise.
1276         * hppanbsd-tdep.c: Likewise.
1277         * hppaobsd-tdep.c: Likewise.
1278         * i386-darwin-nat.c: Likewise.
1279         * i386-darwin-tdep.c: Likewise.
1280         * i386-nto-tdep.c: Likewise.
1281         * i386-tdep.c: Likewise.
1282         * i386bsd-nat.c: Likewise.
1283         * i386fbsd-tdep.c: Likewise.
1284         * i386gnu-nat.c: Likewise.
1285         * i386nbsd-tdep.c: Likewise.
1286         * i386obsd-tdep.c: Likewise.
1287         * i387-tdep.c: Likewise.
1288         * ia64-libunwind-tdep.c: Likewise.
1289         * ia64-tdep.c: Likewise.
1290         * inf-ptrace.c: Likewise.
1291         * inf-ttrace.c: Likewise.
1292         * infcall.c: Likewise.
1293         * infcmd.c: Likewise.
1294         * infrun.c: Likewise.
1295         * inline-frame.c: Likewise.
1296         * interps.c: Likewise.
1297         * jv-lang.c: Likewise.
1298         * jv-typeprint.c: Likewise.
1299         * linux-fork.c: Likewise.
1300         * linux-nat.c: Likewise.
1301         * linux-thread-db.c: Likewise.
1302         * m32c-tdep.c: Likewise.
1303         * m32r-linux-nat.c: Likewise.
1304         * m32r-tdep.c: Likewise.
1305         * m68k-tdep.c: Likewise.
1306         * m68kbsd-nat.c: Likewise.
1307         * m68kbsd-tdep.c: Likewise.
1308         * m88k-tdep.c: Likewise.
1309         * machoread.c: Likewise.
1310         * macroexp.c: Likewise.
1311         * macrotab.c: Likewise.
1312         * maint.c: Likewise.
1313         * mdebugread.c: Likewise.
1314         * memory-map.c: Likewise.
1315         * mep-tdep.c: Likewise.
1316         * mi/mi-common.c: Likewise.
1317         * microblaze-tdep.c: Likewise.
1318         * mingw-hdep.c: Likewise.
1319         * mips-linux-nat.c: Likewise.
1320         * mips-linux-tdep.c: Likewise.
1321         * mips-tdep.c: Likewise.
1322         * mips64obsd-tdep.c: Likewise.
1323         * mipsnbsd-tdep.c: Likewise.
1324         * mn10300-linux-tdep.c: Likewise.
1325         * mn10300-tdep.c: Likewise.
1326         * moxie-tdep.c: Likewise.
1327         * mt-tdep.c: Likewise.
1328         * nat/linux-btrace.c: Likewise.
1329         * nat/linux-osdata.c: Likewise.
1330         * nat/linux-ptrace.c: Likewise.
1331         * nat/mips-linux-watch.c: Likewise.
1332         * nios2-linux-tdep.c: Likewise.
1333         * nios2-tdep.c: Likewise.
1334         * objc-lang.c: Likewise.
1335         * objfiles.c: Likewise.
1336         * obsd-nat.c: Likewise.
1337         * opencl-lang.c: Likewise.
1338         * osabi.c: Likewise.
1339         * parse.c: Likewise.
1340         * ppc-linux-nat.c: Likewise.
1341         * ppc-sysv-tdep.c: Likewise.
1342         * ppcfbsd-nat.c: Likewise.
1343         * ppcfbsd-tdep.c: Likewise.
1344         * ppcnbsd-nat.c: Likewise.
1345         * ppcnbsd-tdep.c: Likewise.
1346         * ppcobsd-nat.c: Likewise.
1347         * ppcobsd-tdep.c: Likewise.
1348         * printcmd.c: Likewise.
1349         * procfs.c: Likewise.
1350         * prologue-value.c: Likewise.
1351         * psymtab.c: Likewise.
1352         * python/py-lazy-string.c: Likewise.
1353         * python/py-value.c: Likewise.
1354         * regcache.c: Likewise.
1355         * reggroups.c: Likewise.
1356         * registry.c: Likewise.
1357         * remote-sim.c: Likewise.
1358         * remote.c: Likewise.
1359         * rs6000-aix-tdep.c: Likewise.
1360         * rs6000-tdep.c: Likewise.
1361         * s390-linux-tdep.c: Likewise.
1362         * score-tdep.c: Likewise.
1363         * ser-base.c: Likewise.
1364         * ser-mingw.c: Likewise.
1365         * sh-tdep.c: Likewise.
1366         * sh64-tdep.c: Likewise.
1367         * solib-darwin.c: Likewise.
1368         * solib-spu.c: Likewise.
1369         * solib-svr4.c: Likewise.
1370         * source.c: Likewise.
1371         * sparc-nat.c: Likewise.
1372         * sparc-sol2-tdep.c: Likewise.
1373         * sparc-tdep.c: Likewise.
1374         * sparc64-sol2-tdep.c: Likewise.
1375         * sparc64-tdep.c: Likewise.
1376         * sparc64fbsd-tdep.c: Likewise.
1377         * sparc64nbsd-tdep.c: Likewise.
1378         * sparc64obsd-tdep.c: Likewise.
1379         * sparcnbsd-tdep.c: Likewise.
1380         * sparcobsd-tdep.c: Likewise.
1381         * spu-multiarch.c: Likewise.
1382         * spu-tdep.c: Likewise.
1383         * stabsread.c: Likewise.
1384         * stack.c: Likewise.
1385         * symfile.c: Likewise.
1386         * symtab.c: Likewise.
1387         * target-descriptions.c: Likewise.
1388         * target-memory.c: Likewise.
1389         * target.c: Likewise.
1390         * tic6x-linux-tdep.c: Likewise.
1391         * tic6x-tdep.c: Likewise.
1392         * tilegx-linux-nat.c: Likewise.
1393         * tilegx-tdep.c: Likewise.
1394         * top.c: Likewise.
1395         * tramp-frame.c: Likewise.
1396         * tui/tui-out.c: Likewise.
1397         * tui/tui-winsource.c: Likewise.
1398         * ui-out.c: Likewise.
1399         * user-regs.c: Likewise.
1400         * utils.c: Likewise.
1401         * v850-tdep.c: Likewise.
1402         * valops.c: Likewise.
1403         * value.c: Likewise.
1404         * varobj.c: Likewise.
1405         * vax-nat.c: Likewise.
1406         * xml-syscall.c: Likewise.
1407         * xml-tdesc.c: Likewise.
1408         * xstormy16-tdep.c: Likewise.
1409         * xtensa-linux-nat.c: Likewise.
1410         * xtensa-tdep.c: Likewise.
1411
1412 2014-08-07  Gary Benson  <gbenson@redhat.com>
1413
1414         * common/common-defs.h: Include common-utils.h.
1415         * defs.h: Do not include common-utils.h.
1416         * common/gdb_assert.h: Likewise.
1417         * darwin-nat.h: Likewise.
1418         * nat/linux-btrace.c: Likewise.
1419         * target/waitstatus.h: Likewise.
1420
1421 2014-08-07  Gary Benson  <gbenson@redhat.com>
1422
1423         * common/common-defs.h: Include ptid.h.
1424         * defs.h: Do not include ptid.h.
1425         * inferior.h: Likewise.
1426         * infrun.h: Likewise.
1427         * nat/linux-btrace.h: Likewise.
1428         * nat/linux-osdata.h: Likewise.
1429         * target/waitstatus.h: Likewise.
1430
1431 2014-08-07  Gary Benson  <gbenson@redhat.com>
1432
1433         * common/common-defs.h: Include gdb_locale.h.
1434         * defs.h: Do not include gdb_locale.h.
1435
1436 2014-08-07  Gary Benson  <gbenson@redhat.com>
1437
1438         * common/common-defs.h: Include gdb/signals.h.
1439         * defs.h: Do not include gdb/signals.h.
1440
1441 2014-08-07  Gary Benson  <gbenson@redhat.com>
1442
1443         * common/common-defs.h: Include pathmax.h.
1444         * defs.h: Do not include pathmax.h.
1445
1446 2014-08-07  Gary Benson  <gbenson@redhat.com>
1447
1448         * common/common-defs.h: Include libiberty.h.
1449         * defs.h: Do not include libiberty.h.
1450         * common/queue.h: Likewise.
1451         * cp-name-parser.y: Likewise.
1452         * mi/mi-cmd-catch.c: Likewise.
1453         * python/python.c: Likewise.
1454
1455 2014-08-07  Gary Benson  <gbenson@redhat.com>
1456
1457         * common/common-defs.h: Include ansidecl.h.
1458         * defs.h: Do not include ansidecl.h.
1459         * common/buffer.h: Likewise.
1460         * common/common-utils.h: Likewise.
1461
1462 2014-08-07  Gary Benson  <gbenson@redhat.com>
1463
1464         * common/common-defs.h: Include stddef.h.
1465         * defs.h: Do not include stddef.h.
1466         * common/common-utils.h: Likewise.
1467         * amd64fbsd-nat.c: Likewise.
1468         * bcache.c: Likewise.
1469         * charset.c: Likewise.
1470         * common/buffer.h: Likewise.
1471         * common/vec.h: Likewise.
1472         * i386bsd-nat.c: Likewise.
1473         * nat/linux-btrace.h: Likewise.
1474         * ppcfbsd-nat.c: Likewise.
1475         * ppcnbsd-tdep.h: Likewise.
1476         * ppcobsd-nat.c: Likewise.
1477         * ppcobsd-tdep.h: Likewise.
1478         * python/py-gdb-readline.c: Likewise.
1479
1480 2014-08-07  Gary Benson  <gbenson@redhat.com>
1481
1482         * common/common-defs.h: Include stdarg.h.
1483         * defs.h: Do not include stdarg.h.
1484         * ada-lang.c: Likewise.
1485         * common/common-utils.h: Likewise.
1486         * guile/scm-string.c: Likewise.
1487         * guile/scm-utils.c: Likewise.
1488         * m32c-tdep.c: Likewise.
1489
1490 2014-08-07  Gary Benson  <gbenson@redhat.com>
1491
1492         * common/common-defs.h: Include stdlib.h.
1493         * defs.h: Do not include stdlib.h.
1494         * addrmap.c: Likewise.
1495         * bcache.c: Likewise.
1496         * common/buffer.c: Likewise.
1497         * common/common-utils.c: Likewise.
1498         * cp-name-parser.y: Likewise.
1499         * go32-nat.c: Likewise.
1500         * mn10300-linux-tdep.c: Likewise.
1501         * nat/linux-osdata.c: Likewise.
1502         * tui/tui.c: Likewise.
1503         * windows-nat.c: Likewise.
1504
1505 2014-08-07  Gary Benson  <gbenson@redhat.com>
1506
1507         * common/common-defs.h: Include stdio.h.
1508         * defs.h: Do not include stdio.h.
1509         * ada-lang.c: Likewise.
1510         * common/buffer.c: Likewise.
1511         * common/common-utils.c: Likewise.
1512         * cp-name-parser.y: Likewise.
1513         * gnu-nat.c: Likewise.
1514         * go32-nat.c: Likewise.
1515         * i386gnu-nat.c: Likewise.
1516         * proc-api.c: Likewise.
1517         * proc-events.c: Likewise.
1518         * proc-flags.c: Likewise.
1519         * proc-why.c: Likewise.
1520         * python/python-internal.h: Likewise.
1521         * target-memory.c: Likewise.
1522         * tui/tui-io.c: Likewise.
1523         * tui/tui.c: Likewise.
1524
1525 2014-08-06  Simon Marchi  <simon.marchi@ericsson.com>
1526
1527         * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1528         (scan_dyntag_auxv): Same.
1529
1530 2014-08-06  Yao Qi  <yao@codesourcery.com>
1531
1532         * amd64-linux-nat.c: Remove duplicated include
1533         "x86-linux-nat.h".
1534         * i386-linux-nat.c: Likewise.
1535
1536 2014-08-06  Yao Qi  <yao@codesourcery.com>
1537
1538         * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1539         operand" with "Special opcode" in comments.
1540
1541 2014-08-05  Gary Benson  <gbenson@redhat.com>
1542
1543         * interps.c (initialize_interps): Remove prototype.
1544         (interpreter_initialized): Remove static global.
1545         (interp_add): Do not call initialize_interps.
1546         (initialize_interps): Remove function.
1547
1548 2014-08-05  Gary Benson  <gbenson@redhat.com>
1549
1550         * utils.c (vwarning): Remove spurious va_end.
1551
1552 2014-08-05  Alan Modra  <amodra@gmail.com>
1553
1554         * charset.c (convert_between_encodings): Cast result of obstack_base.
1555         * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1556         * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1557         (read_unwind_info): Use size_t for some locals.
1558         * jit.c (finalize_symtab): Likewise.
1559         * utils.c (hashtab_obstack_allocate): Likewise.
1560         * symmisc.c (print_objfile_statistics): Update format strings.
1561
1562 2014-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
1563
1564         * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1565         (Changes in GDB 7.8): ... here.
1566
1567 2014-08-04  Tom Tromey  <tromey@redhat.com>
1568
1569         * target.c (set_targetdebug): New function.
1570         (initialize_targets): Pass set_targetdebug when creating "set
1571         debug target".
1572
1573 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
1574
1575         * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1576         if detecting a variable-sized field that is not the last field.
1577         Fix struct type length computation.
1578
1579 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
1580
1581         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1582         Add debug trace.
1583
1584 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
1585
1586         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1587         Remove "+ 8" offset in computation of CHAIN_VMA.
1588
1589 2014-07-31  Doug Evans  <dje@google.com>
1590
1591         * inflow.c (child_terminal_inferior): Add comment.
1592         (child_terminal_ours_for_output): Add comment.
1593         (child_terminal_ours): Add comment.
1594         * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1595         (linux_nat_terminal_ours): Add comment.
1596
1597 2014-07-31  Gary Benson  <gbenson@redhat.com>
1598
1599         * common/btrace-common.h: Do not include defs.h or server.h.
1600         * nat/mips-linux-watch.h: Likewise.
1601         * gdb-dlfcn.h: Do not include defs.h.
1602         * tracefile.h: Likewise.
1603
1604 2014-07-30  Roland McGrath  <mcgrathr@google.com>
1605
1606         * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1607
1608 2014-07-30  Tom Tromey  <tromey@redhat.com>
1609
1610         * bsd-kvm.c (bsd_kvm_open): Constify.
1611         * corelow.c (core_open): Constify.
1612         * ctf.c (ctf_open): Constify.
1613         * dbug-rom.c (dbug_open): Constify.
1614         * exec.c (exec_open): Constify.
1615         * m32r-rom.c (m32r_open, mon2000_open): Constify.
1616         * microblaze-rom.c (picobug_open): Constify.
1617         * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1618         Constify.
1619         * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1620         * record-btrace.c (record_btrace_open): Constify.
1621         * record-full.c (record_full_core_open_1, record_full_open_1)
1622         (record_full_open): Constify.
1623         * remote-m32r-sdi.c (m32r_open): Constify.
1624         * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1625         (rockhopper_open, lsi_open): Constify.
1626         * remote-sim.c (gdbsim_open): Constify.
1627         * remote.c (remote_open, extended_remote_open, remote_open_1):
1628         Constify.
1629         * target.h (struct target_ops) <to_open>: Make "arg" const.
1630         * tracefile-tfile.c (tfile_open): Constify.
1631
1632 2014-07-30  Tom Tromey  <tromey@redhat.com>
1633
1634         * breakpoint.c (map_breakpoint_numbers): Update.
1635         * cli/cli-utils.c (get_number_trailer): Make "pp" const.  Update.
1636         (get_number_const): New function.
1637         (get_number): Rewrite using get_number_const.
1638         (init_number_or_range): Make "string" const.
1639         (number_is_in_list): Make "list" const.
1640         * cli/cli-utils.h (get_number_const): Declare.
1641         (struct get_number_or_range_state) <string, end_ptr>: Now const.
1642         (init_number_or_range, number_is_in_list): Update.
1643         * printcmd.c (map_display_numbers): Update.
1644         * value.c (value_from_history_ref): Constify.
1645         * value.h (value_from_history_ref): Update.
1646
1647 2014-07-30  Tom Tromey  <tromey@redhat.com>
1648
1649         * corefile.c (hook_type, call_extra_exec_file_hooks)
1650         (specify_exec_file_hook): Constify.
1651         * exec.c (exec_file_attach): Make "filename" const.
1652         * gdbcore.h (deprecated_exec_file_display_hook)
1653         (specify_exec_file_hook, exec_file_attach): Constify.
1654         * main.c (captured_main): Use catch_command_errors_const.
1655
1656 2014-07-30  Tom Tromey  <tromey@redhat.com>
1657
1658         * target.c (open_target): New function.
1659         (add_target_with_completer, add_deprecated_target_alias): Use
1660         set_cmd_sfunc, set_cmd_context.
1661         (debug_to_open): Remove.
1662         (setup_target_debug): Update.
1663
1664 2014-07-30  Yao Qi  <yao@codesourcery.com>
1665
1666         * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1667         comments.
1668         * parse.c (exp_iterate): Update comments.
1669
1670 2014-07-30  Gary Benson  <gbenson@redhat.com>
1671
1672         * common/common-defs.h: New file.
1673         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1674         * defs.h: Include common-defs.h.
1675         Do not include config.h or build-gnulib/config.h.
1676
1677 2014-07-30  Gary Benson  <gbenson@redhat.com>
1678
1679         * common/common-utils.h: Do not include config.h.
1680         * nat/linux-btrace.h: Likewise.
1681
1682 2014-07-30  Gary Benson  <gbenson@redhat.com>
1683
1684         * btrace.c: Include defs.h.
1685         * common/ptid.c: Include defs.h or server.h as appropriate.
1686         * nat/mips-linux-watch.c: Likewise.
1687
1688 2014-07-29  Tom Tromey  <tromey@redhat.com>
1689
1690         * target.c (target_is_pushed): Simplify.
1691
1692 2014-07-29  Joel Brobecker  <brobecker@adacore.com>
1693
1694         GDB 7.8 released.
1695
1696 2014-07-29  Yao Qi  <yao@codesourcery.com>
1697
1698         PR gdb/17206
1699         * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1700
1701 2014-07-28  Doug Evans  <xdje42@gmail.com>
1702
1703         PR guile/17203
1704         * guile/scm-param.c (pascm_parameter_defined_p): New function.
1705         (gdbscm_register_parameter_x): Call it.  Raise error for pre-existing
1706         parameters.
1707
1708 2014-07-28  Will Newton  <will.newton@linaro.org>
1709
1710         * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1711         (THUMB2_SET_R7_SIGRETURN2): Likewise.
1712         (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1713         (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1714         (THUMB2_EABI_SYSCALL): Likewise.
1715         (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1716         struct tramp_frame.
1717         (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1718         (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1719
1720 2014-07-27  Doug Evans  <xdje42@gmail.com>
1721
1722         * guile/scm-param.c (pascm_print_param_smob): Fix output.
1723
1724 2014-07-27  Doug Evans  <xdje42@gmail.com>
1725
1726         * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1727
1728 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
1729             Doug Evans  <xdje42@gmail.com>
1730
1731         PR guile/17146
1732         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1733         (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1734         * configure.ac: Try to use guild to compile an scm file, if it fails
1735         then disable guile support.
1736         * configure: Regenerate.
1737         * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1738         GUILE_FILE_LIST.
1739         (GUILE_COMPILED_FILES): New variable.
1740         (GUILE_FILES) Update.
1741         (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1742         (stamp-guile): Compile scm files.
1743         * guile/guile.c (boot_guile_support): New function.
1744         (standard_throw_args_p): New function.
1745         (print_standard_throw_error, print_throw_error): New functions.
1746         (handle_boot_error): New function.
1747         (initialize_scheme_side): Rewrite to call boot_guile_support.
1748         * guile/lib/gdb/boot.scm: Update %load-compiled-path.  Load gdb.go.
1749         * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1750
1751 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
1752             Doug Evans  <xdje42@gmail.com>
1753
1754         PR guile/17146
1755         * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1756         * guile/lib/gdb/support.scm: New file.
1757         * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1758         * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1759         All uses updated.
1760         * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1761         All uses updated.
1762         (%assert-type): Ditto, and renamed to assert-type.
1763         (%exception-print-style): Delete.
1764
1765 2014-07-26  Doug Evans  <xdje42@gmail.com>
1766
1767         PR build/17105
1768         * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1769         * configure: Regenerate.
1770         * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1771         PYTHON_FILES.
1772         (PYTHON_FILES): New variable.
1773         (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1774         (GUILE_FILES): New variable.
1775         (stamp-python, install-python, uninstall-python): Handle empty
1776         file list.
1777         (stamp-guile, install-guile, uninstall-guile): Ditto.
1778
1779 2014-07-26  Doug Evans  <xdje42@gmail.com>
1780
1781         PR guile/17177
1782         * guile/lib/gdb.scm (pretty-printers): Export.
1783         (set-pretty-printers!): Export.
1784         * guile/lib/gdb/printing.scm (gdb module): Update.
1785         (prepend-pretty-printer!, append-pretty-printer!): Update.
1786         * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1787         (pretty_printer_list_var): Delete.
1788         (pretty_printer_list): New static global.
1789         (gdbscm_pretty_printers): New function.
1790         (gdbscm_set_pretty_printers_x): New function.
1791         (ppscm_find_pretty_printer_from_gdb): Update.
1792         (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1793         (gdbscm_initialize_pretty_printers): Update.
1794
1795 2014-07-26  Doug Evans  <xdje42@gmail.com>
1796
1797         PR 17185
1798         * configure.ac: Add check for header gc/gc.h.
1799         Add check for function setenv.
1800         * configure: Regenerate.
1801         * config.in: Regenerate.
1802         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1803
1804 2014-07-25  Maciej W. Rozycki  <macro@codesourcery.com>
1805
1806         * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1807         variation in gdbarch matching.
1808
1809 2014-07-25  Tom Tromey  <tromey@redhat.com>
1810
1811         * exec.c (using_exec_ops): Remove.
1812         (exec_close_1): Update.  Remove extraneous block, reindent.
1813         (add_target_sections): Use target_is_pushed.
1814
1815 2014-07-25  Pedro Alves  <palves@redhat.com>
1816
1817         * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1818         * monitor.c (monitor_create_inferior): Likewise.
1819         * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1820         * remote-sim.c (gdbsim_create_inferior): Likewise.
1821         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1822         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1823         * windows-nat.c (do_initial_windows_stuff): Likewise.
1824
1825 2014-07-25  Pedro Alves  <palves@redhat.com>
1826
1827         * NEWS: Mention signal passing and "signal" command changes.
1828         * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1829         comment.
1830         * breakpoint.c (until_break_command): Adjust clear_proceed_status
1831         call.
1832         * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1833         * infcmd.c (proceed_thread_callback, continue_1, step_once)
1834         (jump_command): Adjust clear_proceed_status call.
1835         (signal_command): Warn if other thread that are resumed have
1836         signals that will be delivered.  Adjust clear_proceed_status call.
1837         (until_next_command, finish_command)
1838         (proceed_after_attach_callback, attach_command_post_wait)
1839         (attach_command): Adjust clear_proceed_status call.
1840         * infrun.c (proceed_after_vfork_done): Likewise.
1841         (proceed_after_attach_callback): Adjust comment.
1842         (clear_proceed_status_thread): Clear stop_signal if not in pass
1843         state.
1844         (clear_proceed_status_callback): Delete.
1845         (clear_proceed_status): New 'step' parameter.  Only clear the
1846         proceed status of threads the command being prepared is about to
1847         resume.
1848         (proceed): If passed in an explicit signal, override stop_signal
1849         with it.  Don't pass the last stop signal to the thread we're
1850         resuming.
1851         (init_wait_for_inferior): Adjust clear_proceed_status call.
1852         (switch_back_to_stepped_thread): Clear the signal if it should not
1853         be passed.
1854         * infrun.h (clear_proceed_status): New 'step' parameter.
1855         (user_visible_resume_ptid): Add comment.
1856         * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1857         signal is in pass state.
1858         * remote.c (append_pending_thread_resumptions): Likewise.
1859         * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1860
1861 2014-07-25  Tom Tromey  <tromey@redhat.com>
1862
1863         * target.h (target_stopped_data_address)
1864         (target_watchpoint_addr_within_range): Use "->", not ".".  Fix
1865         parentheses.
1866
1867 2014-07-25  Pierre Langlois  <pierre.langlois@embecosm.com>
1868
1869         * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1870         comments.
1871         (avr_pointer_to_address): Likewise.
1872
1873 2014-07-24  Tom Tromey  <tromey@redhat.com>
1874
1875         * monitor.c (compile_pattern): Update.
1876         * target.h (struct target_ops) <to_shortname, to_longname,
1877         to_doc>: Now const.
1878
1879 2014-07-24  Tom Tromey  <tromey@redhat.com>
1880
1881         * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1882         (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1883         (add_info_alias, add_com): Make "doc" const.
1884         (print_doc_line): Make "str" const.
1885         (delete_cmd): Update.
1886         * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1887         (print_doc_line): Update.
1888         * cli/cli-script.c (document_command): Update.
1889         * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1890         (add_com, add_info, add_info_alias): Update.
1891         * guile/scm-cmd.c (cmdscm_destroyer): Update.
1892         * python/py-cmd.c (cmdpy_destroyer): Update.
1893
1894 2014-07-24  Tom Tromey  <tromey@redhat.com>
1895
1896         * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1897         (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1898         (help_cmd_list): Constify.
1899         (lookup_cmd): Update.
1900         * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1901         const.
1902         (help_cmd_list, apropos_cmd): Update.
1903         * cli/cli-script.c (show_user): Update.
1904         * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1905         * cli/cli-setshow.h (cmd_show_list): Update.
1906         * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1907         (cmd_show_list): Update.
1908         * guile/scm-cmd.c (cmdscm_destroyer): Update.
1909         * python/py-cmd.c (cmdpy_destroyer): Update.
1910
1911 2014-07-24  Tom Tromey  <tromey@redhat.com>
1912
1913         * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1914         * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1915         const.
1916         * command.h (deprecate_cmd): Update.
1917         * maint.c (maintenance_do_deprecate): Add casts.
1918
1919 2014-07-24  Tom Tromey  <tromey@redhat.com>
1920
1921         * cli/cli-decode.c (help_cmd): Make parameter "const".
1922         * cli/cli-decode.h (help_cmd): Update.
1923
1924 2014-07-24  Tom Tromey  <tromey@redhat.com>
1925
1926         * stack.c (up_silently_base, down_silently_base): Make argument
1927         const.
1928
1929 2014-07-24  Tom Tromey  <tromey@redhat.com>
1930
1931         * solib.c (solib_add): Make "pattern" const.
1932         * solib.h (solib_add): Update.
1933
1934 2014-07-24  Tom Tromey  <tromey@redhat.com>
1935
1936         * remote.c (remote_serial_open, print_packet, putpkt)
1937         (putpkt_binary): Constify.
1938         * remote.h (putpkt): Update.
1939
1940 2014-07-24  Tom Tromey  <tromey@redhat.com>
1941
1942         * monitor.c (monitor_open): Make "args" const.
1943         * monitor.h (monitor_open): Update.
1944
1945 2014-07-24  Tom Tromey  <tromey@redhat.com>
1946
1947         * maint.c (match_bfd_flags): Make "string" const.
1948         (print_bfd_section_info): Remove casts.
1949         (print_objfile_section_info): Make "string" const.
1950
1951 2014-07-24  Tom Tromey  <tromey@redhat.com>
1952
1953         * inf-child.c (inf_child_open_target): Make "arg" const.
1954         * inf-child.h (inf_child_open_target): Update.
1955
1956 2014-07-24  Tom Tromey  <tromey@redhat.com>
1957
1958         * environ.c (unset_in_environ): Make "var" const.
1959         * environ.h (unset_in_environ): Update.
1960
1961 2014-07-24  Tom Tromey  <tromey@redhat.com>
1962
1963         * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1964         Make "cmd" const.
1965         (scan_filename_with_cleanup): Likewise.
1966         (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1967         Make arguments const.
1968         (restore_command): Update.
1969
1970 2014-07-24  Pedro Alves  <palves@redhat.com>
1971
1972         * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1973
1974 2014-07-24  Tom Tromey  <tromey@redhat.com>
1975             Gary Benson  <gbenson@redhat.com>
1976
1977         * nat/linux-ptrace.c (additional_flags): New global.
1978         (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1979         additional_flags; don't check GDBSERVER.
1980         (linux_ptrace_set_additional_flags): New function.
1981         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1982         Declare.
1983         * linux-nat.c (_initialize_linux_nat): Call
1984         linux_ptrace_set_additional_flags.
1985
1986 2014-07-24  Tom Tromey  <tromey@redhat.com>
1987
1988         * make-target-delegates (munge_type, write_debugmethod): New
1989         functions.
1990         (debug_names): New global.
1991         ($TARGET_DEBUG_PRINTER): New global.
1992         (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1993         name.
1994         Write debug methods.  Generate init_debug_target.
1995         * target-debug.h: New file.
1996         * target-delegates.c: Rebuild.
1997         * target.c: Include target-debug.h.
1998         (debug_target): Hoist definition.
1999         (target_kill, target_get_section_table, target_memory_map)
2000         (target_flash_erase, target_flash_done, target_detach)
2001         (target_disconnect, target_wait, target_resume)
2002         (target_pass_signals, target_program_signals, target_follow_fork)
2003         (target_mourn_inferior, target_search_memory)
2004         (target_thread_address_space, target_close)
2005         (target_find_new_threads, target_core_of_thread)
2006         (target_verify_memory, target_insert_mask_watchpoint)
2007         (target_remove_mask_watchpoint): Remove targetdebug code.
2008         (debug_to_post_attach, debug_to_prepare_to_store)
2009         (debug_to_files_info, debug_to_insert_breakpoint)
2010         (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2011         (debug_to_region_ok_for_hw_watchpoint)
2012         (debug_to_can_accel_watchpoint_condition)
2013         (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2014         (debug_to_watchpoint_addr_within_range)
2015         (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2016         (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2017         (debug_to_terminal_init, debug_to_terminal_inferior)
2018         (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2019         (debug_to_terminal_save_ours, debug_to_terminal_info)
2020         (debug_to_load, debug_to_post_startup_inferior)
2021         (debug_to_insert_fork_catchpoint)
2022         (debug_to_remove_fork_catchpoint)
2023         (debug_to_insert_vfork_catchpoint)
2024         (debug_to_remove_vfork_catchpoint)
2025         (debug_to_insert_exec_catchpoint)
2026         (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2027         (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2028         (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2029         (setup_target_debug): Call init_debug_target.
2030         * target.h (TARGET_DEBUG_PRINTER): New macro.
2031         (struct target_ops) <to_resume, to_wait, to_pass_signals,
2032         to_program_signals>: Use TARGET_DEBUG_PRINTER.
2033
2034 2014-07-24  Gary Benson  <gbenson@redhat.com>
2035
2036         * exceptions.h (throw_vfatal): Renamed to...
2037         (throw_vquit): New declaration.
2038         (throw_quit): Likewise.
2039         * exceptions.c (throw_vfatal): Renamed to...
2040         (throw_vquit): New function.
2041         (throw_quit): Likewise.
2042         (throw_error): Call throw_verror rather than throw_it.
2043         * utils.h (vfatal): Removed.
2044         (fatal): Likewise.
2045         * utils.c (vfatal): Removed.
2046         (fatal): Likewise.
2047         (internal_verror): Replaced call to fatal with call to throw_quit.
2048         (quit): Replaced calls to fatal with calls to throw_quit.
2049
2050 2014-07-23  Ajit Agarwal <ajitkum@xilinx.com>
2051
2052         * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2053         target_read_code.
2054
2055 2014-07-23  Chen Gang <gang.chen.5i5j@gmail.com>
2056
2057         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2058         less than zero in conditional expression.
2059
2060 2014-07-23  Tom Tromey  <tromey@redhat.com>
2061
2062         * make-target-delegates ($ARGS_PART): Match trailing close paren.
2063         ($INTRO_PART): Don't match whitespace.
2064         ($METHOD_TRAILER): Move earlier.  Remove trailing semicolon and
2065         argument matching.
2066         ($METHOD): Add $METHOD_TRAILER.
2067         (trim): Rewrite.
2068         (scan_target_h): New sub.
2069         Change main loop not to collect state.
2070         * target-delegates.c: Rebuild.
2071
2072 2014-07-23  Gary Benson  <gbenson@redhat.com>
2073
2074         * cp-support.c (gdb_demangle): Fix build on systems without
2075         sigaltstack.
2076
2077 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
2078
2079         * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2080         for reference entry value target data value.
2081
2082 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
2083
2084         * stack.c (read_frame_arg): Verify value_optimized_out before calling
2085         value_available_contents_eq.
2086
2087 2014-07-22  Pedro Alves  <palves@redhat.com>
2088
2089         * value.c (allocate_optimized_out_value): Don't mark value as
2090         non-lazy.
2091
2092 2014-07-22  Jiong Wang  <jiong.wang@arm.com>
2093
2094         * MAINTAINERS (Write After Approval): Update my email address.
2095
2096 2014-07-20  Doug Evans  <dje@google.com>
2097
2098         PR server/17147
2099         * remote.c (putpkt_binary): Add text to error message.
2100
2101 2014-07-20  Yao Qi  <yao@codesourcery.com>
2102
2103         * eval.c: Remove "Chill" from comments.
2104         * gdbtypes.h: Likewise.
2105         * symtab.h: Likewise.
2106
2107 2014-07-20  Yao Qi  <yao@codesourcery.com>
2108
2109         * std-operator.def: Update comments to TERNOP_SLICE.
2110
2111 2014-07-20  Yao Qi  <yao@codesourcery.com>
2112
2113         * std-operator.def: Remove BINOP_RANGE.
2114         * breakpoint.c (watchpoint_exp_is_const): Update.
2115         * expprint.c (dump_subexp_body_standard): Likewise.
2116         * eval.c (init_array_element): Remove dead code.
2117         (evaluate_subexp_standard): Likewise.
2118
2119 2014-07-20  Yao Qi  <yao@codesourcery.com>
2120
2121         * std-operator.def: Remove BINOP_IN.
2122         * breakpoint.c (watchpoint_exp_is_const): Update.
2123         * eval.c (evaluate_subexp_standard): Likewise.
2124         * expprint.c (dump_subexp_body_standard): Likewise.
2125
2126 2014-07-19  Ajit Agarwal  <ajitkum@xilinx.com>
2127
2128         * microblaze-tdep.c (microblaze_register_names): Add
2129         the rshr and rslr register names.
2130         (microblaze_gdbarch_init): Use of tdesc_has_registers.
2131         Use of tdesc_find_feature. Use of tdesc_data_alloc.
2132         Use of tdesc_numbered_register. Use of
2133         microblaze_register_g_packet_guesses. Use of
2134         tdesc_use_registers. Use of set_gdbarch_register_type.
2135         (microblaze_register_g_packet_guesses): New.
2136         * microblaze-tdep.h (microblaze_reg_num): Add
2137         field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2138         MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2139         (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2140         * features/microblaze-core.xml: New file.
2141         * features/microblaze-stack-protect.xml: New file.
2142         * features/microblaze-with-stack-protect.c: New file.
2143         * features/microblaze-with-stack-protect.xml: New file.
2144         * features/microblaze.xml: New file.
2145         * features/microblaze.c: New file.
2146         * features/Makefile (microblaze-with-stack-protect): Add
2147         microblaze-with-stack-protect microblaze and microblaze-expedite.
2148         * regformats/microblaze-with-stack-protect.dat: New file.
2149         * regformats/microblaze.dat: New file.
2150         * doc/gdb.texinfo (MicroBlaze Features): Added.
2151
2152 2014-07-18  Tom Tromey  <tromey@redhat.com>
2153
2154         * exec.c (exec_ops): Now static.
2155         * exec.h (exec_ops): Don't declare.
2156
2157 2014-07-18  Tom Tromey  <tromey@redhat.com>
2158
2159         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2160         to find_target_beneath.
2161         * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2162         find_target_beneath.
2163         (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2164
2165 2014-07-18  Tom Tromey  <tromey@redhat.com>
2166
2167         PR gdb/17130:
2168         * utils.c (quit): Use target_supports_terminal_ours.
2169         * target.h (target_supports_terminal_ours): Declare.
2170         * target.c (target_supports_delete_record): Don't check
2171         to_delete_record against NULL.
2172         (target_supports_terminal_ours): New function.
2173
2174 2014-07-18  Tom Tromey  <tromey@redhat.com>
2175
2176         PR gdb/17130:
2177         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2178         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2179         (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2180         * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2181         * windows-nat.c (windows_xfer_partial): Always delegate.
2182         * record-btrace.c (record_btrace_xfer_partial): Simplify
2183         delegation.
2184         (record_btrace_fetch_registers, record_btrace_store_registers)
2185         (record_btrace_prepare_to_store, record_btrace_resume)
2186         (record_btrace_wait, record_btrace_find_new_threads)
2187         (record_btrace_thread_alive): Likewise.
2188         * procfs.c (procfs_xfer_partial): Always delegate.
2189         * corelow.c (core_xfer_partial): Always delegate.
2190         * sol-thread.c (sol_find_new_threads): Simplify delegation.
2191
2192 2014-07-18  Tom Tromey  <tromey@redhat.com>
2193
2194         * exec.c (exec_make_note_section): Move earlier.
2195
2196 2014-07-17  Doug Evans  <dje@google.com>
2197
2198         PR gdb/17170
2199         * maint.c (count_symtabs_and_blocks): Handle NULL
2200         current_program_space.
2201         (report_command_stats): Check global enabled flag in addition to
2202         recorded enabled flag.
2203         (make_command_stats_cleanup): Handle msg_type == 0, startup.
2204
2205 2014-07-16  Pedro Alves  <palves@redhat.com>
2206
2207         * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2208
2209 2014-07-16  Tom Tromey  <tromey@redhat.com>
2210
2211         * target.h (struct target_ops) <to_delete_record>: Reformat
2212         comment.
2213
2214 2014-07-16  Tom Tromey  <tromey@redhat.com>
2215
2216         * target-delegates.c: Rebuild.
2217
2218 2014-07-15  Pierre Langlois  <pierre.langlois@embecosm.com>
2219
2220         * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2221         (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2222         (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2223         (avr_pointer_to_address): Likewise.
2224         (avr_address_class_type_flags): New function.
2225         (avr_address_class_type_flags_to_name): Likewise.
2226         (avr_address_class_name_to_type_flags): Likewise.
2227         (avr_gdbarch_init): Set address_class_type_flags,
2228         address_class_type_flags_to_name and
2229         address_class_name_to_type_flags.
2230
2231 2014-07-15  Pedro Alves  <palves@redhat.com>
2232
2233         * linux-nat.c (kill_callback): Save errno and work with saved
2234         copy.
2235
2236 2014-07-15  Simon Marchi  <simon.marchi@ericsson.com>
2237
2238         * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2239
2240 2014-07-14  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
2241
2242         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2243         breakpoint support correctly.
2244
2245 2014-07-14  Pedro Alves  <palves@redhat.com>
2246
2247         * utils.c (prompt_for_continue): Call target_terminal_ours.
2248
2249 2014-07-14  Pedro Alves  <palves@redhat.com>
2250
2251         * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2252         catch_errors.  Don't re-enable stdin or notify observers where,
2253         and rethrow error.
2254         (fetch_inferior_event_wrapper): Delete.
2255
2256 2014-07-14  Pedro Alves  <palves@redhat.com>
2257
2258         PR gdb/17072
2259         * top.c: Include "inf-loop.h".
2260         (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2261         field.
2262         (gdb_readline_wrapper_cleanup): Make the target async again, if it
2263         was async before.
2264         (gdb_readline_wrapper): Store whether the target is async, and
2265         make it sync.
2266
2267 2014-07-14  Pedro Alves  <palves@redhat.com>
2268
2269         PR gdb/17072
2270         * top.c (gdb_readline_wrapper_line): Tweak comment.
2271         (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2272         the input handler callback.
2273
2274 2014-07-14  Pedro Alves  <palves@redhat.com>
2275
2276         PR gdb/17072
2277         * main.c: Include event-top.h.
2278         (handle_command_errors): New function.
2279         (catch_command_errors, catch_command_errors_const): Use it.
2280
2281 2014-07-14  Pedro Alves  <palves@redhat.com>
2282
2283         * exceptions.c (catch_command_errors, catch_command_errors_const):
2284         Moved to main.c.
2285         * exceptions.h (catch_command_errors_ftype)
2286         (catch_command_errors_const_ftype): Moved to main.c.
2287         (catch_command_errors, catch_command_errors_const): Delete
2288         declarations.
2289         * main.c (catch_command_errors_ftype)
2290         (catch_command_errors_const_ftype): Moved here from exceptions.h.
2291         (catch_command_errors, catch_command_errors_const)): Moved here
2292         from exceptions.c and make static.
2293
2294 2014-07-14  Pedro Alves  <palves@redhat.com>
2295
2296         * exceptions.c (print_any_exception): Delete.
2297         (catch_exceptions_with_msg): Use exception_print instead of
2298         print_any_exception.
2299         (catch_errors): Use exception_fprintf instead of
2300         print_any_exception.
2301         (catch_command_errors, catch_command_errors_const): Use
2302         exception_print instead of print_any_exception.
2303
2304 2014-07-14  Pedro Alves  <palves@redhat.com>
2305
2306         * infcall.c (run_inferior_call): Set 'sync_execution' while
2307         running the inferior call.
2308
2309 2014-07-14  Pedro Alves  <palves@redhat.com>
2310
2311         * value.c (value_contents_equal): Delete function.
2312         * value.h (value_contents_equal): Delete declaration.
2313
2314 2014-07-14  Tom Tromey  <tromey@redhat.com>
2315
2316         PR exp/17106:
2317         * gdbtypes.c (is_dynamic_type_internal): New function, from
2318         is_dynamic_type.
2319         (is_dynamic_type): Rewrite.
2320         (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2321         (resolve_dynamic_struct): Likewise.
2322         (resolve_dynamic_type_internal): New function, from
2323         resolve_dynamic_type.
2324         (resolve_dynamic_type): Rewrite.
2325
2326 2014-07-14  Tom Tromey  <tromey@redhat.com>
2327
2328         * target.c (target_require_runnable): Also check record_stratum.
2329         Update comment.
2330
2331 2014-07-11  Yao Qi  <yao@codesourcery.com>
2332
2333         * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2334         thumb_instruction_restores_sp return true.
2335
2336 2014-07-11  Yao Qi  <yao@codesourcery.com>
2337
2338         * arm-tdep.c (thumb_instruction_restores_sp): New function.
2339         (thumb_in_function_epilogue_p): Call
2340         thumb_instruction_restores_sp.
2341
2342 2014-07-11  Yao Qi  <yao@codesourcery.com>
2343
2344         * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2345         'add sp, #imm'.
2346         (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2347
2348 2014-07-11  Gary Benson  <gbenson@redhat.com>
2349
2350         * amd64-linux-nat.c (gdbcore.h): Remove include.
2351         (regset.h): Likewise.
2352         (nat/linux-btrace.h): Likewise.
2353         (btrace.h): Likewise.
2354         (gdb_assert.h): Likewise.
2355         (string.h): Likewise.
2356         (sys/uio.h): Likewise.
2357         (sys/debugreg.h): Likewise.
2358         (sys/syscall.h): Likewise.
2359         (sys/procfs.h): Likewise.
2360         (sys/user.h): Likewise.
2361         (asm/ptrace.h): Likewise.
2362         (i386-nat.h): Likewise.
2363         * i386-linux-nat.c (i386-nat.h): Likewise.
2364         (regset.h): Likewise.
2365         (target.h): Likewise.
2366         (linux-nat.h): Likewise.
2367         (nat/linux-btrace.h): Likewise.
2368         (btrace.h): Likewise.
2369         (gdb_assert.h): Likewise.
2370         (string.h): Likewise.
2371         (sys/uio.h): Likewise.
2372         (sys/user.h): Likewise.
2373         (sys/procfs.h): Likewise.
2374         (sys/reg.h): Likewise.
2375         (sys/debugreg.h): Likewise.
2376         (ORIG_EAX): Remove definition.
2377
2378 2014-07-11  Gary Benson  <gbenson@redhat.com>
2379
2380         * i386-linux-nat.h: New file.
2381         * x86-linux-nat.h: Likewise.
2382         * x86-linux-nat.c: Likewise.
2383         * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2384         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2385         * config/i386/linux64.mh (NATDEPFILES): Likewise.
2386         * amd64-linux-nat.c (x86-linux-nat.h): New include.
2387         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2388         (PTRACE_SETREGSET): Likewise.
2389         (arch_lwp_info): Now in x86-linux-nat.c.
2390         (have_ptrace_getregset): Now in x86-linux-nat.h.
2391         (x86_linux_dr_get): Now in x86-linux-nat.c.
2392         (x86_linux_dr_set): Likewise.
2393         (x86_linux_dr_get_addr): Likewise.
2394         (x86_linux_dr_get_control): Likewise.
2395         (x86_linux_dr_get_status): Likewise.
2396         (update_debug_registers_callback): Likewise.
2397         (x86_linux_dr_set_control): Likewise.
2398         (x86_linux_dr_set_addr): Likewise.
2399         (x86_linux_prepare_to_resume): Likewise.
2400         (x86_linux_new_thread): Likewise.
2401         (x86_linux_new_fork): Likewise.
2402         (x86_linux_get_thread_area): Likewise.
2403         (super_post_startup_inferior): Likewise.
2404         (x86_linux_child_post_startup_inferior): Likewise.
2405         (AMD64_LINUX_USER64_CS): Likewise.
2406         (AMD64_LINUX_X32_DS): Likewise.
2407         (x86_linux_read_description): Likewise.
2408         (x86_linux_enable_btrace): Likewise.
2409         (x86_linux_disable_btrace): Likewise.
2410         (x86_linux_teardown_btrace): Likewise.
2411         (x86_linux_read_btrace): Likewise.
2412         (x86_linux_create_target): Likewise.
2413         (x86_linux_add_target): Likewise.
2414         * i386-linux-nat.c (x86-linux-nat.h): New include.
2415         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2416         (PTRACE_SETREGSET): Likewise.
2417         (arch_lwp_info): Now in x86-linux-nat.c.
2418         (have_ptrace_getregset): Now in x86-linux-nat.h.
2419         (x86_linux_dr_get): Now in x86-linux-nat.c.
2420         (x86_linux_dr_set): Likewise.
2421         (x86_linux_dr_get_addr): Likewise.
2422         (x86_linux_dr_get_control): Likewise.
2423         (x86_linux_dr_get_status): Likewise.
2424         (update_debug_registers_callback): Likewise.
2425         (x86_linux_dr_set_control): Likewise.
2426         (x86_linux_dr_set_addr): Likewise.
2427         (x86_linux_prepare_to_resume): Likewise.
2428         (x86_linux_new_thread): Likewise.
2429         (x86_linux_new_fork): Likewise.
2430         (x86_linux_get_thread_area): Likewise.
2431         (super_post_startup_inferior): Likewise.
2432         (x86_linux_child_post_startup_inferior): Likewise.
2433         (AMD64_LINUX_USER64_CS): Likewise.
2434         (AMD64_LINUX_X32_DS): Likewise.
2435         (x86_linux_read_description): Likewise.
2436         (x86_linux_enable_btrace): Likewise.
2437         (x86_linux_disable_btrace): Likewise.
2438         (x86_linux_teardown_btrace): Likewise.
2439         (x86_linux_read_btrace): Likewise.
2440         (x86_linux_create_target): Likewise.
2441         (x86_linux_add_target): Likewise.
2442
2443 2014-07-11  Gary Benson  <gbenson@redhat.com>
2444
2445         * amd64-linux-nat.c: Comment and whitespace changes.
2446         * i386-linux-nat.c: Comment and whitespace changes.
2447
2448 2014-07-11  Gary Benson  <gbenson@redhat.com>
2449
2450         * amd64-linux-nat.c (x86_linux_create_target): New function.
2451         (x86_linux_add_target): Likewise.
2452         (_initialize_amd64_linux_nat): Delegate to the above new functions.
2453         * i386-linux-nat.c (x86_linux_create_target): New function.
2454         (x86_linux_add_target): Likewise.
2455         (_initialize_i386_linux_nat): Delegate to the above new functions.
2456
2457 2014-07-11  Gary Benson  <gbenson@redhat.com>
2458
2459         * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2460         (ps_get_thread_area): Delegate to the above in 32-bit mode.
2461         * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2462         (ps_get_thread_area): Delegate to the above.
2463
2464 2014-07-11  Gary Benson  <gbenson@redhat.com>
2465
2466         * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2467         x86_linux_read_description.  All uses updated.  amd64-specific
2468         code conditionalized.  Conditionalized i386-specific code added.
2469         Redundant cast removed.
2470         * i386-linux-nat.c (i386_linux_read_description): Renamed to
2471         x86_linux_read_description.  All uses updated.  i386-specific
2472         code conditionalized.  Conditionalized amd64-specific code added.
2473         One sizeof replaced with the actual type it is describing.
2474
2475 2014-07-11  Gary Benson  <gbenson@redhat.com>
2476
2477         * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2478         x86_linux_dr_get.  All uses updated.
2479         (amd64_linux_dr_set): Renamed to
2480         x86_linux_dr_set.  All uses updated.
2481         (amd64_linux_dr_get_addr): Renamed to
2482         x86_linux_dr_get_addr.  All uses updated.
2483         (amd64_linux_dr_get_control): Renamed to
2484         x86_linux_dr_get_control.  All uses updated.
2485         (amd64_linux_dr_get_status): Renamed to
2486         x86_linux_dr_get_status.  All uses updated.
2487         (amd64_linux_dr_set_control): Renamed to
2488         x86_linux_dr_set_control.  All uses updated.
2489         (amd64_linux_dr_set_addr): Renamed to
2490         x86_linux_dr_set_addr.  All uses updated.
2491         (amd64_linux_prepare_to_resume): Renamed to
2492         x86_linux_prepare_to_resume.  All uses updated.
2493         (amd64_linux_new_thread): Renamed to
2494         x86_linux_new_thread.  All uses updated.
2495         (amd64_linux_new_fork): Renamed to
2496         x86_linux_new_fork.  All uses updated.
2497         (amd64_linux_child_post_startup_inferior): Renamed to
2498         x86_linux_child_post_startup_inferior.  All uses updated.
2499         (amd64_linux_enable_btrace): Renamed to
2500         x86_linux_enable_btrace.  All uses updated.
2501         (amd64_linux_disable_btrace): Renamed to
2502         x86_linux_disable_btrace.  All uses updated.
2503         (amd64_linux_teardown_btrace): Renamed to
2504         x86_linux_teardown_btrace.  All uses updated.
2505         (amd64_linux_read_btrace): Renamed to
2506         x86_linux_read_btrace.  All uses updated.
2507         * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2508         x86_linux_dr_get.  All uses updated.
2509         (i386_linux_dr_set): Renamed to
2510         x86_linux_dr_set.  All uses updated.
2511         (i386_linux_dr_get_addr): Renamed to
2512         x86_linux_dr_get_addr.  All uses updated.
2513         (i386_linux_dr_get_control): Renamed to
2514         x86_linux_dr_get_control.  All uses updated.
2515         (i386_linux_dr_get_status): Renamed to
2516         x86_linux_dr_get_status.  All uses updated.
2517         (i386_linux_dr_set_control): Renamed to
2518         x86_linux_dr_set_control.  All uses updated.
2519         (i386_linux_dr_set_addr): Renamed to
2520         x86_linux_dr_set_addr.  All uses updated.
2521         (i386_linux_prepare_to_resume): Renamed to
2522         x86_linux_prepare_to_resume.  All uses updated.
2523         (i386_linux_new_thread): Renamed to
2524         x86_linux_new_thread.  All uses updated.
2525         (i386_linux_new_fork): Renamed to
2526         x86_linux_new_fork.  All uses updated.
2527         (i386_linux_child_post_startup_inferior): Renamed to
2528         x86_linux_child_post_startup_inferior.  All uses updated.
2529         (i386_linux_enable_btrace): Renamed to
2530         x86_linux_enable_btrace.  All uses updated.
2531         (i386_linux_disable_btrace): Renamed to
2532         x86_linux_disable_btrace.  All uses updated.
2533         (i386_linux_teardown_btrace): Renamed to
2534         x86_linux_teardown_btrace.  All uses updated.
2535         (i386_linux_read_btrace): Renamed to
2536         x86_linux_read_btrace.  All uses updated.
2537
2538 2014-07-11  Adrian Sendroiu  <adrian.sendroiu@freescale.com>
2539
2540         * remote.c (extended_remote_post_attach): New function.
2541         (init_extended_remote_ops): Install it as to_post_attach method.
2542
2543 2014-07-09  Pedro Alves  <palves@redhat.com>
2544
2545         * infcmd.c (attach_command_post_wait): Don't call
2546         target_terminal_inferior here.
2547         (attach_command): Call it here instead.
2548
2549 2014-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
2550
2551         * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2552         field.
2553         * c-varobj.c (c_is_path_expr_parent): New function, moved core
2554         from varobj.c, with additional checks.
2555         (c_varobj_ops): Fill in is_path_expr_parent field.
2556         (cplus_varobj_ops): Fill in is_path_expr_parent field.
2557         * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2558         field.
2559         * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2560         ops method.
2561         (varobj_default_is_path_expr_parent): New function.
2562         * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2563         (varobj_default_is_path_expr_parent): Declare new function.
2564
2565 2014-07-08  Markus Metzger  <markus.t.metzger@intel.com>
2566
2567         * infcmd.c (finish_backward): Turn internal error into normal error.
2568
2569 2014-07-07  Pedro Alves  <palves@redhat.com>
2570
2571         PR gdb/17096
2572         * remote.c (async_handle_remote_sigint)
2573         (async_handle_remote_sigint_twice): Call
2574         gdb_call_async_signal_handler instead of
2575         mark_async_signal_handler.
2576
2577 2014-07-07  Tom Tromey  <tromey@redhat.com>
2578
2579         * target-delegates.c: Rebuild.
2580         * target.c (target_info_record): Remove.
2581         * record.c (info_record_command): Unconditionally call
2582         to_info_record.
2583         * target.h (struct target_ops) <to_info_record>: Use
2584         TARGET_DEFAULT_IGNORE.
2585         (target_info_record): Remove.
2586
2587 2014-07-07  Tom Tromey  <tromey@redhat.com>
2588
2589         * target.h (struct target_ops) <to_get_thread_local_address>: Use
2590         TARGET_DEFAULT_NORETURN.
2591         * target.c (generic_tls_error): New function.
2592         (target_translate_tls_address): Don't search target stack.
2593         * target-delegates.c: Rebuild.
2594         * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2595         stack.
2596         * linux-thread-db.c (thread_db_get_thread_local_address):
2597         Unconditionally call beneath target.
2598
2599 2014-07-03  Marc Khouzam  <marc.khouzam@ericsson.com>
2600
2601         * cli/cli-logging.c (pop_output_files): Assign targerr to
2602         gdb_stdtargerr.
2603
2604 2014-07-03  Andrew Burgess  <andrew.burgess@embecosm.com>
2605
2606         * MAINTAINERS (Write After Approval): Update my email address.
2607
2608 2014-07-02  Gary Benson  <gbenson@redhat.com>
2609
2610         * proc-service.c (ps_xfer_memory): Update comment.
2611         (ps_pstop): Remove unused function.
2612         (ps_pcontinue): Likewise.
2613         (ps_lstop): Likewise.
2614         (ps_lcontinue): Likewise.
2615         (ps_lgetxregsize): Likewise.
2616         (ps_lgetxregs): Likewise.
2617         (ps_lsetxregs): Likewise.
2618         (ps_plog): Likewise.
2619         (ps_ptread): Likewise.
2620         (ps_ptwrite): Likewise.
2621
2622 2014-07-01  Mark Wielaard  <mjw@redhat.com>
2623
2624         * dwarf2read.c (add_array_cv_type): New function.
2625         (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2626         (read_tag_volatile_type): Likewise.
2627
2628 2014-07-01  Tom Tromey  <tromey@redhat.com>
2629
2630         * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2631         * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2632         * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2633         (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2634         * command.h (cmd_cfunc_ftype): Move earlier.
2635         (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2636         (add_com, add_info): Use cmd_cfunc_ftype.
2637
2638 2014-06-30  Tom Tromey  <tromey@redhat.com>
2639
2640         * symtab.c (operator_chars): Make parameters and return type
2641         const.
2642         (file_matches): Make "files" const.
2643         (struct search_symbols_data) <files>: Now const.
2644         (search_symbols): Make "regexp" and "files" parameters const.
2645         Update.
2646         (symtab_symbol_info): Remove cast.
2647         (rbreak_command): Update.
2648         * symtab.h (search_symbols): Update.
2649
2650 2014-06-27  Yao Qi  <yao@codesourcery.com>
2651
2652         * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2653         Change parameter type to 'struct thread_info *'.  Caller
2654         updated.
2655         * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2656         Update declaration.
2657         * dummy-frame.c (struct dummy_frame_id): New.
2658         (dummy_frame_id_eq): New function.
2659         (struct dummy_frame) <id>: Change its type to 'struct
2660         dummy_frame_id'.
2661         (dummy_frame_push): Add parameter ptid and save it in
2662         dummy_frame_id.
2663         (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2664         inferior_ptid.
2665         (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2666         to inferior_ptid.
2667         (lookup_dummy_frame): Change parameter type to 'struct
2668         dummy_frame_id *'.  Callers updated.  Call dummy_frame_id_eq
2669         instead of frame_id_eq.
2670         (dummy_frame_pop): Add parameter ptid.  Callers updated.
2671         Update comments.  Compose dummy_frame_id and pass it to
2672         lookup_dummy_frame.
2673         (dummy_frame_discard): Add parameter ptid.
2674         (dummy_frame_sniffer): Compose dummy_frame_id and call
2675         dummy_frame_id_eq instead of frame_id_eq.
2676         (fprint_dummy_frames): Print ptid.
2677         * dummy-frame.h: Remove comments.
2678         (dummy_frame_push): Add ptid in declaration.
2679         (dummy_frame_pop, dummy_frame_discard): Likewise.
2680
2681 2014-06-26  Tom Tromey  <tromey@redhat.com>
2682
2683         * cli/cli-cmds.c (error_no_arg): Make "why" const.
2684         * command.h (error_no_arg): Update.
2685
2686 2014-06-26  Tom Tromey  <tromey@redhat.com>
2687
2688         * cli/cli-setshow.c (do_set_command): Make "arg" const.
2689         (do_show_command): Make "arg" const.
2690         * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2691
2692 2014-06-26  Tom Tromey  <tromey@redhat.com>
2693
2694         * record-full.c (record_full_get_bookmark): Make "args" const.
2695         (record_full_goto_bookmark): Make "raw_bookmark" const.
2696         * record.c (record_goto): New function.
2697         (cmd_record_goto): Use it.  Now static.
2698         * record.h (record_goto): Declare.
2699         (cmd_record_goto): Remove declaration.
2700         * target-delegates.c: Rebuild.
2701         * target.h (struct target_ops) <to_get_bookmark,
2702         to_goto_bookmark>: Make parameter const.
2703
2704 2014-06-26  Tom Tromey  <tromey@redhat.com>
2705
2706         * defs.h (generic_load): Update.
2707         * m32r-rom.c (m32r_load_gen): Make "filename" const.
2708         * monitor.c (monitor_load): Make "args" const.
2709         * remote-m32r-sdi.c (m32r_load): Make "args" const.
2710         * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2711         const.
2712         (mips_load): Make "file" const.
2713         * remote-sim.c (gdbsim_load): Make "args" const.
2714         * remote.c (remote_load): Make "name" const.
2715         * symfile.c (generic_load): Make "args" const.
2716         * target-delegates.c: Rebuild.
2717         * target.c (target_load): Make "arg" const.
2718         (debug_to_load): Make "args" const.
2719         * target.h (struct target_ops) <to_load>: Make parameter const.
2720         (target_load): Update.
2721
2722 2014-06-26  Tom Tromey  <tromey@redhat.com>
2723
2724         PR symtab/16902:
2725         * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2726         (dwarf2_physname, read_partial_die)
2727         (guess_partial_die_structure_name, fixup_partial_die)
2728         (guess_full_die_structure_name, anonymous_struct_prefix)
2729         (dwarf2_name): Use per-BFD obstack.
2730
2731 2014-06-26  Yao Qi  <yao@codesourcery.com>
2732
2733         * dummy-frame.c (dummy_frame_sniffer): Move local variables
2734         dummyframe and this_id into inner block below.
2735
2736 2014-06-26  Yao Qi  <yao@codesourcery.com>
2737
2738         * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2739         with "signal_pass[0]" in the initialization of signal_pass.
2740
2741 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
2742
2743         * record-btrace.c (record_btrace_generating_corefile)
2744         (record_btrace_prepare_to_generate_core)
2745         (record_btrace_done_generating_core): New.
2746         (record_btrace_xfer_partial, record_btrace_fetch_registers)
2747         (record_btrace_store_registers, record_btrace_prepare_to_store):
2748         Forward request when generating a core file.
2749         (record_btrace_open): Set record_btrace_generating_corefile to zero.
2750         (init_record_btrace_ops): Set to_prepare_to_generate_core and
2751         to_done_generating_core.
2752
2753 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
2754
2755         * target.h (target_ops) <to_prepare_to_generate_core>
2756         <to_done_generating_core>: New.
2757         (target_prepare_to_generate_core, target_done_generating_core): New.
2758         * target.c (target_prepare_to_generate_core)
2759         (target_done_generating_core): New.
2760         * target-delegates.c: Regenerate.
2761         * gcore.c: (write_gcore_file): Rename to ...
2762         (write_gcore_file_1): ...this.
2763         (write_gcore_file): Call target_prepare_to_generate_core
2764         and target_done_generating_core.
2765
2766 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
2767
2768         * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2769         * gcore.c (write_gcore_file): Free memory returned from
2770         make_corefile_notes.
2771         * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2772         * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2773
2774 2014-06-24  Yao Qi  <yao@codesourcery.com>
2775
2776         * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2777         (arm_linux_init_abi): Set skip_trampoline_code with
2778         gdbarch_skip_trampoline_code instead of
2779         find_solib_trampoline_target.
2780
2781 2014-06-24  Yao Qi  <yao@codesourcery.com>
2782
2783         * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2784         arm_skip_bx_reg returns non-zero.
2785
2786 2014-06-24  Yao Qi  <yao@codesourcery.com>
2787
2788         * arm-tdep.c (arm_skip_bx_reg): New function.
2789         (arm_skip_stub): Call arm_skip_bx_reg.
2790
2791 2014-06-23  Don Breazeal  <donb@codesourcery.com>
2792
2793         * MAINTAINERS: Add myself as write-after-approval maintainer.
2794
2795 2014-06-23  Pedro Alves  <palves@redhat.com>
2796
2797         * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2798         DR_CONTROL before setting DR0..DR3.
2799         * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2800         * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2801         bits of DR_CONTROL related to the debug register slot being
2802         disabled.  If all slots are vacant, clear local slowdown as well,
2803         and assert DR_CONTROL is 0.
2804
2805 2014-06-23  Siva Chandra Reddy  <sivachandra@google.com>
2806
2807         * python/lib/gdb/command/xmethods.py
2808         (get_method_matchers_in_loci):  Lookup xmethod matchers in the
2809         current progspace only if the string "progspace" matches LOCUS_RE.
2810
2811 2014-06-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
2812
2813         Fix --with-system-readline with readline-6.3 patch 5.
2814         * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2815         (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2816         types.
2817
2818 2014-06-20  Tom Tromey  <tromey@redhat.com>
2819
2820         * dwarf2read.c (dw2_get_real_path): Use correct type in
2821         OBSTACK_CALLOC.
2822         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2823
2824 2014-06-20  Gary Benson  <gbenson@redhat.com>
2825
2826         * common/gdb_thread_db.h: Moved to nat.  All includes updated.
2827         * common/glibc_thread_db.h: Likewise.
2828         * common/i386-cpuid.h: Likewise.
2829         * common/i386-gcc-cpuid.h: Likewise.
2830         * common/linux-btrace.h: Likewise.
2831         * common/linux-osdata.h: Likewise.
2832         * common/linux-procfs.h: Likewise.
2833         * common/linux-ptrace.h: Likewise.
2834         * common/mips-linux-watch.h: Likewise.
2835         * common/linux-btrace.c: Moved to nat.
2836         * common/linux-osdata.c: Likewise.
2837         * common/linux-procfs.c: Likewise.
2838         * common/linux-ptrace.c: Likewise.
2839         * common/mips-linux-watch.c: Likewise.
2840         * nat/gdb_thread_db.h: Moved from common.
2841         * nat/glibc_thread_db.h: Likewise.
2842         * nat/i386-cpuid.h: Likewise.
2843         * nat/i386-gcc-cpuid.h: Likewise.
2844         * nat/linux-btrace.c: Likewise.
2845         * nat/linux-btrace.h: Likewise.
2846         * nat/linux-osdata.c: Likewise.
2847         * nat/linux-osdata.h: Likewise.
2848         * nat/linux-procfs.c: Likewise.
2849         * nat/linux-procfs.h: Likewise.
2850         * nat/linux-ptrace.c: Likewise.
2851         * nat/linux-ptrace.h: Likewise.
2852         * nat/mips-linux-watch.c: Likewise.
2853         * nat/mips-linux-watch.h: Likewise.
2854         * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2855         (object file files): Reordered.
2856         * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2857         of glibc_thread_db.h.
2858
2859 2014-06-20  Gary Benson  <gbenson@redhat.com>
2860
2861         * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2862         (i386_dr_low_type): Moved to nat/i386-dregs.h.
2863         (i386_dr_low): Likewise.
2864         (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2865         (i386_dr_low_set_addr): Likewise.
2866         (i386_dr_low_get_addr): Likewise.
2867         (i386_dr_low_can_set_control): Likewise.
2868         (i386_dr_low_set_control): Likewise.
2869         (i386_dr_low_get_control): Likewise.
2870         (i386_dr_low_get_status): Likewise.
2871         (i386_get_debug_register_length): Likewise.
2872         * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2873         (i386_dr_low): Likewise.
2874         * nat/i386-dregs.c (i386-low.h): Remove include.
2875         (i386-nat.h): Likewise.
2876         (nat/i386-dregs.h): New include.
2877         (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2878         (i386_dr_low_set_addr): Likewise.
2879         (i386_dr_low_get_addr): Likewise.
2880         (i386_dr_low_can_set_control): Likewise.
2881         (i386_dr_low_set_control): Likewise.
2882         (i386_dr_low_get_control): Likewise.
2883         (i386_dr_low_get_status): Likewise.
2884         (i386_get_debug_register_length): Likewise.
2885         (debug_hw_points): Likewise.
2886
2887 2014-06-19  Iain Buclaw  <ibuclaw@gdcproject.org>
2888
2889         * Makefile.in (SFILES): Add d-exp.y.
2890         (YYFILES): Add d-exp.c.
2891         (YYOBJ): Add d-exp.o.
2892         (local-maintainer-clean): Delete d-exp.c.
2893         * d-exp.y: New file.
2894         * d-lang.h (d_parse): New declaration.
2895         (d_error): New declaration.
2896         * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2897         Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2898         PREC_ORDER operators.
2899         (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2900
2901 2014-06-19  Yao Qi  <yao@codesourcery.com>
2902
2903         * gdbthread.h (any_running): Remove the declaration.
2904         * thread.c (any_running): Remove.
2905
2906 2014-06-19  Yao Qi  <yao@codesourcery.com>
2907
2908         * gdbthread.h (struct thread_info) <state>: Change its type to
2909         'enum thread_state'.  Update comments.
2910
2911 2014-06-19  Pedro Alves  <palves@redhat.com>
2912
2913         * gdbthread.h (ALL_THREADS): Delete.
2914         (ALL_NON_EXITED_THREADS): New macro.
2915         * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2916         instead of ALL_THREADS.
2917         * infrun.c (find_thread_needs_step_over)
2918         (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2919         instead of ALL_THREADS.
2920         * record-btrace.c (record_btrace_open)
2921         (record_btrace_stop_recording, record_btrace_close)
2922         (record_btrace_is_replaying, record_btrace_resume)
2923         (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2924         * remote.c (append_pending_thread_resumptions): Likewise.
2925         * thread.c (thread_apply_all_command): Likewise.
2926
2927 2014-06-19  Gary Benson  <gbenson@redhat.com>
2928
2929         * i386-nat.c (i386_stopped_by_watchpoint):
2930         Use i386_dr_stopped_by_watchpoint.
2931         (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2932         (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2933
2934 2014-06-19  Gary Benson  <gbenson@redhat.com>
2935
2936         * nat/i386-dregs.c: New file.
2937         * Makefile.in (i386-dregs.o): New rule.
2938         * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2939         * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2940         * config/i386/darwin.mh (NATDEPFILES): Likewise.
2941         * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2942         * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2943         * config/i386/go32.mh (NATDEPFILES): Likewise.
2944         * config/i386/linux.mh (NATDEPFILES): Likewise.
2945         * config/i386/linux64.mh (NATDEPFILES): Likewise.
2946         * config/i386/mingw.mh (NATDEPFILES): Likewise.
2947         * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2948         * i386-nat.h (debug_hw_points): New declaration.
2949         * i386-nat.c (breakpoint.h): Remove include.
2950         (command.h): Likewise.
2951         (target.h): Likewise.
2952         (gdb_assert.h): Likewise.
2953         (debug_hw_points): Made nonstatic.
2954         (debug_printf): Now in i386-dregs.c.
2955         (TARGET_HAS_DR_LEN_8): Likewise.
2956         (DR_CONTROL_SHIFT): Likewise.
2957         (DR_CONTROL_SIZE): Likewise.
2958         (DR_RW_EXECUTE): Likewise.
2959         (DR_RW_WRITE): Likewise.
2960         (DR_RW_READ): Likewise.
2961         (DR_RW_IORW): Likewise.
2962         (DR_LEN_1): Likewise.
2963         (DR_LEN_2): Likewise.
2964         (DR_LEN_4): Likewise.
2965         (DR_LEN_8): Likewise.
2966         (DR_LOCAL_ENABLE_SHIFT): Likewise.
2967         (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2968         (DR_ENABLE_SIZE): Likewise.
2969         (DR_LOCAL_SLOWDOWN): Likewise.
2970         (DR_GLOBAL_SLOWDOWN): Likewise.
2971         (DR_CONTROL_RESERVED): Likewise.
2972         (I386_DR_CONTROL_MASK): Likewise.
2973         (I386_DR_VACANT): Likewise.
2974         (I386_DR_LOCAL_ENABLE): Likewise.
2975         (I386_DR_GLOBAL_ENABLE): Likewise.
2976         (I386_DR_DISABLE): Likewise.
2977         (I386_DR_SET_RW_LEN): Likewise.
2978         (I386_DR_GET_RW_LEN): Likewise.
2979         (I386_DR_WATCH_HIT): Likewise.
2980         (i386_wp_op_t): Likewise.
2981         (i386_show_dr): Likewise.
2982         (i386_length_and_rw_bits): Likewise.
2983         (i386_insert_aligned_watchpoint): Likewise.
2984         (i386_remove_aligned_watchpoint): Likewise.
2985         (i386_handle_nonaligned_watchpoint): Likewise.
2986         (i386_update_inferior_debug_regs): Likewise.
2987         (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2988         (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2989         (i386_region_ok_for_watchpoint):
2990         Use i386_dr_region_ok_for_watchpoint.
2991         (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2992
2993 2014-06-19  Gary Benson  <gbenson@redhat.com>
2994
2995         * i386-nat.c (i386_insert_hw_breakpoint): Use
2996         i386_insert_watchpoint.
2997         (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2998
2999 2014-06-19  Gary Benson  <gbenson@redhat.com>
3000
3001         * i386-nat.c (i386_dr_show): Renamed to
3002         i386_show_dr and made static.  All uses updated.
3003         (i386_dr_length_and_rw_bits): Renamed to
3004         i386_length_and_rw_bits and made static.
3005         All uses updated.
3006         (i386_dr_insert_aligned_watchpoint): Renamed to
3007         i386_insert_aligned_watchpoint and made static.
3008         All uses updated.
3009         (i386_dr_remove_aligned_watchpoint): Renamed to
3010         i386_remove_aligned_watchpoint and made static.
3011         All uses updated.
3012         (i386_dr_update_inferior_debug_regs): Renamed to
3013         i386_update_inferior_debug_regs and made static.
3014         All uses updated.
3015         * nat/i386-dregs.h (i386_dr_show): Removed.
3016         (i386_dr_length_and_rw_bits): Likewise.
3017         (i386_dr_insert_aligned_watchpoint): Likewise.
3018         (i386_dr_remove_aligned_watchpoint): Likewise.
3019         (i386_dr_update_inferior_debug_regs): Likewise.
3020
3021 2014-06-19  Gary Benson  <gbenson@redhat.com>
3022
3023         * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3024         * configure: Regenerate.
3025         * config.in: Likewise.
3026         * main.c (signal.h): New include.
3027         (setup_alternate_signal_stack): New function.
3028         (captured_main): Call the above.
3029         * cp-support.c (signal.h): New include.
3030         (catch_demangler_crashes): New flag.
3031         (SIGJMP_BUF): New define.
3032         (SIGSETJMP): Likewise.
3033         (SIGLONGJMP): Likewise.
3034         (gdb_demangle_jmp_buf): New static global.
3035         (gdb_demangle_attempt_core_dump): Likewise.
3036         (gdb_demangle_signal_handler): New function.
3037         (gdb_demangle): If catch_demangler_crashes is set, install the
3038         above signal handler before calling bfd_demangle, and restore
3039         the original signal handler afterwards.  Display the offending
3040         symbol and call demangler_warning the first time a segmentation
3041         fault is caught.
3042         (_initialize_cp_support): New maint set/show command.
3043
3044 2014-06-19  Gary Benson  <gbenson@redhat.com>
3045
3046         * utils.h (resource_limit_kind): New enum.
3047         (can_dump_core): New declaration.
3048         (warn_cant_dump_core): Likewise.
3049         (dump_core): Likewise.
3050         * utils.c (dump_core): Made nonstatic.  Added new
3051         parameter "limit_kind".
3052         (can_dump_core): Made nonstatic. Moved printing code to...
3053         (warn_cant_dump_core): New function.
3054         (can_dump_core_warn): Likewise.
3055         (internal_vproblem): Replace calls to can_dump_core with
3056         calls to can_dump_core_warn.  Supply new argument to each.
3057
3058 2014-06-19  Gary Benson  <gbenson@redhat.com>
3059
3060         * utils.h (demangler_vwarning): New declaration.
3061         (demangler_warning): Likewise.
3062         * utils.c (struct internal_problem)
3063         <user_settable_should_quit>: New field.
3064         <user_settable_should_dump_core>: Likewise
3065         (internal_error_problem): Add values for above new fields.
3066         (internal_warning_problem): Likewise.
3067         (demangler_warning_problem): New static global.
3068         (demangler_vwarning): New function.
3069         (demangler_warning): Likewise.
3070         (add_internal_problem_command): Selectively add commands.
3071         (_initialize_utils): New internal problem command.
3072         * maint.c (maintenance_demangler_warning): New function.
3073         (_initialize_maint_cmds): New command.
3074
3075 2014-06-18  Tom Tromey  <tromey@redhat.com>
3076
3077         * f-valprint.c (info_common_command_for_block): Update.
3078         * symtab.h (struct general_symbol_info) <common_block>: Now
3079         const.
3080
3081 2014-06-18  Tom Tromey  <tromey@redhat.com>
3082
3083         * symtab.h (struct symtab) <blockvector>: Now const.
3084         * ada-lang.c (ada_add_global_exceptions): Update.
3085         * buildsym.c (augment_type_symtab): Update.
3086         * dwarf2read.c (dw2_lookup_symbol): Update.
3087         * jit.c (finalize_symtab): Update.
3088         * jv-lang.c (add_class_symtab_symbol): Update.
3089         * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3090         Update.
3091         * objfiles.c (objfile_relocate1): Update.
3092         * psymtab.c (lookup_symbol_aux_psymtabs)
3093         (maintenance_check_psymtabs): Update.
3094         * python/py-symtab.c (stpy_global_block, stpy_static_block):
3095         Update.
3096         * spu-tdep.c (spu_catch_start): Update.
3097         * symmisc.c (dump_symtab_1): Update.
3098         * symtab.c (lookup_global_symbol_from_objfile)
3099         (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3100         (basic_lookup_transparent_type_quick)
3101         (basic_lookup_transparent_type, find_pc_sect_symtab)
3102         (find_pc_sect_line, search_symbols): Update.
3103         * block.c (find_block_in_blockvector): Make "bl" const.
3104         (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3105         const.
3106         (blockvector_contains_pc): Make "bv" const.
3107         (block_for_pc_sect): Update.
3108         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3109         (blockvector_contains_pc): Update.
3110         * breakpoint.c (resolve_sal_pc): Update.
3111         * inline-frame.c (block_starting_point_at): Update.
3112
3113 2014-06-18  Tom Tromey  <tromey@redhat.com>
3114
3115         * completer.c (complete_line): Make "line_buffer" const.
3116         * completer.h (complete_line): Update.
3117
3118 2014-06-18  Tom Tromey  <tromey@redhat.com>
3119
3120         * symtab.c (add_macro_name): Remove unneeded cast.
3121
3122 2014-06-18  Tom Tromey  <tromey@redhat.com>
3123
3124         * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3125         * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3126
3127 2014-06-18  Tom Tromey  <tromey@redhat.com>
3128
3129         * probe.c (info_probes_for_ops): Make "arg" const.
3130         * probe.h (info_probes_for_ops): Update.
3131
3132 2014-06-18  Tom Tromey  <tromey@redhat.com>
3133
3134         * varobj.c (varobj_create): Update.
3135         * valops.c (value_of_this): Update.
3136         * tracepoint.c (add_local_symbols, scope_info): Update.
3137         * symtab.h (struct general_symbol_info) <block>: Now const.
3138         * symtab.c (skip_prologue_sal)
3139         (default_make_symbol_completion_list_break_on)
3140         (skip_prologue_using_sal): Update.
3141         * stack.h (iterate_over_block_locals)
3142         (iterate_over_block_local_vars): Update.
3143         * stack.c (print_frame_args): Update.
3144         (iterate_over_block_locals, iterate_over_block_local_vars): Make
3145         parameter const.
3146         (get_selected_block): Make return type const.
3147         * python/py-frame.c (frapy_block): Update.
3148         * python/py-block.c (gdbpy_block_for_pc): Update.
3149         * p-exp.y (%union) <bval>: Now const.
3150         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3151         * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3152         * m2-exp.y (%union) <bval>: Now const.
3153         * linespec.c (get_current_search_block): Make return type const.
3154         (create_sals_line_offset, find_label_symbols): Update.
3155         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3156         Update.
3157         (block_starting_point_at): Make "block" const.
3158         * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3159         (check_exception_resume): Update.
3160         * guile/scm-frame.c (gdbscm_frame_block): Update.
3161         * guile/scm-block.c (gdbscm_lookup_block): Update.
3162         * frame.h (get_frame_block): Update.
3163         (get_selected_block): Make return type const.
3164         * frame.c (frame_id_inner): Update.
3165         * f-valprint.c (info_common_command_for_block)
3166         (info_common_command): Update.
3167         * dwarf2loc.c (dwarf2_find_location_expression)
3168         (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3169         (locexpr_describe_location_piece): Update.
3170         * c-exp.y (%union) <bval>: Now const.
3171         * breakpoint.c (resolve_sal_pc): Update.
3172         * blockframe.c (get_frame_block):Make return type const.
3173         (get_pc_function_start, get_frame_function, find_pc_sect_function)
3174         (block_innermost_frame): Update.
3175         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3176         (block_for_pc, block_for_pc_sect): Update.
3177         * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3178         'pblock' const.
3179         (block_for_pc_sect, block_for_pc): Make return type const.
3180         * ax-gdb.c (gen_expr): Update.
3181         * alpha-mdebug-tdep.c (find_proc_desc): Update.
3182         * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3183         (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3184         (ada_read_var_value): Update.
3185         * ada-exp.y (struct name_info) <block>: Now const.
3186         (%union): Likewise.
3187         (block_lookup): Constify.
3188
3189 2014-06-18  Gary Benson  <gbenson@redhat.com>
3190
3191         * nat/i386-dregs.h: New file.
3192         * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3193         * i386-nat.h (i386-dregs.h): New include.
3194         (DR_FIRSTADDR): Now in i386-dregs.h.
3195         (DR_LASTADDR): Likewise.
3196         (DR_NADDR): Likewise.
3197         (DR_STATUS): Likewise.
3198         (DR_CONTROL): Likewise.
3199         (i386_debug_reg_state): Likewise.
3200         * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3201
3202 2014-06-18  Don Breazeal  <donb@codesourcery.com>
3203
3204         * breakpoint.c (set_longjmp_breakpoint): Call
3205         momentary_breakpoint_from_master with additional argument.
3206         (set_longjmp_breakpoint_for_call_dummy): Call
3207         momentary_breakpoint_from_master with additional argument.
3208         (set_std_terminate_breakpoint): Call
3209         momentary_breakpoint_from_master with additional argument.
3210         (momentary_breakpoint_from_master): Add argument to function
3211         definition and use it to initialize structure member flag.
3212         (clone_momentary_breakpoint): Call
3213         momentary_breakpoint_from_master with additional argument.
3214         * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3215         member flags set in momentary_breakpoint_from_master.
3216
3217 2014-06-18  Gary Benson  <gbenson@redhat.com>
3218
3219         * i386-nat.c (i386_show_dr): Renamed to
3220         i386_dr_show and made nonstatic.  All uses updated.
3221         (i386_length_and_rw_bits): Renamed to
3222         i386_dr_length_and_rw_bits and made nonstatic.
3223         All uses updated.
3224         (i386_insert_aligned_watchpoint): Renamed to
3225         i386_dr_insert_aligned_watchpoint and made nonstatic.
3226         All uses updated.
3227         (i386_remove_aligned_watchpoint): Renamed to
3228         i386_dr_remove_aligned_watchpoint and made nonstatic.
3229         All uses updated.
3230         (i386_update_inferior_debug_regs): Renamed to
3231         i386_dr_update_inferior_debug_regs and made nonstatic.
3232         All uses updated.
3233
3234 2014-06-18  Gary Benson  <gbenson@redhat.com>
3235
3236         * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3237         (i386_dr_low_can_set_control): Likewise.
3238         (i386_dr_low_set_addr): Likewise.
3239         (i386_dr_low_set_control): Likewise.
3240         (i386_dr_low_get_addr): Likewise.
3241         (i386_dr_low_get_status): Likewise.
3242         (i386_dr_low_get_control): Likewise.
3243         (i386_insert_aligned_watchpoint): Use new macros.
3244         (i386_update_inferior_debug_regs): Likewise.
3245         (i386_stopped_data_address): Likewise.
3246
3247 2014-06-18  Gary Benson  <gbenson@redhat.com>
3248
3249         * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3250         New parameter.  All uses updated.
3251
3252 2014-06-18  Gary Benson  <gbenson@redhat.com>
3253
3254         * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3255         All uses updated.
3256
3257 2014-06-18  Gary Benson  <gbenson@redhat.com>
3258
3259         * i386-nat.c (debug_printf): New macro.
3260         (i386_get_debug_register_length): Likewise.
3261         (TARGET_HAS_DR_LEN_8): Use above macro.
3262         (i386_show_dr): Use debug_printf instead of puts_unfiltered
3263         and printf_unfiltered.  Use phex to format values.
3264
3265 2014-06-18  Gary Benson  <gbenson@redhat.com>
3266
3267         * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3268         Make const.
3269
3270 2014-06-18  Gary Benson  <gbenson@redhat.com>
3271
3272         * i386-nat.c: Comment changes.
3273
3274 2014-06-18  Gary Benson  <gbenson@redhat.com>
3275
3276         * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3277
3278 2014-06-18  Gary Benson  <gbenson@redhat.com>
3279
3280         * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3281         (i386_insert_aligned_watchpoint): Likewise.
3282         (i386_remove_aligned_watchpoint): Likewise.
3283         (i386_handle_nonaligned_watchpoint): Likewise.
3284
3285 2014-06-18  Gary Benson  <gbenson@redhat.com>
3286
3287         * i386-nat.c: Whitespace changes.
3288
3289 2014-06-17  Samuel Bronson  <naesten@gmail.com>
3290
3291         * MAINTAINERS: Update Roland McGrath's email address.
3292         Thanks to Sergio Durigan Junior for pointing out that he left
3293         Red Hat a while ago, and giving me a current address.
3294
3295 2014-06-17  Tom Tromey  <tromey@redhat.com>
3296
3297         * utils.h (savestring): Remove declaration.
3298
3299 2014-06-17  Tom Tromey  <tromey@redhat.com>
3300
3301         * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3302
3303 2014-06-16  Keith Seitz  <keiths@redhat.com>
3304
3305         PR mi/15863
3306         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3307         to update the varobj if inferior_ptid is null_ptid.
3308
3309 2014-06-16  Tom Tromey  <tromey@redhat.com>
3310
3311         * target.h (struct target_ops) <to_info_proc>: Make parameter
3312         const.
3313         (target_info_proc): Update.
3314         * target.c (target_info_proc): Make "args" const.
3315         * procfs.c (procfs_info_proc): Update.
3316         * linux-tdep.c (linux_info_proc): Update.
3317         (linux_core_info_proc_mappings): Make "args" const.
3318         (linux_core_info_proc): Update.
3319         * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3320         * gdbarch.c: Rebuild.
3321         * gdbarch.h: Rebuild.
3322         * corelow.c (core_info_proc): Update.
3323
3324 2014-06-16  Tom Tromey  <tromey@redhat.com>
3325
3326         * target.h (struct target_ops) <to_disconnect>: Make parameter
3327         const.
3328         (target_disconnect): Update.
3329         * target.c (target_disconnect): Make "args" const.
3330         * target-delegates.c: Rebuild.
3331         * remote.c (remote_disconnect): Update.
3332         * record.h (record_disconnect): Update.
3333         * record.c (record_disconnect): Update.
3334         * inf-child.c (inf_child_disconnect): Update.
3335
3336 2014-06-16  Tom Tromey  <tromey@redhat.com>
3337
3338         * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3339         * target.c (debug_to_rcmd, default_rcmd): Update.
3340         * target-delegates.c: Rebuild.
3341         * remote.c (remote_rcmd): Update.
3342         * monitor.c (monitor_rcmd): Update.
3343
3344 2014-06-16  Pedro Alves  <palves@redhat.com>
3345
3346         * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3347         (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3348         have OBJF_SHARED set.
3349         * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3350         (shared_objfile_contains_address_p): ... this.  Check OBJF_SHARED
3351         instead of OBJF_USERLOADED.
3352         * objfiles.h (OBJF_SHARED): Update comment.
3353         (userloaded_objfile_contains_address_p): Rename to ...
3354         (shared_objfile_contains_address_p): ... this, and update
3355         comments.
3356         * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3357         new objfile.
3358         (remove_symbol_file_command): Skip objfiles that don't have
3359         OBJF_SHARED set.
3360
3361 2014-06-16  Tom Tromey  <tromey@redhat.com>
3362
3363         * minsyms.h (prim_record_minimal_symbol)
3364         (prim_record_minimal_symbol_and_info): Update comments.
3365
3366 2014-06-14  Eli Zaretskii  <eliz@gnu.org>
3367
3368         * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3369         or --without-guile, according to how GDB was built.
3370
3371 2014-06-13  Tom Tromey  <tromey@redhat.com>
3372
3373         * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3374         to help_list.
3375         * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3376         to help_list.
3377         * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3378         help_list.
3379         * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3380         help_list.Pass all_commands, not -1, to help_list.
3381         * cli/cli-dump.c (dump_command, append_command)
3382         (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3383         (binary_dump_command, binary_append_command): Pass all_commands,
3384         not -1, to help_list.
3385         * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3386         -1, to help_list.
3387         * valprint.c (set_print, set_print_raw): Pass all_commands, not
3388         -1, to help_list.
3389         * typeprint.c (set_print_type): Pass all_commands, not -1, to
3390         help_list.
3391         * top.c (set_history): Pass all_commands, not -1, to help_list.
3392         * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3393         all_commands, not -1, to help_list.
3394         * symfile.c (overlay_command): Pass all_commands, not -1, to
3395         help_list.
3396         * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3397         help_list.
3398         * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3399         help_list.
3400         * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3401         -1, to help_list.
3402         * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3403         not -1, to help_list.
3404         * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3405         not -1, to help_list.
3406         * maint.c (maintenance_command, maintenance_info_command)
3407         (maintenance_print_command, maintenance_set_cmd): Pass
3408         all_commands, not -1, to help_list.
3409         * macrocmd.c (macro_command): Pass all_commands, not -1, to
3410         help_list.
3411         * language.c (set_check): Pass all_commands, not -1, to help_list.
3412         * infcmd.c (unset_command): Pass all_commands, not -1, to
3413         help_list.
3414         * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3415         help_list.
3416         * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3417         help_list.
3418         * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3419         help_list.
3420         * breakpoint.c (save_command): Pass all_commands, not -1, to
3421         help_list.
3422         * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3423         all_commands, not -1, to help_list.
3424
3425 2014-06-12  Pierre Langlois  <pierre.langlois@embecosm.com>
3426
3427         * regcache.c (struct register_to_invalidate): New structure.
3428         (do_register_invalidate, make_cleanup_regcache_invalidate): New
3429         functions.
3430         (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3431
3432 2014-06-12  Yao Qi  <yao@codesourcery.com>
3433
3434         * varobj.c (varobj_get_num_children): Call
3435         varobj_is_dynamic_p.
3436         (varobj_list_children): Likewise.
3437         (varobj_update): Likewise.  Update comments.
3438
3439 2014-06-12  Yao Qi  <yao@codesourcery.com>
3440
3441         * varobj.c (varobj_pretty_printed_p): Rename to ...
3442         (varobj_is_dynamic_p): ... this.  New function.
3443         * varobj.h (varobj_pretty_printed_p): Remove declaration.
3444         (varobj_is_dynamic_p): Declare.
3445         * mi/mi-cmd-var.c (print_varobj): All callers updated.
3446         (mi_print_value_p, varobj_update_one): Likewise.
3447
3448 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
3449             Yao Qi  <yao@codesourcery.com>
3450
3451         * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3452         (varobj_get_iterator): Wrap up code for pretty-printer by
3453         "#if HAVE_PYTHON" and "#endif".
3454         (update_dynamic_varobj_children): Likewise.
3455
3456 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
3457             Yao Qi  <yao@codesourcery.com>
3458
3459         * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3460         gdb_python_initialized is false.  Move some code from varobj.c.
3461         * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3462         * varobj.c: Move "varobj-iter.h" inclusion earlier.
3463         (struct varobj_item): Moved to varobj-iter.h".
3464         (varobj_clear_saved_item): New function.
3465         (update_dynamic_varobj_children): Move python-related code to
3466         py-varobj.c.
3467         (free_variable): Call varobj_clear_saved_item and
3468         varobj_iter_delete.
3469
3470 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
3471             Yao Qi  <yao@codesourcery.com>
3472
3473         * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3474         (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3475         (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3476         (py-varobj.o): New rule.
3477         * python/py-varobj.c: New file.
3478         * python/python-internal.h (py_varobj_get_iterator): Declare.
3479         * varobj-iter.h: New file.
3480         * varobj.c: Include "varobj-iter.h"
3481         (struct varobj) <child_iter>: Change its type from "PyObject *"
3482         to "struct varobj_iter *".
3483         <saved_item>: Likewise.
3484         [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3485         [HAVE_PYTHON] (varobj_get_iterator): New function.
3486         (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3487         python-specific code to python/py-varobj.c.
3488         (install_visualizer): Call varobj_iter_delete instead of
3489         Py_XDECREF.
3490         * varobj.h (varobj_ensure_python_env): Declare.
3491
3492 2014-06-12  Yao Qi  <yao@codesourcery.com>
3493
3494         * varobj.c (struct varobj_item): New structure.
3495         (create_child_with_value): Update declaration.
3496         (varobj_add_child): Replace arguments 'name' and 'value' with
3497         'item'.  All callers updated.
3498         (install_dynamic_child): Likewise.
3499         (update_dynamic_varobj_children): Likewise.
3500         (varobj_add_child): Likewise.
3501         (create_child_with_value): Likewise.
3502
3503 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
3504
3505         * NEWS: Create a new section for the next release branch.
3506         Rename the section of the current branch, now that it has
3507         been cut.
3508
3509 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
3510
3511         GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3512         * version.in: Bump version to 7.8.50.DATE-cvs.
3513
3514 2014-06-11  Pedro Alves  <palves@redhat.com>
3515
3516         PR remote/17028
3517         * ser-mingw.c (net_windows_socket_check_pending): New function.
3518         (net_windows_select_thread): Ignore spurious wakeups.  Use
3519         net_windows_socket_check_pending.
3520         (net_windows_wait_handle): Check for pending events with
3521         ioctlsocket, through net_windows_socket_check_pending, instead of
3522         checking the socket's event.
3523
3524 2014-06-10  Siva Chandra Reddy  <sivachandra@google.com>
3525
3526         * python/python-internal.h (gdb_PyObject_GetAttrString)
3527         (gdb_PyObject_HasAttrString): New inline function definitions.
3528         * py-value.c (get_field_flag): Remove the now unnecessary cast to
3529         char * of the second argument to PyObject_GetAttrString.
3530
3531 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
3532
3533         * serial.c (serial_write): Fix index of character to be printed
3534         in call to serial_logchar when serial debug traces are enabled.
3535
3536 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
3537
3538         * gdbtypes (resolve_dynamic_range): Add function description.
3539
3540 2014-06-09  Pedro Alves  <palves@redhat.com>
3541
3542         * linux-nat.c (linux_child_follow_fork): Initialize status with
3543         W_STOPCODE (0) instead of 0.  Remove shodowing 'status' local from
3544         inner block.  Only pass the signal to PTRACE_DETACH if in pass
3545         state.
3546
3547 2014-06-09  Gary Benson  <gbenson@redhat.com>
3548
3549         * common/signals.c (gdb_signal_from_host): Reorder to separate
3550         the always-available ANSI-standard signals from the signals that
3551         require checking.
3552         (do_gdb_signal_to_host): Likewise.
3553         * proc-events.c (signal_table): Likewise.
3554
3555 2014-06-08  Hui Zhu  <hui@codesourcery.com>
3556
3557         * common/linux-ptrace.c (linux_disable_event_reporting): New
3558         function.
3559         * common/linux-ptrace.h (linux_disable_event_reporting): New
3560         declaration.
3561         * linux-nat.c (linux_child_follow_fork): Do a single step before
3562         detach.
3563
3564 2014-06-07  Keith Seitz  <keiths@redhat.com>
3565
3566         Revert:
3567         PR c++/16253
3568         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3569         from symbol_matches_domain in symtab.c. All local callers
3570         of symbol_matches_domain updated.
3571         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3572         search STRUCT_DOMAIN.
3573         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3574         independently.  standard_lookup will do that automatically.
3575         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3576         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3577         (cp_lookup_symbol_in_namespace): Likewise.
3578         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3579         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3580         may return a STRUCT_DOMAIN match.
3581         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3582         * cp-support.c: Include language.h.
3583         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3584         VAR_DOMAIN.
3585         * psymtab.c (match_partial_symbol): Compare the requested
3586         domain with the symbol's domain directly.
3587         (lookup_partial_symbol): Likewise.
3588         * symtab.c (lookup_symbol_in_language): Explain when/why
3589         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3590         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3591         appropriate languages.
3592         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3593         and moved to ada-lang.c
3594         (lookup_block_symbol): Explain that this function only returns
3595         symbol matching the requested DOMAIN.
3596         Compare the requested domain with the symbol's domain directly.
3597         (iterate_over_symbols): Compare the requested domain with the
3598         symbol's domain directly.
3599         * symtab.h (symbol_matches_domain): Remove.
3600
3601 2014-06-06  Doug Evans  <xdje42@gmail.com>
3602
3603         * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3604         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3605         (gdbscm_guile_version_is_at_least): Declare.
3606         (gdbscm_scm_string_to_int): Declare.
3607         * guile/guile.c (gdbscm_guile_major_version): New global.
3608         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3609         (guile_datadir): New static global.
3610         (gdbscm_guile_data_directory): New function.
3611         (initialize_scheme_side): Update.
3612         (misc_guile_functions): Add guile-data-directory.
3613         (initialize_gdb_module): Fetch guile version number.
3614         * guile/lib/gdb.scm: Remove call to add-to-load-path.
3615         * guile/lib/gdb/init.scm (%initialize!): Ditto.
3616         * guile/lib/gdb/boot.scm: Use guile-data-directory.
3617         * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3618         comments.
3619         * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3620         * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3621         * guile/scm-value.c (gdbscm_value_to_string): Only call
3622         scm_port_conversion_strategy if Guile version >= 2.0.6.
3623
3624 2014-06-06  Mingjie Xing  <mingjie.xing@gmail.com>
3625
3626         * main.c (print_gdb_help): Add -q and --silent.
3627
3628 2014-06-06  Gary Benson  <gbenson@redhat.com>
3629
3630         * common/signals.c: Remove preprocessor conditionals for
3631         always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3632         SIGSEGV and SIGTERM.
3633         * proc-events.c: Likewise.
3634
3635 2014-06-06  Markus Metzger  <markus.t.metzger@intel.com>
3636
3637         * symfile.c (symfile_free_objfile): Remove restriction to
3638         OBJF_USERLOADED.
3639         * symfile-mem.c (symbol_file_add_from_memory): Call
3640         add_target_sections_of_objfile.
3641
3642 2014-06-05  Ludovic Courtès  <ludo@gnu.org>
3643
3644         * guile/scm-value.c (gdbscm_history_append_x): Use
3645         'vlscm_get_value_smob_arg_unsafe' instead of
3646         'vlscm_scm_to_value'.
3647
3648 2014-06-05  Simon Marchi  <simon.marchi@ericsson.com>
3649
3650         PR mi/15806
3651         * utils.c (printchar): Don't escape at all if quoter is NUL.
3652         Update function documentation to clarify effect of parameter
3653         QUOTER.
3654         * remote.c (escape_buffer): Pass '\\' as the quoter to
3655         fputstrn_unfiltered.
3656         * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3657         generate the output.
3658         (mi_solib_unloaded): Same.
3659
3660 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
3661
3662         * development.sh: Delete.
3663         * Makefile.in (config.status): Adjust dependency on development.sh.
3664         * configure.ac: Adjust development.sh source call.
3665         * configure: Regenerate.
3666
3667 2014-06-04  Doug Evans  <xdje42@gmail.com>
3668
3669         * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3670         is_scheme_bkpt, spec.
3671         (bpscm_make_breakpoint_smob): Initialize new members.
3672         (gdbscm_create_breakpoint_x): Split into two ...
3673         (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3674         (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3675         (scheme_function breakpoint_functions): Update.
3676         * guile/lib/gdb.scm: Delete create-breakpoint!.  Rename
3677         breakpoint-delete! to delete-breakpoint!.  Add make-breakpoint,
3678         register-breakpoint!.
3679
3680 2014-06-04  Joel Brobecker  <brobecker@adacorer.com>
3681
3682         PR server/17023
3683         * mem-break.c (z_type_supported): Return zero if
3684         THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3685
3686 2014-06-04  Tom Tromey  <tromey@redhat.com>
3687
3688         * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3689         value_from_contents_and_address_unresolved.
3690         (ada_template_to_fixed_record_type_1): Likewise.
3691         (ada_which_variant_applies): Likewise.
3692         * value.h (value_from_contents_and_address_unresolved): Declare.
3693         * value.c (value_from_contents_and_address_unresolved): New
3694         function.
3695         * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3696         <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3697         (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3698
3699 2014-06-04  Tom Tromey  <tromey@redhat.com>
3700
3701         * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3702
3703 2014-06-04  Tom Tromey  <tromey@redhat.com>
3704
3705         * procfs.c (procfs_attach): Make "args" const.
3706         * windows-nat.c (windows_attach): Make "args" const.
3707         * nto-procfs.c (procfs_attach): Make "args" const.
3708         * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3709         * go32-nat.c (go32_attach): Make "args" const.
3710         * gnu-nat.c (gnu_attach): Make "args" const.
3711         * darwin-nat.c (darwin_attach): Make "args" const.
3712         * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3713         * linux-nat.c (linux_nat_attach): Make "args" const.
3714         * remote.c (extended_remote_attach_1, extended_remote_attach):
3715         Make "args" const.
3716         * target.h (struct target_ops) <to_attach>: Make "args" const.
3717         (find_default_attach): Likewise.
3718         * utils.c (parse_pid_to_attach): Make "args" const.
3719         * utils.h (parse_pid_to_attach): Update.
3720
3721 2014-06-04  Tom Tromey  <tromey@redhat.com>
3722
3723         * target-delegates.c: Rebuild.
3724         * target.c (default_thread_address_space): New function.
3725         (target_thread_address_space): Simplify.
3726         * target.h (struct target_ops) <to_thread_address_space>: Add
3727         TARGET_DEFAULT_FUNC.
3728
3729 2014-06-04  Doug Evans  <xdje42@gmail.com>
3730
3731         * guile/scm-type.c (type_smob): Remove duplicate typedef.
3732
3733 2014-06-04  Markus Metzger  <markus.t.metzger@intel.com>
3734
3735         * record-btrace.c: Include event-loop.h and inf-loop.h.
3736         (record_btrace_resume_exec_dir)
3737         (record_btrace_async_inferior_event_handler)
3738         (record_btrace_handle_async_inferior_event): New.
3739         (record_btrace_open): Create async event handler.
3740         (record_btrace_close): Delete async event handler.
3741         (record_btrace_resume): Set record_btrace_resume_exec_dir,
3742         Mark async event handler.
3743         (record_btrace_execution_direction): New.
3744         (init_record_btrace_ops): Initialize to_execution_direction.
3745
3746 2014-06-03  Doug Evans  <xdje42@gmail.com>
3747
3748         * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3749         (gdbscm_make_parameter): Ditto.
3750
3751 2014-06-03  Doug Evans  <dje@google.com>
3752
3753         * exec.c (exec_close_1): Call clear_section_table instead of
3754         resize_section_table.
3755         (clear_section_table): New function.
3756         (resize_section_table): Make static.  Rename arg num_added to
3757         adjustment.
3758         * exec.h (clear_section_table): Declare.
3759         (resize_section_table): Delete.
3760         * progspace.c (release_program_space): Call clear_section_table
3761         instead of resize_section_table.
3762
3763 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
3764
3765         * NEWS (Python Scripting): Add entry about the new xmethods
3766         feature.
3767
3768 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
3769
3770         * python/py-xmethods.c: New file.
3771         * python/py-objfile.c (objfile_object): New field 'xmethods'.
3772         (objfpy_dealloc): XDECREF on the new xmethods field.
3773         (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3774         field.
3775         (objfpy_get_xmethods): New function.
3776         (objfile_getset): New entry 'xmethods'.
3777         * python/py-progspace.c (pspace_object): New field 'xmethods'.
3778         (pspy_dealloc): XDECREF on the new xmethods field.
3779         (pspy_new, pspace_to_pspace_object): Initialize xmethods
3780         field.
3781         (pspy_get_xmethods): New function.
3782         (pspace_getset): New entry 'xmethods'.
3783         * python/python-internal.h: Add declarations for new functions.
3784         * python/python.c (_initialize_python): Invoke
3785         gdbpy_initialize_xmethods.
3786         * python/lib/gdb/__init__.py (xmethods): New
3787         attribute.
3788         * python/lib/gdb/xmethod.py: New file.
3789         * python/lib/gdb/command/xmethods.py: New file.
3790
3791 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
3792
3793         * eval.c (evaluate_subexp_standard): Call the xmethod if the
3794         best match method returned by find_overload_match is an xmethod.
3795         * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3796         the best matching operator returned by find_overload_match is an
3797         xmethod.
3798         * valops.c: #include "extension.h".
3799         (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3800         Return void.  The list of matching source methods is returned in
3801         "fn_list" and a vector of matching debug method workers is
3802         returned in "xm_worker_vec".  Update all callers.
3803         (value_find_oload_method_list): Likewise.
3804         (find_oload_champ): Add "xm_worker_vec" parameter.  If it is
3805         non-NULL, then the index of the best matching method in this
3806         vector is returned.  Update all callers.
3807         (find_overload_match): Include xmethods while performing overload
3808         resolution.
3809
3810 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
3811
3812         * defs.h (enum lval_type): New enumerator "lval_xcallable".
3813         * extension-priv.h (struct extension_language_ops): Add the
3814         xmethod interface.
3815         * extension.c (new_xmethod_worker, clone_xmethod_worker,
3816         get_matching_xmethod_workers, get_xmethod_argtypes,
3817         invoke_xmethod, free_xmethod_worker,
3818         free_xmethod_worker_vec): New functions.
3819         * extension.h: #include "common/vec.h".
3820         New function declarations.
3821         (struct xmethod_worker): New struct.
3822         (VEC (xmethod_worker_ptr)): New vector type.
3823         (xmethod_worker_ptr): New typedef.
3824         (xmethod_worker_vec): Likewise.
3825         * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3826         builtin_type.
3827         * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3828         (struct builtin_type): New field "xmethod".
3829         * valarith.c (value_ptradd): Assert that the value argument is not
3830         lval_xcallable.
3831         * valops.c (value_must_coerce_to_target): Return 0 for
3832         lval_xcallable values.
3833         * value.c (struct value): New field XM_WORKER in the field
3834         LOCATION.
3835         (value_address, value_raw_address): Return 0 for lval_xcallable
3836         values.
3837         (set_value_address): Assert that the value is not an
3838         lval_xcallable.
3839         (value_free): Free the associated xmethod worker when freeing
3840         lval_xcallable values.
3841         (set_value_component_location): Assert that the WHOLE value is not
3842         lval_xcallable.
3843         (value_of_xmethod, call_xmethod): New functions.
3844         * value.h: Declare "struct xmethod_worker".
3845         Declare new functions value_of_xmethod, call_xmethod.
3846
3847 2014-06-03  Joel Brobecker  <brobecker@adacore.com>
3848             Pedro Alves  <palves@redhat.com>
3849
3850         PR breakpoints/17000
3851         * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3852         New function, extracted from software_breakpoint_inserted_here_p.
3853         (software_breakpoint_inserted_here_p): Replace factored out code
3854         by call to find_non_raw_software_breakpoint_inserted_here.
3855         (bp_target_info_copy_insertion_state): New function.
3856         (bkpt_insert_location): Handle the case of a single-step
3857         breakpoint already inserted at the same address.
3858         (bkpt_remove_location): Handle the case of a single-step
3859         breakpoint still inserted at the same address.
3860         (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3861         breakpoint already inserted at the same address.
3862         (deprecated_remove_raw_breakpoint): Handle the case of a
3863         non-raw breakpoint still inserted at the same address.
3864         (find_single_step_breakpoint): New function, extracted from
3865         single_step_breakpoint_inserted_here_p.
3866         (find_single_step_breakpoint): New function,
3867         factored out from single_step_breakpoint_inserted_here_p.
3868         (single_step_breakpoint_inserted_here_p): Reimplement.
3869
3870 2014-06-03  Brad Mouring  <bmouring@ni.com>  (tiny patch)
3871
3872         Pushed by Joel Brobecker  <brobecker@adacore.com>
3873         * source.c (show_substitute_path_command): Fix display of matching
3874         substitution rules.
3875
3876 2014-06-03  Gary Benson  <gbenson@redhat.com>
3877
3878         * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3879
3880 2014-06-02  Doug Evans  <xdje42@gmail.com>
3881
3882         Add parameter support for Guile.
3883         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3884         (SUBDIR_GUILE_SRCS): Add scm-param.c.
3885         (scm-param.o): New rule.
3886         * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3887         (gdbscm_misc_error): Declare.
3888         (gdbscm_canonicalize_command_name): Declare.
3889         (gdbscm_scm_to_host_string): Declare.
3890         (gdbscm_scm_from_host_string): Declare.
3891         (gdbscm_initialize_parameters): Declare.
3892         * guile/guile.c (initialize_gdb_module): Call
3893         gdbscm_initialize_parameters.
3894         * guile/lib/gdb.scm: Export parameter symbols.
3895         * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3896         cmdscm_canonicalize_name and made public.  All callers updated.
3897         * guile/scm-exception.c (gdbscm_misc_error): New function.
3898         * guile/scm-param.c: New file.
3899         * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3900         (gdbscm_scm_to_host_string): New function.
3901         (gdbscm_scm_from_host_string): New function.
3902         * scm-utils.c (gdbscm_gc_dup_argv): New function.
3903
3904 2014-06-02  Doug Evans  <xdje42@gmail.com>
3905
3906         Add command support for Guile.
3907         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3908         (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3909         (scm-cmd.o): New rule.
3910         * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3911         (gdbscm_user_error_p): Declare.
3912         (gdbscm_parse_command_name): Declare.
3913         (gdbscm_valid_command_class_p): Declare.
3914         (gdbscm_initialize_commands): Declare.
3915         * guile/guile.c (initialize_gdb_module): Call
3916         gdbscm_initialize_commands.
3917         * guile/lib/gdb.scm: Export command symbols.
3918         * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3919         (throw-user-error): New function.
3920         * guile/scm-cmd.c: New file.
3921         * guile/scm-exception.c (user_error_symbol): New static global.
3922         (gdbscm_user_error_p): New function.
3923         (gdbscm_initialize_exceptions): Set user_error_symbol.
3924         * scm-utils.c (gdbscm_gc_xstrdup): New function.
3925
3926 2014-06-02  Phil Muldoon  <pmuldoon@redhat.com>
3927
3928         * top.c (command_loop): Handle comments here...
3929         (command_line_input): ... not here.
3930
3931 2014-06-02  Doug Evans  <xdje42@gmail.com>
3932
3933         Add progspace support for Guile.
3934         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3935         (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3936         (scm-progspace.o): New rule.
3937         * guile/guile-internal.h (pspace_smob): New typedef.
3938         (psscm_pspace_smob_pretty_printers): Declare.
3939         (psscm_pspace_smob_from_pspace): Declare.
3940         (psscm_scm_from_pspace): Declare.
3941         * guile/guile.c (initialize_gdb_module): Call
3942         gdbscm_initialize_pspaces.
3943         * guile/lib/gdb.scm: Export progspace symbols.
3944         * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3945         support.
3946         (append-pretty-printer!): Ditto.
3947         * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3948         Implement.
3949         * guile/scm-progspace.c: New file.
3950
3951 2014-06-03  Alan Modra  <amodra@gmail.com>
3952
3953         * ppc64-tdep.c (ppc64_standard_linkage8): New.
3954         (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3955
3956 2014-06-02  Doug Evans  <dje@google.com>
3957
3958         Add support for skeletonless type units.
3959         * dwarf2read.c (struct dwarf2_per_objfile): New member
3960         n_allocated_type_units.
3961         (struct dwarf2_per_objfile) <tu_stats>: New member
3962         nr_all_type_units_reallocs.
3963         (create_signatured_type_table_from_index): Initialize
3964         n_allocated_type_units
3965         (create_all_type_units): Ditto.
3966         (add_type_unit): Move up in file.  New arg slot.
3967         All callers updated.  Increase space for all_type_units more
3968         efficiently.
3969         (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3970         (lookup_dwo_signatured_type): Handle skeletonless TUs.
3971         (lookup_dwp_signatured_type): Ditto.
3972         (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3973         All callers updated.
3974         (build_type_psymtabs_1): Leave type_unit_groups as
3975         NULL if no TUs present.
3976         (print_tu_stats): New function.
3977         (process_skeletonless_type_unit): New function.
3978         (process_dwo_file_for_skeletonless_type_units): New
3979         function.
3980         (process_skeletonless_type_units): New function.
3981         (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3982         Call print tu_stats if debugging enabled.
3983
3984 2014-06-02  Pedro Alves  <palves@redhat.com>
3985
3986         * breakpoint.c (build_target_command_list): Don't build a command
3987         list if we have any duplicate location that isn't a dprintf.
3988
3989 2014-06-02  Pedro Alves  <palves@redhat.com>
3990
3991         * breakpoint.c (dprintf_breakpoint_hit): New function.
3992         (initialize_breakpoint_ops): Install it as dprintf's
3993         breakpoint_hit method.
3994
3995 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
3996
3997         * source.c (substitute_path_rule_matches): Simplify using
3998         filename_ncmp instead of FILENAME_CMP.
3999
4000 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
4001
4002         * source.c (substitute_path_rule_matches): Remove trailing spaces.
4003
4004 2014-06-01  Ludovic Courtès  <ludo@gnu.org>
4005
4006         * configure.ac: When Guile is available, check for the
4007         availability of 'scm_new_smob'.
4008         * configure, config.h.in: Regenerate.
4009         * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4010         function.
4011
4012 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
4013
4014         * frame.c (struct frame_info): Add stop_string field.
4015         (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4016         (get_prev_frame_always): Old content moved into
4017         get_prev_frame_always_1.  Call get_prev_frame_always_1 inside
4018         TRY_CATCH, handle MEMORY_ERROR exceptions.
4019         (frame_stop_reason_string): New function definition.
4020         * frame.h (unwind_stop_reason_to_string): Extend comment to
4021         mention frame_stop_reason_string.
4022         (frame_stop_reason_string): New function declaration.
4023         * stack.c (frame_info): Switch to frame_stop_reason_string.
4024         (backtrace_command_1): Switch to frame_stop_reason_string.
4025         * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4026         (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4027         * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4028
4029 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
4030
4031         * frame.c (frame_stop_reason_string): Rename to ...
4032         (unwind_stop_reason_to_string): this.
4033         * frame.h (frame_stop_reason_string): Rename to ...
4034         (unwind_stop_reason_to_string): this.
4035         * stack.c (frame_info): Update call to frame_stop_reason_string.
4036         (backtrace_command_1): Likewise.
4037         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4038         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4039
4040 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
4041
4042         * frame.c (remove_prev_frame): New function.
4043         (get_prev_frame_if_no_cycle): Create / discard cleanup using
4044         remove_prev_frame.
4045
4046 2014-05-29  Pedro Alves  <palves@redhat.com>
4047
4048         * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4049         and make it const.  When a single-step decays to a continue,
4050         clear 'step', not 'hw_step'.  Pass whether the caller wanted
4051         to step to user_visible_resume_ptid, not what we ask the
4052         target to do.
4053
4054 2014-05-29  Pedro Alves  <palves@redhat.com>
4055
4056         * infrun.c (process_event_stop_test, handle_step_into_function)
4057         (handle_step_into_function_backward): Adjust.
4058         Don't set the even thread's stop_step and call stop_waiting before
4059         calling end_stepping_range.  Instead do that ...
4060         (end_stepping_range): ... here.  Take an ecs pointer parameter.
4061
4062 2014-05-29  Pedro Alves  <palves@redhat.com>
4063
4064         * infrun.c (stop_stepping): Rename to ...
4065         (stop_waiting): ... this.
4066         (proceed): Update comment.
4067         (process_event_stop_test, handle_inferior_event)
4068         (handle_signal_stop, handle_step_into_function)
4069         (handle_step_into_function_backward): Update.
4070
4071 2014-05-29  Pedro Alves  <palves@redhat.com>
4072
4073         * infcall.c (run_inferior_call): Don't check whether the current
4074         thread is running after the proceed call.
4075
4076 2014-05-29  Pedro Alves  <palves@redhat.com>
4077             Tom Tromey  <tromey@redhat.com>
4078
4079         * NEWS: Mention "maint set target-async", "set mi-async", and that
4080         background execution commands are now always available.
4081         * target.h (target_async_permitted): Update comment.
4082         * target.c (target_async_permitted, target_async_permitted_1):
4083         Default to 1.
4084         (set_target_async_command): Rename to ...
4085         (maint_set_target_async_command): ... this.
4086         (show_target_async_command): Rename to ...
4087         (maint_show_target_async_command): ... this.
4088         (_initialize_target): Adjust.
4089         * infcmd.c (prepare_execution_command): Make extern.
4090         * inferior.h (prepare_execution_command): Declare.
4091         * infrun.c (set_observer_mode): Leave target async alone.
4092         * mi/mi-interp.c (mi_interpreter_init): Install
4093         mi_on_sync_execution_done as sync_execution_done observer.
4094         (mi_on_sync_execution_done): New function.
4095         (mi_execute_command_input_handler): Don't print the prompt if we
4096         just started a synchronous command with an async target.
4097         (mi_on_resume): Check sync_execution before printing prompt.
4098         * mi/mi-main.h (mi_async_p): Declare.
4099         * mi/mi-main.c: Include gdbcmd.h.
4100         (mi_async_p): New function.
4101         (mi_async, mi_async_1): New globals.
4102         (set_mi_async_command, show_mi_async_command, mi_async): New
4103         functions.
4104         (exec_continue): Call prepare_execution_command.
4105         (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4106         (mi_execute_async_cli_command): Use mi_async_p.
4107         (_initialize_mi_main): Install "set mi-async".  Make
4108         "target-async" a deprecated alias.
4109
4110 2014-05-29  Pedro Alves  <palves@redhat.com>
4111
4112         * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4113         (_initialize_cli_interp): Adjust.
4114         * event-loop.c: Include "observer.h".
4115         (start_event_loop): Notify 'command_error' observers instead of
4116         calling display_gdb_prompt.  Remove FIXME comment.
4117         * event-top.c (display_gdb_prompt): Remove call into the
4118         interpreters.
4119         * inf-loop.c: Include "observer.h".
4120         (inferior_event_handler): Notify 'command_error' observers instead
4121         of calling display_gdb_prompt.
4122         * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4123         observers instead of calling display_gdb_prompt.
4124         * interps.c (interp_set): Don't call display_gdb_prompt.
4125         (current_interp_display_prompt_p): Delete.
4126         * interps.h (interp_prompt_p): Delete declaration.
4127         (interp_prompt_p_ftype): Delete.
4128         (struct interp_procs) <prompt_proc_p>: Delete field.
4129         (current_interp_display_prompt_p): Delete declaration.
4130         * mi-interp.c (mi_interpreter_prompt_p): Delete.
4131         (_initialize_mi_interp): Adjust.
4132         * tui-interp.c (tui_init): Install 'sync_execution_done' and
4133         'command_error' observers.
4134         (tui_on_sync_execution_done, tui_on_command_error): New
4135         functions.
4136         (tui_display_prompt_p): Delete.
4137         (_initialize_tui_interp): Adjust.
4138
4139 2014-05-29  Pedro Alves  <palves@redhat.com>
4140
4141         PR gdb/13860
4142         * cli/cli-interp.c: Include infrun.h and observer.h.
4143         (cli_uiout, cli_interp): New globals.
4144         (cli_on_signal_received, cli_on_end_stepping_range)
4145         (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4146         functions.
4147         (cli_interpreter_init): Install them as 'end_stepping_range',
4148         'signal_received' 'signal_exited', 'exited' and 'no_history'
4149         observers.
4150         (_initialize_cli_interp): Remove cli_interp local.
4151         * infrun.c (handle_inferior_event): Call the several stop reason
4152         observers instead of printing the stop reason directly.
4153         (end_stepping_range): New function.
4154         (print_end_stepping_range_reason, print_signal_exited_reason)
4155         (print_exited_reason, print_signal_received_reason)
4156         (print_no_history_reason): Make static, and add an uiout
4157         parameter.  Print to that instead of to CURRENT_UIOUT.
4158         * infrun.h (print_end_stepping_range_reason)
4159         (print_signal_exited_reason, print_exited_reason)
4160         (print_signal_received_reason print_no_history_reason): New
4161         declarations.
4162         * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4163         'mi_uiout'.
4164         <cli_uiout>: New field.
4165         * mi/mi-interp.c (mi_interpreter_init): Adjust.  Create the new
4166         uiout for CLI output.  Install 'signal_received',
4167         'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4168         observers.
4169         (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4170         (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4171         (mi_on_no_history): New functions.
4172         (ui_out_free_cleanup): Delete function.
4173         (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4174         instead use the one already stored in the MI interpreter data.
4175         (mi_ui_out): Adjust.
4176         * tui/tui-interp.c: Include infrun.h and observer.h.
4177         (tui_interp): New global.
4178         (tui_on_signal_received, tui_on_end_stepping_range)
4179         (tui_on_signal_exited, tui_on_exited)
4180         (tui_on_no_history): New functions.
4181         (tui_init): Install them as 'end_stepping_range',
4182         'signal_received' 'signal_exited', 'exited' and 'no_history'
4183         observers.
4184         (_initialize_tui_interp): Delete tui_interp local.
4185
4186 2014-05-29  Pedro Alves  <palves@redhat.com>
4187
4188         PR gdb/15713
4189         * linux-nat.c (linux_nat_resume_callback): Rename the second
4190         parameter to 'except'.  Skip LP if it points to EXCEPT.
4191         (linux_nat_resume): Don't mark the event lwp as not stopped
4192         before resuming sibling lwps.  Instead ask
4193         linux_nat_resume_callback to skip the event lwp.  Mark it as not
4194         stopped after actually resuming it.
4195         (linux_handle_syscall_trap): Mark the lwp as not stopped after
4196         resuming it.
4197         (wait_lwp): Mark the lwp as stopped here.
4198         (stop_wait_callback): Mark the lwp as not stopped right after
4199         resuming it.  Don't mark lwps as stopped here.
4200         (linux_nat_filter_event): Mark the lwp as stopped earlier.
4201         (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4202
4203 2014-05-29  Pedro Alves  <palves@redhat.com>
4204
4205         PR PR15693
4206         * infrun.c (resume): Determine how much to resume depending on
4207         whether the caller wanted a step, not whether we can hardware step
4208         the target.  Mark all threads that we intend to run as running,
4209         unless we're calling an inferior function.
4210         (normal_stop): If the thread is running an infcall, don't finish
4211         thread state.
4212         * target.c (target_resume): Don't mark threads as running here.
4213
4214 2014-05-28  Joel Brobecker  <brobecker@adacore.com>
4215
4216         * serial.c (_initialize_serial): Remove support for
4217         the "set remotebaud" and "show remotebaud" commands.
4218         * NEWS: Add entry documenting the removal of that command.
4219
4220 2014-05-28  Yao Qi  <yao@codesourcery.com>
4221
4222         * charset.c: Fix typo in comments.
4223
4224 2014-05-27  Gary Benson  <gbenson@redhat.com>
4225
4226         * utils.c (internal_vproblem): Prompt for a bug report.
4227
4228 2014-05-26  Andy Wingo  <wingo@igalia.com>
4229
4230         * guile/scm-arch.c (arscm_mark_arch_smob):
4231         * guile/scm-block.c (bkscm_mark_block_smob)
4232         (bkscm_mark_block_syms_progress_smob):
4233         * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4234         * guile/scm-exception.c (exscm_mark_exception_smob):
4235         * guile/scm-frame.c (frscm_mark_frame_smob):
4236         * guile/scm-iterator.c (itscm_mark_iterator_smob):
4237         * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4238         * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4239         * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4240         (ppscm_mark_pretty_printer_worker_smob):
4241         * guile/scm-symbol.c (syscm_mark_symbol_smob):
4242         * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4243         * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4244         * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4245         mark functions.
4246         * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4247         function.
4248
4249 2014-05-26  Andy Wingo  <wingo@igalia.com>
4250             Doug Evans  <xdje42@gmail.com>
4251
4252         * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4253         empty_base_class.  All uses updated.
4254         (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4255         (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4256         Adapt all callers.
4257         * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4258         (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4259         (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4260         (gdbscm_gsmob_has_property_p, add_property_name)
4261         (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4262         * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4263         (gdb-object-has-property?, gdb-object-properties): Remove.
4264         (gdb-object-kind): Renamed from gsmob-kind.
4265
4266 2014-05-26  Andy Wingo  <wingo@igalia.com>
4267
4268         * configure.ac (try_guile_versions): Allow building with guile 2.2.
4269         * configure: Regenerate.
4270
4271 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
4272
4273         * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4274
4275 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
4276
4277         * record-btrace.c (record_btrace_allow_memory_access): Remove.
4278         (replay_memory_access_read_only, replay_memory_access_read_write)
4279         (replay_memory_access_types, replay_memory_access)
4280         (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4281         (cmd_set_record_btrace, cmd_show_record_btrace)
4282         (cmd_show_replay_memory_access): New.
4283         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4284         (record_btrace_remove_breakpoint): Replace
4285         record_btrace_allow_memory_access with replay_memory_access.
4286         (_initialize_record_btrace): Add commands.
4287         * NEWS: Announce it.
4288
4289 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4290
4291         * aarch64-linux-nat.c (asm/ptrace.h): Include.
4292
4293 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4294
4295         * MAINTAINERS (Write After Approval): Move self back from
4296         paper trail.
4297
4298 2014-05-22  Pedro Alves  <palves@redhat.com>
4299
4300         * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4301         (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4302         (disable_randomization, enum exec_direction_kind)
4303         (execution_direction, stop_registers, start_remote)
4304         (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4305         (wait_for_inferior, normal_stop, get_last_target_status)
4306         (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4307         (insert_step_resume_breakpoint_at_sal)
4308         (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4309         (set_step_info, print_stop_event, signal_stop_state)
4310         (signal_print_state, signal_pass_state, signal_stop_update)
4311         (signal_print_update, signal_pass_update)
4312         (update_signals_program_target, clear_exit_convenience_vars)
4313         (displaced_step_dump_bytes, update_observer_mode)
4314         (signal_catch_update, gdb_signal_from_command): Move
4315         declarations ...
4316         * infrun.h: ... to this new file.
4317         * amd64-tdep.c: Include infrun.h.
4318         * annotate.c: Include infrun.h.
4319         * arch-utils.c: Include infrun.h.
4320         * arm-linux-tdep.c: Include infrun.h.
4321         * arm-tdep.c: Include infrun.h.
4322         * break-catch-sig.c: Include infrun.h.
4323         * breakpoint.c: Include infrun.h.
4324         * common/agent.c: Include infrun.h instead of inferior.h.
4325         * corelow.c: Include infrun.h.
4326         * event-top.c: Include infrun.h.
4327         * go32-nat.c: Include infrun.h.
4328         * i386-tdep.c: Include infrun.h.
4329         * inf-loop.c: Include infrun.h.
4330         * infcall.c: Include infrun.h.
4331         * infcmd.c: Include infrun.h.
4332         * infrun.c: Include infrun.h.
4333         * linux-fork.c: Include infrun.h.
4334         * linux-nat.c: Include infrun.h.
4335         * linux-thread-db.c: Include infrun.h.
4336         * monitor.c: Include infrun.h.
4337         * nto-tdep.c: Include infrun.h.
4338         * procfs.c: Include infrun.h.
4339         * record-btrace.c: Include infrun.h.
4340         * record-full.c: Include infrun.h.
4341         * remote-m32r-sdi.c: Include infrun.h.
4342         * remote-mips.c: Include infrun.h.
4343         * remote-notif.c: Include infrun.h.
4344         * remote-sim.c: Include infrun.h.
4345         * remote.c: Include infrun.h.
4346         * reverse.c: Include infrun.h.
4347         * rs6000-tdep.c: Include infrun.h.
4348         * s390-linux-tdep.c: Include infrun.h.
4349         * solib-irix.c: Include infrun.h.
4350         * solib-osf.c: Include infrun.h.
4351         * solib-svr4.c: Include infrun.h.
4352         * target.c: Include infrun.h.
4353         * top.c: Include infrun.h.
4354         * windows-nat.c: Include infrun.h.
4355         * mi/mi-interp.c: Include infrun.h.
4356         * mi/mi-main.c: Include infrun.h.
4357         * python/py-threadevent.c: Include infrun.h.
4358
4359 2014-05-22  Pedro Alves  <palves@redhat.com>
4360
4361         * infrun.c (handle_inferior_event): Store the exit code for
4362         --return-child-result here, instead of ...
4363         (print_exited_reason): ... here.
4364
4365 2014-05-21  Pedro Alves  <palves@redhat.com>
4366
4367         PR gdb/13860
4368         * gdbthread.h (struct thread_control_state): New field
4369         `command_interp'.
4370         * infrun.c (follow_fork): Copy the new thread control field to the
4371         child fork thread.
4372         (clear_proceed_status_thread): Clear the new thread control field.
4373         (proceed): Set the new thread control field.
4374         * interps.h (command_interp): Declare.
4375         * interps.c (command_interpreter): New global.
4376         (command_interp): New function.
4377         (interp_exec): Set `command_interpreter' while here.
4378         * cli-out.c (cli_uiout_dtor): New function.
4379         (cli_ui_out_impl): Install it.
4380         * mi/mi-interp.c: Include cli-out.h.
4381         (mi_cmd_interpreter_exec): Add comment.
4382         (restore_current_uiout_cleanup): New function.
4383         (ui_out_free_cleanup): New function.
4384         (mi_on_normal_stop): If finishing an execution command started by
4385         a CLI command, or any kind of breakpoint-like event triggered,
4386         print the stop event to the output (CLI) stream.
4387         * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4388
4389 2014-05-21  Pedro Alves  <palves@redhat.com>
4390
4391         * cli/cli-cmds.c (list_command): Handle the first "list" after the
4392         current source line having changed.
4393         * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4394         * infrun.c (normal_stop): Adjust call to
4395         set_current_sal_from_frame.
4396         * source.c (clear_lines_listed_range): New function.
4397         (set_current_source_symtab_and_line, identify_source_line): Clear
4398         the lines listed range.
4399         (line_info): Handle the first "info line" after the current source
4400         line having changed.
4401         * stack.c (print_stack_frame): Remove center handling.
4402         (set_current_sal_from_frame): Remove 'center' parameter.  Don't
4403         center sal.line.
4404
4405 2014-05-21  Pedro Alves  <palves@redhat.com>
4406
4407         * inf-child.c (inf_child_mourn_inferior): New function.
4408         * inf-child.h (inf_child_mourn_inferior): New declaration.
4409         * darwin-nat.c (darwin_mourn_inferior): Use
4410         inf_child_mourn_inferior.
4411         * gnu-nat.c (gnu_mourn_inferior): Likewise.
4412         * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4413         * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4414         * nto-procfs.c (procfs_mourn_inferior): Likewise.
4415         * windows-nat.c (windows_mourn_inferior): Likewise.
4416
4417 2014-05-21  Doug Evans  <xdje42@gmail.com>
4418
4419         * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4420
4421 2014-05-21  Doug Evans  <xdje42@gmail.com>
4422
4423         * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4424         (gdbscm_out_of_range_error): Ditto.
4425         (gdbscm_memory_error): Ditto.
4426         * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4427         * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4428         (gdbscm_out_of_range_error): Update.
4429         (gdbscm_memory_error): Update.
4430         (gdbscm_scm_to_target_string_unsafe): Delete.
4431
4432 2014-05-21  Pedro Alves  <palves@redhat.com>
4433
4434         * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4435         globals.
4436         (inf_child_open_target): New function.
4437         (inf_child_open): Use inf_child_open_target to push the target
4438         instead of erroring out.
4439         (inf_child_disconnect, inf_child_close)
4440         (inf_child_maybe_unpush_target): New functions.
4441         (inf_child_target): Install inf_child_disconnect and
4442         inf_child_close.  Store a pointer to the returned object.
4443         * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4444         declarations.
4445         * target.c (auto_connect_native_target): New global.
4446         (show_default_run_target): New function.
4447         (find_default_run_target): Return NULL if automatically connecting
4448         to the native target is disabled.
4449         (_initialize_target): Install set/show auto-connect-native-target.
4450         * NEWS: Mention "set auto-connect-native-target", and "target
4451         native".
4452         * linux-nat.c (super_close): New global.
4453         (linux_nat_close): Call super_close.
4454         (linux_nat_add_target): Store a pointer to the base class's
4455         to_close method.
4456         * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4457         inf_child_maybe_unpush.
4458         * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4459         already pushed.
4460         (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4461         the inferior.  Use inf_child_maybe_unpush_target.
4462         (inf_ttrace_attach): Don't push the target if it is already
4463         pushed.
4464         (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4465         * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4466         after mourning the inferior.  Use inf_child_maybe_unpush_target.
4467         (darwin_attach_pid): Don't push the target if it is already
4468         pushed.
4469         * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4470         mourning the inferior.  Use inf_child_maybe_unpush_target.
4471         (gnu_detach): Use inf_child_maybe_unpush_target.
4472         * go32-nat.c (go32_create_inferior): Don't push the target if it
4473         is already pushed.
4474         (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4475         * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4476         (procfs_open): Rename to ...
4477         (procfs_open_1): ... this.  Add target_ops parameter.  Adjust
4478         comments.  Can target_preopen before changing node.  Call
4479         inf_child_open_target to push the target explicitly.
4480         (procfs_attach): Don't push the target if it is already pushed.
4481         (procfs_detach): Use inf_child_maybe_unpush_target.
4482         (procfs_create_inferior): Don't push the target if it is already
4483         pushed.
4484         (nto_native_ops): New global.
4485         (procfs_open): Reimplement.
4486         (procfs_native_open): New function.
4487         (init_procfs_targets): Install procfs_native_open as to_open of
4488         "target native".  Store a pointer to the "native" target in
4489         nto_native_ops.
4490         * procfs.c (procfs_attach): Don't push the target if it is already
4491         pushed.
4492         (procfs_detach): Use inf_child_maybe_unpush_target.
4493         (procfs_mourn_inferior): Only unpush the target after mourning the
4494         inferior.  Use inf_child_maybe_unpush_target.
4495         (procfs_init_inferior): Don't push the target if it is already
4496         pushed.
4497         * windows-nat.c (do_initial_windows_stuff): Don't push the target
4498         if it is already pushed.
4499
4500 2014-05-21  Pedro Alves  <palves@redhat.com>
4501
4502         * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4503         and "procfs" targets are now called "native" instead.
4504
4505 2014-05-21  Pedro Alves  <palves@redhat.com>
4506
4507         * go32-nat.c (go32_open): Delete.
4508         (go32_target): Don't override the to_open method.
4509
4510 2014-05-21  Pedro Alves  <palves@redhat.com>
4511
4512         * nto-procfs.c (procfs_can_run): New function.
4513         (nto_procfs_ops): New global.
4514         (init_procfs_targets): New, based on procfs_target.  Install
4515         "target native" in addition to "target procfs".
4516         (_initialize_procfs): Call init_procfs_targets instead of adding
4517         the target here.
4518
4519 2014-05-21  Pedro Alves  <palves@redhat.com>
4520
4521         * windows-nat.c (windows_target): Don't override to_shortname,
4522         to_longname or to_doc.
4523
4524 2014-05-21  Pedro Alves  <palves@redhat.com>
4525
4526         * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4527         to_doc.
4528
4529 2014-05-21  Pedro Alves  <palves@redhat.com>
4530
4531         * darwin-nat.c (_initialize_darwin_inferior): Don't override
4532         to_shortname, to_longname or to_doc.
4533
4534 2014-05-21  Pedro Alves  <palves@redhat.com>
4535
4536         * go32-nat.c (go32_target): Don't override to_shortname,
4537         to_longname or to_doc.
4538
4539 2014-05-21  Pedro Alves  <palves@redhat.com>
4540
4541         * inf-child.c (inf_child_open): Remove mention of "child".
4542         (inf_child_target): Rename target to "native" instead of "child".
4543
4544 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4545
4546         * Makefile.in (SFILES): Delete "regset.c".
4547         (COMMON_OBS): Delete "regset.o".
4548         * regset.c: Remove.
4549         * regset.h (regset_alloc): Delete prototype.
4550
4551 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4552
4553         * sparc-linux-tdep.c (sparc32_linux_gregset)
4554         (sparc32_linux_fpregset): New static regset structures.
4555         (sparc32_linux_init_abi): Drop dynamic regset allocations.
4556         * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4557         'fpregset' fields.
4558         * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4559         (sparc64_linux_fpregset): New static regset structures.
4560         (sparc64_linux_init_abi): Drop dynamic regset allocations.
4561         * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4562         New static regset structures.
4563         (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4564         * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4565         New static regset structures.
4566         (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4567         * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4568         New static regset structures.
4569         (sparc64obsd_init_abi): Drop dynamic regset allocations.
4570         * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4571         New static regset structures.
4572         (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4573
4574 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4575
4576         * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4577         (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4578         register maps ("regmaps") from "*regset" to "*regmap".  Do this
4579         for all regmap types and variables.
4580         * sparc-linux-tdep.c (sparc32_linux_step_trap)
4581         (sparc32_linux_supply_core_gregset)
4582         (sparc32_linux_collect_core_gregset)
4583         (sparc32_linux_supply_core_fpregset)
4584         (sparc32_linux_collect_core_fpregset): Likewise.
4585         * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4586         (sparc_gregmap, sparc_fpregmap): ... these.
4587         (sparc_supply_gregset, sparc_collect_gregset)
4588         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4589         (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4590         (_initialize_sparc_nat): Rename regmaps.
4591         * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4592         (sparc_gregmap, sparc_fpregmap): ... these.
4593         (sparc_supply_gregset, sparc_collect_gregset)
4594         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4595         * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4596         Rename macros to...
4597         (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4598         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4599         Likewise.
4600         * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4601         Rename to...
4602         (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4603         * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4604         (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4605         regmaps.
4606         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4607         (sparc32_bsd_fpregset): Rename to...
4608         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4609         (sparc32_bsd_fpregmap): ... these.
4610         * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4611         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4612         (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4613         (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4614         (struct sparc_gregmap, struct sparc_fpregmap)
4615         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4616         (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4617         (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4618         (sparc32_supply_regset, sparc32_collect_gregset)
4619         (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4620         prototypes.
4621         * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4622         (sparc64_linux_ptrace_gregmap): ... this.
4623         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4624         (_initialize_sparc64_linux_nat): Rename regmaps.
4625         * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4626         (sparc64_linux_core_gregmap): ... this.
4627         (sparc64_linux_supply_core_gregset)
4628         (sparc64_linux_collect_core_gregset)
4629         (sparc64_linux_supply_core_fpregset)
4630         (sparc64_linux_collect_core_fpregset): Rename regmaps.
4631         * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4632         (sparc64_sol2_fpregset): Rename to...
4633         (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4634         * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4635         (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4636         regmaps.
4637         * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4638         (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4639         (sparc64_bsd_fpregset): Rename to...
4640         (struct sparc_gregmap, sparc64_sol2_gregmap)
4641         (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4642         (sparc64_bsd_fpregmap): ... these.
4643         (sparc64_supply_gregset, sparc64_collect_gregset)
4644         (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4645         prototypes.
4646         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4647         * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4648         (sparc64fbsd_gregmap): ... this.
4649         (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4650         (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4651         Rename regmaps.
4652         * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4653         (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4654         (sparc64nbsd_collect_fpregset): Likewise.
4655         * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4656         (sparc64nbsd_gregmap): ... this.
4657         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4658         regmaps.
4659         * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4660         * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4661         (sparc64obsd_gregmap): ... this.
4662         (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4663         regmaps.
4664         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4665         * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4666         (sparc32nbsd_gregmap): ... this.
4667         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4668         regmaps.
4669
4670 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4671
4672         * score-tdep.c (score7_linux_gregset): New static regset
4673         structure.
4674         (score7_linux_regset_from_core_section): Remove dynamic regset
4675         allocation.
4676         (score_gdbarch_init): Drop allocation of tdep structure.
4677         * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4678
4679 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4680
4681         * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4682         regset structures.
4683         (am33_regset_from_core_section): Remove dynamic regset
4684         allocations.
4685
4686 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4687
4688         * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4689         (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4690         structures.
4691         (mips_linux_regset_from_core_section): Remove dynamic regset
4692         allocations.
4693         * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4694         'gregset64', 'fpregset', and 'fpregset64'.
4695         * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4696         deleted tdep fields.
4697
4698 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4699
4700         * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4701         regset structures.
4702         (amd64_regset_from_core_section): Remove dynamic regset
4703         allocations.
4704         * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4705         structure.
4706         (amd64obsd_regset_from_core_section): Remove dynamic regset
4707         allocation.
4708         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4709         Likewise.
4710         * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4711         x86-common regset supply function.
4712         * i386-tdep.c (i386_collect_gregset): Make static.
4713         (i386_gregset): New global regset structure.
4714         (i386_fpregset, i386_xstateregset): New static regset structures.
4715         (i386_regset_from_core_section): Remove dynamic regset
4716         allocations.
4717         (i386_gdbarch_init): Remove initialization of tdep fields
4718         'gregset', 'fpregset', and 'xstateregset'.
4719         * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4720         'fpregset', and 'xstateregset'.
4721         (i386_collect_gregset): Remove prototype.
4722         (i386_gregset): New declaration.
4723         * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4724         structure.
4725         (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4726         allocation.
4727
4728 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4729
4730         * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4731         (arm_linux_vfpregset): New static regset structures.
4732         (arm_linux_regset_from_core_section): Remove dynamic allocation of
4733         regset structures.
4734         * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4735         and 'vfpregset' fields.
4736
4737 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4738
4739         * aarch64-linux-tdep.c (aarch64_linux_gregset)
4740         (aarch64_linux_fpregset): New static regset structures.
4741         (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4742         of regset structures.
4743         * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4744         'fpregset' fields.
4745
4746 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4747
4748         * regset.h (struct regset): Remove gdbarch field.
4749         * regset.c (regset_alloc): Drop initialization of gdbarch field.
4750         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4751         * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4752         Likewise.
4753         * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4754         (ppc32_linux_fpregset, ppc32_linux_vrregset)
4755         (ppc32_linux_vsxregset): Likewise.
4756         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4757         via the regcache instead of the regset.
4758         * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4759         (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4760         * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4761         * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4762         Likewise.
4763
4764 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4765
4766         * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4767         Constify structures.
4768         * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4769         (alphanbsd_aout_gregset): Likewise.
4770         * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4771         * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4772         Likewise.
4773         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4774         * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4775         Likewise.
4776         * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4777         * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4778         * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4779         * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4780         * m88k-tdep.c (m88k_gregset): Likewise.
4781         * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4782         * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4783         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4784         * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4785         * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4786         * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4787         * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4788         * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4789         * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4790         Likewise.
4791         * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4792         * sh-tdep.h (sh_corefile_gregset): Likewise.
4793         * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4794         * vax-tdep.c (vax_gregset): Likewise.
4795
4796 2014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
4797
4798         Fix TLS access for -static -pthread.
4799         * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4800         (try_thread_db_load_1): Initialize it.
4801         (thread_db_get_thread_local_address): Call it if LM is zero.
4802         * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4803         * target.h (struct target_ops) (to_get_thread_local_address): Add
4804         load_module_addr comment.
4805
4806 2014-05-21  Pedro Alves  <palves@redhat.com>
4807
4808         * dcache.c (dcache_read_memory_partial): If reading the cache line
4809         fails, fallback to reading just the memory the caller wanted.
4810
4811 2014-05-20  Doug Evans  <dje@google.com>
4812
4813         * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4814         instead of get_current_arch.
4815
4816 2014-05-20  Pedro Alves  <palves@redhat.com>
4817
4818         * NEWS: Mention that compare-sections now works with all targets.
4819
4820         * remote.c (PACKET_qCRC): New enum value.
4821         (remote_verify_memory): Don't send qCRC if the target has no
4822         execution.  Use packet_support/packet_ok.  If the target doesn't
4823         support the qCRC packet, fallback to a deep memory copy.
4824         (compare_sections_command): Say "target image" instead of "remote
4825         executable".
4826         (_initialize_remote): Add PACKET_qCRC to the list of config
4827         packets that have no associated command.  Extend comment.
4828         * target.c (simple_verify_memory, default_verify_memory): New
4829         function.
4830         * target.h (struct target_ops) <to_verify_memory>: Default to
4831         default_verify_memory.
4832         (simple_verify_memory): New declaration.
4833         * target-delegates.c: Regenerate.
4834
4835 2014-05-20  Markus Metzger  <markus.t.metzger@intel.com>
4836
4837         * record-btrace.c (record_btrace_step_thread): Check for empty history.
4838
4839 2014-05-20  Hui Zhu  <hui@codesourcery.com>
4840             Yao Qi  <yao@codesourcery.com>
4841
4842         PR backtrace/16558
4843         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4844         and change address of sp and pc.
4845
4846 2014-05-19  Tom Tromey  <tromey@redhat.com>
4847
4848         * gdbtypes.c (rank_function): Use XNEWVEC.
4849         * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4850
4851 2014-05-19  Doug Evans  <dje@google.com>
4852
4853         * dwarf2read.c (build_type_psymtabs_1): Renamed from
4854         build_type_unit_groups and moved closer to only caller.  Remove
4855         arguments.  All references updated.  Remove outdated .gdb_index
4856         comment.
4857         (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4858         build_type_psymtabs_1.
4859
4860 2014-05-19  Doug Evans  <dje@google.com>
4861
4862         * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4863         n_type_unit_groups, all_type_unit_groups.  All uses removed.
4864         (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4865         (dw2_get_cutu): Renamed from dw2_get_cu.  All callers updated.
4866         (dw2_get_cu): Renamed from dw2_get_primary_cu.  All callers updated.
4867         (add_type_unit_group_to_table): Delete.
4868
4869 2014-05-19  Doug Evans  <dje@google.com>
4870
4871         * eval.c (evaluate_subexp_standard): Add some comments.
4872
4873 2014-05-17  Doug Evans  <xdje42@gmail.com>
4874
4875         * progspace.c (remove_program_space): Delete, unused.
4876         * progspace.h (remove_program_space): Ditto.
4877
4878 2014-05-17  Doug Evans  <xdje42@gmail.com>
4879
4880         * inferior.c (prune_inferiors): Fix comment.
4881         (remove_inferior_command): Call prune_program_spaces.
4882
4883 2014-05-16  Doug Evans  <dje@google.com>
4884
4885         New command line option -D.
4886         * NEWS: Mention it.
4887         * main.c (set_gdb_data_directory): New function.
4888         (captured_main): Recognize -D.  Flag error for --data-directory "".
4889         Call set_gdb_data_directory.
4890         (print_gdb_help): Print --data-directory, -D.
4891         * main.h (set_gdb_data_directory): Declare.
4892         * top.c (staged_gdb_datadir): New static global.
4893         (set_gdb_datadir): Call set_gdb_data_directory
4894         (show_gdb_datadir): New function.
4895         (init_main): Update init of data-directory parameter.
4896
4897 2014-05-16  Gregory Fong  <gregory.0xf0@gmail.com>
4898
4899         Import the "dirfd" gnulib module.
4900         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4901         * gnulib/aclocal.m4: Update.
4902         * gnulib/config.in: Update.
4903         * gnulib/configure: Update.
4904         * gnulib/import/Makefile.am: Update.
4905         * gnulib/import/Makefile.in: Update.
4906         * gnulib/import/dirfd.c: New.
4907         * gnulib/import/m4/dirfd.m4: New.
4908         * gnulib/import/m4/gnulib-cache.m4: Update.
4909         * gnulib/import/m4/gnulib-comp.m4: Update.
4910
4911 2014-05-16  Pierre Muller  <muller@sourceware.org>
4912             Yao Qi  <yao@codesourcery.com>
4913
4914         * valprint.c (print_wchar): Move the code on checking whether
4915         W is a printable wide char to the default branch of switch
4916         statement below.  Call wchar_printable instead of gdb_iswprint.
4917
4918 2014-05-16  Taimoor Mirza  <tmirza@codesourcery.com>
4919
4920         * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4921         ldr.w and ldrd instructions.
4922
4923 2014-05-15  Doug Evans  <dje@google.com>
4924
4925         * dwarf2read.c (read_structure_type): Delete outdated comments.
4926
4927 2014-05-14  Tom Tromey  <tromey@redhat.com>
4928
4929         * macrocmd.c (print_macro_definition): Reindent.
4930
4931 2014-05-13  Doug Evans  <xdje42@gmail.com>
4932
4933         * python/py-cmd.c (cmdpy_completer): Add comment.
4934         (completers): Make const.
4935
4936 2014-05-13  Simon Marchi  <simon.marchi@ericsson.com>
4937
4938         * infrun.c (resume): Remove should_resume (unused).  Move up
4939         declaration of resume_ptid.
4940
4941 2014-05-13  Tom Tromey  <tromey@redhat.com>
4942
4943         * language.h (unop_type_check): Remove.
4944         (binop_type_check): Don't declare.
4945
4946 2014-05-13  Andreas Arnez  <arnez@vnet.linux.ibm.com>
4947
4948         * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4949         call to regcache_raw_collect.
4950
4951 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
4952
4953         * mi/mi-console.c (mi_console_raw_packet): Use the value from
4954         mi_console->quote as the quoting character.
4955
4956 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
4957
4958         * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4959
4960 2014-04-29  Tom Tromey  <tromey@redhat.com>
4961
4962         * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4963         "show debug varobj".
4964
4965 2014-05-07  Kyle McMartin  <kyle@redhat.com>
4966
4967         Pushed by Joel Brobecker  <brobecker@adacore.com>.
4968         * aarch64-tdep.c (aarch64_software_single_step): New function.
4969         (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4970         with aarch64_software_single_step.
4971
4972 2014-05-05  Joel Brobecker  <brobecker@adacore.com>
4973
4974         GDB 7.7.1 released.
4975
4976 2014-05-05  Keith Seitz  <keiths@redhat.com>
4977
4978         * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4979         variable or history value is successfully parsed.
4980
4981 2014-05-05  Yao Qi  <yao@codesourcery.com>
4982             Pedro Alves  <palves@redhat.com>
4983
4984         * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4985         address of blocks that intersects the requested range.  Trim
4986         LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4987         sections.
4988         * ctf.c (ctf_xfer_partial): Likewise.
4989
4990 2014-05-05  Yao Qi  <yao@codesourcery.com>
4991
4992         * printcmd.c (display_command): Remove the check to
4993         target_has_execution.
4994
4995 2014-05-03  Mark Kettenis  <kettenis@gnu.org>
4996
4997         * ppcobsd-nat.c: Include "obsd-nat.h".
4998         (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4999         add_target.
5000         * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5001
5002 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
5003
5004         * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5005         and 16-bit signed and unsigned arguments.  Update comment.
5006         (stap_parse_probe_arguments): Extend code to handle such
5007         arguments.  Use warning instead of complaint to notify about
5008         unrecognized bitness.
5009
5010 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
5011
5012         PR breakpoints/16889
5013         * stap-probe.c (stap_parse_probe_arguments): Simplify
5014         check for non-prefixed probes (i.e., probes whose
5015         arguments do not start with "N@").  Always set the
5016         argument type to a sane value.
5017
5018 2014-05-01  David Taylor  <dtaylor@emc.com>
5019
5020         * remote.c (compare_sections_command): Add -r option to compare
5021         all loadable read-only sections.
5022
5023 2014-04-30  Siva Chandra Reddy  <sivachandra@google.com>
5024
5025         * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5026         dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5027         Update all callers.
5028         * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5029         * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5030         Remove unused CORE_ADDR argument.  Update all callers.
5031
5032 2014-04-29  Pedro Alves  <palves@redhat.com>
5033
5034         * remote.c (struct packet_config) <detect>: Extend comment.
5035         (add_packet_config_cmd): Don't set the config's detect or support
5036         fields here.
5037         (init_all_packet_configs): Also initialize the config's 'detect'
5038         field.
5039         (reset_all_packet_configs_support): New function.
5040         (remote_open_1): Call reset_all_packet_configs_support instead of
5041         init_all_packet_configs.
5042         (_initialize_remote): Initialize all packet configs.  Assert that
5043         all packets have an associated command, except a few known
5044         outliers.
5045
5046 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
5047
5048         * dwarf2read.c (read_subrange_type): Handle dynamic
5049         DW_AT_lower_bound attributes.
5050
5051 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
5052
5053         * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5054         dynamic bounds before computing its upper bound.
5055         (ada_discrete_type_low_bound): Same as above with the lower bound.
5056
5057 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
5058
5059         * dwarf2read.c (is_dynamic_type): Return true for dynamic
5060         range types.  Adjust the array handling implementation to
5061         take advantage of this change.
5062         (resolve_dynamic_range): New function, mostly extracted from
5063         resolve_dynamic_bounds.
5064         (resolve_dynamic_array): New function, mostly extracted from
5065         resolve_dynamic_bounds.
5066         (resolve_dynamic_bounds): Delete.
5067         (resolve_dynamic_type): Reimplement.  Add handling of
5068         TYPE_CODE_RANGE types.
5069
5070 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
5071
5072         * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5073         handling of parallel ___XA types.
5074
5075 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
5076
5077         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5078         unnecessary second call to static_unwrap_type.
5079
5080 2014-04-27  Hui Zhu  <hui@codesourcery.com>
5081
5082         * stack.c (print_frame_info): Call do_gdb_disassembly with
5083         DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5084
5085 2014-04-26  Doug Evans  <xdje42@gmail.com>
5086
5087         * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5088
5089 2014-04-25  Pedro Alves  <palves@redhat.com>
5090
5091         PR server/16255
5092         * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5093         (linux_ptrace_attach_fail_reason): ... this.  Remove "warning: "
5094         and newline from built string.
5095         * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5096         (linux_ptrace_attach_fail_reason): ... this.
5097         * linux-nat.c (linux_nat_attach): Adjust to use
5098         linux_ptrace_attach_fail_reason.
5099
5100 2014-04-25  Pedro Alves  <palves@redhat.com>
5101
5102         * remote.c (struct remote_state): Remove multi_process_aware,
5103         non_stop_aware, cond_tracepoints, cond_breakpoints,
5104         breakpoint_commands, fast_tracepoints, static_tracepoints,
5105         install_in_trace, disconnected_tracing,
5106         enable_disable_tracepoints, string_tracing, and
5107         augmented_libraries_svr4_read fields.
5108         (remote_multi_process_p): Move further below in the file.
5109         (struct packet_config): Add comments.
5110         (update_packet_config): Delete function.
5111         (show_packet_config_cmd): Use packet_config_support.
5112         (add_packet_config_cmd): Use NULL as set callback.
5113         (packet_ok): "set remote foo-packet"-style commands no longer
5114         change config->supported -- adjust.
5115         (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5116         (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5117         (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5118         (PACKET_QNonStop, PACKET_multiprocess_feature)
5119         (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5120         (PACKET_DisconnectedTracing_feature)
5121         (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5122         (set_remote_protocol_packet_cmd): Delete function.
5123         (packet_config_support, packet_support): New functions.
5124         (set_remote_protocol_Z_packet_cmd): Don't call
5125         update_packet_config.
5126         (remote_query_attached, remote_pass_signals)
5127         (remote_program_signals, remote_threads_info)
5128         (remote_threads_extra_info, remote_start_remote): Use
5129         packet_support.
5130         (remote_start_remote): Use packet_config_support and
5131         packet_support.
5132         (init_all_packet_configs): Set all packets to unknown support,
5133         instead of calling update_packet_config.
5134         (remote_check_symbols): Use packet_support.
5135         (remote_supported_packet): Unconditionally set the packet config's
5136         support status.
5137         (remote_multi_process_feature, remote_non_stop_feature)
5138         (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5139         (remote_breakpoint_commands_feature)
5140         (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5141         (remote_install_in_trace_feature)
5142         (remote_disconnected_tracing_feature)
5143         (remote_enable_disable_tracepoint_feature)
5144         (remote_string_tracing_feature)
5145         (remote_augmented_libraries_svr4_read_feature): Delete functions.
5146         (remote_protocol_features): Adjust to use remote_supported_packet
5147         for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5148         "ConditionalTracepoints", "ConditionalBreakpoints",
5149         "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5150         "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5151         "EnableDisableTracepoints", and "tracenz".
5152         (remote_query_supported): Use packet_support.
5153         (remote_open_1): Adjust.
5154         (extended_remote_attach_1): Use packet_support.  Switch on the
5155         result of packet_ok instead of checking whether the packet ended
5156         up disabled.
5157         (remote_vcont_resume): Use packet_support.
5158         (remote_resume, remote_stop_ns, fetch_register_using_p)
5159         (remote_prepare_to_store, store_register_using_P)
5160         (check_binary_download, remote_write_bytes): Use packet_support.
5161         (remote_vkill): Use packet_support.  Switch on the result of
5162         packet_ok instead of checking whether the packet ended up
5163         disabled.
5164         (extended_remote_supports_disable_randomization): Use
5165         packet_support.
5166         (extended_remote_run): Switch on the result of packet_ok instead
5167         of checking whether the packet ended up disabled.
5168         (remote_insert_breakpoint, remote_remove_breakpoint)
5169         (remote_insert_watchpoint, remote_remove_watchpoint)
5170         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5171         packet_support.
5172         (remote_search_memory): Use packet_config_support.
5173         (remote_get_thread_local_address, remote_get_tib_address)
5174         (remote_hostio_send_command, remote_can_execute_reverse): Use
5175         packet_support.
5176         (remote_supports_cond_tracepoints)
5177         (remote_supports_cond_breakpoints)
5178         (remote_supports_fast_tracepoints)
5179         (remote_supports_static_tracepoints)
5180         (remote_supports_install_in_trace)
5181         (remote_supports_enable_disable_tracepoint)
5182         (remote_supports_string_tracing)
5183         (remote_can_run_breakpoint_commands): Rewrite, checking whether
5184         the packet config says the feature is enabled or disabled.
5185         (remote_download_tracepoint, remote_trace_set_readonly_regions)
5186         (remote_get_trace_status): Use packet_support.
5187         (remote_set_disconnected_tracing): Adjust to check whether the
5188         feature is enabled with packet_support.
5189         (remote_set_trace_buffer_size, remote_use_agent)
5190         (remote_can_use_agent, remote_supports_btrace): Use
5191         packet_support.
5192         (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5193         Use packet_config_support.
5194         (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5195         the packet config says the feature is enabled or disabled.
5196         (set_range_stepping): Use packet_support.
5197
5198 2014-04-25  Tom Tromey  <tromey@redhat.com>
5199
5200         * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5201         argument.
5202
5203 2014-04-24  Sanimir Agovic  <sanimir.agovic@intel.com>
5204
5205         * NEWS: Mention support for C99 variable length arrays.
5206
5207 2014-04-24  Joel Brobecker  <brobecker@adacore.com>
5208
5209         * ada-lang.c (standard_exc): Expand introductory comment.
5210
5211 2014-04-24  Michael Sturm  <michael.sturm@mintel.com>
5212             Walfred Tedeschi  <walfred.tedeschi@intel.com>
5213
5214         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5215         AVX512 registers.
5216         (amd64_linux_read_description): Add code to handle AVX512 xstate
5217         mask and return respective tdesc.
5218         * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5219         and features/i386/x32-avx512-linux.c.
5220         (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5221         (amd64_linux_core_read_description): Add code to handle AVX512
5222         xstate mask and return respective tdesc.
5223         (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5224         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5225         calculation.
5226         (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5227         (tdesc_amd64_avx512_linux): New prototype.
5228         (tdesc_x32_avx512_linux): Likewise.
5229         * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5230         features/i386/x32-avx512.c.
5231         (amd64_ymm_avx512_names): New register names for pseudo
5232         registers YMM16-31.
5233         (amd64_ymmh_avx512_names): New register names for raw registers
5234         YMMH16-31.
5235         (amd64_k_names): New register names for K registers.
5236         (amd64_zmmh_names): New register names for ZMM raw registers.
5237         (amd64_zmm_names): New registers names for ZMM pseudo registers.
5238         (amd64_xmm_avx512_names): New register names for XMM16-31
5239         registers.
5240         (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5241         registers.
5242         (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5243         if feature is present.
5244         (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5245         * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5246         (AMD64_NUM_REGS): Adjust to new number of registers.
5247         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5248         registers supplied via XSTATE by AVX512 registers.
5249         (i386_linux_read_description): Add case for AVX512.
5250         * i386-linux-tdep.c: Include i386-avx512-linux.c.
5251         (i386_linux_gregset_reg_offset): Add AVX512 registers.
5252         (i386_linux_core_read_description): Add case for AVX512.
5253         (i386_linux_init_abi): Install supported register note section
5254         for AVX512.
5255         (_initialize_i386_linux_tdep): Add call to tdesc init function for
5256         AVX512.
5257         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5258         registers to be number of zmm7h + 1.
5259         (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5260         * i386-tdep.c: Include features/i386/i386-avx512.c.
5261         (i386_zmm_names): Add ZMM pseudo register names array.
5262         (i386_zmmh_names): Add ZMM raw register names array.
5263         (i386_k_names): Add K raw register names array.
5264         (num_lower_zmm_regs): Add constant for the number of lower ZMM
5265         registers. AVX512 has 16 more ZMM registers than there are YMM
5266         registers.
5267         (i386_zmmh_regnum_p): Add function to look up register number of
5268         ZMM raw registers.
5269         (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5270         (i386_k_regnum_p): Likewise for K raw registers.
5271         (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5272         registers added by AVX512.
5273         (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5274         registers added by AVX512.
5275         (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5276         added by AVX512.
5277         (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5278         (i386_pseudo_register_name): Add ZMM pseudo registers.
5279         (i386_zmm_type): Construct and return vector registers type for ZMM
5280         registers.
5281         (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5282         ZMM0-31 pseudo registers and K registers.
5283         (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5284         and YMM16-31 registers from register cache.
5285         (i386_pseudo_register_write): Add code to write  K, ZMM and
5286         YMM16-31 registers.
5287         (i386_register_reggroup_p): Add code to include/exclude AVX512
5288         registers in/from respective register groups.
5289         (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5290         registers if feature is present in xcr0.
5291         (i386_gdbarch_init): Add code to initialize AVX512 feature
5292         variables in tdep structure, wire in pseudo registers and call
5293         initialize_tdesc_i386_avx512.
5294         * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5295         variables.
5296         (i386_regnum): Add AVX512 registers.
5297         (I386_SSE_NUM_REGS): New define for number of SSE registers.
5298         (I386_AVX_NUM_REGS): Likewise for AVX registers.
5299         (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5300         (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5301         512 bits wide.
5302         (i386_xmm_avx512_regnum_p): New prototype for register look up.
5303         (i386_ymm_avx512_regnum_p): Likewise.
5304         (i386_k_regnum_p): Likewise.
5305         (i386_zmm_regnum_p): Likewise.
5306         (i386_zmmh_regnum_p): Likewise.
5307         * i387-tdep.c : Update year in copyright notice.
5308         (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5309         XSAVE buffer.
5310         (XSAVE_YMM_AVX512_ADDR): New macro.
5311         (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5312         XSAVE buffer.
5313         (XSAVE_XMM_AVX512_ADDR): New macro.
5314         (xsave_avx512_k_offset): New table for K register offsets in
5315         XSAVE buffer.
5316         (XSAVE_AVX512_K_ADDR): New macro.
5317         (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5318         in XSAVE buffer.
5319         (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5320         (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5321         buffer.
5322         (i387_collect_xsave): Add code to collect AVX512 registers from
5323         XSAVE buffer.
5324         * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5325         of XMM16-31 registers.
5326         (I387_NUM_K_REGS): New define for number of K registers.
5327         (I387_K0_REGNUM): New define for K0 register number.
5328         (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5329         (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5330         (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5331         registers.
5332         (I387_YMM16H_REGNUM): New define for YMM16H register number.
5333         (I387_XMM16_REGNUM): New define for XMM16 register number.
5334         (I387_YMM0_REGNUM): New define for YMM0 register number.
5335         (I387_KEND_REGNUM): New define for last K register number.
5336         (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5337         (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5338         number.
5339         (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5340         number.
5341         * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5342         size.
5343         * features/Makefile: Add AVX512 related files.
5344         * features/i386/32bit-avx512.xml: New file.
5345         * features/i386/64bit-avx512.xml: Likewise.
5346         * features/i386/amd64-avx512-linux.c: Likewise.
5347         * features/i386/amd64-avx512-linux.xml: Likewise.
5348         * features/i386/amd64-avx512.c: Likewise.
5349         * features/i386/amd64-avx512.xml: Likewise.
5350         * features/i386/i386-avx512-linux.c: Likewise.
5351         * features/i386/i386-avx512-linux.xml: Likewise.
5352         * features/i386/i386-avx512.c: Likewise.
5353         * features/i386/i386-avx512.xml: Likewise.
5354         * features/i386/x32-avx512-linux.c: Likewise.
5355         * features/i386/x32-avx512-linux.xml: Likewise.
5356         * features/i386/x32-avx512.c: Likewise.
5357         * features/i386/x32-avx512.xml: Likewise.
5358         * regformats/i386/amd64-avx512-linux.dat: New file.
5359         * regformats/i386/amd64-avx512.dat: Likewise.
5360         * regformats/i386/i386-avx512-linux.dat: Likewise.
5361         * regformats/i386/i386-avx512.dat: Likewise.
5362         * regformats/i386/x32-avx512-linux.dat: Likewise.
5363         * regformats/i386/x32-avx512.dat: Likewise.
5364         * NEWS: Add note about new support for AVX512.
5365
5366
5367 2014-04-23  Pedro Alves  <palves@redhat.com>
5368
5369         * breakpoint.c (insert_bp_location): Tolerate errors if the
5370         breakpoint is set in a user-loaded objfile.
5371         (remove_breakpoint_1): Likewise.  Also tolerate errors if the
5372         location is marked shlib_disabled.  If the breakpoint is set in a
5373         user-loaded objfile is a GDB-side memory breakpoint, validate it
5374         before uninsertion.  (disable_breakpoints_in_freed_objfile): Skip
5375         non-OBJF_USERLOADED objfiles.  Don't clear the location's inserted
5376         flag.
5377         * mem-break.c (memory_validate_breakpoint): New function.
5378         * objfiles.c (userloaded_objfile_contains_address_p): New
5379         function.
5380         * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5381         * target.h (memory_validate_breakpoint): New declaration.
5382
5383 2014-04-23  Pedro Alves  <palves@redhat.com>
5384
5385         * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5386         the breakpoint is set in a shared library, only suppress
5387         errors for software breakpoints, not hardware breakpoints.
5388
5389 2014-04-22  Pedro Alves  <palves@redhat.com>
5390
5391         * infrun.c (schedlock_applies): New function, factored out from
5392         find_thread_needs_step_over.
5393         (find_thread_needs_step_over): Use it.
5394         (switch_back_to_stepped_thread): Always clear trap_expected if the
5395         step over is finished.  Return early if scheduler locking applies.
5396         Look for the stepping thread and a potential step-over thread with
5397         a single loop.
5398         (currently_stepping_or_nexting_callback): Delete.
5399
5400 2014-04-22  Nick Clifton  <nickc@redhat.com>
5401
5402         * NEWS: Mention that ARM sim now supports tracing.
5403
5404 2014-04-22  Yao Qi  <yao@codesourcery.com>
5405
5406         * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5407         to ...
5408         * tracefile.c (tracefile_fetch_registers): ... it.  New
5409         function.
5410         * tracefile.h (tracefile_fetch_registers): Declare.
5411         * ctf.c (ctf_fetch_registers): Remove the bottom.  Call
5412         tracefile_fetch_registers.
5413
5414 2014-04-19  Eli Zaretskii  <eliz@gnu.org>
5415
5416         PR gdb/14018
5417         * windows-nat.c (thread_rec): Don't display a warning when
5418         SuspendThread fails with ERROR_ACCESS_DENIED.  If SuspendThread
5419         fails for any reason, set th->suspended to -1, so that we don't
5420         try to resume such a thread.  Also, don't return NULL in these
5421         cases, to avoid completely ruin the session due to "PC register is
5422         not available" error.
5423         (do_windows_fetch_inferior_registers): Check errors in
5424         GetThreadContext call.
5425         (windows_continue): Accept an additional argument KILLED; if not
5426         zero, ignore errors in the SetThreadContext call, since the
5427         inferior was killed and is shutting down.
5428         (windows_resume, get_windows_debug_event)
5429         (windows_create_inferior, windows_mourn_inferior)
5430         (windows_kill_inferior): All callers of windows_continue changed
5431         to adjust to its new calling sequence.
5432
5433 2014-04-19  Yao Qi  <yao@codesourcery.com>
5434
5435         * ctf.c (ctf_open): Call post_create_inferior.
5436
5437 2014-04-19  Yao Qi  <yao@codesourcery.com>
5438
5439         * ctf.c (handle_id): New static variable.
5440         (ctf_open_dir): Get handle_id from bt_context_add_trace return
5441         value.  Get the declaration of event "register" and get length
5442         of field "contents".
5443
5444 2014-04-19  Yao Qi  <yao@codesourcery.com>
5445
5446         * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5447
5448 2014-04-18  Siva Chandra Reddy  <sivachandra@google.com>
5449
5450         * valops.c (oload_method_static): Remove unnecessary argument
5451         METHOD.  Update all callers.
5452
5453 2014-04-18  Pedro alves  <palves@redhat.com>
5454             Tom Tromey  <tromey@redhat.com>
5455
5456         PR backtrace/15558
5457         * frame.c (get_prev_frame_1): Rename to ...
5458         (get_prev_frame_always): ... this, and make extern.  Adjust.
5459         (skip_artificial_frames): Use get_prev_frame_always.
5460         (frame_unwind_caller_id, frame_pop, get_prev_frame)
5461         (get_frame_unwind_stop_reason): Adjust to rename.
5462         * frame.h (get_prev_frame_always): Declare.
5463         * inline-frame.c: Include frame.h.
5464         (inline_frame_this_id): Use get_prev_frame_always.
5465
5466 2014-04-18  Tristan Gingold  <gingold@adacore.com>
5467
5468         * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5469         code by using bfd_mach_o_get_base_address.
5470
5471 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
5472
5473         * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5474         (spu_ax_pseudo_register_collect): New function.
5475         (spu_ax_pseudo_register_push_stack): Likewise.
5476         (spu_dwarf_reg_to_regnum): Likewise.
5477         (spu_gdbarch_init): Install them.  Append DWARF unwinders.
5478
5479 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
5480
5481         * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5482         Replace FRAME argument with FRAME_ID.
5483         * gdbarch.c, gdbarch.h: Regenerate.
5484         * findvar.c (default_value_from_register): Add GDBARCH argument;
5485         replace FRAME by FRAME_ID.  No longer call get_frame_id.
5486         (value_from_register): Update call to gdbarch_value_from_register.
5487         * value.h (default_value_from_register): Update prototype.
5488         * s390-linux-tdep.c (s390_value_from_register): Update interface
5489         and call to default_value_from_register.
5490         * spu-tdep.c (spu_value_from_register): Likewise.
5491
5492         * findvar.c (address_from_register): Remove TYPE argument.
5493         Do not call value_from_register; use gdbarch_value_from_register
5494         with null_frame_id instead.
5495         * value.h (address_from_register): Update prototype.
5496         * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5497         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5498         address_from_register interface change.
5499
5500 2014-04-17  Yao Qi  <yao@codesourcery.com>
5501
5502         * gdbtypes.h: Update comments to link to types and macros'
5503         definitions.
5504
5505 2014-04-16  Siva Chandra Reddy  <sivachandra@google.com>
5506
5507         * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5508
5509 2014-04-16  Keith Seitz  <keiths@redhat.com>
5510
5511         PR gdb/15827
5512         * dwarf2read.c (skip_one_die): Check that all relative-offset
5513         sibling DIEs fall within range of the current reader's buffer.
5514         (read_partial_die): Likewise.
5515
5516 2014-04-16  Keith Seitz  <keiths@redhat.com>
5517
5518         PR c++/16597
5519         * cp-namespace.c (lookup_symbol_file): If the type name of
5520         `this' is NULL, return immediately.
5521
5522 2014-04-14  Keith Seitz  <keiths@redhat.com>
5523
5524         PR c++/16253
5525         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5526         from symbol_matches_domain in symtab.c. All local callers
5527         of symbol_matches_domain updated.
5528         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5529         search STRUCT_DOMAIN.
5530         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5531         independently.  standard_lookup will do that automatically.
5532         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5533         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5534         (cp_lookup_symbol_in_namespace): Likewise.
5535         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5536         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5537         may return a STRUCT_DOMAIN match.
5538         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5539         * cp-support.c: Include language.h.
5540         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5541         VAR_DOMAIN.
5542         * psymtab.c (match_partial_symbol): Compare the requested
5543         domain with the symbol's domain directly.
5544         (lookup_partial_symbol): Likewise.
5545         * symtab.c (lookup_symbol_in_language): Explain when/why
5546         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5547         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5548         appropriate languages.
5549         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5550         and moved to ada-lang.c
5551         (lookup_block_symbol): Explain that this function only returns
5552         symbol matching the requested DOMAIN.
5553         Compare the requested domain with the symbol's domain directly.
5554         (iterate_over_symbols): Compare the requested domain with the
5555         symbol's domain directly.
5556         * symtab.h (symbol_matches_domain): Remove.
5557
5558 2014-04-14  Tom Tromey  <tromey@redhat.com>
5559
5560         PR c++/15246:
5561         * c-exp.y (type_aggregate_p): New function.
5562         (qualified_name, classify_inner_name): Use it.
5563         * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5564         and TYPE_TARGET_TYPE of an enum type.
5565         * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5566         an enum type.
5567         (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5568         handle TYPE_DECLARED_CLASS.
5569         * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5570         types.
5571         * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5572         * valops.c (enum_constant_from_type): New function.
5573         (value_aggregate_elt): Use it.
5574         * cp-namespace.c (cp_lookup_nested_symbol): Handle
5575         TYPE_CODE_ENUM.
5576
5577 2014-04-14  Tom Tromey  <tromey@redhat.com>
5578
5579         * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5580         (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5581         const.
5582         * value.h (value_aggregate_elt): Update.
5583
5584 2014-04-14  Tom Tromey  <tromey@redhat.com>
5585
5586         * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5587
5588 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
5589
5590         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5591         (evaluate_subexp_standard): Pass noside argument.
5592         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5593         if noside equals EVAL_NORMAL. If the subscript yields a vla type
5594         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5595         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5596         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5597
5598 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
5599
5600         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5601         points to a constant blob.
5602
5603 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
5604
5605         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5606         property and store it as the high bound and flag the range accordingly.
5607         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5608         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5609         * gdbtypes.h (enum range_flags): New enum.
5610         (struct range_bounds): Add flags member.
5611
5612 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
5613
5614         * c-typeprint.c (c_type_print_varspec_suffix): Added
5615         check for not yet resolved high bound. If unresolved, print
5616         "variable length" string to the console instead of random
5617         length.
5618
5619 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
5620
5621         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5622         value.
5623         (ada_template_to_fixed_record_type_1): Likewise.
5624         (ada_to_fixed_type_1): Likewise.
5625         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5626         (cp_print_value): Likewise.
5627         * d-valprint.c (dynamic_array_type): Likewise.
5628         * findvar.c (address_of_variable): Likewise.
5629         * jv-valprint.c (java_value_print): Likewise.
5630         * valops.c (value_ind): Likewise.
5631         * value.c (coerce_ref): Likewise.
5632
5633 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
5634
5635         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5636         value and retrieve the dynamic type size.
5637
5638 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
5639
5640         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5641         passed to sizeof is dynamic evaluate the argument to compute the length.
5642
5643 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
5644             Joel Brobecker  <brobecker@adacore.com>
5645
5646         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5647         (dwarf2_evaluate_property): New function.
5648         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5649         * dwarf2read.c (attr_to_dynamic_prop): New function.
5650         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5651         attribute.
5652         * gdbtypes.c: Include dwarf2loc.h.
5653         (is_dynamic_type): New function.
5654         (resolve_dynamic_type): New function.
5655         (resolve_dynamic_bounds): New function.
5656         (get_type_length): New function.
5657         (check_typedef): Use get_type_length to compute type length.
5658         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5659         (TYPE_LOW_BOUND_KIND): New macro.
5660         (is_dynamic_type): New function prototype.
5661         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5662         to resolve dynamic properties of the type. Update comment.
5663         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5664
5665 2014-04-14  Richard Henderson  <rth@redhat.com>
5666
5667         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5668
5669 2014-04-12  Siva Chandra Reddy  <sivachandra@google.com>
5670             Doug Evans  <xdje42@gmail.com>
5671
5672         * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5673         dereference TYPE_CODE_REF values.
5674
5675 2014-04-11  Joel Brobecker  <brobecker@adacore.com>
5676
5677         Revert the following changes due to regressions:
5678
5679         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5680         (dwarf2_evaluate_property): New function.
5681         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5682         * dwarf2read.c (attr_to_dynamic_prop): New function.
5683         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5684         attribute.
5685         * gdbtypes.c: Include dwarf2loc.h.
5686         (is_dynamic_type): New function.
5687         (resolve_dynamic_type): New function.
5688         (resolve_dynamic_bounds): New function.
5689         (get_type_length): New function.
5690         (check_typedef): Use get_type_length to compute type length.
5691         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5692         (TYPE_LOW_BOUND_KIND): New macro.
5693         (is_dynamic_type): New function prototype.
5694         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5695         to resolve dynamic properties of the type. Update comment.
5696         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5697
5698         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5699         passed to sizeof is dynamic evaluate the argument to compute the length.
5700
5701         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5702         value and retrieve the dynamic type size.
5703
5704         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5705         (ada_template_to_fixed_record_type_1): Likewise.
5706         (ada_to_fixed_type_1): Likewise.
5707         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5708         (cp_print_value): Likewise.
5709         * d-valprint.c (dynamic_array_type): Likewise.
5710         * eval.c (evaluate_subexp_with_coercion): Likewise.
5711         * findvar.c (address_of_variable): Likewise.
5712         * jv-valprint.c (java_value_print): Likewise.
5713         * valops.c (value_ind): Likewise.
5714         * value.c (coerce_ref): Likewise.
5715
5716         * c-typeprint.c (c_type_print_varspec_suffix): Added
5717         check for not yet resolved high bound. If unresolved, print
5718         "variable length" string to the console instead of random
5719         length.
5720
5721         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5722         property and store it as the high bound and flag the range accordingly.
5723         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5724         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5725         * gdbtypes.h (enum range_flags): New enum.
5726         (struct range_bounds): Add flags member.
5727
5728         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5729         points to a constant blob.
5730
5731         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5732         (evaluate_subexp_standard): Pass noside argument.
5733         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5734         if noside equals EVAL_NORMAL. If the subscript yields a vla type
5735         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5736         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5737         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5738
5739 2014-04-11  Keith Seitz  <keiths@redhat.com>
5740
5741         PR c++/16675
5742         * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5743         * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5744         reference types.
5745
5746 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5747
5748         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5749         (evaluate_subexp_standard): Pass noside argument.
5750         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5751         if noside equals EVAL_NORMAL. If the subscript yields a vla type
5752         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5753         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5754         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5755
5756 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5757
5758         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5759         points to a constant blob.
5760
5761 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5762
5763         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5764         property and store it as the high bound and flag the range accordingly.
5765         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5766         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5767         * gdbtypes.h (enum range_flags): New enum.
5768         (struct range_bounds): Add flags member.
5769
5770 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5771
5772         * c-typeprint.c (c_type_print_varspec_suffix): Added
5773         check for not yet resolved high bound. If unresolved, print
5774         "variable length" string to the console instead of random
5775         length.
5776
5777 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5778
5779         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5780         (ada_template_to_fixed_record_type_1): Likewise.
5781         (ada_to_fixed_type_1): Likewise.
5782         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5783         (cp_print_value): Likewise.
5784         * d-valprint.c (dynamic_array_type): Likewise.
5785         * eval.c (evaluate_subexp_with_coercion): Likewise.
5786         * findvar.c (address_of_variable): Likewise.
5787         * jv-valprint.c (java_value_print): Likewise.
5788         * valops.c (value_ind): Likewise.
5789         * value.c (coerce_ref): Likewise.
5790
5791 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5792
5793         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5794         value and retrieve the dynamic type size.
5795
5796 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5797
5798         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5799         passed to sizeof is dynamic evaluate the argument to compute the length.
5800
5801 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5802
5803         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5804         (dwarf2_evaluate_property): New function.
5805         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5806         * dwarf2read.c (attr_to_dynamic_prop): New function.
5807         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5808         attribute.
5809         * gdbtypes.c: Include dwarf2loc.h.
5810         (is_dynamic_type): New function.
5811         (resolve_dynamic_type): New function.
5812         (resolve_dynamic_bounds): New function.
5813         (get_type_length): New function.
5814         (check_typedef): Use get_type_length to compute type length.
5815         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5816         (TYPE_LOW_BOUND_KIND): New macro.
5817         (is_dynamic_type): New function prototype.
5818         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5819         to resolve dynamic properties of the type. Update comment.
5820         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5821
5822 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5823
5824         * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5825         declaring high/low bounds and change uses accordingly. Call
5826         create_range_type instead of create_static_range_type.
5827         * gdbtypes.c (create_range_type): New function.
5828         (create_range_type): Convert bounds into struct bound_prop and pass
5829         them to create_range_type.
5830         * gdbtypes.h (struct bound_prop): New struct.
5831         (create_range_type): New function prototype.
5832         (struct range_bounds): Use struct bound_prop instead of LONGEST for
5833         high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5834         (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5835         part of the bound.
5836         * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5837
5838 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5839
5840         * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5841         * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5842         * ada-lang.c: All uses of create_range_type updated.
5843         * coffread.c: All uses of create_range_type updated.
5844         * dwarf2read.c: All uses of create_range_type updated.
5845         * f-exp.y: All uses of create_range_type updated.
5846         * m2-valprint.c: All uses of create_range_type updated.
5847         * mdebugread.c: All uses of create_range_type updated.
5848         * stabsread.c: All uses of create_range_type updated.
5849         * valops.c: All uses of create_range_type updated.
5850         * valprint.c: All uses of create_range_type updated.
5851
5852 2014-04-10  Pedro Alves  <palves@redhat.com>
5853
5854         * breakpoint.c (single_step_breakpoints)
5855         (single_step_gdbarch): Move up in the file.
5856         (one_breakpoint_xfer_memory): New function, factored out from ...
5857         (breakpoint_xfer_memory): ... here.  Also process single-step
5858         breakpoints.
5859
5860 2014-04-09  Tristan Gingold  <gingold@adacore.com>
5861
5862         * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5863         comments.
5864         (darwin_decode_exception_message): Free port only after use.
5865
5866 2014-04-08  Pierre Langlois  <pierre.langlois@embecosm.com>
5867
5868         * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5869         (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5870         when setting the size of call_length.
5871
5872 2014-04-07  Siva Chandra Reddy  <sivachandra@google.com>
5873
5874         * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5875         dereference TYPE_CODE_REF values.
5876
5877 2014-04-07  Joel Brobecker  <brobecker@adacore.com>
5878
5879         * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5880         end of warning message.
5881
5882 2014-04-03  Doug Evans  <dje@google.com>
5883
5884         * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5885         of stub_comp_unit_die, stub_comp_dir is non-NULL.
5886
5887 2014-04-02  Alan Modra  <amodra@gmail.com>
5888
5889         * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5890         Pass to bfd_elf_bfd_from_remote_memory.  Adjust all callers.
5891         (struct symbol_file_add_from_memory_args): Add size field.
5892         (find_vdso_size): New function.
5893         (add_vsyscall_page): Attempt to find vdso size.
5894
5895 2014-04-01  Doug Evans  <dje@google.com>
5896
5897         * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5898
5899 2014-04-01  Tristan Gingold  <gingold@adacore.com>
5900
5901         * darwin-nat.c (darwin_encode_reply): Add prototype.
5902         (darwin_decode_exception_message): Reply to unknown inferiors.
5903         (darwin_decode_message): Handle message by id.  Ignore message
5904         to unknown inferior.
5905         (darwin_wait): Discard unknown messages, add debug trace.
5906
5907 2014-03-31  Doug Evans  <dje@google.com>
5908
5909         * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5910         comp_dir_string.
5911
5912 2014-03-31  Doug Evans  <dje@google.com>
5913
5914         New option "set print symbol-loading".
5915         * NEWS: Mention it.
5916         * solib.c (solib_read_symbols): Only print symbol loading messages
5917         if requested.
5918         (solib_add): If symbol loading is in "brief" mode, notify user
5919         symbols are being loaded.
5920         (reload_shared_libraries_1): Ditto.
5921         * symfile.c (print_symbol_loading_off): New static global.
5922         (print_symbol_loading_brief): New static global.
5923         (print_symbol_loading_full): New static global.
5924         (print_symbol_loading_enums): New static global.
5925         (print_symbol_loading): New static global.
5926         (print_symbol_loading_p): New function.
5927         (symbol_file_add_with_addrs): Only print symbol loading messages
5928         if requested.
5929         (_initialize_symfile): Register "print symbol-loading" set/show
5930         command.
5931         * symfile.h (print_symbol_loading_p): Declare.
5932
5933 2014-03-30  Doug Evans  <xdje42@gmail.com>
5934
5935         * infrun.c (set_last_target_status): New function.
5936         (handle_inferior_event): Call it.
5937
5938 2014-03-30  Doug Evans  <xdje42@gmail.com>
5939
5940         * inferior.h (enum stop_kind): Improve comment.
5941
5942 2014-03-28  Joel Brobecker  <brobecker@adacore.com>
5943
5944         * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5945         a reference, strip the reference layer before calling
5946         the lang_ops value_has_mutated callback.
5947
5948 2014-03-27  Sergio Durigan Junior  <sergiodj@redhat.com>
5949
5950         Remove some globals from our parser.
5951         * language.c (unk_lang_parser): Add "struct parser_state"
5952         argument.
5953         * language.h (struct language_defn) <la_parser>: Likewise.
5954         * parse.c (expout, expout_size, expout_ptr): Remove variables.
5955         (initialize_expout): Add "struct parser_state" argument.
5956         Rewrite function to use the parser state.
5957         (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5958         write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5959         write_exp_elt_longcst, write_exp_elt_dblcst,
5960         write_exp_elt_decfloatcst, write_exp_elt_type,
5961         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5962         write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5963         write_dollar_variable): Likewise.
5964         (parse_exp_in_context_1): Use parser state.
5965         (insert_type_address_space): Add "struct parser_state" argument.
5966         Use parser state.
5967         (increase_expout_size): New function.
5968         * parser-defs.h: Forward declare "struct language_defn" and
5969         "struct parser_state".
5970         (expout, expout_size, expout_ptr): Remove extern declarations.
5971         (parse_gdbarch, parse_language): Rewrite macro declarations to
5972         accept the parser state.
5973         (struct parser_state): New struct.
5974         (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5975         write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5976         write_exp_elt_decfloatcst, write_exp_elt_type,
5977         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5978         write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5979         write_exp_msymbol, write_dollar_variable,
5980         mark_struct_expression, insert_type_address_space): Add "struct
5981         parser_state" argument.
5982         (increase_expout_size): New function.
5983         * utils.c (do_clear_parser_state): New function.
5984         (make_cleanup_clear_parser_state): Likewise.
5985         * utils.h (make_cleanup_clear_parser_state): New function
5986         prototype.
5987         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5988         Update calls to write_exp* in order to pass the parser state.
5989         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5990         * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5991         (i386_stap_parse_special_token_three_arg_disp): Likewise.
5992         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5993         * stap-probe.c (stap_parse_register_operand): Likewise.
5994         (stap_parse_single_operand): Likewise.
5995         (stap_parse_argument_1): Likewise.
5996         (stap_parse_argument): Use parser state.
5997         * stap-probe.h: Include "parser-defs.h".
5998         (struct stap_parse_info) <pstate>: New field.
5999         * c-exp.y (parse_type): Rewrite to use parser state.
6000         (yyparse): Redefine to c_parse_internal.
6001         (pstate): New global variable.
6002         (parse_number): Add "struct parser_state" argument.
6003         (write_destructor_name): Likewise.
6004         (type_exp): Update calls to write_exp* and similars in order to
6005         use parser state.
6006         (exp1, exp, variable, qualified_name, space_identifier,
6007         typename, typebase): Likewise.
6008         (write_destructor_name, parse_number, lex_one_token,
6009         classify_name, classify_inner_name, c_parse): Add "struct
6010         parser_state" argument.  Update function to use parser state.
6011         * c-lang.h: Forward declare "struct parser_state".
6012         (c_parse): Add "struct parser_state" argument.
6013         * ada-exp.y (parse_type): Rewrite macro to use parser state.
6014         (yyparse): Redefine macro to ada_parse_internal.
6015         (pstate): New variable.
6016         (write_int, write_object_renaming, write_var_or_type,
6017         write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6018         type_int, type_long, type_long_long, type_float, type_double,
6019         type_long_double, type_char, type_boolean, type_system_address):
6020         Add "struct parser_state" argument.
6021         (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6022         or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6023         var_or_type, aggregate, aggregate_component_list,
6024         positional_list, others, component_group,
6025         component_associations): Update calls to write_exp* and similar
6026         functions in order to use parser state.
6027         (ada_parse, write_var_from_sym, write_int,
6028         write_exp_op_with_string, write_object_renaming,
6029         find_primitive_type, write_selectors, write_ambiguous_var,
6030         write_var_or_type, write_name_assoc, type_int, type_long,
6031         type_long_long, type_float, type_double, type_long_double,
6032         type_char, type_boolean, type_system_address): Add "struct
6033         parser_state" argument.  Adjust function to use parser state.
6034         * ada-lang.c (parse): Likewise.
6035         * ada-lang.h: Forward declare "struct parser_state".
6036         (ada_parse): Add "struct parser_state" argument.
6037         * ada-lex.l (processInt, processReal): Likewise.  Adjust all
6038         calls to both functions.
6039         * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6040         parser state.
6041         (yyparse): Redefine macro to f_parse_internal.
6042         (pstate): New variable.
6043         (parse_number): Add "struct parser_state" argument.
6044         (type_exp, exp, subrange, typebase): Update calls to write_exp*
6045         and similars in order to use parser state.
6046         (parse_number): Adjust code to use parser state.
6047         (yylex): Likewise.
6048         (f_parse): New function.
6049         * f-lang.h: Forward declare "struct parser_state".
6050         (f_parse): Add "struct parser_state" argument.
6051         * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6052         parser state.
6053         (yyparse): Redefine macro for java_parse_internal.
6054         (pstate): New variable.
6055         (push_expression_name, push_expression_name, insert_exp): Add
6056         "struct parser_state" argument.
6057         (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6058         FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6059         FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6060         PostIncrementExpression, PostDecrementExpression,
6061         UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6062         UnaryExpressionNotPlusMinus, CastExpression,
6063         MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6064         RelationalExpression, EqualityExpression, AndExpression,
6065         ExclusiveOrExpression, InclusiveOrExpression,
6066         ConditionalAndExpression, ConditionalOrExpression,
6067         ConditionalExpression, Assignment, LeftHandSide): Update
6068         calls to write_exp* and similars in order to use parser state.
6069         (parse_number): Ajust code to use parser state.
6070         (yylex): Likewise.
6071         (java_parse): New function.
6072         (push_variable): Add "struct parser_state" argument.  Adjust
6073         code to user parser state.
6074         (push_fieldnames, push_qualified_expression_name,
6075         push_expression_name, insert_exp): Likewise.
6076         * jv-lang.h: Forward declare "struct parser_state".
6077         (java_parse): Add "struct parser_state" argument.
6078         * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6079         parser state.
6080         (yyparse): Redefine macro to m2_parse_internal.
6081         (pstate): New variable.
6082         (type_exp, exp, fblock, variable, type): Update calls to
6083         write_exp* and similars to use parser state.
6084         (yylex): Likewise.
6085         (m2_parse): New function.
6086         * m2-lang.h: Forward declare "struct parser_state".
6087         (m2_parse): Add "struct parser_state" argument.
6088         * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6089         * objc-lang.h: Forward declare "struct parser_state".
6090         (end_msglist): Add "struct parser_state" argument.
6091         * p-exp.y (parse_type): Rewrite macro to use parser state.
6092         (yyparse): Redefine macro to pascal_parse_internal.
6093         (pstate): New variable.
6094         (parse_number): Add "struct parser_state" argument.
6095         (type_exp, exp1, exp, qualified_name, variable): Update calls to
6096         write_exp* and similars in order to use parser state.
6097         (parse_number, yylex): Adjust code to use parser state.
6098         (pascal_parse): New function.
6099         * p-lang.h: Forward declare "struct parser_state".
6100         (pascal_parse): Add "struct parser_state" argument.
6101         * go-exp.y (parse_type): Rewrite macro to use parser state.
6102         (yyparse): Redefine macro to go_parse_internal.
6103         (pstate): New variable.
6104         (parse_number): Add "struct parser_state" argument.
6105         (type_exp, exp1, exp, variable, type): Update calls to
6106         write_exp* and similars in order to use parser state.
6107         (parse_number, lex_one_token, classify_name, yylex): Adjust code
6108         to use parser state.
6109         (go_parse): Likewise.
6110         * go-lang.h: Forward declare "struct parser_state".
6111         (go_parse): Add "struct parser_state" argument.
6112
6113 2014-03-27  Doug Evans  <dje@google.com>
6114
6115         * dwarf2read.c (read_str_index): Delete arg cu.  All callers updated.
6116
6117 2014-03-27  Doug Evans  <dje@google.com>
6118
6119         * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6120         Remove argument abbrev_section.  All callers updated.
6121
6122 2014-03-27  Doug Evans  <dje@google.com>
6123
6124         * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6125         addr_base, ranges_base.
6126
6127 2014-03-26  Keith Seitz  <keiths@redhat.com>
6128
6129         * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6130         types, not VAR_DOMAIN.
6131
6132 2014-03-25  Sandra Loosemore  <sandra@codesourcery.com>
6133
6134         * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6135         "ra" registers.
6136         * features/nios2-linux.c: Regenerated.
6137         * features/nios2.c: Regenerated.
6138
6139 2014-03-25  Pedro Alves  <palves@redhat.com>
6140
6141         * cli/cli-script.c (script_from_file): Force the interpreter to
6142         sync mode.
6143
6144 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
6145
6146         * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6147         small stack allocation.
6148
6149 2014-03-24  Tristan Gingold  <gingold@adacore.com>
6150
6151         * darwin-nat.c (exc_server): Remove unused prototype.
6152         (darwin_dump_message): Correctly display data on x86_64.
6153         (darwin_encode_reply): Fix style.
6154         Add comments and fix indentation.
6155
6156 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
6157
6158         * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6159
6160 2014-03-22  Doug Evans  <xdje42@gmail.com>
6161
6162         * infcmd.c: Whitespace fixes.
6163         (interrupt_command): Merge two function comments into one.
6164
6165 2014-03-22  Doug Evans  <xdje42@gmail.com>
6166
6167         * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6168         All uses updated.
6169
6170 2014-03-22  Yao Qi  <yao@codesourcery.com>
6171
6172         * remote.c (target_read_live_memory): Remove.
6173         (memory_xfer_live_readonly_partial): Rename it to
6174         remote_xfer_live_readonly_partial.  Remove argument 'object'.
6175         All callers updated.  Call remote_read_bytes_1
6176         instead of target_read_live_memory.
6177         * tracepoint.c (set_traceframe_number): Remove.
6178         (make_cleanup_restore_traceframe_number): Likewise .
6179         * tracepoint.h (set_traceframe_number): Remove declaration.
6180         (make_cleanup_restore_traceframe_number): Likewise.
6181
6182 2014-03-22  Yao Qi  <yao@codesourcery.com>
6183
6184         * remote.c (remote_read_bytes): Move code on reading from the
6185         remote stub to ...
6186         (remote_read_bytes_1): ... here.  New function.
6187
6188 2014-03-22  Yao Qi  <yao@codesourcery.com>
6189
6190         * ctf.c (ctf_xfer_partial): Check the return value of
6191         exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6192         return TARGET_XFER_UNAVAILABLE.
6193         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6194         * target.c (target_read_live_memory): Move it to remote.c.
6195         (memory_xfer_live_readonly_partial): Likewise.
6196         (memory_xfer_partial_1): Move some code to remote_read_bytes.
6197         * remote.c (target_read_live_memory): Moved from target.c.
6198         (memory_xfer_live_readonly_partial): Likewise.
6199         (remote_read_bytes): Factored out from
6200         memory_xfer_partial_1.
6201
6202 2014-03-21  Daniel Gutson  <daniel.gutson@tallertechnologies.com>
6203
6204         * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6205         NULL pointer.
6206
6207 2014-03-21  Pedro Alves  <palves@redhat.com>
6208
6209         * infrun.c (normal_stop): Extend comment.
6210
6211 2014-03-21  Hui Zhu  <hui@codesourcery.com>
6212             Pedro Alves  <palves@redhat.com>
6213
6214         * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6215         static buffer.
6216         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6217         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6218         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6219
6220 2014-03-20  Maciej W. Rozycki  <macro@codesourcery.com>
6221
6222         * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6223         `z' formatted output modifier.
6224
6225 2014-03-20  Tom Tromey  <tromey@redhat.com>
6226             Sergio Durigan Junior  <sergiodj@redhat.com>
6227
6228         * probe.c (parse_probes): Turn assert into an ordinary error.
6229         * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6230         exceptions when parsing probes.  Rearrange the code for clarity.
6231
6232 2014-03-20  Tom Tromey  <tromey@redhat.com>
6233
6234         PR gdb/14135
6235         * top.c (execute_command): Only dispatch events if the command
6236         started the target.
6237
6238 2014-03-20  Tom Tromey  <tromey@redhat.com>
6239
6240         PR cli/15718
6241         * infcall.c: Include event-top.h.
6242         (run_inferior_call): Call async_disable_stdin if needed.
6243
6244 2014-03-20  Pedro Alves  <palves@redhat.com>
6245
6246         * infrun.c (prepare_to_proceed): Delete.
6247         (thread_still_needs_step_over): New function.
6248         (find_thread_needs_step_over): New function.
6249         (proceed): If the current thread needs a step-over, set its
6250         steping_over_breakpoint flag.  Adjust to use
6251         find_thread_needs_step_over instead of prepare_to_proceed.
6252         (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6253         BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6254         breakpoint.
6255         (switch_back_to_stepped_thread): Step over breakpoints of all
6256         threads not the stepping thread, before switching back to the
6257         stepping thread.
6258
6259 2014-03-20  Pedro Alves  <palves@redhat.com>
6260
6261         * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6262         extern.
6263         * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6264         * infrun.c (saved_singlestep_ptid)
6265         (stepping_past_singlestep_breakpoint): Delete.
6266         (resume): Remove stepping_past_singlestep_breakpoint handling.
6267         (proceed): Store the prev_pc of the stepping thread too.
6268         (init_wait_for_inferior): Adjust.  Clear singlestep_ptid and
6269         singlestep_pc.
6270         (enum infwait_states): Delete infwait_thread_hop_state.
6271         (struct execution_control_state) <hit_singlestep_breakpoint>: New
6272         field.
6273         (handle_inferior_event): Adjust.
6274         (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6275         handling and the thread-hop code.  Before removing single-step
6276         breakpoints, check whether the thread hit a single-step breakpoint
6277         of another thread.  If it did, the trap is not a random signal.
6278         (switch_back_to_stepped_thread): If the event thread hit a
6279         single-step breakpoint, unblock it before switching to the
6280         stepping thread.  Handle the case of the stepped thread having
6281         advanced already.
6282         (keep_going): Handle the case of the current thread moving past a
6283         single-step breakpoint.
6284
6285 2014-03-20  Pedro Alves  <palves@redhat.com>
6286
6287         PR breakpoints/7143
6288         * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6289         are being stepped over.
6290         (breakpoint_address_match): Make extern.
6291         * breakpoint.h (breakpoint_address_match): New declaration.
6292         * inferior.h (stepping_past_instruction_at): New declaration.
6293         * infrun.c (struct step_over_info): New type.
6294         (step_over_info): New global.
6295         (set_step_over_info, clear_step_over_info)
6296         (stepping_past_instruction_at): New functions.
6297         (handle_inferior_event): Clear the step-over info when
6298         trap_expected is cleared.
6299         (resume): Remove now stale comment.
6300         (clear_proceed_status): Clear step-over info.
6301         (proceed): Adjust step-over handling to set or clear the step-over
6302         info instead of removing all breakpoints.
6303         (handle_signal_stop): When setting up a thread-hop, don't remove
6304         breakpoints here.
6305         (stop_stepping): Clear step-over info.
6306         (keep_going): Adjust step-over handling to set or clear step-over
6307         info and then always inserting breakpoints, instead of removing
6308         all breakpoints when stepping over one.
6309
6310 2014-03-20  Pedro Alves  <palves@redhat.com>
6311
6312         * infrun.c (previous_inferior_ptid): Adjust comment.
6313         (deferred_step_ptid): Delete.
6314         (infrun_thread_ptid_changed, prepare_to_proceed)
6315         (init_wait_for_inferior): Adjust.
6316         (handle_signal_stop): Delete deferred_step_ptid handling.
6317
6318 2014-03-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
6319
6320         PR gdb/15358
6321         * defs.h (sync_quit_force_run): New declaration.
6322         (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6323         * event-top.c (async_sigterm_handler): New declaration.
6324         (async_sigterm_token): New variable.
6325         (async_init_signals): Create also async_sigterm_token.
6326         (async_sigterm_handler): New function.
6327         (sync_quit_force_run): New variable.
6328         (handle_sigterm): Replace quit_force call by other calls.
6329         * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6330
6331 2014-03-18  Maciej W. Rozycki  <macro@codesourcery.com>
6332
6333         * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6334         offset into SPE pseudo registers.
6335
6336 2014-03-18  Pedro Alves  <palves@redhat.com>
6337
6338         PR gdb/13860
6339         * inferior.h (print_stop_event): Declare.
6340         * infrun.c (print_stop_event): New, factored out from ...
6341         (normal_stop): ... this.
6342         * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6343         of bpstat_print/print_stack_frame.
6344
6345 2014-03-17  Tom Tromey  <tromey@redhat.com>
6346
6347         * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6348
6349 2014-03-17  Pierre-Marie de Rodat  <derodat@adacore.com>
6350
6351         * ada-lang.c (decode_constrained_packed_array): Perform a
6352         minimal coercion for reference with coerce_ref instead of
6353         ada_coerce_ref.
6354
6355 2014-03-17  Tristan Gingold  <gingold@adacore.com>
6356
6357         * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6358         (darwin_solib_create_inferior_hook): Emit a warning if version
6359         is unhandled.
6360
6361 2014-03-16  Ulrich Weigand  <uweigand@de.ibm.com>
6362
6363         * python/py-value.c (get_field_flag): Cast flag_name argument to
6364         PyObject_GetAttrString to support Python 2.4.
6365
6366 2014-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
6367
6368         * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6369         (Global Maintainers): Remove Jan Kratochvil.
6370
6371 2014-03-14  Pedro Alves  <palves@redhat.com>
6372
6373         * inferior.h (terminal_ours_for_output): Rename to ...
6374         (child_terminal_ours_for_output): ... this.
6375         (terminal_save_ours): Rename to ...
6376         (child_terminal_save_ours): ... this.
6377         (terminal_ours): Rename to ...
6378         (child_terminal_ours): ... this.
6379         (terminal_inferior): Rename to ...
6380         (child_terminal_inferior): ... this.
6381         (terminal_init_inferior): Rename to ...
6382         (child_terminal_init_inferior): ... this.
6383         (terminal_init_inferior_with_pgrp): Rename to ...
6384         (child_terminal_init_inferior_with_pgrp): ... this.
6385         * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6386         (child_terminal_init_with_pgrp): ... this.
6387         (terminal_save_ours): Rename to ...
6388         (child_terminal_save_ours): ... this.
6389         (terminal_init_inferior): Rename to ...
6390         (child_terminal_init): ... this.  Adjust.
6391         (terminal_inferior): Rename to ...
6392         (child_terminal_inferior): ... this.
6393         (terminal_ours_for_output): Rename to ...
6394         (child_terminal_ours_for_output): ... this.  Adjust.
6395         (terminal_ours): Rename to ...
6396         (child_terminal_ours): ... this.
6397         (terminal_ours_1): Rename to ...
6398         (child_terminal_ours_1): ... this.  Adjust.
6399         * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6400         * windows-nat.c (do_initial_windows_stuff): Adjust.
6401         * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6402         (gnu_terminal_init): ... this.  Adjust.
6403         (gnu_target): Adjust.
6404         * inf-child.c (inf_child_target): Adjust.
6405
6406 2014-03-13  Doug Evans  <xdje42@gmail.com>
6407
6408         PR guile/16612
6409         * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6410         new eq?-hashtab.
6411
6412 2014-03-13  Doug Evans  <xdje42@gmail.com>
6413
6414         * value.c (record_latest_value): Call release_value_or_incref
6415         instead of release_value.
6416
6417 2014-03-13  Pedro Alves  <palves@redhat.com>
6418
6419         * procfs.c (procfs_target): Don't override to_shortname,
6420         to_longname or to_doc.
6421
6422 2014-03-13  Pedro Alves  <palves@redhat.com>
6423
6424         * inf-child.c (inf_child_open, inf_child_target): Don't mention
6425         Unix in user visible strings.
6426
6427 2014-03-12  Stan Shebs  <stan@codesourcery.com>
6428
6429         * gdbtypes.h: Annotate comments for Doxygen, add a page
6430         block comment with some general info.
6431
6432 2014-03-12  Pedro Alves  <palves@redhat.com>
6433
6434         * infcmd.c (prepare_execution_command): New function, factored out
6435         from several execution commands.
6436         (run_command_1, continue_command, step_1, jump_command)
6437         (signal_command, until_command, advance_command, finish_command)
6438         (attach_command): Use prepare_execution_command.
6439
6440 2014-03-12  Omair Javaid  <omair.javaid@linaro.org>
6441
6442         * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6443         (MAX_BPTS): Define.
6444         (MAX_WPTS): Define.
6445         (struct arm_linux_thread_points): Removed.
6446         (struct arm_linux_process_info): New.
6447         (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6448         (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6449         (arm_linux_find_breakpoints_by_tid): Removed.
6450         (struct arch_lwp_info): New.
6451         (arm_linux_find_process_pid): New functions.
6452         (arm_linux_add_process): New functions.
6453         (arm_linux_process_info_get): New functions.
6454         (arm_linux_forget_process): New function.
6455         (arm_linux_get_debug_reg_state): New function.
6456         (struct update_registers_data): New.
6457         (update_registers_callback): New function.
6458         (arm_linux_insert_hw_breakpoint1): Updated.
6459         (arm_linux_remove_hw_breakpoint1): Updated.
6460         (arm_linux_insert_hw_breakpoint): Updated.
6461         (arm_linux_remove_hw_breakpoint): Updated.
6462         (arm_linux_insert_watchpoint): Updated.
6463         (arm_linux_remove_watchpoint): Updated.
6464         (arm_linux_new_thread): Updated.
6465         (arm_linux_prepare_to_resume): New function.
6466         (arm_linux_new_fork): New function.
6467         (_initialize_arm_linux_nat): Updated.
6468
6469 2014-03-12  Pedro Alves  <palves@redhat.com>
6470
6471         * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6472
6473 2014-03-12  Tom Tromey  <tromey@redhat.com>
6474
6475         * inf-child.c (return_zero): New function.
6476         (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6477         * aix-thread.c (aix_thread_inferior_created): New function.
6478         (aix_thread_attach): Remove.
6479         (init_aix_thread_ops): Don't set to_attach.
6480         (_initialize_aix_thread): Register inferior_created observer.
6481         * corelow.c (init_core_ops): Don't set to_attach or
6482         to_create_inferior.
6483         * exec.c (init_exec_ops): Don't set to_attach or
6484         to_create_inferior.
6485         * infcmd.c (run_command_1): Use find_run_target.  Make direct
6486         target calls.
6487         (attach_command): Use find_attach_target.  Make direct target
6488         calls.
6489         * record-btrace.c (init_record_btrace_ops): Don't set
6490         to_create_inferior.
6491         * record-full.c (record_full_can_async_p, record_full_is_async_p):
6492         Remove.
6493         (init_record_full_ops, init_record_full_core_ops): Update.  Don't
6494         set to_create_inferior.
6495         * target.c (complete_target_initialization): Add assertion.
6496         (target_create_inferior): Remove.
6497         (find_default_attach, find_default_create_inferior): Remove.
6498         (find_attach_target, find_run_target): New functions.
6499         (find_default_is_async_p, find_default_can_async_p)
6500         (target_supports_non_stop, target_attach): Remove.
6501         (init_dummy_target): Don't set to_create_inferior or
6502         to_supports_non_stop.
6503         * target.h (struct target_ops) <to_attach>: Add comment.  Remove
6504         TARGET_DEFAULT_FUNC.
6505         <to_create_inferior>: Add comment.
6506         <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6507         TARGET_DEFAULT_RETURN.
6508         <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6509         (find_attach_target, find_run_target): Declare.
6510         (target_create_inferior): Remove.
6511         (target_has_execution_1): Update comment.
6512         (target_supports_non_stop): Remove.
6513         * target-delegates.c: Rebuild.
6514
6515 2014-03-12  Pedro Alves  <palves@redhat.com>
6516
6517         * inf-child.h: Update comment to not mention Unix.
6518
6519 2014-03-12  Pedro Alves  <palves@redhat.com>
6520
6521         * inf-child.c: Update top comment to not mention Unix.  Add
6522         generic comment describing how this target is meant to be used.
6523         (inf_child_post_attach, inf_child_post_startup_inferior)
6524         (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6525         Unix in comment.
6526
6527 2014-03-12  Pedro Alves  <palves@redhat.com>
6528
6529         * nto-procfs.c: Include inf-child.h.
6530         (procfs_ops): Delete global.
6531         (procfs_can_run): Delete method.
6532         (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6533         target pointer instead of referencing procfs_ops.
6534         (procfs_prepare_to_store): Delete.
6535         (init_procfs_ops): Delete function.
6536         (procfs_target): New function, based on init_procfs_ops, but
6537         inherit inf_child_target.
6538         (_initialize_procfs): Use procfs_target.
6539
6540 2014-03-12  Pedro Alves  <palves@redhat.com>
6541
6542         * windows-nat.c: Include inf-child.h.
6543         (windows_ops): Delete global.
6544         (windows_open, windows_prepare_to_store, windows_can_run): Delete
6545         methods.
6546         (init_windows_ops): Delete function.
6547         (windows_target): New function, based on init_windows_ops, but
6548         inherit inf_child_target.
6549         (_initialize_windows_nat): Use windows_target.  Install x86
6550         specific target methods here.
6551
6552 2014-03-10  Doug Evans  <xdje42@gmail.com>
6553
6554         * guile/guile.c (call_initialize_gdb_module): New function.
6555         (initialize_guile): Replace call to scm_init_guile with call to
6556         scm_with_guile.
6557
6558 2014-03-10  Joel Brobecker  <brobecker@adacore.com>
6559
6560         * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6561         in call to TYPE_CODE macro.
6562
6563 2014-03-10  Jerome Guitton  <guitton@adacore.com>
6564
6565         * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6566         Resolve tagged types to full view.
6567
6568 2014-03-10  Hui Zhu  <hui@codesourcery.com>
6569
6570         * target.h (target_insert_breakpoint): Remove "hardware" from its
6571         comments.
6572
6573 2014-03-07  Doug Evans  <dje@google.com>
6574
6575         * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6576
6577 2014-03-07  Doug Evans  <dje@google.com>
6578
6579         * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6580         Remove unused local comp_dir_attr.  Assert exactly one of
6581         stub_comp_unit_die, stub_comp_dir is non-NULL.
6582
6583 2014-03-07  Joel Brobecker  <brobecker@adacore.com>
6584
6585         * target.h (complete_target_initialization, add_target):
6586         Add comment.
6587
6588 2014-03-07  Pedro Alves  <palves@redhat.com>
6589
6590         * go32-nat.c: Include inf-child.h.
6591         (go32_ops): Delete global.
6592         (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6593         Delete methods.
6594         (go32_create_inferior): Push the passed in target pointer instead
6595         of referencing go32_ops.
6596         (init_go32_ops): Delete function.  Moved parts to _initialize_go32_nat.
6597         (go32_target): New function, based on init_go32_ops, but inherit
6598         inf_child_target.
6599         (_initialize_go32_nat): Use go32_target.  Move parts of
6600         init_go32_ops here.
6601
6602 2014-03-06  Joel Brobecker  <brobecker@adacore.com>
6603
6604         * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6605         (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6606         SYMBOL_VALUE_ADDRESS.
6607         (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6608
6609 2014-03-06  Yao Qi  <yao@codesourcery.com>
6610
6611         * breakpoint.c (get_tracepoint_by_number): Remove argument
6612         optional_p.  All callers updated.  Adjust comments.  Update
6613         output message.
6614         * breakpoint.h (get_tracepoint_by_number): Update declaration.
6615
6616 2014-03-06  Yao Qi  <yao@codesourcery.com>
6617
6618         * reverse.c (goto_bookmark_command): Add local 'p'.  Emit error
6619         early if get_number returns zero.  Use 'p' instead of 'args'.
6620
6621 2014-03-06  Yao Qi  <yao@codesourcery.com>
6622
6623         * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6624         message.
6625
6626 2014-03-06  Yao Qi  <yao@codesourcery.com>
6627
6628         PR breakpoints/16508
6629         * tracepoint.c (check_trace_running): New function.
6630         (trace_find_command): Move code to check_trace_running and
6631         call check_trace_running.
6632         (trace_find_pc_command): Likewise.
6633         (trace_find_tracepoint_command): Likewise.
6634         (trace_find_line_command): Likewise.
6635         (trace_find_range_command): Likewise.
6636         * tracepoint.h (check_trace_running): Likewise.
6637         * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6638
6639 2014-03-06  Yao Qi  <yao@codesourcery.com>
6640
6641         * target.h (struct target_ops) <to_traceframe_info>: Use
6642         TARGET_DEFAULT_NORETURN (tcomplain ()).
6643         * target-delegates.c: Regenerated.
6644
6645 2014-03-05  Pedro Alves  <palves@redhat.com>
6646
6647         PR gdb/16575
6648         * dcache.c (dcache_poke_byte): Constify ptr parameter.  Return
6649         void.  Update comment.
6650         (dcache_xfer_memory): Delete.
6651         (dcache_read_memory_partial): New, based on the read bits of
6652         dcache_xfer_memory.
6653         (dcache_update): Add status parameter.  Use ULONGEST for len, and
6654         adjust.  Discard cache lines if the reason for the update was
6655         error.
6656         * dcache.h (dcache_xfer_memory): Delete declaration.
6657         (dcache_read_memory_partial): New declaration.
6658         (dcache_update): Update prototype.
6659         * target.c (raw_memory_xfer_partial): Update the dcache here.
6660         (memory_xfer_partial_1): Don't handle dcache writes here.
6661
6662 2014-03-05  Mike Frysinger  <vapier@gentoo.org>
6663
6664         * remote-sim.c (gdbsim_load): Add const to prog.
6665
6666 2014-03-03  Tom Tromey  <tromey@redhat.com>
6667
6668         * elfread.c (probe_key): Change to bfd_data.
6669         (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6670         now per-BFD, not per-objfile.
6671         * stap-probe.c (stap_probe_destroy): Update comment.
6672         (handle_stap_probe): Allocate on the per-BFD obstack.
6673
6674 2014-03-03  Tom Tromey  <tromey@redhat.com>
6675
6676         * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6677         * breakpoint.c (create_longjmp_master_breakpoint): Use
6678         get_probe_address.
6679         (add_location_to_breakpoint, bkpt_probe_insert_location)
6680         (bkpt_probe_remove_location): Update.
6681         * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6682         * elfread.c (elf_symfile_relocate_probe): Remove.
6683         (elf_probe_fns): Update.
6684         (insert_exception_resume_breakpoint): Change type of "probe"
6685         parameter to bound_probe.
6686         (check_exception_resume): Update.
6687         * objfiles.c (objfile_relocate1): Don't relocate probes.
6688         * probe.c (bound_probe_s): New typedef.
6689         (parse_probes): Use get_probe_address.  Set sal's objfile.
6690         (find_probe_by_pc): Return a bound_probe.
6691         (collect_probes): Return a VEC(bound_probe_s).
6692         (compare_probes): Update.
6693         (gen_ui_out_table_header_info): Change type of "probes"
6694         parameter.  Update.
6695         (info_probes_for_ops): Update.
6696         (get_probe_address): New function.
6697         (probe_safe_evaluate_at_pc): Update.
6698         * probe.h (struct probe_ops) <get_probe_address>: New field.
6699         <set_semaphore, clear_semaphore>: Add objfile parameter.
6700         (struct probe) <objfile>: Remove field.
6701         <arch>: New field.
6702         <address>: Update comment.
6703         (struct bound_probe): New.
6704         (find_probe_by_pc): Return a bound_probe.
6705         (get_probe_address): Declare.
6706         * solib-svr4.c (struct probe_and_action) <address>: New field.
6707         (hash_probe_and_action, equal_probe_and_action): Update.
6708         (register_solib_event_probe): Add address parameter.
6709         (solib_event_probe_at): Update.
6710         (svr4_create_probe_breakpoints): Add objfile parameter.  Use
6711         get_probe_address.
6712         * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6713         (stap_get_probe_address): New function.
6714         (stap_can_evaluate_probe_arguments, compute_probe_arg)
6715         (compile_probe_arg): Update.
6716         (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6717         address.
6718         (handle_stap_probe): Don't relocate the probe.
6719         (stap_relocate): Remove.
6720         (stap_gen_info_probes_table_values): Update.
6721         (stap_probe_ops): Remove stap_relocate.
6722         * symfile-debug.c (debug_sym_relocate_probe): Remove.
6723         (debug_sym_probe_fns): Update.
6724         * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6725         * symtab.c (init_sal): Use memset.
6726         * symtab.h (struct symtab_and_line) <objfile>: New field.
6727         * tracepoint.c (start_tracing, stop_tracing): Update.
6728
6729 2014-03-03  Tom Tromey  <tromey@redhat.com>
6730
6731         * probe.h (parse_probes, find_probe_by_pc)
6732         (find_probes_in_objfile): Fix comments.
6733
6734 2014-03-02  Doug Evans  <xdje42@gmail.com>
6735
6736         * infrun.c (handle_signal_stop): Replace test for
6737         TARGET_WAITKIND_STOPPED with an assert.
6738
6739 2014-03-02  Doug Evans  <xdje42@gmail.com>
6740
6741         * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6742
6743 2014-03-02  Doug Evans  <xdje42@gmail.com>
6744
6745         * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6746
6747 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
6748
6749         * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6750
6751 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
6752
6753         * i386obsd-nat.c: Include "obsd-nat.h".
6754         (_initialize_i386obsd_nat): Call obsd_add_target instead of
6755         add_target.
6756         * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6757
6758 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
6759
6760         * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6761
6762 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
6763
6764         * mips64obsd-nat.c: Include "obsd-nath".
6765         (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6766         add_target
6767         * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6768
6769 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
6770
6771         * amd64obsd-nat.c: Include "obsd-nat,h.
6772         (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6773         add_target.
6774         * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6775
6776 2014-02-28  Siva Chandra Reddy  <sivachandra@google.com>
6777
6778         * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6779         (find_overload_match): Update call to find_oload_champ.
6780         (find_oload_champ_namespace_loop): Likewise
6781
6782 2014-02-28  Mark Kettenis  <kettenis@gnu.org>
6783
6784         * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6785
6786         * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6787         * config/sparc/obsd64.mh: New file.
6788         * sparc64obsd-nat.c: New file.
6789
6790         * obsd-nat.h: New file.
6791         * obsd-nat.c: New file.
6792         * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6793         (ALLDEPFILES): Add obsd-nat.c.
6794
6795 2014-02-28  Tom Tromey  <tromey@redhat.com>
6796
6797         * cli-out.c (cli_ui_out_impl): Now const.  Remove comment.
6798         * cli-out.h (cli_ui_out_impl): Now const.
6799         * mi/mi-out.c (mi_ui_out_impl): Now const.  Remove comment.
6800         * ui-out.c (struct ui_out) <impl>: Now const.
6801         (default_ui_out_impl): Now const.
6802         (ui_out_new): Make 'impl' parameter const.
6803         * ui-out.h (ui_out_new): Update.
6804
6805 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
6806
6807         * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6808
6809 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
6810
6811         * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6812
6813 2014-02-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
6814
6815         Additional PR 8882 fix.
6816         * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6817
6818 2014-02-27  Pedro Alves  <palves@redhat.com>
6819
6820         * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6821         isn't set.
6822
6823 2014-02-27  Pedro Alves  <palves@redhat.com>
6824
6825         PR 12702
6826         * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6827         * nat/linux-waitpid.c: Include string.h.
6828         (status_to_str): Moved here and made extern.
6829         * nat/linux-waitpid.h (status_to_str): New declaration.
6830
6831 2014-02-27  Hui Zhu  <hui@codesourcery.com>
6832
6833         PR 12702
6834         * infrun.c (ptid_match): Move ...
6835         * common/ptid.c (ptid_match): ... here.
6836         * inferior.h (ptid_match): Move ...
6837         * common/ptid.h (ptid_match): ... here.
6838
6839 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
6840
6841         * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6842         * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6843         gdb_target_obs.
6844
6845 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
6846
6847         * obsd-tdep.c (obsd_auxv_parse): New function.
6848         (obsd_init_abi): Set auxv_parse.
6849
6850         * gdbarch.sh (auxv_parse): New.
6851         * gdbarch.h: Regenerated.
6852         * gdbarch.c: Regenerated.
6853         * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6854
6855 2014-02-26  Ludovic Courtès  <ludo@gnu.org>
6856
6857         * guile/scm-value.c (gdbscm_history_append_x): New function.
6858         (value_functions): Add it.
6859
6860 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
6861
6862         * dwarf2read.c (attr_value_as_address): New function.
6863         (dwarf2_find_base_address, read_call_site_scope): Use
6864         attr_value_as_address in place of DW_ADDR.
6865         (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6866         the low and high addresses.  Slight rework of the handling
6867         of the high pc being a constant form, and limit it to
6868         DWARF verson 4 or higher.
6869         (dwarf2_record_block_ranges): Likewise.
6870         (read_partial_die): Likewise.
6871         (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6872
6873 2014-02-26  Tom Tromey  <tromey@redhat.com>
6874
6875         * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6876
6877 2014-02-26  Tom Tromey  <tromey@redhat.com>
6878
6879         * elfread.c (elf_read_minimal_symbols): Return early if
6880         minimal symbols have already been read.  Add "ei" parameter.
6881         (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6882         * minsyms.c (prim_record_minimal_symbol_full): Update.
6883         * objfiles.h (struct objstats) <n_minsyms>: Move...
6884         (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6885         * symmisc.c (print_objfile_statistics): Update.
6886
6887 2014-02-26  Tom Tromey  <tromey@redhat.com>
6888
6889         * elfread.c (elf_read_minimal_symbols): New function, from
6890         elf_symfile_read.
6891         (elf_symfile_read): Call it.
6892
6893 2014-02-26  Tom Tromey  <tromey@redhat.com>
6894
6895         * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6896         (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6897         (lookup_minimal_symbol_solib_trampoline)
6898         (lookup_minimal_symbol_by_pc_section_1)
6899         (lookup_minimal_symbol_and_objfile): Update.
6900         (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6901         Don't allocate a minimal symbol if minsyms have already been read.
6902         (build_minimal_symbol_hash_tables): Update.
6903         (install_minimal_symbols): Do nothing if minsyms already read.
6904         Use the per-BFD obstack.
6905         (terminate_minimal_symbol_table): Use the per-BFD obstack.
6906         * objfiles.c (allocate_objfile): Call
6907         terminate_minimal_symbol_table later.
6908         (have_minimal_symbols): Update.
6909         * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6910         minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6911         Move from struct objfile.
6912         <minsyms_read>: New field.
6913         (struct objfile) <msymbols, minimal_symbol_count,
6914         msymbol_hash, msymbol_demangled_hash>: Move.
6915         (ALL_OBJFILE_MSYMBOLS): Update.
6916         * symfile.c (read_symbols): Set minsyms_read.
6917         (reread_symbols): Update.
6918         * symmisc.c (dump_objfile, dump_msymbols): Update.
6919
6920 2014-02-26  Tom Tromey  <tromey@redhat.com>
6921
6922         * minsyms.c (msymbols_sort): Remove.
6923         * minsyms.h (msymbols_sort): Remove.
6924         * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6925         * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6926         * elfread.c (elf_symtab_read): Don't add section offsets.
6927         * xcoffread.c (record_minimal_symbol): Don't add section offset
6928         to minimal symbol address.
6929         * somread.c (text_offset, data_offset): Remove.
6930         (som_symtab_read): Don't add section offsets to minimal symbol
6931         addresses.
6932         * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6933         Don't add section offsets to minimal symbols.
6934         * coffread.c (coff_symtab_read): Don't add section offsets
6935         to minimal symbol addresses.
6936         * machoread.c (macho_symtab_add_minsym): Don't add section offset
6937         to minimal symbol addresses.
6938         * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6939         section offset to minimal symbol addresses.
6940         * mdebugread.c (parse_partial_symbols): Don't add section
6941         offset to minimal symbol addresses.
6942         * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6943         offset to minimal symbol addresses.
6944
6945 2014-02-26  Tom Tromey  <tromey@redhat.com>
6946
6947         * ada-lang.c (ada_main_name): Update.
6948         (ada_add_standard_exceptions): Update.
6949         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6950         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6951         * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6952         * auxv.c (ld_so_xfer_auxv): Update.
6953         * avr-tdep.c (avr_scan_prologue): Update.
6954         * ax-gdb.c (gen_var_ref): Update.
6955         * blockframe.c (get_pc_function_start)
6956         (find_pc_partial_function_gnu_ifunc): Update.
6957         * breakpoint.c (create_overlay_event_breakpoint)
6958         (create_longjmp_master_breakpoint)
6959         (create_std_terminate_master_breakpoint)
6960         (create_exception_master_breakpoint): Update.
6961         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6962         * c-valprint.c (c_val_print): Update.
6963         * coff-pe-read.c (add_pe_forwarded_sym): Update.
6964         * common/agent.c (agent_look_up_symbols): Update.
6965         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6966         * dwarf2loc.c (call_site_to_target_addr): Update.
6967         * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6968         * elfread.c (elf_gnu_ifunc_record_cache)
6969         (elf_gnu_ifunc_resolve_by_got): Update.
6970         * findvar.c (default_read_var_value): Update.
6971         * frame.c (inside_main_func): Update.
6972         * frv-tdep.c (frv_frame_this_id): Update.
6973         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6974         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6975         Update.
6976         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6977         (hppa_hpux_find_dummy_bpaddr): Update.
6978         * hppa-tdep.c (hppa_symbol_address): Update.
6979         * infcmd.c (until_next_command): Update.
6980         * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6981         Update.
6982         * linespec.c (minsym_found, add_minsym): Update.
6983         * linux-nat.c (get_signo): Update.
6984         * linux-thread-db.c (inferior_has_bug): Update.
6985         * m32c-tdep.c (m32c_return_value)
6986         (m32c_m16c_address_to_pointer): Update.
6987         * m32r-tdep.c (m32r_frame_this_id): Update.
6988         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6989         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6990         * maint.c (maintenance_translate_address): Update.
6991         * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6992         (frob_address): New function.
6993         (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6994         frob_address.  Rename parameter to "pc_in".
6995         (compare_minimal_symbols, compact_minimal_symbols): Use raw
6996         addresses.
6997         (find_solib_trampoline_target, minimal_symbol_upper_bound):
6998         Update.
6999         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7000         * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7001         * objc-lang.c (find_objc_msgsend): Update.
7002         * objfiles.c (objfile_relocate1): Update.
7003         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7004         * p-valprint.c (pascal_val_print): Update.
7005         * parse.c (write_exp_msymbol): Update.
7006         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7007         (ppc_elfv2_skip_entrypoint): Update.
7008         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7009         * printcmd.c (build_address_symbolic, msym_info)
7010         (address_info): Update.
7011         * proc-service.c (ps_pglobal_lookup): Update.
7012         * psymtab.c (find_pc_sect_psymtab_closer)
7013         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7014         Change msymbol parameter to bound_minimal_symbol.
7015         * ravenscar-thread.c (get_running_thread_id): Update.
7016         * remote.c (remote_check_symbols): Update.
7017         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7018         address.
7019         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7020         * solib-dsbt.c (lm_base): Update.
7021         * solib-frv.c (lm_base, main_got): Update.
7022         * solib-irix.c (locate_base): Update.
7023         * solib-som.c (som_solib_create_inferior_hook)
7024         (link_map_start): Update.
7025         * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7026         * solib-svr4.c (elf_locate_base, enable_break): Update.
7027         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7028         (flush_ea_cache): Update.
7029         * stabsread.c (define_symbol, scan_file_globals): Update.
7030         * stack.c (find_frame_funname): Update.
7031         * symfile-debug.c (debug_qf_expand_symtabs_matching)
7032         (debug_qf_find_pc_sect_symtab): Update.
7033         * symfile.c (simple_read_overlay_table)
7034         (simple_overlay_update): Update.
7035         * symfile.h (struct quick_symbol_functions)
7036         <find_pc_sect_symtab>: Change type of msymbol to
7037         bound_minimal_symbol.
7038         * symmisc.c (dump_msymbols): Update.
7039         * symtab.c (find_pc_sect_symtab_via_partial)
7040         (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7041         (search_symbols, print_msymbol_info): Update.
7042         * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7043         (MSYMBOL_VALUE_ADDRESS): Redefine.
7044         (BMSYMBOL_VALUE_ADDRESS): New macro.
7045         * tracepoint.c (scope_info): Update.
7046         * tui/tui-disasm.c (tui_find_disassembly_address)
7047         (tui_get_begin_asm_address): Update.
7048         * valops.c (find_function_in_inferior): Update.
7049         * value.c (value_static_field, value_fn_field): Update.
7050
7051 2014-02-26  Tom Tromey  <tromey@redhat.com>
7052
7053         * ada-lang.c (ada_update_initial_language): Update.
7054         (ada_main_name, ada_has_this_exception_support): Update.
7055         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7056         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7057         * arm-tdep.c (arm_skip_stub): Update.
7058         * auxv.c (ld_so_xfer_auxv): Update.
7059         * avr-tdep.c (avr_scan_prologue): Update.
7060         * ax-gdb.c (gen_var_ref): Update.
7061         * breakpoint.c (struct breakpoint_objfile_data)
7062         <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7063         type to bound_minimal_symbol.
7064         (create_overlay_event_breakpoint)
7065         (create_longjmp_master_breakpoint)
7066         (create_std_terminate_master_breakpoint)
7067         (create_exception_master_breakpoint): Update.
7068         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7069         * c-exp.y (classify_name): Update.
7070         * coffread.c (coff_symfile_read): Update.
7071         * common/agent.c (agent_look_up_symbols): Update.
7072         * d-lang.c (d_main_name): Update.
7073         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7074         * dec-thread.c (enable_dec_thread): Update.
7075         * dwarf2loc.c (call_site_to_target_addr): Update.
7076         * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7077         * eval.c (evaluate_subexp_standard): Update.
7078         * findvar.c (struct minsym_lookup_data) <result>: Change type
7079         to bound_minimal_symbol.
7080         <objfile>: Remove.
7081         (minsym_lookup_iterator_cb, default_read_var_value): Update.
7082         * frame.c (inside_main_func): Update.
7083         * frv-tdep.c (frv_frame_this_id): Update.
7084         * gcore.c (call_target_sbrk): Update.
7085         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7086         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7087         Update.
7088         * go-lang.c (go_main_name): Update.
7089         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7090         (hppa_hpux_find_import_stub_for_addr): Update.
7091         * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7092         Update.  Change return type.
7093         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7094         type.
7095         * jit.c (jit_breakpoint_re_set_internal): Update.
7096         * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7097         Update.
7098         * linux-nat.c (get_signo): Update.
7099         * linux-thread-db.c (inferior_has_bug): Update
7100         * m32c-tdep.c (m32c_return_value)
7101         (m32c_m16c_address_to_pointer): Update.
7102         * m32r-tdep.c (m32r_frame_this_id): Update.
7103         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7104         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7105         * minsyms.c (lookup_minimal_symbol_internal): Rename to
7106         lookup_minimal_symbol.  Change return type.
7107         (lookup_minimal_symbol): Remove.
7108         (lookup_bound_minimal_symbol): Update.
7109         (lookup_minimal_symbol_text): Change return type.
7110         (lookup_minimal_symbol_solib_trampoline): Change return type.
7111         * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7112         (lookup_minimal_symbol_solib_trampoline): Change return type.
7113         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7114         * objc-lang.c (lookup_objc_class, lookup_child_selector)
7115         (value_nsstring, find_imps): Update.
7116         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7117         * p-lang.c (pascal_main_name): Update.
7118         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7119         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7120         * proc-service.c (ps_pglobal_lookup): Update.
7121         * ravenscar-thread.c (get_running_thread_msymbol): Change
7122         return type.
7123         (has_ravenscar_runtime, get_running_thread_id): Update.
7124         * remote.c (remote_check_symbols): Update.
7125         * sol-thread.c (ps_pglobal_lookup): Update.
7126         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7127         * solib-dsbt.c (lm_base): Update.
7128         * solib-frv.c (lm_base, frv_relocate_section_addresses):
7129         Update.
7130         * solib-irix.c (locate_base): Update.
7131         * solib-som.c (som_solib_create_inferior_hook)
7132         (som_solib_desire_dynamic_linker_symbols, link_map_start):
7133         Update.
7134         * solib-spu.c (spu_enable_break): Update.
7135         * solib-svr4.c (elf_locate_base, enable_break): Update.
7136         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7137         (flush_ea_cache): Update.
7138         * stabsread.c (define_symbol): Update.
7139         * symfile.c (simple_read_overlay_table): Update.
7140         * symtab.c (find_pc_sect_line): Update.
7141         * tracepoint.c (scope_info): Update.
7142         * tui-disasm.c (tui_get_begin_asm_address): Update.
7143         * value.c (value_static_field): Update.
7144
7145 2014-02-26  Tom Tromey  <tromey@redhat.com>
7146
7147         * minsyms.c (prim_record_minimal_symbol_full): Use
7148         SET_MSYMBOL_VALUE_ADDRESS.
7149         * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7150         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7151         SET_MSYMBOL_VALUE_ADDRESS.
7152         * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7153         (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7154
7155 2014-02-26  Tom Tromey  <tromey@redhat.com>
7156
7157         * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7158         (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7159         (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7160         (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7161         (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7162         (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7163         (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7164         * ada-lang.c (ada_main_name): Update.
7165         (ada_lookup_simple_minsym): Update.
7166         (ada_make_symbol_completion_list): Update.
7167         (ada_add_standard_exceptions): Update.
7168         * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7169         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7170         * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7171         * arm-tdep.c (skip_prologue_function): Update.
7172         (arm_skip_stack_protector, arm_skip_stub): Update.
7173         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7174         (arm_wince_skip_main_prologue): Update.
7175         * auxv.c (ld_so_xfer_auxv): Update.
7176         * avr-tdep.c (avr_scan_prologue): Update.
7177         * ax-gdb.c (gen_var_ref): Update.
7178         * block.c (call_site_for_pc): Update.
7179         * blockframe.c (get_pc_function_start): Update.
7180         (find_pc_partial_function_gnu_ifunc): Update.
7181         * breakpoint.c (create_overlay_event_breakpoint): Update.
7182         (create_longjmp_master_breakpoint): Update.
7183         (create_std_terminate_master_breakpoint): Update.
7184         (create_exception_master_breakpoint): Update.
7185         (resolve_sal_pc): Update.
7186         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7187         * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7188         Update.
7189         * c-valprint.c (c_val_print): Update.
7190         * coff-pe-read.c (add_pe_forwarded_sym): Update.
7191         * coffread.c (coff_symfile_read): Update.
7192         * common/agent.c (agent_look_up_symbols): Update.
7193         * dbxread.c (find_stab_function_addr): Update.
7194         (end_psymtab): Update.
7195         * dwarf2loc.c (call_site_to_target_addr): Update.
7196         (func_verify_no_selftailcall): Update.
7197         (tailcall_dump): Update.
7198         (call_site_find_chain_1): Update.
7199         (dwarf_expr_reg_to_entry_parameter): Update.
7200         * elfread.c (elf_gnu_ifunc_record_cache): Update.
7201         (elf_gnu_ifunc_resolve_by_got): Update.
7202         * f-valprint.c (info_common_command): Update.
7203         * findvar.c (read_var_value): Update.
7204         * frame.c (get_prev_frame_1): Update.
7205         (inside_main_func): Update.
7206         * frv-tdep.c (frv_skip_main_prologue): Update.
7207         (frv_frame_this_id): Update.
7208         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7209         * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7210         * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7211         (gnuv3_skip_trampoline): Update.
7212         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7213         (hppa64_hpux_in_solib_call_trampoline): Update.
7214         (hppa_hpux_skip_trampoline_code): Update.
7215         (hppa64_hpux_search_dummy_call_sequence): Update.
7216         (hppa_hpux_find_import_stub_for_addr): Update.
7217         (hppa_hpux_find_dummy_bpaddr): Update.
7218         * hppa-tdep.c (hppa_symbol_address)
7219         (hppa_lookup_stub_minimal_symbol): Update.
7220         * i386-tdep.c (i386_skip_main_prologue): Update.
7221         (i386_pe_skip_trampoline_code): Update.
7222         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7223         * infcall.c (get_function_name): Update.
7224         * infcmd.c (until_next_command): Update.
7225         * jit.c (jit_breakpoint_re_set_internal): Update.
7226         (jit_inferior_init): Update.
7227         * linespec.c (minsym_found): Update.
7228         (add_minsym): Update.
7229         * linux-fork.c (info_checkpoints_command): Update.
7230         * linux-nat.c (get_signo): Update.
7231         * linux-thread-db.c (inferior_has_bug): Update.
7232         * m32c-tdep.c (m32c_return_value): Update.
7233         (m32c_m16c_address_to_pointer): Update.
7234         (m32c_m16c_pointer_to_address): Update.
7235         * m32r-tdep.c (m32r_frame_this_id): Update.
7236         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7237         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7238         * maint.c (maintenance_translate_address): Update.
7239         * minsyms.c (add_minsym_to_hash_table): Update.
7240         (add_minsym_to_demangled_hash_table): Update.
7241         (msymbol_objfile): Update.
7242         (lookup_minimal_symbol): Update.
7243         (iterate_over_minimal_symbols): Update.
7244         (lookup_minimal_symbol_text): Update.
7245         (lookup_minimal_symbol_by_pc_name): Update.
7246         (lookup_minimal_symbol_solib_trampoline): Update.
7247         (lookup_minimal_symbol_by_pc_section_1): Update.
7248         (lookup_minimal_symbol_and_objfile): Update.
7249         (prim_record_minimal_symbol_full): Update.
7250         (compare_minimal_symbols): Update.
7251         (compact_minimal_symbols): Update.
7252         (build_minimal_symbol_hash_tables): Update.
7253         (install_minimal_symbols): Update.
7254         (terminate_minimal_symbol_table): Update.
7255         (find_solib_trampoline_target): Update.
7256         (minimal_symbol_upper_bound): Update.
7257         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7258         * mips-tdep.c (mips_stub_frame_sniffer): Update.
7259         (mips_skip_pic_trampoline_code): Update.
7260         * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7261         * objc-lang.c (selectors_info): Update.
7262         (classes_info): Update.
7263         (find_methods): Update.
7264         (find_imps): Update.
7265         (find_objc_msgsend): Update.
7266         * objfiles.c (objfile_relocate1): Update.
7267         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7268         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7269         * p-valprint.c (pascal_val_print): Update.
7270         * parse.c (write_exp_msymbol): Update.
7271         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7272         (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7273         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7274         * printcmd.c (build_address_symbolic): Update.
7275         (sym_info): Update.
7276         (address_info): Update.
7277         * proc-service.c (ps_pglobal_lookup): Update.
7278         * psymtab.c (find_pc_sect_psymtab_closer): Update.
7279         (find_pc_sect_psymtab): Update.
7280         * python/py-framefilter.c (py_print_frame): Update.
7281         * ravenscar-thread.c (get_running_thread_id): Update.
7282         * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7283         Update.
7284         * remote.c (remote_check_symbols): Update.
7285         * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7286         (rs6000_skip_trampoline_code): Update.
7287         * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7288         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7289         * solib-dsbt.c (lm_base): Update.
7290         * solib-frv.c (lm_base): Update.
7291         (main_got): Update.
7292         * solib-irix.c (locate_base): Update.
7293         * solib-som.c (som_solib_create_inferior_hook): Update.
7294         (som_solib_desire_dynamic_linker_symbols): Update.
7295         (link_map_start): Update.
7296         * solib-spu.c (spu_enable_break): Update.
7297         (ocl_enable_break): Update.
7298         * solib-svr4.c (elf_locate_base): Update.
7299         (enable_break): Update.
7300         * spu-tdep.c (spu_get_overlay_table): Update.
7301         (spu_catch_start): Update.
7302         (flush_ea_cache): Update.
7303         * stabsread.c (define_symbol): Update.
7304         (scan_file_globals): Update.
7305         * stack.c (find_frame_funname): Update.
7306         (frame_info): Update.
7307         * symfile.c (simple_read_overlay_table): Update.
7308         (simple_overlay_update): Update.
7309         * symmisc.c (dump_msymbols): Update.
7310         * symtab.c (fixup_section): Update.
7311         (find_pc_sect_line): Update.
7312         (skip_prologue_sal): Update.
7313         (search_symbols): Update.
7314         (print_msymbol_info): Update.
7315         (rbreak_command): Update.
7316         (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7317         (completion_list_objc_symbol): Update.
7318         (default_make_symbol_completion_list_break_on): Update.
7319         * tracepoint.c (scope_info): Update.
7320         * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7321         (tui_get_begin_asm_address): Update.
7322         * valops.c (find_function_in_inferior): Update.
7323         * value.c (value_static_field): Update.
7324         (value_fn_field): Update.
7325
7326 2014-02-26  Tom Tromey  <tromey@redhat.com>
7327
7328         * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7329         bound minimal symbols.  Move code that knows about minsym
7330         table layout...
7331         * minsyms.c (minimal_symbol_upper_bound): ... here.  New
7332         function.
7333         * minsyms.h (minimal_symbol_upper_bound): Declare.
7334         * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7335         minimal_symbol_upper_bound.
7336
7337 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
7338
7339         * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7340         Use the type's name if its basic type does not have a tag.
7341
7342 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
7343
7344         * dwarf2read.c (read_subrange_type): Add comment.
7345
7346 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
7347
7348         * dwarf2read.c (update_enumeration_type_from_children): New
7349         function, mostly extracted from process_structure_scope.
7350         (read_enumeration_type): Call update_enumeration_type_from_children.
7351         (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7352         and flag_flag_enum fields.
7353
7354 2014-02-26  Pedro Alves  <palves@redhat.com>
7355
7356         * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7357         (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7358         to_xfer_partial method.
7359
7360 2014-02-26  Pedro Alves  <palves@redhat.com>
7361
7362         * target.c (complete_target_initialization): Don't install
7363         default_xfer_partial as to_xfer_partial hook.
7364         (nomemory): Delete.
7365         (update_current_target): Don't INHERIT nor de_fault
7366         deprecated_xfer_memory.  Delete de_fault macro.
7367         (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7368         (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7369         * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7370         field.
7371
7372 2014-02-26  Pedro Alves  <palves@redhat.com>
7373
7374         * go32-nat.c (my_write_child): New function.
7375         (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7376         (go32_xfer_partial): New function.
7377         (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7378         Instead install a to_xfer_partial hook.
7379
7380 2014-02-26  Pedro Alves  <palves@redhat.com>
7381
7382         * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7383         to_xfer_partial helper.  Rewrite.
7384         (procfs_xfer_partial): New function.
7385         (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7386         Install a to_xfer_partial hook.
7387
7388 2014-02-26  Pedro Alves  <palves@redhat.com>
7389
7390         * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7391         (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7392         (m32r_xfer_partial): New function.
7393         (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7394         Install a to_xfer_partial hook.
7395
7396 2014-02-26  Pedro Alves  <palves@redhat.com>
7397
7398         * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7399         helper.
7400         (mips_xfer_partial): New function.
7401         (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7402         hook.  Install a to_xfer_partial hook.
7403
7404 2014-02-26  Joel Brobecker  <brobecker@adacore.com>
7405
7406         * gdbtypes.h (create_array_type_with_stride): Add declaration.
7407         * gdbtypes.c (create_array_type_with_stride): New function,
7408         renaming create_array_type, but with an added parameter
7409         called "bit_stride".
7410         (create_array_type): Re-implement using
7411         create_array_type_with_stride.
7412         * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7413         and DW_AT_bit_stride attributes.
7414
7415 2014-02-26  Pedro Alves  <palves@redhat.com>
7416
7417         * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7418         task-specific breakpoints.
7419
7420 2014-02-25  Pedro Alves  <palves@redhat.com>
7421
7422         * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7423         handling of object == TARGET_OBJECT_UNWIND_TABLE.
7424
7425 2014-02-25  Stan Shebs  <stan@codesourcery.com>
7426
7427         * defs.h: Annotate comments for Doxygen.
7428
7429 2014-02-25  Tom Tromey  <tromey@redhat.com>
7430
7431         * target.h (target_ignore): Don't declare.
7432         * target.c (target_ignore): Remove.
7433
7434 2014-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
7435
7436         PR gdb/16626
7437         * auto-load.c (auto_load_objfile_script_1): Change filename to
7438         debugfile.
7439
7440 2014-02-25  Joel Brobecker  <brobecker@adacore.com>
7441
7442         * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7443         documentation.  Adjust prototype to match the target_ops
7444         to_xfer_partial method.  Adjust implementation accordingly.
7445
7446 2014-02-25  Hui Zhu  <hui@codesourcery.com>
7447
7448         * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7449         to_traceframe_info.
7450
7451 2014-02-25  Kevin Buettner  <kevinb@redhat.com>
7452
7453         * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7454         (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7455         (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7456         (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7457         (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7458         (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7459         (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7460         (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7461         New constants.
7462         (rl78_register_type): Use a data pointer type for SP and
7463         new pseudo registers mentioned above.  Use a 16 bit integer
7464         type for all other register pairs.
7465         (rl78_register_name, rl78_g10_register_name): Update for
7466         new pseudo registers.
7467         (rl78_pseudo_register_read): Likewise.
7468         (rl78_pseudo_register_write): Likewise.
7469         (rl78_dwarf_reg_to_regnum): Return register numbers representing
7470         to the newly added pseudo registers.
7471
7472 2014-02-24  Doug Evans  <dje@google.com>
7473
7474         * value.c (record_latest_value): Fix comment.
7475         * printcmd.c (print_command_1): Remove code to handle -1 return from
7476         record_latest_value.
7477
7478 2014-02-24  Pedro Alves  <palves@redhat.com>
7479
7480         * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7481         deprecated_xfer_memory hook.
7482         (procfs_xfer_partial): Call procfs_xfer_memory instead
7483         of the deprecated_xfer_memory target hook.
7484         (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7485         helper.
7486
7487 2014-02-24  Yuanhui Zhang  <asmwarrior@gmail.com>
7488
7489         * windows-nat.c (windows_xfer_shared_libraries): Return
7490         TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7491         requested object is TARGET_OBJECT_LIBRARIES.
7492
7493 2014-02-24  Yao Qi  <yao@codesourcery.com>
7494
7495         * target.h (enum target_xfer_status)
7496         <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7497         <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7498         explicitly.  New.
7499         * corefile.c (memory_error_message): User updated.
7500         * exec.c (section_table_read_available_memory): Likewise.
7501         * record-btrace.c (record_btrace_xfer_partial): Likewise.
7502         * target.c (target_xfer_status_to_string): Likewise.
7503         (raw_memory_xfer_partial): Likewise.
7504         (memory_xfer_partial_1, target_xfer_partial): Likewise.
7505         * valops.c (read_value_memory): Likewise.
7506         * exec.h: Update comments.
7507
7508 2014-02-24  Yao Qi  <yao@codesourcery.com>
7509
7510         * target.c (target_xfer_status_to_string): Rename argument err
7511         to status.
7512         * target.h (target_xfer_status_to_string): Update declaration.
7513         Replace target_xfer_error_to_string with
7514         target_xfer_status_to_string in comment.
7515
7516 2014-02-24  Yao Qi  <yao@codesourcery.com>
7517
7518         * mips-linux-nat.c (super_close): Update its type.
7519         (mips_linux_close): Pass 'self' to super_close.
7520
7521 2014-02-24  Yao Qi  <yao@codesourcery.com>
7522
7523         * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7524         * corefile.c (read_memory): Adjusted.
7525         * target.c (target_write_with_progress): Adjusted.
7526
7527 2014-02-23  Yao Qi  <yao@codesourcery.com>
7528
7529         Revert two patches:
7530
7531         2013-10-25  Yao Qi  <yao@codesourcery.com>
7532
7533         * remote.c (remote_traceframe_info): Return early if
7534         traceframe is not selected.
7535
7536         2013-07-19  Yao Qi  <yao@codesourcery.com>
7537
7538         * target.c (update_current_target): Change the default action
7539         of 'to_traceframe_info' from tcomplain to return_zero.
7540         * target.h (struct target_ops) <to_traceframe_info>: Add more
7541         comments.
7542
7543 2014-02-23  Yao Qi  <yao@codesourcery.com>
7544
7545         * valops.c (read_value_memory): Rewrite it.  Call
7546         target_xfer_partial in a loop.
7547         * exec.h (section_table_available_memory): Remove declaration.
7548         Move comments to ...
7549         * exec.c (section_table_available_memory): ... here.  Make it
7550         static.
7551
7552 2014-02-23  Yao Qi  <yao@codesourcery.com>
7553
7554         * exec.c (section_table_read_available_memory): New function.
7555         * exec.h (section_table_read_available_memory): Declare.
7556         * ctf.c (ctf_xfer_partial): Call
7557         section_table_read_available_memory.
7558         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7559
7560 2014-02-23  Yao Qi  <yao@codesourcery.com>
7561
7562         * ctf.c (ctf_xfer_partial): Move code to ...
7563         * exec.c (exec_read_partial_read_only): ... it.  New function.
7564         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7565         * tracefile.c: Include "exec.h".
7566         * exec.h (exec_read_partial_read_only): Declare.
7567
7568 2014-02-23  Yao Qi  <yao@codesourcery.com>
7569
7570         * tracefile-tfile.c (tfile_has_all_memory): Remove.
7571         (tfile_has_memory): Remove.
7572         (init_tfile_ops): Don't set fields to_has_all_memory and
7573         to_has_memory of tfile_ops.
7574         * tracefile.c (tracefile_has_all_memory): New function.
7575         (tracefile_has_memory): New function.
7576         (init_tracefile_ops): Initialize fields to_has_all_memory and
7577         to_has_memory of 'ops'.
7578
7579 2014-02-23  Yao Qi  <yao@codesourcery.com>
7580
7581         * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7582         (ctf_thread_alive, ctf_get_trace_status): Remove.
7583         (init_ctf_ops): Don't set some fields of ctf_ops.  Call
7584         init_tracefile_ops.
7585         * tracefile-tfile.c (tfile_get_trace_status): Remove.
7586         (tfile_has_stack, tfile_has_registers): Remove.
7587         (tfile_thread_alive): Remove.
7588         (init_tfile_ops): Don't set some fields of tfile_ops.  Call
7589         init_tracefile_ops.
7590         * tracefile.c (tracefile_has_stack): New function.
7591         (tracefile_has_registers): New function.
7592         (tracefile_thread_alive): New function.
7593         (tracefile_get_trace_status): New function.
7594         (init_tracefile_ops): New function.
7595         * tracefile.h (init_tracefile_ops): Declare.
7596
7597 2014-02-23  Yao Qi  <yao@codesourcery.com>
7598
7599         * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7600         (O_LARGEFILE): Likewise.
7601         (tfile_ops): Likewise.
7602         (TRACE_HEADER_SIZE): Likewise.
7603         (trace_fd, trace_frames_offset, cur_offset): Likewise.
7604         (cur_data_size): Likewise.
7605         (tfile_read, tfile_open, tfile_interp_line): Likewise.
7606         (tfile_close, tfile_files_info): Likewise.
7607         (tfile_get_trace_status): Likewise.
7608         (tfile_get_tracepoint_status): Likewise.
7609         (tfile_get_traceframe_address): Likewise.
7610         (tfile_trace_find, match_blocktype): Likewise.
7611         (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7612         (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7613         (tfile_get_trace_state_variable_value): Likewise.
7614         (tfile_has_all_memory, tfile_has_memory): Likewise.
7615         (tfile_has_stack, tfile_has_registers): Likewise.
7616         (tfile_thread_alive, build_traceframe_info): Likewise.
7617         (tfile_traceframe_info, init_tfile_ops): Likewise.
7618         (_initialize_tracepoint): Don't call init_tfile_ops
7619         and add_target_with_completer.
7620         * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7621         exec.h, completer.h and filenames.h.
7622         (_initialize_tracefile_tfile): New function.
7623
7624 2014-02-23  Yao Qi  <yao@codesourcery.com>
7625
7626         * Makefile.in (REMOTE_OBS): Append tracefile.o and
7627         tracefile-tfile.o.
7628         (HFILES_NO_SRCDIR): Add tracefile.h.
7629         * ctf.c: Include "tracefile.h".
7630         * tracefile.h: New file.
7631         * tracefile.c: New file
7632         * tracefile-tfile.c: New file.
7633         * tracepoint.c: Include "tracefile.h".
7634         (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7635         (stop_reason_names): Add const.
7636         (trace_file_writer_xfree): Move it to tracefile.c.
7637         (trace_save, trace_save_command, trace_save_tfile): Likewise.
7638         (trace_save_ctf): Likewise.
7639         (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7640         (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7641         (tfile_write_header, tfile_write_regblock_type): Likewise.
7642         (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7643         (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7644         (tfile_write_raw_data, tfile_end): Likewise.
7645         (tfile_trace_file_writer_new): Likewise.
7646         (free_uploaded_tp): Make it extern.
7647         (free_uploaded_tsv): Make it extern.
7648         (_initialize_tracepoint): Move code to register command 'tsave'
7649         to tracefile.c.
7650         * tracepoint.h (stop_reason_names): Declare.
7651         (struct trace_frame_write_ops): Move it to tracefile.h.
7652         (struct trace_file_write_ops): Likewise.
7653         (struct trace_file_writer): Likewise.
7654         (free_uploaded_tsvs, free_uploaded_tps): Declare.
7655
7656 2014-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
7657
7658         PR gdb/16594
7659         * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7660         process name.
7661         (get_cores_used_by_process): New parameter num_cores, use it.
7662         (linux_xfer_osdata_processes): Pass num_cores to it.
7663         * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7664         process name.
7665
7666 2014-02-21  Andreas Arnez  <arnez@vnet.linux.ibm.com>
7667
7668         * target.c (memory_xfer_partial): Fix length arg in call to
7669         breakpoint_xfer_memory.
7670
7671 2014-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
7672
7673         PR tdep/16397
7674         * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7675         number comes after the + or - signs.  Adjust length of register
7676         name to be extracted.
7677
7678 2014-02-20  Tom Tromey  <tromey@redhat.com>
7679
7680         * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7681         (ada_varobj_ops): Mark "extern".
7682
7683 2014-02-20  Tom Tromey  <tromey@redhat.com>
7684
7685         * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7686
7687 2014-02-20  Doug Evans  <xdje42@gmail.com>
7688
7689         * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7690         All callers updated.
7691         (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7692         All callers updated.
7693         * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7694         (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7695
7696 2014-02-20  lin zuojian  <manjian2006@gmail.com>
7697             Joel Brobecker  <brobecker@adacore.com>
7698             Doug Evans  <xdje42@gmail.com>
7699
7700         PR symtab/16581
7701         * dwarf2read.c (struct die_info): New member in_process.
7702         (reset_die_in_process): New function.
7703         (process_die): Set it at the start, reset when returning.
7704         (inherit_abstract_dies): Only call process_die if origin_child_die
7705         not already being processed.
7706
7707 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
7708
7709         * windows-nat.c (handle_unload_dll): Add function documentation.
7710         (do_initial_windows_stuff): Add comment explaining why we wait
7711         until after inferior initialization has finished before
7712         processing all DLLs.
7713
7714 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
7715
7716         * windows-nat.c (get_module_name): Delete.
7717         (windows_get_exec_module_filename): New function, mostly
7718         inspired from get_module_name.
7719         (windows_pid_to_exec_file): Replace call to get_module_name
7720         by call to windows_get_exec_module_filename.
7721
7722 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
7723
7724         * windows-nat.c (handle_load_dll): Rewrite this function's
7725         introductory comment.  Remove code using get_module_name
7726         to get the DLL's name.
7727
7728 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
7729
7730         * windows-nat.c (get_windows_debug_event): Ignore
7731         LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7732         if windows_initialization_done == 0.
7733         (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7734         Adjust implementation to always load all DLLs.
7735         (do_initial_windows_stuff): Replace call to
7736         windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7737
7738 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
7739
7740         * windows-nat.c (_initialize_windows_nat): Deprecate the
7741         "dll-symbols" command.  Turn the "add-shared-symbol-files"
7742         and "assf" aliases into commands, and deprecate them as well.
7743         * NEWS: Add entry explaining that "dll-symbols" and its two
7744         aliases are now deprecated.
7745
7746 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
7747
7748         * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7749         new-line in debug string.  Remove trailing spaces.
7750
7751 2014-02-19  Stan Shebs  <stan@codesourcery.com>
7752
7753         * darwin-nat.c (darwin_xfer_partial): Fix return type.
7754
7755 2014-02-19  Siva Chandra Reddy  <sivachandra@google.com>
7756
7757         * NEWS: Add entry for the new feature
7758         * python/py-value.c (valpy_binop): Call value_x_binop for struct
7759         and class values.
7760
7761 2014-02-19  Stan Shebs  <stan@codesourcery.com>
7762
7763         * MAINTAINERS: List Yao Qi as nios2 maintainer.
7764
7765 2014-02-19  Pedro Alves  <palves@redhat.com>
7766
7767         * common/ptid.h (struct ptid): Mention that process_stratum
7768         targets should prefer ptid.lwp.
7769
7770 2014-02-19  Pedro Alves  <palves@redhat.com>
7771
7772         * remote.c (remote_thread_alive, write_ptid, read_ptid)
7773         (read_ptid, remote_newthread_step, remote_threads_extra_info)
7774         (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7775         (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7776         store remote thread ids rather than ptid.tid.
7777         (_initialize_remote): Adjust.
7778
7779 2014-02-19  Tom Tromey  <tromey@redhat.com>
7780
7781         * target.c (target_get_unwinder): Rewrite.
7782         (target_get_tailcall_unwinder): Rewrite.
7783         * record-btrace.c (record_btrace_to_get_unwinder): New function.
7784         (record_btrace_to_get_tailcall_unwinder): New function.
7785         (init_record_btrace_ops): Update.
7786         * target.h (struct target_ops) <to_get_unwinder,
7787         to_get_tailcall_unwinder>: Now function pointers.  Use
7788         TARGET_DEFAULT_RETURN.
7789
7790 2014-02-19  Tom Tromey  <tromey@redhat.com>
7791
7792         * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7793         argument.
7794         (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7795
7796 2014-02-19  Tom Tromey  <tromey@redhat.com>
7797
7798         * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7799         directly.
7800         * target-delegates.c: Rebuild.
7801         * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7802         TARGET_DEFAULT_FUNC.
7803         * target.c (default_target_decr_pc_after_break): Rename from
7804         forward_target_decr_pc_after_break.  Simplify.
7805         (target_decr_pc_after_break): Rely on delegation.
7806
7807 2014-02-19  Tom Tromey  <tromey@redhat.com>
7808
7809         * target.c (update_current_target): Do not INHERIT to_doc or
7810         to_magic.  Do not de_fault to_open or to_close.
7811
7812 2014-02-19  Tom Tromey  <tromey@redhat.com>
7813
7814         * gcore.h (objfile_find_memory_regions): Declare.
7815         * gcore.c (objfile_find_memory_regions): No longer static.  Add
7816         "self" argument.
7817         (_initialize_gcore): Don't call exec_set_find_memory_regions.
7818         * exec.c: Include gcore.h.
7819         (exec_set_find_memory_regions): Remove.
7820         (exec_find_memory_regions): Remove.
7821         (exec_do_find_memory_regions): Remove.
7822         (init_exec_ops): Update.
7823         * defs.h (exec_set_find_memory_regions): Remove.
7824
7825 2014-02-19  Tom Tromey  <tromey@redhat.com>
7826
7827         * target-delegates.c: Rebuild.
7828         * target.h (struct target_ops) <to_extra_thread_info,
7829         to_thread_name, to_pid_to_exec_file, to_get_section_table,
7830         to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7831         not 0, in TARGET_DEFAULT_RETURN.
7832
7833 2014-02-19  Tom Tromey  <tromey@redhat.com>
7834
7835         * target.c (complete_target_initialization): Remove casts.  Use
7836         return_zero_has_execution.
7837         (return_zero): Add "ignore" argument.
7838         (return_zero_has_execution): New function.
7839         (init_dummy_target): Remove casts.  Use
7840         return_zero_has_execution.
7841
7842 2014-02-19  Tom Tromey  <tromey@redhat.com>
7843
7844         * target.c (update_current_target): Update comments.  Do not
7845         INHERIT to_stratum.
7846
7847 2014-02-19  Tom Tromey  <tromey@redhat.com>
7848
7849         * arm-linux-nat.c (arm_linux_read_description): Delegate when
7850         needed.
7851         * corelow.c (core_read_description): Delegate when needed.
7852         * remote.c (remote_read_description): Delegate when needed.
7853         * target-delegates.c: Rebuild.
7854         * target.c (target_read_description): Rewrite.
7855         * target.h (struct target_ops) <to_read_description>: Update
7856         comment.  Use TARGET_DEFAULT_RETURN.
7857
7858 2014-02-19  Tom Tromey  <tromey@redhat.com>
7859
7860         * target-delegates.c: Rebuild.
7861         * target.c (update_current_target): Don't inherit or default
7862         to_can_run.
7863         (find_default_run_target): Check against delegate_can_run.
7864         * target.h (struct target_ops) <to_can_run>: Use
7865         TARGET_DEFAULT_RETURN.
7866
7867 2014-02-19  Tom Tromey  <tromey@redhat.com>
7868
7869         * target-delegates.c: Rebuild.
7870         * target.c (target_disconnect): Unconditionally delegate.
7871         * target.h (struct target_ops) <to_disconnect>: Use
7872         TARGET_DEFAULT_NORETURN.
7873
7874 2014-02-19  Tom Tromey  <tromey@redhat.com>
7875
7876         * record.c (record_stop): Unconditionally delegate.
7877         * target-delegates.c: Rebuild.
7878         * target.c (target_stop_recording): Unconditionally delegate.
7879         * target.h (struct target_ops) <to_stop_recording>: Use
7880         TARGET_DEFAULT_IGNORE.
7881
7882 2014-02-19  Tom Tromey  <tromey@redhat.com>
7883
7884         * target-delegates.c: Rebuild.
7885         * target.c (target_enable_btrace): Unconditionally delegate.
7886         * target.h (struct target_ops) <to_enable_btrace>: Use
7887         TARGET_DEFAULT_NORETURN.
7888
7889 2014-02-19  Tom Tromey  <tromey@redhat.com>
7890
7891         * target-delegates.c: Rebuild.
7892         * target.c (target_read_btrace): Unconditionally delegate.
7893         * target.h (struct target_ops) <to_read_btrace>: Use
7894         TARGET_DEFAULT_NORETURN.
7895
7896 2014-02-19  Tom Tromey  <tromey@redhat.com>
7897
7898         * target-delegates.c: Rebuild.
7899         * target.c (target_teardown_btrace): Unconditionally delegate.
7900         * target.h (struct target_ops) <to_teardown_btrace>: Use
7901         TARGET_DEFAULT_NORETURN.
7902
7903 2014-02-19  Tom Tromey  <tromey@redhat.com>
7904
7905         * target-delegates.c: Rebuild.
7906         * target.c (target_disable_btrace): Unconditionally delegate.
7907         * target.h (struct target_ops) <to_disable_btrace>: Use
7908         TARGET_DEFAULT_NORETURN.
7909
7910 2014-02-19  Tom Tromey  <tromey@redhat.com>
7911
7912         * target-delegates.c: Rebuild.
7913         * target.c (default_search_memory): New function.
7914         (simple_search_memory): Update comment.
7915         (target_search_memory): Unconditionally delegate.
7916         * target.h (struct target_ops) <to_search_memory>: Use
7917         TARGET_DEFAULT_FUNC.
7918
7919 2014-02-19  Tom Tromey  <tromey@redhat.com>
7920
7921         * auxv.c (default_auxv_parse): No longer static.
7922         (target_auxv_parse): Unconditionally delegate.
7923         * auxv.h (default_auxv_parse): Declare.
7924         * target-delegates.c: Rebuild.
7925         * target.c: Include auxv.h.
7926         * target.h (struct target_ops) <to_auxv_parse>: Use
7927         TARGET_DEFAULT_FUNC.
7928
7929 2014-02-19  Tom Tromey  <tromey@redhat.com>
7930
7931         * target-delegates.c: Rebuild.
7932         * target.c (target_memory_map): Unconditionally delegate.
7933         * target.h (struct target_ops) <to_memory_map>: Use
7934         TARGET_DEFAULT_RETURN.
7935
7936 2014-02-19  Tom Tromey  <tromey@redhat.com>
7937
7938         * target-delegates.c: Rebuild.
7939         * target.c (target_thread_alive): Unconditionally delegate.
7940         * target.h (struct target_ops) <to_thread_alive>: Use
7941         TARGET_DEFAULT_RETURN.
7942
7943 2014-02-19  Tom Tromey  <tromey@redhat.com>
7944
7945         * target-delegates.c: Rebuild.
7946         * target.c (target_save_record): Unconditionally delegate.
7947         * target.h (struct target_ops) <to_save_record>: Use
7948         TARGET_DEFAULT_NORETURN.
7949
7950 2014-02-19  Tom Tromey  <tromey@redhat.com>
7951
7952         * target-delegates.c: Rebuild.
7953         * target.c (target_delete_record): Unconditionally delegate.
7954         * target.h (struct target_ops) <to_delete_record>: Use
7955         TARGET_DEFAULT_NORETURN.
7956
7957 2014-02-19  Tom Tromey  <tromey@redhat.com>
7958
7959         * target-delegates.c: Rebuild.
7960         * target.c (target_record_is_replaying): Unconditionally
7961         delegate.
7962         * target.h (struct target_ops) <to_record_is_replaying>: Use
7963         TARGET_DEFAULT_RETURN.
7964
7965 2014-02-19  Tom Tromey  <tromey@redhat.com>
7966
7967         * target-delegates.c: Rebuild.
7968         * target.c (target_goto_record_begin): Unconditionally delegate.
7969         * target.h (struct target_ops) <to_goto_record_begin>: Use
7970         TARGET_DEFAULT_NORETURN.
7971
7972 2014-02-19  Tom Tromey  <tromey@redhat.com>
7973
7974         * target-delegates.c: Rebuild.
7975         * target.c (target_goto_record_end): Unconditionally delegate.
7976         * target.h (struct target_ops) <to_goto_record_end>: Use
7977         TARGET_DEFAULT_NORETURN.
7978
7979 2014-02-19  Tom Tromey  <tromey@redhat.com>
7980
7981         * target-delegates.c: Rebuild.
7982         * target.c (target_goto_record): Unconditionally delegate.
7983         * target.h (struct target_ops) <to_goto_record>: Use
7984         TARGET_DEFAULT_NORETURN.
7985
7986 2014-02-19  Tom Tromey  <tromey@redhat.com>
7987
7988         * target-delegates.c: Rebuild.
7989         * target.c (target_insn_history): Unconditionally delegate.
7990         * target.h (struct target_ops) <to_insn_history>: Use
7991         TARGET_DEFAULT_NORETURN.
7992
7993 2014-02-19  Tom Tromey  <tromey@redhat.com>
7994
7995         * target-delegates.c: Rebuild.
7996         * target.c (target_insn_history_from): Unconditionally delegate.
7997         * target.h (struct target_ops) <to_insn_history_from>: Use
7998         TARGET_DEFAULT_NORETURN.
7999
8000 2014-02-19  Tom Tromey  <tromey@redhat.com>
8001
8002         * target-delegates.c: Rebuild.
8003         * target.c (target_insn_history_range): Unconditionally delegate.
8004         * target.h (struct target_ops) <to_insn_history_range>: Use
8005         TARGET_DEFAULT_NORETURN.
8006
8007 2014-02-19  Tom Tromey  <tromey@redhat.com>
8008
8009         * target-delegates.c: Rebuild.
8010         * target.c (target_call_history): Unconditionally delegate.
8011         * target.h (struct target_ops) <to_call_history>: Use
8012         TARGET_DEFAULT_NORETURN.
8013
8014 2014-02-19  Tom Tromey  <tromey@redhat.com>
8015
8016         * target-delegates.c: Rebuild.
8017         * target.c (target_call_history_from): Unconditionally delegate.
8018         * target.h (struct target_ops) <to_call_history_from>: Use
8019         TARGET_DEFAULT_NORETURN.
8020
8021 2014-02-19  Tom Tromey  <tromey@redhat.com>
8022
8023         * target-delegates.c: Rebuild.
8024         * target.c (target_call_history_range): Unconditionally delegate.
8025         * target.h (struct target_ops) <to_call_history_range>: Use
8026         TARGET_DEFAULT_NORETURN.
8027
8028 2014-02-19  Tom Tromey  <tromey@redhat.com>
8029
8030         * target-delegates.c: Rebuild.
8031         * target.c (target_verify_memory): Unconditionally delegate.
8032         * target.h (struct target_ops) <to_verify_memory>: Use
8033         TARGET_DEFAULT_NORETURN.
8034
8035 2014-02-19  Tom Tromey  <tromey@redhat.com>
8036
8037         * target-delegates.c: Rebuild.
8038         * target.c (target_core_of_thread): Unconditionally delegate.
8039         * target.h (struct target_ops) <to_core_of_thread>: Use
8040         TARGET_DEFAULT_RETURN.
8041
8042 2014-02-19  Tom Tromey  <tromey@redhat.com>
8043
8044         * target-delegates.c: Rebuild.
8045         * target.c (target_flash_done): Unconditionally delegate.
8046         * target.h (struct target_ops) <to_flash_done>: Use
8047         TARGET_DEFAULT_NORETURN.
8048
8049 2014-02-19  Tom Tromey  <tromey@redhat.com>
8050
8051         * target-delegates.c: Rebuild.
8052         * target.c (target_flash_erase): Unconditionally delegate.
8053         * target.h (struct target_ops) <to_flash_erase>: Use
8054         TARGET_DEFAULT_NORETURN.
8055
8056 2014-02-19  Tom Tromey  <tromey@redhat.com>
8057
8058         * target-delegates.c: Rebuild.
8059         * target.c (target_get_section_table): Unconditionally delegate.
8060         * target.h (struct target_ops) <to_get_section_table>: Use
8061         TARGET_DEFAULT_RETURN.
8062
8063 2014-02-19  Tom Tromey  <tromey@redhat.com>
8064
8065         * target-delegates.c: Rebuild.
8066         * target.c (target_pid_to_str): Unconditionally delegate.
8067         (init_dummy_target): Don't initialize to_pid_to_str.
8068         (default_pid_to_str): Rename from dummy_pid_to_str.
8069         * target.h (struct target_ops) <to_pid_to_str>: Use
8070         TARGET_DEFAULT_FUNC.
8071
8072 2014-02-19  Tom Tromey  <tromey@redhat.com>
8073
8074         * target-delegates.c: Rebuild.
8075         * target.c (target_find_new_threads): Unconditionally delegate.
8076         * target.h (struct target_ops) <to_find_new_threads>: Use
8077         TARGET_DEFAULT_RETURN.
8078
8079 2014-02-19  Tom Tromey  <tromey@redhat.com>
8080
8081         * target-delegates.c: Rebuild.
8082         * target.c (target_program_signals): Unconditionally delegate.
8083         * target.h (struct target_ops) <to_program_signals>: Use
8084         TARGET_DEFAULT_IGNORE.
8085
8086 2014-02-19  Tom Tromey  <tromey@redhat.com>
8087
8088         * target-delegates.c: Rebuild.
8089         * target.c (target_pass_signals): Unconditionally delegate.
8090         * target.h (struct target_ops) <to_pass_signals>: Use
8091         TARGET_DEFAULT_IGNORE.
8092
8093 2014-02-19  Tom Tromey  <tromey@redhat.com>
8094
8095         * target-delegates.c: Rebuild.
8096         * target.c (default_mourn_inferior): New function.
8097         (target_mourn_inferior): Unconditionally delegate.
8098         * target.h (struct target_ops) <to_mourn_inferior>: Use
8099         TARGET_DEFAULT_FUNC.
8100
8101 2014-02-19  Tom Tromey  <tromey@redhat.com>
8102
8103         * target-delegates.c: Rebuild.
8104         * target.c (default_follow_fork): New function.
8105         (target_follow_fork): Unconditionally delegate.
8106         * target.h (struct target_ops) <to_follow_fork>: Use
8107         TARGET_DEFAULT_FUNC.
8108
8109 2014-02-19  Tom Tromey  <tromey@redhat.com>
8110
8111         * target-delegates.c: Rebuild.
8112         * target.c (target_kill): Unconditionally delegate.
8113         * target.h (struct target_ops) <to_kill>: Use
8114         TARGET_DEFAULT_NORETURN.
8115
8116 2014-02-19  Tom Tromey  <tromey@redhat.com>
8117
8118         * target-delegates.c: Rebuild.
8119         * target.c (target_masked_watch_num_registers): Unconditionally
8120         delegate.
8121         * target.h (struct target_ops) <to_masked_watch_num_registers>:
8122         Use TARGET_DEFAULT_RETURN.
8123
8124 2014-02-19  Tom Tromey  <tromey@redhat.com>
8125
8126         * target-delegates.c: Rebuild.
8127         * target.c (target_remove_mask_watchpoint): Unconditionally
8128         delegate.
8129         * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8130         TARGET_DEFAULT_RETURN.
8131
8132 2014-02-19  Tom Tromey  <tromey@redhat.com>
8133
8134         * target-delegates.c: Rebuild.
8135         * target.c (target_insert_mask_watchpoint): Unconditionally
8136         delegate.
8137         * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8138         TARGET_DEFAULT_RETURN.
8139
8140 2014-02-19  Tom Tromey  <tromey@redhat.com>
8141
8142         * target-delegates.c: Rebuild.
8143         * target.c (target_ranged_break_num_registers): Unconditionally
8144         delegate.
8145         * target.h (struct target_ops) <to_ranged_break_num_registers>:
8146         Use TARGET_DEFAULT_RETURN.
8147
8148 2014-02-19  Tom Tromey  <tromey@redhat.com>
8149
8150         * target-delegates.c: Rebuild.
8151         * target.c (target_fetch_registers): Unconditionally delegate.
8152         * target.h (struct target_ops) <to_fetch_registers>: Use
8153         TARGET_DEFAULT_NORETURN.
8154
8155 2014-02-19  Tom Tromey  <tromey@redhat.com>
8156
8157         * target-delegates.c: Rebuild.
8158         * target.c (update_current_target): Don't inherit or default
8159         to_stop.
8160         * target.h (struct target_ops) <to_stop>: Use
8161         TARGET_DEFAULT_IGNORE.
8162
8163 2014-02-19  Tom Tromey  <tromey@redhat.com>
8164
8165         * target-delegates.c: Rebuild.
8166         * target.c (update_current_target): Don't inherit or default
8167         to_can_run_breakpoint_commands.
8168         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8169         Use TARGET_DEFAULT_RETURN.
8170
8171 2014-02-19  Tom Tromey  <tromey@redhat.com>
8172
8173         * target-delegates.c: Rebuild.
8174         * target.c (update_current_target): Don't inherit or default
8175         to_supports_evaluation_of_breakpoint_conditions.
8176         * target.h (struct target_ops)
8177         <to_supports_evaluation_of_breakpoint_conditions>: Use
8178         TARGET_DEFAULT_RETURN.
8179
8180 2014-02-19  Tom Tromey  <tromey@redhat.com>
8181
8182         * target-delegates.c: Rebuild.
8183         * target.c (update_current_target): Don't inherit or default
8184         to_augmented_libraries_svr4_read.
8185         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8186         Use TARGET_DEFAULT_RETURN.
8187
8188 2014-02-19  Tom Tromey  <tromey@redhat.com>
8189
8190         * target-delegates.c: Rebuild.
8191         * target.c (update_current_target): Don't inherit or default
8192         to_can_use_agent.
8193         * target.h (struct target_ops) <to_can_use_agent>: Use
8194         TARGET_DEFAULT_RETURN.
8195
8196 2014-02-19  Tom Tromey  <tromey@redhat.com>
8197
8198         * target-delegates.c: Rebuild.
8199         * target.c (update_current_target): Don't inherit or default
8200         to_use_agent.
8201         * target.h (struct target_ops) <to_use_agent>: Use
8202         TARGET_DEFAULT_NORETURN.
8203
8204 2014-02-19  Tom Tromey  <tromey@redhat.com>
8205
8206         * target-delegates.c: Rebuild.
8207         * target.c (update_current_target): Don't inherit or default
8208         to_traceframe_info.
8209         (return_null): Remove.
8210         * target.h (struct target_ops) <to_traceframe_info>: Use
8211         TARGET_DEFAULT_RETURN.
8212
8213 2014-02-19  Tom Tromey  <tromey@redhat.com>
8214
8215         * target-delegates.c: Rebuild.
8216         * target.c (update_current_target): Don't inherit or default
8217         to_static_tracepoint_markers_by_strid.
8218         * target.h (struct target_ops)
8219         <to_static_tracepoint_markers_by_strid>: Use
8220         TARGET_DEFAULT_NORETURN.
8221
8222 2014-02-19  Tom Tromey  <tromey@redhat.com>
8223
8224         * target-delegates.c: Rebuild.
8225         * target.c (update_current_target): Don't inherit or default
8226         to_static_tracepoint_marker_at.
8227         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8228         Use TARGET_DEFAULT_RETURN.
8229
8230 2014-02-19  Tom Tromey  <tromey@redhat.com>
8231
8232         * target-delegates.c: Rebuild.
8233         * target.c (update_current_target): Don't inherit or default
8234         to_set_permissions.
8235         * target.h (struct target_ops) <to_set_permissions>: Use
8236         TARGET_DEFAULT_IGNORE.
8237
8238 2014-02-19  Tom Tromey  <tromey@redhat.com>
8239
8240         * target-delegates.c: Rebuild.
8241         * target.c (update_current_target): Don't inherit or default
8242         to_get_tib_address.
8243         * target.h (struct target_ops) <to_get_tib_address>: Use
8244         TARGET_DEFAULT_NORETURN.
8245
8246 2014-02-19  Tom Tromey  <tromey@redhat.com>
8247
8248         * target-delegates.c: Rebuild.
8249         * target.c (update_current_target): Don't inherit or default
8250         to_set_trace_notes.
8251         * target.h (struct target_ops) <to_set_trace_notes>: Use
8252         TARGET_DEFAULT_RETURN.
8253
8254 2014-02-19  Tom Tromey  <tromey@redhat.com>
8255
8256         * target-delegates.c: Rebuild.
8257         * target.c (update_current_target): Don't initialize
8258         to_set_trace_buffer_size.
8259         * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8260         TARGET_DEFAULT_IGNORE.
8261
8262 2014-02-19  Tom Tromey  <tromey@redhat.com>
8263
8264         * target-delegates.c: Rebuild.
8265         * target.c (update_current_target): Don't inherit or default
8266         to_set_circular_trace_buffer.
8267         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8268         TARGET_DEFAULT_IGNORE.
8269
8270 2014-02-19  Tom Tromey  <tromey@redhat.com>
8271
8272         * target-delegates.c: Rebuild.
8273         * target.c (update_current_target): Don't inherit or default
8274         to_set_disconnected_tracing.
8275         * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8276         TARGET_DEFAULT_IGNORE.
8277
8278 2014-02-19  Tom Tromey  <tromey@redhat.com>
8279
8280         * target-delegates.c: Rebuild.
8281         * target.c (update_current_target): Don't inherit or default
8282         to_get_min_fast_tracepoint_insn_len.
8283         (return_minus_one): Remove.
8284         * target.h (struct target_ops)
8285         <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8286
8287 2014-02-19  Tom Tromey  <tromey@redhat.com>
8288
8289         * target-delegates.c: Rebuild.
8290         * target.c (update_current_target): Don't inherit or default
8291         to_get_raw_trace_data.
8292         * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8293         TARGET_DEFAULT_NORETURN.
8294
8295 2014-02-19  Tom Tromey  <tromey@redhat.com>
8296
8297         * target-delegates.c: Rebuild.
8298         * target.c (update_current_target): Don't inherit or default
8299         to_upload_trace_state_variables.
8300         * target.h (struct target_ops) <to_upload_trace_state_variables>:
8301         Use TARGET_DEFAULT_RETURN.
8302
8303 2014-02-19  Tom Tromey  <tromey@redhat.com>
8304
8305         * target-delegates.c: Rebuild.
8306         * target.c (update_current_target): Don't inherit or default
8307         to_upload_tracepoints.
8308         * target.h (struct target_ops) <to_upload_tracepoints>: Use
8309         TARGET_DEFAULT_RETURN.
8310
8311 2014-02-19  Tom Tromey  <tromey@redhat.com>
8312
8313         * target-delegates.c: Rebuild.
8314         * target.c (update_current_target): Don't inherit or default
8315         to_save_trace_data.
8316         * target.h (struct target_ops) <to_save_trace_data>: Use
8317         TARGET_DEFAULT_NORETURN.
8318
8319 2014-02-19  Tom Tromey  <tromey@redhat.com>
8320
8321         * target-delegates.c: Rebuild.
8322         * target.c (update_current_target): Don't inherit or default
8323         to_get_trace_state_variable_value.
8324         * target.h (struct target_ops)
8325         <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8326
8327 2014-02-19  Tom Tromey  <tromey@redhat.com>
8328
8329         * target-delegates.c: Rebuild.
8330         * target.c (update_current_target): Don't inherit or default
8331         to_trace_find.
8332         * target.h (struct target_ops): Use 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_trace_stop.
8339         * target.h (struct target_ops) <to_trace_stop>: Use
8340         TARGET_DEFAULT_NORETURN.
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_get_tracepoint_status.
8347         * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8348         TARGET_DEFAULT_NORETURN.
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_get_trace_status.
8355         * target.h (struct target_ops) <to_get_trace_status>: Use
8356         TARGET_DEFAULT_RETURN.
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_trace_start.
8363         * target.h (struct target_ops) <to_trace_start>: Use
8364         TARGET_DEFAULT_NORETURN.
8365
8366 2014-02-19  Tom Tromey  <tromey@redhat.com>
8367
8368         * target-delegates.c: Rebuild.
8369         * target.c (update_current_target): Don't inherit or default
8370         to_trace_set_readonly_regions.
8371         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8372         Use TARGET_DEFAULT_NORETURN.
8373
8374 2014-02-19  Tom Tromey  <tromey@redhat.com>
8375
8376         * target-delegates.c: Rebuild.
8377         * target.c (update_current_target): Don't inherit or default
8378         to_disable_tracepoint.
8379         * target.h (struct target_ops) <to_disable_tracepoint>: Use
8380         TARGET_DEFAULT_NORETURN.
8381
8382 2014-02-19  Tom Tromey  <tromey@redhat.com>
8383
8384         * target-delegates.c: Rebuild.
8385         * target.c (update_current_target): Don't inherit or default
8386         to_enable_tracepoint.
8387         * target.h (struct target_ops) <to_enable_tracepoint>: Use
8388         TARGET_DEFAULT_NORETURN.
8389
8390 2014-02-19  Tom Tromey  <tromey@redhat.com>
8391
8392         * target-delegates.c: Rebuild.
8393         * target.c (update_current_target): Don't inherit or default
8394         to_download_trace_state_variable.
8395         * target.h (struct target_ops) <to_download_trace_state_variable>:
8396         Use TARGET_DEFAULT_NORETURN.
8397
8398 2014-02-19  Tom Tromey  <tromey@redhat.com>
8399
8400         * target-delegates.c: Rebuild.
8401         * target.c (update_current_target): Don't inherit or default
8402         to_can_download_tracepoint.
8403         * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8404         TARGET_DEFAULT_RETURN.
8405
8406 2014-02-19  Tom Tromey  <tromey@redhat.com>
8407
8408         * target-delegates.c: Rebuild.
8409         * target.c (update_current_target): Don't inherit or default
8410         to_download_tracepoint.
8411         * target.h (struct target_ops) <to_download_tracepoint>: Use
8412         TARGET_DEFAULT_NORETURN.
8413
8414 2014-02-19  Tom Tromey  <tromey@redhat.com>
8415
8416         * target-delegates.c: Rebuild.
8417         * target.c (update_current_target): Don't inherit or default
8418         to_trace_init.
8419         * target.h (struct target_ops) <to_trace_init>: Use
8420         TARGET_DEFAULT_RETURN.
8421
8422 2014-02-19  Tom Tromey  <tromey@redhat.com>
8423
8424         * target-delegates.c: Rebuild.
8425         * target.c (update_current_target): Don't inherit or default
8426         to_supports_string_tracing.
8427         * target.h (struct target_ops) <to_supports_string_tracing>: Use
8428         TARGET_DEFAULT_RETURN.
8429
8430 2014-02-19  Tom Tromey  <tromey@redhat.com>
8431
8432         * target-delegates.c: Rebuild.
8433         * target.c (update_current_target): Don't inherit or default
8434         to_supports_enable_disable_tracepoint.
8435         * target.h (struct target_ops)
8436         <to_supports_enable_disable_tracepoint>: Use
8437         TARGET_DEFAULT_RETURN.
8438
8439 2014-02-19  Tom Tromey  <tromey@redhat.com>
8440
8441         * target-delegates.c: Rebuild.
8442         * target.c (update_current_target): Don't inherit or default
8443         to_supports_multi_process.
8444         * target.h (struct target_ops) <to_supports_multi_process>: Use
8445         TARGET_DEFAULT_RETURN.
8446
8447 2014-02-19  Tom Tromey  <tromey@redhat.com>
8448
8449         * target-delegates.c: Rebuild.
8450         * target.c (update_current_target): Don't inherit or default
8451         to_get_ada_task_ptid.
8452         * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8453         TARGET_DEFAULT_FUNC.
8454
8455 2014-02-19  Tom Tromey  <tromey@redhat.com>
8456
8457         * target-delegates.c: Rebuild.
8458         * target.c (update_current_target): Don't inherit or default
8459         to_thread_architecture.
8460         * target.h (struct target_ops) <to_thread_architecture>: Use
8461         TARGET_DEFAULT_FUNC.
8462
8463 2014-02-19  Tom Tromey  <tromey@redhat.com>
8464
8465         * target-delegates.c: Rebuild.
8466         * target.c (update_current_target): Don't inherit or default
8467         to_execution_direction.
8468         * target.h (struct target_ops) <to_execution_direction>: Use
8469         TARGET_DEFAULT_FUNC.
8470
8471 2014-02-19  Tom Tromey  <tromey@redhat.com>
8472
8473         * target-delegates.c: Rebuild.
8474         * target.c (update_current_target): Don't inherit or default
8475         to_can_execute_reverse.
8476         * target.h (struct target_ops) <to_can_execute_reverse>: Use
8477         TARGET_DEFAULT_RETURN.
8478         (target_can_execute_reverse): Unconditionally delegate.
8479
8480 2014-02-19  Tom Tromey  <tromey@redhat.com>
8481
8482         * target-delegates.c: Rebuild.
8483         * target.c (update_current_target): Don't inherit or default
8484         to_goto_bookmark.
8485         (dummy_goto_bookmark): Remove.
8486         (init_dummy_target): Don't inherit or default to_goto_bookmark.
8487         * target.h (struct target_ops) <to_goto_bookmark>: Use
8488         TARGET_DEFAULT_NORETURN.
8489
8490 2014-02-19  Tom Tromey  <tromey@redhat.com>
8491
8492         * target-delegates.c: Rebuild.
8493         * target.c (update_current_target): Don't inherit or default
8494         to_get_bookmark.
8495         (dummy_get_bookmark): Remove.
8496         (init_dummy_target): Don't inherit or default to_get_bookmark.
8497         * target.h (struct target_ops) <to_get_bookmark>: Use
8498         TARGET_DEFAULT_NORETURN
8499
8500 2014-02-19  Tom Tromey  <tromey@redhat.com>
8501
8502         * target-delegates.c: Rebuild.
8503         * target.c (update_current_target): Don't inherit or default
8504         to_make_corefile_notes.
8505         (init_dummy_target): Don't initialize to_make_corefile_notes.
8506         * target.h (struct target_ops) <to_make_corefile_notes>: Use
8507         TARGET_DEFAULT_FUNC.
8508
8509 2014-02-19  Tom Tromey  <tromey@redhat.com>
8510
8511         * target-delegates.c: Rebuild.
8512         * target.c (update_current_target): Don't inherit or default
8513         to_find_memory_regions.
8514         (init_dummy_target): Don't initialize to_find_memory_regions.
8515         * target.h (struct target_ops) <to_find_memory_regions>: Use
8516         TARGET_DEFAULT_FUNC.
8517
8518 2014-02-19  Tom Tromey  <tromey@redhat.com>
8519
8520         * target-delegates.c: Rebuild.
8521         * target.c (update_current_target): Don't inherit or default
8522         to_log_command.
8523         * target.h (struct target_ops) <to_log_command>: Use
8524         TARGET_DEFAULT_IGNORE.
8525         (target_log_command): Unconditionally delegate.
8526
8527 2014-02-19  Tom Tromey  <tromey@redhat.com>
8528
8529         * target-delegates.c: Rebuild.
8530         * target.c (update_current_target): Don't inherit or default
8531         to_pid_to_exec_file.
8532         * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8533         TARGET_DEFAULT_RETURN.
8534
8535 2014-02-19  Tom Tromey  <tromey@redhat.com>
8536
8537         * target-delegates.c: Rebuild.
8538         * target.c (update_current_target): Don't inherit or default
8539         to_thread_name.
8540         (target_thread_name): Unconditionally delegate.
8541         * target.h (struct target_ops) <to_thread_name>: Use
8542         TARGET_DEFAULT_RETURN.
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_extra_thread_info.
8549         * target.h (struct target_ops) <to_extra_thread_info>: Use
8550         TARGET_DEFAULT_RETURN.
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_has_exited.
8557         * target.h (struct target_ops) <to_has_exited>: 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_set_syscall_catchpoint.
8565         (return_one): Remove.
8566         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8567         TARGET_DEFAULT_RETURN.
8568
8569 2014-02-19  Tom Tromey  <tromey@redhat.com>
8570
8571         * target-delegates.c: Rebuild.
8572         * target.c (update_current_target): Don't inherit or default
8573         to_insert_exec_catchpoint.
8574         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8575         TARGET_DEFAULT_RETURN.
8576
8577 2014-01-08  Tom Tromey  <tromey@redhat.com>
8578
8579         * target-delegates.c: Rebuild.
8580         * target.c (update_current_target): Don't inherit or default
8581         to_insert_exec_catchpoint.
8582         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8583         TARGET_DEFAULT_RETURN.
8584
8585 2014-02-19  Tom Tromey  <tromey@redhat.com>
8586
8587         * target-delegates.c: Rebuild.
8588         * target.c (update_current_target): Don't inherit or default
8589         to_remove_vfork_catchpoint.
8590         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: 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_insert_vfork_catchpoint.
8598         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: 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_remove_fork_catchpoint.
8606         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8607         TARGET_DEFAULT_RETURN.
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_insert_fork_catchpoint.
8614         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8615         TARGET_DEFAULT_RETURN.
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_post_startup_inferior.
8622         * target.h (struct target_ops) <to_post_startup_inferior>: Use
8623         TARGET_DEFAULT_IGNORE.
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_load.
8630         * target.h (struct target_ops) <to_load>: Use
8631         TARGET_DEFAULT_NORETURN.
8632
8633 2014-02-19  Tom Tromey  <tromey@redhat.com>
8634
8635         * target-delegates.c: Rebuild.
8636         * target.c (update_current_target): Don't inherit or default
8637         to_terminal_info.
8638         * target.h (struct target_ops) <to_terminal_info>: Use
8639         TARGET_DEFAULT_FUNC.
8640
8641 2014-02-19  Tom Tromey  <tromey@redhat.com>
8642
8643         * target-delegates.c: Rebuild.
8644         * target.c (update_current_target): Don't inherit or default
8645         to_terminal_save_ours.
8646         * target.h (struct target_ops) <to_terminal_save_ours>: Use
8647         TARGET_DEFAULT_IGNORE.
8648
8649 2014-02-19  Tom Tromey  <tromey@redhat.com>
8650
8651         * target-delegates.c: Rebuild.
8652         * target.c (update_current_target): Don't inherit or default
8653         to_terminal_ours.
8654         * target.h (struct target_ops) <to_terminal_ours>: Use
8655         TARGET_DEFAULT_IGNORE.
8656
8657 2014-02-19  Tom Tromey  <tromey@redhat.com>
8658
8659         * target-delegates.c: Rebuild.
8660         * target.c (update_current_target): Don't inherit or default
8661         to_terminal_ours_for_output.
8662         * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8663         TARGET_DEFAULT_IGNORE.
8664
8665 2014-02-19  Tom Tromey  <tromey@redhat.com>
8666
8667         * target-delegates.c: Rebuild.
8668         * target.c (update_current_target): Don't inherit or default
8669         to_terminal_inferior.
8670         * target.h (struct target_ops) <to_terminal_inferior>: Use
8671         TARGET_DEFAULT_IGNORE.
8672
8673 2014-02-19  Tom Tromey  <tromey@redhat.com>
8674
8675         * target-delegates.c: Rebuild.
8676         * target.c (update_current_target): Don't inherit or default
8677         to_terminal_init.
8678         * target.h (struct target_ops) <to_terminal_init>: Use
8679         TARGET_DEFAULT_IGNORE.
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_can_accel_watchpoint_condition.
8686         * target.h (struct target_ops)
8687         <to_can_accel_watchpoint_condition>: Use 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_region_ok_for_hw_watchpoint.
8694         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8695         Use TARGET_DEFAULT_FUNC.
8696
8697 2014-02-19  Tom Tromey  <tromey@redhat.com>
8698
8699         * target-delegates.c: Rebuild.
8700         * target.c (update_current_target): Don't inherit or default
8701         to_watchpoint_addr_within_range.
8702         * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8703         Use TARGET_DEFAULT_FUNC.
8704
8705 2014-02-19  Tom Tromey  <tromey@redhat.com>
8706
8707         * target-delegates.c: Rebuild.
8708         * target.c (update_current_target): Don't inherit or default
8709         to_remove_watchpoint.
8710         * target.h (struct target_ops) <to_remove_watchpoint>: Use
8711         TARGET_DEFAULT_NORETURN.
8712
8713 2014-02-19  Tom Tromey  <tromey@redhat.com>
8714
8715         * target-delegates.c: Rebuild.
8716         * target.c (update_current_target): Don't inherit or default
8717         to_insert_watchpoint.
8718         * target.h (struct target_ops) <to_insert_watchpoint>: Use
8719         TARGET_DEFAULT_RETURN.
8720
8721 2014-02-19  Tom Tromey  <tromey@redhat.com>
8722
8723         * target-delegates.c: Rebuild.
8724         * target.c (update_current_target): Don't inherit or default
8725         to_remove_hw_breakpoint.
8726         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8727         TARGET_DEFAULT_RETURN.
8728
8729 2014-02-19  Tom Tromey  <tromey@redhat.com>
8730
8731         * target-delegates.c: Rebuild.
8732         * target.c (update_current_target): Don't inherit or default
8733         to_insert_hw_breakpoint.
8734         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8735         TARGET_DEFAULT_RETURN.
8736
8737 2014-02-19  Tom Tromey  <tromey@redhat.com>
8738
8739         * target-delegates.c: Rebuild.
8740         * target.c (update_current_target): Don't inherit or default
8741         to_can_use_hw_breakpoint.
8742         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8743         TARGET_DEFAULT_RETURN.
8744
8745 2014-02-19  Tom Tromey  <tromey@redhat.com>
8746
8747         * target-delegates.c: Rebuild.
8748         * target.c (update_current_target): Don't inherit or default
8749         to_files_info.
8750         * target.h (struct target_ops) <to_files_info>: Use
8751         TARGET_DEFAULT_IGNORE.
8752
8753 2014-02-19  Tom Tromey  <tromey@redhat.com>
8754
8755         * target-delegates.c: Rebuild.
8756         * target.c (update_current_target): Don't inherit or default
8757         to_store.
8758         * target.h (struct target_ops) <to_store>: Use
8759         TARGET_DEFAULT_NORETURN.
8760
8761 2014-02-19  Tom Tromey  <tromey@redhat.com>
8762
8763         * target-delegates.c: Rebuild.
8764         * target.c (update_current_target): Don't inherit or default
8765         to_post_attach.
8766         * target.h (struct target_ops) <to_post_attach>: Use
8767         TARGET_DEFAULT_IGNORE.
8768
8769 2014-02-19  Tom Tromey  <tromey@redhat.com>
8770
8771         * target-delegates.c: Rebuild.
8772         * target.c (update_current_target): Don't inherit or default
8773         to_rcmd.
8774         (default_rcmd): New function.
8775         (do_monitor_command): Unconditionally delegate.
8776         * target.h (struct target_ops) <to_rmcd>: Use
8777         TARGET_DEFAULT_FUNC.
8778
8779 2014-02-19  Tom Tromey  <tromey@redhat.com>
8780
8781         * target-delegates.c: Rebuild.
8782         * target.c (init_dummy_target): Don't initialize to_attach.
8783         (target_attach): Unconditionally delegate.
8784         * target.h (struct target_ops) <to_attach>: Use
8785         TARGET_DEFAULT_FUNC.
8786
8787 2014-02-19  Tom Tromey  <tromey@redhat.com>
8788
8789         * target-delegates.c: Rebuild.
8790         * target.c (target_detach): Unconditionally delegate.
8791         (init_dummy_target): Don't initialize to_detach.
8792         * target.h (struct target_ops) <to_detach>: Use
8793         TARGET_DEFAULT_IGNORE.
8794
8795 2014-02-19  Tom Tromey  <tromey@redhat.com>
8796
8797         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8798         Add argument.
8799         (target_augmented_libraries_svr4_read): Add argument.
8800         * target.c (update_current_target): Update.
8801         * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8802         argument.
8803
8804 2014-02-19  Tom Tromey  <tromey@redhat.com>
8805
8806         * target.h (struct target_ops) <to_call_history_range>: Add
8807         argument.
8808         * target.c (target_call_history_range): Add argument.
8809         * record-btrace.c (record_btrace_call_history_range): Add 'self'
8810         argument.
8811         (record_btrace_call_history_from): Update.
8812
8813 2014-02-19  Tom Tromey  <tromey@redhat.com>
8814
8815         * target.h (struct target_ops) <to_call_history_from>: Add
8816         argument.
8817         * target.c (target_call_history_from): Add argument.
8818         * record-btrace.c (record_btrace_call_history_from): Add 'self'
8819         argument.
8820
8821 2014-02-19  Tom Tromey  <tromey@redhat.com>
8822
8823         * target.h (struct target_ops) <to_call_history>: Add argument.
8824         * target.c (target_call_history): Add argument.
8825         * record-btrace.c (record_btrace_call_history): Add 'self'
8826         argument.
8827
8828 2014-02-19  Tom Tromey  <tromey@redhat.com>
8829
8830         * target.h (struct target_ops) <to_insn_history_range>: Add
8831         argument.
8832         * target.c (target_insn_history_range): Add argument.
8833         * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8834         argument.
8835         (record_btrace_insn_history_from): Update.
8836
8837 2014-02-19  Tom Tromey  <tromey@redhat.com>
8838
8839         * target.h (struct target_ops) <to_insn_history_from>: Add
8840         argument.
8841         * target.c (target_insn_history_from): Add argument.
8842         * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8843         argument.
8844
8845 2014-02-19  Tom Tromey  <tromey@redhat.com>
8846
8847         * target.h (struct target_ops) <to_insn_history>: Add argument.
8848         * target.c (target_insn_history): Add argument.
8849         * record-btrace.c (record_btrace_insn_history): Add 'self'
8850         argument.
8851
8852 2014-02-19  Tom Tromey  <tromey@redhat.com>
8853
8854         * target.h (struct target_ops) <to_goto_record>: Add argument.
8855         * target.c (target_goto_record): Add argument.
8856         * record-full.c (record_full_goto): Add 'self' argument.
8857         * record-btrace.c (record_btrace_goto): Add 'self' argument.
8858
8859 2014-02-19  Tom Tromey  <tromey@redhat.com>
8860
8861         * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8862         * target.c (target_goto_record_end): Add argument.
8863         * record-full.c (record_full_goto_end): Add 'self' argument.
8864         * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8865
8866 2014-02-19  Tom Tromey  <tromey@redhat.com>
8867
8868         * target.h (struct target_ops) <to_goto_record_begin>: Add
8869         argument.
8870         * target.c (target_goto_record_begin): Add argument.
8871         * record-full.c (record_full_goto_begin): Add 'self' argument.
8872         * record-btrace.c (record_btrace_goto_begin): Add 'self'
8873         argument.
8874
8875 2014-02-19  Tom Tromey  <tromey@redhat.com>
8876
8877         * target.h (struct target_ops) <to_record_is_replaying>: Add
8878         argument.
8879         * target.c (target_record_is_replaying): Add argument.
8880         * record-full.c (record_full_is_replaying): Add 'self' argument.
8881         * record-btrace.c (record_btrace_is_replaying): Add 'self'
8882         argument.
8883         (record_btrace_xfer_partial, record_btrace_store_registers)
8884         (record_btrace_prepare_to_store, record_btrace_resume)
8885         (record_btrace_wait, record_btrace_decr_pc_after_break)
8886         (record_btrace_find_new_threads, record_btrace_thread_alive):
8887         Update.
8888
8889 2014-02-19  Tom Tromey  <tromey@redhat.com>
8890
8891         * target.h (struct target_ops) <to_delete_record>: Add argument.
8892         * target.c (target_delete_record): Add argument.
8893         * record-full.c (record_full_delete): Add 'self' argument.
8894
8895 2014-02-19  Tom Tromey  <tromey@redhat.com>
8896
8897         * target.h (struct target_ops) <to_save_record>: Add argument.
8898         * target.c (target_save_record): Add argument.
8899         * record-full.c (record_full_save): Add 'self' argument.
8900         (record_full_save): Add 'self' argument.
8901
8902 2014-02-19  Tom Tromey  <tromey@redhat.com>
8903
8904         * target.h (struct target_ops) <to_info_record>: Add argument.
8905         * target.c (target_info_record): Add argument.
8906         * record.c (info_record_command): Add argument.
8907         * record-full.c (record_full_info): Add 'self' argument.
8908         * record-btrace.c (record_btrace_info): Add 'self' argument.
8909
8910 2014-02-19  Tom Tromey  <tromey@redhat.com>
8911
8912         * target.h (struct target_ops) <to_stop_recording>: Add argument.
8913         * target.c (target_stop_recording): Add argument.
8914         * record.c (record_stop): Add argument.
8915         * record-btrace.c (record_btrace_stop_recording): Add 'self'
8916         argument.
8917
8918 2014-02-19  Tom Tromey  <tromey@redhat.com>
8919
8920         * target.h (struct target_ops) <to_read_btrace>: Add argument.
8921         * target.c (struct target_ops) <to_read_btrace>: Add argument.
8922         * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8923         argument.
8924         * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8925         (_initialize_amd64_linux_nat): Use it.
8926         * i386-linux-nat.c (i386_linux_read_btrace): New function.
8927         (_initialize_i386_linux_nat): Use it.
8928
8929 2014-02-19  Tom Tromey  <tromey@redhat.com>
8930
8931         * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8932         * target.c (target_teardown_btrace): Add argument.
8933         * remote.c (remote_teardown_btrace): Add 'self' argument.
8934         * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8935         argument.
8936         * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8937         argument.
8938
8939 2014-02-19  Tom Tromey  <tromey@redhat.com>
8940
8941         * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8942         * target.c (target_disable_btrace): Add argument.
8943         * remote.c (remote_disable_btrace): Add 'self' argument.
8944         * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8945         argument.
8946         * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8947         argument.
8948
8949 2014-02-19  Tom Tromey  <tromey@redhat.com>
8950
8951         * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8952         * target.c (target_enable_btrace): Add argument.
8953         * remote.c (remote_enable_btrace): Add 'self' argument.
8954         * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8955         argument.
8956         * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8957         argument.
8958
8959 2014-02-19  Tom Tromey  <tromey@redhat.com>
8960
8961         * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8962         (target_can_use_agent): Add argument.
8963         * target.c (update_current_target): Update.
8964         * remote.c (remote_can_use_agent): Add 'self' argument.
8965         * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8966
8967 2014-02-19  Tom Tromey  <tromey@redhat.com>
8968
8969         * target.h (struct target_ops) <to_use_agent>: Add argument.
8970         (target_use_agent): Add argument.
8971         * target.c (update_current_target): Update.
8972         * remote.c (remote_use_agent): Add 'self' argument.
8973         * inf-child.c (inf_child_use_agent): Add 'self' argument.
8974
8975 2014-02-19  Tom Tromey  <tromey@redhat.com>
8976
8977         * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8978         * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8979         (target_traceframe_info): Add argument.
8980         * target.c (update_current_target): Update.
8981         * remote.c (remote_traceframe_info): Add 'self' argument.
8982         * ctf.c (ctf_traceframe_info): Add 'self' argument.
8983
8984 2014-02-19  Tom Tromey  <tromey@redhat.com>
8985
8986         * target.h (target_static_tracepoint_markers_by_strid): Add
8987         argument.
8988         (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8989         'self' argument.
8990         * target.c (update_current_target): Update.
8991         * remote.c (struct target_ops)
8992         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8993         * linux-nat.c (struct target_ops)
8994         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8995
8996 2014-02-19  Tom Tromey  <tromey@redhat.com>
8997
8998         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8999         Add argument.
9000         (target_static_tracepoint_marker_at): Add argument.
9001         * target.c (update_current_target): Update.
9002         * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9003         argument.
9004
9005 2014-02-19  Tom Tromey  <tromey@redhat.com>
9006
9007         * target.h (struct target_ops) <to_set_permissions>: Add argument.
9008         (target_set_permissions): Add argument.
9009         * target.c (update_current_target): Update.
9010         * remote.c (remote_set_permissions): Add 'self' argument.
9011         (remote_start_remote): Update.
9012
9013 2014-02-19  Tom Tromey  <tromey@redhat.com>
9014
9015         * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9016         * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9017         (target_get_tib_address): Add argument.
9018         * target.c (update_current_target): Update.
9019         * remote.c (remote_get_tib_address): Add 'self' argument.
9020
9021 2014-02-19  Tom Tromey  <tromey@redhat.com>
9022
9023         * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9024         (target_set_trace_notes): Add argument.
9025         * target.c (update_current_target): Update.
9026         * remote.c (remote_set_trace_notes): Add 'self' argument.
9027
9028 2014-02-19  Tom Tromey  <tromey@redhat.com>
9029
9030         * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9031         argument.
9032         (target_set_trace_buffer_size): Add argument.
9033         * target.c (update_current_target): Update.
9034         * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9035
9036 2014-02-19  Tom Tromey  <tromey@redhat.com>
9037
9038         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9039         argument.
9040         (target_set_circular_trace_buffer): Add argument.
9041         * target.c (update_current_target): Update.
9042         * remote.c (remote_set_circular_trace_buffer): Add 'self'
9043         argument.
9044
9045 2014-02-19  Tom Tromey  <tromey@redhat.com>
9046
9047         * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9048         argument.
9049         (target_set_disconnected_tracing): Add argument.
9050         * target.c (update_current_target): Update.
9051         * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9052
9053 2014-02-19  Tom Tromey  <tromey@redhat.com>
9054
9055         * target.h (struct target_ops)
9056         <to_get_min_fast_tracepoint_insn_len>: Add argument.
9057         (target_get_min_fast_tracepoint_insn_len): Add argument.
9058         * target.c (update_current_target): Update.
9059         * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9060         argument.
9061
9062 2014-02-19  Tom Tromey  <tromey@redhat.com>
9063
9064         * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9065         argument.
9066         (target_get_raw_trace_data): Add argument.
9067         * target.c (update_current_target): Update.
9068         * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9069
9070 2014-02-19  Tom Tromey  <tromey@redhat.com>
9071
9072         * target.h (struct target_ops) <to_upload_trace_state_variables>:
9073         Add argument.
9074         (target_upload_trace_state_variables): Add argument.
9075         * target.c (update_current_target): Update.
9076         * remote.c (remote_upload_trace_state_variables): Add 'self'
9077         argument.
9078         (remote_start_remote): Update.
9079
9080 2014-02-19  Tom Tromey  <tromey@redhat.com>
9081
9082         * target.h (struct target_ops) <to_upload_tracepoints>: Add
9083         argument.
9084         (target_upload_tracepoints): Add argument.
9085         * target.c (update_current_target): Update.
9086         * remote.c (remote_upload_tracepoints): Add 'self' argument.
9087         (remote_start_remote): Update.
9088
9089 2014-02-19  Tom Tromey  <tromey@redhat.com>
9090
9091         * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9092         (target_save_trace_data): Add argument.
9093         * target.c (update_current_target): Update.
9094         * remote.c (remote_save_trace_data): Add 'self' argument.
9095
9096 2014-02-19  Tom Tromey  <tromey@redhat.com>
9097
9098         * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9099         argument.
9100         * target.h (struct target_ops)
9101         <to_get_trace_state_variable_value>: Add argument.
9102         (target_get_trace_state_variable_value): Add argument.
9103         * target.c (update_current_target): Update.
9104         * remote.c (remote_get_trace_state_variable_value): Add 'self'
9105         argument.
9106         * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9107
9108 2014-02-19  Tom Tromey  <tromey@redhat.com>
9109
9110         * tracepoint.c (tfile_trace_find): Add 'self' argument.
9111         * target.h (struct target_ops) <to_trace_find>: Add argument.
9112         (target_trace_find): Add argument.
9113         * target.c (update_current_target): Update.
9114         * remote.c (remote_trace_find): Add 'self' argument.
9115         * ctf.c (ctf_trace_find): Add 'self' argument.
9116
9117 2014-02-19  Tom Tromey  <tromey@redhat.com>
9118
9119         * target.h (struct target_ops) <to_trace_stop>: Add argument.
9120         (target_trace_stop): Add argument.
9121         * target.c (update_current_target): Update.
9122         * remote.c (remote_trace_stop): Add 'self' argument.
9123
9124 2014-02-19  Tom Tromey  <tromey@redhat.com>
9125
9126         * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9127         * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9128         argument.
9129         (target_get_tracepoint_status): Add argument.
9130         * target.c (update_current_target): Update.
9131         * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9132
9133 2014-02-19  Tom Tromey  <tromey@redhat.com>
9134
9135         * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9136         * target.h (struct target_ops) <to_get_trace_status>: Add
9137         argument.
9138         (target_get_trace_status): Add argument.
9139         * target.c (update_current_target): Update.
9140         * remote.c (remote_get_trace_status): Add 'self' argument.
9141         (remote_start_remote, remote_can_download_tracepoint): Update.
9142         * ctf.c (ctf_get_trace_status): Add 'self' argument.
9143
9144 2014-02-19  Tom Tromey  <tromey@redhat.com>
9145
9146         * target.h (struct target_ops) <to_trace_start>: Add argument.
9147         (target_trace_start): Add argument.
9148         * target.c (update_current_target): Update.
9149         * remote.c (remote_trace_start): Add 'self' argument.
9150
9151 2014-02-19  Tom Tromey  <tromey@redhat.com>
9152
9153         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9154         Add argument.
9155         (target_trace_set_readonly_regions): Add argument.
9156         * target.c (update_current_target): Update.
9157         * remote.c (remote_trace_set_readonly_regions): Add 'self'
9158         argument.
9159
9160 2014-02-19  Tom Tromey  <tromey@redhat.com>
9161
9162         * target.h (struct target_ops) <to_disable_tracepoint>: Add
9163         argument.
9164         (target_disable_tracepoint): Add argument.
9165         * target.c (update_current_target): Update.
9166         * remote.c (remote_disable_tracepoint): Add 'self' argument.
9167
9168 2014-02-19  Tom Tromey  <tromey@redhat.com>
9169
9170         * target.h (struct target_ops) <to_enable_tracepoint>: Add
9171         argument.
9172         (target_enable_tracepoint): Add argument.
9173         * target.c (update_current_target): Update.
9174         * remote.c (remote_enable_tracepoint): Add 'self' argument.
9175
9176 2014-02-19  Tom Tromey  <tromey@redhat.com>
9177
9178         * target.h (struct target_ops) <to_download_trace_state_variable>:
9179         Add argument.
9180         (target_download_trace_state_variable): Add argument.
9181         * target.c (update_current_target): Update.
9182         * remote.c (remote_download_trace_state_variable): Add 'self'
9183         argument.
9184
9185 2014-02-19  Tom Tromey  <tromey@redhat.com>
9186
9187         * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9188         argument.
9189         (target_can_download_tracepoint): Add argument.
9190         * target.c (update_current_target): Update.
9191         * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9192
9193 2014-02-19  Tom Tromey  <tromey@redhat.com>
9194
9195         * target.h (struct target_ops) <to_download_tracepoint>: Add
9196         argument.
9197         (target_download_tracepoint): Add argument.
9198         * target.c (update_current_target): Update.
9199         * remote.c (remote_download_tracepoint): Add 'self' argument.
9200
9201 2014-02-19  Tom Tromey  <tromey@redhat.com>
9202
9203         * target.h (struct target_ops) <to_trace_init>: Add argument.
9204         (target_trace_init): Add argument.
9205         * target.c (update_current_target): Update.
9206         * remote.c (remote_trace_init): Add 'self' argument.
9207
9208 2014-02-19  Tom Tromey  <tromey@redhat.com>
9209
9210         * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9211         * target.c (target_fileio_readlink): Add argument.
9212         * remote.c (remote_hostio_readlink): Add 'self' argument.
9213         * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9214
9215 2014-02-19  Tom Tromey  <tromey@redhat.com>
9216
9217         * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9218         * target.c (target_fileio_unlink): Add argument.
9219         * remote.c (remote_hostio_unlink): Add 'self' argument.
9220         (remote_file_delete): Update.
9221         * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9222
9223 2014-02-19  Tom Tromey  <tromey@redhat.com>
9224
9225         * target.h (struct target_ops) <to_fileio_close>: Add argument.
9226         * target.c (target_fileio_close): Add argument.
9227         * remote.c (remote_hostio_close): Add 'self' argument.
9228         (remote_hostio_close_cleanup): Update.
9229         (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9230         Update.
9231         * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9232
9233 2014-02-19  Tom Tromey  <tromey@redhat.com>
9234
9235         * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9236         * target.c (target_fileio_pread): Add argument.
9237         * remote.c (remote_hostio_pread): Add 'self' argument.
9238         (remote_bfd_iovec_pread, remote_file_get): Update.
9239         * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9240
9241 2014-02-19  Tom Tromey  <tromey@redhat.com>
9242
9243         * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9244         * target.c (target_fileio_pwrite): Add argument.
9245         * remote.c (remote_hostio_pwrite): Add 'self' argument.
9246         (remote_file_put): Update.
9247         * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9248
9249 2014-02-19  Tom Tromey  <tromey@redhat.com>
9250
9251         * target.h (struct target_ops) <to_fileio_open>: Add argument.
9252         * target.c (target_fileio_open): Add argument.
9253         * remote.c (remote_hostio_open): Add 'self' argument.
9254         (remote_bfd_iovec_open): Add 'self' argument.
9255         (remote_file_put): Add 'self' argument.
9256         (remote_file_get): Add 'self' argument.
9257         * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9258
9259 2014-02-19  Tom Tromey  <tromey@redhat.com>
9260
9261         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9262         Add argument.
9263         (target_can_run_breakpoint_commands): Add argument.
9264         * target.c (update_current_target): Update.
9265         * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9266         argument.
9267         (remote_insert_breakpoint): Add 'self' argument.
9268         (remote_insert_hw_breakpoint): Add 'self' argument.
9269         (remote_can_run_breakpoint_commands): Add 'self' argument.
9270
9271 2014-02-19  Tom Tromey  <tromey@redhat.com>
9272
9273         * target.h (struct target_ops)
9274         <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9275         (target_supports_evaluation_of_breakpoint_conditions): Add
9276         argument.
9277         * target.c (update_current_target): Update.
9278         * remote.c (remote_supports_cond_breakpoints): Add 'self'
9279         argument.
9280         (remote_insert_breakpoint): Add 'self' argument.
9281         (remote_insert_hw_breakpoint): Add 'self' argument.
9282         (remote_supports_cond_breakpoints): Add 'self' argument.
9283
9284 2014-02-19  Tom Tromey  <tromey@redhat.com>
9285
9286         * target.h (struct target_ops) <to_supports_string_tracing>: Add
9287         argument.
9288         (target_supports_string_tracing): Add argument.
9289         * target.c (update_current_target): Update.
9290         * remote.c (remote_supports_string_tracing): Add 'self' argument.
9291
9292 2014-02-19  Tom Tromey  <tromey@redhat.com>
9293
9294         * target.h (struct target_ops)
9295         <to_supports_disable_randomization>: Add argument.
9296         * target.c (find_default_supports_disable_randomization): Add
9297         argument.
9298         (target_supports_disable_randomization): Add argument.
9299         (find_default_supports_disable_randomization): Add 'self'
9300         argument.
9301         * remote.c (extended_remote_supports_disable_randomization): Add
9302         'self' argument.
9303         (remote_supports_disable_randomization): Add 'self' argument.
9304         (extended_remote_create_inferior): Update.
9305         * linux-nat.c (linux_nat_supports_disable_randomization): Add
9306         'self' argument.
9307
9308 2014-02-19  Tom Tromey  <tromey@redhat.com>
9309
9310         * target.h (struct target_ops)
9311         <to_supports_enable_disable_tracepoint>: Add argument.
9312         (target_supports_enable_disable_tracepoint): Add argument.
9313         * target.c (update_current_target): Update.
9314         * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9315         argument.
9316
9317 2014-02-19  Tom Tromey  <tromey@redhat.com>
9318
9319         * target.h (struct target_ops) <to_supports_multi_process>: Add
9320         argument.
9321         (target_supports_multi_process): Add argument.
9322         * target.c (update_current_target): Update.
9323         * remote.c (remote_supports_multi_process): Add 'self' argument.
9324         * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9325         argument.
9326         * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9327         argument.
9328
9329 2014-02-19  Tom Tromey  <tromey@redhat.com>
9330
9331         * target.h (struct target_ops) <to_execution_direction>: Add
9332         argument.
9333         (target_execution_direction): Add argument.
9334         * target.c (default_execution_direction): Add 'self' argument.
9335         * record-full.c (record_full_execution_direction): Add 'self'
9336         argument.
9337
9338 2014-02-19  Tom Tromey  <tromey@redhat.com>
9339
9340         * target.h (struct target_ops) <to_can_execute_reverse>: Add
9341         argument.
9342         (target_can_execute_reverse): Add argument.
9343         * remote.c (remote_can_execute_reverse): Add 'self' argument.
9344         * record-full.c (record_full_can_execute_reverse): Add 'self'
9345         argument.
9346         * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9347         argument.
9348
9349 2014-02-19  Tom Tromey  <tromey@redhat.com>
9350
9351         * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9352         * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9353         argument.
9354         (target_get_ada_task_ptid): Add argument.
9355         * target.c (update_current_target): Update.
9356         (default_get_ada_task_ptid): Add 'self' argument.
9357         * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9358         * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9359         * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9360         argument.
9361         * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9362         argument.
9363         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9364         argument.
9365         * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9366         argument.
9367         * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9368         * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9369         argument.
9370
9371 2014-02-19  Tom Tromey  <tromey@redhat.com>
9372
9373         * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9374         (target_goto_bookmark): Add argument.
9375         * target.c (dummy_goto_bookmark): Add 'self' argument.
9376         * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9377
9378 2014-02-19  Tom Tromey  <tromey@redhat.com>
9379
9380         * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9381         (target_get_bookmark): Add argument.
9382         * target.c (dummy_get_bookmark): Add 'self' argument.
9383         * record-full.c (record_full_get_bookmark): Add 'self' argument.
9384
9385 2014-02-19  Tom Tromey  <tromey@redhat.com>
9386
9387         * target.h (struct target_ops) <to_make_corefile_notes>: Add
9388         argument.
9389         (target_make_corefile_notes): Add argument.
9390         * target.c (dummy_make_corefile_notes): Add 'self' argument.
9391         * procfs.c (procfs_make_note_section): Add 'self' argument.
9392         (procfs_make_note_section): Add 'self' argument.
9393         (procfs_make_note_section): Add 'self' argument.
9394         * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9395         argument.
9396         * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9397         * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9398         * exec.c (exec_make_note_section): Add 'self' argument.
9399         (exec_make_note_section): Add 'self' argument.
9400
9401 2014-02-19  Tom Tromey  <tromey@redhat.com>
9402
9403         * target.h (struct target_ops) <to_find_memory_regions>: Add
9404         argument.
9405         (target_find_memory_regions): Add argument.
9406         * target.c (dummy_find_memory_regions): Add 'self' argument.
9407         * procfs.c (proc_find_memory_regions): Add 'self' argument.
9408         * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9409         * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9410         * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9411         * exec. (exec_do_find_memory_regions): New global.
9412         (exec_set_find_memory_regions): Rewrite.
9413         (exec_find_memory_regions): New function.
9414         (init_exec_ops): Use exec_find_memory_regions.
9415
9416 2014-02-19  Tom Tromey  <tromey@redhat.com>
9417
9418         * target.h (struct target_ops) <to_supports_non_stop>: Add
9419         argument.
9420         * target.c (find_default_supports_non_stop): Add argument.
9421         (target_supports_non_stop): Add argument.
9422         (find_default_supports_non_stop): Add 'self' argument.
9423         * remote.c (remote_supports_non_stop): Add 'self' argument.
9424         * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9425
9426 2014-02-19  Tom Tromey  <tromey@redhat.com>
9427
9428         * target.h (struct target_ops) <to_log_command>: Add argument.
9429         (target_log_command): Add argument.
9430         * serial.h (serial_log_command): Add 'self' argument.
9431         * serial.c (serial_log_command): Add 'self' argument.
9432
9433 2014-02-19  Tom Tromey  <tromey@redhat.com>
9434
9435         * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9436         * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9437         argument.
9438         (target_pid_to_exec_file): Add argument.
9439         * target.c (debug_to_pid_to_exec_file): Add argument.
9440         (update_current_target): Update.
9441         * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9442         * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9443         * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9444         (linux_handle_extended_wait): Update.
9445         * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9446         * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9447         * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9448         * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9449
9450 2014-02-19  Tom Tromey  <tromey@redhat.com>
9451
9452         * target.h (struct target_ops) <to_rcmd>: Add argument.
9453         (target_rcmd): Add argument.
9454         * target.c (debug_to_rcmd): Add argument.
9455         (update_current_target, do_monitor_command): Update.
9456         * remote.c (remote_rcmd): Add 'self' argument.
9457         * monitor.c (monitor_rcmd): Add 'self' argument.
9458
9459 2014-02-19  Tom Tromey  <tromey@redhat.com>
9460
9461         * windows-nat.c (windows_stop): Add 'self' argument.
9462         * target.h (struct target_ops) <to_stop>: Add argument.
9463         * target.c (target_stop): Add argument.
9464         (debug_to_stop): Add argument.
9465         (update_current_target): Update.
9466         * remote.c (remote_stop): Add 'self' argument.
9467         * remote-sim.c (gdbsim_stop): Add 'self' argument.
9468         (gdbsim_cntrl_c): Update.
9469         * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9470         * procfs.c (procfs_stop): Add 'self' argument.
9471         * nto-procfs.c (procfs_stop): Add 'self' argument.
9472         * monitor.c (monitor_stop): Add 'self' argument.
9473         (monitor_open): Update.
9474         * linux-nat.c (linux_nat_stop): Add argument.
9475         * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9476         * gnu-nat.c (gnu_stop): Add 'self' argument.
9477         * darwin-nat.c (darwin_stop): Add 'self' argument.
9478
9479 2014-02-19  Tom Tromey  <tromey@redhat.com>
9480
9481         * target.h (struct target_ops) <to_thread_name>: Add argument.
9482         * target.c (target_thread_name): Add argument.
9483         (update_current_target): Update.
9484         * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9485
9486 2014-02-19  Tom Tromey  <tromey@redhat.com>
9487
9488         * target.h (struct target_ops) <to_extra_thread_info>: Add
9489         argument.
9490         (target_extra_thread_info): Add argument.
9491         * target.c (update_current_target): Update.
9492         * remote.c (remote_threads_extra_info): Add 'self' argument.
9493         * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9494         argument.
9495         * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9496         * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9497         * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9498         argument.
9499         * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9500         argument.
9501         * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9502         argument.
9503         * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9504         argument.
9505
9506 2014-02-19  Tom Tromey  <tromey@redhat.com>
9507
9508         * target.h (struct target_ops) <to_program_signals>: Add argument.
9509         * target.c (target_program_signals): Add argument.
9510         * remote.c (remote_program_signals): Add 'self' argument.
9511
9512 2014-02-19  Tom Tromey  <tromey@redhat.com>
9513
9514         * target.h (struct target_ops) <to_pass_signals>: Add argument.
9515         * target.c (target_pass_signals): Add argument.
9516         * remote.c (remote_pass_signals): Add 'self' argument.
9517         (remote_start_remote): Update.
9518         * procfs.c (procfs_pass_signals): Add 'self' argument.
9519         * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9520         * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9521         (linux_nat_create_inferior, linux_nat_attach): Update.
9522
9523 2014-02-19  Tom Tromey  <tromey@redhat.com>
9524
9525         * windows-nat.c (windows_can_run): Add 'self' argument.
9526         * target.h (struct target_ops) <to_can_run>: Add argument.
9527         (target_can_run): Add argument.
9528         * target.c (debug_to_can_run): Add argument.
9529         (update_current_target): Update.
9530         * nto-procfs.c (procfs_can_run): Add 'self' argument.
9531         * inf-child.c (inf_child_can_run): Add 'self' argument.
9532         * go32-nat.c (go32_can_run): Add 'self' argument.
9533
9534 2014-02-19  Tom Tromey  <tromey@redhat.com>
9535
9536         * target.h (struct target_ops) <to_has_exited>: Add argument.
9537         (target_has_exited): Add argument.
9538         * target.c (debug_to_has_exited): Add argument.
9539         (update_current_target): Update.
9540
9541 2014-02-19  Tom Tromey  <tromey@redhat.com>
9542
9543         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9544         argument.
9545         (target_set_syscall_catchpoint): Add argument.
9546         * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9547         argument.
9548         * target.c (update_current_target): Update.
9549
9550 2014-02-19  Tom Tromey  <tromey@redhat.com>
9551
9552         * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9553         argument.
9554         (target_remove_exec_catchpoint): Add argument.
9555         * target.c (debug_to_remove_exec_catchpoint): Add argument.
9556         (update_current_target): Update.
9557         * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9558         argument.
9559
9560 2014-02-19  Tom Tromey  <tromey@redhat.com>
9561
9562         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9563         argument.
9564         (target_insert_exec_catchpoint): Add argument.
9565         * target.c (debug_to_insert_exec_catchpoint): Add argument.
9566         (update_current_target): Update.
9567         * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9568         argument.
9569
9570 2014-02-19  Tom Tromey  <tromey@redhat.com>
9571
9572         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9573         argument.
9574         (target_remove_vfork_catchpoint): Add argument.
9575         * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9576         (update_current_target): Update.
9577         * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9578         argument.
9579
9580 2014-02-19  Tom Tromey  <tromey@redhat.com>
9581
9582         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9583         argument.
9584         (target_insert_vfork_catchpoint): Add argument.
9585         * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9586         (update_current_target): Update.
9587         * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9588         argument.
9589
9590 2014-02-19  Tom Tromey  <tromey@redhat.com>
9591
9592         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9593         argument.
9594         (target_remove_fork_catchpoint): Add argument.
9595         * target.c (debug_to_remove_fork_catchpoint): Add argument.
9596         (update_current_target): Update.
9597         * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9598         argument.
9599
9600 2014-02-19  Tom Tromey  <tromey@redhat.com>
9601
9602         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9603         argument.
9604         (target_insert_fork_catchpoint): Add argument.
9605         * target.c (debug_to_insert_fork_catchpoint): Add argument.
9606         (update_current_target): Update.
9607         * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9608         argument.
9609
9610 2014-02-19  Tom Tromey  <tromey@redhat.com>
9611
9612         * target.h (struct target_ops) <to_post_startup_inferior>: Add
9613         argument.
9614         (target_post_startup_inferior): Add argument.
9615         * target.c (debug_to_post_startup_inferior): Add argument.
9616         (update_current_target): Update.
9617         * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9618         argument.
9619         * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9620         argument.
9621         * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9622         argument.
9623         * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9624         argument.
9625         * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9626         'self' argument.
9627         (super_post_startup_inferior): Likewise.
9628         * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9629         'self' argument.
9630         (super_post_startup_inferior): Likewise.
9631         * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9632         Add 'self' argument.
9633         (super_post_startup_inferior): Likewise.
9634
9635 2014-02-19  Tom Tromey  <tromey@redhat.com>
9636
9637         * target.h (struct target_ops) <to_load>: Add argument.
9638         * target.c (target_load): Add argument.
9639         (debug_to_load): Add argument.
9640         (update_current_target): Update.
9641         * remote.c (remote_load): Add 'self' argument.
9642         * remote-sim.c (gdbsim_load): Add 'self' argument.
9643         * remote-mips.c (mips_load): Add 'self' argument.
9644         * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9645         * monitor.c (monitor_load): Add 'self' argument.
9646         * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9647
9648 2014-02-19  Tom Tromey  <tromey@redhat.com>
9649
9650         * target.h (struct target_ops) <to_terminal_info>: Add argument.
9651         (target_terminal_info): Add argument.
9652         * target.c (debug_to_terminal_info): Add argument.
9653         (default_terminal_info): Likewise.
9654         * inflow.c (child_terminal_info): Add 'self' argument.
9655         * inferior.h (child_terminal_info): Add 'self' argument.
9656         * go32-nat.c (go32_terminal_info): Add 'self' argument.
9657
9658 2014-02-19  Tom Tromey  <tromey@redhat.com>
9659
9660         * target.h (struct target_ops) <to_terminal_save_ours>: Add
9661         argument.
9662         (target_terminal_save_ours): Add argument.
9663         * target.c (debug_to_terminal_save_ours): Add argument.
9664         (update_current_target): Update.
9665         * inflow.c (terminal_save_ours): Add 'self' argument.
9666         * inferior.h (terminal_save_ours): Add 'self' argument.
9667
9668 2014-02-19  Tom Tromey  <tromey@redhat.com>
9669
9670         * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9671         (target_terminal_ours): Add argument.
9672         * target.c (debug_to_terminal_ours): Add argument.
9673         (update_current_target): Update.
9674         * remote.c (remote_terminal_ours): Add 'self' argument.
9675         (remote_close): Update.
9676         * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9677         * inflow.c (terminal_ours): Add 'self' argument.
9678         * inferior.h (terminal_ours): Add 'self' argument.
9679         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9680
9681 2014-02-19  Pedro Alves  <palves@redhat.com>
9682             Tom Tromey  <tromey@redhat.com>
9683
9684         * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9685         argument.
9686         (target_terminal_ours_for_output): Add argument.
9687         * target.c (debug_to_terminal_ours_for_output): Add argument.
9688         (update_current_target): Update.
9689         * inflow.c (terminal_ours_for_output): Add 'self' argument.
9690         * inferior.h (terminal_ours_for_output): Add 'self' argument.
9691         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9692
9693 2014-02-19  Tom Tromey  <tromey@redhat.com>
9694
9695         * target.h (struct target_ops) <to_terminal_inferior>: Add
9696         argument.
9697         * target.c (target_terminal_inferior): Add argument.
9698         (update_current_target): Update.
9699         * remote.c (remote_terminal_inferior): Add 'self' argument.
9700         * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9701         * inflow.c (terminal_inferior): Add 'self' argument.
9702         * inferior.h (terminal_inferior): Add 'self' argument.
9703         * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9704         (go32_terminal_inferior): Add 'self' argument.
9705
9706 2014-02-19  Tom Tromey  <tromey@redhat.com>
9707
9708         * target.h (struct target_ops) <to_terminal_init>: Add argument.
9709         (target_terminal_init): Add argument.
9710         * target.c (debug_to_terminal_init): Add argument.
9711         (update_current_target): Update.
9712         * inflow.c (terminal_init_inferior): Add 'self' argument.
9713         * inferior.h (terminal_init_inferior): Add 'self' argument.
9714         * go32-nat.c (go32_terminal_init): Add 'self' argument.
9715         * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9716
9717 2014-02-19  Tom Tromey  <tromey@redhat.com>
9718
9719         * target.h (struct target_ops)
9720         <to_can_accel_watchpoint_condition>: Add argument.
9721         (target_can_accel_watchpoint_condition): Add argument.
9722         * target.c (debug_to_can_accel_watchpoint_condition): Add
9723         argument.
9724         (update_current_target): Update.
9725         * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9726         'self' argument.
9727
9728 2014-02-19  Tom Tromey  <tromey@redhat.com>
9729
9730         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9731         Add argument.
9732         (target_region_ok_for_hw_watchpoint): Add argument.
9733         * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9734         (default_region_ok_for_hw_watchpoint): Add argument.
9735         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9736         * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9737         argument.
9738         * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9739         argument.
9740         * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9741         argument.
9742         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9743         'self' argument.
9744         * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9745         'self' argument.
9746         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9747         'self' argument.
9748         * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9749         * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9750         'self' argument.
9751         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9752         Add 'self' argument.
9753
9754 2014-02-19  Tom Tromey  <tromey@redhat.com>
9755
9756         * target.h (struct target_ops) <to_insert_watchpoint>: Add
9757         argument.
9758         (target_insert_watchpoint): Add argument.
9759         * target.c (debug_to_insert_watchpoint): Add argument.
9760         (update_current_target): Update.
9761         * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9762         * remote.c (remote_insert_watchpoint): Add 'self' argument.
9763         * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9764         * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9765         * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9766         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9767         argument.
9768         * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9769         (procfs_insert_hw_watchpoint): Add 'self' argument.
9770         * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9771         argument.
9772         * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9773         argument.
9774         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9775         argument.
9776         * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9777         * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9778         argument.
9779         * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9780         'self' argument.
9781
9782 2014-02-19  Tom Tromey  <tromey@redhat.com>
9783
9784         * target.h (struct target_ops) <to_remove_watchpoint>: Add
9785         argument.
9786         (target_remove_watchpoint): Add argument.
9787         * target.c (debug_to_remove_watchpoint): Add argument.
9788         (update_current_target): Update.
9789         * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9790         * remote.c (remote_remove_watchpoint): Add 'self' argument.
9791         * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9792         * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9793         * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9794         * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9795         argument.
9796         * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9797         * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9798         argument.
9799         * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9800         argument.
9801         * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9802         argument.
9803         * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9804         * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9805         argument.
9806         * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9807         'self' argument.
9808
9809 2014-02-19  Tom Tromey  <tromey@redhat.com>
9810
9811         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9812         argument.
9813         (target_remove_hw_breakpoint): Add argument.
9814         * target.c (debug_to_remove_hw_breakpoint): Add argument.
9815         (update_current_target): Update.
9816         * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9817         * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9818         argument.
9819         * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9820         * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9821         argument.
9822         * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9823         'self' argument.
9824
9825 2014-02-19  Tom Tromey  <tromey@redhat.com>
9826
9827         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9828         argument.
9829         (target_insert_hw_breakpoint): Add argument.
9830         * target.c (debug_to_insert_hw_breakpoint): Add argument.
9831         (update_current_target): Update.
9832         * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9833         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9834         argument.
9835         * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9836         * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9837         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9838         argument.
9839         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9840         'self' argument.
9841
9842 2014-02-19  Tom Tromey  <tromey@redhat.com>
9843
9844         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9845         argument.
9846         (target_can_use_hardware_watchpoint): Add argument.
9847         * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9848         (update_current_target): Update.
9849         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9850         argument.
9851         * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9852         argument.
9853         * remote.c (remote_check_watch_resources): Add 'self' argument.
9854         * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9855         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9856         argument.
9857         * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9858         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9859         argument.
9860         * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9861         argument.
9862         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9863         argument.
9864         * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9865         argument.
9866         * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9867         argument.
9868         * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9869         argument.
9870         * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9871         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9872         argument.
9873         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9874         'self' argument.
9875
9876 2014-02-19  Tom Tromey  <tromey@redhat.com>
9877
9878         * target.h (struct target_ops) <to_post_attach>: Add argument.
9879         (target_post_attach): Add argument.
9880         * target.c (debug_to_post_attach): Add argument.
9881         (update_current_target): Update.
9882         * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9883         * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9884         * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9885         * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9886         * inf-child.c (inf_child_post_attach): Add 'self' argument.
9887
9888 2014-02-19  Tom Tromey  <tromey@redhat.com>
9889
9890         * windows-nat.c (windows_close): Add 'self' argument.
9891         * tracepoint.c (tfile_close): Add 'self' argument.
9892         * target.h (struct target_ops) <to_close>: Add argument.
9893         * target.c (target_close): Add argument.
9894         (update_current_target): Update.
9895         * remote.c (remote_close): Add 'self' argument.
9896         * remote-sim.c (gdbsim_close): Add 'self' argument.
9897         * remote-mips.c (mips_close): Add 'self' argument.
9898         * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9899         * record-full.c (record_full_close): Add 'self' argument.
9900         * record-btrace.c (record_btrace_close): Add 'self' argument.
9901         * monitor.h (monitor_close): Add 'self' argument.
9902         * monitor.c (monitor_close): Add 'self' argument.
9903         * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9904         * linux-nat.c (linux_nat_close): Add argument.
9905         * go32-nat.c (go32_close): Add 'self' argument.
9906         * exec.c (exec_close_1): Add 'self' argument.
9907         * ctf.c (ctf_close): Add 'self' argument.
9908         * corelow.c (core_close): Add 'self' argument.
9909         (core_close_cleanup): Update.
9910         * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9911         * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9912
9913 2014-02-19  Tom Tromey  <tromey@redhat.com>
9914
9915         * remote.c (remote_load): New function.
9916         (init_remote_ops): Use it.
9917
9918 2014-02-19  Tom Tromey  <tromey@redhat.com>
9919
9920         * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9921         argument.
9922         * common/linux-btrace.h (linux_supports_btrace): Update.
9923         * remote.c (remote_supports_btrace): Add "self" argument.
9924         * target-delegates.c: Rebuild.
9925         * target.c (target_supports_btrace): Remove.
9926         * target.h (struct target_ops) <to_supports_btrace>: Add
9927         target_ops argument.
9928         (target_supports_btrace): New define.
9929
9930 2014-02-19  Tom Tromey  <tromey@redhat.com>
9931
9932         * record-full.c (record_full_beneath_to_resume_ops)
9933         (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9934         (record_full_beneath_to_wait)
9935         (record_full_beneath_to_store_registers_ops)
9936         (record_full_beneath_to_store_registers)
9937         (record_full_beneath_to_xfer_partial_ops)
9938         (record_full_beneath_to_xfer_partial)
9939         (record_full_beneath_to_insert_breakpoint_ops)
9940         (record_full_beneath_to_insert_breakpoint)
9941         (record_full_beneath_to_remove_breakpoint_ops)
9942         (record_full_beneath_to_remove_breakpoint)
9943         (record_full_beneath_to_stopped_by_watchpoint)
9944         (record_full_beneath_to_stopped_data_address)
9945         (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9946         (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9947         (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9948         (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9949         (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9950         (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9951         (tmp_to_stopped_data_address, tmp_to_async): Remove.
9952         (record_full_open_1, record_full_open): Update.  Use RECORD_IS_USED.
9953         (record_full_resume, record_full_wait_1)
9954         (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9955         (record_full_store_registers, record_full_xfer_partial)
9956         (record_full_insert_breakpoint, record_full_remove_breakpoint)
9957         (record_full_async, record_full_core_xfer_partial): Use target
9958         delegation.
9959         * target-delegates.c: Rebuild.
9960         * target.c (current_xfer_partial): Remove.
9961         (update_current_target): Do not INHERIT or de_fault
9962         to_insert_breakpoint, to_remove_breakpoint,
9963         to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9964         to_is_async_p, to_async.  Do not set to_xfer_partial field.
9965         (default_xfer_partial): Simplify.
9966         (current_xfer_partial): Remove.
9967         (target_wait, target_resume): Simplify.
9968         (find_default_can_async_p, find_default_is_async_p): Update.
9969         (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9970         to_xfer_partial, to_stopped_by_watchpoint,
9971         to_stopped_data_address.
9972         (target_store_registers): Simplify.
9973         (forward_target_remove_breakpoint)
9974         (forward_target_insert_breakpoint): Remove.
9975         (target_remove_breakpoint, target_insert_breakpoint)
9976         (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9977         * target.h (struct target_ops) <to_resume, to_wait,
9978         to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9979         to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9980         to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9981         markup.
9982         (forward_target_remove_breakpoint)
9983         (forward_target_insert_breakpoint): Remove.
9984         * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9985         directly.
9986         (record_btrace_insert_breakpoint): Delegate directly.
9987
9988 2014-02-19  Tom Tromey  <tromey@redhat.com>
9989
9990         PR build/7701:
9991         * target-delegates.c: New file.
9992         * target.c: Include target-delegates.c.
9993         (init_dummy_target): Call install_dummy_methods.
9994         (complete_target_initialization): Call install_delegators.
9995         * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9996         (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9997         * make-target-delegates: New file.
9998
9999 2014-02-19  Tom Tromey  <tromey@redhat.com>
10000
10001         * record.c (find_record_target): Use find_target_at.
10002         * target.c (find_target_at): New function.
10003         * target.h (find_target_at): Declare.
10004
10005 2014-02-19  Tom Tromey  <tromey@redhat.com>
10006
10007         * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10008         Add 'ops' argument.
10009         * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10010         'ops' argument.
10011         * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10012         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10013         'ops' argument.
10014         * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10015         argument.
10016         * linux-nat.c (save_sigtrap): Update.
10017         (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10018         (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10019         (linux_nat_close): Update.
10020         * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10021         argument.
10022         * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10023         argument.
10024         * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10025         * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10026         (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10027         (tmp_to_async): Add 'ops' argument.
10028         (record_full_stopped_by_watchpoint, record_full_async)
10029         (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10030         argument.
10031         * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10032         (m32r_stopped_by_watchpoint): Add 'ops' argument.
10033         * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10034         * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10035         (remote_is_async_p, remote_async): Add 'ops' argument.
10036         (remote_stopped_data_address): Update.
10037         * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10038         * target.c (update_current_target)
10039         (find_default_can_async_p, find_default_is_async_p): Update.
10040         (init_dummy_target): Update.
10041         (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10042         * target.h (struct target_ops) <to_stopped_by_watchpoint,
10043         to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10044         (target_can_async_p, target_is_async_p, target_async)
10045         (target_stopped_by_watchpoint): Update.
10046
10047 2014-02-19  Yao Qi  <yao@codesourcery.com>
10048
10049         PR gdb/16220
10050         * gdbarch.sh: Remove startup_gdbarch.
10051         * gdbarch.c: Regenerated.
10052         * gdbarch.h: Likewise.
10053
10054 2014-02-17  Kevin Buettner  <kevinb@redhat.com>
10055
10056         * rl78-tdep.c (rl78_g10_register_name): New function.
10057         (rl78_return_value): Add g10 support.
10058         (rl78_gdbarch_init): Register rl78_g10_register_name for the
10059         g10.
10060
10061 2014-02-17  Doug Evans  <xdje42@gmail.com>
10062
10063         * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10064         (SUBDIR_GUILE_SRCS): Ditto.
10065         (scm-gsmob.o): Ditto.
10066
10067 2014-02-17  Yao Qi  <yao@codesourcery.com>
10068
10069         * gnu-nat.c (ILL_RPC): Declare defined function.
10070
10071 2014-02-17  Yao Qi  <yao@codesourcery.com>
10072
10073         * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10074         mach_msg_type_number_t.
10075         (gnu_write_inferior): Likewise.
10076
10077 2014-02-17  Yao Qi  <yao@codesourcery.com>
10078
10079         * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10080         in format string.
10081         (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10082         (inf_validate_procs, inf_signal): Likewise.
10083         (S_exception_raise_request): Likewise.
10084         (do_mach_notify_dead_name): Likewise.
10085         (steal_exc_port): Likewise.
10086         (gnu_read_inferior): Change 'copy_count''s type to
10087         mach_msg_type_number_t.
10088         (gnu_write_inferior): Likewise.  Use 'lx' instead of 'x' in
10089         format string.
10090
10091 2014-02-16  Thomas Schwinge  <thomas@codesourcery.com>
10092
10093         * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10094         flag.  Adjust all users; in particular...
10095         (gnu_wait): ..., don't decrement its value in here...
10096         (gnu_create_inferior): ..., and instead set the flag in here,
10097         around the startup_inferior call, and call that one with
10098         START_INFERIOR_TRAPS_EXPECTED.
10099
10100         * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10101         (ILL_RPC): ... new macro.
10102         (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10103         (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10104         (do_mach_notify_send_once, S_proc_setmsgport_reply)
10105         (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10106         functions with ILL_RPC macro.
10107         (S_proc_pid2task_reply, S_proc_task2pid_reply)
10108         (S_proc_task2proc_reply, S_proc_proc2task_reply)
10109         (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10110         (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10111         (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10112         (S_proc_getlogin_reply, S_proc_getsid_reply)
10113         (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10114         (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10115         (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10116         (S_proc_getnports_reply, S_proc_is_important_reply)
10117         (S_proc_get_code_reply): New stub functions, generated with
10118         ILL_RPC macro.
10119
10120         * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10121         collected the type check structures.
10122
10123         * reply_mig_hack.awk: Don't expect to see the auto keyword.
10124
10125 2014-02-14  Doug Evans  <dje@google.com>
10126
10127         * target.c (target_write_partial): Fix result type.
10128
10129 2014-02-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
10130
10131         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10132         the proper offsets to access fpregset_t.
10133
10134 2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>
10135
10136         * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10137         (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10138         * h8300-tdep.c (setmachinelist): Remove global.
10139         * hppa-tdep.c (hppa_sigtramp): Remove global.
10140         * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10141         RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10142         * ravenscar-thread.c (update_target_observer): Remove global.
10143         * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10144
10145 2014-02-12  Tom Tromey  <tromey@redhat.com>
10146
10147         * common/rsp-low.c: Update comments.
10148         * common/rsp-low.h: Update comments.
10149
10150 2014-02-12  Tom Tromey  <tromey@redhat.com>
10151
10152         * common/rsp-low.c (convert_ascii_to_int): Remove.
10153         * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10154
10155 2014-02-12  Tom Tromey  <tromey@redhat.com>
10156
10157         * common/rsp-low.h (unhexify): Don't declare.
10158         * common/rsp-low.c (unhexify): Remove.
10159
10160 2014-02-12  Tom Tromey  <tromey@redhat.com>
10161
10162         * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10163         * common/rsp-low.c (convert_int_to_ascii): Remove.
10164
10165 2014-02-12  Tom Tromey  <tromey@redhat.com>
10166
10167         * common/rsp-low.h (hexify): Don't declare.
10168         * common/rsp-low.c (hexify): Remove.
10169
10170 2014-02-12  Tom Tromey  <tromey@redhat.com>
10171
10172         * common/rsp-low.c (hexify): Never take strlen of argument.
10173
10174 2014-02-12  Tom Tromey  <tromey@redhat.com>
10175
10176         * common/rsp-low.c (bin2hex): Never take strlen of argument.
10177         * remote.c (extended_remote_run, remote_rcmd)
10178         (remote_download_trace_state_variable, remote_save_trace_data)
10179         (remote_set_trace_notes): Update.
10180         * tracepoint.c (encode_source_string, tfile_write_status)
10181         (tfile_write_uploaded_tsv): Update.
10182
10183 2014-02-12  Tom Tromey  <tromey@redhat.com>
10184
10185         * tracepoint.c: Include rsp-low.h.
10186         * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10187         * remote.c: Include rsp-low.h.
10188         (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10189         (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10190         (remote_unescape_input): Move to common/rsp-low.c.
10191         * common/rsp-low.h: New file.
10192         * common/rsp-low.c: New file.
10193         * Makefile.in (SFILES): Add common/rsp-low.c.
10194         (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10195         (COMMON_OBS): Add rsp-low.o.
10196         (rsp-low.o): New target.
10197
10198 2014-02-12  Tom Tromey  <tromey@redhat.com>
10199
10200         * utils.h: Include print-utils.h.
10201         (host_address_to_string, plongest, pulongest, phex, phex_nz)
10202         (int_string, core_addr_to_string, core_addr_to_string_nz)
10203         (hex_string, hex_string_custom): Don't declare.
10204         * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10205         (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10206         (hex_string_custom, int_string, core_addr_to_string)
10207         (core_addr_to_string_nz, host_address_to_string): Move to
10208         common/print-utils.c.
10209         * common/print-utils.h: New file.
10210         * common/print-utils.c: New file
10211         * Makefile.in (SFILES): Add common/print-utils.c.
10212         (HFILES_NO_SRCDIR): Add common/print-utils.h.
10213         (COMMON_OBS): Add print-utils.o.
10214         (print-utils.o): New target.
10215
10216 2014-02-12  Tom Tromey  <tromey@redhat.com>
10217
10218         * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10219
10220 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
10221
10222         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10223
10224 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
10225
10226         * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10227         if a PT_IO ptrace request returns sucessfully but indicates that 0
10228         bytes were transferred.
10229
10230 2014-02-12  Pedro Alves  <palves@redhat.com>
10231             Kevin Buettner <kevinb@redhat.com>
10232
10233         * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10234         TYPE_INSTANCE_FLAG_CODE_SPACE.
10235
10236 2014-02-12  Pedro Alves  <palves@redhat.com>
10237
10238         * h8300-tdep.c (pseudo_from_raw_register)
10239         (raw_from_pseudo_register): New functions.
10240         (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10241         them.
10242
10243 2014-02-12  Pedro Alves  <palves@redhat.com>
10244
10245         * h8300-tdep.c (h8300_register_sim_regno): New function.
10246         (h8300_gdbarch_init): Install h8300_register_sim_regno as
10247         gdbarch_register_sim_regno hook.
10248
10249 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
10250
10251         * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10252
10253 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
10254
10255         * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10256
10257 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
10258
10259         * obsd-tdep.h (obsd_init_abi): New prototype.
10260         * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10261         (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10262         (obsd_init_abi): New functions.
10263         * i386obsd-tdep.c: Include "obsd-tdep.h".
10264         (i386obsd_init_abi): Call obsd_init_abi.
10265         * amd64obsd-tdep.c: Include "obsd-tdep.h".
10266         (amd64obsd_init_abi): Call obsd_init_abi.
10267         * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10268         obsd-tdep.c to gdb_target_obs.
10269
10270 2014-02-11  Jose E. Marchesi  <jose.marchesi@oracle.com>
10271
10272         * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10273         double float arguments to 16-byte in the argument slots.
10274
10275 2014-02-11  Doug Evans  <xdje42@gmail.com>
10276
10277         * configure.ac: Don't crash if pkg-config is not found and guile
10278         wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
10279         in guile checks.
10280         * configure: Regenerate.
10281
10282 2014-02-11  Yao Qi  <yao@codesourcery.com>
10283
10284         * aix-thread.c (aix_thread_xfer_partial): Update comments.
10285         * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10286         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10287         * gnu-nat.c (gnu_xfer_memory): Likewise.
10288         * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
10289         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10290         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10291         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10292
10293 2014-02-11  Yao Qi  <yao@codesourcery.com>
10294
10295         * target.h (enum target_xfer_error): Rename to ...
10296         (enum target_xfer_status): ... it.  New.  All users updated.
10297         (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10298         New.
10299         (TARGET_XFER_STATUS_ERROR_P): New macro.
10300         (target_xfer_error_to_string): Remove declaration.
10301         (target_xfer_status_to_string): Declare.
10302         (target_xfer_partial_ftype): Adjust it.
10303         (struct target_ops) <to_xfer_partial>: Return
10304         target_xfer_status.  Add argument xfered_len.  Update
10305         comments.
10306         * target.c (target_xfer_error_to_string): Rename to ...
10307         (target_xfer_status_to_string): ... it.  New.  All callers
10308         updated.
10309         (target_read_live_memory): Likewise.  Call target_xfer_partial
10310         instead of target_read.
10311         (memory_xfer_live_readonly_partial): Return
10312         target_xfer_status.  Add argument xfered_len.
10313         (raw_memory_xfer_partial): Likewise.
10314         (memory_xfer_partial_1): Likewise.
10315         (memory_xfer_partial): Likewise.
10316         (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
10317         properly.  Update debug message.
10318         (default_xfer_partial, current_xfer_partial): Likewise.
10319         (target_write_partial): Likewise.
10320         (target_read_partial): Likewise.  All callers updated.
10321         (read_whatever_is_readable): Likewise.
10322         (target_write_with_progress): Likewise.
10323         (target_read_alloc_1): Likewise.
10324
10325         * aix-thread.c (aix_thread_xfer_partial): Likewise.
10326         * auxv.c (procfs_xfer_auxv): Likewise.
10327         (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10328         * bfd-target.c (target_bfd_xfer_partial): Likewise.
10329         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10330         * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10331         * corefile.c (read_memory): Adjust.
10332         * corelow.c (core_xfer_partial): Likewise.
10333         * ctf.c (ctf_xfer_partial): Likewise.
10334         * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
10335         updated.
10336         (darwin_xfer_partial): Likewise.
10337         * exec.c (section_table_xfer_memory_partial): Likewise.  All
10338         callers updated.
10339         (exec_xfer_partial): Likewise.
10340         * exec.h (section_table_xfer_memory_partial): Update
10341         declaration.
10342         * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
10343         negative.
10344         (gnu_xfer_partial): Likewise.
10345         * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10346         (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10347         (ia64_hpux_xfer_solib_got): Likewise.
10348         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
10349         type of 'partial_len' to ULONGEST.
10350         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10351         * linux-nat.c (linux_xfer_siginfo ): Likewise.
10352         (linux_nat_xfer_partial): Likewise.
10353         (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10354         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10355         * monitor.c (monitor_xfer_memory): Likewise.
10356         (monitor_xfer_partial): Likewise.
10357         * procfs.c (procfs_xfer_partial): Likewise.
10358         * record-btrace.c (record_btrace_xfer_partial): Likewise.
10359         * record-full.c (record_full_xfer_partial): Likewise.
10360         (record_full_core_xfer_partial): Likewise.
10361         * remote-sim.c (gdbsim_xfer_memory): Likewise.
10362         (gdbsim_xfer_partial): Likewise.
10363         * remote.c (remote_write_bytes_aux): Likewise.  All callers
10364         updated.
10365         (remote_write_bytes, remote_read_bytes): Likewise.  All
10366         callers updated.
10367         (remote_flash_erase): Likewise.  All callers updated.
10368         (remote_write_qxfer): Likewise.  All callers updated.
10369         (remote_read_qxfer): Likewise.  All callers updated.
10370         (remote_xfer_partial): Likewise.
10371         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10372         (rs6000_xfer_shared_libraries): Likewise.
10373         * sol-thread.c (sol_thread_xfer_partial): Likewise.
10374         (sol_thread_xfer_partial): Likewise.
10375         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10376         (sparc_xfer_partial): Likewise.
10377         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
10378         updated.
10379         (spu_xfer_partial): Likewise.
10380         * spu-multiarch.c (spu_xfer_partial): Likewise.
10381         * tracepoint.c (tfile_xfer_partial): Likewise.
10382         * windows-nat.c (windows_xfer_memory): Likewise.
10383         (windows_xfer_shared_libraries): Likewise.
10384         (windows_xfer_partial): Likewise.
10385         * valprint.c: Replace 'target_xfer_error' with
10386         'target_xfer_status' in comments.
10387
10388 2014-02-11  Simon Marchi  <simon.marchi@ericsson.com>  (tiny patch)
10389
10390         Checked in by Joel Brobecker <brobecker@adacore.com>.
10391         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10392
10393 2014-02-11  Joel Brobecker  <brobecker@adacore.com>
10394
10395         * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10396         function parameters.
10397
10398 2014-02-10  Will Newton  <will.newton@linaro.org>
10399
10400         * elfread.c (elf_rel_plt_read): Look for a .got section if
10401         looking up .got.plt fails.
10402         (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10403         on address passed to elf_gnu_ifunc_record_cache.
10404         (elf_gnu_ifunc_resolve_addr): Likewise.
10405         (elf_gnu_ifunc_resolver_return_stop): Likewise.
10406
10407 2014-02-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
10408
10409         * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10410         (X_RETTURN): New macro.
10411         * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10412
10413         * sparc64-tdep.c (sparc64_init_abi): Hook
10414         sparc_in_function_epilogue_p.
10415
10416 2014-02-10  Gary Benson  <gbenson@redhat.com>
10417
10418         * symfile-debug.c (debug_qf_expand_symtabs_matching):
10419         Rename name_matcher to symbol_matcher.
10420
10421 2014-02-10  Gary Benson  <gbenson@redhat.com>
10422
10423         * symfile-debug.c (debug_qf_expand_symtabs_matching):
10424         Use expand_symtabs_file_matcher_ftype and
10425         expand_symtabs_symbol_matcher_ftype.
10426
10427 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
10428
10429         * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10430         (struct ada_symbol_cache): New.
10431         (ada_free_symbol_cache): Forward declare.
10432         (struct ada_pspace_data): New.
10433         (ada_pspace_data_handle): New static global.
10434         (get_ada_pspace_data, ada_pspace_data_cleanup)
10435         (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10436         (cache_space, cache): Delete, now folded inside struct
10437         ada_pspace_data.
10438         (ada_get_symbol_cache): New function.
10439         (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10440         implementation.
10441         (_initialize_ada_language): Remove initialization of cache_space.
10442         Move call to observer_attach_inferior_exit up, grouping it
10443         with the other observer registrations inside this function.
10444         Rename command to be more general.  Add call to
10445         register_program_space_data_with_cleanup.
10446
10447 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
10448
10449         * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10450         ada_new_objfile_observer.
10451         (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10452         (_initialize_tasks): Update uses of ada_new_objfile_observer
10453         and ada_tasks_normal_stop_observer.
10454
10455 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
10456
10457         * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10458         returned by the 'Length attribute to integer.
10459
10460 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
10461
10462         * ada-lang.c (_initialize_ada_language): Initialize
10463         cache_space obstack.
10464
10465 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
10466
10467         * ada-lang.c (HASH_SIZE): New macro.
10468         (struct cache_entry): New type.
10469         (cache_space, cache): New static globals.
10470         (ada_clear_symbol_cache, find_entry): New functions.
10471         (lookup_cached_symbol, cache_symbol): Implement.
10472         (ada_new_objfile_observer, ada_free_objfile_observer): New.
10473         (_initialize_ada_language): Attach ada_new_objfile_observer
10474         and ada_free_objfile_observer.
10475
10476 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
10477
10478         * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10479         (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10480         struct block * parameter.
10481         (ada_lookup_symbol_list_worker): Constify local variable "block".
10482         Remove cast which is no longer necessary.
10483
10484 2014-02-10  Doug Evans  <xdje42@gmail.com>
10485
10486         Add Guile as an extension language.
10487         * NEWS: Mention Guile scripting.
10488         * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10489         (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10490         (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10491         (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10492         (CLIBS): Add GUILE_LIBS.
10493         (install-guile): New rule.
10494         (guile.o): New rule.
10495         (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10496         (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10497         (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10498         (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10499         (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10500         (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10501         (scm-type.o, scm-utils.o, scm-value.o): New rules.
10502         * configure.ac: New option --with-guile.
10503         * configure: Regenerate.
10504         * config.in: Regenerate.
10505         * auto-load.c: Remove #include "python/python.h".  Add #include
10506         "gdb/section-scripts.h".
10507         (source_section_scripts): Handle Guile scripts.
10508         (_initialize_auto_load): Add name of Guile objfile script to
10509         scripts-directory help text.
10510         * breakpoint.c (condition_command): Tweak comment to include Scheme.
10511         * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10512         (struct breakpoint): New member scm_bp_object.
10513         * defs.h (enum command_control_type): New value guile_control.
10514         * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
10515         "extension.h".
10516         (show_user): Update comment.
10517         (_initialize_cli_cmds): Update help text for "show user".  Update help
10518         text for max-user-call-depth.
10519         * cli/cli-script.c: Remove #include "python/python.h".  Add #include
10520         "extension.h".
10521         (multi_line_command_p): Add guile_control.
10522         (print_command_lines): Handle guile_control.
10523         (execute_control_command, recurse_read_control_structure): Ditto.
10524         (process_next_line): Recognize "guile" commands.
10525         * disasm.c (gdb_disassemble_info): Make non-static.
10526         * disasm.h: #include "dis-asm.h".
10527         (struct gdbarch): Add forward decl.
10528         (gdb_disassemble_info): Declare.
10529         * extension.c: #include "guile/guile.h".
10530         (extension_languages): Add guile.
10531         (get_ext_lang_defn): Handle EXT_LANG_GDB.
10532         * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10533         * gdbtypes.c (get_unsigned_type_max): New function.
10534         (get_signed_type_minmax): New function.
10535         * gdbtypes.h (get_unsigned_type_max): Declare.
10536         (get_signed_type_minmax): Declare.
10537         * guile/README: New file.
10538         * guile/guile-internal.h: New file.
10539         * guile/guile.c: New file.
10540         * guile/guile.h: New file.
10541         * guile/scm-arch.c: New file.
10542         * guile/scm-auto-load.c: New file.
10543         * guile/scm-block.c: New file.
10544         * guile/scm-breakpoint.c: New file.
10545         * guile/scm-disasm.c: New file.
10546         * guile/scm-exception.c: New file.
10547         * guile/scm-frame.c: New file.
10548         * guile/scm-gsmob.c: New file.
10549         * guile/scm-iterator.c: New file.
10550         * guile/scm-lazy-string.c: New file.
10551         * guile/scm-math.c: New file.
10552         * guile/scm-objfile.c: New file.
10553         * guile/scm-ports.c: New file.
10554         * guile/scm-pretty-print.c: New file.
10555         * guile/scm-safe-call.c: New file.
10556         * guile/scm-string.c: New file.
10557         * guile/scm-symbol.c: New file.
10558         * guile/scm-symtab.c: New file.
10559         * guile/scm-type.c: New file.
10560         * guile/scm-utils.c: New file.
10561         * guile/scm-value.c: New file.
10562         * guile/lib/gdb.scm: New file.
10563         * guile/lib/gdb/boot.scm: New file.
10564         * guile/lib/gdb/experimental.scm: New file.
10565         * guile/lib/gdb/init.scm: New file.
10566         * guile/lib/gdb/iterator.scm: New file.
10567         * guile/lib/gdb/printing.scm: New file.
10568         * guile/lib/gdb/types.scm: New file.
10569         * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10570         (VPATH): Add $(GUILE_SRCDIR).
10571         (GUILE_DIR): New variable.
10572         (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10573         (all): Add stamp-guile dependency.
10574         (stamp-guile): New rule.
10575         (clean-guile, install-guile, uninstall-guile): New rules.
10576         (install-only): Add install-guile dependency.
10577         (uninstall): Add uninstall-guile dependency.
10578         (clean): Add clean-guile dependency.
10579
10580 2014-02-09  Doug Evans  <xdje42@gmail.com>
10581
10582         Revert this patch (which I approved, mea culpa).
10583
10584         2014-02-08  Mark Kettenis  <kettenis@gnu.org>
10585
10586         * Makefile.in (all-lib): Remove.
10587         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10588
10589 2014-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
10590
10591         Fix Python stack corruption.
10592         * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10593         gdb_py_longest.
10594
10595 2014-02-08  Mark Kettenis  <kettenis@gnu.org>
10596
10597         * Makefile.in (all-lib): Remove.
10598         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10599
10600 2014-02-07  Doug Evans  <dje@google.com>
10601
10602         * extension-priv.h (extension_language_script_ops): Add comment.
10603         (extension_language_ops): Add comment.
10604         (active_ext_lang_state): Fix typo in comment.
10605
10606 2014-02-07  Pedro Alves  <palves@redhat.com>
10607
10608         PR breakpoints/16292
10609         * infrun.c (handle_signal_stop) <signal arrives while stepping
10610         over a breakpoint>: Switch back to the stepping thread.
10611
10612 2014-02-07  Yao Qi  <yao@codesourcery.com>
10613
10614         * target.c (target_xfer_partial): Return zero if LEN is zero.
10615
10616 2014-02-07  Yao Qi  <yao@codesourcery.com>
10617
10618         * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10619         (ld_so_xfer_auxv): Likewise.
10620         * bfd-target.c (target_bfd_xfer_partial): Likewise.
10621         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10622         * corelow.c (core_xfer_partial): Likewise.
10623         * ctf.c (ctf_xfer_partial): Likewise.
10624         * darwin-nat.c (darwin_read_dyld_info): Likewise.
10625         (darwin_xfer_partial): Likewise.
10626         * exec.c (exec_xfer_partial): Likewise.
10627         * gnu-nat.c (gnu_xfer_partial): Likewise.
10628         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10629         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10630         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10631         * linux-nat.c (linux_xfer_siginfo): Likewise.
10632         (linux_proc_xfer_spu): Likewise.
10633         * procfs.c (procfs_xfer_partial): Likewise.
10634         * record-full.c (record_full_xfer_partial): Likewise.
10635         (record_full_core_xfer_partial): Likewise.
10636         * remote-sim.c (gdbsim_xfer_partial): Likewise.
10637         * remote.c (remote_write_qxfer): Likewise.
10638         (remote_write_qxfer, remote_read_qxfer): Likewise.
10639         (remote_xfer_partial): Likewise.
10640         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10641         (rs6000_xfer_shared_libraries): Likewise.
10642         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10643         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10644         (spu_xfer_partial): Likewise.
10645         * target.c (memory_xfer_partial_1): Likewise.
10646         * tracepoint.c (tfile_xfer_partial): Likewise.
10647         * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10648         (windows_xfer_partial): Likewise.
10649
10650 2014-02-07  Yao Qi  <yao@codesourcery.com>
10651
10652         * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
10653         comments.
10654         (core_xfer_shared_libraries_aix): Likewise.
10655         * gdbarch.c, gdbarch.h: Regenerated.
10656         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10657         ULONGEST.  Change 'len_avail' type to ULONGEST.
10658         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10659         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10660         declaration.
10661         (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10662
10663 2014-02-07  Yao Qi  <yao@codesourcery.com>
10664
10665         * corefile.c (memory_error): Get 'exception' from ERR and pass
10666         'exception' to throw_error.
10667
10668 2014-02-06  Doug Evans  <xdje42@gmail.com>
10669
10670         * configure.ac (libpython checking): Remove all but python.o from
10671         CONFIG_OBS.  Remove all but python.c from CONFIG_SRCS.
10672         * configure: Regenerate.
10673
10674         * Makefile.in (SFILES): Add extension.c.
10675         (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10676         (COMMON_OBS): Add extension.o.
10677         * extension.h: New file.
10678         * extension-priv.h: New file.
10679         * extension.c: New file.
10680
10681         * python/python-internal.h: #include "extension.h".
10682         (gdbpy_auto_load_enabled): Declare.
10683         (gdbpy_apply_val_pretty_printer): Declare.
10684         (gdbpy_apply_frame_filter): Declare.
10685         (gdbpy_preserve_values): Declare.
10686         (gdbpy_breakpoint_cond_says_stop): Declare.
10687         (gdbpy_breakpoint_has_cond): Declare.
10688         (void source_python_script_for_objfile): Delete.
10689         * python/python.c: #include "extension-priv.h".
10690         Delete inclusion of "observer.h".
10691         (extension_language_python): Moved here and renamed from
10692         script_language_python in py-auto-load.c.
10693         Redefined to be of type extension_language_defn.
10694         (python_extension_script_ops): New global.
10695         (python_extension_ops): New global.
10696         (struct python_env): New member previous_active.
10697         (restore_python_env): Call restore_active_ext_lang.
10698         (ensure_python_env): Call set_active_ext_lang.
10699         (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10700         New arg extlang.
10701         (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10702         New arg extlang.
10703         (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10704         New arg extlang.
10705         (gdbpy_eval_from_control_command): Renamed from
10706         eval_python_from_control_command, made static.  New arg extlang.
10707         (gdbpy_source_script) Renamed from source_python_script, made static.
10708         New arg extlang.
10709         (gdbpy_before_prompt_hook): Renamed from before_prompt_hook.  Change
10710         result to int.  New arg extlang.
10711         (gdbpy_source_objfile_script): Renamed from
10712         source_python_script_for_objfile, made static.  New arg extlang.
10713         (gdbpy_start_type_printers): Renamed from start_type_printers, made
10714         static.  New args extlang, extlang_printers.  Change result type to
10715         "void".
10716         (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10717         static.  New arg extlang.  Rename arg printers to extlang_printers
10718         and change type to ext_lang_type_printers *.
10719         (gdbpy_free_type_printers): Renamed from free_type_printers, made
10720         static.  Replace argument arg with extlang, extlang_printers.
10721         (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10722         (!HAVE_PYTHON, source_python_script): Delete.
10723         (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10724         (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10725         (!HAVE_PYTHON, start_type_printers): Delete.
10726         (!HAVE_PYTHON, apply_type_printers): Delete.
10727         (!HAVE_PYTHON, free_type_printers): Delete.
10728         (_initialize_python): Delete call to observer_attach_before_prompt.
10729         (finalize_python): Set/restore active extension language.
10730         (gdbpy_finish_initialization) Renamed from
10731         finish_python_initialization, made static.  New arg extlang.
10732         (gdbpy_initialized): New function.
10733         * python/python.h: #include "extension.h".  Delete #include
10734         "value.h", "mi/mi-cmds.h".
10735         (extension_language_python): Declare.
10736         (GDBPY_AUTO_FILE_NAME): Delete.
10737         (enum py_bt_status): Moved to extension.h and renamed to
10738         ext_lang_bt_status.
10739         (enum frame_filter_flags): Moved to extension.h.
10740         (enum py_frame_args): Moved to extension.h and renamed to
10741         ext_lang_frame_args.
10742         (finish_python_initialization): Delete.
10743         (eval_python_from_control_command): Delete.
10744         (source_python_script): Delete.
10745         (apply_val_pretty_printer): Delete.
10746         (apply_frame_filter): Delete.
10747         (preserve_python_values): Delete.
10748         (gdbpy_script_language_defn): Delete.
10749         (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10750         (start_type_printers, apply_type_printers, free_type_printers): Delete.
10751
10752         * auto-load.c: #include "extension.h".
10753         (GDB_AUTO_FILE_NAME): Delete.
10754         (auto_load_gdb_scripts_enabled): Make public.  New arg extlang.
10755         (script_language_gdb): Delete, moved to extension.c and renamed to
10756         extension_language_gdb.
10757         (source_gdb_script_for_objfile): Delete.
10758         (auto_load_pspace_info): New member unsupported_script_warning_printed.
10759         (loaded_script): Change type of language member to
10760         struct extension_language_defn *.
10761         (init_loaded_scripts_info): Initialize
10762         unsupported_script_warning_printed.
10763         (maybe_add_script): Make static.  Change type of language arg to
10764         struct extension_language_defn *.
10765         (clear_section_scripts): Reset unsupported_script_warning_printed.
10766         (auto_load_objfile_script_1): Rewrite to use extension language API.
10767         (auto_load_objfile_script): Make public.  Remove support-compiled-in
10768         and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10769         (source_section_scripts): Rewrite to use extension language API.
10770         (load_auto_scripts_for_objfile): Rewrite to use
10771         auto_load_scripts_for_objfile.
10772         (collect_matching_scripts_data): Change type of language member to
10773         struct extension_language_defn *.
10774         (auto_load_info_scripts): Change type of language arg to
10775         struct extension_language_defn *.
10776         (unsupported_script_warning_print): New function.
10777         (script_not_found_warning_print): Make static.
10778         (_initialize_auto_load): Rewrite construction of scripts-directory
10779         help.
10780         * auto-load.h (struct objfile): Add forward decl.
10781         (struct script_language): Delete.
10782         (struct auto_load_pspace_info): Add forward decl.
10783         (struct extension_language_defn): Add forward decl.
10784         (maybe_add_script): Delete.
10785         (auto_load_objfile_script): Declare.
10786         (script_not_found_warning_print): Delete.
10787         (auto_load_info_scripts): Update prototype.
10788         (auto_load_gdb_scripts_enabled): Declare.
10789         * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10790         auto_load_python_scripts_enabled and made public.
10791         (script_language_python): Delete, moved to python.c.
10792         (gdbpy_script_language_defn): Delete.
10793         (info_auto_load_python_scripts): Update to use
10794         extension_language_python.
10795
10796         * breakpoint.c (condition_command): Replace call to
10797         gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10798         (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10799         with call to breakpoint_ext_lang_cond_says_stop.
10800         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10801         from gdbpy_should_stop.  Change result type to enum scr_bp_stop.
10802         New arg slang.  Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10803         (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10804         New arg slang.
10805         (local_setattro): Print name of extension language with existing
10806         stop condition.
10807
10808         * valprint.c (val_print, value_print): Update to call
10809         apply_ext_lang_val_pretty_printer.
10810         * cp-valprint.c (cp_print_value): Update call to
10811         apply_ext_lang_val_pretty_printer.
10812         * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10813         (gdbpy_apply_val_pretty_printer): Renamed from
10814         apply_val_pretty_printer.  New arg extlang.
10815         (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10816
10817         * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10818         extension language API.
10819         * cli/cli-script.c (execute_control_command): Update to call
10820         eval_ext_lang_from_control_command.
10821
10822         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10823         enum ext_lang_bt_status values.  Update call to
10824         apply_ext_lang_frame_filter.
10825         (mi_cmd_stack_list_locals): Ditto.
10826         (mi_cmd_stack_list_args): Ditto.
10827         (mi_cmd_stack_list_variables): Ditto.
10828         * mi/mi-main.c: Delete #include "python/python-internal.h".
10829         Add #include "extension.h".
10830         (mi_cmd_list_features): Replace reference to python internal variable
10831         gdb_python_initialized with call to ext_lang_initialized_p.
10832
10833         * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10834         Update to use enum ext_lang_frame_args.  Update to call
10835         apply_ext_lang_frame_filter.
10836         * python/py-framefilter.c (extract_sym): Update to use enum
10837         ext_lang_bt_status.
10838         (extract_value, py_print_type, py_print_value): Ditto.
10839         (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10840         (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10841         (py_print_frame): Ditto.
10842         (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10843         New arg extlang.  Update to use enum ext_lang_bt_status.
10844
10845         * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10846         finish_python_initialization.  Replace with call to
10847         finish_ext_lang_initialization.
10848
10849         * typeprint.c (do_free_global_table): Update to call
10850         free_ext_lang_type_printers.
10851         (create_global_typedef_table): Update to call
10852         start_ext_lang_type_printers.
10853         (find_global_typedef): Update to call apply_ext_lang_type_printers.
10854         * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10855         (type_print_options): Change type of global_printers from "void *"
10856         to "struct ext_lang_type_printers *".
10857
10858         * value.c (preserve_values): Update to call preserve_ext_lang_values.
10859         * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10860         (gdbpy_preserve_values): Renamed from preserve_python_values.
10861         New arg extlang.
10862         (!HAVE_PYTHON, preserve_python_values): Delete.
10863
10864         * utils.c (quit_flag): Delete, moved to extension.c.
10865         (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10866         extension.c.
10867
10868         * eval.c: Delete #include "python/python.h".
10869         * main.c: Delete #include "python/python.h".
10870
10871         * defs.h: Update comment.
10872
10873 2014-02-06  Joel Brobecker  <brobecker@adacore.com>
10874
10875         GDB 7.7 released.
10876
10877 2014-02-05  Mark Kettenis  <kettenis@gnu.org>
10878
10879         * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10880         defined.
10881
10882 2014-02-05  Yao Qi  <yao@codesourcery.com>
10883
10884         * remote.c (remote_pass_signals): Remove local 'buf' and use
10885         rs->buf.
10886         (remote_program_signals): Likewise.
10887
10888 2014-02-05  Yao Qi  <yao@codesourcery.com>
10889
10890         * ctf.c: Include "inferior.h" and "gdbthread.h".
10891         (CTF_PID): A new macro.
10892         (ctf_open): Call inferior_appeared and add_thread_silent.
10893         (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10894         (ctf_thread_alive): New function.
10895         (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10896
10897 2014-02-05  Yao Qi  <yao@codesourcery.com>
10898
10899         Revert this patch:
10900
10901         2013-05-24  Yao Qi  <yao@codesourcery.com>
10902
10903         * tracepoint.c (TFILE_PID): Remove.
10904         (tfile_open): Don't add thread and inferior.
10905         (tfile_close): Don't set 'inferior_ptid'.  Don't call
10906         exit_inferior_silent.
10907         (tfile_thread_alive): Remove.
10908         (init_tfile_ops): Don't set field 'to_thread_alive' of
10909         tfile_ops.
10910
10911 2014-02-04  Christian Eggers  <ceggers@gmx.de>  (tiny change)
10912
10913         * remote.c (remote_start_remote): Call remote_check_symbols even
10914         if only symbol-file (not file) has been given.
10915
10916 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10917
10918         * gdbarch.sh (skip_entrypoint): New callback.
10919         * gdbarch.c, gdbarch.h: Regenerate.
10920         * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10921         * infrun.c (fill_in_stop_func): Likewise.
10922         * ppc-linux-tdep.c: Include "elf/ppc64.h".
10923         (ppc_elfv2_elf_make_msymbol_special): New function.
10924         (ppc_elfv2_skip_entrypoint): Likewise.
10925         (ppc_linux_init_abi): Install them for ELFv2.
10926
10927 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10928
10929         * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10930         (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10931         (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10932         (ppc64_sysv_abi_return_value): Likewise.  Also, handle small
10933         structures returned in GPRs.
10934
10935 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10936
10937         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10938         offset to the stack parameter list for the ELFv2 ABI.
10939
10940 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10941
10942         * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10943         set_gdbarch_convert_from_func_ptr_addr and
10944         set_gdbarch_elf_make_msymbol_special for ELFv1.
10945         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10946         function descriptors on ELFv1.
10947         (ppc64_sysv_abi_push_dummy_call): Likewise.  On ELFv2,
10948         set up r12 at function entry.
10949
10950 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10951
10952         * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10953         (struct gdbarch_tdep): New member elf_abi.
10954
10955         * rs6000-tdep.c: Include "elf/ppc64.h".
10956         (rs6000_gdbarch_init): Detect ELF ABI version.
10957
10958 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10959
10960         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10961         within a register pair holding a DFP 128-bit value on little-endian.
10962         (ppc64_sysv_abi_return_value_base): Likewise.
10963         * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10964         (dfp_pseudo_register_write): Likewise.
10965
10966 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10967
10968         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10969         offset on little-endian when passing _Decimal32.
10970         (ppc64_sysv_abi_return_value_base): Likewise for return values.
10971
10972 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10973
10974         * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10975         of the overlapped FP register within the VSX register on little-
10976         endian platforms.
10977         (efpr_pseudo_register_write): Likewise.
10978
10979 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10980
10981         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10982         offset on little-endian when passing small structures.
10983
10984 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10985
10986         * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10987         (struct ppc64_sysv_argpos): New data structure.
10988         (ppc64_sysv_abi_push_float): Remove.
10989         (ppc64_sysv_abi_push_val): New function.
10990         (ppc64_sysv_abi_push_integer): Likewise.
10991         (ppc64_sysv_abi_push_freg): Likewise.
10992         (ppc64_sysv_abi_push_vreg): Likewise.
10993         (ppc64_sysv_abi_push_param): Likewise.
10994         (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10995         (ppc64_sysv_abi_return_value_base): New function.
10996         (ppc64_sysv_abi_return_value): Refactor to use it.
10997
10998 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10999
11000         * NEWS: Document new target powerpc64le-*-linux*.
11001
11002 2014-02-04  Mark Kettenis  <kettenis@gnu.org>
11003
11004         * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11005         (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11006         core dumps.
11007         (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11008         register set used in ELF core dumps.  Add floating-point register set.
11009
11010 2014-02-03  Kevin Buettner  <kevinb@redhat.com>
11011
11012         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11013         dwarf2_to_gdb[] table using symbolic constants.  Adjust
11014         penultimate entry from number representing the PC register
11015         to symbolic constant representing the MDR register.  Add
11016         constant for the PC register to the end of the table.
11017
11018 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
11019
11020         * bsd-kvm.c: Include <sys/param.h>
11021
11022 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
11023
11024         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11025
11026 2014-01-31  Joel Brobecker  <brobecker@adacore.com>
11027
11028         * ada-lang.h (clear_ada_sym_cache): Delete.
11029
11030 2014-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
11031
11032         * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11033
11034 2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>
11035
11036         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11037           the sigreturn register save area only if the syscall is
11038           sigreturn.
11039
11040 2014-01-29  Joel Brobecker  <brobecker@adacore.com>
11041
11042         * valops.c (value_slice): Minor reformatting.
11043
11044 2014-01-28  Ulrich Weigand  <uweigand@de.ibm.com>
11045
11046         * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11047
11048 2014-01-28  Joel Brobecker  <brobecker@adacore.com>
11049
11050         * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11051         New static globals.
11052         (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11053         (ada_ignore_descriptive_types_p): New static global.
11054         (find_parallel_type_by_descriptive_type): Return immediately
11055         if ada_ignore_descriptive_types_p is set.
11056         (_initialize_ada_language): Register new commands "maintenance
11057         set ada", "maintenance show ada", "maintenance set ada
11058         ignore-descriptive-types" and "maintenance show ada
11059         ignore-descriptive-types".
11060         * NEWS: Add entry for new "maint ada set/show
11061         ignore-descriptive-types" commands.
11062
11063 2014-01-27  Markus Metzger  <markus.t.metzger@intel.com>
11064
11065         * record-btrace.c (record_btrace_close): Call btrace_teardown
11066         for all threads.
11067
11068 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
11069
11070         * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11071         "ui-out.h".
11072
11073 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
11074
11075         * ada-typeprint (type_is_full_subrange_of_target_type):
11076         New function.
11077         (print_range): Add parameter bounds_prefered_p.  If not set,
11078         try printing range types using the name of their base type.
11079         (print_range_type): Add parameter bounds_prefered_p.
11080         Use it in call to print_range.
11081         (print_array_type, ada_print_type): Update calls to print_range
11082         and print_range_type.
11083
11084 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
11085
11086         * ada-typeprint.c (print_array_type, print_choices, print_range)
11087         (print_range_bound, print_dynamic_range_bound, print_range_type):
11088         Remove declaration.
11089
11090 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
11091
11092         * ada-typeprint.c (print_range): Add missing empty line
11093         after local declaration.
11094
11095 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
11096
11097         * ada-valprint.c (print_optional_low_bound): Get index_type's
11098         target type for as long as it is a TYPE_CODE_RANGE.
11099
11100 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
11101
11102         * procfs.c (procfs_make_note_section): Remove assertion and
11103         associated comment.
11104
11105 2014-01-24  Yao Qi  <yao@codesourcery.com>
11106
11107         * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11108         * corelow.c (get_core_siginfo): Likewise.
11109
11110 2014-01-24  Yao Qi  <yao@codesourcery.com>
11111
11112         * remote.c (remote_write_bytes_aux): Change type of 'len' to
11113         ULONGEST.  Don't check 'len' is negative.
11114         (remote_write_bytes):  Change type of 'len' to ULONGEST.
11115
11116 2014-01-23  Tom Tromey  <tromey@redhat.com>
11117
11118         PR python/16485:
11119         * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11120         Handle exception from frame.block.
11121         (FrameVars.fetch_frame_locals): Likewise.
11122
11123 2014-01-23  Tom Tromey  <tromey@redhat.com>
11124
11125         PR python/16487:
11126         * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11127         on a NULL pointer.  Move "goto error" to correct place.
11128
11129 2014-01-23  Tom Tromey  <tromey@redhat.com>
11130
11131         PR python/16491:
11132         * python/py-framefilter.c (apply_frame_filter): Call
11133         ensure_python_env after computing gdbarch.
11134
11135 2014-01-23  Yao Qi  <yao@codesourcery.com>
11136
11137         * target.c (raw_memory_xfer_partial): Change argument type
11138         from void * to gdb_byte *.
11139         (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11140
11141 2014-01-22  Doug Evans  <dje@google.com>
11142
11143         New gdbserver option --debug-format=timestamp.
11144         * NEWS: Mention it.
11145
11146 2014-01-22  Andreas Arnez  <arnez@vnet.linux.ibm.com>
11147
11148         * syscalls/s390x-linux.xml: New file.
11149         * syscalls/s390-linux.xml: New file.
11150         * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11151         (XML_SYSCALL_FILENAME_S390X): Likewise.
11152         (op_svc): New enum value for SVC opcode.
11153         (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11154         (s390_linux_get_syscall_number): New function.
11155         (s390_gdbarch_init): Register '*get_syscall_number' and the
11156         syscall xml file name.
11157         * data-directory/Makefile.in (SYSCALLS_FILES): Add
11158         "s390-linux.xml" and "s390x-linux.xml".
11159         * NEWS: Announce new feature.
11160
11161 2014-01-22  Baruch Siach  <baruch@tkos.co.il>
11162
11163         * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11164
11165 2014-01-22  Pedro Alves  <palves@redhat.com>
11166
11167         * xtensa-config.c: Include defs.h.
11168
11169 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
11170
11171         * common/common-utils.h: Add "ARI:" comment beside __func__
11172         reference.
11173
11174 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
11175
11176         * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11177         documentation a bit.
11178
11179 2014-01-21  Roland McGrath  <mcgrathr@google.com>
11180
11181         * configure.ac: Call AM_PROG_INSTALL_STRIP.
11182         * configure: Regenerate.
11183         * aclocal.m4: Regenerate.
11184         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11185         New substituted variables.
11186         (install-strip): New target.
11187         (INSTALL_SCRIPT): New substituted variable.
11188         (FLAGS_TO_PASS): Add it.
11189         (install-only): Use $(INSTALL_SCRIPT) rather than
11190         $(INSTALL_PROGRAM) for gcore.
11191
11192 2014-01-20  Tom Tromey  <tromey@redhat.com>
11193
11194         * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11195         together.
11196
11197 2014-01-20  Tom Tromey  <tromey@redhat.com>
11198
11199         * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11200         (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11201         (deprecated_cmd_warning, complete_on_cmdlist): Update.
11202         * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11203         (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11204         (struct cmd_list_element) <flags>: Remove.
11205         <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11206         doc_allocated>: New fields.
11207         <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11208         bitfields.
11209         * maint.c (maintenance_do_deprecate): Update.
11210         * top.c (execute_command): Update.
11211
11212 2014-01-20  Baruch Siach  <baruch@tkos.co.il>
11213
11214         * xtensa-linux-nat.c: Include asm/ptrace.h.
11215
11216 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
11217
11218         * Makefile.in (SFILES): Add d-support.c.
11219         (COMMON_OBS): Add d-support.o.
11220         * d-lang.h (d_parse_symbol): Add comment, now defined in
11221         d-support.c.
11222         * d-lang.c (parse_call_convention)
11223         (parse_attributes, parse_function_types)
11224         (parse_function_args, parse_type, parse_identifier)
11225         (call_convention_p, d_parse_symbol): Move functions to ...
11226         * d-support.c: ... New file.
11227
11228 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
11229
11230         * d-lang.h (d_parse_symbol): Add declaration.
11231         * d-lang.c (extract_identifiers)
11232         (extract_type_info): Remove functions.
11233         (parse_call_convention, parse_attributes)
11234         (parse_function_types, parse_function_args)
11235         (parse_type, parse_identifier, call_convention_p)
11236         (d_parse_symbol): New functions.
11237         (d_demangle): Use d_parse_symbol to demangle D symbols.
11238
11239 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
11240
11241         * d-lang.h (struct builtin_d_type): New data type.
11242         (builtin_d_type): Add declaration.
11243         * d-lang.c (d_language_arch_info, build_d_types)
11244         (builtin_d_type): New functions.
11245         (enum d_primitive_types): New data type.
11246         (d_language_defn): Change c_language_arch_info to
11247         d_language_arch_info.
11248         (d_type_data): New static variable.
11249         (_initialize_d_language): Initialize d_type_data.
11250
11251 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
11252
11253         * d-lang.h (d_main_name): Add declaration.
11254         * d-lang.c (d_main_name): New function.
11255         * symtab.c (find_main_name): Add call to d_main_name.
11256
11257 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
11258
11259         * d-lang.c (d_language_defn): Change macro_expansion_c to
11260         macro_expansion_no.
11261
11262 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
11263
11264         * MAINTAINERS: Add myself as a write-after-approval maintainer.
11265
11266 2014-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
11267
11268         * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11269         gdb_exception" declaration.
11270         * remote.c (getpkt_or_notif_sane): Likewise.
11271
11272 2014-01-17  Doug Evans  <dje@google.com>
11273
11274         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11275         function, contents of dirnames_to_char_ptr_vec_append moved here.
11276         (delim_string_to_char_ptr_vec): New function.
11277         (dirnames_to_char_ptr_vec_append): Rewrite.
11278         * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11279
11280 2014-01-17  Doug Evans  <dje@google.com>
11281
11282         * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11283         and moved here ...
11284         * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11285         #include "common-utils.h".
11286         (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11287         * common/vec.h (VEC_ASSERT_PASS): Update.
11288         * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11289         (MACH_CHECK_ERROR): Update.
11290
11291 2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>
11292
11293         * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11294         comments.
11295         * gdbarch.h: Regenerate.
11296
11297 2014-01-16  Tom Tromey  <tromey@redhat.com>
11298
11299         * value.c (struct value) <regnum>: Move earlier.
11300
11301 2014-01-16  Tom Tromey  <tromey@redhat.com>
11302
11303         * remote.c (extended_remote_create_inferior): Rename from
11304         extended_remote_create_inferior_1.  Add "ops" argument.  Remove
11305         old implementation.
11306
11307 2014-01-16  Pedro Alves  <palves@redhat.com>
11308
11309         * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11310         NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11311         the backchain.
11312
11313 2014-01-16  Doug Evans  <dje@google.com>
11314
11315         * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11316
11317 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11318
11319         * btrace.h (btrace_thread_flag): New.
11320         (struct btrace_thread_info) <flags>: New.
11321         * record-btrace.c (record_btrace_resume_thread)
11322         (record_btrace_find_thread_to_move, btrace_step_no_history)
11323         (btrace_step_stopped, record_btrace_start_replaying)
11324         (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11325         (record_btrace_find_resume_thread): New.
11326         (record_btrace_resume, record_btrace_wait): Extend.
11327         (record_btrace_can_execute_reverse): New.
11328         (record_btrace_open): Fail in non-stop mode.
11329         (record_btrace_set_replay): Split into this, ...
11330         (record_btrace_stop_replaying): ... this, ...
11331         (record_btrace_clear_histories): ... and this.
11332         (init_record_btrace_ops): Init to_can_execute_reverse.
11333         * NEWS: Announce it.
11334
11335 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11336
11337         * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11338         (forward_target_decr_pc_after_break)
11339         (target_decr_pc_after_break): New.
11340         * target.c (forward_target_decr_pc_after_break)
11341         (target_decr_pc_after_break): New.
11342         * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11343         instead of gdbarch_decr_pc_after_break.
11344         * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11345         instead of gdbarch_decr_pc_after_break.
11346         * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11347         instead of gdbarch_decr_pc_after_break.
11348         * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11349         instead of gdbarch_decr_pc_after_break.
11350         * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11351         instead of gdbarch_decr_pc_after_break.
11352         * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11353         instead of gdbarch_decr_pc_after_break.
11354
11355 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11356
11357         * btrace.c: Include regcache.h.
11358         (btrace_add_pc): New.
11359         (btrace_enable): Call btrace_add_pc.
11360         (btrace_is_empty): New.
11361         * btrace.h (btrace_is_empty): New.
11362         * record-btrace.c (require_btrace, record_btrace_info): Call
11363         btrace_is_empty.
11364
11365 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11366
11367         * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11368         Support delta reads.
11369         (linux_disable_btrace): Change return type.
11370         * common/linux-btrace.h (linux_read_btrace): Change parameters
11371         and return type to allow error reporting.  Update users.
11372         (linux_disable_btrace): Change return type.  Update users.
11373         * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11374         New.
11375         (btrace_error): New.
11376         (btrace_block) <begin>: Comment on BEGIN == 0.
11377         * btrace.c (btrace_compute_ftrace): Start from the end of
11378         the current trace.
11379         (btrace_stitch_trace, btrace_clear_history): New.
11380         (btrace_fetch): Read delta trace, return if replaying.
11381         (btrace_clear): Move clear history code to btrace_clear_history.
11382         (parse_xml_btrace): Throw an error if parsing failed.
11383         * target.h (struct target_ops) <to_read_btrace>: Change parameters
11384         and return type to allow error reporting.
11385         (target_read_btrace): Change parameters and return type to allow
11386         error reporting.
11387         * target.c (target_read_btrace): Update.
11388         * remote.c (remote_read_btrace): Support delta reads.  Pass
11389         errors on.
11390         * NEWS: Announce it.
11391
11392 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11393
11394         * record.h (record_btrace_frame_unwind)
11395         (record_btrace_tailcall_frame_unwind): New declarations.
11396         * dwarf2-frame: Include record.h
11397         (dwarf2_frame_cfa): Throw an error for btrace frames.
11398         * record-btrace.c: Include hashtab.h.
11399         (btrace_get_bfun_name): New.
11400         (btrace_call_history): Call btrace_get_bfun_name.
11401         (struct btrace_frame_cache): New.
11402         (bfcache): New.
11403         (bfcache_hash, bfcache_eq, bfcache_new): New.
11404         (btrace_get_frame_function): New.
11405         (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11406         (record_btrace_frame_this_id): Compute own id.
11407         (record_btrace_frame_prev_register): Provide PC, throw_error
11408         for all other registers.
11409         (record_btrace_frame_sniffer): Detect btrace frames.
11410         (record_btrace_tailcall_frame_sniffer): New.
11411         (record_btrace_frame_dealloc_cache): New.
11412         (record_btrace_frame_unwind): Add new functions.
11413         (record_btrace_tailcall_frame_unwind): New.
11414         (_initialize_record_btrace): Allocate cache.
11415         * btrace.c (btrace_clear): Call reinit_frame_cache.
11416         * NEWS: Announce it.
11417
11418 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11419
11420         * record-btrace.c (record_btrace_set_replay)
11421         (record_btrace_goto_begin, record_btrace_goto_end)
11422         (record_btrace_goto): New.
11423         (init_record_btrace_ops): Initialize them.
11424         * NEWS: Announce it.
11425
11426 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11427
11428         * record-btrace.c (record_btrace_find_new_threads)
11429         (record_btrace_thread_alive): New.
11430         (init_record_btrace_ops): Initialize to_find_new_threads and
11431         to_thread_alive.
11432
11433 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11434
11435         * record-btrace.c (record_btrace_resume): New.
11436         (record_btrace_wait): New.
11437         (init_record_btrace_ops): Initialize to_wait and to_resume.
11438
11439 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11440
11441         * record-btrace.c (record_btrace_xfer_partial)
11442         (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11443         (record_btrace_allow_memory_access): New.
11444         (init_record_btrace_ops): Initialize new methods.
11445         * target.c (raw_memory_xfer_partial): Bail out if target reports
11446         that this memory is not available.
11447
11448 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11449
11450         * target.h (target_ops) <to_insert_breakpoint>
11451         <to_remove_breakpoint>: Add target_ops parameter.
11452         (forward_target_insert_breakpoint): New.
11453         (forward_target_remove_breakpoint): New.
11454         (memory_remove_breakpoint, memory_insert_breakpoint):
11455         Add target_ops parameter.
11456         * target.c (target_insert_breakpoint): Split into this and ...
11457         (forward_target_insert_breakpoint): ... this.
11458         (target_remove_breakpoint): Split into this and ...
11459         (forward_target_remove_breakpoint): ... this.
11460         (debug_to_insert_breakpoint): Add target_ops parameter.
11461         Call forward_target_insert_breakpoint.
11462         (debug_to_remove_breakpoint): Add target_ops parameter.
11463         Call forward_target_remove_breakpoint.
11464         (update_current_target): Do not inherit or default to_insert_breakpoint
11465         and to_remove_breakpoint.
11466         * corelow.c (ignore): Add target_ops parameter.
11467         * exec.c (ignore): Add target_ops parameter.
11468         * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11469         Add target_ops parameter.
11470         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11471         Add target_ops parameter.
11472         * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11473         Add target_ops parameter.
11474         * record-full.c (record_full_beneath_to_insert_breakpoint)
11475         (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11476         (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11477         (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11478         (record_full_core_remove_breakpoint): Add target_ops parameter.
11479         Update users.
11480         (record_full_beneath_to_insert_breakpoint_ops)
11481         (record_full_beneath_to_remove_breakpoint_ops)
11482         (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11483         (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11484         tmp_to_remove_breakpoint_ops,
11485         record_full_beneath_to_insert_breakpoint_ops, and
11486         record_full_beneath_to_remove_breakpoint_ops.
11487         * remote-m32r-sdi.c (m32r_insert_breakpoint)
11488         (m32r_remove_breakpoint): Add target_ops parameter.
11489         * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11490         Add target_ops parameter.
11491         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11492         Add target_ops parameter.
11493
11494 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
11495             Markus Metzger  <markus.t.metzger@intel.com>
11496
11497         * record-btrace.c: Include frame-unwind.h.
11498         (record_btrace_frame_unwind_stop_reason)
11499         (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11500         (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11501         New.
11502         (init_record_btrace_ops): Install it.
11503
11504 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
11505
11506         * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11507         get_prev_frame_1.
11508
11509 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
11510
11511         * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11512         earlier.
11513
11514 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
11515
11516         * frame-unwind.c: Include target.h.
11517         (frame_unwind_try_unwinder): New function with code from ...
11518         (frame_unwind_find_by_frame): ... here.  New variable
11519         unwinder_from_target, call also target_get_unwinder)
11520         (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11521         * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11522         * target.h (struct target_ops): New fields to_get_unwinder and
11523         to_get_tailcall_unwinder.
11524         (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11525
11526 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11527
11528         * record-btrace.c (record_btrace_fetch_registers)
11529         (record_btrace_store_registers)
11530         (record_btrace_to_prepare_to_store): New.
11531         (init_record_btrace_ops): Add the above.
11532
11533 2014-01-16  Tom Tromey  <tromey@redhat.com>
11534
11535         * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11536         * target.h (struct target_ops) <to_prepare_to_store>: Add
11537         argument.
11538         (target_prepare_to_store): Add argument.
11539         * target.c (debug_to_prepare_to_store): Add argument.
11540         (update_current_target): Update.
11541         * remote.c (remote_prepare_to_store): Add 'self' argument.
11542         * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11543         * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11544         * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11545         * record-full.c (record_full_core_prepare_to_store): Add 'self'
11546         argument.
11547         * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11548         * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11549         * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11550         * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11551         * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11552
11553 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11554
11555         * btrace.h (replay) <replay>: New.
11556         (btrace_is_replaying): New.
11557         * btrace.c (btrace_clear): Free replay iterator.
11558         (btrace_is_replaying): New.
11559         * record-btrace.c (record_btrace_is_replaying): New.
11560         (record_btrace_info): Print insn number if replaying.
11561         (record_btrace_insn_history): Start at replay position.
11562         (record_btrace_call_history): Start at replay position.
11563         (init_record_btrace_ops): Init to_record_is_replaying.
11564
11565 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11566
11567         * record-btrace.c (record_btrace_insn_history_range): Include
11568         end.
11569         (record_btrace_insn_history_from): Adjust range.
11570         (record_btrace_call_history_range): Include
11571         end.
11572         (record_btrace_call_history_from): Adjust range.
11573         * NEWS: Announce changes.
11574
11575 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11576
11577         * record.h (enum record_print_flag)
11578         <record_print_indent_calls>: New.
11579         * record.c (get_call_history_modifiers): Recognize /c modifier.
11580         (_initialize_record): Document /c modifier.
11581         * record-btrace.c (btrace_call_history): Add btinfo parameter.
11582         Reorder fields.  Optionally indent the function name.  Update
11583         all users.
11584         * NEWS: Announce changes.
11585
11586 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11587
11588         * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11589
11590 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11591
11592         * btrace.c (ftrace_new_function): Start counting at one.
11593         * record-btrace.c (record_btrace_info): Adjust number of calls
11594         and insns.
11595         * NEWS: Announce it.
11596
11597 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11598
11599         * record-btrace.c (btrace_call_history_insn_range): Print
11600         insn range as [begin, end].
11601
11602 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11603
11604         * btrace.h (struct btrace_func_link): New.
11605         (enum btrace_function_flag): New.
11606         (struct btrace_inst): Rename to ...
11607         (struct btrace_insn): ...this. Update all users.
11608         (struct btrace_func) <ibegin, iend>: Remove.
11609         (struct btrace_func_link): New.
11610         (struct btrace_func): Rename to ...
11611         (struct btrace_function): ...this. Update all users.
11612         (struct btrace_function) <segment, flow, up, insn, insn_offset)
11613         (number, level, flags>: New.
11614         (struct btrace_insn_iterator): Rename to ...
11615         (struct btrace_insn_history): ...this.
11616         Update all users.
11617         (struct btrace_insn_iterator, btrace_call_iterator): New.
11618         (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11619         (struct btrace_target_info) <begin, end, level>
11620         <insn_history, call_history>: New.
11621         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11622         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11623         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11624         (btrace_call_number, btrace_call_begin, btrace_call_end)
11625         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11626         (btrace_find_function_by_number, btrace_set_insn_history)
11627         (btrace_set_call_history): New.
11628         * btrace.c (btrace_init_insn_iterator)
11629         (btrace_init_func_iterator, compute_itrace): Remove.
11630         (ftrace_print_function_name, ftrace_print_filename)
11631         (ftrace_skip_file): Change
11632         parameter to const.
11633         (ftrace_init_func): Remove.
11634         (ftrace_debug): Use new btrace_function fields.
11635         (ftrace_function_switched): Also consider gaining and
11636         losing symbol information).
11637         (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11638         (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11639         (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11640         New.
11641         (ftrace_new_function): Move. Remove debug print.
11642         (ftrace_update_lines, ftrace_update_insns): New.
11643         (ftrace_update_function): Check for call, ret, and jump.
11644         (compute_ftrace): Renamed to ...
11645         (btrace_compute_ftrace): ...this. Rewritten to compute call
11646         stack.
11647         (btrace_fetch, btrace_clear): Updated.
11648         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11649         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11650         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11651         (btrace_call_number, btrace_call_begin, btrace_call_end)
11652         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11653         (btrace_find_function_by_number, btrace_set_insn_history)
11654         (btrace_set_call_history): New.
11655         * record-btrace.c (require_btrace): Use new btrace thread
11656         info fields.
11657         (record_btrace_info, btrace_insn_history)
11658         (record_btrace_insn_history, record_btrace_insn_history_range):
11659         Use new btrace thread info fields and new iterator.
11660         (btrace_func_history_src_line): Rename to ...
11661         (btrace_call_history_src_line): ...this. Use new btrace
11662         thread info fields.
11663         (btrace_func_history): Rename to ...
11664         (btrace_call_history): ...this. Use new btrace thread info
11665         fields and new iterator.
11666         (record_btrace_call_history, record_btrace_call_history_range):
11667         Use new btrace thread info fields and new iterator.
11668
11669 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11670
11671         * frame.h (frame_id_build_unavailable_stack_special): New.
11672         * frame.c (frame_id_build_unavailable_stack_special): New.
11673
11674 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11675
11676         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11677         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11678         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11679         to gdbarch.
11680         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11681         (i386_insn_is_jump, i386_jmp_p): New.
11682         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11683         insn_is_jump to gdbarch.
11684         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11685         * gdbarch.h: Regenerated.
11686         * gdbarch.c: Regenerated.
11687         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11688         (default_insn_is_jump): New.
11689         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11690         (default_insn_is_jump): New.
11691
11692 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11693
11694         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11695         Change to ...
11696         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
11697         (btrace_read_type) <btrace_read_new>: Change to ...
11698         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
11699
11700 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11701
11702         * common/linux-btrace.c (linux_read_btrace): Free trace from
11703         previous iteration.
11704
11705 2014-01-15  Doug Evans  <dje@google.com>
11706
11707         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11708         uint32_t.
11709
11710 2014-01-15  Tom Tromey  <tromey@redhat.com>
11711
11712         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11713         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11714         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11715         (set_objfile_main_name): New function.
11716         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11717         language_of_main>: New fields.
11718         (set_objfile_main_name): Declare.
11719         * symtab.c (find_main_name): Loop over objfiles to find the main
11720         name and language.
11721         (set_main_name): Now static.
11722         (get_main_info): Add comment.
11723         * symtab.h (set_main_name): Don't declare.
11724
11725 2014-01-15  Tom Tromey  <tromey@redhat.com>
11726
11727         * symtab.c (main_progspace_key): New global.
11728         (struct main_info): New.
11729         (name_of_main, language_of_main): Remove.
11730         (get_main_info, main_info_cleanup): New function.
11731         (set_main_name, main_name, main_language): Use get_main_info.
11732         (_initialize_symtab): Initialize main_progspace_key.
11733
11734 2014-01-15  Tom Tromey  <tromey@redhat.com>
11735
11736         * dbxread.c (process_one_symbol): Update.
11737         * dwarf2read.c (read_partial_die): Update.
11738         * symfile.c (set_initial_language): Call main_language.
11739         * symtab.c (language_of_main): Now static.
11740         (set_main_name): Add 'lang' parameter.
11741         (find_main_name): Update.
11742         (main_language): New function.
11743         (symtab_observer_executable_changed): Update.
11744         * symtab.h (set_main_name): Update.
11745         (language_of_main): Remove.
11746         (main_language): Declare.
11747
11748 2014-01-15  Tom Tromey  <tromey@redhat.com>
11749
11750         * symfile.c (init_entry_point_info): Use new "initialized" field.
11751         Update.
11752         * objfiles.h (struct entry_point) <initialized>: New field.
11753         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11754         (struct objfile) <ei>: ...here.  Remove.
11755         * objfiles.c (entry_point_address_query): Update.
11756
11757 2014-01-15  Tom Tromey  <tromey@redhat.com>
11758
11759         * objfiles.c (entry_point_address_query): Relocate entry point
11760         address.
11761         (objfile_relocate1): Do not relocate entry point address.
11762         * objfiles.h (struct entry_info) <entry_point>: Update comment.
11763         <the_bfd_section_index>: New field.
11764         * symfile.c (init_entry_point_info): Find the entry point's
11765         section.
11766
11767 2014-01-15  Tom Tromey  <tromey@redhat.com>
11768
11769         * solib-frv.c (enable_break): Use entry_point_address_query.
11770
11771 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
11772
11773         * NEWS: Add note on improved process record-replay on
11774         arm*-linux* targets.
11775
11776 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
11777
11778         * arm-tdep.c (enum arm_record_result): New enum.
11779         (arm_record_unsupported_insn): New function.
11780         (arm_record_coproc_data_proc): Removed.
11781         (thumb2_record_ld_st_multiple): New function.
11782         (thumb2_record_ld_st_dual_ex_tbb): New function.
11783         (thumb2_record_data_proc_sreg_mimm): New function.
11784         (thumb2_record_ps_dest_generic): New function.
11785         (thumb2_record_branch_misc_cntrl): New function.
11786         (thumb2_record_str_single_data): New function.
11787         (thumb2_record_ld_mem_hints): New function.
11788         (thumb2_record_ld_word): New function.
11789         (thumb2_record_lmul_lmla_div): New function.
11790         (thumb2_record_decode_insn_handler): New function.
11791         (decode_insn): Add thumb32 instruction handlers.
11792
11793 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
11794
11795         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11796         (struct arm_linux_record_tdep): Declare.
11797         (arm_canonicalize_syscall): New function.
11798         (arm_all_but_pc_registers_record): New function.
11799         (arm_linux_syscall_record): New function.
11800         (arm_linux_init_abi): Add syscall recording constructs.
11801         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11802         decoding.  (arm_record_coproc_data_proc): Update arm syscall
11803         decoding.
11804         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11805         <arm_syscall_record>: New field.
11806         * configure.tgt (arm*-*-linux*): Add linux-record.o to
11807         gdb_target_obs.
11808
11809 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
11810
11811         * arm-tdep.c (thumb_record_misc): Update to use sp as base
11812         register for push instruction recording.
11813
11814 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
11815
11816         * arm-tdep.c (thumb_record_misc): Update to correct logical
11817         error while recording ldm, ldmia and pop instructions.
11818
11819 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
11820
11821         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11822
11823 2014-01-15  Pedro Alves  <palves@redhat.com>
11824
11825         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11826         (go32_resume, go32_fetch_registers, store_register)
11827         (go32_store_registers, go32_prepare_to_store)
11828         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11829         (go32_create_inferior, go32_can_run, go32_terminal_init)
11830         (go32_terminal_inferior, go32_terminal_ours): Delete forward
11831         declarations.
11832
11833 2014-01-15  Tom Tromey  <tromey@redhat.com>
11834
11835         * target.h (async_callback_ftype): New typedef.
11836         (struct target_ops) <to_async>: Use it.
11837
11838 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
11839
11840         * python/py-value.c (get_field_type): Remove unnecessary curly
11841         braces for single-statement if block.
11842
11843 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
11844
11845         * python/py-type.c (convert_field): Add missing empty line
11846         after declarations.
11847
11848 2014-01-14  Doug Evans  <dje@google.com>
11849
11850         * symfile.h (expand_symtabs_matching): Renamed from
11851         expand_partial_symbol_names.  Update prototype.
11852         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11853         * symfile.c (expand_symtabs_matching): Renamed from
11854         expand_partial_symbol_names.  New args file_matcher, kind.
11855         Rename arg fun to symbol_matcher.
11856         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11857         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11858         ada_expand_partial_symbol_name.
11859         (ada_make_symbol_completion_list): Update to call
11860         expand_symtabs_matching.
11861         (ada_add_global_exceptions): Call expand_symtabs_matching.
11862         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11863         call map_symbol_filenames.
11864         * symtab.c (sources_info): Update to call map_symbol_filenames.
11865         (search_symbols): Call expand_symtabs_matching.
11866         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11867         (default_make_symbol_completion_list_break_on): Update to call
11868         expand_symtabs_matching.
11869         (make_source_files_completion_list): Update to call
11870         map_symbol_filenames.
11871
11872 2014-01-14  Doug Evans  <dje@google.com>
11873
11874         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11875         (expand_symtabs_symbol_matcher_ftype): New typedef.
11876         (quick_symbol_functions.expand_symtabs_matching): Update to use.
11877         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11878         * symfile.c (expand_partial_symbol_names): Update to use
11879         expand_symtabs_symbol_matcher_ftype.
11880         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11881         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11882         Arg name_matcher renamed to symbol_matcher.
11883         * psymtab.c (recursively_search_psymtabs): Update to use
11884         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
11885         sym_matcher.
11886         (expand_symtabs_matching_via_partial): Update to use
11887         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11888         Arg name_matcher renamed to symbol_matcher.
11889
11890 2014-01-14  Doug Evans  <dje@google.com>
11891
11892         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11893         (map_partial_symbol_filenames): Ditto.
11894         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11895         (map_partial_symbol_filenames): Ditto.
11896         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11897         (map_partial_symbol_filenames): Ditto.
11898         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11899         (map_partial_symbol_filenames): Ditto.
11900         * symtab.c: Delete #include "psymtab.h".
11901
11902 2014-01-14  Pedro Alves  <palves@redhat.com>
11903             Tom Tromey  <tromey@redhat.com>
11904
11905         * infrun.c (use_displaced_stepping): Use find_record_target
11906         instead of RECORD_IS_USED.
11907         (adjust_pc_after_break): Use record_full_is_used instead of
11908         RECORD_IS_USED.
11909         * record-btrace.c (record_btrace_open): Call record_preopen
11910         instead of checking RECORD_IS_USED.
11911         * record-full.c (record_full_shortname)
11912         (record_full_core_shortname): New globals.
11913         (record_full_is_used): New function.
11914         (find_full_open): Call record_preopen instead of checking
11915         RECORD_IS_USED.
11916         (init_record_full_ops): Set the target's shortname to
11917         record_full_shortname.
11918         (init_record_full_core_ops): Set the target's shortname to
11919         record_full_core_shortname.
11920         * record-full.h (record_full_is_used): Declare.
11921         * record.c (find_record_target): Make extern.
11922         (record_preopen): New function.
11923         * record.h (RECORD_IS_USED): Delete macro.
11924         (find_record_target, record_preopen): Declare functions.
11925
11926 2014-01-14  Yao Qi  <yao@codesourcery.com>
11927
11928         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11929         'len''s type to ULONGEST.
11930         (core_xfer_shared_libraries_aix): Likewise.
11931         * gdbarch.c, gdbarch.h: Regenerated.
11932         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11933         Change type of 'len' to ULONGEST.
11934         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11935         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11936
11937 2014-01-14  Yao Qi  <yao@codesourcery.com>
11938
11939         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11940         type of 'len' to ULONGEST.
11941         (linux_xfer_osdata_processgroups): Likewise.
11942         (linux_xfer_osdata_threads): Likewise.
11943         (linux_xfer_osdata_fds): Likewise.
11944         (linux_xfer_osdata_isockets): Likewise.
11945         (linux_xfer_osdata_shm): Likewise.
11946         (linux_xfer_osdata_sem): Likewise.
11947         (linux_xfer_osdata_msg): Likewise.
11948         (linux_common_xfer_osdata): Likewise.
11949         (struct osdata_type) <getter>: Likewise.
11950         * common/linux-osdata.h (linux_common_xfer_osdata): Update
11951         the declaration.
11952
11953 2014-01-14  Yao Qi  <yao@codesourcery.com>
11954
11955         * target.h (target_xfer_partial_ftype): Update.
11956         (struct target_ops) <to_xfer_partial>: Change 'len' type to
11957         ULONGEST.
11958         * aix-thread.c (aix_thread_xfer_partial): Change type of
11959         argument 'len' to ULONGEST.
11960         * auxv.c (procfs_xfer_auxv): Likewise.
11961         (ld_so_xfer_auxv): Likewise.
11962         (memory_xfer_auxv): Likewise.
11963         * bfd-target.c (target_bfd_xfer_partial): Likewise.
11964         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11965         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11966         * corelow.c (core_xfer_partial): Likewise.
11967         * ctf.c (ctf_xfer_partial): Likewise.
11968         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
11969         '%u'.
11970         (darwin_read_dyld_info): Likewise.
11971         (darwin_xfer_partial): Likewise.
11972         * exec.c (section_table_xfer_memory_partial): Likewise.
11973         (exec_xfer_partial): Likewise.
11974         * exec.h (section_table_xfer_memory_partial): Update
11975         declaration.
11976         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
11977         instead of plongest.
11978         (gnu_xfer_partial): Likewise.
11979         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11980         (ia64_hpux_xfer_solib_got): Likewise.
11981         (ia64_hpux_xfer_partial): Likewise.
11982         * ia64-linux-nat.c (ia64_linux_xfer_partial):
11983         * inf-ptrace.c (inf_ptrace_xfer_partial):
11984         * inf-ttrace.c (inf_ttrace_xfer_partial):
11985         * linux-nat.c (linux_xfer_siginfo): Likewise.
11986         (linux_nat_xfer_partial): Likewise.
11987         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11988         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11989         * monitor.c (monitor_xfer_memory): Likewise.
11990         (monitor_xfer_partial): Likewise.
11991         * procfs.c (procfs_xfer_partial): Likewise.
11992         * record-full.c (record_full_xfer_partial): Likewise.
11993         (record_full_core_xfer_partial): Likewise.
11994         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
11995         instead of plongest.
11996         (gdbsim_xfer_partial): Likewise.
11997         * remote.c (remote_xfer_partial): Likewise.
11998         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11999         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12000         declaration.
12001         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12002         (rs6000_xfer_shared_libraries): Likewise.
12003         * sol-thread.c (sol_thread_xfer_partial): Likewise.
12004         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12005         (sparc_xfer_partial): Likewise.
12006         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12007         (spu_xfer_partial): Likewise.
12008         * spu-multiarch.c (spu_xfer_partial): Likewise.
12009         * target.c (target_read_live_memory): Likewise.
12010         (memory_xfer_live_readonly_partial): Likewise.
12011         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12012         (target_xfer_partial, default_xfer_partial): Likewise.
12013         (current_xfer_partial): Likewise.
12014         * tracepoint.c (tfile_xfer_partial): Likewise.
12015         * windows-nat.c (windows_xfer_memory): Likewise.  Call
12016         pulongest instead of plongest.
12017         (windows_xfer_partial): Likewise.
12018         (windows_xfer_shared_libraries): Likewise.
12019
12020 2014-01-14  Yao Qi  <yao@codesourcery.com>
12021
12022         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12023         target_xfer_partial_ftype.
12024
12025 2014-01-13  Siva Chandra Reddy  <sivachandra@google.com>
12026
12027         PR python/15464
12028         PR python/16113
12029         * valops.c (value_struct_elt_bitpos): New function
12030         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12031         object to 'None' if the field name is an empty string ("").
12032         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12033         attribute to look for a field when 'name' is 'None'.
12034         (get_field_type): New function
12035
12036 2014-01-13  Doug Evans  <dje@google.com>
12037
12038         PR symtab/16426
12039         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12040         (try_open_dwop_file): Ditto.
12041         * gdb_bfd.c: #include "vec.h".
12042         (bfdp): New typedef.
12043         (struct gdb_bfd_data): New member included_bfds.
12044         (gdb_bfd_unref): Unref all included bfds.
12045         (gdb_bfd_record_inclusion): New function.
12046         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12047
12048 2014-01-13  Tom Tromey  <tromey@redhat.com>
12049
12050         * gdbcore.h (deprecated_core_resize_section_table): Remove.
12051
12052 2014-01-13  Tom Tromey  <tromey@redhat.com>
12053
12054         * defs.h (use_windows): Remove.
12055         * gdb.c (main): Update.
12056         * main.c (captured_main, gdb_main): Update.
12057         * main.h (struct captured_main_args) <use_windows>: Remove.
12058         * top.c (use_windows): Remove.
12059
12060 2014-01-13  Tom Tromey  <tromey@redhat.com>
12061
12062         * defs.h (deprecated_flush_hook): Remove.
12063
12064 2014-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
12065
12066         PR threads/16216
12067         * linux-thread-db.c (try_thread_db_load): Add parameter
12068         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
12069         (try_thread_db_load_from_pdir_1): Move it there from here.
12070         (try_thread_db_load_from_sdir): Update caller.
12071         (try_thread_db_load_from_dir): Move it there from here.
12072
12073 2014-01-13  Patrick Palka  <patrick@parcs.ath.cx>
12074
12075         * regformats/regdat.sh: Always rewrite the register file.
12076
12077 2014-01-13  Pedro Alves  <palves@redhat.com>
12078
12079         * Makefile.in (CHECK_HEADERS): New variable.
12080         (check-headers:): New rule.
12081
12082 2014-01-13  Tom Tromey  <tromey@redhat.com>
12083
12084         * cli/cli-setshow.c (do_set_command): Update.
12085         * defs.h (deprecated_set_hook): Remove.
12086         * top.c (deprecated_set_hook): Remove.
12087
12088 2014-01-13  Pedro Alves  <palves@redhat.com>
12089
12090         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12091         the tracepoint if the PC is a pseudo-register.
12092
12093 2014-01-13  Tom Tromey  <tromey@redhat.com>
12094
12095         * defs.h (XCALLOC): Remove.
12096         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12097         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12098         * dwarf2loc.c (allocate_piece_closure): Likewise.
12099         * elfread.c (elf_symfile_segments): Likewise.
12100         (elf_symfile_segments): Likewise.
12101         * gdbtypes.c (copy_type_recursive): Likewise.
12102         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12103         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12104         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12105         XCALLOC.
12106         * mt-tdep.c (mt_gdbarch_init): Likewise.
12107         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12108         XCALLOC.
12109         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12110         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12111         * registry.c (registry_alloc_data): Likewise.
12112         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12113         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12114         * serial.c (serial_fdopen_ops): Likewise.
12115         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12116         XCALLOC.
12117         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12118         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12119         not XCALLOC.
12120
12121 2014-01-13  Tom Tromey  <tromey@redhat.com>
12122
12123         * defs.h (XMALLOC): Remove.
12124         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12125         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12126         * cli-out.c (struct ui_out *): Likewise.
12127         * cli/cli-dump.c (add_dump_command): Likewise.
12128         (add_dump_command): Likewise.
12129         * complaints.c (get_complaints): Likewise.
12130         (find_complaint): Likewise.
12131         * dwarf2-frame.c (execute_cfa_program): Likewise.
12132         * dwarf2read.c (abbrev_table_read_table): Likewise.
12133         * gdbarch.sh: Likewise.
12134         * gdbarch.c: Rebuild.
12135         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12136         * interps.c (interp_new): Likewise.
12137         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12138         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12139         * mi/mi-console.c (mi_console_file_new): Likewise.
12140         * mi/mi-interp.c (mi_interpreter_init): Likewise.
12141         * mi/mi-out.c (mi_out_new): Likewise.
12142         * mi/mi-parse.c (mi_parse): Likewise.
12143         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12144         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12145         * observer.c (xalloc_observer_list_node): Likewise.
12146         * regcache.c (regcache_xmalloc_1): Likewise.
12147         * reggroups.c (reggroup_new): Likewise.
12148         (_initialize_reggroup): Likewise.
12149         * registry.c (register_data_with_cleanup): Likewise.
12150         * remote.c (remote_notif_stop_alloc_reply): Likewise.
12151         * ser-base.c (serial_ttystate): Likewise.
12152         * ser-mingw.c (make_pipe_state): Likewise.
12153         * ser-pipe.c (pipe_open): Likewise.
12154         * serial.c (serial_open): Likewise.
12155         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12156         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12157         (tui_alloc_win_info): Likewise.
12158         (tui_add_content_elements): Likewise.
12159         * tui/tui-file.c (tui_file_new): Likewise.
12160         * tui/tui-out.c (tui_out_new): Likewise.
12161         * ui-file.c (mem_file_new): Likewise.
12162         * ui-out.c (push_level): Likewise.
12163         (make_cleanup_ui_out_end): Likewise.
12164         (append_header_to_list): Likewise.
12165         (ui_out_new): Likewise.
12166         * user-regs.c (user_reg_add_builtin): Likewise.
12167
12168 2014-01-13  Tom Tromey  <tromey@redhat.com>
12169
12170         * defs.h (XZALLOC): Remove.
12171         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12172         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12173         (get_ada_tasks_inferior_data): Likewise.
12174         * auto-load.c (get_auto_load_pspace_data): Likewise.
12175         * auxv.c (get_auxv_inferior_data): Likewise.
12176         * bfd-target.c (target_bfd_reopen): Likewise.
12177         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12178         (deprecated_insert_raw_breakpoint): Likewise.
12179         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12180         * corelow.c (core_open): Likewise.
12181         * darwin-nat.c (darwin_check_new_threads): Likewise.
12182         (darwin_attach_pid): Likewise.
12183         * dummy-frame.c (dummy_frame_push): Likewise.
12184         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12185         * dwarf2loc.c (allocate_piece_closure): Likewise.
12186         * elfread.c (elf_symfile_segments): Likewise.
12187         * eval.c (ptrmath_type_p): Likewise.
12188         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12189         * gdbtypes.c (alloc_type_arch): Likewise.
12190         (alloc_type_instance): Likewise.
12191         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12192         * inf-child.c (inf_child_can_use_agent): Likewise.
12193         * inflow.c (get_inflow_inferior_data): Likewise.
12194         * infrun.c (save_infcall_suspend_state): Likewise.
12195         * jit.c (jit_reader_load): Likewise.
12196         (get_jit_objfile_data): Likewise.
12197         (get_jit_program_space_data): Likewise.
12198         (jit_object_open_impl): Likewise.
12199         (jit_symtab_open_impl): Likewise.
12200         (jit_block_open_impl): Likewise.
12201         (jit_frame_sniffer): Likewise.
12202         * linux-fork.c (add_fork): Likewise.
12203         * maint.c (make_command_stats_cleanup): Likewise.
12204         * objfiles.c (get_objfile_pspace_data): Likewise.
12205         * opencl-lang.c (struct lval_closure): Likewise.
12206         * osdata.c (osdata_start_osdata): Likewise.
12207         * progspace.c (new_address_space): Likewise.
12208         (add_program_space): Likewise.
12209         * remote-sim.c (get_sim_inferior_data): Likewise.
12210         * sh-tdep.c (sh_gdbarch_init): Likewise.
12211         * skip.c (Ignore): Likewise.
12212         (skip_delete_command): Likewise.
12213         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12214         (library_list_start_library): Likewise.
12215         (solib_aix_current_sos): Likewise.
12216         * solib-darwin.c (get_darwin_info): Likewise.
12217         (darwin_current_sos): Likewise.
12218         * solib-dsbt.c (get_dsbt_info): Likewise.
12219         * solib-ia64-hpux.c (new_so_list): Likewise.
12220         (ia64_hpux_get_solib_linkage_addr): Likewise.
12221         * solib-spu.c (append_ocl_sos): Likewise.
12222         (spu_current_sos): Likewise.
12223         * solib-svr4.c (get_svr4_info): Likewise.
12224         (svr4_keep_data_in_core): Likewise.
12225         (library_list_start_library): Likewise.
12226         (svr4_default_sos): Likewise.
12227         (svr4_read_so_list): Likewise.
12228         * solib-target.c (library_list_start_library): Likewise.
12229         (solib_target_current_sos): Likewise.
12230         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12231         * symfile-debug.c (install_symfile_debug_logging): Likewise.
12232         * symfile.c (default_symfile_segments): Likewise.
12233         * target-descriptions.c (tdesc_data_init): Likewise.
12234         (tdesc_create_reg): Likewise.
12235         (struct tdesc_type *): Likewise.
12236         (tdesc_create_vector): Likewise.
12237         (tdesc_set_struct_size): Likewise.
12238         (struct tdesc_type *): Likewise.
12239         (tdesc_free_feature): Likewise.
12240         (tdesc_create_feature): Likewise.
12241         * windows-nat.c (windows_add_thread): Likewise.
12242         (windows_make_so): Likewise.
12243         * xml-support.c (gdb_xml_body_text): Likewise.
12244         (gdb_xml_create_parser_and_cleanup): Likewise.
12245         (xml_process_xincludes): Likewise.
12246         * xml-syscall.c (allocate_syscalls_info): Likewise.
12247         (syscall_create_syscall_desc): Likewise.
12248
12249 2014-01-12  Sergio Durigan Junior  <sergiodj@redhat.com>
12250
12251         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12252         function, with code from i386_stap_parse_special_token.
12253         (i386_stap_parse_special_token_three_arg_disp): Likewise.
12254         (i386_stap_parse_special_token): Move code to the two functions
12255         above; simplify it.
12256
12257 2014-01-09  Pedro Alves  <palves@redhat.com>
12258             Hui Zhu  <hui@codesourcery.com>
12259
12260         PR gdb/16101
12261         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12262         bp_err_string.  Don't mark the location shlib_disabled if the
12263         error thrown wasn't a generic or memory error.  Catch errors
12264         thrown while inserting breakpoints in overlayed code.  Output
12265         error message of software breakpoints.
12266         * remote.c (remote_insert_breakpoint): If this breakpoint has
12267         target-side commands but this stub doesn't support Z0 packets,
12268         throw NOT_SUPPORTED_ERROR error.
12269         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12270         * target.h (target_insert_breakpoint): Extend comment.
12271         (target_insert_hw_breakpoint): Add comment.
12272
12273 2014-01-08  Pedro Alves  <palves@redhat.com>
12274
12275         * remote.c (remote_add_thread): Add threads silently if starting
12276         up.
12277         (remote_notice_new_inferior): If in all-stop, and starting up,
12278         don't call notice_new_inferior.
12279         (get_current_thread): New function, factored out from ...
12280         (add_current_inferior_and_thread): ... this.  Adjust.
12281         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
12282         found any thread, then select the remote's current thread as GDB's
12283         current thread too.
12284
12285 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
12286
12287         * NEWS: Create a new section for the next release branch.
12288         Rename the section of the current branch, now that it has
12289         been cut.
12290
12291 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
12292
12293         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12294         * version.in: Bump version to 7.7.50.DATE-cvs.
12295
12296 2014-01-08  Yao Qi  <yao@codesourcery.com>
12297
12298         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12299         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
12300         (spu_xfer_partial): Cast 'buf' to 'const char *'.
12301
12302 2014-01-08  Yao Qi  <yao@codesourcery.com>
12303
12304         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12305         return value of bfd_get_filename to symbol_file_add_from_bfd.
12306
12307 2014-01-08  Pierre Muller  <muller@sourceware.org>
12308
12309         Fix PR16201.
12310         * coff-pe-read.c (struct read_pe_section_data): Add index field.
12311         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12312         to prim_record_mininal_symbol_and_info.
12313         (add_pe_forwarded_sym): Use known section number of forwarded symbol
12314         in call to prim_record_minimal_symbol_and_info.
12315         (read_pe_exported_syms): Set index field of section_data.
12316
12317 2014-01-07  Andrew Pinski  <apinski@cavium.com>
12318
12319         * features/aarch64-core.xml (cpsr): Change to be 64bit.
12320         * features/aarch64.c: Regenerate.
12321
12322 2014-01-07  Andreas Schwab  <schwab@linux-m68k.org>
12323
12324         * target.c (return_null): Define.
12325         (update_current_target): Use it instead of return_zero for
12326         functions that return a pointer.
12327
12328 2014-01-07  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
12329
12330         * source.c (add_path): Fix check for duplicated paths in the previously
12331         included paths.
12332
12333 2014-01-07  Honggyu Kim  <hong.gyu.kim@lge.com>
12334
12335         * ada-lang.c: Remove duplicated include statements.
12336         * alphabsd-nat.c: Ditto.
12337         * amd64-darwin-tdep.c: Ditto.
12338         * amd64fbsd-nat.c: Ditto.
12339         * auto-load.c: Ditto.
12340         * ax-gdb.c: Ditto.
12341         * breakpoint.c: Ditto.
12342         * dbxread.c: Ditto.
12343         * fork-child.c: Ditto.
12344         * gdb_usleep.c: Ditto.
12345         * i386-darwin-tdep.c: Ditto.
12346         * i386fbsd-nat.c: Ditto.
12347         * infcmd.c: Ditto.
12348         * inferior.c: Ditto.
12349         * jv-lang.c: Ditto.
12350         * linux-nat.c: Ditto.
12351         * linux-tdep.c: Ditto.
12352         * m68kbsd-nat.c: Ditto.
12353         * m68klinux-nat.c: Ditto.
12354         * microblaze-tdep.c: Ditto.
12355         * mips-linux-tdep.c: Ditto.
12356         * mn10300-tdep.c: Ditto.
12357         * nto-tdep.c: Ditto.
12358         * opencl-lang.c: Ditto.
12359         * osdata.c: Ditto.
12360         * printcmd.c: Ditto.
12361         * regcache.c: Ditto.
12362         * remote-m32r-sdi.c: Ditto.
12363         * remote.c: Ditto.
12364         * symfile.c: Ditto.
12365         * symtab.c: Ditto.
12366         * tilegx-linux-nat.c: Ditto.
12367         * tilegx-tdep.c: Ditto.
12368         * tracepoint.c: Ditto.
12369         * valops.c: Ditto.
12370         * vaxbsd-nat.c: Ditto.
12371         * windows-nat.c: Ditto.
12372         * xtensa-tdep.c: Ditto.
12373
12374 2014-01-07  Yao Qi  <yao@codesourcery.com>
12375
12376         * spu-linux-nat.c (_initialize_spu_nat): Declare.
12377
12378 2014-01-07  Yao Qi  <yao@codesourcery.com>
12379             Joel Brobecker  <brobecker@adacore.com>
12380
12381         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12382         (pdc_write_regs): Likewise.
12383         (fetch_regs_kernel_thread): Likewise.
12384         (store_regs_kernel_thread): Likewise.
12385
12386 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12387
12388         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12389         tagged type objects to their actual type.
12390
12391 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12392
12393         * ada-valprint.c (print_field_values): Add "language" parameter.
12394         Update calls to print_field_values and print_variant_part.
12395         Pass new parameter "language" in call to val_print instead
12396         of "current_language".  Replace call to ada_val_print by call
12397         to val_print.
12398         (print_variant_part): Add "language" parameter.
12399         (ada_val_print_struct_union): Update call to print_field_values.
12400
12401 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12402
12403         * ada-valprint.c (ui_memcpy): Delete.
12404         (ada_print_floating): Update documentation.  Add empty line
12405         between between function documentation and implementation.
12406         Delete variable "buffer".  Use ui_file_xstrdup in place of
12407         ui_file_put.  Minor adjustments following this change.
12408
12409 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12410
12411         * ada-valprint.c (ada_val_print_string): New function,
12412         extracted from ada_val_print_array.
12413         (ada_val_print_array): Replace extracted code by call
12414         to ada_val_print_string followed by a return.  Move
12415         "else" branch to the function's top block.
12416
12417 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12418
12419         * ada-valprint.c (ada_val_print_array): Move implementation
12420         down.  Rename parameter "offset" and "val" into "offset_aligned"
12421         and "original_value" respectively.  Add parameter "offset".
12422
12423 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12424
12425         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12426         re-organizing the code. Change the "???" message printed
12427         when target type is a TYPE_CODE_UNDEF into
12428         "<ref to undefined type>".
12429
12430 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12431
12432         * ada-valprint.c (print_record): Delete, implementation inlined...
12433         (ada_val_print_struct_union): ... here.  Remove call to
12434         ada_check_typedef in inlined implementation.
12435
12436 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12437
12438         * ada-valprint.c (ada_val_print_gnat_array): New function,
12439         extracted from ada_val_print_1;
12440         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12441         (ada_val_print_flt, ada_val_print_struct_union)
12442         (ada_val_print_ref): Likewise.
12443         (ada_val_print_1): Delete variables i and elttype.
12444         Replace extracted-out code by call to corresponding
12445         new functions.
12446
12447 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12448
12449         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12450
12451 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12452
12453         * ada-valprint.c (ada_val_print_1): Replace calls to
12454         ada_val_print_1 by calls to val_print.
12455
12456 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12457
12458         * ada-valprint.c (ada_val_print_1): Add parameter "language".
12459         Update calls to self accordingly.  Replace calls to c_val_print
12460         by calls to val_print.
12461
12462 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12463
12464         * ada-valprint.c (print_record): Delete declaration.
12465         (adjust_type_signedness, ada_val_print_1): Likewise.
12466         (ada_val_print): Move function implementation down.
12467         (print_variant_part, print_field_values, print_record):
12468         Move function implementation up.
12469
12470 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12471
12472         * python/py-type.c (typy_get_name): New function.
12473         (type_object_getset): Add entry for attribute "name".
12474         * NEWS: Add entry mentioning this new attribute.
12475
12476 2014-01-07  Yao Qi  <yao@codesourcery.com>
12477
12478         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12479         statement.
12480
12481 2014-01-07  Yao Qi  <yao@codesourcery.com>
12482
12483         * gnu-nat.c (info_port_rights): Add qualifier const to
12484         argument args.
12485
12486 2014-01-07  Yao Qi  <yao@codesourcery.com>
12487
12488         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12489
12490 2014-01-07  Yao Qi  <yao@codesourcery.com>
12491
12492         * gnu-nat.c (make_inf) Update declaration.
12493         (make_inf): Make it static.
12494         (inf_set_traced): Likewise.
12495         (inf_port_to_thread, inf_task_died_status): Likewise.
12496
12497 2014-01-07  Yao Qi  <yao@codesourcery.com>
12498
12499         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12500
12501 2014-01-07  Yao Qi  <yao@codesourcery.com>
12502
12503         * gnu-nat.c (_initialize_gnu_nat): Declare.
12504
12505 2014-01-07  Yao Qi  <yao@codesourcery.com>
12506
12507         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12508         'enum bfd_endian'.
12509         (struct gdbarch_info) <byte_order>: Change type to
12510         'enum bfd_endian'.
12511         <byte_order_for_code>: Likewise.
12512         * gdbarch.c, gdbarch.h: Regenerated.
12513
12514 2014-01-06  Sasha Smundak  <asmundak@google.com>
12515
12516         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12517
12518 2014-01-06  Tom Tromey  <tromey@redhat.com>
12519
12520         * doublest.c (convert_doublest_to_floatformat): Use const, not
12521         CONST.
12522         * somread.c (som_symtab_read): Likewise.
12523
12524 2014-01-07  Hui Zhu  <hui@codesourcery.com>
12525
12526         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12527         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12528         (gdb_bfd_fopen): Ditto.
12529         (gdb_bfd_openr): Ditto.
12530         (gdb_bfd_openw): Ditto.
12531         (gdb_bfd_openr_iovec): Ditto.
12532         (gdb_bfd_fdopenr): Ditto.
12533         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12534         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12535         with xstrdup.
12536         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12537         with xstrdup.
12538         * symfile-mem.c (symbol_file_add_from_memory): Removed
12539         gdb_bfd_stash_filename.
12540
12541 2014-01-03  Doug Evans  <dje@google.com>
12542
12543         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12544         output.
12545
12546 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
12547
12548         Update year range in copyright notice of all files.
12549
12550 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
12551
12552         * top.c (print_gdb_version): Set copyright year to 2014.
12553
12554 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
12555
12556         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12557
12558 For older changes see ChangeLog-2013.
12559 \f
12560 Local Variables:
12561 mode: change-log
12562 left-margin: 8
12563 fill-column: 74
12564 version-control: never
12565 coding: utf-8
12566 End: