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