Unify ctf_fetch_registers and tfile_fetch_registers
[binutils-gdb.git] / gdb / ChangeLog
1 2014-04-22 Yao Qi <yao@codesourcery.com>
2
3 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
4 to ...
5 * tracefile.c (tracefile_fetch_registers): ... it. New
6 function.
7 * tracefile.h (tracefile_fetch_registers): Declare.
8 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
9 tracefile_fetch_registers.
10
11 2014-04-19 Eli Zaretskii <eliz@gnu.org>
12
13 PR gdb/14018
14 * windows-nat.c (thread_rec): Don't display a warning when
15 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
16 fails for any reason, set th->suspended to -1, so that we don't
17 try to resume such a thread. Also, don't return NULL in these
18 cases, to avoid completely ruin the session due to "PC register is
19 not available" error.
20 (do_windows_fetch_inferior_registers): Check errors in
21 GetThreadContext call.
22 (windows_continue): Accept an additional argument KILLED; if not
23 zero, ignore errors in the SetThreadContext call, since the
24 inferior was killed and is shutting down.
25 (windows_resume, get_windows_debug_event)
26 (windows_create_inferior, windows_mourn_inferior)
27 (windows_kill_inferior): All callers of windows_continue changed
28 to adjust to its new calling sequence.
29
30 2014-04-19 Yao Qi <yao@codesourcery.com>
31
32 * ctf.c (ctf_open): Call post_create_inferior.
33
34 2014-04-19 Yao Qi <yao@codesourcery.com>
35
36 * ctf.c (handle_id): New static variable.
37 (ctf_open_dir): Get handle_id from bt_context_add_trace return
38 value. Get the declaration of event "register" and get length
39 of field "contents".
40
41 2014-04-19 Yao Qi <yao@codesourcery.com>
42
43 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
44
45 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
46
47 * valops.c (oload_method_static): Remove unnecessary argument
48 METHOD. Update all callers.
49
50 2014-04-18 Pedro alves <palves@redhat.com>
51 Tom Tromey <tromey@redhat.com>
52
53 PR backtrace/15558
54 * frame.c (get_prev_frame_1): Rename to ...
55 (get_prev_frame_always): ... this, and make extern. Adjust.
56 (skip_artificial_frames): Use get_prev_frame_always.
57 (frame_unwind_caller_id, frame_pop, get_prev_frame)
58 (get_frame_unwind_stop_reason): Adjust to rename.
59 * frame.h (get_prev_frame_always): Declare.
60 * inline-frame.c: Include frame.h.
61 (inline_frame_this_id): Use get_prev_frame_always.
62
63 2014-04-18 Tristan Gingold <gingold@adacore.com>
64
65 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
66 code by using bfd_mach_o_get_base_address.
67
68 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
69
70 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
71 (spu_ax_pseudo_register_collect): New function.
72 (spu_ax_pseudo_register_push_stack): Likewise.
73 (spu_dwarf_reg_to_regnum): Likewise.
74 (spu_gdbarch_init): Install them. Append DWARF unwinders.
75
76 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
77
78 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
79 Replace FRAME argument with FRAME_ID.
80 * gdbarch.c, gdbarch.h: Regenerate.
81 * findvar.c (default_value_from_register): Add GDBARCH argument;
82 replace FRAME by FRAME_ID. No longer call get_frame_id.
83 (value_from_register): Update call to gdbarch_value_from_register.
84 * value.h (default_value_from_register): Update prototype.
85 * s390-linux-tdep.c (s390_value_from_register): Update interface
86 and call to default_value_from_register.
87 * spu-tdep.c (spu_value_from_register): Likewise.
88
89 * findvar.c (address_from_register): Remove TYPE argument.
90 Do not call value_from_register; use gdbarch_value_from_register
91 with null_frame_id instead.
92 * value.h (address_from_register): Update prototype.
93 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
94 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
95 address_from_register interface change.
96
97 2014-04-17 Yao Qi <yao@codesourcery.com>
98
99 * gdbtypes.h: Update comments to link to types and macros'
100 definitions.
101
102 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
103
104 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
105
106 2014-04-16 Keith Seitz <keiths@redhat.com>
107
108 PR gdb/15827
109 * dwarf2read.c (skip_one_die): Check that all relative-offset
110 sibling DIEs fall within range of the current reader's buffer.
111 (read_partial_die): Likewise.
112
113 2014-04-16 Keith Seitz <keiths@redhat.com>
114
115 PR c++/16597
116 * cp-namespace.c (lookup_symbol_file): If the type name of
117 `this' is NULL, return immediately.
118
119 2014-04-14 Keith Seitz <keiths@redhat.com>
120
121 PR c++/16253
122 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
123 from symbol_matches_domain in symtab.c. All local callers
124 of symbol_matches_domain updated.
125 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
126 search STRUCT_DOMAIN.
127 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
128 independently. standard_lookup will do that automatically.
129 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
130 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
131 (cp_lookup_symbol_in_namespace): Likewise.
132 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
133 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
134 may return a STRUCT_DOMAIN match.
135 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
136 * cp-support.c: Include language.h.
137 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
138 VAR_DOMAIN.
139 * psymtab.c (match_partial_symbol): Compare the requested
140 domain with the symbol's domain directly.
141 (lookup_partial_symbol): Likewise.
142 * symtab.c (lookup_symbol_in_language): Explain when/why
143 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
144 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
145 appropriate languages.
146 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
147 and moved to ada-lang.c
148 (lookup_block_symbol): Explain that this function only returns
149 symbol matching the requested DOMAIN.
150 Compare the requested domain with the symbol's domain directly.
151 (iterate_over_symbols): Compare the requested domain with the
152 symbol's domain directly.
153 * symtab.h (symbol_matches_domain): Remove.
154
155 2014-04-14 Tom Tromey <tromey@redhat.com>
156
157 PR c++/15246:
158 * c-exp.y (type_aggregate_p): New function.
159 (qualified_name, classify_inner_name): Use it.
160 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
161 and TYPE_TARGET_TYPE of an enum type.
162 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
163 an enum type.
164 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
165 handle TYPE_DECLARED_CLASS.
166 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
167 types.
168 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
169 * valops.c (enum_constant_from_type): New function.
170 (value_aggregate_elt): Use it.
171 * cp-namespace.c (cp_lookup_nested_symbol): Handle
172 TYPE_CODE_ENUM.
173
174 2014-04-14 Tom Tromey <tromey@redhat.com>
175
176 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
177 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
178 const.
179 * value.h (value_aggregate_elt): Update.
180
181 2014-04-14 Tom Tromey <tromey@redhat.com>
182
183 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
184
185 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
186
187 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
188 (evaluate_subexp_standard): Pass noside argument.
189 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
190 if noside equals EVAL_NORMAL. If the subscript yields a vla type
191 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
192 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
193 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
194
195 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
196
197 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
198 points to a constant blob.
199
200 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
201
202 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
203 property and store it as the high bound and flag the range accordingly.
204 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
205 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
206 * gdbtypes.h (enum range_flags): New enum.
207 (struct range_bounds): Add flags member.
208
209 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
210
211 * c-typeprint.c (c_type_print_varspec_suffix): Added
212 check for not yet resolved high bound. If unresolved, print
213 "variable length" string to the console instead of random
214 length.
215
216 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
217
218 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
219 value.
220 (ada_template_to_fixed_record_type_1): Likewise.
221 (ada_to_fixed_type_1): Likewise.
222 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
223 (cp_print_value): Likewise.
224 * d-valprint.c (dynamic_array_type): Likewise.
225 * findvar.c (address_of_variable): Likewise.
226 * jv-valprint.c (java_value_print): Likewise.
227 * valops.c (value_ind): Likewise.
228 * value.c (coerce_ref): Likewise.
229
230 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
231
232 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
233 value and retrieve the dynamic type size.
234
235 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
236
237 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
238 passed to sizeof is dynamic evaluate the argument to compute the length.
239
240 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
241 Joel Brobecker <brobecker@adacore.com>
242
243 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
244 (dwarf2_evaluate_property): New function.
245 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
246 * dwarf2read.c (attr_to_dynamic_prop): New function.
247 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
248 attribute.
249 * gdbtypes.c: Include dwarf2loc.h.
250 (is_dynamic_type): New function.
251 (resolve_dynamic_type): New function.
252 (resolve_dynamic_bounds): New function.
253 (get_type_length): New function.
254 (check_typedef): Use get_type_length to compute type length.
255 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
256 (TYPE_LOW_BOUND_KIND): New macro.
257 (is_dynamic_type): New function prototype.
258 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
259 to resolve dynamic properties of the type. Update comment.
260 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
261
262 2014-04-14 Richard Henderson <rth@redhat.com>
263
264 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
265
266 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
267 Doug Evans <xdje42@gmail.com>
268
269 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
270 dereference TYPE_CODE_REF values.
271
272 2014-04-11 Joel Brobecker <brobecker@adacore.com>
273
274 Revert the following changes due to regressions:
275
276 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
277 (dwarf2_evaluate_property): New function.
278 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
279 * dwarf2read.c (attr_to_dynamic_prop): New function.
280 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
281 attribute.
282 * gdbtypes.c: Include dwarf2loc.h.
283 (is_dynamic_type): New function.
284 (resolve_dynamic_type): New function.
285 (resolve_dynamic_bounds): New function.
286 (get_type_length): New function.
287 (check_typedef): Use get_type_length to compute type length.
288 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
289 (TYPE_LOW_BOUND_KIND): New macro.
290 (is_dynamic_type): New function prototype.
291 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
292 to resolve dynamic properties of the type. Update comment.
293 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
294
295 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
296 passed to sizeof is dynamic evaluate the argument to compute the length.
297
298 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
299 value and retrieve the dynamic type size.
300
301 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
302 (ada_template_to_fixed_record_type_1): Likewise.
303 (ada_to_fixed_type_1): Likewise.
304 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
305 (cp_print_value): Likewise.
306 * d-valprint.c (dynamic_array_type): Likewise.
307 * eval.c (evaluate_subexp_with_coercion): Likewise.
308 * findvar.c (address_of_variable): Likewise.
309 * jv-valprint.c (java_value_print): Likewise.
310 * valops.c (value_ind): Likewise.
311 * value.c (coerce_ref): Likewise.
312
313 * c-typeprint.c (c_type_print_varspec_suffix): Added
314 check for not yet resolved high bound. If unresolved, print
315 "variable length" string to the console instead of random
316 length.
317
318 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
319 property and store it as the high bound and flag the range accordingly.
320 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
321 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
322 * gdbtypes.h (enum range_flags): New enum.
323 (struct range_bounds): Add flags member.
324
325 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
326 points to a constant blob.
327
328 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
329 (evaluate_subexp_standard): Pass noside argument.
330 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
331 if noside equals EVAL_NORMAL. If the subscript yields a vla type
332 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
333 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
334 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
335
336 2014-04-11 Keith Seitz <keiths@redhat.com>
337
338 PR c++/16675
339 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
340 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
341 reference types.
342
343 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
344
345 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
346 (evaluate_subexp_standard): Pass noside argument.
347 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
348 if noside equals EVAL_NORMAL. If the subscript yields a vla type
349 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
350 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
351 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
352
353 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
354
355 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
356 points to a constant blob.
357
358 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
359
360 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
361 property and store it as the high bound and flag the range accordingly.
362 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
363 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
364 * gdbtypes.h (enum range_flags): New enum.
365 (struct range_bounds): Add flags member.
366
367 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
368
369 * c-typeprint.c (c_type_print_varspec_suffix): Added
370 check for not yet resolved high bound. If unresolved, print
371 "variable length" string to the console instead of random
372 length.
373
374 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
375
376 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
377 (ada_template_to_fixed_record_type_1): Likewise.
378 (ada_to_fixed_type_1): Likewise.
379 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
380 (cp_print_value): Likewise.
381 * d-valprint.c (dynamic_array_type): Likewise.
382 * eval.c (evaluate_subexp_with_coercion): Likewise.
383 * findvar.c (address_of_variable): Likewise.
384 * jv-valprint.c (java_value_print): Likewise.
385 * valops.c (value_ind): Likewise.
386 * value.c (coerce_ref): Likewise.
387
388 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
389
390 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
391 value and retrieve the dynamic type size.
392
393 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
394
395 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
396 passed to sizeof is dynamic evaluate the argument to compute the length.
397
398 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
399
400 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
401 (dwarf2_evaluate_property): New function.
402 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
403 * dwarf2read.c (attr_to_dynamic_prop): New function.
404 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
405 attribute.
406 * gdbtypes.c: Include dwarf2loc.h.
407 (is_dynamic_type): New function.
408 (resolve_dynamic_type): New function.
409 (resolve_dynamic_bounds): New function.
410 (get_type_length): New function.
411 (check_typedef): Use get_type_length to compute type length.
412 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
413 (TYPE_LOW_BOUND_KIND): New macro.
414 (is_dynamic_type): New function prototype.
415 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
416 to resolve dynamic properties of the type. Update comment.
417 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
418
419 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
420
421 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
422 declaring high/low bounds and change uses accordingly. Call
423 create_range_type instead of create_static_range_type.
424 * gdbtypes.c (create_range_type): New function.
425 (create_range_type): Convert bounds into struct bound_prop and pass
426 them to create_range_type.
427 * gdbtypes.h (struct bound_prop): New struct.
428 (create_range_type): New function prototype.
429 (struct range_bounds): Use struct bound_prop instead of LONGEST for
430 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
431 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
432 part of the bound.
433 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
434
435 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
436
437 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
438 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
439 * ada-lang.c: All uses of create_range_type updated.
440 * coffread.c: All uses of create_range_type updated.
441 * dwarf2read.c: All uses of create_range_type updated.
442 * f-exp.y: All uses of create_range_type updated.
443 * m2-valprint.c: All uses of create_range_type updated.
444 * mdebugread.c: All uses of create_range_type updated.
445 * stabsread.c: All uses of create_range_type updated.
446 * valops.c: All uses of create_range_type updated.
447 * valprint.c: All uses of create_range_type updated.
448
449 2014-04-10 Pedro Alves <palves@redhat.com>
450
451 * breakpoint.c (single_step_breakpoints)
452 (single_step_gdbarch): Move up in the file.
453 (one_breakpoint_xfer_memory): New function, factored out from ...
454 (breakpoint_xfer_memory): ... here. Also process single-step
455 breakpoints.
456
457 2014-04-09 Tristan Gingold <gingold@adacore.com>
458
459 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
460 comments.
461 (darwin_decode_exception_message): Free port only after use.
462
463 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
464
465 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
466 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
467 when setting the size of call_length.
468
469 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
470
471 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
472 dereference TYPE_CODE_REF values.
473
474 2014-04-07 Joel Brobecker <brobecker@adacore.com>
475
476 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
477 end of warning message.
478
479 2014-04-03 Doug Evans <dje@google.com>
480
481 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
482 of stub_comp_unit_die, stub_comp_dir is non-NULL.
483
484 2014-04-02 Alan Modra <amodra@gmail.com>
485
486 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
487 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
488 (struct symbol_file_add_from_memory_args): Add size field.
489 (find_vdso_size): New function.
490 (add_vsyscall_page): Attempt to find vdso size.
491
492 2014-04-01 Doug Evans <dje@google.com>
493
494 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
495
496 2014-04-01 Tristan Gingold <gingold@adacore.com>
497
498 * darwin-nat.c (darwin_encode_reply): Add prototype.
499 (darwin_decode_exception_message): Reply to unknown inferiors.
500 (darwin_decode_message): Handle message by id. Ignore message
501 to unknown inferior.
502 (darwin_wait): Discard unknown messages, add debug trace.
503
504 2014-03-31 Doug Evans <dje@google.com>
505
506 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
507 comp_dir_string.
508
509 2014-03-31 Doug Evans <dje@google.com>
510
511 New option "set print symbol-loading".
512 * NEWS: Mention it.
513 * solib.c (solib_read_symbols): Only print symbol loading messages
514 if requested.
515 (solib_add): If symbol loading is in "brief" mode, notify user
516 symbols are being loaded.
517 (reload_shared_libraries_1): Ditto.
518 * symfile.c (print_symbol_loading_off): New static global.
519 (print_symbol_loading_brief): New static global.
520 (print_symbol_loading_full): New static global.
521 (print_symbol_loading_enums): New static global.
522 (print_symbol_loading): New static global.
523 (print_symbol_loading_p): New function.
524 (symbol_file_add_with_addrs): Only print symbol loading messages
525 if requested.
526 (_initialize_symfile): Register "print symbol-loading" set/show
527 command.
528 * symfile.h (print_symbol_loading_p): Declare.
529
530 2014-03-30 Doug Evans <xdje42@gmail.com>
531
532 * infrun.c (set_last_target_status): New function.
533 (handle_inferior_event): Call it.
534
535 2014-03-30 Doug Evans <xdje42@gmail.com>
536
537 * inferior.h (enum stop_kind): Improve comment.
538
539 2014-03-28 Joel Brobecker <brobecker@adacore.com>
540
541 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
542 a reference, strip the reference layer before calling
543 the lang_ops value_has_mutated callback.
544
545 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
546
547 Remove some globals from our parser.
548 * language.c (unk_lang_parser): Add "struct parser_state"
549 argument.
550 * language.h (struct language_defn) <la_parser>: Likewise.
551 * parse.c (expout, expout_size, expout_ptr): Remove variables.
552 (initialize_expout): Add "struct parser_state" argument.
553 Rewrite function to use the parser state.
554 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
555 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
556 write_exp_elt_longcst, write_exp_elt_dblcst,
557 write_exp_elt_decfloatcst, write_exp_elt_type,
558 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
559 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
560 write_dollar_variable): Likewise.
561 (parse_exp_in_context_1): Use parser state.
562 (insert_type_address_space): Add "struct parser_state" argument.
563 Use parser state.
564 (increase_expout_size): New function.
565 * parser-defs.h: Forward declare "struct language_defn" and
566 "struct parser_state".
567 (expout, expout_size, expout_ptr): Remove extern declarations.
568 (parse_gdbarch, parse_language): Rewrite macro declarations to
569 accept the parser state.
570 (struct parser_state): New struct.
571 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
572 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
573 write_exp_elt_decfloatcst, write_exp_elt_type,
574 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
575 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
576 write_exp_msymbol, write_dollar_variable,
577 mark_struct_expression, insert_type_address_space): Add "struct
578 parser_state" argument.
579 (increase_expout_size): New function.
580 * utils.c (do_clear_parser_state): New function.
581 (make_cleanup_clear_parser_state): Likewise.
582 * utils.h (make_cleanup_clear_parser_state): New function
583 prototype.
584 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
585 Update calls to write_exp* in order to pass the parser state.
586 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
587 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
588 (i386_stap_parse_special_token_three_arg_disp): Likewise.
589 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
590 * stap-probe.c (stap_parse_register_operand): Likewise.
591 (stap_parse_single_operand): Likewise.
592 (stap_parse_argument_1): Likewise.
593 (stap_parse_argument): Use parser state.
594 * stap-probe.h: Include "parser-defs.h".
595 (struct stap_parse_info) <pstate>: New field.
596 * c-exp.y (parse_type): Rewrite to use parser state.
597 (yyparse): Redefine to c_parse_internal.
598 (pstate): New global variable.
599 (parse_number): Add "struct parser_state" argument.
600 (write_destructor_name): Likewise.
601 (type_exp): Update calls to write_exp* and similars in order to
602 use parser state.
603 (exp1, exp, variable, qualified_name, space_identifier,
604 typename, typebase): Likewise.
605 (write_destructor_name, parse_number, lex_one_token,
606 classify_name, classify_inner_name, c_parse): Add "struct
607 parser_state" argument. Update function to use parser state.
608 * c-lang.h: Forward declare "struct parser_state".
609 (c_parse): Add "struct parser_state" argument.
610 * ada-exp.y (parse_type): Rewrite macro to use parser state.
611 (yyparse): Redefine macro to ada_parse_internal.
612 (pstate): New variable.
613 (write_int, write_object_renaming, write_var_or_type,
614 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
615 type_int, type_long, type_long_long, type_float, type_double,
616 type_long_double, type_char, type_boolean, type_system_address):
617 Add "struct parser_state" argument.
618 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
619 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
620 var_or_type, aggregate, aggregate_component_list,
621 positional_list, others, component_group,
622 component_associations): Update calls to write_exp* and similar
623 functions in order to use parser state.
624 (ada_parse, write_var_from_sym, write_int,
625 write_exp_op_with_string, write_object_renaming,
626 find_primitive_type, write_selectors, write_ambiguous_var,
627 write_var_or_type, write_name_assoc, type_int, type_long,
628 type_long_long, type_float, type_double, type_long_double,
629 type_char, type_boolean, type_system_address): Add "struct
630 parser_state" argument. Adjust function to use parser state.
631 * ada-lang.c (parse): Likewise.
632 * ada-lang.h: Forward declare "struct parser_state".
633 (ada_parse): Add "struct parser_state" argument.
634 * ada-lex.l (processInt, processReal): Likewise. Adjust all
635 calls to both functions.
636 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
637 parser state.
638 (yyparse): Redefine macro to f_parse_internal.
639 (pstate): New variable.
640 (parse_number): Add "struct parser_state" argument.
641 (type_exp, exp, subrange, typebase): Update calls to write_exp*
642 and similars in order to use parser state.
643 (parse_number): Adjust code to use parser state.
644 (yylex): Likewise.
645 (f_parse): New function.
646 * f-lang.h: Forward declare "struct parser_state".
647 (f_parse): Add "struct parser_state" argument.
648 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
649 parser state.
650 (yyparse): Redefine macro for java_parse_internal.
651 (pstate): New variable.
652 (push_expression_name, push_expression_name, insert_exp): Add
653 "struct parser_state" argument.
654 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
655 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
656 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
657 PostIncrementExpression, PostDecrementExpression,
658 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
659 UnaryExpressionNotPlusMinus, CastExpression,
660 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
661 RelationalExpression, EqualityExpression, AndExpression,
662 ExclusiveOrExpression, InclusiveOrExpression,
663 ConditionalAndExpression, ConditionalOrExpression,
664 ConditionalExpression, Assignment, LeftHandSide): Update
665 calls to write_exp* and similars in order to use parser state.
666 (parse_number): Ajust code to use parser state.
667 (yylex): Likewise.
668 (java_parse): New function.
669 (push_variable): Add "struct parser_state" argument. Adjust
670 code to user parser state.
671 (push_fieldnames, push_qualified_expression_name,
672 push_expression_name, insert_exp): Likewise.
673 * jv-lang.h: Forward declare "struct parser_state".
674 (java_parse): Add "struct parser_state" argument.
675 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
676 parser state.
677 (yyparse): Redefine macro to m2_parse_internal.
678 (pstate): New variable.
679 (type_exp, exp, fblock, variable, type): Update calls to
680 write_exp* and similars to use parser state.
681 (yylex): Likewise.
682 (m2_parse): New function.
683 * m2-lang.h: Forward declare "struct parser_state".
684 (m2_parse): Add "struct parser_state" argument.
685 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
686 * objc-lang.h: Forward declare "struct parser_state".
687 (end_msglist): Add "struct parser_state" argument.
688 * p-exp.y (parse_type): Rewrite macro to use parser state.
689 (yyparse): Redefine macro to pascal_parse_internal.
690 (pstate): New variable.
691 (parse_number): Add "struct parser_state" argument.
692 (type_exp, exp1, exp, qualified_name, variable): Update calls to
693 write_exp* and similars in order to use parser state.
694 (parse_number, yylex): Adjust code to use parser state.
695 (pascal_parse): New function.
696 * p-lang.h: Forward declare "struct parser_state".
697 (pascal_parse): Add "struct parser_state" argument.
698 * go-exp.y (parse_type): Rewrite macro to use parser state.
699 (yyparse): Redefine macro to go_parse_internal.
700 (pstate): New variable.
701 (parse_number): Add "struct parser_state" argument.
702 (type_exp, exp1, exp, variable, type): Update calls to
703 write_exp* and similars in order to use parser state.
704 (parse_number, lex_one_token, classify_name, yylex): Adjust code
705 to use parser state.
706 (go_parse): Likewise.
707 * go-lang.h: Forward declare "struct parser_state".
708 (go_parse): Add "struct parser_state" argument.
709
710 2014-03-27 Doug Evans <dje@google.com>
711
712 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
713
714 2014-03-27 Doug Evans <dje@google.com>
715
716 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
717 Remove argument abbrev_section. All callers updated.
718
719 2014-03-27 Doug Evans <dje@google.com>
720
721 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
722 addr_base, ranges_base.
723
724 2014-03-26 Keith Seitz <keiths@redhat.com>
725
726 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
727 types, not VAR_DOMAIN.
728
729 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
730
731 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
732 "ra" registers.
733 * features/nios2-linux.c: Regenerated.
734 * features/nios2.c: Regenerated.
735
736 2014-03-25 Pedro Alves <palves@redhat.com>
737
738 * cli/cli-script.c (script_from_file): Force the interpreter to
739 sync mode.
740
741 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
742
743 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
744 small stack allocation.
745
746 2014-03-24 Tristan Gingold <gingold@adacore.com>
747
748 * darwin-nat.c (exc_server): Remove unused prototype.
749 (darwin_dump_message): Correctly display data on x86_64.
750 (darwin_encode_reply): Fix style.
751 Add comments and fix indentation.
752
753 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
754
755 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
756
757 2014-03-22 Doug Evans <xdje42@gmail.com>
758
759 * infcmd.c: Whitespace fixes.
760 (interrupt_command): Merge two function comments into one.
761
762 2014-03-22 Doug Evans <xdje42@gmail.com>
763
764 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
765 All uses updated.
766
767 2014-03-22 Yao Qi <yao@codesourcery.com>
768
769 * remote.c (target_read_live_memory): Remove.
770 (memory_xfer_live_readonly_partial): Rename it to
771 remote_xfer_live_readonly_partial. Remove argument 'object'.
772 All callers updated. Call remote_read_bytes_1
773 instead of target_read_live_memory.
774 * tracepoint.c (set_traceframe_number): Remove.
775 (make_cleanup_restore_traceframe_number): Likewise .
776 * tracepoint.h (set_traceframe_number): Remove declaration.
777 (make_cleanup_restore_traceframe_number): Likewise.
778
779 2014-03-22 Yao Qi <yao@codesourcery.com>
780
781 * remote.c (remote_read_bytes): Move code on reading from the
782 remote stub to ...
783 (remote_read_bytes_1): ... here. New function.
784
785 2014-03-22 Yao Qi <yao@codesourcery.com>
786
787 * ctf.c (ctf_xfer_partial): Check the return value of
788 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
789 return TARGET_XFER_UNAVAILABLE.
790 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
791 * target.c (target_read_live_memory): Move it to remote.c.
792 (memory_xfer_live_readonly_partial): Likewise.
793 (memory_xfer_partial_1): Move some code to remote_read_bytes.
794 * remote.c (target_read_live_memory): Moved from target.c.
795 (memory_xfer_live_readonly_partial): Likewise.
796 (remote_read_bytes): Factored out from
797 memory_xfer_partial_1.
798
799 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
800
801 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
802 NULL pointer.
803
804 2014-03-21 Pedro Alves <palves@redhat.com>
805
806 * infrun.c (normal_stop): Extend comment.
807
808 2014-03-21 Hui Zhu <hui@codesourcery.com>
809 Pedro Alves <palves@redhat.com>
810
811 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
812 static buffer.
813 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
814 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
815 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
816
817 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
818
819 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
820 `z' formatted output modifier.
821
822 2014-03-20 Tom Tromey <tromey@redhat.com>
823 Sergio Durigan Junior <sergiodj@redhat.com>
824
825 * probe.c (parse_probes): Turn assert into an ordinary error.
826 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
827 exceptions when parsing probes. Rearrange the code for clarity.
828
829 2014-03-20 Tom Tromey <tromey@redhat.com>
830
831 PR gdb/14135
832 * top.c (execute_command): Only dispatch events if the command
833 started the target.
834
835 2014-03-20 Tom Tromey <tromey@redhat.com>
836
837 PR cli/15718
838 * infcall.c: Include event-top.h.
839 (run_inferior_call): Call async_disable_stdin if needed.
840
841 2014-03-20 Pedro Alves <palves@redhat.com>
842
843 * infrun.c (prepare_to_proceed): Delete.
844 (thread_still_needs_step_over): New function.
845 (find_thread_needs_step_over): New function.
846 (proceed): If the current thread needs a step-over, set its
847 steping_over_breakpoint flag. Adjust to use
848 find_thread_needs_step_over instead of prepare_to_proceed.
849 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
850 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
851 breakpoint.
852 (switch_back_to_stepped_thread): Step over breakpoints of all
853 threads not the stepping thread, before switching back to the
854 stepping thread.
855
856 2014-03-20 Pedro Alves <palves@redhat.com>
857
858 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
859 extern.
860 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
861 * infrun.c (saved_singlestep_ptid)
862 (stepping_past_singlestep_breakpoint): Delete.
863 (resume): Remove stepping_past_singlestep_breakpoint handling.
864 (proceed): Store the prev_pc of the stepping thread too.
865 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
866 singlestep_pc.
867 (enum infwait_states): Delete infwait_thread_hop_state.
868 (struct execution_control_state) <hit_singlestep_breakpoint>: New
869 field.
870 (handle_inferior_event): Adjust.
871 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
872 handling and the thread-hop code. Before removing single-step
873 breakpoints, check whether the thread hit a single-step breakpoint
874 of another thread. If it did, the trap is not a random signal.
875 (switch_back_to_stepped_thread): If the event thread hit a
876 single-step breakpoint, unblock it before switching to the
877 stepping thread. Handle the case of the stepped thread having
878 advanced already.
879 (keep_going): Handle the case of the current thread moving past a
880 single-step breakpoint.
881
882 2014-03-20 Pedro Alves <palves@redhat.com>
883
884 PR breakpoints/7143
885 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
886 are being stepped over.
887 (breakpoint_address_match): Make extern.
888 * breakpoint.h (breakpoint_address_match): New declaration.
889 * inferior.h (stepping_past_instruction_at): New declaration.
890 * infrun.c (struct step_over_info): New type.
891 (step_over_info): New global.
892 (set_step_over_info, clear_step_over_info)
893 (stepping_past_instruction_at): New functions.
894 (handle_inferior_event): Clear the step-over info when
895 trap_expected is cleared.
896 (resume): Remove now stale comment.
897 (clear_proceed_status): Clear step-over info.
898 (proceed): Adjust step-over handling to set or clear the step-over
899 info instead of removing all breakpoints.
900 (handle_signal_stop): When setting up a thread-hop, don't remove
901 breakpoints here.
902 (stop_stepping): Clear step-over info.
903 (keep_going): Adjust step-over handling to set or clear step-over
904 info and then always inserting breakpoints, instead of removing
905 all breakpoints when stepping over one.
906
907 2014-03-20 Pedro Alves <palves@redhat.com>
908
909 * infrun.c (previous_inferior_ptid): Adjust comment.
910 (deferred_step_ptid): Delete.
911 (infrun_thread_ptid_changed, prepare_to_proceed)
912 (init_wait_for_inferior): Adjust.
913 (handle_signal_stop): Delete deferred_step_ptid handling.
914
915 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
916
917 PR gdb/15358
918 * defs.h (sync_quit_force_run): New declaration.
919 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
920 * event-top.c (async_sigterm_handler): New declaration.
921 (async_sigterm_token): New variable.
922 (async_init_signals): Create also async_sigterm_token.
923 (async_sigterm_handler): New function.
924 (sync_quit_force_run): New variable.
925 (handle_sigterm): Replace quit_force call by other calls.
926 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
927
928 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
929
930 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
931 offset into SPE pseudo registers.
932
933 2014-03-18 Pedro Alves <palves@redhat.com>
934
935 PR gdb/13860
936 * inferior.h (print_stop_event): Declare.
937 * infrun.c (print_stop_event): New, factored out from ...
938 (normal_stop): ... this.
939 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
940 of bpstat_print/print_stack_frame.
941
942 2014-03-17 Tom Tromey <tromey@redhat.com>
943
944 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
945
946 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
947
948 * ada-lang.c (decode_constrained_packed_array): Perform a
949 minimal coercion for reference with coerce_ref instead of
950 ada_coerce_ref.
951
952 2014-03-17 Tristan Gingold <gingold@adacore.com>
953
954 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
955 (darwin_solib_create_inferior_hook): Emit a warning if version
956 is unhandled.
957
958 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
959
960 * python/py-value.c (get_field_flag): Cast flag_name argument to
961 PyObject_GetAttrString to support Python 2.4.
962
963 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
964
965 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
966 (Global Maintainers): Remove Jan Kratochvil.
967
968 2014-03-14 Pedro Alves <palves@redhat.com>
969
970 * inferior.h (terminal_ours_for_output): Rename to ...
971 (child_terminal_ours_for_output): ... this.
972 (terminal_save_ours): Rename to ...
973 (child_terminal_save_ours): ... this.
974 (terminal_ours): Rename to ...
975 (child_terminal_ours): ... this.
976 (terminal_inferior): Rename to ...
977 (child_terminal_inferior): ... this.
978 (terminal_init_inferior): Rename to ...
979 (child_terminal_init_inferior): ... this.
980 (terminal_init_inferior_with_pgrp): Rename to ...
981 (child_terminal_init_inferior_with_pgrp): ... this.
982 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
983 (child_terminal_init_with_pgrp): ... this.
984 (terminal_save_ours): Rename to ...
985 (child_terminal_save_ours): ... this.
986 (terminal_init_inferior): Rename to ...
987 (child_terminal_init): ... this. Adjust.
988 (terminal_inferior): Rename to ...
989 (child_terminal_inferior): ... this.
990 (terminal_ours_for_output): Rename to ...
991 (child_terminal_ours_for_output): ... this. Adjust.
992 (terminal_ours): Rename to ...
993 (child_terminal_ours): ... this.
994 (terminal_ours_1): Rename to ...
995 (child_terminal_ours_1): ... this. Adjust.
996 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
997 * windows-nat.c (do_initial_windows_stuff): Adjust.
998 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
999 (gnu_terminal_init): ... this. Adjust.
1000 (gnu_target): Adjust.
1001 * inf-child.c (inf_child_target): Adjust.
1002
1003 2014-03-13 Doug Evans <xdje42@gmail.com>
1004
1005 PR guile/16612
1006 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
1007 new eq?-hashtab.
1008
1009 2014-03-13 Doug Evans <xdje42@gmail.com>
1010
1011 * value.c (record_latest_value): Call release_value_or_incref
1012 instead of release_value.
1013
1014 2014-03-13 Pedro Alves <palves@redhat.com>
1015
1016 * procfs.c (procfs_target): Don't override to_shortname,
1017 to_longname or to_doc.
1018
1019 2014-03-13 Pedro Alves <palves@redhat.com>
1020
1021 * inf-child.c (inf_child_open, inf_child_target): Don't mention
1022 Unix in user visible strings.
1023
1024 2014-03-12 Stan Shebs <stan@codesourcery.com>
1025
1026 * gdbtypes.h: Annotate comments for Doxygen, add a page
1027 block comment with some general info.
1028
1029 2014-03-12 Pedro Alves <palves@redhat.com>
1030
1031 * infcmd.c (prepare_execution_command): New function, factored out
1032 from several execution commands.
1033 (run_command_1, continue_command, step_1, jump_command)
1034 (signal_command, until_command, advance_command, finish_command)
1035 (attach_command): Use prepare_execution_command.
1036
1037 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
1038
1039 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
1040 (MAX_BPTS): Define.
1041 (MAX_WPTS): Define.
1042 (struct arm_linux_thread_points): Removed.
1043 (struct arm_linux_process_info): New.
1044 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
1045 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
1046 (arm_linux_find_breakpoints_by_tid): Removed.
1047 (struct arch_lwp_info): New.
1048 (arm_linux_find_process_pid): New functions.
1049 (arm_linux_add_process): New functions.
1050 (arm_linux_process_info_get): New functions.
1051 (arm_linux_forget_process): New function.
1052 (arm_linux_get_debug_reg_state): New function.
1053 (struct update_registers_data): New.
1054 (update_registers_callback): New function.
1055 (arm_linux_insert_hw_breakpoint1): Updated.
1056 (arm_linux_remove_hw_breakpoint1): Updated.
1057 (arm_linux_insert_hw_breakpoint): Updated.
1058 (arm_linux_remove_hw_breakpoint): Updated.
1059 (arm_linux_insert_watchpoint): Updated.
1060 (arm_linux_remove_watchpoint): Updated.
1061 (arm_linux_new_thread): Updated.
1062 (arm_linux_prepare_to_resume): New function.
1063 (arm_linux_new_fork): New function.
1064 (_initialize_arm_linux_nat): Updated.
1065
1066 2014-03-12 Pedro Alves <palves@redhat.com>
1067
1068 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
1069
1070 2014-03-12 Tom Tromey <tromey@redhat.com>
1071
1072 * inf-child.c (return_zero): New function.
1073 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
1074 * aix-thread.c (aix_thread_inferior_created): New function.
1075 (aix_thread_attach): Remove.
1076 (init_aix_thread_ops): Don't set to_attach.
1077 (_initialize_aix_thread): Register inferior_created observer.
1078 * corelow.c (init_core_ops): Don't set to_attach or
1079 to_create_inferior.
1080 * exec.c (init_exec_ops): Don't set to_attach or
1081 to_create_inferior.
1082 * infcmd.c (run_command_1): Use find_run_target. Make direct
1083 target calls.
1084 (attach_command): Use find_attach_target. Make direct target
1085 calls.
1086 * record-btrace.c (init_record_btrace_ops): Don't set
1087 to_create_inferior.
1088 * record-full.c (record_full_can_async_p, record_full_is_async_p):
1089 Remove.
1090 (init_record_full_ops, init_record_full_core_ops): Update. Don't
1091 set to_create_inferior.
1092 * target.c (complete_target_initialization): Add assertion.
1093 (target_create_inferior): Remove.
1094 (find_default_attach, find_default_create_inferior): Remove.
1095 (find_attach_target, find_run_target): New functions.
1096 (find_default_is_async_p, find_default_can_async_p)
1097 (target_supports_non_stop, target_attach): Remove.
1098 (init_dummy_target): Don't set to_create_inferior or
1099 to_supports_non_stop.
1100 * target.h (struct target_ops) <to_attach>: Add comment. Remove
1101 TARGET_DEFAULT_FUNC.
1102 <to_create_inferior>: Add comment.
1103 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
1104 TARGET_DEFAULT_RETURN.
1105 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
1106 (find_attach_target, find_run_target): Declare.
1107 (target_create_inferior): Remove.
1108 (target_has_execution_1): Update comment.
1109 (target_supports_non_stop): Remove.
1110 * target-delegates.c: Rebuild.
1111
1112 2014-03-12 Pedro Alves <palves@redhat.com>
1113
1114 * inf-child.h: Update comment to not mention Unix.
1115
1116 2014-03-12 Pedro Alves <palves@redhat.com>
1117
1118 * inf-child.c: Update top comment to not mention Unix. Add
1119 generic comment describing how this target is meant to be used.
1120 (inf_child_post_attach, inf_child_post_startup_inferior)
1121 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
1122 Unix in comment.
1123
1124 2014-03-12 Pedro Alves <palves@redhat.com>
1125
1126 * nto-procfs.c: Include inf-child.h.
1127 (procfs_ops): Delete global.
1128 (procfs_can_run): Delete method.
1129 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
1130 target pointer instead of referencing procfs_ops.
1131 (procfs_prepare_to_store): Delete.
1132 (init_procfs_ops): Delete function.
1133 (procfs_target): New function, based on init_procfs_ops, but
1134 inherit inf_child_target.
1135 (_initialize_procfs): Use procfs_target.
1136
1137 2014-03-12 Pedro Alves <palves@redhat.com>
1138
1139 * windows-nat.c: Include inf-child.h.
1140 (windows_ops): Delete global.
1141 (windows_open, windows_prepare_to_store, windows_can_run): Delete
1142 methods.
1143 (init_windows_ops): Delete function.
1144 (windows_target): New function, based on init_windows_ops, but
1145 inherit inf_child_target.
1146 (_initialize_windows_nat): Use windows_target. Install x86
1147 specific target methods here.
1148
1149 2014-03-10 Doug Evans <xdje42@gmail.com>
1150
1151 * guile/guile.c (call_initialize_gdb_module): New function.
1152 (initialize_guile): Replace call to scm_init_guile with call to
1153 scm_with_guile.
1154
1155 2014-03-10 Joel Brobecker <brobecker@adacore.com>
1156
1157 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
1158 in call to TYPE_CODE macro.
1159
1160 2014-03-10 Jerome Guitton <guitton@adacore.com>
1161
1162 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
1163 Resolve tagged types to full view.
1164
1165 2014-03-10 Hui Zhu <hui@codesourcery.com>
1166
1167 * target.h (target_insert_breakpoint): Remove "hardware" from its
1168 comments.
1169
1170 2014-03-07 Doug Evans <dje@google.com>
1171
1172 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
1173
1174 2014-03-07 Doug Evans <dje@google.com>
1175
1176 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
1177 Remove unused local comp_dir_attr. Assert exactly one of
1178 stub_comp_unit_die, stub_comp_dir is non-NULL.
1179
1180 2014-03-07 Joel Brobecker <brobecker@adacore.com>
1181
1182 * target.h (complete_target_initialization, add_target):
1183 Add comment.
1184
1185 2014-03-07 Pedro Alves <palves@redhat.com>
1186
1187 * go32-nat.c: Include inf-child.h.
1188 (go32_ops): Delete global.
1189 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
1190 Delete methods.
1191 (go32_create_inferior): Push the passed in target pointer instead
1192 of referencing go32_ops.
1193 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
1194 (go32_target): New function, based on init_go32_ops, but inherit
1195 inf_child_target.
1196 (_initialize_go32_nat): Use go32_target. Move parts of
1197 init_go32_ops here.
1198
1199 2014-03-06 Joel Brobecker <brobecker@adacore.com>
1200
1201 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
1202 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
1203 SYMBOL_VALUE_ADDRESS.
1204 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
1205
1206 2014-03-06 Yao Qi <yao@codesourcery.com>
1207
1208 * breakpoint.c (get_tracepoint_by_number): Remove argument
1209 optional_p. All callers updated. Adjust comments. Update
1210 output message.
1211 * breakpoint.h (get_tracepoint_by_number): Update declaration.
1212
1213 2014-03-06 Yao Qi <yao@codesourcery.com>
1214
1215 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
1216 early if get_number returns zero. Use 'p' instead of 'args'.
1217
1218 2014-03-06 Yao Qi <yao@codesourcery.com>
1219
1220 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
1221 message.
1222
1223 2014-03-06 Yao Qi <yao@codesourcery.com>
1224
1225 PR breakpoints/16508
1226 * tracepoint.c (check_trace_running): New function.
1227 (trace_find_command): Move code to check_trace_running and
1228 call check_trace_running.
1229 (trace_find_pc_command): Likewise.
1230 (trace_find_tracepoint_command): Likewise.
1231 (trace_find_line_command): Likewise.
1232 (trace_find_range_command): Likewise.
1233 * tracepoint.h (check_trace_running): Likewise.
1234 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
1235
1236 2014-03-06 Yao Qi <yao@codesourcery.com>
1237
1238 * target.h (struct target_ops) <to_traceframe_info>: Use
1239 TARGET_DEFAULT_NORETURN (tcomplain ()).
1240 * target-delegates.c: Regenerated.
1241
1242 2014-03-05 Pedro Alves <palves@redhat.com>
1243
1244 PR gdb/16575
1245 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
1246 void. Update comment.
1247 (dcache_xfer_memory): Delete.
1248 (dcache_read_memory_partial): New, based on the read bits of
1249 dcache_xfer_memory.
1250 (dcache_update): Add status parameter. Use ULONGEST for len, and
1251 adjust. Discard cache lines if the reason for the update was
1252 error.
1253 * dcache.h (dcache_xfer_memory): Delete declaration.
1254 (dcache_read_memory_partial): New declaration.
1255 (dcache_update): Update prototype.
1256 * target.c (raw_memory_xfer_partial): Update the dcache here.
1257 (memory_xfer_partial_1): Don't handle dcache writes here.
1258
1259 2014-03-05 Mike Frysinger <vapier@gentoo.org>
1260
1261 * remote-sim.c (gdbsim_load): Add const to prog.
1262
1263 2014-03-03 Tom Tromey <tromey@redhat.com>
1264
1265 * elfread.c (probe_key): Change to bfd_data.
1266 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
1267 now per-BFD, not per-objfile.
1268 * stap-probe.c (stap_probe_destroy): Update comment.
1269 (handle_stap_probe): Allocate on the per-BFD obstack.
1270
1271 2014-03-03 Tom Tromey <tromey@redhat.com>
1272
1273 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
1274 * breakpoint.c (create_longjmp_master_breakpoint): Use
1275 get_probe_address.
1276 (add_location_to_breakpoint, bkpt_probe_insert_location)
1277 (bkpt_probe_remove_location): Update.
1278 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
1279 * elfread.c (elf_symfile_relocate_probe): Remove.
1280 (elf_probe_fns): Update.
1281 (insert_exception_resume_breakpoint): Change type of "probe"
1282 parameter to bound_probe.
1283 (check_exception_resume): Update.
1284 * objfiles.c (objfile_relocate1): Don't relocate probes.
1285 * probe.c (bound_probe_s): New typedef.
1286 (parse_probes): Use get_probe_address. Set sal's objfile.
1287 (find_probe_by_pc): Return a bound_probe.
1288 (collect_probes): Return a VEC(bound_probe_s).
1289 (compare_probes): Update.
1290 (gen_ui_out_table_header_info): Change type of "probes"
1291 parameter. Update.
1292 (info_probes_for_ops): Update.
1293 (get_probe_address): New function.
1294 (probe_safe_evaluate_at_pc): Update.
1295 * probe.h (struct probe_ops) <get_probe_address>: New field.
1296 <set_semaphore, clear_semaphore>: Add objfile parameter.
1297 (struct probe) <objfile>: Remove field.
1298 <arch>: New field.
1299 <address>: Update comment.
1300 (struct bound_probe): New.
1301 (find_probe_by_pc): Return a bound_probe.
1302 (get_probe_address): Declare.
1303 * solib-svr4.c (struct probe_and_action) <address>: New field.
1304 (hash_probe_and_action, equal_probe_and_action): Update.
1305 (register_solib_event_probe): Add address parameter.
1306 (solib_event_probe_at): Update.
1307 (svr4_create_probe_breakpoints): Add objfile parameter. Use
1308 get_probe_address.
1309 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
1310 (stap_get_probe_address): New function.
1311 (stap_can_evaluate_probe_arguments, compute_probe_arg)
1312 (compile_probe_arg): Update.
1313 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
1314 address.
1315 (handle_stap_probe): Don't relocate the probe.
1316 (stap_relocate): Remove.
1317 (stap_gen_info_probes_table_values): Update.
1318 (stap_probe_ops): Remove stap_relocate.
1319 * symfile-debug.c (debug_sym_relocate_probe): Remove.
1320 (debug_sym_probe_fns): Update.
1321 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
1322 * symtab.c (init_sal): Use memset.
1323 * symtab.h (struct symtab_and_line) <objfile>: New field.
1324 * tracepoint.c (start_tracing, stop_tracing): Update.
1325
1326 2014-03-03 Tom Tromey <tromey@redhat.com>
1327
1328 * probe.h (parse_probes, find_probe_by_pc)
1329 (find_probes_in_objfile): Fix comments.
1330
1331 2014-03-02 Doug Evans <xdje42@gmail.com>
1332
1333 * infrun.c (handle_signal_stop): Replace test for
1334 TARGET_WAITKIND_STOPPED with an assert.
1335
1336 2014-03-02 Doug Evans <xdje42@gmail.com>
1337
1338 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
1339
1340 2014-03-02 Doug Evans <xdje42@gmail.com>
1341
1342 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
1343
1344 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1345
1346 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
1347
1348 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1349
1350 * i386obsd-nat.c: Include "obsd-nat.h".
1351 (_initialize_i386obsd_nat): Call obsd_add_target instead of
1352 add_target.
1353 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
1354
1355 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1356
1357 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
1358
1359 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1360
1361 * mips64obsd-nat.c: Include "obsd-nath".
1362 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
1363 add_target
1364 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
1365
1366 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1367
1368 * amd64obsd-nat.c: Include "obsd-nat,h.
1369 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
1370 add_target.
1371 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
1372
1373 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
1374
1375 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
1376 (find_overload_match): Update call to find_oload_champ.
1377 (find_oload_champ_namespace_loop): Likewise
1378
1379 2014-02-28 Mark Kettenis <kettenis@gnu.org>
1380
1381 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
1382
1383 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
1384 * config/sparc/obsd64.mh: New file.
1385 * sparc64obsd-nat.c: New file.
1386
1387 * obsd-nat.h: New file.
1388 * obsd-nat.c: New file.
1389 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
1390 (ALLDEPFILES): Add obsd-nat.c.
1391
1392 2014-02-28 Tom Tromey <tromey@redhat.com>
1393
1394 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
1395 * cli-out.h (cli_ui_out_impl): Now const.
1396 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
1397 * ui-out.c (struct ui_out) <impl>: Now const.
1398 (default_ui_out_impl): Now const.
1399 (ui_out_new): Make 'impl' parameter const.
1400 * ui-out.h (ui_out_new): Update.
1401
1402 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1403
1404 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
1405
1406 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1407
1408 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
1409
1410 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1411
1412 Additional PR 8882 fix.
1413 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
1414
1415 2014-02-27 Pedro Alves <palves@redhat.com>
1416
1417 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
1418 isn't set.
1419
1420 2014-02-27 Pedro Alves <palves@redhat.com>
1421
1422 PR 12702
1423 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
1424 * nat/linux-waitpid.c: Include string.h.
1425 (status_to_str): Moved here and made extern.
1426 * nat/linux-waitpid.h (status_to_str): New declaration.
1427
1428 2014-02-27 Hui Zhu <hui@codesourcery.com>
1429
1430 PR 12702
1431 * infrun.c (ptid_match): Move ...
1432 * common/ptid.c (ptid_match): ... here.
1433 * inferior.h (ptid_match): Move ...
1434 * common/ptid.h (ptid_match): ... here.
1435
1436 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1437
1438 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
1439 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
1440 gdb_target_obs.
1441
1442 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1443
1444 * obsd-tdep.c (obsd_auxv_parse): New function.
1445 (obsd_init_abi): Set auxv_parse.
1446
1447 * gdbarch.sh (auxv_parse): New.
1448 * gdbarch.h: Regenerated.
1449 * gdbarch.c: Regenerated.
1450 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
1451
1452 2014-02-26 Ludovic Courtès <ludo@gnu.org>
1453
1454 * guile/scm-value.c (gdbscm_history_append_x): New function.
1455 (value_functions): Add it.
1456
1457 2014-02-27 Joel Brobecker <brobecker@adacore.com>
1458
1459 * dwarf2read.c (attr_value_as_address): New function.
1460 (dwarf2_find_base_address, read_call_site_scope): Use
1461 attr_value_as_address in place of DW_ADDR.
1462 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
1463 the low and high addresses. Slight rework of the handling
1464 of the high pc being a constant form, and limit it to
1465 DWARF verson 4 or higher.
1466 (dwarf2_record_block_ranges): Likewise.
1467 (read_partial_die): Likewise.
1468 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
1469
1470 2014-02-26 Tom Tromey <tromey@redhat.com>
1471
1472 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
1473
1474 2014-02-26 Tom Tromey <tromey@redhat.com>
1475
1476 * elfread.c (elf_read_minimal_symbols): Return early if
1477 minimal symbols have already been read. Add "ei" parameter.
1478 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
1479 * minsyms.c (prim_record_minimal_symbol_full): Update.
1480 * objfiles.h (struct objstats) <n_minsyms>: Move...
1481 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
1482 * symmisc.c (print_objfile_statistics): Update.
1483
1484 2014-02-26 Tom Tromey <tromey@redhat.com>
1485
1486 * elfread.c (elf_read_minimal_symbols): New function, from
1487 elf_symfile_read.
1488 (elf_symfile_read): Call it.
1489
1490 2014-02-26 Tom Tromey <tromey@redhat.com>
1491
1492 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
1493 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
1494 (lookup_minimal_symbol_solib_trampoline)
1495 (lookup_minimal_symbol_by_pc_section_1)
1496 (lookup_minimal_symbol_and_objfile): Update.
1497 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
1498 Don't allocate a minimal symbol if minsyms have already been read.
1499 (build_minimal_symbol_hash_tables): Update.
1500 (install_minimal_symbols): Do nothing if minsyms already read.
1501 Use the per-BFD obstack.
1502 (terminate_minimal_symbol_table): Use the per-BFD obstack.
1503 * objfiles.c (allocate_objfile): Call
1504 terminate_minimal_symbol_table later.
1505 (have_minimal_symbols): Update.
1506 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
1507 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
1508 Move from struct objfile.
1509 <minsyms_read>: New field.
1510 (struct objfile) <msymbols, minimal_symbol_count,
1511 msymbol_hash, msymbol_demangled_hash>: Move.
1512 (ALL_OBJFILE_MSYMBOLS): Update.
1513 * symfile.c (read_symbols): Set minsyms_read.
1514 (reread_symbols): Update.
1515 * symmisc.c (dump_objfile, dump_msymbols): Update.
1516
1517 2014-02-26 Tom Tromey <tromey@redhat.com>
1518
1519 * minsyms.c (msymbols_sort): Remove.
1520 * minsyms.h (msymbols_sort): Remove.
1521 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
1522 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
1523 * elfread.c (elf_symtab_read): Don't add section offsets.
1524 * xcoffread.c (record_minimal_symbol): Don't add section offset
1525 to minimal symbol address.
1526 * somread.c (text_offset, data_offset): Remove.
1527 (som_symtab_read): Don't add section offsets to minimal symbol
1528 addresses.
1529 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
1530 Don't add section offsets to minimal symbols.
1531 * coffread.c (coff_symtab_read): Don't add section offsets
1532 to minimal symbol addresses.
1533 * machoread.c (macho_symtab_add_minsym): Don't add section offset
1534 to minimal symbol addresses.
1535 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
1536 section offset to minimal symbol addresses.
1537 * mdebugread.c (parse_partial_symbols): Don't add section
1538 offset to minimal symbol addresses.
1539 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
1540 offset to minimal symbol addresses.
1541
1542 2014-02-26 Tom Tromey <tromey@redhat.com>
1543
1544 * ada-lang.c (ada_main_name): Update.
1545 (ada_add_standard_exceptions): Update.
1546 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
1547 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
1548 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
1549 * auxv.c (ld_so_xfer_auxv): Update.
1550 * avr-tdep.c (avr_scan_prologue): Update.
1551 * ax-gdb.c (gen_var_ref): Update.
1552 * blockframe.c (get_pc_function_start)
1553 (find_pc_partial_function_gnu_ifunc): Update.
1554 * breakpoint.c (create_overlay_event_breakpoint)
1555 (create_longjmp_master_breakpoint)
1556 (create_std_terminate_master_breakpoint)
1557 (create_exception_master_breakpoint): Update.
1558 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
1559 * c-valprint.c (c_val_print): Update.
1560 * coff-pe-read.c (add_pe_forwarded_sym): Update.
1561 * common/agent.c (agent_look_up_symbols): Update.
1562 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
1563 * dwarf2loc.c (call_site_to_target_addr): Update.
1564 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
1565 * elfread.c (elf_gnu_ifunc_record_cache)
1566 (elf_gnu_ifunc_resolve_by_got): Update.
1567 * findvar.c (default_read_var_value): Update.
1568 * frame.c (inside_main_func): Update.
1569 * frv-tdep.c (frv_frame_this_id): Update.
1570 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
1571 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
1572 Update.
1573 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
1574 (hppa_hpux_find_dummy_bpaddr): Update.
1575 * hppa-tdep.c (hppa_symbol_address): Update.
1576 * infcmd.c (until_next_command): Update.
1577 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
1578 Update.
1579 * linespec.c (minsym_found, add_minsym): Update.
1580 * linux-nat.c (get_signo): Update.
1581 * linux-thread-db.c (inferior_has_bug): Update.
1582 * m32c-tdep.c (m32c_return_value)
1583 (m32c_m16c_address_to_pointer): Update.
1584 * m32r-tdep.c (m32r_frame_this_id): Update.
1585 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
1586 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
1587 * maint.c (maintenance_translate_address): Update.
1588 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
1589 (frob_address): New function.
1590 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
1591 frob_address. Rename parameter to "pc_in".
1592 (compare_minimal_symbols, compact_minimal_symbols): Use raw
1593 addresses.
1594 (find_solib_trampoline_target, minimal_symbol_upper_bound):
1595 Update.
1596 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
1597 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
1598 * objc-lang.c (find_objc_msgsend): Update.
1599 * objfiles.c (objfile_relocate1): Update.
1600 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
1601 * p-valprint.c (pascal_val_print): Update.
1602 * parse.c (write_exp_msymbol): Update.
1603 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
1604 (ppc_elfv2_skip_entrypoint): Update.
1605 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1606 * printcmd.c (build_address_symbolic, msym_info)
1607 (address_info): Update.
1608 * proc-service.c (ps_pglobal_lookup): Update.
1609 * psymtab.c (find_pc_sect_psymtab_closer)
1610 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
1611 Change msymbol parameter to bound_minimal_symbol.
1612 * ravenscar-thread.c (get_running_thread_id): Update.
1613 * remote.c (remote_check_symbols): Update.
1614 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
1615 address.
1616 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
1617 * solib-dsbt.c (lm_base): Update.
1618 * solib-frv.c (lm_base, main_got): Update.
1619 * solib-irix.c (locate_base): Update.
1620 * solib-som.c (som_solib_create_inferior_hook)
1621 (link_map_start): Update.
1622 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
1623 * solib-svr4.c (elf_locate_base, enable_break): Update.
1624 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
1625 (flush_ea_cache): Update.
1626 * stabsread.c (define_symbol, scan_file_globals): Update.
1627 * stack.c (find_frame_funname): Update.
1628 * symfile-debug.c (debug_qf_expand_symtabs_matching)
1629 (debug_qf_find_pc_sect_symtab): Update.
1630 * symfile.c (simple_read_overlay_table)
1631 (simple_overlay_update): Update.
1632 * symfile.h (struct quick_symbol_functions)
1633 <find_pc_sect_symtab>: Change type of msymbol to
1634 bound_minimal_symbol.
1635 * symmisc.c (dump_msymbols): Update.
1636 * symtab.c (find_pc_sect_symtab_via_partial)
1637 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
1638 (search_symbols, print_msymbol_info): Update.
1639 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
1640 (MSYMBOL_VALUE_ADDRESS): Redefine.
1641 (BMSYMBOL_VALUE_ADDRESS): New macro.
1642 * tracepoint.c (scope_info): Update.
1643 * tui/tui-disasm.c (tui_find_disassembly_address)
1644 (tui_get_begin_asm_address): Update.
1645 * valops.c (find_function_in_inferior): Update.
1646 * value.c (value_static_field, value_fn_field): Update.
1647
1648 2014-02-26 Tom Tromey <tromey@redhat.com>
1649
1650 * ada-lang.c (ada_update_initial_language): Update.
1651 (ada_main_name, ada_has_this_exception_support): Update.
1652 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
1653 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
1654 * arm-tdep.c (arm_skip_stub): Update.
1655 * auxv.c (ld_so_xfer_auxv): Update.
1656 * avr-tdep.c (avr_scan_prologue): Update.
1657 * ax-gdb.c (gen_var_ref): Update.
1658 * breakpoint.c (struct breakpoint_objfile_data)
1659 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
1660 type to bound_minimal_symbol.
1661 (create_overlay_event_breakpoint)
1662 (create_longjmp_master_breakpoint)
1663 (create_std_terminate_master_breakpoint)
1664 (create_exception_master_breakpoint): Update.
1665 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
1666 * c-exp.y (classify_name): Update.
1667 * coffread.c (coff_symfile_read): Update.
1668 * common/agent.c (agent_look_up_symbols): Update.
1669 * d-lang.c (d_main_name): Update.
1670 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
1671 * dec-thread.c (enable_dec_thread): Update.
1672 * dwarf2loc.c (call_site_to_target_addr): Update.
1673 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
1674 * eval.c (evaluate_subexp_standard): Update.
1675 * findvar.c (struct minsym_lookup_data) <result>: Change type
1676 to bound_minimal_symbol.
1677 <objfile>: Remove.
1678 (minsym_lookup_iterator_cb, default_read_var_value): Update.
1679 * frame.c (inside_main_func): Update.
1680 * frv-tdep.c (frv_frame_this_id): Update.
1681 * gcore.c (call_target_sbrk): Update.
1682 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
1683 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
1684 Update.
1685 * go-lang.c (go_main_name): Update.
1686 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
1687 (hppa_hpux_find_import_stub_for_addr): Update.
1688 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
1689 Update. Change return type.
1690 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
1691 type.
1692 * jit.c (jit_breakpoint_re_set_internal): Update.
1693 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
1694 Update.
1695 * linux-nat.c (get_signo): Update.
1696 * linux-thread-db.c (inferior_has_bug): Update
1697 * m32c-tdep.c (m32c_return_value)
1698 (m32c_m16c_address_to_pointer): Update.
1699 * m32r-tdep.c (m32r_frame_this_id): Update.
1700 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
1701 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
1702 * minsyms.c (lookup_minimal_symbol_internal): Rename to
1703 lookup_minimal_symbol. Change return type.
1704 (lookup_minimal_symbol): Remove.
1705 (lookup_bound_minimal_symbol): Update.
1706 (lookup_minimal_symbol_text): Change return type.
1707 (lookup_minimal_symbol_solib_trampoline): Change return type.
1708 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
1709 (lookup_minimal_symbol_solib_trampoline): Change return type.
1710 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
1711 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1712 (value_nsstring, find_imps): Update.
1713 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
1714 * p-lang.c (pascal_main_name): Update.
1715 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
1716 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1717 * proc-service.c (ps_pglobal_lookup): Update.
1718 * ravenscar-thread.c (get_running_thread_msymbol): Change
1719 return type.
1720 (has_ravenscar_runtime, get_running_thread_id): Update.
1721 * remote.c (remote_check_symbols): Update.
1722 * sol-thread.c (ps_pglobal_lookup): Update.
1723 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
1724 * solib-dsbt.c (lm_base): Update.
1725 * solib-frv.c (lm_base, frv_relocate_section_addresses):
1726 Update.
1727 * solib-irix.c (locate_base): Update.
1728 * solib-som.c (som_solib_create_inferior_hook)
1729 (som_solib_desire_dynamic_linker_symbols, link_map_start):
1730 Update.
1731 * solib-spu.c (spu_enable_break): Update.
1732 * solib-svr4.c (elf_locate_base, enable_break): Update.
1733 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
1734 (flush_ea_cache): Update.
1735 * stabsread.c (define_symbol): Update.
1736 * symfile.c (simple_read_overlay_table): Update.
1737 * symtab.c (find_pc_sect_line): Update.
1738 * tracepoint.c (scope_info): Update.
1739 * tui-disasm.c (tui_get_begin_asm_address): Update.
1740 * value.c (value_static_field): Update.
1741
1742 2014-02-26 Tom Tromey <tromey@redhat.com>
1743
1744 * minsyms.c (prim_record_minimal_symbol_full): Use
1745 SET_MSYMBOL_VALUE_ADDRESS.
1746 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
1747 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
1748 SET_MSYMBOL_VALUE_ADDRESS.
1749 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
1750 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
1751
1752 2014-02-26 Tom Tromey <tromey@redhat.com>
1753
1754 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
1755 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
1756 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
1757 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
1758 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
1759 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
1760 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
1761 * ada-lang.c (ada_main_name): Update.
1762 (ada_lookup_simple_minsym): Update.
1763 (ada_make_symbol_completion_list): Update.
1764 (ada_add_standard_exceptions): Update.
1765 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
1766 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
1767 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1768 * arm-tdep.c (skip_prologue_function): Update.
1769 (arm_skip_stack_protector, arm_skip_stub): Update.
1770 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1771 (arm_wince_skip_main_prologue): Update.
1772 * auxv.c (ld_so_xfer_auxv): Update.
1773 * avr-tdep.c (avr_scan_prologue): Update.
1774 * ax-gdb.c (gen_var_ref): Update.
1775 * block.c (call_site_for_pc): Update.
1776 * blockframe.c (get_pc_function_start): Update.
1777 (find_pc_partial_function_gnu_ifunc): Update.
1778 * breakpoint.c (create_overlay_event_breakpoint): Update.
1779 (create_longjmp_master_breakpoint): Update.
1780 (create_std_terminate_master_breakpoint): Update.
1781 (create_exception_master_breakpoint): Update.
1782 (resolve_sal_pc): Update.
1783 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
1784 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
1785 Update.
1786 * c-valprint.c (c_val_print): Update.
1787 * coff-pe-read.c (add_pe_forwarded_sym): Update.
1788 * coffread.c (coff_symfile_read): Update.
1789 * common/agent.c (agent_look_up_symbols): Update.
1790 * dbxread.c (find_stab_function_addr): Update.
1791 (end_psymtab): Update.
1792 * dwarf2loc.c (call_site_to_target_addr): Update.
1793 (func_verify_no_selftailcall): Update.
1794 (tailcall_dump): Update.
1795 (call_site_find_chain_1): Update.
1796 (dwarf_expr_reg_to_entry_parameter): Update.
1797 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1798 (elf_gnu_ifunc_resolve_by_got): Update.
1799 * f-valprint.c (info_common_command): Update.
1800 * findvar.c (read_var_value): Update.
1801 * frame.c (get_prev_frame_1): Update.
1802 (inside_main_func): Update.
1803 * frv-tdep.c (frv_skip_main_prologue): Update.
1804 (frv_frame_this_id): Update.
1805 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
1806 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1807 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1808 (gnuv3_skip_trampoline): Update.
1809 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
1810 (hppa64_hpux_in_solib_call_trampoline): Update.
1811 (hppa_hpux_skip_trampoline_code): Update.
1812 (hppa64_hpux_search_dummy_call_sequence): Update.
1813 (hppa_hpux_find_import_stub_for_addr): Update.
1814 (hppa_hpux_find_dummy_bpaddr): Update.
1815 * hppa-tdep.c (hppa_symbol_address)
1816 (hppa_lookup_stub_minimal_symbol): Update.
1817 * i386-tdep.c (i386_skip_main_prologue): Update.
1818 (i386_pe_skip_trampoline_code): Update.
1819 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1820 * infcall.c (get_function_name): Update.
1821 * infcmd.c (until_next_command): Update.
1822 * jit.c (jit_breakpoint_re_set_internal): Update.
1823 (jit_inferior_init): Update.
1824 * linespec.c (minsym_found): Update.
1825 (add_minsym): Update.
1826 * linux-fork.c (info_checkpoints_command): Update.
1827 * linux-nat.c (get_signo): Update.
1828 * linux-thread-db.c (inferior_has_bug): Update.
1829 * m32c-tdep.c (m32c_return_value): Update.
1830 (m32c_m16c_address_to_pointer): Update.
1831 (m32c_m16c_pointer_to_address): Update.
1832 * m32r-tdep.c (m32r_frame_this_id): Update.
1833 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
1834 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
1835 * maint.c (maintenance_translate_address): Update.
1836 * minsyms.c (add_minsym_to_hash_table): Update.
1837 (add_minsym_to_demangled_hash_table): Update.
1838 (msymbol_objfile): Update.
1839 (lookup_minimal_symbol): Update.
1840 (iterate_over_minimal_symbols): Update.
1841 (lookup_minimal_symbol_text): Update.
1842 (lookup_minimal_symbol_by_pc_name): Update.
1843 (lookup_minimal_symbol_solib_trampoline): Update.
1844 (lookup_minimal_symbol_by_pc_section_1): Update.
1845 (lookup_minimal_symbol_and_objfile): Update.
1846 (prim_record_minimal_symbol_full): Update.
1847 (compare_minimal_symbols): Update.
1848 (compact_minimal_symbols): Update.
1849 (build_minimal_symbol_hash_tables): Update.
1850 (install_minimal_symbols): Update.
1851 (terminate_minimal_symbol_table): Update.
1852 (find_solib_trampoline_target): Update.
1853 (minimal_symbol_upper_bound): Update.
1854 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
1855 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1856 (mips_skip_pic_trampoline_code): Update.
1857 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1858 * objc-lang.c (selectors_info): Update.
1859 (classes_info): Update.
1860 (find_methods): Update.
1861 (find_imps): Update.
1862 (find_objc_msgsend): Update.
1863 * objfiles.c (objfile_relocate1): Update.
1864 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
1865 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
1866 * p-valprint.c (pascal_val_print): Update.
1867 * parse.c (write_exp_msymbol): Update.
1868 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
1869 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
1870 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1871 * printcmd.c (build_address_symbolic): Update.
1872 (sym_info): Update.
1873 (address_info): Update.
1874 * proc-service.c (ps_pglobal_lookup): Update.
1875 * psymtab.c (find_pc_sect_psymtab_closer): Update.
1876 (find_pc_sect_psymtab): Update.
1877 * python/py-framefilter.c (py_print_frame): Update.
1878 * ravenscar-thread.c (get_running_thread_id): Update.
1879 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
1880 Update.
1881 * remote.c (remote_check_symbols): Update.
1882 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1883 (rs6000_skip_trampoline_code): Update.
1884 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
1885 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
1886 * solib-dsbt.c (lm_base): Update.
1887 * solib-frv.c (lm_base): Update.
1888 (main_got): Update.
1889 * solib-irix.c (locate_base): Update.
1890 * solib-som.c (som_solib_create_inferior_hook): Update.
1891 (som_solib_desire_dynamic_linker_symbols): Update.
1892 (link_map_start): Update.
1893 * solib-spu.c (spu_enable_break): Update.
1894 (ocl_enable_break): Update.
1895 * solib-svr4.c (elf_locate_base): Update.
1896 (enable_break): Update.
1897 * spu-tdep.c (spu_get_overlay_table): Update.
1898 (spu_catch_start): Update.
1899 (flush_ea_cache): Update.
1900 * stabsread.c (define_symbol): Update.
1901 (scan_file_globals): Update.
1902 * stack.c (find_frame_funname): Update.
1903 (frame_info): Update.
1904 * symfile.c (simple_read_overlay_table): Update.
1905 (simple_overlay_update): Update.
1906 * symmisc.c (dump_msymbols): Update.
1907 * symtab.c (fixup_section): Update.
1908 (find_pc_sect_line): Update.
1909 (skip_prologue_sal): Update.
1910 (search_symbols): Update.
1911 (print_msymbol_info): Update.
1912 (rbreak_command): Update.
1913 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
1914 (completion_list_objc_symbol): Update.
1915 (default_make_symbol_completion_list_break_on): Update.
1916 * tracepoint.c (scope_info): Update.
1917 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
1918 (tui_get_begin_asm_address): Update.
1919 * valops.c (find_function_in_inferior): Update.
1920 * value.c (value_static_field): Update.
1921 (value_fn_field): Update.
1922
1923 2014-02-26 Tom Tromey <tromey@redhat.com>
1924
1925 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
1926 bound minimal symbols. Move code that knows about minsym
1927 table layout...
1928 * minsyms.c (minimal_symbol_upper_bound): ... here. New
1929 function.
1930 * minsyms.h (minimal_symbol_upper_bound): Declare.
1931 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
1932 minimal_symbol_upper_bound.
1933
1934 2014-02-27 Joel Brobecker <brobecker@adacore.com>
1935
1936 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
1937 Use the type's name if its basic type does not have a tag.
1938
1939 2014-02-27 Joel Brobecker <brobecker@adacore.com>
1940
1941 * dwarf2read.c (read_subrange_type): Add comment.
1942
1943 2014-02-27 Joel Brobecker <brobecker@adacore.com>
1944
1945 * dwarf2read.c (update_enumeration_type_from_children): New
1946 function, mostly extracted from process_structure_scope.
1947 (read_enumeration_type): Call update_enumeration_type_from_children.
1948 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
1949 and flag_flag_enum fields.
1950
1951 2014-02-26 Pedro Alves <palves@redhat.com>
1952
1953 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
1954 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
1955 to_xfer_partial method.
1956
1957 2014-02-26 Pedro Alves <palves@redhat.com>
1958
1959 * target.c (complete_target_initialization): Don't install
1960 default_xfer_partial as to_xfer_partial hook.
1961 (nomemory): Delete.
1962 (update_current_target): Don't INHERIT nor de_fault
1963 deprecated_xfer_memory. Delete de_fault macro.
1964 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
1965 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
1966 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
1967 field.
1968
1969 2014-02-26 Pedro Alves <palves@redhat.com>
1970
1971 * go32-nat.c (my_write_child): New function.
1972 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
1973 (go32_xfer_partial): New function.
1974 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
1975 Instead install a to_xfer_partial hook.
1976
1977 2014-02-26 Pedro Alves <palves@redhat.com>
1978
1979 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
1980 to_xfer_partial helper. Rewrite.
1981 (procfs_xfer_partial): New function.
1982 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
1983 Install a to_xfer_partial hook.
1984
1985 2014-02-26 Pedro Alves <palves@redhat.com>
1986
1987 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
1988 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
1989 (m32r_xfer_partial): New function.
1990 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
1991 Install a to_xfer_partial hook.
1992
1993 2014-02-26 Pedro Alves <palves@redhat.com>
1994
1995 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
1996 helper.
1997 (mips_xfer_partial): New function.
1998 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
1999 hook. Install a to_xfer_partial hook.
2000
2001 2014-02-26 Joel Brobecker <brobecker@adacore.com>
2002
2003 * gdbtypes.h (create_array_type_with_stride): Add declaration.
2004 * gdbtypes.c (create_array_type_with_stride): New function,
2005 renaming create_array_type, but with an added parameter
2006 called "bit_stride".
2007 (create_array_type): Re-implement using
2008 create_array_type_with_stride.
2009 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
2010 and DW_AT_bit_stride attributes.
2011
2012 2014-02-26 Pedro Alves <palves@redhat.com>
2013
2014 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
2015 task-specific breakpoints.
2016
2017 2014-02-25 Pedro Alves <palves@redhat.com>
2018
2019 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
2020 handling of object == TARGET_OBJECT_UNWIND_TABLE.
2021
2022 2014-02-25 Stan Shebs <stan@codesourcery.com>
2023
2024 * defs.h: Annotate comments for Doxygen.
2025
2026 2014-02-25 Tom Tromey <tromey@redhat.com>
2027
2028 * target.h (target_ignore): Don't declare.
2029 * target.c (target_ignore): Remove.
2030
2031 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2032
2033 PR gdb/16626
2034 * auto-load.c (auto_load_objfile_script_1): Change filename to
2035 debugfile.
2036
2037 2014-02-25 Joel Brobecker <brobecker@adacore.com>
2038
2039 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
2040 documentation. Adjust prototype to match the target_ops
2041 to_xfer_partial method. Adjust implementation accordingly.
2042
2043 2014-02-25 Hui Zhu <hui@codesourcery.com>
2044
2045 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
2046 to_traceframe_info.
2047
2048 2014-02-25 Kevin Buettner <kevinb@redhat.com>
2049
2050 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
2051 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
2052 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
2053 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
2054 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
2055 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
2056 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
2057 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
2058 New constants.
2059 (rl78_register_type): Use a data pointer type for SP and
2060 new pseudo registers mentioned above. Use a 16 bit integer
2061 type for all other register pairs.
2062 (rl78_register_name, rl78_g10_register_name): Update for
2063 new pseudo registers.
2064 (rl78_pseudo_register_read): Likewise.
2065 (rl78_pseudo_register_write): Likewise.
2066 (rl78_dwarf_reg_to_regnum): Return register numbers representing
2067 to the newly added pseudo registers.
2068
2069 2014-02-24 Doug Evans <dje@google.com>
2070
2071 * value.c (record_latest_value): Fix comment.
2072 * printcmd.c (print_command_1): Remove code to handle -1 return from
2073 record_latest_value.
2074
2075 2014-02-24 Pedro Alves <palves@redhat.com>
2076
2077 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
2078 deprecated_xfer_memory hook.
2079 (procfs_xfer_partial): Call procfs_xfer_memory instead
2080 of the deprecated_xfer_memory target hook.
2081 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
2082 helper.
2083
2084 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
2085
2086 * windows-nat.c (windows_xfer_shared_libraries): Return
2087 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
2088 requested object is TARGET_OBJECT_LIBRARIES.
2089
2090 2014-02-24 Yao Qi <yao@codesourcery.com>
2091
2092 * target.h (enum target_xfer_status)
2093 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
2094 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
2095 explicitly. New.
2096 * corefile.c (memory_error_message): User updated.
2097 * exec.c (section_table_read_available_memory): Likewise.
2098 * record-btrace.c (record_btrace_xfer_partial): Likewise.
2099 * target.c (target_xfer_status_to_string): Likewise.
2100 (raw_memory_xfer_partial): Likewise.
2101 (memory_xfer_partial_1, target_xfer_partial): Likewise.
2102 * valops.c (read_value_memory): Likewise.
2103 * exec.h: Update comments.
2104
2105 2014-02-24 Yao Qi <yao@codesourcery.com>
2106
2107 * target.c (target_xfer_status_to_string): Rename argument err
2108 to status.
2109 * target.h (target_xfer_status_to_string): Update declaration.
2110 Replace target_xfer_error_to_string with
2111 target_xfer_status_to_string in comment.
2112
2113 2014-02-24 Yao Qi <yao@codesourcery.com>
2114
2115 * mips-linux-nat.c (super_close): Update its type.
2116 (mips_linux_close): Pass 'self' to super_close.
2117
2118 2014-02-24 Yao Qi <yao@codesourcery.com>
2119
2120 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
2121 * corefile.c (read_memory): Adjusted.
2122 * target.c (target_write_with_progress): Adjusted.
2123
2124 2014-02-23 Yao Qi <yao@codesourcery.com>
2125
2126 Revert two patches:
2127
2128 2013-10-25 Yao Qi <yao@codesourcery.com>
2129
2130 * remote.c (remote_traceframe_info): Return early if
2131 traceframe is not selected.
2132
2133 2013-07-19 Yao Qi <yao@codesourcery.com>
2134
2135 * target.c (update_current_target): Change the default action
2136 of 'to_traceframe_info' from tcomplain to return_zero.
2137 * target.h (struct target_ops) <to_traceframe_info>: Add more
2138 comments.
2139
2140 2014-02-23 Yao Qi <yao@codesourcery.com>
2141
2142 * valops.c (read_value_memory): Rewrite it. Call
2143 target_xfer_partial in a loop.
2144 * exec.h (section_table_available_memory): Remove declaration.
2145 Move comments to ...
2146 * exec.c (section_table_available_memory): ... here. Make it
2147 static.
2148
2149 2014-02-23 Yao Qi <yao@codesourcery.com>
2150
2151 * exec.c (section_table_read_available_memory): New function.
2152 * exec.h (section_table_read_available_memory): Declare.
2153 * ctf.c (ctf_xfer_partial): Call
2154 section_table_read_available_memory.
2155 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2156
2157 2014-02-23 Yao Qi <yao@codesourcery.com>
2158
2159 * ctf.c (ctf_xfer_partial): Move code to ...
2160 * exec.c (exec_read_partial_read_only): ... it. New function.
2161 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2162 * tracefile.c: Include "exec.h".
2163 * exec.h (exec_read_partial_read_only): Declare.
2164
2165 2014-02-23 Yao Qi <yao@codesourcery.com>
2166
2167 * tracefile-tfile.c (tfile_has_all_memory): Remove.
2168 (tfile_has_memory): Remove.
2169 (init_tfile_ops): Don't set fields to_has_all_memory and
2170 to_has_memory of tfile_ops.
2171 * tracefile.c (tracefile_has_all_memory): New function.
2172 (tracefile_has_memory): New function.
2173 (init_tracefile_ops): Initialize fields to_has_all_memory and
2174 to_has_memory of 'ops'.
2175
2176 2014-02-23 Yao Qi <yao@codesourcery.com>
2177
2178 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
2179 (ctf_thread_alive, ctf_get_trace_status): Remove.
2180 (init_ctf_ops): Don't set some fields of ctf_ops. Call
2181 init_tracefile_ops.
2182 * tracefile-tfile.c (tfile_get_trace_status): Remove.
2183 (tfile_has_stack, tfile_has_registers): Remove.
2184 (tfile_thread_alive): Remove.
2185 (init_tfile_ops): Don't set some fields of tfile_ops. Call
2186 init_tracefile_ops.
2187 * tracefile.c (tracefile_has_stack): New function.
2188 (tracefile_has_registers): New function.
2189 (tracefile_thread_alive): New function.
2190 (tracefile_get_trace_status): New function.
2191 (init_tracefile_ops): New function.
2192 * tracefile.h (init_tracefile_ops): Declare.
2193
2194 2014-02-23 Yao Qi <yao@codesourcery.com>
2195
2196 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
2197 (O_LARGEFILE): Likewise.
2198 (tfile_ops): Likewise.
2199 (TRACE_HEADER_SIZE): Likewise.
2200 (trace_fd, trace_frames_offset, cur_offset): Likewise.
2201 (cur_data_size): Likewise.
2202 (tfile_read, tfile_open, tfile_interp_line): Likewise.
2203 (tfile_close, tfile_files_info): Likewise.
2204 (tfile_get_trace_status): Likewise.
2205 (tfile_get_tracepoint_status): Likewise.
2206 (tfile_get_traceframe_address): Likewise.
2207 (tfile_trace_find, match_blocktype): Likewise.
2208 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
2209 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
2210 (tfile_get_trace_state_variable_value): Likewise.
2211 (tfile_has_all_memory, tfile_has_memory): Likewise.
2212 (tfile_has_stack, tfile_has_registers): Likewise.
2213 (tfile_thread_alive, build_traceframe_info): Likewise.
2214 (tfile_traceframe_info, init_tfile_ops): Likewise.
2215 (_initialize_tracepoint): Don't call init_tfile_ops
2216 and add_target_with_completer.
2217 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
2218 exec.h, completer.h and filenames.h.
2219 (_initialize_tracefile_tfile): New function.
2220
2221 2014-02-23 Yao Qi <yao@codesourcery.com>
2222
2223 * Makefile.in (REMOTE_OBS): Append tracefile.o and
2224 tracefile-tfile.o.
2225 (HFILES_NO_SRCDIR): Add tracefile.h.
2226 * ctf.c: Include "tracefile.h".
2227 * tracefile.h: New file.
2228 * tracefile.c: New file
2229 * tracefile-tfile.c: New file.
2230 * tracepoint.c: Include "tracefile.h".
2231 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
2232 (stop_reason_names): Add const.
2233 (trace_file_writer_xfree): Move it to tracefile.c.
2234 (trace_save, trace_save_command, trace_save_tfile): Likewise.
2235 (trace_save_ctf): Likewise.
2236 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
2237 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
2238 (tfile_write_header, tfile_write_regblock_type): Likewise.
2239 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
2240 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
2241 (tfile_write_raw_data, tfile_end): Likewise.
2242 (tfile_trace_file_writer_new): Likewise.
2243 (free_uploaded_tp): Make it extern.
2244 (free_uploaded_tsv): Make it extern.
2245 (_initialize_tracepoint): Move code to register command 'tsave'
2246 to tracefile.c.
2247 * tracepoint.h (stop_reason_names): Declare.
2248 (struct trace_frame_write_ops): Move it to tracefile.h.
2249 (struct trace_file_write_ops): Likewise.
2250 (struct trace_file_writer): Likewise.
2251 (free_uploaded_tsvs, free_uploaded_tps): Declare.
2252
2253 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2254
2255 PR gdb/16594
2256 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
2257 process name.
2258 (get_cores_used_by_process): New parameter num_cores, use it.
2259 (linux_xfer_osdata_processes): Pass num_cores to it.
2260 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
2261 process name.
2262
2263 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
2264
2265 * target.c (memory_xfer_partial): Fix length arg in call to
2266 breakpoint_xfer_memory.
2267
2268 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
2269
2270 PR tdep/16397
2271 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
2272 number comes after the + or - signs. Adjust length of register
2273 name to be extracted.
2274
2275 2014-02-20 Tom Tromey <tromey@redhat.com>
2276
2277 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
2278 (ada_varobj_ops): Mark "extern".
2279
2280 2014-02-20 Tom Tromey <tromey@redhat.com>
2281
2282 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
2283
2284 2014-02-20 Doug Evans <xdje42@gmail.com>
2285
2286 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
2287 All callers updated.
2288 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
2289 All callers updated.
2290 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
2291 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
2292
2293 2014-02-20 lin zuojian <manjian2006@gmail.com>
2294 Joel Brobecker <brobecker@adacore.com>
2295 Doug Evans <xdje42@gmail.com>
2296
2297 PR symtab/16581
2298 * dwarf2read.c (struct die_info): New member in_process.
2299 (reset_die_in_process): New function.
2300 (process_die): Set it at the start, reset when returning.
2301 (inherit_abstract_dies): Only call process_die if origin_child_die
2302 not already being processed.
2303
2304 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2305
2306 * windows-nat.c (handle_unload_dll): Add function documentation.
2307 (do_initial_windows_stuff): Add comment explaining why we wait
2308 until after inferior initialization has finished before
2309 processing all DLLs.
2310
2311 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2312
2313 * windows-nat.c (get_module_name): Delete.
2314 (windows_get_exec_module_filename): New function, mostly
2315 inspired from get_module_name.
2316 (windows_pid_to_exec_file): Replace call to get_module_name
2317 by call to windows_get_exec_module_filename.
2318
2319 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2320
2321 * windows-nat.c (handle_load_dll): Rewrite this function's
2322 introductory comment. Remove code using get_module_name
2323 to get the DLL's name.
2324
2325 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2326
2327 * windows-nat.c (get_windows_debug_event): Ignore
2328 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
2329 if windows_initialization_done == 0.
2330 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
2331 Adjust implementation to always load all DLLs.
2332 (do_initial_windows_stuff): Replace call to
2333 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
2334
2335 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2336
2337 * windows-nat.c (_initialize_windows_nat): Deprecate the
2338 "dll-symbols" command. Turn the "add-shared-symbol-files"
2339 and "assf" aliases into commands, and deprecate them as well.
2340 * NEWS: Add entry explaining that "dll-symbols" and its two
2341 aliases are now deprecated.
2342
2343 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2344
2345 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
2346 new-line in debug string. Remove trailing spaces.
2347
2348 2014-02-19 Stan Shebs <stan@codesourcery.com>
2349
2350 * darwin-nat.c (darwin_xfer_partial): Fix return type.
2351
2352 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
2353
2354 * NEWS: Add entry for the new feature
2355 * python/py-value.c (valpy_binop): Call value_x_binop for struct
2356 and class values.
2357
2358 2014-02-19 Stan Shebs <stan@codesourcery.com>
2359
2360 * MAINTAINERS: List Yao Qi as nios2 maintainer.
2361
2362 2014-02-19 Pedro Alves <palves@redhat.com>
2363
2364 * common/ptid.h (struct ptid): Mention that process_stratum
2365 targets should prefer ptid.lwp.
2366
2367 2014-02-19 Pedro Alves <palves@redhat.com>
2368
2369 * remote.c (remote_thread_alive, write_ptid, read_ptid)
2370 (read_ptid, remote_newthread_step, remote_threads_extra_info)
2371 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
2372 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
2373 store remote thread ids rather than ptid.tid.
2374 (_initialize_remote): Adjust.
2375
2376 2014-02-19 Tom Tromey <tromey@redhat.com>
2377
2378 * target.c (target_get_unwinder): Rewrite.
2379 (target_get_tailcall_unwinder): Rewrite.
2380 * record-btrace.c (record_btrace_to_get_unwinder): New function.
2381 (record_btrace_to_get_tailcall_unwinder): New function.
2382 (init_record_btrace_ops): Update.
2383 * target.h (struct target_ops) <to_get_unwinder,
2384 to_get_tailcall_unwinder>: Now function pointers. Use
2385 TARGET_DEFAULT_RETURN.
2386
2387 2014-02-19 Tom Tromey <tromey@redhat.com>
2388
2389 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
2390 argument.
2391 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
2392
2393 2014-02-19 Tom Tromey <tromey@redhat.com>
2394
2395 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
2396 directly.
2397 * target-delegates.c: Rebuild.
2398 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
2399 TARGET_DEFAULT_FUNC.
2400 * target.c (default_target_decr_pc_after_break): Rename from
2401 forward_target_decr_pc_after_break. Simplify.
2402 (target_decr_pc_after_break): Rely on delegation.
2403
2404 2014-02-19 Tom Tromey <tromey@redhat.com>
2405
2406 * target.c (update_current_target): Do not INHERIT to_doc or
2407 to_magic. Do not de_fault to_open or to_close.
2408
2409 2014-02-19 Tom Tromey <tromey@redhat.com>
2410
2411 * gcore.h (objfile_find_memory_regions): Declare.
2412 * gcore.c (objfile_find_memory_regions): No longer static. Add
2413 "self" argument.
2414 (_initialize_gcore): Don't call exec_set_find_memory_regions.
2415 * exec.c: Include gcore.h.
2416 (exec_set_find_memory_regions): Remove.
2417 (exec_find_memory_regions): Remove.
2418 (exec_do_find_memory_regions): Remove.
2419 (init_exec_ops): Update.
2420 * defs.h (exec_set_find_memory_regions): Remove.
2421
2422 2014-02-19 Tom Tromey <tromey@redhat.com>
2423
2424 * target-delegates.c: Rebuild.
2425 * target.h (struct target_ops) <to_extra_thread_info,
2426 to_thread_name, to_pid_to_exec_file, to_get_section_table,
2427 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
2428 not 0, in TARGET_DEFAULT_RETURN.
2429
2430 2014-02-19 Tom Tromey <tromey@redhat.com>
2431
2432 * target.c (complete_target_initialization): Remove casts. Use
2433 return_zero_has_execution.
2434 (return_zero): Add "ignore" argument.
2435 (return_zero_has_execution): New function.
2436 (init_dummy_target): Remove casts. Use
2437 return_zero_has_execution.
2438
2439 2014-02-19 Tom Tromey <tromey@redhat.com>
2440
2441 * target.c (update_current_target): Update comments. Do not
2442 INHERIT to_stratum.
2443
2444 2014-02-19 Tom Tromey <tromey@redhat.com>
2445
2446 * arm-linux-nat.c (arm_linux_read_description): Delegate when
2447 needed.
2448 * corelow.c (core_read_description): Delegate when needed.
2449 * remote.c (remote_read_description): Delegate when needed.
2450 * target-delegates.c: Rebuild.
2451 * target.c (target_read_description): Rewrite.
2452 * target.h (struct target_ops) <to_read_description>: Update
2453 comment. Use TARGET_DEFAULT_RETURN.
2454
2455 2014-02-19 Tom Tromey <tromey@redhat.com>
2456
2457 * target-delegates.c: Rebuild.
2458 * target.c (update_current_target): Don't inherit or default
2459 to_can_run.
2460 (find_default_run_target): Check against delegate_can_run.
2461 * target.h (struct target_ops) <to_can_run>: Use
2462 TARGET_DEFAULT_RETURN.
2463
2464 2014-02-19 Tom Tromey <tromey@redhat.com>
2465
2466 * target-delegates.c: Rebuild.
2467 * target.c (target_disconnect): Unconditionally delegate.
2468 * target.h (struct target_ops) <to_disconnect>: Use
2469 TARGET_DEFAULT_NORETURN.
2470
2471 2014-02-19 Tom Tromey <tromey@redhat.com>
2472
2473 * record.c (record_stop): Unconditionally delegate.
2474 * target-delegates.c: Rebuild.
2475 * target.c (target_stop_recording): Unconditionally delegate.
2476 * target.h (struct target_ops) <to_stop_recording>: Use
2477 TARGET_DEFAULT_IGNORE.
2478
2479 2014-02-19 Tom Tromey <tromey@redhat.com>
2480
2481 * target-delegates.c: Rebuild.
2482 * target.c (target_enable_btrace): Unconditionally delegate.
2483 * target.h (struct target_ops) <to_enable_btrace>: Use
2484 TARGET_DEFAULT_NORETURN.
2485
2486 2014-02-19 Tom Tromey <tromey@redhat.com>
2487
2488 * target-delegates.c: Rebuild.
2489 * target.c (target_read_btrace): Unconditionally delegate.
2490 * target.h (struct target_ops) <to_read_btrace>: Use
2491 TARGET_DEFAULT_NORETURN.
2492
2493 2014-02-19 Tom Tromey <tromey@redhat.com>
2494
2495 * target-delegates.c: Rebuild.
2496 * target.c (target_teardown_btrace): Unconditionally delegate.
2497 * target.h (struct target_ops) <to_teardown_btrace>: Use
2498 TARGET_DEFAULT_NORETURN.
2499
2500 2014-02-19 Tom Tromey <tromey@redhat.com>
2501
2502 * target-delegates.c: Rebuild.
2503 * target.c (target_disable_btrace): Unconditionally delegate.
2504 * target.h (struct target_ops) <to_disable_btrace>: Use
2505 TARGET_DEFAULT_NORETURN.
2506
2507 2014-02-19 Tom Tromey <tromey@redhat.com>
2508
2509 * target-delegates.c: Rebuild.
2510 * target.c (default_search_memory): New function.
2511 (simple_search_memory): Update comment.
2512 (target_search_memory): Unconditionally delegate.
2513 * target.h (struct target_ops) <to_search_memory>: Use
2514 TARGET_DEFAULT_FUNC.
2515
2516 2014-02-19 Tom Tromey <tromey@redhat.com>
2517
2518 * auxv.c (default_auxv_parse): No longer static.
2519 (target_auxv_parse): Unconditionally delegate.
2520 * auxv.h (default_auxv_parse): Declare.
2521 * target-delegates.c: Rebuild.
2522 * target.c: Include auxv.h.
2523 * target.h (struct target_ops) <to_auxv_parse>: Use
2524 TARGET_DEFAULT_FUNC.
2525
2526 2014-02-19 Tom Tromey <tromey@redhat.com>
2527
2528 * target-delegates.c: Rebuild.
2529 * target.c (target_memory_map): Unconditionally delegate.
2530 * target.h (struct target_ops) <to_memory_map>: Use
2531 TARGET_DEFAULT_RETURN.
2532
2533 2014-02-19 Tom Tromey <tromey@redhat.com>
2534
2535 * target-delegates.c: Rebuild.
2536 * target.c (target_thread_alive): Unconditionally delegate.
2537 * target.h (struct target_ops) <to_thread_alive>: Use
2538 TARGET_DEFAULT_RETURN.
2539
2540 2014-02-19 Tom Tromey <tromey@redhat.com>
2541
2542 * target-delegates.c: Rebuild.
2543 * target.c (target_save_record): Unconditionally delegate.
2544 * target.h (struct target_ops) <to_save_record>: Use
2545 TARGET_DEFAULT_NORETURN.
2546
2547 2014-02-19 Tom Tromey <tromey@redhat.com>
2548
2549 * target-delegates.c: Rebuild.
2550 * target.c (target_delete_record): Unconditionally delegate.
2551 * target.h (struct target_ops) <to_delete_record>: Use
2552 TARGET_DEFAULT_NORETURN.
2553
2554 2014-02-19 Tom Tromey <tromey@redhat.com>
2555
2556 * target-delegates.c: Rebuild.
2557 * target.c (target_record_is_replaying): Unconditionally
2558 delegate.
2559 * target.h (struct target_ops) <to_record_is_replaying>: Use
2560 TARGET_DEFAULT_RETURN.
2561
2562 2014-02-19 Tom Tromey <tromey@redhat.com>
2563
2564 * target-delegates.c: Rebuild.
2565 * target.c (target_goto_record_begin): Unconditionally delegate.
2566 * target.h (struct target_ops) <to_goto_record_begin>: Use
2567 TARGET_DEFAULT_NORETURN.
2568
2569 2014-02-19 Tom Tromey <tromey@redhat.com>
2570
2571 * target-delegates.c: Rebuild.
2572 * target.c (target_goto_record_end): Unconditionally delegate.
2573 * target.h (struct target_ops) <to_goto_record_end>: Use
2574 TARGET_DEFAULT_NORETURN.
2575
2576 2014-02-19 Tom Tromey <tromey@redhat.com>
2577
2578 * target-delegates.c: Rebuild.
2579 * target.c (target_goto_record): Unconditionally delegate.
2580 * target.h (struct target_ops) <to_goto_record>: Use
2581 TARGET_DEFAULT_NORETURN.
2582
2583 2014-02-19 Tom Tromey <tromey@redhat.com>
2584
2585 * target-delegates.c: Rebuild.
2586 * target.c (target_insn_history): Unconditionally delegate.
2587 * target.h (struct target_ops) <to_insn_history>: Use
2588 TARGET_DEFAULT_NORETURN.
2589
2590 2014-02-19 Tom Tromey <tromey@redhat.com>
2591
2592 * target-delegates.c: Rebuild.
2593 * target.c (target_insn_history_from): Unconditionally delegate.
2594 * target.h (struct target_ops) <to_insn_history_from>: Use
2595 TARGET_DEFAULT_NORETURN.
2596
2597 2014-02-19 Tom Tromey <tromey@redhat.com>
2598
2599 * target-delegates.c: Rebuild.
2600 * target.c (target_insn_history_range): Unconditionally delegate.
2601 * target.h (struct target_ops) <to_insn_history_range>: Use
2602 TARGET_DEFAULT_NORETURN.
2603
2604 2014-02-19 Tom Tromey <tromey@redhat.com>
2605
2606 * target-delegates.c: Rebuild.
2607 * target.c (target_call_history): Unconditionally delegate.
2608 * target.h (struct target_ops) <to_call_history>: Use
2609 TARGET_DEFAULT_NORETURN.
2610
2611 2014-02-19 Tom Tromey <tromey@redhat.com>
2612
2613 * target-delegates.c: Rebuild.
2614 * target.c (target_call_history_from): Unconditionally delegate.
2615 * target.h (struct target_ops) <to_call_history_from>: Use
2616 TARGET_DEFAULT_NORETURN.
2617
2618 2014-02-19 Tom Tromey <tromey@redhat.com>
2619
2620 * target-delegates.c: Rebuild.
2621 * target.c (target_call_history_range): Unconditionally delegate.
2622 * target.h (struct target_ops) <to_call_history_range>: Use
2623 TARGET_DEFAULT_NORETURN.
2624
2625 2014-02-19 Tom Tromey <tromey@redhat.com>
2626
2627 * target-delegates.c: Rebuild.
2628 * target.c (target_verify_memory): Unconditionally delegate.
2629 * target.h (struct target_ops) <to_verify_memory>: Use
2630 TARGET_DEFAULT_NORETURN.
2631
2632 2014-02-19 Tom Tromey <tromey@redhat.com>
2633
2634 * target-delegates.c: Rebuild.
2635 * target.c (target_core_of_thread): Unconditionally delegate.
2636 * target.h (struct target_ops) <to_core_of_thread>: Use
2637 TARGET_DEFAULT_RETURN.
2638
2639 2014-02-19 Tom Tromey <tromey@redhat.com>
2640
2641 * target-delegates.c: Rebuild.
2642 * target.c (target_flash_done): Unconditionally delegate.
2643 * target.h (struct target_ops) <to_flash_done>: Use
2644 TARGET_DEFAULT_NORETURN.
2645
2646 2014-02-19 Tom Tromey <tromey@redhat.com>
2647
2648 * target-delegates.c: Rebuild.
2649 * target.c (target_flash_erase): Unconditionally delegate.
2650 * target.h (struct target_ops) <to_flash_erase>: Use
2651 TARGET_DEFAULT_NORETURN.
2652
2653 2014-02-19 Tom Tromey <tromey@redhat.com>
2654
2655 * target-delegates.c: Rebuild.
2656 * target.c (target_get_section_table): Unconditionally delegate.
2657 * target.h (struct target_ops) <to_get_section_table>: Use
2658 TARGET_DEFAULT_RETURN.
2659
2660 2014-02-19 Tom Tromey <tromey@redhat.com>
2661
2662 * target-delegates.c: Rebuild.
2663 * target.c (target_pid_to_str): Unconditionally delegate.
2664 (init_dummy_target): Don't initialize to_pid_to_str.
2665 (default_pid_to_str): Rename from dummy_pid_to_str.
2666 * target.h (struct target_ops) <to_pid_to_str>: Use
2667 TARGET_DEFAULT_FUNC.
2668
2669 2014-02-19 Tom Tromey <tromey@redhat.com>
2670
2671 * target-delegates.c: Rebuild.
2672 * target.c (target_find_new_threads): Unconditionally delegate.
2673 * target.h (struct target_ops) <to_find_new_threads>: Use
2674 TARGET_DEFAULT_RETURN.
2675
2676 2014-02-19 Tom Tromey <tromey@redhat.com>
2677
2678 * target-delegates.c: Rebuild.
2679 * target.c (target_program_signals): Unconditionally delegate.
2680 * target.h (struct target_ops) <to_program_signals>: Use
2681 TARGET_DEFAULT_IGNORE.
2682
2683 2014-02-19 Tom Tromey <tromey@redhat.com>
2684
2685 * target-delegates.c: Rebuild.
2686 * target.c (target_pass_signals): Unconditionally delegate.
2687 * target.h (struct target_ops) <to_pass_signals>: Use
2688 TARGET_DEFAULT_IGNORE.
2689
2690 2014-02-19 Tom Tromey <tromey@redhat.com>
2691
2692 * target-delegates.c: Rebuild.
2693 * target.c (default_mourn_inferior): New function.
2694 (target_mourn_inferior): Unconditionally delegate.
2695 * target.h (struct target_ops) <to_mourn_inferior>: Use
2696 TARGET_DEFAULT_FUNC.
2697
2698 2014-02-19 Tom Tromey <tromey@redhat.com>
2699
2700 * target-delegates.c: Rebuild.
2701 * target.c (default_follow_fork): New function.
2702 (target_follow_fork): Unconditionally delegate.
2703 * target.h (struct target_ops) <to_follow_fork>: Use
2704 TARGET_DEFAULT_FUNC.
2705
2706 2014-02-19 Tom Tromey <tromey@redhat.com>
2707
2708 * target-delegates.c: Rebuild.
2709 * target.c (target_kill): Unconditionally delegate.
2710 * target.h (struct target_ops) <to_kill>: Use
2711 TARGET_DEFAULT_NORETURN.
2712
2713 2014-02-19 Tom Tromey <tromey@redhat.com>
2714
2715 * target-delegates.c: Rebuild.
2716 * target.c (target_masked_watch_num_registers): Unconditionally
2717 delegate.
2718 * target.h (struct target_ops) <to_masked_watch_num_registers>:
2719 Use TARGET_DEFAULT_RETURN.
2720
2721 2014-02-19 Tom Tromey <tromey@redhat.com>
2722
2723 * target-delegates.c: Rebuild.
2724 * target.c (target_remove_mask_watchpoint): Unconditionally
2725 delegate.
2726 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
2727 TARGET_DEFAULT_RETURN.
2728
2729 2014-02-19 Tom Tromey <tromey@redhat.com>
2730
2731 * target-delegates.c: Rebuild.
2732 * target.c (target_insert_mask_watchpoint): Unconditionally
2733 delegate.
2734 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
2735 TARGET_DEFAULT_RETURN.
2736
2737 2014-02-19 Tom Tromey <tromey@redhat.com>
2738
2739 * target-delegates.c: Rebuild.
2740 * target.c (target_ranged_break_num_registers): Unconditionally
2741 delegate.
2742 * target.h (struct target_ops) <to_ranged_break_num_registers>:
2743 Use TARGET_DEFAULT_RETURN.
2744
2745 2014-02-19 Tom Tromey <tromey@redhat.com>
2746
2747 * target-delegates.c: Rebuild.
2748 * target.c (target_fetch_registers): Unconditionally delegate.
2749 * target.h (struct target_ops) <to_fetch_registers>: Use
2750 TARGET_DEFAULT_NORETURN.
2751
2752 2014-02-19 Tom Tromey <tromey@redhat.com>
2753
2754 * target-delegates.c: Rebuild.
2755 * target.c (update_current_target): Don't inherit or default
2756 to_stop.
2757 * target.h (struct target_ops) <to_stop>: Use
2758 TARGET_DEFAULT_IGNORE.
2759
2760 2014-02-19 Tom Tromey <tromey@redhat.com>
2761
2762 * target-delegates.c: Rebuild.
2763 * target.c (update_current_target): Don't inherit or default
2764 to_can_run_breakpoint_commands.
2765 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
2766 Use TARGET_DEFAULT_RETURN.
2767
2768 2014-02-19 Tom Tromey <tromey@redhat.com>
2769
2770 * target-delegates.c: Rebuild.
2771 * target.c (update_current_target): Don't inherit or default
2772 to_supports_evaluation_of_breakpoint_conditions.
2773 * target.h (struct target_ops)
2774 <to_supports_evaluation_of_breakpoint_conditions>: Use
2775 TARGET_DEFAULT_RETURN.
2776
2777 2014-02-19 Tom Tromey <tromey@redhat.com>
2778
2779 * target-delegates.c: Rebuild.
2780 * target.c (update_current_target): Don't inherit or default
2781 to_augmented_libraries_svr4_read.
2782 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
2783 Use TARGET_DEFAULT_RETURN.
2784
2785 2014-02-19 Tom Tromey <tromey@redhat.com>
2786
2787 * target-delegates.c: Rebuild.
2788 * target.c (update_current_target): Don't inherit or default
2789 to_can_use_agent.
2790 * target.h (struct target_ops) <to_can_use_agent>: Use
2791 TARGET_DEFAULT_RETURN.
2792
2793 2014-02-19 Tom Tromey <tromey@redhat.com>
2794
2795 * target-delegates.c: Rebuild.
2796 * target.c (update_current_target): Don't inherit or default
2797 to_use_agent.
2798 * target.h (struct target_ops) <to_use_agent>: Use
2799 TARGET_DEFAULT_NORETURN.
2800
2801 2014-02-19 Tom Tromey <tromey@redhat.com>
2802
2803 * target-delegates.c: Rebuild.
2804 * target.c (update_current_target): Don't inherit or default
2805 to_traceframe_info.
2806 (return_null): Remove.
2807 * target.h (struct target_ops) <to_traceframe_info>: Use
2808 TARGET_DEFAULT_RETURN.
2809
2810 2014-02-19 Tom Tromey <tromey@redhat.com>
2811
2812 * target-delegates.c: Rebuild.
2813 * target.c (update_current_target): Don't inherit or default
2814 to_static_tracepoint_markers_by_strid.
2815 * target.h (struct target_ops)
2816 <to_static_tracepoint_markers_by_strid>: Use
2817 TARGET_DEFAULT_NORETURN.
2818
2819 2014-02-19 Tom Tromey <tromey@redhat.com>
2820
2821 * target-delegates.c: Rebuild.
2822 * target.c (update_current_target): Don't inherit or default
2823 to_static_tracepoint_marker_at.
2824 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
2825 Use TARGET_DEFAULT_RETURN.
2826
2827 2014-02-19 Tom Tromey <tromey@redhat.com>
2828
2829 * target-delegates.c: Rebuild.
2830 * target.c (update_current_target): Don't inherit or default
2831 to_set_permissions.
2832 * target.h (struct target_ops) <to_set_permissions>: Use
2833 TARGET_DEFAULT_IGNORE.
2834
2835 2014-02-19 Tom Tromey <tromey@redhat.com>
2836
2837 * target-delegates.c: Rebuild.
2838 * target.c (update_current_target): Don't inherit or default
2839 to_get_tib_address.
2840 * target.h (struct target_ops) <to_get_tib_address>: Use
2841 TARGET_DEFAULT_NORETURN.
2842
2843 2014-02-19 Tom Tromey <tromey@redhat.com>
2844
2845 * target-delegates.c: Rebuild.
2846 * target.c (update_current_target): Don't inherit or default
2847 to_set_trace_notes.
2848 * target.h (struct target_ops) <to_set_trace_notes>: Use
2849 TARGET_DEFAULT_RETURN.
2850
2851 2014-02-19 Tom Tromey <tromey@redhat.com>
2852
2853 * target-delegates.c: Rebuild.
2854 * target.c (update_current_target): Don't initialize
2855 to_set_trace_buffer_size.
2856 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
2857 TARGET_DEFAULT_IGNORE.
2858
2859 2014-02-19 Tom Tromey <tromey@redhat.com>
2860
2861 * target-delegates.c: Rebuild.
2862 * target.c (update_current_target): Don't inherit or default
2863 to_set_circular_trace_buffer.
2864 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
2865 TARGET_DEFAULT_IGNORE.
2866
2867 2014-02-19 Tom Tromey <tromey@redhat.com>
2868
2869 * target-delegates.c: Rebuild.
2870 * target.c (update_current_target): Don't inherit or default
2871 to_set_disconnected_tracing.
2872 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
2873 TARGET_DEFAULT_IGNORE.
2874
2875 2014-02-19 Tom Tromey <tromey@redhat.com>
2876
2877 * target-delegates.c: Rebuild.
2878 * target.c (update_current_target): Don't inherit or default
2879 to_get_min_fast_tracepoint_insn_len.
2880 (return_minus_one): Remove.
2881 * target.h (struct target_ops)
2882 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
2883
2884 2014-02-19 Tom Tromey <tromey@redhat.com>
2885
2886 * target-delegates.c: Rebuild.
2887 * target.c (update_current_target): Don't inherit or default
2888 to_get_raw_trace_data.
2889 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
2890 TARGET_DEFAULT_NORETURN.
2891
2892 2014-02-19 Tom Tromey <tromey@redhat.com>
2893
2894 * target-delegates.c: Rebuild.
2895 * target.c (update_current_target): Don't inherit or default
2896 to_upload_trace_state_variables.
2897 * target.h (struct target_ops) <to_upload_trace_state_variables>:
2898 Use TARGET_DEFAULT_RETURN.
2899
2900 2014-02-19 Tom Tromey <tromey@redhat.com>
2901
2902 * target-delegates.c: Rebuild.
2903 * target.c (update_current_target): Don't inherit or default
2904 to_upload_tracepoints.
2905 * target.h (struct target_ops) <to_upload_tracepoints>: Use
2906 TARGET_DEFAULT_RETURN.
2907
2908 2014-02-19 Tom Tromey <tromey@redhat.com>
2909
2910 * target-delegates.c: Rebuild.
2911 * target.c (update_current_target): Don't inherit or default
2912 to_save_trace_data.
2913 * target.h (struct target_ops) <to_save_trace_data>: Use
2914 TARGET_DEFAULT_NORETURN.
2915
2916 2014-02-19 Tom Tromey <tromey@redhat.com>
2917
2918 * target-delegates.c: Rebuild.
2919 * target.c (update_current_target): Don't inherit or default
2920 to_get_trace_state_variable_value.
2921 * target.h (struct target_ops)
2922 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
2923
2924 2014-02-19 Tom Tromey <tromey@redhat.com>
2925
2926 * target-delegates.c: Rebuild.
2927 * target.c (update_current_target): Don't inherit or default
2928 to_trace_find.
2929 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
2930
2931 2014-02-19 Tom Tromey <tromey@redhat.com>
2932
2933 * target-delegates.c: Rebuild.
2934 * target.c (update_current_target): Don't inherit or default
2935 to_trace_stop.
2936 * target.h (struct target_ops) <to_trace_stop>: Use
2937 TARGET_DEFAULT_NORETURN.
2938
2939 2014-02-19 Tom Tromey <tromey@redhat.com>
2940
2941 * target-delegates.c: Rebuild.
2942 * target.c (update_current_target): Don't inherit or default
2943 to_get_tracepoint_status.
2944 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
2945 TARGET_DEFAULT_NORETURN.
2946
2947 2014-02-19 Tom Tromey <tromey@redhat.com>
2948
2949 * target-delegates.c: Rebuild.
2950 * target.c (update_current_target): Don't inherit or default
2951 to_get_trace_status.
2952 * target.h (struct target_ops) <to_get_trace_status>: Use
2953 TARGET_DEFAULT_RETURN.
2954
2955 2014-02-19 Tom Tromey <tromey@redhat.com>
2956
2957 * target-delegates.c: Rebuild.
2958 * target.c (update_current_target): Don't inherit or default
2959 to_trace_start.
2960 * target.h (struct target_ops) <to_trace_start>: Use
2961 TARGET_DEFAULT_NORETURN.
2962
2963 2014-02-19 Tom Tromey <tromey@redhat.com>
2964
2965 * target-delegates.c: Rebuild.
2966 * target.c (update_current_target): Don't inherit or default
2967 to_trace_set_readonly_regions.
2968 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
2969 Use TARGET_DEFAULT_NORETURN.
2970
2971 2014-02-19 Tom Tromey <tromey@redhat.com>
2972
2973 * target-delegates.c: Rebuild.
2974 * target.c (update_current_target): Don't inherit or default
2975 to_disable_tracepoint.
2976 * target.h (struct target_ops) <to_disable_tracepoint>: Use
2977 TARGET_DEFAULT_NORETURN.
2978
2979 2014-02-19 Tom Tromey <tromey@redhat.com>
2980
2981 * target-delegates.c: Rebuild.
2982 * target.c (update_current_target): Don't inherit or default
2983 to_enable_tracepoint.
2984 * target.h (struct target_ops) <to_enable_tracepoint>: Use
2985 TARGET_DEFAULT_NORETURN.
2986
2987 2014-02-19 Tom Tromey <tromey@redhat.com>
2988
2989 * target-delegates.c: Rebuild.
2990 * target.c (update_current_target): Don't inherit or default
2991 to_download_trace_state_variable.
2992 * target.h (struct target_ops) <to_download_trace_state_variable>:
2993 Use TARGET_DEFAULT_NORETURN.
2994
2995 2014-02-19 Tom Tromey <tromey@redhat.com>
2996
2997 * target-delegates.c: Rebuild.
2998 * target.c (update_current_target): Don't inherit or default
2999 to_can_download_tracepoint.
3000 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
3001 TARGET_DEFAULT_RETURN.
3002
3003 2014-02-19 Tom Tromey <tromey@redhat.com>
3004
3005 * target-delegates.c: Rebuild.
3006 * target.c (update_current_target): Don't inherit or default
3007 to_download_tracepoint.
3008 * target.h (struct target_ops) <to_download_tracepoint>: Use
3009 TARGET_DEFAULT_NORETURN.
3010
3011 2014-02-19 Tom Tromey <tromey@redhat.com>
3012
3013 * target-delegates.c: Rebuild.
3014 * target.c (update_current_target): Don't inherit or default
3015 to_trace_init.
3016 * target.h (struct target_ops) <to_trace_init>: Use
3017 TARGET_DEFAULT_RETURN.
3018
3019 2014-02-19 Tom Tromey <tromey@redhat.com>
3020
3021 * target-delegates.c: Rebuild.
3022 * target.c (update_current_target): Don't inherit or default
3023 to_supports_string_tracing.
3024 * target.h (struct target_ops) <to_supports_string_tracing>: Use
3025 TARGET_DEFAULT_RETURN.
3026
3027 2014-02-19 Tom Tromey <tromey@redhat.com>
3028
3029 * target-delegates.c: Rebuild.
3030 * target.c (update_current_target): Don't inherit or default
3031 to_supports_enable_disable_tracepoint.
3032 * target.h (struct target_ops)
3033 <to_supports_enable_disable_tracepoint>: Use
3034 TARGET_DEFAULT_RETURN.
3035
3036 2014-02-19 Tom Tromey <tromey@redhat.com>
3037
3038 * target-delegates.c: Rebuild.
3039 * target.c (update_current_target): Don't inherit or default
3040 to_supports_multi_process.
3041 * target.h (struct target_ops) <to_supports_multi_process>: Use
3042 TARGET_DEFAULT_RETURN.
3043
3044 2014-02-19 Tom Tromey <tromey@redhat.com>
3045
3046 * target-delegates.c: Rebuild.
3047 * target.c (update_current_target): Don't inherit or default
3048 to_get_ada_task_ptid.
3049 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
3050 TARGET_DEFAULT_FUNC.
3051
3052 2014-02-19 Tom Tromey <tromey@redhat.com>
3053
3054 * target-delegates.c: Rebuild.
3055 * target.c (update_current_target): Don't inherit or default
3056 to_thread_architecture.
3057 * target.h (struct target_ops) <to_thread_architecture>: Use
3058 TARGET_DEFAULT_FUNC.
3059
3060 2014-02-19 Tom Tromey <tromey@redhat.com>
3061
3062 * target-delegates.c: Rebuild.
3063 * target.c (update_current_target): Don't inherit or default
3064 to_execution_direction.
3065 * target.h (struct target_ops) <to_execution_direction>: Use
3066 TARGET_DEFAULT_FUNC.
3067
3068 2014-02-19 Tom Tromey <tromey@redhat.com>
3069
3070 * target-delegates.c: Rebuild.
3071 * target.c (update_current_target): Don't inherit or default
3072 to_can_execute_reverse.
3073 * target.h (struct target_ops) <to_can_execute_reverse>: Use
3074 TARGET_DEFAULT_RETURN.
3075 (target_can_execute_reverse): Unconditionally delegate.
3076
3077 2014-02-19 Tom Tromey <tromey@redhat.com>
3078
3079 * target-delegates.c: Rebuild.
3080 * target.c (update_current_target): Don't inherit or default
3081 to_goto_bookmark.
3082 (dummy_goto_bookmark): Remove.
3083 (init_dummy_target): Don't inherit or default to_goto_bookmark.
3084 * target.h (struct target_ops) <to_goto_bookmark>: Use
3085 TARGET_DEFAULT_NORETURN.
3086
3087 2014-02-19 Tom Tromey <tromey@redhat.com>
3088
3089 * target-delegates.c: Rebuild.
3090 * target.c (update_current_target): Don't inherit or default
3091 to_get_bookmark.
3092 (dummy_get_bookmark): Remove.
3093 (init_dummy_target): Don't inherit or default to_get_bookmark.
3094 * target.h (struct target_ops) <to_get_bookmark>: Use
3095 TARGET_DEFAULT_NORETURN
3096
3097 2014-02-19 Tom Tromey <tromey@redhat.com>
3098
3099 * target-delegates.c: Rebuild.
3100 * target.c (update_current_target): Don't inherit or default
3101 to_make_corefile_notes.
3102 (init_dummy_target): Don't initialize to_make_corefile_notes.
3103 * target.h (struct target_ops) <to_make_corefile_notes>: Use
3104 TARGET_DEFAULT_FUNC.
3105
3106 2014-02-19 Tom Tromey <tromey@redhat.com>
3107
3108 * target-delegates.c: Rebuild.
3109 * target.c (update_current_target): Don't inherit or default
3110 to_find_memory_regions.
3111 (init_dummy_target): Don't initialize to_find_memory_regions.
3112 * target.h (struct target_ops) <to_find_memory_regions>: Use
3113 TARGET_DEFAULT_FUNC.
3114
3115 2014-02-19 Tom Tromey <tromey@redhat.com>
3116
3117 * target-delegates.c: Rebuild.
3118 * target.c (update_current_target): Don't inherit or default
3119 to_log_command.
3120 * target.h (struct target_ops) <to_log_command>: Use
3121 TARGET_DEFAULT_IGNORE.
3122 (target_log_command): Unconditionally delegate.
3123
3124 2014-02-19 Tom Tromey <tromey@redhat.com>
3125
3126 * target-delegates.c: Rebuild.
3127 * target.c (update_current_target): Don't inherit or default
3128 to_pid_to_exec_file.
3129 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
3130 TARGET_DEFAULT_RETURN.
3131
3132 2014-02-19 Tom Tromey <tromey@redhat.com>
3133
3134 * target-delegates.c: Rebuild.
3135 * target.c (update_current_target): Don't inherit or default
3136 to_thread_name.
3137 (target_thread_name): Unconditionally delegate.
3138 * target.h (struct target_ops) <to_thread_name>: Use
3139 TARGET_DEFAULT_RETURN.
3140
3141 2014-02-19 Tom Tromey <tromey@redhat.com>
3142
3143 * target-delegates.c: Rebuild.
3144 * target.c (update_current_target): Don't inherit or default
3145 to_extra_thread_info.
3146 * target.h (struct target_ops) <to_extra_thread_info>: Use
3147 TARGET_DEFAULT_RETURN.
3148
3149 2014-02-19 Tom Tromey <tromey@redhat.com>
3150
3151 * target-delegates.c: Rebuild.
3152 * target.c (update_current_target): Don't inherit or default
3153 to_has_exited.
3154 * target.h (struct target_ops) <to_has_exited>: Use
3155 TARGET_DEFAULT_RETURN..
3156
3157 2014-02-19 Tom Tromey <tromey@redhat.com>
3158
3159 * target-delegates.c: Rebuild.
3160 * target.c (update_current_target): Don't inherit or default
3161 to_set_syscall_catchpoint.
3162 (return_one): Remove.
3163 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
3164 TARGET_DEFAULT_RETURN.
3165
3166 2014-02-19 Tom Tromey <tromey@redhat.com>
3167
3168 * target-delegates.c: Rebuild.
3169 * target.c (update_current_target): Don't inherit or default
3170 to_insert_exec_catchpoint.
3171 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
3172 TARGET_DEFAULT_RETURN.
3173
3174 2014-01-08 Tom Tromey <tromey@redhat.com>
3175
3176 * target-delegates.c: Rebuild.
3177 * target.c (update_current_target): Don't inherit or default
3178 to_insert_exec_catchpoint.
3179 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
3180 TARGET_DEFAULT_RETURN.
3181
3182 2014-02-19 Tom Tromey <tromey@redhat.com>
3183
3184 * target-delegates.c: Rebuild.
3185 * target.c (update_current_target): Don't inherit or default
3186 to_remove_vfork_catchpoint.
3187 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
3188 TARGET_DEFAULT_RETURN.
3189
3190 2014-02-19 Tom Tromey <tromey@redhat.com>
3191
3192 * target-delegates.c: Rebuild.
3193 * target.c (update_current_target): Don't inherit or default
3194 to_insert_vfork_catchpoint.
3195 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
3196 TARGET_DEFAULT_RETURN.
3197
3198 2014-02-19 Tom Tromey <tromey@redhat.com>
3199
3200 * target-delegates.c: Rebuild.
3201 * target.c (update_current_target): Don't inherit or default
3202 to_remove_fork_catchpoint.
3203 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
3204 TARGET_DEFAULT_RETURN.
3205
3206 2014-02-19 Tom Tromey <tromey@redhat.com>
3207
3208 * target-delegates.c: Rebuild.
3209 * target.c (update_current_target): Don't inherit or default
3210 to_insert_fork_catchpoint.
3211 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
3212 TARGET_DEFAULT_RETURN.
3213
3214 2014-02-19 Tom Tromey <tromey@redhat.com>
3215
3216 * target-delegates.c: Rebuild.
3217 * target.c (update_current_target): Don't inherit or default
3218 to_post_startup_inferior.
3219 * target.h (struct target_ops) <to_post_startup_inferior>: Use
3220 TARGET_DEFAULT_IGNORE.
3221
3222 2014-02-19 Tom Tromey <tromey@redhat.com>
3223
3224 * target-delegates.c: Rebuild.
3225 * target.c (update_current_target): Don't inherit or default
3226 to_load.
3227 * target.h (struct target_ops) <to_load>: Use
3228 TARGET_DEFAULT_NORETURN.
3229
3230 2014-02-19 Tom Tromey <tromey@redhat.com>
3231
3232 * target-delegates.c: Rebuild.
3233 * target.c (update_current_target): Don't inherit or default
3234 to_terminal_info.
3235 * target.h (struct target_ops) <to_terminal_info>: Use
3236 TARGET_DEFAULT_FUNC.
3237
3238 2014-02-19 Tom Tromey <tromey@redhat.com>
3239
3240 * target-delegates.c: Rebuild.
3241 * target.c (update_current_target): Don't inherit or default
3242 to_terminal_save_ours.
3243 * target.h (struct target_ops) <to_terminal_save_ours>: Use
3244 TARGET_DEFAULT_IGNORE.
3245
3246 2014-02-19 Tom Tromey <tromey@redhat.com>
3247
3248 * target-delegates.c: Rebuild.
3249 * target.c (update_current_target): Don't inherit or default
3250 to_terminal_ours.
3251 * target.h (struct target_ops) <to_terminal_ours>: Use
3252 TARGET_DEFAULT_IGNORE.
3253
3254 2014-02-19 Tom Tromey <tromey@redhat.com>
3255
3256 * target-delegates.c: Rebuild.
3257 * target.c (update_current_target): Don't inherit or default
3258 to_terminal_ours_for_output.
3259 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
3260 TARGET_DEFAULT_IGNORE.
3261
3262 2014-02-19 Tom Tromey <tromey@redhat.com>
3263
3264 * target-delegates.c: Rebuild.
3265 * target.c (update_current_target): Don't inherit or default
3266 to_terminal_inferior.
3267 * target.h (struct target_ops) <to_terminal_inferior>: Use
3268 TARGET_DEFAULT_IGNORE.
3269
3270 2014-02-19 Tom Tromey <tromey@redhat.com>
3271
3272 * target-delegates.c: Rebuild.
3273 * target.c (update_current_target): Don't inherit or default
3274 to_terminal_init.
3275 * target.h (struct target_ops) <to_terminal_init>: Use
3276 TARGET_DEFAULT_IGNORE.
3277
3278 2014-02-19 Tom Tromey <tromey@redhat.com>
3279
3280 * target-delegates.c: Rebuild.
3281 * target.c (update_current_target): Don't inherit or default
3282 to_can_accel_watchpoint_condition.
3283 * target.h (struct target_ops)
3284 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
3285
3286 2014-02-19 Tom Tromey <tromey@redhat.com>
3287
3288 * target-delegates.c: Rebuild.
3289 * target.c (update_current_target): Don't inherit or default
3290 to_region_ok_for_hw_watchpoint.
3291 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
3292 Use TARGET_DEFAULT_FUNC.
3293
3294 2014-02-19 Tom Tromey <tromey@redhat.com>
3295
3296 * target-delegates.c: Rebuild.
3297 * target.c (update_current_target): Don't inherit or default
3298 to_watchpoint_addr_within_range.
3299 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
3300 Use TARGET_DEFAULT_FUNC.
3301
3302 2014-02-19 Tom Tromey <tromey@redhat.com>
3303
3304 * target-delegates.c: Rebuild.
3305 * target.c (update_current_target): Don't inherit or default
3306 to_remove_watchpoint.
3307 * target.h (struct target_ops) <to_remove_watchpoint>: Use
3308 TARGET_DEFAULT_NORETURN.
3309
3310 2014-02-19 Tom Tromey <tromey@redhat.com>
3311
3312 * target-delegates.c: Rebuild.
3313 * target.c (update_current_target): Don't inherit or default
3314 to_insert_watchpoint.
3315 * target.h (struct target_ops) <to_insert_watchpoint>: Use
3316 TARGET_DEFAULT_RETURN.
3317
3318 2014-02-19 Tom Tromey <tromey@redhat.com>
3319
3320 * target-delegates.c: Rebuild.
3321 * target.c (update_current_target): Don't inherit or default
3322 to_remove_hw_breakpoint.
3323 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
3324 TARGET_DEFAULT_RETURN.
3325
3326 2014-02-19 Tom Tromey <tromey@redhat.com>
3327
3328 * target-delegates.c: Rebuild.
3329 * target.c (update_current_target): Don't inherit or default
3330 to_insert_hw_breakpoint.
3331 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
3332 TARGET_DEFAULT_RETURN.
3333
3334 2014-02-19 Tom Tromey <tromey@redhat.com>
3335
3336 * target-delegates.c: Rebuild.
3337 * target.c (update_current_target): Don't inherit or default
3338 to_can_use_hw_breakpoint.
3339 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
3340 TARGET_DEFAULT_RETURN.
3341
3342 2014-02-19 Tom Tromey <tromey@redhat.com>
3343
3344 * target-delegates.c: Rebuild.
3345 * target.c (update_current_target): Don't inherit or default
3346 to_files_info.
3347 * target.h (struct target_ops) <to_files_info>: Use
3348 TARGET_DEFAULT_IGNORE.
3349
3350 2014-02-19 Tom Tromey <tromey@redhat.com>
3351
3352 * target-delegates.c: Rebuild.
3353 * target.c (update_current_target): Don't inherit or default
3354 to_store.
3355 * target.h (struct target_ops) <to_store>: Use
3356 TARGET_DEFAULT_NORETURN.
3357
3358 2014-02-19 Tom Tromey <tromey@redhat.com>
3359
3360 * target-delegates.c: Rebuild.
3361 * target.c (update_current_target): Don't inherit or default
3362 to_post_attach.
3363 * target.h (struct target_ops) <to_post_attach>: Use
3364 TARGET_DEFAULT_IGNORE.
3365
3366 2014-02-19 Tom Tromey <tromey@redhat.com>
3367
3368 * target-delegates.c: Rebuild.
3369 * target.c (update_current_target): Don't inherit or default
3370 to_rcmd.
3371 (default_rcmd): New function.
3372 (do_monitor_command): Unconditionally delegate.
3373 * target.h (struct target_ops) <to_rmcd>: Use
3374 TARGET_DEFAULT_FUNC.
3375
3376 2014-02-19 Tom Tromey <tromey@redhat.com>
3377
3378 * target-delegates.c: Rebuild.
3379 * target.c (init_dummy_target): Don't initialize to_attach.
3380 (target_attach): Unconditionally delegate.
3381 * target.h (struct target_ops) <to_attach>: Use
3382 TARGET_DEFAULT_FUNC.
3383
3384 2014-02-19 Tom Tromey <tromey@redhat.com>
3385
3386 * target-delegates.c: Rebuild.
3387 * target.c (target_detach): Unconditionally delegate.
3388 (init_dummy_target): Don't initialize to_detach.
3389 * target.h (struct target_ops) <to_detach>: Use
3390 TARGET_DEFAULT_IGNORE.
3391
3392 2014-02-19 Tom Tromey <tromey@redhat.com>
3393
3394 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
3395 Add argument.
3396 (target_augmented_libraries_svr4_read): Add argument.
3397 * target.c (update_current_target): Update.
3398 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
3399 argument.
3400
3401 2014-02-19 Tom Tromey <tromey@redhat.com>
3402
3403 * target.h (struct target_ops) <to_call_history_range>: Add
3404 argument.
3405 * target.c (target_call_history_range): Add argument.
3406 * record-btrace.c (record_btrace_call_history_range): Add 'self'
3407 argument.
3408 (record_btrace_call_history_from): Update.
3409
3410 2014-02-19 Tom Tromey <tromey@redhat.com>
3411
3412 * target.h (struct target_ops) <to_call_history_from>: Add
3413 argument.
3414 * target.c (target_call_history_from): Add argument.
3415 * record-btrace.c (record_btrace_call_history_from): Add 'self'
3416 argument.
3417
3418 2014-02-19 Tom Tromey <tromey@redhat.com>
3419
3420 * target.h (struct target_ops) <to_call_history>: Add argument.
3421 * target.c (target_call_history): Add argument.
3422 * record-btrace.c (record_btrace_call_history): Add 'self'
3423 argument.
3424
3425 2014-02-19 Tom Tromey <tromey@redhat.com>
3426
3427 * target.h (struct target_ops) <to_insn_history_range>: Add
3428 argument.
3429 * target.c (target_insn_history_range): Add argument.
3430 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
3431 argument.
3432 (record_btrace_insn_history_from): Update.
3433
3434 2014-02-19 Tom Tromey <tromey@redhat.com>
3435
3436 * target.h (struct target_ops) <to_insn_history_from>: Add
3437 argument.
3438 * target.c (target_insn_history_from): Add argument.
3439 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
3440 argument.
3441
3442 2014-02-19 Tom Tromey <tromey@redhat.com>
3443
3444 * target.h (struct target_ops) <to_insn_history>: Add argument.
3445 * target.c (target_insn_history): Add argument.
3446 * record-btrace.c (record_btrace_insn_history): Add 'self'
3447 argument.
3448
3449 2014-02-19 Tom Tromey <tromey@redhat.com>
3450
3451 * target.h (struct target_ops) <to_goto_record>: Add argument.
3452 * target.c (target_goto_record): Add argument.
3453 * record-full.c (record_full_goto): Add 'self' argument.
3454 * record-btrace.c (record_btrace_goto): Add 'self' argument.
3455
3456 2014-02-19 Tom Tromey <tromey@redhat.com>
3457
3458 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
3459 * target.c (target_goto_record_end): Add argument.
3460 * record-full.c (record_full_goto_end): Add 'self' argument.
3461 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
3462
3463 2014-02-19 Tom Tromey <tromey@redhat.com>
3464
3465 * target.h (struct target_ops) <to_goto_record_begin>: Add
3466 argument.
3467 * target.c (target_goto_record_begin): Add argument.
3468 * record-full.c (record_full_goto_begin): Add 'self' argument.
3469 * record-btrace.c (record_btrace_goto_begin): Add 'self'
3470 argument.
3471
3472 2014-02-19 Tom Tromey <tromey@redhat.com>
3473
3474 * target.h (struct target_ops) <to_record_is_replaying>: Add
3475 argument.
3476 * target.c (target_record_is_replaying): Add argument.
3477 * record-full.c (record_full_is_replaying): Add 'self' argument.
3478 * record-btrace.c (record_btrace_is_replaying): Add 'self'
3479 argument.
3480 (record_btrace_xfer_partial, record_btrace_store_registers)
3481 (record_btrace_prepare_to_store, record_btrace_resume)
3482 (record_btrace_wait, record_btrace_decr_pc_after_break)
3483 (record_btrace_find_new_threads, record_btrace_thread_alive):
3484 Update.
3485
3486 2014-02-19 Tom Tromey <tromey@redhat.com>
3487
3488 * target.h (struct target_ops) <to_delete_record>: Add argument.
3489 * target.c (target_delete_record): Add argument.
3490 * record-full.c (record_full_delete): Add 'self' argument.
3491
3492 2014-02-19 Tom Tromey <tromey@redhat.com>
3493
3494 * target.h (struct target_ops) <to_save_record>: Add argument.
3495 * target.c (target_save_record): Add argument.
3496 * record-full.c (record_full_save): Add 'self' argument.
3497 (record_full_save): Add 'self' argument.
3498
3499 2014-02-19 Tom Tromey <tromey@redhat.com>
3500
3501 * target.h (struct target_ops) <to_info_record>: Add argument.
3502 * target.c (target_info_record): Add argument.
3503 * record.c (info_record_command): Add argument.
3504 * record-full.c (record_full_info): Add 'self' argument.
3505 * record-btrace.c (record_btrace_info): Add 'self' argument.
3506
3507 2014-02-19 Tom Tromey <tromey@redhat.com>
3508
3509 * target.h (struct target_ops) <to_stop_recording>: Add argument.
3510 * target.c (target_stop_recording): Add argument.
3511 * record.c (record_stop): Add argument.
3512 * record-btrace.c (record_btrace_stop_recording): Add 'self'
3513 argument.
3514
3515 2014-02-19 Tom Tromey <tromey@redhat.com>
3516
3517 * target.h (struct target_ops) <to_read_btrace>: Add argument.
3518 * target.c (struct target_ops) <to_read_btrace>: Add argument.
3519 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
3520 argument.
3521 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
3522 (_initialize_amd64_linux_nat): Use it.
3523 * i386-linux-nat.c (i386_linux_read_btrace): New function.
3524 (_initialize_i386_linux_nat): Use it.
3525
3526 2014-02-19 Tom Tromey <tromey@redhat.com>
3527
3528 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
3529 * target.c (target_teardown_btrace): Add argument.
3530 * remote.c (remote_teardown_btrace): Add 'self' argument.
3531 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
3532 argument.
3533 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
3534 argument.
3535
3536 2014-02-19 Tom Tromey <tromey@redhat.com>
3537
3538 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
3539 * target.c (target_disable_btrace): Add argument.
3540 * remote.c (remote_disable_btrace): Add 'self' argument.
3541 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
3542 argument.
3543 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
3544 argument.
3545
3546 2014-02-19 Tom Tromey <tromey@redhat.com>
3547
3548 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
3549 * target.c (target_enable_btrace): Add argument.
3550 * remote.c (remote_enable_btrace): Add 'self' argument.
3551 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
3552 argument.
3553 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
3554 argument.
3555
3556 2014-02-19 Tom Tromey <tromey@redhat.com>
3557
3558 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
3559 (target_can_use_agent): Add argument.
3560 * target.c (update_current_target): Update.
3561 * remote.c (remote_can_use_agent): Add 'self' argument.
3562 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
3563
3564 2014-02-19 Tom Tromey <tromey@redhat.com>
3565
3566 * target.h (struct target_ops) <to_use_agent>: Add argument.
3567 (target_use_agent): Add argument.
3568 * target.c (update_current_target): Update.
3569 * remote.c (remote_use_agent): Add 'self' argument.
3570 * inf-child.c (inf_child_use_agent): Add 'self' argument.
3571
3572 2014-02-19 Tom Tromey <tromey@redhat.com>
3573
3574 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
3575 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
3576 (target_traceframe_info): Add argument.
3577 * target.c (update_current_target): Update.
3578 * remote.c (remote_traceframe_info): Add 'self' argument.
3579 * ctf.c (ctf_traceframe_info): Add 'self' argument.
3580
3581 2014-02-19 Tom Tromey <tromey@redhat.com>
3582
3583 * target.h (target_static_tracepoint_markers_by_strid): Add
3584 argument.
3585 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
3586 'self' argument.
3587 * target.c (update_current_target): Update.
3588 * remote.c (struct target_ops)
3589 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
3590 * linux-nat.c (struct target_ops)
3591 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
3592
3593 2014-02-19 Tom Tromey <tromey@redhat.com>
3594
3595 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
3596 Add argument.
3597 (target_static_tracepoint_marker_at): Add argument.
3598 * target.c (update_current_target): Update.
3599 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
3600 argument.
3601
3602 2014-02-19 Tom Tromey <tromey@redhat.com>
3603
3604 * target.h (struct target_ops) <to_set_permissions>: Add argument.
3605 (target_set_permissions): Add argument.
3606 * target.c (update_current_target): Update.
3607 * remote.c (remote_set_permissions): Add 'self' argument.
3608 (remote_start_remote): Update.
3609
3610 2014-02-19 Tom Tromey <tromey@redhat.com>
3611
3612 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
3613 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
3614 (target_get_tib_address): Add argument.
3615 * target.c (update_current_target): Update.
3616 * remote.c (remote_get_tib_address): Add 'self' argument.
3617
3618 2014-02-19 Tom Tromey <tromey@redhat.com>
3619
3620 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
3621 (target_set_trace_notes): Add argument.
3622 * target.c (update_current_target): Update.
3623 * remote.c (remote_set_trace_notes): Add 'self' argument.
3624
3625 2014-02-19 Tom Tromey <tromey@redhat.com>
3626
3627 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
3628 argument.
3629 (target_set_trace_buffer_size): Add argument.
3630 * target.c (update_current_target): Update.
3631 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
3632
3633 2014-02-19 Tom Tromey <tromey@redhat.com>
3634
3635 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
3636 argument.
3637 (target_set_circular_trace_buffer): Add argument.
3638 * target.c (update_current_target): Update.
3639 * remote.c (remote_set_circular_trace_buffer): Add 'self'
3640 argument.
3641
3642 2014-02-19 Tom Tromey <tromey@redhat.com>
3643
3644 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
3645 argument.
3646 (target_set_disconnected_tracing): Add argument.
3647 * target.c (update_current_target): Update.
3648 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
3649
3650 2014-02-19 Tom Tromey <tromey@redhat.com>
3651
3652 * target.h (struct target_ops)
3653 <to_get_min_fast_tracepoint_insn_len>: Add argument.
3654 (target_get_min_fast_tracepoint_insn_len): Add argument.
3655 * target.c (update_current_target): Update.
3656 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
3657 argument.
3658
3659 2014-02-19 Tom Tromey <tromey@redhat.com>
3660
3661 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
3662 argument.
3663 (target_get_raw_trace_data): Add argument.
3664 * target.c (update_current_target): Update.
3665 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
3666
3667 2014-02-19 Tom Tromey <tromey@redhat.com>
3668
3669 * target.h (struct target_ops) <to_upload_trace_state_variables>:
3670 Add argument.
3671 (target_upload_trace_state_variables): Add argument.
3672 * target.c (update_current_target): Update.
3673 * remote.c (remote_upload_trace_state_variables): Add 'self'
3674 argument.
3675 (remote_start_remote): Update.
3676
3677 2014-02-19 Tom Tromey <tromey@redhat.com>
3678
3679 * target.h (struct target_ops) <to_upload_tracepoints>: Add
3680 argument.
3681 (target_upload_tracepoints): Add argument.
3682 * target.c (update_current_target): Update.
3683 * remote.c (remote_upload_tracepoints): Add 'self' argument.
3684 (remote_start_remote): Update.
3685
3686 2014-02-19 Tom Tromey <tromey@redhat.com>
3687
3688 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
3689 (target_save_trace_data): Add argument.
3690 * target.c (update_current_target): Update.
3691 * remote.c (remote_save_trace_data): Add 'self' argument.
3692
3693 2014-02-19 Tom Tromey <tromey@redhat.com>
3694
3695 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
3696 argument.
3697 * target.h (struct target_ops)
3698 <to_get_trace_state_variable_value>: Add argument.
3699 (target_get_trace_state_variable_value): Add argument.
3700 * target.c (update_current_target): Update.
3701 * remote.c (remote_get_trace_state_variable_value): Add 'self'
3702 argument.
3703 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
3704
3705 2014-02-19 Tom Tromey <tromey@redhat.com>
3706
3707 * tracepoint.c (tfile_trace_find): Add 'self' argument.
3708 * target.h (struct target_ops) <to_trace_find>: Add argument.
3709 (target_trace_find): Add argument.
3710 * target.c (update_current_target): Update.
3711 * remote.c (remote_trace_find): Add 'self' argument.
3712 * ctf.c (ctf_trace_find): Add 'self' argument.
3713
3714 2014-02-19 Tom Tromey <tromey@redhat.com>
3715
3716 * target.h (struct target_ops) <to_trace_stop>: Add argument.
3717 (target_trace_stop): Add argument.
3718 * target.c (update_current_target): Update.
3719 * remote.c (remote_trace_stop): Add 'self' argument.
3720
3721 2014-02-19 Tom Tromey <tromey@redhat.com>
3722
3723 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
3724 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
3725 argument.
3726 (target_get_tracepoint_status): Add argument.
3727 * target.c (update_current_target): Update.
3728 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
3729
3730 2014-02-19 Tom Tromey <tromey@redhat.com>
3731
3732 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
3733 * target.h (struct target_ops) <to_get_trace_status>: Add
3734 argument.
3735 (target_get_trace_status): Add argument.
3736 * target.c (update_current_target): Update.
3737 * remote.c (remote_get_trace_status): Add 'self' argument.
3738 (remote_start_remote, remote_can_download_tracepoint): Update.
3739 * ctf.c (ctf_get_trace_status): Add 'self' argument.
3740
3741 2014-02-19 Tom Tromey <tromey@redhat.com>
3742
3743 * target.h (struct target_ops) <to_trace_start>: Add argument.
3744 (target_trace_start): Add argument.
3745 * target.c (update_current_target): Update.
3746 * remote.c (remote_trace_start): Add 'self' argument.
3747
3748 2014-02-19 Tom Tromey <tromey@redhat.com>
3749
3750 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
3751 Add argument.
3752 (target_trace_set_readonly_regions): Add argument.
3753 * target.c (update_current_target): Update.
3754 * remote.c (remote_trace_set_readonly_regions): Add 'self'
3755 argument.
3756
3757 2014-02-19 Tom Tromey <tromey@redhat.com>
3758
3759 * target.h (struct target_ops) <to_disable_tracepoint>: Add
3760 argument.
3761 (target_disable_tracepoint): Add argument.
3762 * target.c (update_current_target): Update.
3763 * remote.c (remote_disable_tracepoint): Add 'self' argument.
3764
3765 2014-02-19 Tom Tromey <tromey@redhat.com>
3766
3767 * target.h (struct target_ops) <to_enable_tracepoint>: Add
3768 argument.
3769 (target_enable_tracepoint): Add argument.
3770 * target.c (update_current_target): Update.
3771 * remote.c (remote_enable_tracepoint): Add 'self' argument.
3772
3773 2014-02-19 Tom Tromey <tromey@redhat.com>
3774
3775 * target.h (struct target_ops) <to_download_trace_state_variable>:
3776 Add argument.
3777 (target_download_trace_state_variable): Add argument.
3778 * target.c (update_current_target): Update.
3779 * remote.c (remote_download_trace_state_variable): Add 'self'
3780 argument.
3781
3782 2014-02-19 Tom Tromey <tromey@redhat.com>
3783
3784 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
3785 argument.
3786 (target_can_download_tracepoint): Add argument.
3787 * target.c (update_current_target): Update.
3788 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
3789
3790 2014-02-19 Tom Tromey <tromey@redhat.com>
3791
3792 * target.h (struct target_ops) <to_download_tracepoint>: Add
3793 argument.
3794 (target_download_tracepoint): Add argument.
3795 * target.c (update_current_target): Update.
3796 * remote.c (remote_download_tracepoint): Add 'self' argument.
3797
3798 2014-02-19 Tom Tromey <tromey@redhat.com>
3799
3800 * target.h (struct target_ops) <to_trace_init>: Add argument.
3801 (target_trace_init): Add argument.
3802 * target.c (update_current_target): Update.
3803 * remote.c (remote_trace_init): Add 'self' argument.
3804
3805 2014-02-19 Tom Tromey <tromey@redhat.com>
3806
3807 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
3808 * target.c (target_fileio_readlink): Add argument.
3809 * remote.c (remote_hostio_readlink): Add 'self' argument.
3810 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
3811
3812 2014-02-19 Tom Tromey <tromey@redhat.com>
3813
3814 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
3815 * target.c (target_fileio_unlink): Add argument.
3816 * remote.c (remote_hostio_unlink): Add 'self' argument.
3817 (remote_file_delete): Update.
3818 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
3819
3820 2014-02-19 Tom Tromey <tromey@redhat.com>
3821
3822 * target.h (struct target_ops) <to_fileio_close>: Add argument.
3823 * target.c (target_fileio_close): Add argument.
3824 * remote.c (remote_hostio_close): Add 'self' argument.
3825 (remote_hostio_close_cleanup): Update.
3826 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
3827 Update.
3828 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
3829
3830 2014-02-19 Tom Tromey <tromey@redhat.com>
3831
3832 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
3833 * target.c (target_fileio_pread): Add argument.
3834 * remote.c (remote_hostio_pread): Add 'self' argument.
3835 (remote_bfd_iovec_pread, remote_file_get): Update.
3836 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
3837
3838 2014-02-19 Tom Tromey <tromey@redhat.com>
3839
3840 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
3841 * target.c (target_fileio_pwrite): Add argument.
3842 * remote.c (remote_hostio_pwrite): Add 'self' argument.
3843 (remote_file_put): Update.
3844 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
3845
3846 2014-02-19 Tom Tromey <tromey@redhat.com>
3847
3848 * target.h (struct target_ops) <to_fileio_open>: Add argument.
3849 * target.c (target_fileio_open): Add argument.
3850 * remote.c (remote_hostio_open): Add 'self' argument.
3851 (remote_bfd_iovec_open): Add 'self' argument.
3852 (remote_file_put): Add 'self' argument.
3853 (remote_file_get): Add 'self' argument.
3854 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
3855
3856 2014-02-19 Tom Tromey <tromey@redhat.com>
3857
3858 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
3859 Add argument.
3860 (target_can_run_breakpoint_commands): Add argument.
3861 * target.c (update_current_target): Update.
3862 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
3863 argument.
3864 (remote_insert_breakpoint): Add 'self' argument.
3865 (remote_insert_hw_breakpoint): Add 'self' argument.
3866 (remote_can_run_breakpoint_commands): Add 'self' argument.
3867
3868 2014-02-19 Tom Tromey <tromey@redhat.com>
3869
3870 * target.h (struct target_ops)
3871 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
3872 (target_supports_evaluation_of_breakpoint_conditions): Add
3873 argument.
3874 * target.c (update_current_target): Update.
3875 * remote.c (remote_supports_cond_breakpoints): Add 'self'
3876 argument.
3877 (remote_insert_breakpoint): Add 'self' argument.
3878 (remote_insert_hw_breakpoint): Add 'self' argument.
3879 (remote_supports_cond_breakpoints): Add 'self' argument.
3880
3881 2014-02-19 Tom Tromey <tromey@redhat.com>
3882
3883 * target.h (struct target_ops) <to_supports_string_tracing>: Add
3884 argument.
3885 (target_supports_string_tracing): Add argument.
3886 * target.c (update_current_target): Update.
3887 * remote.c (remote_supports_string_tracing): Add 'self' argument.
3888
3889 2014-02-19 Tom Tromey <tromey@redhat.com>
3890
3891 * target.h (struct target_ops)
3892 <to_supports_disable_randomization>: Add argument.
3893 * target.c (find_default_supports_disable_randomization): Add
3894 argument.
3895 (target_supports_disable_randomization): Add argument.
3896 (find_default_supports_disable_randomization): Add 'self'
3897 argument.
3898 * remote.c (extended_remote_supports_disable_randomization): Add
3899 'self' argument.
3900 (remote_supports_disable_randomization): Add 'self' argument.
3901 (extended_remote_create_inferior): Update.
3902 * linux-nat.c (linux_nat_supports_disable_randomization): Add
3903 'self' argument.
3904
3905 2014-02-19 Tom Tromey <tromey@redhat.com>
3906
3907 * target.h (struct target_ops)
3908 <to_supports_enable_disable_tracepoint>: Add argument.
3909 (target_supports_enable_disable_tracepoint): Add argument.
3910 * target.c (update_current_target): Update.
3911 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
3912 argument.
3913
3914 2014-02-19 Tom Tromey <tromey@redhat.com>
3915
3916 * target.h (struct target_ops) <to_supports_multi_process>: Add
3917 argument.
3918 (target_supports_multi_process): Add argument.
3919 * target.c (update_current_target): Update.
3920 * remote.c (remote_supports_multi_process): Add 'self' argument.
3921 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
3922 argument.
3923 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
3924 argument.
3925
3926 2014-02-19 Tom Tromey <tromey@redhat.com>
3927
3928 * target.h (struct target_ops) <to_execution_direction>: Add
3929 argument.
3930 (target_execution_direction): Add argument.
3931 * target.c (default_execution_direction): Add 'self' argument.
3932 * record-full.c (record_full_execution_direction): Add 'self'
3933 argument.
3934
3935 2014-02-19 Tom Tromey <tromey@redhat.com>
3936
3937 * target.h (struct target_ops) <to_can_execute_reverse>: Add
3938 argument.
3939 (target_can_execute_reverse): Add argument.
3940 * remote.c (remote_can_execute_reverse): Add 'self' argument.
3941 * record-full.c (record_full_can_execute_reverse): Add 'self'
3942 argument.
3943 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
3944 argument.
3945
3946 2014-02-19 Tom Tromey <tromey@redhat.com>
3947
3948 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
3949 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
3950 argument.
3951 (target_get_ada_task_ptid): Add argument.
3952 * target.c (update_current_target): Update.
3953 (default_get_ada_task_ptid): Add 'self' argument.
3954 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
3955 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
3956 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
3957 argument.
3958 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
3959 argument.
3960 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
3961 argument.
3962 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
3963 argument.
3964 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
3965 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
3966 argument.
3967
3968 2014-02-19 Tom Tromey <tromey@redhat.com>
3969
3970 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
3971 (target_goto_bookmark): Add argument.
3972 * target.c (dummy_goto_bookmark): Add 'self' argument.
3973 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
3974
3975 2014-02-19 Tom Tromey <tromey@redhat.com>
3976
3977 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
3978 (target_get_bookmark): Add argument.
3979 * target.c (dummy_get_bookmark): Add 'self' argument.
3980 * record-full.c (record_full_get_bookmark): Add 'self' argument.
3981
3982 2014-02-19 Tom Tromey <tromey@redhat.com>
3983
3984 * target.h (struct target_ops) <to_make_corefile_notes>: Add
3985 argument.
3986 (target_make_corefile_notes): Add argument.
3987 * target.c (dummy_make_corefile_notes): Add 'self' argument.
3988 * procfs.c (procfs_make_note_section): Add 'self' argument.
3989 (procfs_make_note_section): Add 'self' argument.
3990 (procfs_make_note_section): Add 'self' argument.
3991 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
3992 argument.
3993 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
3994 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
3995 * exec.c (exec_make_note_section): Add 'self' argument.
3996 (exec_make_note_section): Add 'self' argument.
3997
3998 2014-02-19 Tom Tromey <tromey@redhat.com>
3999
4000 * target.h (struct target_ops) <to_find_memory_regions>: Add
4001 argument.
4002 (target_find_memory_regions): Add argument.
4003 * target.c (dummy_find_memory_regions): Add 'self' argument.
4004 * procfs.c (proc_find_memory_regions): Add 'self' argument.
4005 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
4006 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
4007 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
4008 * exec. (exec_do_find_memory_regions): New global.
4009 (exec_set_find_memory_regions): Rewrite.
4010 (exec_find_memory_regions): New function.
4011 (init_exec_ops): Use exec_find_memory_regions.
4012
4013 2014-02-19 Tom Tromey <tromey@redhat.com>
4014
4015 * target.h (struct target_ops) <to_supports_non_stop>: Add
4016 argument.
4017 * target.c (find_default_supports_non_stop): Add argument.
4018 (target_supports_non_stop): Add argument.
4019 (find_default_supports_non_stop): Add 'self' argument.
4020 * remote.c (remote_supports_non_stop): Add 'self' argument.
4021 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
4022
4023 2014-02-19 Tom Tromey <tromey@redhat.com>
4024
4025 * target.h (struct target_ops) <to_log_command>: Add argument.
4026 (target_log_command): Add argument.
4027 * serial.h (serial_log_command): Add 'self' argument.
4028 * serial.c (serial_log_command): Add 'self' argument.
4029
4030 2014-02-19 Tom Tromey <tromey@redhat.com>
4031
4032 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
4033 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
4034 argument.
4035 (target_pid_to_exec_file): Add argument.
4036 * target.c (debug_to_pid_to_exec_file): Add argument.
4037 (update_current_target): Update.
4038 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
4039 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
4040 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
4041 (linux_handle_extended_wait): Update.
4042 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
4043 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
4044 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
4045 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
4046
4047 2014-02-19 Tom Tromey <tromey@redhat.com>
4048
4049 * target.h (struct target_ops) <to_rcmd>: Add argument.
4050 (target_rcmd): Add argument.
4051 * target.c (debug_to_rcmd): Add argument.
4052 (update_current_target, do_monitor_command): Update.
4053 * remote.c (remote_rcmd): Add 'self' argument.
4054 * monitor.c (monitor_rcmd): Add 'self' argument.
4055
4056 2014-02-19 Tom Tromey <tromey@redhat.com>
4057
4058 * windows-nat.c (windows_stop): Add 'self' argument.
4059 * target.h (struct target_ops) <to_stop>: Add argument.
4060 * target.c (target_stop): Add argument.
4061 (debug_to_stop): Add argument.
4062 (update_current_target): Update.
4063 * remote.c (remote_stop): Add 'self' argument.
4064 * remote-sim.c (gdbsim_stop): Add 'self' argument.
4065 (gdbsim_cntrl_c): Update.
4066 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
4067 * procfs.c (procfs_stop): Add 'self' argument.
4068 * nto-procfs.c (procfs_stop): Add 'self' argument.
4069 * monitor.c (monitor_stop): Add 'self' argument.
4070 (monitor_open): Update.
4071 * linux-nat.c (linux_nat_stop): Add argument.
4072 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
4073 * gnu-nat.c (gnu_stop): Add 'self' argument.
4074 * darwin-nat.c (darwin_stop): Add 'self' argument.
4075
4076 2014-02-19 Tom Tromey <tromey@redhat.com>
4077
4078 * target.h (struct target_ops) <to_thread_name>: Add argument.
4079 * target.c (target_thread_name): Add argument.
4080 (update_current_target): Update.
4081 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
4082
4083 2014-02-19 Tom Tromey <tromey@redhat.com>
4084
4085 * target.h (struct target_ops) <to_extra_thread_info>: Add
4086 argument.
4087 (target_extra_thread_info): Add argument.
4088 * target.c (update_current_target): Update.
4089 * remote.c (remote_threads_extra_info): Add 'self' argument.
4090 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
4091 argument.
4092 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
4093 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
4094 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
4095 argument.
4096 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
4097 argument.
4098 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
4099 argument.
4100 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
4101 argument.
4102
4103 2014-02-19 Tom Tromey <tromey@redhat.com>
4104
4105 * target.h (struct target_ops) <to_program_signals>: Add argument.
4106 * target.c (target_program_signals): Add argument.
4107 * remote.c (remote_program_signals): Add 'self' argument.
4108
4109 2014-02-19 Tom Tromey <tromey@redhat.com>
4110
4111 * target.h (struct target_ops) <to_pass_signals>: Add argument.
4112 * target.c (target_pass_signals): Add argument.
4113 * remote.c (remote_pass_signals): Add 'self' argument.
4114 (remote_start_remote): Update.
4115 * procfs.c (procfs_pass_signals): Add 'self' argument.
4116 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
4117 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
4118 (linux_nat_create_inferior, linux_nat_attach): Update.
4119
4120 2014-02-19 Tom Tromey <tromey@redhat.com>
4121
4122 * windows-nat.c (windows_can_run): Add 'self' argument.
4123 * target.h (struct target_ops) <to_can_run>: Add argument.
4124 (target_can_run): Add argument.
4125 * target.c (debug_to_can_run): Add argument.
4126 (update_current_target): Update.
4127 * nto-procfs.c (procfs_can_run): Add 'self' argument.
4128 * inf-child.c (inf_child_can_run): Add 'self' argument.
4129 * go32-nat.c (go32_can_run): Add 'self' argument.
4130
4131 2014-02-19 Tom Tromey <tromey@redhat.com>
4132
4133 * target.h (struct target_ops) <to_has_exited>: Add argument.
4134 (target_has_exited): Add argument.
4135 * target.c (debug_to_has_exited): Add argument.
4136 (update_current_target): Update.
4137
4138 2014-02-19 Tom Tromey <tromey@redhat.com>
4139
4140 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
4141 argument.
4142 (target_set_syscall_catchpoint): Add argument.
4143 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
4144 argument.
4145 * target.c (update_current_target): Update.
4146
4147 2014-02-19 Tom Tromey <tromey@redhat.com>
4148
4149 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
4150 argument.
4151 (target_remove_exec_catchpoint): Add argument.
4152 * target.c (debug_to_remove_exec_catchpoint): Add argument.
4153 (update_current_target): Update.
4154 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
4155 argument.
4156
4157 2014-02-19 Tom Tromey <tromey@redhat.com>
4158
4159 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
4160 argument.
4161 (target_insert_exec_catchpoint): Add argument.
4162 * target.c (debug_to_insert_exec_catchpoint): Add argument.
4163 (update_current_target): Update.
4164 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
4165 argument.
4166
4167 2014-02-19 Tom Tromey <tromey@redhat.com>
4168
4169 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
4170 argument.
4171 (target_remove_vfork_catchpoint): Add argument.
4172 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
4173 (update_current_target): Update.
4174 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
4175 argument.
4176
4177 2014-02-19 Tom Tromey <tromey@redhat.com>
4178
4179 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
4180 argument.
4181 (target_insert_vfork_catchpoint): Add argument.
4182 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
4183 (update_current_target): Update.
4184 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
4185 argument.
4186
4187 2014-02-19 Tom Tromey <tromey@redhat.com>
4188
4189 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
4190 argument.
4191 (target_remove_fork_catchpoint): Add argument.
4192 * target.c (debug_to_remove_fork_catchpoint): Add argument.
4193 (update_current_target): Update.
4194 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
4195 argument.
4196
4197 2014-02-19 Tom Tromey <tromey@redhat.com>
4198
4199 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
4200 argument.
4201 (target_insert_fork_catchpoint): Add argument.
4202 * target.c (debug_to_insert_fork_catchpoint): Add argument.
4203 (update_current_target): Update.
4204 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
4205 argument.
4206
4207 2014-02-19 Tom Tromey <tromey@redhat.com>
4208
4209 * target.h (struct target_ops) <to_post_startup_inferior>: Add
4210 argument.
4211 (target_post_startup_inferior): Add argument.
4212 * target.c (debug_to_post_startup_inferior): Add argument.
4213 (update_current_target): Update.
4214 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
4215 argument.
4216 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
4217 argument.
4218 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
4219 argument.
4220 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
4221 argument.
4222 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
4223 'self' argument.
4224 (super_post_startup_inferior): Likewise.
4225 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
4226 'self' argument.
4227 (super_post_startup_inferior): Likewise.
4228 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
4229 Add 'self' argument.
4230 (super_post_startup_inferior): Likewise.
4231
4232 2014-02-19 Tom Tromey <tromey@redhat.com>
4233
4234 * target.h (struct target_ops) <to_load>: Add argument.
4235 * target.c (target_load): Add argument.
4236 (debug_to_load): Add argument.
4237 (update_current_target): Update.
4238 * remote.c (remote_load): Add 'self' argument.
4239 * remote-sim.c (gdbsim_load): Add 'self' argument.
4240 * remote-mips.c (mips_load): Add 'self' argument.
4241 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
4242 * monitor.c (monitor_load): Add 'self' argument.
4243 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
4244
4245 2014-02-19 Tom Tromey <tromey@redhat.com>
4246
4247 * target.h (struct target_ops) <to_terminal_info>: Add argument.
4248 (target_terminal_info): Add argument.
4249 * target.c (debug_to_terminal_info): Add argument.
4250 (default_terminal_info): Likewise.
4251 * inflow.c (child_terminal_info): Add 'self' argument.
4252 * inferior.h (child_terminal_info): Add 'self' argument.
4253 * go32-nat.c (go32_terminal_info): Add 'self' argument.
4254
4255 2014-02-19 Tom Tromey <tromey@redhat.com>
4256
4257 * target.h (struct target_ops) <to_terminal_save_ours>: Add
4258 argument.
4259 (target_terminal_save_ours): Add argument.
4260 * target.c (debug_to_terminal_save_ours): Add argument.
4261 (update_current_target): Update.
4262 * inflow.c (terminal_save_ours): Add 'self' argument.
4263 * inferior.h (terminal_save_ours): Add 'self' argument.
4264
4265 2014-02-19 Tom Tromey <tromey@redhat.com>
4266
4267 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
4268 (target_terminal_ours): Add argument.
4269 * target.c (debug_to_terminal_ours): Add argument.
4270 (update_current_target): Update.
4271 * remote.c (remote_terminal_ours): Add 'self' argument.
4272 (remote_close): Update.
4273 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
4274 * inflow.c (terminal_ours): Add 'self' argument.
4275 * inferior.h (terminal_ours): Add 'self' argument.
4276 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
4277
4278 2014-02-19 Pedro Alves <palves@redhat.com>
4279 Tom Tromey <tromey@redhat.com>
4280
4281 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
4282 argument.
4283 (target_terminal_ours_for_output): Add argument.
4284 * target.c (debug_to_terminal_ours_for_output): Add argument.
4285 (update_current_target): Update.
4286 * inflow.c (terminal_ours_for_output): Add 'self' argument.
4287 * inferior.h (terminal_ours_for_output): Add 'self' argument.
4288 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
4289
4290 2014-02-19 Tom Tromey <tromey@redhat.com>
4291
4292 * target.h (struct target_ops) <to_terminal_inferior>: Add
4293 argument.
4294 * target.c (target_terminal_inferior): Add argument.
4295 (update_current_target): Update.
4296 * remote.c (remote_terminal_inferior): Add 'self' argument.
4297 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
4298 * inflow.c (terminal_inferior): Add 'self' argument.
4299 * inferior.h (terminal_inferior): Add 'self' argument.
4300 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
4301 (go32_terminal_inferior): Add 'self' argument.
4302
4303 2014-02-19 Tom Tromey <tromey@redhat.com>
4304
4305 * target.h (struct target_ops) <to_terminal_init>: Add argument.
4306 (target_terminal_init): Add argument.
4307 * target.c (debug_to_terminal_init): Add argument.
4308 (update_current_target): Update.
4309 * inflow.c (terminal_init_inferior): Add 'self' argument.
4310 * inferior.h (terminal_init_inferior): Add 'self' argument.
4311 * go32-nat.c (go32_terminal_init): Add 'self' argument.
4312 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
4313
4314 2014-02-19 Tom Tromey <tromey@redhat.com>
4315
4316 * target.h (struct target_ops)
4317 <to_can_accel_watchpoint_condition>: Add argument.
4318 (target_can_accel_watchpoint_condition): Add argument.
4319 * target.c (debug_to_can_accel_watchpoint_condition): Add
4320 argument.
4321 (update_current_target): Update.
4322 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
4323 'self' argument.
4324
4325 2014-02-19 Tom Tromey <tromey@redhat.com>
4326
4327 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4328 Add argument.
4329 (target_region_ok_for_hw_watchpoint): Add argument.
4330 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
4331 (default_region_ok_for_hw_watchpoint): Add argument.
4332 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
4333 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
4334 argument.
4335 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
4336 argument.
4337 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
4338 argument.
4339 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
4340 'self' argument.
4341 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
4342 'self' argument.
4343 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
4344 'self' argument.
4345 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
4346 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
4347 'self' argument.
4348 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
4349 Add 'self' argument.
4350
4351 2014-02-19 Tom Tromey <tromey@redhat.com>
4352
4353 * target.h (struct target_ops) <to_insert_watchpoint>: Add
4354 argument.
4355 (target_insert_watchpoint): Add argument.
4356 * target.c (debug_to_insert_watchpoint): Add argument.
4357 (update_current_target): Update.
4358 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
4359 * remote.c (remote_insert_watchpoint): Add 'self' argument.
4360 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
4361 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
4362 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
4363 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
4364 argument.
4365 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
4366 (procfs_insert_hw_watchpoint): Add 'self' argument.
4367 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
4368 argument.
4369 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
4370 argument.
4371 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
4372 argument.
4373 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
4374 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
4375 argument.
4376 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
4377 'self' argument.
4378
4379 2014-02-19 Tom Tromey <tromey@redhat.com>
4380
4381 * target.h (struct target_ops) <to_remove_watchpoint>: Add
4382 argument.
4383 (target_remove_watchpoint): Add argument.
4384 * target.c (debug_to_remove_watchpoint): Add argument.
4385 (update_current_target): Update.
4386 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
4387 * remote.c (remote_remove_watchpoint): Add 'self' argument.
4388 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
4389 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
4390 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
4391 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
4392 argument.
4393 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
4394 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
4395 argument.
4396 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
4397 argument.
4398 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
4399 argument.
4400 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
4401 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
4402 argument.
4403 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
4404 'self' argument.
4405
4406 2014-02-19 Tom Tromey <tromey@redhat.com>
4407
4408 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
4409 argument.
4410 (target_remove_hw_breakpoint): Add argument.
4411 * target.c (debug_to_remove_hw_breakpoint): Add argument.
4412 (update_current_target): Update.
4413 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
4414 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
4415 argument.
4416 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
4417 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
4418 argument.
4419 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
4420 'self' argument.
4421
4422 2014-02-19 Tom Tromey <tromey@redhat.com>
4423
4424 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
4425 argument.
4426 (target_insert_hw_breakpoint): Add argument.
4427 * target.c (debug_to_insert_hw_breakpoint): Add argument.
4428 (update_current_target): Update.
4429 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
4430 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
4431 argument.
4432 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
4433 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
4434 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
4435 argument.
4436 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
4437 'self' argument.
4438
4439 2014-02-19 Tom Tromey <tromey@redhat.com>
4440
4441 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
4442 argument.
4443 (target_can_use_hardware_watchpoint): Add argument.
4444 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
4445 (update_current_target): Update.
4446 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
4447 argument.
4448 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
4449 argument.
4450 * remote.c (remote_check_watch_resources): Add 'self' argument.
4451 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
4452 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
4453 argument.
4454 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
4455 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
4456 argument.
4457 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
4458 argument.
4459 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
4460 argument.
4461 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
4462 argument.
4463 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
4464 argument.
4465 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
4466 argument.
4467 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
4468 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
4469 argument.
4470 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
4471 'self' argument.
4472
4473 2014-02-19 Tom Tromey <tromey@redhat.com>
4474
4475 * target.h (struct target_ops) <to_post_attach>: Add argument.
4476 (target_post_attach): Add argument.
4477 * target.c (debug_to_post_attach): Add argument.
4478 (update_current_target): Update.
4479 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
4480 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
4481 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
4482 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
4483 * inf-child.c (inf_child_post_attach): Add 'self' argument.
4484
4485 2014-02-19 Tom Tromey <tromey@redhat.com>
4486
4487 * windows-nat.c (windows_close): Add 'self' argument.
4488 * tracepoint.c (tfile_close): Add 'self' argument.
4489 * target.h (struct target_ops) <to_close>: Add argument.
4490 * target.c (target_close): Add argument.
4491 (update_current_target): Update.
4492 * remote.c (remote_close): Add 'self' argument.
4493 * remote-sim.c (gdbsim_close): Add 'self' argument.
4494 * remote-mips.c (mips_close): Add 'self' argument.
4495 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
4496 * record-full.c (record_full_close): Add 'self' argument.
4497 * record-btrace.c (record_btrace_close): Add 'self' argument.
4498 * monitor.h (monitor_close): Add 'self' argument.
4499 * monitor.c (monitor_close): Add 'self' argument.
4500 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
4501 * linux-nat.c (linux_nat_close): Add argument.
4502 * go32-nat.c (go32_close): Add 'self' argument.
4503 * exec.c (exec_close_1): Add 'self' argument.
4504 * ctf.c (ctf_close): Add 'self' argument.
4505 * corelow.c (core_close): Add 'self' argument.
4506 (core_close_cleanup): Update.
4507 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
4508 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
4509
4510 2014-02-19 Tom Tromey <tromey@redhat.com>
4511
4512 * remote.c (remote_load): New function.
4513 (init_remote_ops): Use it.
4514
4515 2014-02-19 Tom Tromey <tromey@redhat.com>
4516
4517 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
4518 argument.
4519 * common/linux-btrace.h (linux_supports_btrace): Update.
4520 * remote.c (remote_supports_btrace): Add "self" argument.
4521 * target-delegates.c: Rebuild.
4522 * target.c (target_supports_btrace): Remove.
4523 * target.h (struct target_ops) <to_supports_btrace>: Add
4524 target_ops argument.
4525 (target_supports_btrace): New define.
4526
4527 2014-02-19 Tom Tromey <tromey@redhat.com>
4528
4529 * record-full.c (record_full_beneath_to_resume_ops)
4530 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
4531 (record_full_beneath_to_wait)
4532 (record_full_beneath_to_store_registers_ops)
4533 (record_full_beneath_to_store_registers)
4534 (record_full_beneath_to_xfer_partial_ops)
4535 (record_full_beneath_to_xfer_partial)
4536 (record_full_beneath_to_insert_breakpoint_ops)
4537 (record_full_beneath_to_insert_breakpoint)
4538 (record_full_beneath_to_remove_breakpoint_ops)
4539 (record_full_beneath_to_remove_breakpoint)
4540 (record_full_beneath_to_stopped_by_watchpoint)
4541 (record_full_beneath_to_stopped_data_address)
4542 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
4543 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
4544 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
4545 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
4546 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
4547 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
4548 (tmp_to_stopped_data_address, tmp_to_async): Remove.
4549 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
4550 (record_full_resume, record_full_wait_1)
4551 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
4552 (record_full_store_registers, record_full_xfer_partial)
4553 (record_full_insert_breakpoint, record_full_remove_breakpoint)
4554 (record_full_async, record_full_core_xfer_partial): Use target
4555 delegation.
4556 * target-delegates.c: Rebuild.
4557 * target.c (current_xfer_partial): Remove.
4558 (update_current_target): Do not INHERIT or de_fault
4559 to_insert_breakpoint, to_remove_breakpoint,
4560 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
4561 to_is_async_p, to_async. Do not set to_xfer_partial field.
4562 (default_xfer_partial): Simplify.
4563 (current_xfer_partial): Remove.
4564 (target_wait, target_resume): Simplify.
4565 (find_default_can_async_p, find_default_is_async_p): Update.
4566 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
4567 to_xfer_partial, to_stopped_by_watchpoint,
4568 to_stopped_data_address.
4569 (target_store_registers): Simplify.
4570 (forward_target_remove_breakpoint)
4571 (forward_target_insert_breakpoint): Remove.
4572 (target_remove_breakpoint, target_insert_breakpoint)
4573 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
4574 * target.h (struct target_ops) <to_resume, to_wait,
4575 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
4576 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
4577 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
4578 markup.
4579 (forward_target_remove_breakpoint)
4580 (forward_target_insert_breakpoint): Remove.
4581 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
4582 directly.
4583 (record_btrace_insert_breakpoint): Delegate directly.
4584
4585 2014-02-19 Tom Tromey <tromey@redhat.com>
4586
4587 PR build/7701:
4588 * target-delegates.c: New file.
4589 * target.c: Include target-delegates.c.
4590 (init_dummy_target): Call install_dummy_methods.
4591 (complete_target_initialization): Call install_delegators.
4592 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
4593 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
4594 * make-target-delegates: New file.
4595
4596 2014-02-19 Tom Tromey <tromey@redhat.com>
4597
4598 * record.c (find_record_target): Use find_target_at.
4599 * target.c (find_target_at): New function.
4600 * target.h (find_target_at): Declare.
4601
4602 2014-02-19 Tom Tromey <tromey@redhat.com>
4603
4604 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
4605 Add 'ops' argument.
4606 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
4607 'ops' argument.
4608 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
4609 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
4610 'ops' argument.
4611 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
4612 argument.
4613 * linux-nat.c (save_sigtrap): Update.
4614 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
4615 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
4616 (linux_nat_close): Update.
4617 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
4618 argument.
4619 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
4620 argument.
4621 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
4622 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
4623 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
4624 (tmp_to_async): Add 'ops' argument.
4625 (record_full_stopped_by_watchpoint, record_full_async)
4626 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
4627 argument.
4628 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
4629 (m32r_stopped_by_watchpoint): Add 'ops' argument.
4630 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
4631 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
4632 (remote_is_async_p, remote_async): Add 'ops' argument.
4633 (remote_stopped_data_address): Update.
4634 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
4635 * target.c (update_current_target)
4636 (find_default_can_async_p, find_default_is_async_p): Update.
4637 (init_dummy_target): Update.
4638 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
4639 * target.h (struct target_ops) <to_stopped_by_watchpoint,
4640 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
4641 (target_can_async_p, target_is_async_p, target_async)
4642 (target_stopped_by_watchpoint): Update.
4643
4644 2014-02-19 Yao Qi <yao@codesourcery.com>
4645
4646 PR gdb/16220
4647 * gdbarch.sh: Remove startup_gdbarch.
4648 * gdbarch.c: Regenerated.
4649 * gdbarch.h: Likewise.
4650
4651 2014-02-17 Kevin Buettner <kevinb@redhat.com>
4652
4653 * rl78-tdep.c (rl78_g10_register_name): New function.
4654 (rl78_return_value): Add g10 support.
4655 (rl78_gdbarch_init): Register rl78_g10_register_name for the
4656 g10.
4657
4658 2014-02-17 Doug Evans <xdje42@gmail.com>
4659
4660 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
4661 (SUBDIR_GUILE_SRCS): Ditto.
4662 (scm-gsmob.o): Ditto.
4663
4664 2014-02-17 Yao Qi <yao@codesourcery.com>
4665
4666 * gnu-nat.c (ILL_RPC): Declare defined function.
4667
4668 2014-02-17 Yao Qi <yao@codesourcery.com>
4669
4670 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
4671 mach_msg_type_number_t.
4672 (gnu_write_inferior): Likewise.
4673
4674 2014-02-17 Yao Qi <yao@codesourcery.com>
4675
4676 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
4677 in format string.
4678 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
4679 (inf_validate_procs, inf_signal): Likewise.
4680 (S_exception_raise_request): Likewise.
4681 (do_mach_notify_dead_name): Likewise.
4682 (steal_exc_port): Likewise.
4683 (gnu_read_inferior): Change 'copy_count''s type to
4684 mach_msg_type_number_t.
4685 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
4686 format string.
4687
4688 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
4689
4690 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
4691 flag. Adjust all users; in particular...
4692 (gnu_wait): ..., don't decrement its value in here...
4693 (gnu_create_inferior): ..., and instead set the flag in here,
4694 around the startup_inferior call, and call that one with
4695 START_INFERIOR_TRAPS_EXPECTED.
4696
4697 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
4698 (ILL_RPC): ... new macro.
4699 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
4700 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
4701 (do_mach_notify_send_once, S_proc_setmsgport_reply)
4702 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
4703 functions with ILL_RPC macro.
4704 (S_proc_pid2task_reply, S_proc_task2pid_reply)
4705 (S_proc_task2proc_reply, S_proc_proc2task_reply)
4706 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
4707 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
4708 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
4709 (S_proc_getlogin_reply, S_proc_getsid_reply)
4710 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
4711 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
4712 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
4713 (S_proc_getnports_reply, S_proc_is_important_reply)
4714 (S_proc_get_code_reply): New stub functions, generated with
4715 ILL_RPC macro.
4716
4717 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
4718 collected the type check structures.
4719
4720 * reply_mig_hack.awk: Don't expect to see the auto keyword.
4721
4722 2014-02-14 Doug Evans <dje@google.com>
4723
4724 * target.c (target_write_partial): Fix result type.
4725
4726 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
4727
4728 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
4729 the proper offsets to access fpregset_t.
4730
4731 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
4732
4733 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
4734 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
4735 * h8300-tdep.c (setmachinelist): Remove global.
4736 * hppa-tdep.c (hppa_sigtramp): Remove global.
4737 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
4738 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
4739 * ravenscar-thread.c (update_target_observer): Remove global.
4740 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
4741
4742 2014-02-12 Tom Tromey <tromey@redhat.com>
4743
4744 * common/rsp-low.c: Update comments.
4745 * common/rsp-low.h: Update comments.
4746
4747 2014-02-12 Tom Tromey <tromey@redhat.com>
4748
4749 * common/rsp-low.c (convert_ascii_to_int): Remove.
4750 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
4751
4752 2014-02-12 Tom Tromey <tromey@redhat.com>
4753
4754 * common/rsp-low.h (unhexify): Don't declare.
4755 * common/rsp-low.c (unhexify): Remove.
4756
4757 2014-02-12 Tom Tromey <tromey@redhat.com>
4758
4759 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
4760 * common/rsp-low.c (convert_int_to_ascii): Remove.
4761
4762 2014-02-12 Tom Tromey <tromey@redhat.com>
4763
4764 * common/rsp-low.h (hexify): Don't declare.
4765 * common/rsp-low.c (hexify): Remove.
4766
4767 2014-02-12 Tom Tromey <tromey@redhat.com>
4768
4769 * common/rsp-low.c (hexify): Never take strlen of argument.
4770
4771 2014-02-12 Tom Tromey <tromey@redhat.com>
4772
4773 * common/rsp-low.c (bin2hex): Never take strlen of argument.
4774 * remote.c (extended_remote_run, remote_rcmd)
4775 (remote_download_trace_state_variable, remote_save_trace_data)
4776 (remote_set_trace_notes): Update.
4777 * tracepoint.c (encode_source_string, tfile_write_status)
4778 (tfile_write_uploaded_tsv): Update.
4779
4780 2014-02-12 Tom Tromey <tromey@redhat.com>
4781
4782 * tracepoint.c: Include rsp-low.h.
4783 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
4784 * remote.c: Include rsp-low.h.
4785 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
4786 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
4787 (remote_unescape_input): Move to common/rsp-low.c.
4788 * common/rsp-low.h: New file.
4789 * common/rsp-low.c: New file.
4790 * Makefile.in (SFILES): Add common/rsp-low.c.
4791 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
4792 (COMMON_OBS): Add rsp-low.o.
4793 (rsp-low.o): New target.
4794
4795 2014-02-12 Tom Tromey <tromey@redhat.com>
4796
4797 * utils.h: Include print-utils.h.
4798 (host_address_to_string, plongest, pulongest, phex, phex_nz)
4799 (int_string, core_addr_to_string, core_addr_to_string_nz)
4800 (hex_string, hex_string_custom): Don't declare.
4801 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
4802 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
4803 (hex_string_custom, int_string, core_addr_to_string)
4804 (core_addr_to_string_nz, host_address_to_string): Move to
4805 common/print-utils.c.
4806 * common/print-utils.h: New file.
4807 * common/print-utils.c: New file
4808 * Makefile.in (SFILES): Add common/print-utils.c.
4809 (HFILES_NO_SRCDIR): Add common/print-utils.h.
4810 (COMMON_OBS): Add print-utils.o.
4811 (print-utils.o): New target.
4812
4813 2014-02-12 Tom Tromey <tromey@redhat.com>
4814
4815 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
4816
4817 2014-02-12 Mark Kettenis <kettenis@gnu.org>
4818
4819 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
4820
4821 2014-02-12 Mark Kettenis <kettenis@gnu.org>
4822
4823 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
4824 if a PT_IO ptrace request returns sucessfully but indicates that 0
4825 bytes were transferred.
4826
4827 2014-02-12 Pedro Alves <palves@redhat.com>
4828 Kevin Buettner <kevinb@redhat.com>
4829
4830 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
4831 TYPE_INSTANCE_FLAG_CODE_SPACE.
4832
4833 2014-02-12 Pedro Alves <palves@redhat.com>
4834
4835 * h8300-tdep.c (pseudo_from_raw_register)
4836 (raw_from_pseudo_register): New functions.
4837 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
4838 them.
4839
4840 2014-02-12 Pedro Alves <palves@redhat.com>
4841
4842 * h8300-tdep.c (h8300_register_sim_regno): New function.
4843 (h8300_gdbarch_init): Install h8300_register_sim_regno as
4844 gdbarch_register_sim_regno hook.
4845
4846 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
4847
4848 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
4849
4850 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
4851
4852 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
4853
4854 2014-02-12 Mark Kettenis <kettenis@gnu.org>
4855
4856 * obsd-tdep.h (obsd_init_abi): New prototype.
4857 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
4858 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
4859 (obsd_init_abi): New functions.
4860 * i386obsd-tdep.c: Include "obsd-tdep.h".
4861 (i386obsd_init_abi): Call obsd_init_abi.
4862 * amd64obsd-tdep.c: Include "obsd-tdep.h".
4863 (amd64obsd_init_abi): Call obsd_init_abi.
4864 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
4865 obsd-tdep.c to gdb_target_obs.
4866
4867 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
4868
4869 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
4870 double float arguments to 16-byte in the argument slots.
4871
4872 2014-02-11 Doug Evans <xdje42@gmail.com>
4873
4874 * configure.ac: Don't crash if pkg-config is not found and guile
4875 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
4876 in guile checks.
4877 * configure: Regenerate.
4878
4879 2014-02-11 Yao Qi <yao@codesourcery.com>
4880
4881 * aix-thread.c (aix_thread_xfer_partial): Update comments.
4882 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
4883 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
4884 * gnu-nat.c (gnu_xfer_memory): Likewise.
4885 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
4886 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
4887 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
4888 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
4889
4890 2014-02-11 Yao Qi <yao@codesourcery.com>
4891
4892 * target.h (enum target_xfer_error): Rename to ...
4893 (enum target_xfer_status): ... it. New. All users updated.
4894 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
4895 New.
4896 (TARGET_XFER_STATUS_ERROR_P): New macro.
4897 (target_xfer_error_to_string): Remove declaration.
4898 (target_xfer_status_to_string): Declare.
4899 (target_xfer_partial_ftype): Adjust it.
4900 (struct target_ops) <to_xfer_partial>: Return
4901 target_xfer_status. Add argument xfered_len. Update
4902 comments.
4903 * target.c (target_xfer_error_to_string): Rename to ...
4904 (target_xfer_status_to_string): ... it. New. All callers
4905 updated.
4906 (target_read_live_memory): Likewise. Call target_xfer_partial
4907 instead of target_read.
4908 (memory_xfer_live_readonly_partial): Return
4909 target_xfer_status. Add argument xfered_len.
4910 (raw_memory_xfer_partial): Likewise.
4911 (memory_xfer_partial_1): Likewise.
4912 (memory_xfer_partial): Likewise.
4913 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
4914 properly. Update debug message.
4915 (default_xfer_partial, current_xfer_partial): Likewise.
4916 (target_write_partial): Likewise.
4917 (target_read_partial): Likewise. All callers updated.
4918 (read_whatever_is_readable): Likewise.
4919 (target_write_with_progress): Likewise.
4920 (target_read_alloc_1): Likewise.
4921
4922 * aix-thread.c (aix_thread_xfer_partial): Likewise.
4923 * auxv.c (procfs_xfer_auxv): Likewise.
4924 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
4925 * bfd-target.c (target_bfd_xfer_partial): Likewise.
4926 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
4927 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
4928 * corefile.c (read_memory): Adjust.
4929 * corelow.c (core_xfer_partial): Likewise.
4930 * ctf.c (ctf_xfer_partial): Likewise.
4931 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
4932 updated.
4933 (darwin_xfer_partial): Likewise.
4934 * exec.c (section_table_xfer_memory_partial): Likewise. All
4935 callers updated.
4936 (exec_xfer_partial): Likewise.
4937 * exec.h (section_table_xfer_memory_partial): Update
4938 declaration.
4939 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
4940 negative.
4941 (gnu_xfer_partial): Likewise.
4942 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
4943 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
4944 (ia64_hpux_xfer_solib_got): Likewise.
4945 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
4946 type of 'partial_len' to ULONGEST.
4947 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
4948 * linux-nat.c (linux_xfer_siginfo ): Likewise.
4949 (linux_nat_xfer_partial): Likewise.
4950 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
4951 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
4952 * monitor.c (monitor_xfer_memory): Likewise.
4953 (monitor_xfer_partial): Likewise.
4954 * procfs.c (procfs_xfer_partial): Likewise.
4955 * record-btrace.c (record_btrace_xfer_partial): Likewise.
4956 * record-full.c (record_full_xfer_partial): Likewise.
4957 (record_full_core_xfer_partial): Likewise.
4958 * remote-sim.c (gdbsim_xfer_memory): Likewise.
4959 (gdbsim_xfer_partial): Likewise.
4960 * remote.c (remote_write_bytes_aux): Likewise. All callers
4961 updated.
4962 (remote_write_bytes, remote_read_bytes): Likewise. All
4963 callers updated.
4964 (remote_flash_erase): Likewise. All callers updated.
4965 (remote_write_qxfer): Likewise. All callers updated.
4966 (remote_read_qxfer): Likewise. All callers updated.
4967 (remote_xfer_partial): Likewise.
4968 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
4969 (rs6000_xfer_shared_libraries): Likewise.
4970 * sol-thread.c (sol_thread_xfer_partial): Likewise.
4971 (sol_thread_xfer_partial): Likewise.
4972 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
4973 (sparc_xfer_partial): Likewise.
4974 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
4975 updated.
4976 (spu_xfer_partial): Likewise.
4977 * spu-multiarch.c (spu_xfer_partial): Likewise.
4978 * tracepoint.c (tfile_xfer_partial): Likewise.
4979 * windows-nat.c (windows_xfer_memory): Likewise.
4980 (windows_xfer_shared_libraries): Likewise.
4981 (windows_xfer_partial): Likewise.
4982 * valprint.c: Replace 'target_xfer_error' with
4983 'target_xfer_status' in comments.
4984
4985 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
4986
4987 Checked in by Joel Brobecker <brobecker@adacore.com>.
4988 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
4989
4990 2014-02-11 Joel Brobecker <brobecker@adacore.com>
4991
4992 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
4993 function parameters.
4994
4995 2014-02-10 Will Newton <will.newton@linaro.org>
4996
4997 * elfread.c (elf_rel_plt_read): Look for a .got section if
4998 looking up .got.plt fails.
4999 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
5000 on address passed to elf_gnu_ifunc_record_cache.
5001 (elf_gnu_ifunc_resolve_addr): Likewise.
5002 (elf_gnu_ifunc_resolver_return_stop): Likewise.
5003
5004 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
5005
5006 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
5007 (X_RETTURN): New macro.
5008 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
5009
5010 * sparc64-tdep.c (sparc64_init_abi): Hook
5011 sparc_in_function_epilogue_p.
5012
5013 2014-02-10 Gary Benson <gbenson@redhat.com>
5014
5015 * symfile-debug.c (debug_qf_expand_symtabs_matching):
5016 Rename name_matcher to symbol_matcher.
5017
5018 2014-02-10 Gary Benson <gbenson@redhat.com>
5019
5020 * symfile-debug.c (debug_qf_expand_symtabs_matching):
5021 Use expand_symtabs_file_matcher_ftype and
5022 expand_symtabs_symbol_matcher_ftype.
5023
5024 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5025
5026 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
5027 (struct ada_symbol_cache): New.
5028 (ada_free_symbol_cache): Forward declare.
5029 (struct ada_pspace_data): New.
5030 (ada_pspace_data_handle): New static global.
5031 (get_ada_pspace_data, ada_pspace_data_cleanup)
5032 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
5033 (cache_space, cache): Delete, now folded inside struct
5034 ada_pspace_data.
5035 (ada_get_symbol_cache): New function.
5036 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
5037 implementation.
5038 (_initialize_ada_language): Remove initialization of cache_space.
5039 Move call to observer_attach_inferior_exit up, grouping it
5040 with the other observer registrations inside this function.
5041 Rename command to be more general. Add call to
5042 register_program_space_data_with_cleanup.
5043
5044 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5045
5046 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
5047 ada_new_objfile_observer.
5048 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
5049 (_initialize_tasks): Update uses of ada_new_objfile_observer
5050 and ada_tasks_normal_stop_observer.
5051
5052 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5053
5054 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
5055 returned by the 'Length attribute to integer.
5056
5057 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5058
5059 * ada-lang.c (_initialize_ada_language): Initialize
5060 cache_space obstack.
5061
5062 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5063
5064 * ada-lang.c (HASH_SIZE): New macro.
5065 (struct cache_entry): New type.
5066 (cache_space, cache): New static globals.
5067 (ada_clear_symbol_cache, find_entry): New functions.
5068 (lookup_cached_symbol, cache_symbol): Implement.
5069 (ada_new_objfile_observer, ada_free_objfile_observer): New.
5070 (_initialize_ada_language): Attach ada_new_objfile_observer
5071 and ada_free_objfile_observer.
5072
5073 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5074
5075 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
5076 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
5077 struct block * parameter.
5078 (ada_lookup_symbol_list_worker): Constify local variable "block".
5079 Remove cast which is no longer necessary.
5080
5081 2014-02-10 Doug Evans <xdje42@gmail.com>
5082
5083 Add Guile as an extension language.
5084 * NEWS: Mention Guile scripting.
5085 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
5086 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
5087 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
5088 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
5089 (CLIBS): Add GUILE_LIBS.
5090 (install-guile): New rule.
5091 (guile.o): New rule.
5092 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
5093 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
5094 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
5095 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
5096 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
5097 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
5098 (scm-type.o, scm-utils.o, scm-value.o): New rules.
5099 * configure.ac: New option --with-guile.
5100 * configure: Regenerate.
5101 * config.in: Regenerate.
5102 * auto-load.c: Remove #include "python/python.h". Add #include
5103 "gdb/section-scripts.h".
5104 (source_section_scripts): Handle Guile scripts.
5105 (_initialize_auto_load): Add name of Guile objfile script to
5106 scripts-directory help text.
5107 * breakpoint.c (condition_command): Tweak comment to include Scheme.
5108 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
5109 (struct breakpoint): New member scm_bp_object.
5110 * defs.h (enum command_control_type): New value guile_control.
5111 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
5112 "extension.h".
5113 (show_user): Update comment.
5114 (_initialize_cli_cmds): Update help text for "show user". Update help
5115 text for max-user-call-depth.
5116 * cli/cli-script.c: Remove #include "python/python.h". Add #include
5117 "extension.h".
5118 (multi_line_command_p): Add guile_control.
5119 (print_command_lines): Handle guile_control.
5120 (execute_control_command, recurse_read_control_structure): Ditto.
5121 (process_next_line): Recognize "guile" commands.
5122 * disasm.c (gdb_disassemble_info): Make non-static.
5123 * disasm.h: #include "dis-asm.h".
5124 (struct gdbarch): Add forward decl.
5125 (gdb_disassemble_info): Declare.
5126 * extension.c: #include "guile/guile.h".
5127 (extension_languages): Add guile.
5128 (get_ext_lang_defn): Handle EXT_LANG_GDB.
5129 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
5130 * gdbtypes.c (get_unsigned_type_max): New function.
5131 (get_signed_type_minmax): New function.
5132 * gdbtypes.h (get_unsigned_type_max): Declare.
5133 (get_signed_type_minmax): Declare.
5134 * guile/README: New file.
5135 * guile/guile-internal.h: New file.
5136 * guile/guile.c: New file.
5137 * guile/guile.h: New file.
5138 * guile/scm-arch.c: New file.
5139 * guile/scm-auto-load.c: New file.
5140 * guile/scm-block.c: New file.
5141 * guile/scm-breakpoint.c: New file.
5142 * guile/scm-disasm.c: New file.
5143 * guile/scm-exception.c: New file.
5144 * guile/scm-frame.c: New file.
5145 * guile/scm-gsmob.c: New file.
5146 * guile/scm-iterator.c: New file.
5147 * guile/scm-lazy-string.c: New file.
5148 * guile/scm-math.c: New file.
5149 * guile/scm-objfile.c: New file.
5150 * guile/scm-ports.c: New file.
5151 * guile/scm-pretty-print.c: New file.
5152 * guile/scm-safe-call.c: New file.
5153 * guile/scm-string.c: New file.
5154 * guile/scm-symbol.c: New file.
5155 * guile/scm-symtab.c: New file.
5156 * guile/scm-type.c: New file.
5157 * guile/scm-utils.c: New file.
5158 * guile/scm-value.c: New file.
5159 * guile/lib/gdb.scm: New file.
5160 * guile/lib/gdb/boot.scm: New file.
5161 * guile/lib/gdb/experimental.scm: New file.
5162 * guile/lib/gdb/init.scm: New file.
5163 * guile/lib/gdb/iterator.scm: New file.
5164 * guile/lib/gdb/printing.scm: New file.
5165 * guile/lib/gdb/types.scm: New file.
5166 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
5167 (VPATH): Add $(GUILE_SRCDIR).
5168 (GUILE_DIR): New variable.
5169 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
5170 (all): Add stamp-guile dependency.
5171 (stamp-guile): New rule.
5172 (clean-guile, install-guile, uninstall-guile): New rules.
5173 (install-only): Add install-guile dependency.
5174 (uninstall): Add uninstall-guile dependency.
5175 (clean): Add clean-guile dependency.
5176
5177 2014-02-09 Doug Evans <xdje42@gmail.com>
5178
5179 Revert this patch (which I approved, mea culpa).
5180
5181 2014-02-08 Mark Kettenis <kettenis@gnu.org>
5182
5183 * Makefile.in (all-lib): Remove.
5184 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
5185
5186 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5187
5188 Fix Python stack corruption.
5189 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
5190 gdb_py_longest.
5191
5192 2014-02-08 Mark Kettenis <kettenis@gnu.org>
5193
5194 * Makefile.in (all-lib): Remove.
5195 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
5196
5197 2014-02-07 Doug Evans <dje@google.com>
5198
5199 * extension-priv.h (extension_language_script_ops): Add comment.
5200 (extension_language_ops): Add comment.
5201 (active_ext_lang_state): Fix typo in comment.
5202
5203 2014-02-07 Pedro Alves <palves@redhat.com>
5204
5205 PR breakpoints/16292
5206 * infrun.c (handle_signal_stop) <signal arrives while stepping
5207 over a breakpoint>: Switch back to the stepping thread.
5208
5209 2014-02-07 Yao Qi <yao@codesourcery.com>
5210
5211 * target.c (target_xfer_partial): Return zero if LEN is zero.
5212
5213 2014-02-07 Yao Qi <yao@codesourcery.com>
5214
5215 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
5216 (ld_so_xfer_auxv): Likewise.
5217 * bfd-target.c (target_bfd_xfer_partial): Likewise.
5218 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
5219 * corelow.c (core_xfer_partial): Likewise.
5220 * ctf.c (ctf_xfer_partial): Likewise.
5221 * darwin-nat.c (darwin_read_dyld_info): Likewise.
5222 (darwin_xfer_partial): Likewise.
5223 * exec.c (exec_xfer_partial): Likewise.
5224 * gnu-nat.c (gnu_xfer_partial): Likewise.
5225 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
5226 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
5227 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
5228 * linux-nat.c (linux_xfer_siginfo): Likewise.
5229 (linux_proc_xfer_spu): Likewise.
5230 * procfs.c (procfs_xfer_partial): Likewise.
5231 * record-full.c (record_full_xfer_partial): Likewise.
5232 (record_full_core_xfer_partial): Likewise.
5233 * remote-sim.c (gdbsim_xfer_partial): Likewise.
5234 * remote.c (remote_write_qxfer): Likewise.
5235 (remote_write_qxfer, remote_read_qxfer): Likewise.
5236 (remote_xfer_partial): Likewise.
5237 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5238 (rs6000_xfer_shared_libraries): Likewise.
5239 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5240 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
5241 (spu_xfer_partial): Likewise.
5242 * target.c (memory_xfer_partial_1): Likewise.
5243 * tracepoint.c (tfile_xfer_partial): Likewise.
5244 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
5245 (windows_xfer_partial): Likewise.
5246
5247 2014-02-07 Yao Qi <yao@codesourcery.com>
5248
5249 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
5250 comments.
5251 (core_xfer_shared_libraries_aix): Likewise.
5252 * gdbarch.c, gdbarch.h: Regenerated.
5253 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
5254 ULONGEST. Change 'len_avail' type to ULONGEST.
5255 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
5256 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
5257 declaration.
5258 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
5259
5260 2014-02-07 Yao Qi <yao@codesourcery.com>
5261
5262 * corefile.c (memory_error): Get 'exception' from ERR and pass
5263 'exception' to throw_error.
5264
5265 2014-02-06 Doug Evans <xdje42@gmail.com>
5266
5267 * configure.ac (libpython checking): Remove all but python.o from
5268 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
5269 * configure: Regenerate.
5270
5271 * Makefile.in (SFILES): Add extension.c.
5272 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
5273 (COMMON_OBS): Add extension.o.
5274 * extension.h: New file.
5275 * extension-priv.h: New file.
5276 * extension.c: New file.
5277
5278 * python/python-internal.h: #include "extension.h".
5279 (gdbpy_auto_load_enabled): Declare.
5280 (gdbpy_apply_val_pretty_printer): Declare.
5281 (gdbpy_apply_frame_filter): Declare.
5282 (gdbpy_preserve_values): Declare.
5283 (gdbpy_breakpoint_cond_says_stop): Declare.
5284 (gdbpy_breakpoint_has_cond): Declare.
5285 (void source_python_script_for_objfile): Delete.
5286 * python/python.c: #include "extension-priv.h".
5287 Delete inclusion of "observer.h".
5288 (extension_language_python): Moved here and renamed from
5289 script_language_python in py-auto-load.c.
5290 Redefined to be of type extension_language_defn.
5291 (python_extension_script_ops): New global.
5292 (python_extension_ops): New global.
5293 (struct python_env): New member previous_active.
5294 (restore_python_env): Call restore_active_ext_lang.
5295 (ensure_python_env): Call set_active_ext_lang.
5296 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
5297 New arg extlang.
5298 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
5299 New arg extlang.
5300 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
5301 New arg extlang.
5302 (gdbpy_eval_from_control_command): Renamed from
5303 eval_python_from_control_command, made static. New arg extlang.
5304 (gdbpy_source_script) Renamed from source_python_script, made static.
5305 New arg extlang.
5306 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
5307 result to int. New arg extlang.
5308 (gdbpy_source_objfile_script): Renamed from
5309 source_python_script_for_objfile, made static. New arg extlang.
5310 (gdbpy_start_type_printers): Renamed from start_type_printers, made
5311 static. New args extlang, extlang_printers. Change result type to
5312 "void".
5313 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
5314 static. New arg extlang. Rename arg printers to extlang_printers
5315 and change type to ext_lang_type_printers *.
5316 (gdbpy_free_type_printers): Renamed from free_type_printers, made
5317 static. Replace argument arg with extlang, extlang_printers.
5318 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
5319 (!HAVE_PYTHON, source_python_script): Delete.
5320 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
5321 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
5322 (!HAVE_PYTHON, start_type_printers): Delete.
5323 (!HAVE_PYTHON, apply_type_printers): Delete.
5324 (!HAVE_PYTHON, free_type_printers): Delete.
5325 (_initialize_python): Delete call to observer_attach_before_prompt.
5326 (finalize_python): Set/restore active extension language.
5327 (gdbpy_finish_initialization) Renamed from
5328 finish_python_initialization, made static. New arg extlang.
5329 (gdbpy_initialized): New function.
5330 * python/python.h: #include "extension.h". Delete #include
5331 "value.h", "mi/mi-cmds.h".
5332 (extension_language_python): Declare.
5333 (GDBPY_AUTO_FILE_NAME): Delete.
5334 (enum py_bt_status): Moved to extension.h and renamed to
5335 ext_lang_bt_status.
5336 (enum frame_filter_flags): Moved to extension.h.
5337 (enum py_frame_args): Moved to extension.h and renamed to
5338 ext_lang_frame_args.
5339 (finish_python_initialization): Delete.
5340 (eval_python_from_control_command): Delete.
5341 (source_python_script): Delete.
5342 (apply_val_pretty_printer): Delete.
5343 (apply_frame_filter): Delete.
5344 (preserve_python_values): Delete.
5345 (gdbpy_script_language_defn): Delete.
5346 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
5347 (start_type_printers, apply_type_printers, free_type_printers): Delete.
5348
5349 * auto-load.c: #include "extension.h".
5350 (GDB_AUTO_FILE_NAME): Delete.
5351 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
5352 (script_language_gdb): Delete, moved to extension.c and renamed to
5353 extension_language_gdb.
5354 (source_gdb_script_for_objfile): Delete.
5355 (auto_load_pspace_info): New member unsupported_script_warning_printed.
5356 (loaded_script): Change type of language member to
5357 struct extension_language_defn *.
5358 (init_loaded_scripts_info): Initialize
5359 unsupported_script_warning_printed.
5360 (maybe_add_script): Make static. Change type of language arg to
5361 struct extension_language_defn *.
5362 (clear_section_scripts): Reset unsupported_script_warning_printed.
5363 (auto_load_objfile_script_1): Rewrite to use extension language API.
5364 (auto_load_objfile_script): Make public. Remove support-compiled-in
5365 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
5366 (source_section_scripts): Rewrite to use extension language API.
5367 (load_auto_scripts_for_objfile): Rewrite to use
5368 auto_load_scripts_for_objfile.
5369 (collect_matching_scripts_data): Change type of language member to
5370 struct extension_language_defn *.
5371 (auto_load_info_scripts): Change type of language arg to
5372 struct extension_language_defn *.
5373 (unsupported_script_warning_print): New function.
5374 (script_not_found_warning_print): Make static.
5375 (_initialize_auto_load): Rewrite construction of scripts-directory
5376 help.
5377 * auto-load.h (struct objfile): Add forward decl.
5378 (struct script_language): Delete.
5379 (struct auto_load_pspace_info): Add forward decl.
5380 (struct extension_language_defn): Add forward decl.
5381 (maybe_add_script): Delete.
5382 (auto_load_objfile_script): Declare.
5383 (script_not_found_warning_print): Delete.
5384 (auto_load_info_scripts): Update prototype.
5385 (auto_load_gdb_scripts_enabled): Declare.
5386 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
5387 auto_load_python_scripts_enabled and made public.
5388 (script_language_python): Delete, moved to python.c.
5389 (gdbpy_script_language_defn): Delete.
5390 (info_auto_load_python_scripts): Update to use
5391 extension_language_python.
5392
5393 * breakpoint.c (condition_command): Replace call to
5394 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
5395 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
5396 with call to breakpoint_ext_lang_cond_says_stop.
5397 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
5398 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
5399 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
5400 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
5401 New arg slang.
5402 (local_setattro): Print name of extension language with existing
5403 stop condition.
5404
5405 * valprint.c (val_print, value_print): Update to call
5406 apply_ext_lang_val_pretty_printer.
5407 * cp-valprint.c (cp_print_value): Update call to
5408 apply_ext_lang_val_pretty_printer.
5409 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
5410 (gdbpy_apply_val_pretty_printer): Renamed from
5411 apply_val_pretty_printer. New arg extlang.
5412 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
5413
5414 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
5415 extension language API.
5416 * cli/cli-script.c (execute_control_command): Update to call
5417 eval_ext_lang_from_control_command.
5418
5419 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
5420 enum ext_lang_bt_status values. Update call to
5421 apply_ext_lang_frame_filter.
5422 (mi_cmd_stack_list_locals): Ditto.
5423 (mi_cmd_stack_list_args): Ditto.
5424 (mi_cmd_stack_list_variables): Ditto.
5425 * mi/mi-main.c: Delete #include "python/python-internal.h".
5426 Add #include "extension.h".
5427 (mi_cmd_list_features): Replace reference to python internal variable
5428 gdb_python_initialized with call to ext_lang_initialized_p.
5429
5430 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
5431 Update to use enum ext_lang_frame_args. Update to call
5432 apply_ext_lang_frame_filter.
5433 * python/py-framefilter.c (extract_sym): Update to use enum
5434 ext_lang_bt_status.
5435 (extract_value, py_print_type, py_print_value): Ditto.
5436 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
5437 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
5438 (py_print_frame): Ditto.
5439 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
5440 New arg extlang. Update to use enum ext_lang_bt_status.
5441
5442 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
5443 finish_python_initialization. Replace with call to
5444 finish_ext_lang_initialization.
5445
5446 * typeprint.c (do_free_global_table): Update to call
5447 free_ext_lang_type_printers.
5448 (create_global_typedef_table): Update to call
5449 start_ext_lang_type_printers.
5450 (find_global_typedef): Update to call apply_ext_lang_type_printers.
5451 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
5452 (type_print_options): Change type of global_printers from "void *"
5453 to "struct ext_lang_type_printers *".
5454
5455 * value.c (preserve_values): Update to call preserve_ext_lang_values.
5456 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
5457 (gdbpy_preserve_values): Renamed from preserve_python_values.
5458 New arg extlang.
5459 (!HAVE_PYTHON, preserve_python_values): Delete.
5460
5461 * utils.c (quit_flag): Delete, moved to extension.c.
5462 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
5463 extension.c.
5464
5465 * eval.c: Delete #include "python/python.h".
5466 * main.c: Delete #include "python/python.h".
5467
5468 * defs.h: Update comment.
5469
5470 2014-02-06 Joel Brobecker <brobecker@adacore.com>
5471
5472 GDB 7.7 released.
5473
5474 2014-02-05 Mark Kettenis <kettenis@gnu.org>
5475
5476 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
5477 defined.
5478
5479 2014-02-05 Yao Qi <yao@codesourcery.com>
5480
5481 * remote.c (remote_pass_signals): Remove local 'buf' and use
5482 rs->buf.
5483 (remote_program_signals): Likewise.
5484
5485 2014-02-05 Yao Qi <yao@codesourcery.com>
5486
5487 * ctf.c: Include "inferior.h" and "gdbthread.h".
5488 (CTF_PID): A new macro.
5489 (ctf_open): Call inferior_appeared and add_thread_silent.
5490 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
5491 (ctf_thread_alive): New function.
5492 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
5493
5494 2014-02-05 Yao Qi <yao@codesourcery.com>
5495
5496 Revert this patch:
5497
5498 2013-05-24 Yao Qi <yao@codesourcery.com>
5499
5500 * tracepoint.c (TFILE_PID): Remove.
5501 (tfile_open): Don't add thread and inferior.
5502 (tfile_close): Don't set 'inferior_ptid'. Don't call
5503 exit_inferior_silent.
5504 (tfile_thread_alive): Remove.
5505 (init_tfile_ops): Don't set field 'to_thread_alive' of
5506 tfile_ops.
5507
5508 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
5509
5510 * remote.c (remote_start_remote): Call remote_check_symbols even
5511 if only symbol-file (not file) has been given.
5512
5513 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
5514
5515 * gdbarch.sh (skip_entrypoint): New callback.
5516 * gdbarch.c, gdbarch.h: Regenerate.
5517 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
5518 * infrun.c (fill_in_stop_func): Likewise.
5519 * ppc-linux-tdep.c: Include "elf/ppc64.h".
5520 (ppc_elfv2_elf_make_msymbol_special): New function.
5521 (ppc_elfv2_skip_entrypoint): Likewise.
5522 (ppc_linux_init_abi): Install them for ELFv2.
5523
5524 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
5525
5526 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
5527 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
5528 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
5529 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
5530 structures returned in GPRs.
5531
5532 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
5533
5534 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
5535 offset to the stack parameter list for the ELFv2 ABI.
5536
5537 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
5538
5539 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
5540 set_gdbarch_convert_from_func_ptr_addr and
5541 set_gdbarch_elf_make_msymbol_special for ELFv1.
5542 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
5543 function descriptors on ELFv1.
5544 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
5545 set up r12 at function entry.
5546
5547 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
5548
5549 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
5550 (struct gdbarch_tdep): New member elf_abi.
5551
5552 * rs6000-tdep.c: Include "elf/ppc64.h".
5553 (rs6000_gdbarch_init): Detect ELF ABI version.
5554
5555 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
5556
5557 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
5558 within a register pair holding a DFP 128-bit value on little-endian.
5559 (ppc64_sysv_abi_return_value_base): Likewise.
5560 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
5561 (dfp_pseudo_register_write): Likewise.
5562
5563 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
5564
5565 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
5566 offset on little-endian when passing _Decimal32.
5567 (ppc64_sysv_abi_return_value_base): Likewise for return values.
5568
5569 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
5570
5571 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
5572 of the overlapped FP register within the VSX register on little-
5573 endian platforms.
5574 (efpr_pseudo_register_write): Likewise.
5575
5576 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
5577
5578 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
5579 offset on little-endian when passing small structures.
5580
5581 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
5582
5583 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
5584 (struct ppc64_sysv_argpos): New data structure.
5585 (ppc64_sysv_abi_push_float): Remove.
5586 (ppc64_sysv_abi_push_val): New function.
5587 (ppc64_sysv_abi_push_integer): Likewise.
5588 (ppc64_sysv_abi_push_freg): Likewise.
5589 (ppc64_sysv_abi_push_vreg): Likewise.
5590 (ppc64_sysv_abi_push_param): Likewise.
5591 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
5592 (ppc64_sysv_abi_return_value_base): New function.
5593 (ppc64_sysv_abi_return_value): Refactor to use it.
5594
5595 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
5596
5597 * NEWS: Document new target powerpc64le-*-linux*.
5598
5599 2014-02-04 Mark Kettenis <kettenis@gnu.org>
5600
5601 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
5602 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
5603 core dumps.
5604 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
5605 register set used in ELF core dumps. Add floating-point register set.
5606
5607 2014-02-03 Kevin Buettner <kevinb@redhat.com>
5608
5609 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
5610 dwarf2_to_gdb[] table using symbolic constants. Adjust
5611 penultimate entry from number representing the PC register
5612 to symbolic constant representing the MDR register. Add
5613 constant for the PC register to the end of the table.
5614
5615 2014-02-03 Mark Kettenis <kettenis@gnu.org>
5616
5617 * bsd-kvm.c: Include <sys/param.h>
5618
5619 2014-02-03 Mark Kettenis <kettenis@gnu.org>
5620
5621 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
5622
5623 2014-01-31 Joel Brobecker <brobecker@adacore.com>
5624
5625 * ada-lang.h (clear_ada_sym_cache): Delete.
5626
5627 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
5628
5629 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
5630
5631 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
5632
5633 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
5634 the sigreturn register save area only if the syscall is
5635 sigreturn.
5636
5637 2014-01-29 Joel Brobecker <brobecker@adacore.com>
5638
5639 * valops.c (value_slice): Minor reformatting.
5640
5641 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
5642
5643 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
5644
5645 2014-01-28 Joel Brobecker <brobecker@adacore.com>
5646
5647 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
5648 New static globals.
5649 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
5650 (ada_ignore_descriptive_types_p): New static global.
5651 (find_parallel_type_by_descriptive_type): Return immediately
5652 if ada_ignore_descriptive_types_p is set.
5653 (_initialize_ada_language): Register new commands "maintenance
5654 set ada", "maintenance show ada", "maintenance set ada
5655 ignore-descriptive-types" and "maintenance show ada
5656 ignore-descriptive-types".
5657 * NEWS: Add entry for new "maint ada set/show
5658 ignore-descriptive-types" commands.
5659
5660 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
5661
5662 * record-btrace.c (record_btrace_close): Call btrace_teardown
5663 for all threads.
5664
5665 2014-01-27 Joel Brobecker <brobecker@adacore.com>
5666
5667 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
5668 "ui-out.h".
5669
5670 2014-01-27 Joel Brobecker <brobecker@adacore.com>
5671
5672 * ada-typeprint (type_is_full_subrange_of_target_type):
5673 New function.
5674 (print_range): Add parameter bounds_prefered_p. If not set,
5675 try printing range types using the name of their base type.
5676 (print_range_type): Add parameter bounds_prefered_p.
5677 Use it in call to print_range.
5678 (print_array_type, ada_print_type): Update calls to print_range
5679 and print_range_type.
5680
5681 2014-01-27 Joel Brobecker <brobecker@adacore.com>
5682
5683 * ada-typeprint.c (print_array_type, print_choices, print_range)
5684 (print_range_bound, print_dynamic_range_bound, print_range_type):
5685 Remove declaration.
5686
5687 2014-01-27 Joel Brobecker <brobecker@adacore.com>
5688
5689 * ada-typeprint.c (print_range): Add missing empty line
5690 after local declaration.
5691
5692 2014-01-27 Joel Brobecker <brobecker@adacore.com>
5693
5694 * ada-valprint.c (print_optional_low_bound): Get index_type's
5695 target type for as long as it is a TYPE_CODE_RANGE.
5696
5697 2014-01-27 Joel Brobecker <brobecker@adacore.com>
5698
5699 * procfs.c (procfs_make_note_section): Remove assertion and
5700 associated comment.
5701
5702 2014-01-24 Yao Qi <yao@codesourcery.com>
5703
5704 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
5705 * corelow.c (get_core_siginfo): Likewise.
5706
5707 2014-01-24 Yao Qi <yao@codesourcery.com>
5708
5709 * remote.c (remote_write_bytes_aux): Change type of 'len' to
5710 ULONGEST. Don't check 'len' is negative.
5711 (remote_write_bytes): Change type of 'len' to ULONGEST.
5712
5713 2014-01-23 Tom Tromey <tromey@redhat.com>
5714
5715 PR python/16485:
5716 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
5717 Handle exception from frame.block.
5718 (FrameVars.fetch_frame_locals): Likewise.
5719
5720 2014-01-23 Tom Tromey <tromey@redhat.com>
5721
5722 PR python/16487:
5723 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
5724 on a NULL pointer. Move "goto error" to correct place.
5725
5726 2014-01-23 Tom Tromey <tromey@redhat.com>
5727
5728 PR python/16491:
5729 * python/py-framefilter.c (apply_frame_filter): Call
5730 ensure_python_env after computing gdbarch.
5731
5732 2014-01-23 Yao Qi <yao@codesourcery.com>
5733
5734 * target.c (raw_memory_xfer_partial): Change argument type
5735 from void * to gdb_byte *.
5736 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
5737
5738 2014-01-22 Doug Evans <dje@google.com>
5739
5740 New gdbserver option --debug-format=timestamp.
5741 * NEWS: Mention it.
5742
5743 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
5744
5745 * syscalls/s390x-linux.xml: New file.
5746 * syscalls/s390-linux.xml: New file.
5747 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
5748 (XML_SYSCALL_FILENAME_S390X): Likewise.
5749 (op_svc): New enum value for SVC opcode.
5750 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
5751 (s390_linux_get_syscall_number): New function.
5752 (s390_gdbarch_init): Register '*get_syscall_number' and the
5753 syscall xml file name.
5754 * data-directory/Makefile.in (SYSCALLS_FILES): Add
5755 "s390-linux.xml" and "s390x-linux.xml".
5756 * NEWS: Announce new feature.
5757
5758 2014-01-22 Baruch Siach <baruch@tkos.co.il>
5759
5760 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
5761
5762 2014-01-22 Pedro Alves <palves@redhat.com>
5763
5764 * xtensa-config.c: Include defs.h.
5765
5766 2014-01-22 Joel Brobecker <brobecker@adacore.com>
5767
5768 * common/common-utils.h: Add "ARI:" comment beside __func__
5769 reference.
5770
5771 2014-01-22 Joel Brobecker <brobecker@adacore.com>
5772
5773 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
5774 documentation a bit.
5775
5776 2014-01-21 Roland McGrath <mcgrathr@google.com>
5777
5778 * configure.ac: Call AM_PROG_INSTALL_STRIP.
5779 * configure: Regenerate.
5780 * aclocal.m4: Regenerate.
5781 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
5782 New substituted variables.
5783 (install-strip): New target.
5784 (INSTALL_SCRIPT): New substituted variable.
5785 (FLAGS_TO_PASS): Add it.
5786 (install-only): Use $(INSTALL_SCRIPT) rather than
5787 $(INSTALL_PROGRAM) for gcore.
5788
5789 2014-01-20 Tom Tromey <tromey@redhat.com>
5790
5791 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
5792 together.
5793
5794 2014-01-20 Tom Tromey <tromey@redhat.com>
5795
5796 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
5797 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
5798 (deprecated_cmd_warning, complete_on_cmdlist): Update.
5799 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
5800 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
5801 (struct cmd_list_element) <flags>: Remove.
5802 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
5803 doc_allocated>: New fields.
5804 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
5805 bitfields.
5806 * maint.c (maintenance_do_deprecate): Update.
5807 * top.c (execute_command): Update.
5808
5809 2014-01-20 Baruch Siach <baruch@tkos.co.il>
5810
5811 * xtensa-linux-nat.c: Include asm/ptrace.h.
5812
5813 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
5814
5815 * Makefile.in (SFILES): Add d-support.c.
5816 (COMMON_OBS): Add d-support.o.
5817 * d-lang.h (d_parse_symbol): Add comment, now defined in
5818 d-support.c.
5819 * d-lang.c (parse_call_convention)
5820 (parse_attributes, parse_function_types)
5821 (parse_function_args, parse_type, parse_identifier)
5822 (call_convention_p, d_parse_symbol): Move functions to ...
5823 * d-support.c: ... New file.
5824
5825 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
5826
5827 * d-lang.h (d_parse_symbol): Add declaration.
5828 * d-lang.c (extract_identifiers)
5829 (extract_type_info): Remove functions.
5830 (parse_call_convention, parse_attributes)
5831 (parse_function_types, parse_function_args)
5832 (parse_type, parse_identifier, call_convention_p)
5833 (d_parse_symbol): New functions.
5834 (d_demangle): Use d_parse_symbol to demangle D symbols.
5835
5836 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
5837
5838 * d-lang.h (struct builtin_d_type): New data type.
5839 (builtin_d_type): Add declaration.
5840 * d-lang.c (d_language_arch_info, build_d_types)
5841 (builtin_d_type): New functions.
5842 (enum d_primitive_types): New data type.
5843 (d_language_defn): Change c_language_arch_info to
5844 d_language_arch_info.
5845 (d_type_data): New static variable.
5846 (_initialize_d_language): Initialize d_type_data.
5847
5848 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
5849
5850 * d-lang.h (d_main_name): Add declaration.
5851 * d-lang.c (d_main_name): New function.
5852 * symtab.c (find_main_name): Add call to d_main_name.
5853
5854 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
5855
5856 * d-lang.c (d_language_defn): Change macro_expansion_c to
5857 macro_expansion_no.
5858
5859 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
5860
5861 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5862
5863 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
5864
5865 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
5866 gdb_exception" declaration.
5867 * remote.c (getpkt_or_notif_sane): Likewise.
5868
5869 2014-01-17 Doug Evans <dje@google.com>
5870
5871 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
5872 function, contents of dirnames_to_char_ptr_vec_append moved here.
5873 (delim_string_to_char_ptr_vec): New function.
5874 (dirnames_to_char_ptr_vec_append): Rewrite.
5875 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
5876
5877 2014-01-17 Doug Evans <dje@google.com>
5878
5879 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
5880 and moved here ...
5881 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
5882 #include "common-utils.h".
5883 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
5884 * common/vec.h (VEC_ASSERT_PASS): Update.
5885 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
5886 (MACH_CHECK_ERROR): Update.
5887
5888 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
5889
5890 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
5891 comments.
5892 * gdbarch.h: Regenerate.
5893
5894 2014-01-16 Tom Tromey <tromey@redhat.com>
5895
5896 * value.c (struct value) <regnum>: Move earlier.
5897
5898 2014-01-16 Tom Tromey <tromey@redhat.com>
5899
5900 * remote.c (extended_remote_create_inferior): Rename from
5901 extended_remote_create_inferior_1. Add "ops" argument. Remove
5902 old implementation.
5903
5904 2014-01-16 Pedro Alves <palves@redhat.com>
5905
5906 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
5907 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
5908 the backchain.
5909
5910 2014-01-16 Doug Evans <dje@google.com>
5911
5912 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
5913
5914 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5915
5916 * btrace.h (btrace_thread_flag): New.
5917 (struct btrace_thread_info) <flags>: New.
5918 * record-btrace.c (record_btrace_resume_thread)
5919 (record_btrace_find_thread_to_move, btrace_step_no_history)
5920 (btrace_step_stopped, record_btrace_start_replaying)
5921 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
5922 (record_btrace_find_resume_thread): New.
5923 (record_btrace_resume, record_btrace_wait): Extend.
5924 (record_btrace_can_execute_reverse): New.
5925 (record_btrace_open): Fail in non-stop mode.
5926 (record_btrace_set_replay): Split into this, ...
5927 (record_btrace_stop_replaying): ... this, ...
5928 (record_btrace_clear_histories): ... and this.
5929 (init_record_btrace_ops): Init to_can_execute_reverse.
5930 * NEWS: Announce it.
5931
5932 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5933
5934 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
5935 (forward_target_decr_pc_after_break)
5936 (target_decr_pc_after_break): New.
5937 * target.c (forward_target_decr_pc_after_break)
5938 (target_decr_pc_after_break): New.
5939 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
5940 instead of gdbarch_decr_pc_after_break.
5941 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
5942 instead of gdbarch_decr_pc_after_break.
5943 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
5944 instead of gdbarch_decr_pc_after_break.
5945 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
5946 instead of gdbarch_decr_pc_after_break.
5947 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
5948 instead of gdbarch_decr_pc_after_break.
5949 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
5950 instead of gdbarch_decr_pc_after_break.
5951
5952 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5953
5954 * btrace.c: Include regcache.h.
5955 (btrace_add_pc): New.
5956 (btrace_enable): Call btrace_add_pc.
5957 (btrace_is_empty): New.
5958 * btrace.h (btrace_is_empty): New.
5959 * record-btrace.c (require_btrace, record_btrace_info): Call
5960 btrace_is_empty.
5961
5962 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5963
5964 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
5965 Support delta reads.
5966 (linux_disable_btrace): Change return type.
5967 * common/linux-btrace.h (linux_read_btrace): Change parameters
5968 and return type to allow error reporting. Update users.
5969 (linux_disable_btrace): Change return type. Update users.
5970 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
5971 New.
5972 (btrace_error): New.
5973 (btrace_block) <begin>: Comment on BEGIN == 0.
5974 * btrace.c (btrace_compute_ftrace): Start from the end of
5975 the current trace.
5976 (btrace_stitch_trace, btrace_clear_history): New.
5977 (btrace_fetch): Read delta trace, return if replaying.
5978 (btrace_clear): Move clear history code to btrace_clear_history.
5979 (parse_xml_btrace): Throw an error if parsing failed.
5980 * target.h (struct target_ops) <to_read_btrace>: Change parameters
5981 and return type to allow error reporting.
5982 (target_read_btrace): Change parameters and return type to allow
5983 error reporting.
5984 * target.c (target_read_btrace): Update.
5985 * remote.c (remote_read_btrace): Support delta reads. Pass
5986 errors on.
5987 * NEWS: Announce it.
5988
5989 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5990
5991 * record.h (record_btrace_frame_unwind)
5992 (record_btrace_tailcall_frame_unwind): New declarations.
5993 * dwarf2-frame: Include record.h
5994 (dwarf2_frame_cfa): Throw an error for btrace frames.
5995 * record-btrace.c: Include hashtab.h.
5996 (btrace_get_bfun_name): New.
5997 (btrace_call_history): Call btrace_get_bfun_name.
5998 (struct btrace_frame_cache): New.
5999 (bfcache): New.
6000 (bfcache_hash, bfcache_eq, bfcache_new): New.
6001 (btrace_get_frame_function): New.
6002 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
6003 (record_btrace_frame_this_id): Compute own id.
6004 (record_btrace_frame_prev_register): Provide PC, throw_error
6005 for all other registers.
6006 (record_btrace_frame_sniffer): Detect btrace frames.
6007 (record_btrace_tailcall_frame_sniffer): New.
6008 (record_btrace_frame_dealloc_cache): New.
6009 (record_btrace_frame_unwind): Add new functions.
6010 (record_btrace_tailcall_frame_unwind): New.
6011 (_initialize_record_btrace): Allocate cache.
6012 * btrace.c (btrace_clear): Call reinit_frame_cache.
6013 * NEWS: Announce it.
6014
6015 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6016
6017 * record-btrace.c (record_btrace_set_replay)
6018 (record_btrace_goto_begin, record_btrace_goto_end)
6019 (record_btrace_goto): New.
6020 (init_record_btrace_ops): Initialize them.
6021 * NEWS: Announce it.
6022
6023 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6024
6025 * record-btrace.c (record_btrace_find_new_threads)
6026 (record_btrace_thread_alive): New.
6027 (init_record_btrace_ops): Initialize to_find_new_threads and
6028 to_thread_alive.
6029
6030 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6031
6032 * record-btrace.c (record_btrace_resume): New.
6033 (record_btrace_wait): New.
6034 (init_record_btrace_ops): Initialize to_wait and to_resume.
6035
6036 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6037
6038 * record-btrace.c (record_btrace_xfer_partial)
6039 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
6040 (record_btrace_allow_memory_access): New.
6041 (init_record_btrace_ops): Initialize new methods.
6042 * target.c (raw_memory_xfer_partial): Bail out if target reports
6043 that this memory is not available.
6044
6045 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6046
6047 * target.h (target_ops) <to_insert_breakpoint>
6048 <to_remove_breakpoint>: Add target_ops parameter.
6049 (forward_target_insert_breakpoint): New.
6050 (forward_target_remove_breakpoint): New.
6051 (memory_remove_breakpoint, memory_insert_breakpoint):
6052 Add target_ops parameter.
6053 * target.c (target_insert_breakpoint): Split into this and ...
6054 (forward_target_insert_breakpoint): ... this.
6055 (target_remove_breakpoint): Split into this and ...
6056 (forward_target_remove_breakpoint): ... this.
6057 (debug_to_insert_breakpoint): Add target_ops parameter.
6058 Call forward_target_insert_breakpoint.
6059 (debug_to_remove_breakpoint): Add target_ops parameter.
6060 Call forward_target_remove_breakpoint.
6061 (update_current_target): Do not inherit or default to_insert_breakpoint
6062 and to_remove_breakpoint.
6063 * corelow.c (ignore): Add target_ops parameter.
6064 * exec.c (ignore): Add target_ops parameter.
6065 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
6066 Add target_ops parameter.
6067 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
6068 Add target_ops parameter.
6069 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
6070 Add target_ops parameter.
6071 * record-full.c (record_full_beneath_to_insert_breakpoint)
6072 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
6073 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
6074 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
6075 (record_full_core_remove_breakpoint): Add target_ops parameter.
6076 Update users.
6077 (record_full_beneath_to_insert_breakpoint_ops)
6078 (record_full_beneath_to_remove_breakpoint_ops)
6079 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
6080 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
6081 tmp_to_remove_breakpoint_ops,
6082 record_full_beneath_to_insert_breakpoint_ops, and
6083 record_full_beneath_to_remove_breakpoint_ops.
6084 * remote-m32r-sdi.c (m32r_insert_breakpoint)
6085 (m32r_remove_breakpoint): Add target_ops parameter.
6086 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
6087 Add target_ops parameter.
6088 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
6089 Add target_ops parameter.
6090
6091 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6092 Markus Metzger <markus.t.metzger@intel.com>
6093
6094 * record-btrace.c: Include frame-unwind.h.
6095 (record_btrace_frame_unwind_stop_reason)
6096 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
6097 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
6098 New.
6099 (init_record_btrace_ops): Install it.
6100
6101 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6102
6103 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
6104 get_prev_frame_1.
6105
6106 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6107
6108 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
6109 earlier.
6110
6111 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6112
6113 * frame-unwind.c: Include target.h.
6114 (frame_unwind_try_unwinder): New function with code from ...
6115 (frame_unwind_find_by_frame): ... here. New variable
6116 unwinder_from_target, call also target_get_unwinder)
6117 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
6118 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
6119 * target.h (struct target_ops): New fields to_get_unwinder and
6120 to_get_tailcall_unwinder.
6121 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
6122
6123 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6124
6125 * record-btrace.c (record_btrace_fetch_registers)
6126 (record_btrace_store_registers)
6127 (record_btrace_to_prepare_to_store): New.
6128 (init_record_btrace_ops): Add the above.
6129
6130 2014-01-16 Tom Tromey <tromey@redhat.com>
6131
6132 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
6133 * target.h (struct target_ops) <to_prepare_to_store>: Add
6134 argument.
6135 (target_prepare_to_store): Add argument.
6136 * target.c (debug_to_prepare_to_store): Add argument.
6137 (update_current_target): Update.
6138 * remote.c (remote_prepare_to_store): Add 'self' argument.
6139 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
6140 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
6141 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
6142 * record-full.c (record_full_core_prepare_to_store): Add 'self'
6143 argument.
6144 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
6145 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
6146 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
6147 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
6148 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
6149
6150 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6151
6152 * btrace.h (replay) <replay>: New.
6153 (btrace_is_replaying): New.
6154 * btrace.c (btrace_clear): Free replay iterator.
6155 (btrace_is_replaying): New.
6156 * record-btrace.c (record_btrace_is_replaying): New.
6157 (record_btrace_info): Print insn number if replaying.
6158 (record_btrace_insn_history): Start at replay position.
6159 (record_btrace_call_history): Start at replay position.
6160 (init_record_btrace_ops): Init to_record_is_replaying.
6161
6162 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6163
6164 * record-btrace.c (record_btrace_insn_history_range): Include
6165 end.
6166 (record_btrace_insn_history_from): Adjust range.
6167 (record_btrace_call_history_range): Include
6168 end.
6169 (record_btrace_call_history_from): Adjust range.
6170 * NEWS: Announce changes.
6171
6172 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6173
6174 * record.h (enum record_print_flag)
6175 <record_print_indent_calls>: New.
6176 * record.c (get_call_history_modifiers): Recognize /c modifier.
6177 (_initialize_record): Document /c modifier.
6178 * record-btrace.c (btrace_call_history): Add btinfo parameter.
6179 Reorder fields. Optionally indent the function name. Update
6180 all users.
6181 * NEWS: Announce changes.
6182
6183 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6184
6185 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
6186
6187 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6188
6189 * btrace.c (ftrace_new_function): Start counting at one.
6190 * record-btrace.c (record_btrace_info): Adjust number of calls
6191 and insns.
6192 * NEWS: Announce it.
6193
6194 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6195
6196 * record-btrace.c (btrace_call_history_insn_range): Print
6197 insn range as [begin, end].
6198
6199 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6200
6201 * btrace.h (struct btrace_func_link): New.
6202 (enum btrace_function_flag): New.
6203 (struct btrace_inst): Rename to ...
6204 (struct btrace_insn): ...this. Update all users.
6205 (struct btrace_func) <ibegin, iend>: Remove.
6206 (struct btrace_func_link): New.
6207 (struct btrace_func): Rename to ...
6208 (struct btrace_function): ...this. Update all users.
6209 (struct btrace_function) <segment, flow, up, insn, insn_offset)
6210 (number, level, flags>: New.
6211 (struct btrace_insn_iterator): Rename to ...
6212 (struct btrace_insn_history): ...this.
6213 Update all users.
6214 (struct btrace_insn_iterator, btrace_call_iterator): New.
6215 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
6216 (struct btrace_target_info) <begin, end, level>
6217 <insn_history, call_history>: New.
6218 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
6219 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
6220 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
6221 (btrace_call_number, btrace_call_begin, btrace_call_end)
6222 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
6223 (btrace_find_function_by_number, btrace_set_insn_history)
6224 (btrace_set_call_history): New.
6225 * btrace.c (btrace_init_insn_iterator)
6226 (btrace_init_func_iterator, compute_itrace): Remove.
6227 (ftrace_print_function_name, ftrace_print_filename)
6228 (ftrace_skip_file): Change
6229 parameter to const.
6230 (ftrace_init_func): Remove.
6231 (ftrace_debug): Use new btrace_function fields.
6232 (ftrace_function_switched): Also consider gaining and
6233 losing symbol information).
6234 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
6235 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
6236 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
6237 New.
6238 (ftrace_new_function): Move. Remove debug print.
6239 (ftrace_update_lines, ftrace_update_insns): New.
6240 (ftrace_update_function): Check for call, ret, and jump.
6241 (compute_ftrace): Renamed to ...
6242 (btrace_compute_ftrace): ...this. Rewritten to compute call
6243 stack.
6244 (btrace_fetch, btrace_clear): Updated.
6245 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
6246 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
6247 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
6248 (btrace_call_number, btrace_call_begin, btrace_call_end)
6249 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
6250 (btrace_find_function_by_number, btrace_set_insn_history)
6251 (btrace_set_call_history): New.
6252 * record-btrace.c (require_btrace): Use new btrace thread
6253 info fields.
6254 (record_btrace_info, btrace_insn_history)
6255 (record_btrace_insn_history, record_btrace_insn_history_range):
6256 Use new btrace thread info fields and new iterator.
6257 (btrace_func_history_src_line): Rename to ...
6258 (btrace_call_history_src_line): ...this. Use new btrace
6259 thread info fields.
6260 (btrace_func_history): Rename to ...
6261 (btrace_call_history): ...this. Use new btrace thread info
6262 fields and new iterator.
6263 (record_btrace_call_history, record_btrace_call_history_range):
6264 Use new btrace thread info fields and new iterator.
6265
6266 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6267
6268 * frame.h (frame_id_build_unavailable_stack_special): New.
6269 * frame.c (frame_id_build_unavailable_stack_special): New.
6270
6271 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6272
6273 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
6274 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
6275 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
6276 to gdbarch.
6277 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
6278 (i386_insn_is_jump, i386_jmp_p): New.
6279 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
6280 insn_is_jump to gdbarch.
6281 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
6282 * gdbarch.h: Regenerated.
6283 * gdbarch.c: Regenerated.
6284 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
6285 (default_insn_is_jump): New.
6286 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
6287 (default_insn_is_jump): New.
6288
6289 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6290
6291 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
6292 Change to ...
6293 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
6294 (btrace_read_type) <btrace_read_new>: Change to ...
6295 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
6296
6297 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6298
6299 * common/linux-btrace.c (linux_read_btrace): Free trace from
6300 previous iteration.
6301
6302 2014-01-15 Doug Evans <dje@google.com>
6303
6304 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
6305 uint32_t.
6306
6307 2014-01-15 Tom Tromey <tromey@redhat.com>
6308
6309 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
6310 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
6311 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
6312 (set_objfile_main_name): New function.
6313 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
6314 language_of_main>: New fields.
6315 (set_objfile_main_name): Declare.
6316 * symtab.c (find_main_name): Loop over objfiles to find the main
6317 name and language.
6318 (set_main_name): Now static.
6319 (get_main_info): Add comment.
6320 * symtab.h (set_main_name): Don't declare.
6321
6322 2014-01-15 Tom Tromey <tromey@redhat.com>
6323
6324 * symtab.c (main_progspace_key): New global.
6325 (struct main_info): New.
6326 (name_of_main, language_of_main): Remove.
6327 (get_main_info, main_info_cleanup): New function.
6328 (set_main_name, main_name, main_language): Use get_main_info.
6329 (_initialize_symtab): Initialize main_progspace_key.
6330
6331 2014-01-15 Tom Tromey <tromey@redhat.com>
6332
6333 * dbxread.c (process_one_symbol): Update.
6334 * dwarf2read.c (read_partial_die): Update.
6335 * symfile.c (set_initial_language): Call main_language.
6336 * symtab.c (language_of_main): Now static.
6337 (set_main_name): Add 'lang' parameter.
6338 (find_main_name): Update.
6339 (main_language): New function.
6340 (symtab_observer_executable_changed): Update.
6341 * symtab.h (set_main_name): Update.
6342 (language_of_main): Remove.
6343 (main_language): Declare.
6344
6345 2014-01-15 Tom Tromey <tromey@redhat.com>
6346
6347 * symfile.c (init_entry_point_info): Use new "initialized" field.
6348 Update.
6349 * objfiles.h (struct entry_point) <initialized>: New field.
6350 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
6351 (struct objfile) <ei>: ...here. Remove.
6352 * objfiles.c (entry_point_address_query): Update.
6353
6354 2014-01-15 Tom Tromey <tromey@redhat.com>
6355
6356 * objfiles.c (entry_point_address_query): Relocate entry point
6357 address.
6358 (objfile_relocate1): Do not relocate entry point address.
6359 * objfiles.h (struct entry_info) <entry_point>: Update comment.
6360 <the_bfd_section_index>: New field.
6361 * symfile.c (init_entry_point_info): Find the entry point's
6362 section.
6363
6364 2014-01-15 Tom Tromey <tromey@redhat.com>
6365
6366 * solib-frv.c (enable_break): Use entry_point_address_query.
6367
6368 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6369
6370 * NEWS: Add note on improved process record-replay on
6371 arm*-linux* targets.
6372
6373 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6374
6375 * arm-tdep.c (enum arm_record_result): New enum.
6376 (arm_record_unsupported_insn): New function.
6377 (arm_record_coproc_data_proc): Removed.
6378 (thumb2_record_ld_st_multiple): New function.
6379 (thumb2_record_ld_st_dual_ex_tbb): New function.
6380 (thumb2_record_data_proc_sreg_mimm): New function.
6381 (thumb2_record_ps_dest_generic): New function.
6382 (thumb2_record_branch_misc_cntrl): New function.
6383 (thumb2_record_str_single_data): New function.
6384 (thumb2_record_ld_mem_hints): New function.
6385 (thumb2_record_ld_word): New function.
6386 (thumb2_record_lmul_lmla_div): New function.
6387 (thumb2_record_decode_insn_handler): New function.
6388 (decode_insn): Add thumb32 instruction handlers.
6389
6390 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6391
6392 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
6393 (struct arm_linux_record_tdep): Declare.
6394 (arm_canonicalize_syscall): New function.
6395 (arm_all_but_pc_registers_record): New function.
6396 (arm_linux_syscall_record): New function.
6397 (arm_linux_init_abi): Add syscall recording constructs.
6398 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
6399 decoding. (arm_record_coproc_data_proc): Update arm syscall
6400 decoding.
6401 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
6402 <arm_syscall_record>: New field.
6403 * configure.tgt (arm*-*-linux*): Add linux-record.o to
6404 gdb_target_obs.
6405
6406 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6407
6408 * arm-tdep.c (thumb_record_misc): Update to use sp as base
6409 register for push instruction recording.
6410
6411 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6412
6413 * arm-tdep.c (thumb_record_misc): Update to correct logical
6414 error while recording ldm, ldmia and pop instructions.
6415
6416 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6417
6418 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
6419
6420 2014-01-15 Pedro Alves <palves@redhat.com>
6421
6422 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
6423 (go32_resume, go32_fetch_registers, store_register)
6424 (go32_store_registers, go32_prepare_to_store)
6425 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
6426 (go32_create_inferior, go32_can_run, go32_terminal_init)
6427 (go32_terminal_inferior, go32_terminal_ours): Delete forward
6428 declarations.
6429
6430 2014-01-15 Tom Tromey <tromey@redhat.com>
6431
6432 * target.h (async_callback_ftype): New typedef.
6433 (struct target_ops) <to_async>: Use it.
6434
6435 2014-01-15 Joel Brobecker <brobecker@adacore.com>
6436
6437 * python/py-value.c (get_field_type): Remove unnecessary curly
6438 braces for single-statement if block.
6439
6440 2014-01-15 Joel Brobecker <brobecker@adacore.com>
6441
6442 * python/py-type.c (convert_field): Add missing empty line
6443 after declarations.
6444
6445 2014-01-14 Doug Evans <dje@google.com>
6446
6447 * symfile.h (expand_symtabs_matching): Renamed from
6448 expand_partial_symbol_names. Update prototype.
6449 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
6450 * symfile.c (expand_symtabs_matching): Renamed from
6451 expand_partial_symbol_names. New args file_matcher, kind.
6452 Rename arg fun to symbol_matcher.
6453 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
6454 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
6455 ada_expand_partial_symbol_name.
6456 (ada_make_symbol_completion_list): Update to call
6457 expand_symtabs_matching.
6458 (ada_add_global_exceptions): Call expand_symtabs_matching.
6459 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
6460 call map_symbol_filenames.
6461 * symtab.c (sources_info): Update to call map_symbol_filenames.
6462 (search_symbols): Call expand_symtabs_matching.
6463 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
6464 (default_make_symbol_completion_list_break_on): Update to call
6465 expand_symtabs_matching.
6466 (make_source_files_completion_list): Update to call
6467 map_symbol_filenames.
6468
6469 2014-01-14 Doug Evans <dje@google.com>
6470
6471 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
6472 (expand_symtabs_symbol_matcher_ftype): New typedef.
6473 (quick_symbol_functions.expand_symtabs_matching): Update to use.
6474 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
6475 * symfile.c (expand_partial_symbol_names): Update to use
6476 expand_symtabs_symbol_matcher_ftype.
6477 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
6478 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
6479 Arg name_matcher renamed to symbol_matcher.
6480 * psymtab.c (recursively_search_psymtabs): Update to use
6481 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
6482 sym_matcher.
6483 (expand_symtabs_matching_via_partial): Update to use
6484 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
6485 Arg name_matcher renamed to symbol_matcher.
6486
6487 2014-01-14 Doug Evans <dje@google.com>
6488
6489 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
6490 (map_partial_symbol_filenames): Ditto.
6491 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
6492 (map_partial_symbol_filenames): Ditto.
6493 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
6494 (map_partial_symbol_filenames): Ditto.
6495 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
6496 (map_partial_symbol_filenames): Ditto.
6497 * symtab.c: Delete #include "psymtab.h".
6498
6499 2014-01-14 Pedro Alves <palves@redhat.com>
6500 Tom Tromey <tromey@redhat.com>
6501
6502 * infrun.c (use_displaced_stepping): Use find_record_target
6503 instead of RECORD_IS_USED.
6504 (adjust_pc_after_break): Use record_full_is_used instead of
6505 RECORD_IS_USED.
6506 * record-btrace.c (record_btrace_open): Call record_preopen
6507 instead of checking RECORD_IS_USED.
6508 * record-full.c (record_full_shortname)
6509 (record_full_core_shortname): New globals.
6510 (record_full_is_used): New function.
6511 (find_full_open): Call record_preopen instead of checking
6512 RECORD_IS_USED.
6513 (init_record_full_ops): Set the target's shortname to
6514 record_full_shortname.
6515 (init_record_full_core_ops): Set the target's shortname to
6516 record_full_core_shortname.
6517 * record-full.h (record_full_is_used): Declare.
6518 * record.c (find_record_target): Make extern.
6519 (record_preopen): New function.
6520 * record.h (RECORD_IS_USED): Delete macro.
6521 (find_record_target, record_preopen): Declare functions.
6522
6523 2014-01-14 Yao Qi <yao@codesourcery.com>
6524
6525 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
6526 'len''s type to ULONGEST.
6527 (core_xfer_shared_libraries_aix): Likewise.
6528 * gdbarch.c, gdbarch.h: Regenerated.
6529 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
6530 Change type of 'len' to ULONGEST.
6531 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
6532 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
6533
6534 2014-01-14 Yao Qi <yao@codesourcery.com>
6535
6536 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
6537 type of 'len' to ULONGEST.
6538 (linux_xfer_osdata_processgroups): Likewise.
6539 (linux_xfer_osdata_threads): Likewise.
6540 (linux_xfer_osdata_fds): Likewise.
6541 (linux_xfer_osdata_isockets): Likewise.
6542 (linux_xfer_osdata_shm): Likewise.
6543 (linux_xfer_osdata_sem): Likewise.
6544 (linux_xfer_osdata_msg): Likewise.
6545 (linux_common_xfer_osdata): Likewise.
6546 (struct osdata_type) <getter>: Likewise.
6547 * common/linux-osdata.h (linux_common_xfer_osdata): Update
6548 the declaration.
6549
6550 2014-01-14 Yao Qi <yao@codesourcery.com>
6551
6552 * target.h (target_xfer_partial_ftype): Update.
6553 (struct target_ops) <to_xfer_partial>: Change 'len' type to
6554 ULONGEST.
6555 * aix-thread.c (aix_thread_xfer_partial): Change type of
6556 argument 'len' to ULONGEST.
6557 * auxv.c (procfs_xfer_auxv): Likewise.
6558 (ld_so_xfer_auxv): Likewise.
6559 (memory_xfer_auxv): Likewise.
6560 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6561 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6562 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
6563 * corelow.c (core_xfer_partial): Likewise.
6564 * ctf.c (ctf_xfer_partial): Likewise.
6565 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
6566 '%u'.
6567 (darwin_read_dyld_info): Likewise.
6568 (darwin_xfer_partial): Likewise.
6569 * exec.c (section_table_xfer_memory_partial): Likewise.
6570 (exec_xfer_partial): Likewise.
6571 * exec.h (section_table_xfer_memory_partial): Update
6572 declaration.
6573 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
6574 instead of plongest.
6575 (gnu_xfer_partial): Likewise.
6576 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
6577 (ia64_hpux_xfer_solib_got): Likewise.
6578 (ia64_hpux_xfer_partial): Likewise.
6579 * ia64-linux-nat.c (ia64_linux_xfer_partial):
6580 * inf-ptrace.c (inf_ptrace_xfer_partial):
6581 * inf-ttrace.c (inf_ttrace_xfer_partial):
6582 * linux-nat.c (linux_xfer_siginfo): Likewise.
6583 (linux_nat_xfer_partial): Likewise.
6584 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
6585 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
6586 * monitor.c (monitor_xfer_memory): Likewise.
6587 (monitor_xfer_partial): Likewise.
6588 * procfs.c (procfs_xfer_partial): Likewise.
6589 * record-full.c (record_full_xfer_partial): Likewise.
6590 (record_full_core_xfer_partial): Likewise.
6591 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
6592 instead of plongest.
6593 (gdbsim_xfer_partial): Likewise.
6594 * remote.c (remote_xfer_partial): Likewise.
6595 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
6596 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
6597 declaration.
6598 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6599 (rs6000_xfer_shared_libraries): Likewise.
6600 * sol-thread.c (sol_thread_xfer_partial): Likewise.
6601 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6602 (sparc_xfer_partial): Likewise.
6603 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6604 (spu_xfer_partial): Likewise.
6605 * spu-multiarch.c (spu_xfer_partial): Likewise.
6606 * target.c (target_read_live_memory): Likewise.
6607 (memory_xfer_live_readonly_partial): Likewise.
6608 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
6609 (target_xfer_partial, default_xfer_partial): Likewise.
6610 (current_xfer_partial): Likewise.
6611 * tracepoint.c (tfile_xfer_partial): Likewise.
6612 * windows-nat.c (windows_xfer_memory): Likewise. Call
6613 pulongest instead of plongest.
6614 (windows_xfer_partial): Likewise.
6615 (windows_xfer_shared_libraries): Likewise.
6616
6617 2014-01-14 Yao Qi <yao@codesourcery.com>
6618
6619 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
6620 target_xfer_partial_ftype.
6621
6622 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
6623
6624 PR python/15464
6625 PR python/16113
6626 * valops.c (value_struct_elt_bitpos): New function
6627 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
6628 object to 'None' if the field name is an empty string ("").
6629 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
6630 attribute to look for a field when 'name' is 'None'.
6631 (get_field_type): New function
6632
6633 2014-01-13 Doug Evans <dje@google.com>
6634
6635 PR symtab/16426
6636 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
6637 (try_open_dwop_file): Ditto.
6638 * gdb_bfd.c: #include "vec.h".
6639 (bfdp): New typedef.
6640 (struct gdb_bfd_data): New member included_bfds.
6641 (gdb_bfd_unref): Unref all included bfds.
6642 (gdb_bfd_record_inclusion): New function.
6643 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
6644
6645 2014-01-13 Tom Tromey <tromey@redhat.com>
6646
6647 * gdbcore.h (deprecated_core_resize_section_table): Remove.
6648
6649 2014-01-13 Tom Tromey <tromey@redhat.com>
6650
6651 * defs.h (use_windows): Remove.
6652 * gdb.c (main): Update.
6653 * main.c (captured_main, gdb_main): Update.
6654 * main.h (struct captured_main_args) <use_windows>: Remove.
6655 * top.c (use_windows): Remove.
6656
6657 2014-01-13 Tom Tromey <tromey@redhat.com>
6658
6659 * defs.h (deprecated_flush_hook): Remove.
6660
6661 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6662
6663 PR threads/16216
6664 * linux-thread-db.c (try_thread_db_load): Add parameter
6665 check_auto_load_safe. Move here the file_is_auto_load_safe call.
6666 (try_thread_db_load_from_pdir_1): Move it there from here.
6667 (try_thread_db_load_from_sdir): Update caller.
6668 (try_thread_db_load_from_dir): Move it there from here.
6669
6670 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
6671
6672 * regformats/regdat.sh: Always rewrite the register file.
6673
6674 2014-01-13 Pedro Alves <palves@redhat.com>
6675
6676 * Makefile.in (CHECK_HEADERS): New variable.
6677 (check-headers:): New rule.
6678
6679 2014-01-13 Tom Tromey <tromey@redhat.com>
6680
6681 * cli/cli-setshow.c (do_set_command): Update.
6682 * defs.h (deprecated_set_hook): Remove.
6683 * top.c (deprecated_set_hook): Remove.
6684
6685 2014-01-13 Pedro Alves <palves@redhat.com>
6686
6687 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
6688 the tracepoint if the PC is a pseudo-register.
6689
6690 2014-01-13 Tom Tromey <tromey@redhat.com>
6691
6692 * defs.h (XCALLOC): Remove.
6693 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
6694 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
6695 * dwarf2loc.c (allocate_piece_closure): Likewise.
6696 * elfread.c (elf_symfile_segments): Likewise.
6697 (elf_symfile_segments): Likewise.
6698 * gdbtypes.c (copy_type_recursive): Likewise.
6699 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
6700 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
6701 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
6702 XCALLOC.
6703 * mt-tdep.c (mt_gdbarch_init): Likewise.
6704 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
6705 XCALLOC.
6706 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
6707 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
6708 * registry.c (registry_alloc_data): Likewise.
6709 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
6710 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6711 * serial.c (serial_fdopen_ops): Likewise.
6712 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
6713 XCALLOC.
6714 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
6715 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
6716 not XCALLOC.
6717
6718 2014-01-13 Tom Tromey <tromey@redhat.com>
6719
6720 * defs.h (XMALLOC): Remove.
6721 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
6722 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6723 * cli-out.c (struct ui_out *): Likewise.
6724 * cli/cli-dump.c (add_dump_command): Likewise.
6725 (add_dump_command): Likewise.
6726 * complaints.c (get_complaints): Likewise.
6727 (find_complaint): Likewise.
6728 * dwarf2-frame.c (execute_cfa_program): Likewise.
6729 * dwarf2read.c (abbrev_table_read_table): Likewise.
6730 * gdbarch.sh: Likewise.
6731 * gdbarch.c: Rebuild.
6732 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
6733 * interps.c (interp_new): Likewise.
6734 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6735 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6736 * mi/mi-console.c (mi_console_file_new): Likewise.
6737 * mi/mi-interp.c (mi_interpreter_init): Likewise.
6738 * mi/mi-out.c (mi_out_new): Likewise.
6739 * mi/mi-parse.c (mi_parse): Likewise.
6740 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6741 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6742 * observer.c (xalloc_observer_list_node): Likewise.
6743 * regcache.c (regcache_xmalloc_1): Likewise.
6744 * reggroups.c (reggroup_new): Likewise.
6745 (_initialize_reggroup): Likewise.
6746 * registry.c (register_data_with_cleanup): Likewise.
6747 * remote.c (remote_notif_stop_alloc_reply): Likewise.
6748 * ser-base.c (serial_ttystate): Likewise.
6749 * ser-mingw.c (make_pipe_state): Likewise.
6750 * ser-pipe.c (pipe_open): Likewise.
6751 * serial.c (serial_open): Likewise.
6752 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6753 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
6754 (tui_alloc_win_info): Likewise.
6755 (tui_add_content_elements): Likewise.
6756 * tui/tui-file.c (tui_file_new): Likewise.
6757 * tui/tui-out.c (tui_out_new): Likewise.
6758 * ui-file.c (mem_file_new): Likewise.
6759 * ui-out.c (push_level): Likewise.
6760 (make_cleanup_ui_out_end): Likewise.
6761 (append_header_to_list): Likewise.
6762 (ui_out_new): Likewise.
6763 * user-regs.c (user_reg_add_builtin): Likewise.
6764
6765 2014-01-13 Tom Tromey <tromey@redhat.com>
6766
6767 * defs.h (XZALLOC): Remove.
6768 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
6769 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
6770 (get_ada_tasks_inferior_data): Likewise.
6771 * auto-load.c (get_auto_load_pspace_data): Likewise.
6772 * auxv.c (get_auxv_inferior_data): Likewise.
6773 * bfd-target.c (target_bfd_reopen): Likewise.
6774 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
6775 (deprecated_insert_raw_breakpoint): Likewise.
6776 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
6777 * corelow.c (core_open): Likewise.
6778 * darwin-nat.c (darwin_check_new_threads): Likewise.
6779 (darwin_attach_pid): Likewise.
6780 * dummy-frame.c (dummy_frame_push): Likewise.
6781 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
6782 * dwarf2loc.c (allocate_piece_closure): Likewise.
6783 * elfread.c (elf_symfile_segments): Likewise.
6784 * eval.c (ptrmath_type_p): Likewise.
6785 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
6786 * gdbtypes.c (alloc_type_arch): Likewise.
6787 (alloc_type_instance): Likewise.
6788 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
6789 * inf-child.c (inf_child_can_use_agent): Likewise.
6790 * inflow.c (get_inflow_inferior_data): Likewise.
6791 * infrun.c (save_infcall_suspend_state): Likewise.
6792 * jit.c (jit_reader_load): Likewise.
6793 (get_jit_objfile_data): Likewise.
6794 (get_jit_program_space_data): Likewise.
6795 (jit_object_open_impl): Likewise.
6796 (jit_symtab_open_impl): Likewise.
6797 (jit_block_open_impl): Likewise.
6798 (jit_frame_sniffer): Likewise.
6799 * linux-fork.c (add_fork): Likewise.
6800 * maint.c (make_command_stats_cleanup): Likewise.
6801 * objfiles.c (get_objfile_pspace_data): Likewise.
6802 * opencl-lang.c (struct lval_closure): Likewise.
6803 * osdata.c (osdata_start_osdata): Likewise.
6804 * progspace.c (new_address_space): Likewise.
6805 (add_program_space): Likewise.
6806 * remote-sim.c (get_sim_inferior_data): Likewise.
6807 * sh-tdep.c (sh_gdbarch_init): Likewise.
6808 * skip.c (Ignore): Likewise.
6809 (skip_delete_command): Likewise.
6810 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
6811 (library_list_start_library): Likewise.
6812 (solib_aix_current_sos): Likewise.
6813 * solib-darwin.c (get_darwin_info): Likewise.
6814 (darwin_current_sos): Likewise.
6815 * solib-dsbt.c (get_dsbt_info): Likewise.
6816 * solib-ia64-hpux.c (new_so_list): Likewise.
6817 (ia64_hpux_get_solib_linkage_addr): Likewise.
6818 * solib-spu.c (append_ocl_sos): Likewise.
6819 (spu_current_sos): Likewise.
6820 * solib-svr4.c (get_svr4_info): Likewise.
6821 (svr4_keep_data_in_core): Likewise.
6822 (library_list_start_library): Likewise.
6823 (svr4_default_sos): Likewise.
6824 (svr4_read_so_list): Likewise.
6825 * solib-target.c (library_list_start_library): Likewise.
6826 (solib_target_current_sos): Likewise.
6827 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6828 * symfile-debug.c (install_symfile_debug_logging): Likewise.
6829 * symfile.c (default_symfile_segments): Likewise.
6830 * target-descriptions.c (tdesc_data_init): Likewise.
6831 (tdesc_create_reg): Likewise.
6832 (struct tdesc_type *): Likewise.
6833 (tdesc_create_vector): Likewise.
6834 (tdesc_set_struct_size): Likewise.
6835 (struct tdesc_type *): Likewise.
6836 (tdesc_free_feature): Likewise.
6837 (tdesc_create_feature): Likewise.
6838 * windows-nat.c (windows_add_thread): Likewise.
6839 (windows_make_so): Likewise.
6840 * xml-support.c (gdb_xml_body_text): Likewise.
6841 (gdb_xml_create_parser_and_cleanup): Likewise.
6842 (xml_process_xincludes): Likewise.
6843 * xml-syscall.c (allocate_syscalls_info): Likewise.
6844 (syscall_create_syscall_desc): Likewise.
6845
6846 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
6847
6848 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
6849 function, with code from i386_stap_parse_special_token.
6850 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6851 (i386_stap_parse_special_token): Move code to the two functions
6852 above; simplify it.
6853
6854 2014-01-09 Pedro Alves <palves@redhat.com>
6855 Hui Zhu <hui@codesourcery.com>
6856
6857 PR gdb/16101
6858 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
6859 bp_err_string. Don't mark the location shlib_disabled if the
6860 error thrown wasn't a generic or memory error. Catch errors
6861 thrown while inserting breakpoints in overlayed code. Output
6862 error message of software breakpoints.
6863 * remote.c (remote_insert_breakpoint): If this breakpoint has
6864 target-side commands but this stub doesn't support Z0 packets,
6865 throw NOT_SUPPORTED_ERROR error.
6866 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
6867 * target.h (target_insert_breakpoint): Extend comment.
6868 (target_insert_hw_breakpoint): Add comment.
6869
6870 2014-01-08 Pedro Alves <palves@redhat.com>
6871
6872 * remote.c (remote_add_thread): Add threads silently if starting
6873 up.
6874 (remote_notice_new_inferior): If in all-stop, and starting up,
6875 don't call notice_new_inferior.
6876 (get_current_thread): New function, factored out from ...
6877 (add_current_inferior_and_thread): ... this. Adjust.
6878 (remote_start_remote) <all-stop>: Fetch the thread list. If we
6879 found any thread, then select the remote's current thread as GDB's
6880 current thread too.
6881
6882 2014-01-08 Joel Brobecker <brobecker@adacore.com>
6883
6884 * NEWS: Create a new section for the next release branch.
6885 Rename the section of the current branch, now that it has
6886 been cut.
6887
6888 2014-01-08 Joel Brobecker <brobecker@adacore.com>
6889
6890 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
6891 * version.in: Bump version to 7.7.50.DATE-cvs.
6892
6893 2014-01-08 Yao Qi <yao@codesourcery.com>
6894
6895 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
6896 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
6897 (spu_xfer_partial): Cast 'buf' to 'const char *'.
6898
6899 2014-01-08 Yao Qi <yao@codesourcery.com>
6900
6901 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
6902 return value of bfd_get_filename to symbol_file_add_from_bfd.
6903
6904 2014-01-08 Pierre Muller <muller@sourceware.org>
6905
6906 Fix PR16201.
6907 * coff-pe-read.c (struct read_pe_section_data): Add index field.
6908 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
6909 to prim_record_mininal_symbol_and_info.
6910 (add_pe_forwarded_sym): Use known section number of forwarded symbol
6911 in call to prim_record_minimal_symbol_and_info.
6912 (read_pe_exported_syms): Set index field of section_data.
6913
6914 2014-01-07 Andrew Pinski <apinski@cavium.com>
6915
6916 * features/aarch64-core.xml (cpsr): Change to be 64bit.
6917 * features/aarch64.c: Regenerate.
6918
6919 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
6920
6921 * target.c (return_null): Define.
6922 (update_current_target): Use it instead of return_zero for
6923 functions that return a pointer.
6924
6925 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
6926
6927 * source.c (add_path): Fix check for duplicated paths in the previously
6928 included paths.
6929
6930 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
6931
6932 * ada-lang.c: Remove duplicated include statements.
6933 * alphabsd-nat.c: Ditto.
6934 * amd64-darwin-tdep.c: Ditto.
6935 * amd64fbsd-nat.c: Ditto.
6936 * auto-load.c: Ditto.
6937 * ax-gdb.c: Ditto.
6938 * breakpoint.c: Ditto.
6939 * dbxread.c: Ditto.
6940 * fork-child.c: Ditto.
6941 * gdb_usleep.c: Ditto.
6942 * i386-darwin-tdep.c: Ditto.
6943 * i386fbsd-nat.c: Ditto.
6944 * infcmd.c: Ditto.
6945 * inferior.c: Ditto.
6946 * jv-lang.c: Ditto.
6947 * linux-nat.c: Ditto.
6948 * linux-tdep.c: Ditto.
6949 * m68kbsd-nat.c: Ditto.
6950 * m68klinux-nat.c: Ditto.
6951 * microblaze-tdep.c: Ditto.
6952 * mips-linux-tdep.c: Ditto.
6953 * mn10300-tdep.c: Ditto.
6954 * nto-tdep.c: Ditto.
6955 * opencl-lang.c: Ditto.
6956 * osdata.c: Ditto.
6957 * printcmd.c: Ditto.
6958 * regcache.c: Ditto.
6959 * remote-m32r-sdi.c: Ditto.
6960 * remote.c: Ditto.
6961 * symfile.c: Ditto.
6962 * symtab.c: Ditto.
6963 * tilegx-linux-nat.c: Ditto.
6964 * tilegx-tdep.c: Ditto.
6965 * tracepoint.c: Ditto.
6966 * valops.c: Ditto.
6967 * vaxbsd-nat.c: Ditto.
6968 * windows-nat.c: Ditto.
6969 * xtensa-tdep.c: Ditto.
6970
6971 2014-01-07 Yao Qi <yao@codesourcery.com>
6972
6973 * spu-linux-nat.c (_initialize_spu_nat): Declare.
6974
6975 2014-01-07 Yao Qi <yao@codesourcery.com>
6976 Joel Brobecker <brobecker@adacore.com>
6977
6978 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
6979 (pdc_write_regs): Likewise.
6980 (fetch_regs_kernel_thread): Likewise.
6981 (store_regs_kernel_thread): Likewise.
6982
6983 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6984
6985 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
6986 tagged type objects to their actual type.
6987
6988 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6989
6990 * ada-valprint.c (print_field_values): Add "language" parameter.
6991 Update calls to print_field_values and print_variant_part.
6992 Pass new parameter "language" in call to val_print instead
6993 of "current_language". Replace call to ada_val_print by call
6994 to val_print.
6995 (print_variant_part): Add "language" parameter.
6996 (ada_val_print_struct_union): Update call to print_field_values.
6997
6998 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6999
7000 * ada-valprint.c (ui_memcpy): Delete.
7001 (ada_print_floating): Update documentation. Add empty line
7002 between between function documentation and implementation.
7003 Delete variable "buffer". Use ui_file_xstrdup in place of
7004 ui_file_put. Minor adjustments following this change.
7005
7006 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7007
7008 * ada-valprint.c (ada_val_print_string): New function,
7009 extracted from ada_val_print_array.
7010 (ada_val_print_array): Replace extracted code by call
7011 to ada_val_print_string followed by a return. Move
7012 "else" branch to the function's top block.
7013
7014 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7015
7016 * ada-valprint.c (ada_val_print_array): Move implementation
7017 down. Rename parameter "offset" and "val" into "offset_aligned"
7018 and "original_value" respectively. Add parameter "offset".
7019
7020 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7021
7022 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
7023 re-organizing the code. Change the "???" message printed
7024 when target type is a TYPE_CODE_UNDEF into
7025 "<ref to undefined type>".
7026
7027 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7028
7029 * ada-valprint.c (print_record): Delete, implementation inlined...
7030 (ada_val_print_struct_union): ... here. Remove call to
7031 ada_check_typedef in inlined implementation.
7032
7033 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7034
7035 * ada-valprint.c (ada_val_print_gnat_array): New function,
7036 extracted from ada_val_print_1;
7037 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
7038 (ada_val_print_flt, ada_val_print_struct_union)
7039 (ada_val_print_ref): Likewise.
7040 (ada_val_print_1): Delete variables i and elttype.
7041 Replace extracted-out code by call to corresponding
7042 new functions.
7043
7044 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7045
7046 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
7047
7048 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7049
7050 * ada-valprint.c (ada_val_print_1): Replace calls to
7051 ada_val_print_1 by calls to val_print.
7052
7053 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7054
7055 * ada-valprint.c (ada_val_print_1): Add parameter "language".
7056 Update calls to self accordingly. Replace calls to c_val_print
7057 by calls to val_print.
7058
7059 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7060
7061 * ada-valprint.c (print_record): Delete declaration.
7062 (adjust_type_signedness, ada_val_print_1): Likewise.
7063 (ada_val_print): Move function implementation down.
7064 (print_variant_part, print_field_values, print_record):
7065 Move function implementation up.
7066
7067 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7068
7069 * python/py-type.c (typy_get_name): New function.
7070 (type_object_getset): Add entry for attribute "name".
7071 * NEWS: Add entry mentioning this new attribute.
7072
7073 2014-01-07 Yao Qi <yao@codesourcery.com>
7074
7075 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
7076 statement.
7077
7078 2014-01-07 Yao Qi <yao@codesourcery.com>
7079
7080 * gnu-nat.c (info_port_rights): Add qualifier const to
7081 argument args.
7082
7083 2014-01-07 Yao Qi <yao@codesourcery.com>
7084
7085 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
7086
7087 2014-01-07 Yao Qi <yao@codesourcery.com>
7088
7089 * gnu-nat.c (make_inf) Update declaration.
7090 (make_inf): Make it static.
7091 (inf_set_traced): Likewise.
7092 (inf_port_to_thread, inf_task_died_status): Likewise.
7093
7094 2014-01-07 Yao Qi <yao@codesourcery.com>
7095
7096 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
7097
7098 2014-01-07 Yao Qi <yao@codesourcery.com>
7099
7100 * gnu-nat.c (_initialize_gnu_nat): Declare.
7101
7102 2014-01-07 Yao Qi <yao@codesourcery.com>
7103
7104 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
7105 'enum bfd_endian'.
7106 (struct gdbarch_info) <byte_order>: Change type to
7107 'enum bfd_endian'.
7108 <byte_order_for_code>: Likewise.
7109 * gdbarch.c, gdbarch.h: Regenerated.
7110
7111 2014-01-06 Sasha Smundak <asmundak@google.com>
7112
7113 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
7114
7115 2014-01-06 Tom Tromey <tromey@redhat.com>
7116
7117 * doublest.c (convert_doublest_to_floatformat): Use const, not
7118 CONST.
7119 * somread.c (som_symtab_read): Likewise.
7120
7121 2014-01-07 Hui Zhu <hui@codesourcery.com>
7122
7123 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
7124 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
7125 (gdb_bfd_fopen): Ditto.
7126 (gdb_bfd_openr): Ditto.
7127 (gdb_bfd_openw): Ditto.
7128 (gdb_bfd_openr_iovec): Ditto.
7129 (gdb_bfd_fdopenr): Ditto.
7130 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
7131 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
7132 with xstrdup.
7133 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
7134 with xstrdup.
7135 * symfile-mem.c (symbol_file_add_from_memory): Removed
7136 gdb_bfd_stash_filename.
7137
7138 2014-01-03 Doug Evans <dje@google.com>
7139
7140 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
7141 output.
7142
7143 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7144
7145 Update year range in copyright notice of all files.
7146
7147 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7148
7149 * top.c (print_gdb_version): Set copyright year to 2014.
7150
7151 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7152
7153 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
7154
7155 For older changes see ChangeLog-2013.
7156 \f
7157 Local Variables:
7158 mode: change-log
7159 left-margin: 8
7160 fill-column: 74
7161 version-control: never
7162 coding: utf-8
7163 End: