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