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