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