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