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