1 2014-04-19 Eli Zaretskii <eliz@gnu.org>
4 * windows-nat.c (thread_rec): Don't display a warning when
5 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6 fails for any reason, set th->suspended to -1, so that we don't
7 try to resume such a thread. Also, don't return NULL in these
8 cases, to avoid completely ruin the session due to "PC register is
10 (do_windows_fetch_inferior_registers): Check errors in
11 GetThreadContext call.
12 (windows_continue): Accept an additional argument KILLED; if not
13 zero, ignore errors in the SetThreadContext call, since the
14 inferior was killed and is shutting down.
15 (windows_resume, get_windows_debug_event)
16 (windows_create_inferior, windows_mourn_inferior)
17 (windows_kill_inferior): All callers of windows_continue changed
18 to adjust to its new calling sequence.
20 2014-04-19 Yao Qi <yao@codesourcery.com>
22 * ctf.c (ctf_open): Call post_create_inferior.
24 2014-04-19 Yao Qi <yao@codesourcery.com>
26 * ctf.c (handle_id): New static variable.
27 (ctf_open_dir): Get handle_id from bt_context_add_trace return
28 value. Get the declaration of event "register" and get length
31 2014-04-19 Yao Qi <yao@codesourcery.com>
33 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
35 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
37 * valops.c (oload_method_static): Remove unnecessary argument
38 METHOD. Update all callers.
40 2014-04-18 Pedro alves <palves@redhat.com>
41 Tom Tromey <tromey@redhat.com>
44 * frame.c (get_prev_frame_1): Rename to ...
45 (get_prev_frame_always): ... this, and make extern. Adjust.
46 (skip_artificial_frames): Use get_prev_frame_always.
47 (frame_unwind_caller_id, frame_pop, get_prev_frame)
48 (get_frame_unwind_stop_reason): Adjust to rename.
49 * frame.h (get_prev_frame_always): Declare.
50 * inline-frame.c: Include frame.h.
51 (inline_frame_this_id): Use get_prev_frame_always.
53 2014-04-18 Tristan Gingold <gingold@adacore.com>
55 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
56 code by using bfd_mach_o_get_base_address.
58 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
60 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
61 (spu_ax_pseudo_register_collect): New function.
62 (spu_ax_pseudo_register_push_stack): Likewise.
63 (spu_dwarf_reg_to_regnum): Likewise.
64 (spu_gdbarch_init): Install them. Append DWARF unwinders.
66 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
68 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
69 Replace FRAME argument with FRAME_ID.
70 * gdbarch.c, gdbarch.h: Regenerate.
71 * findvar.c (default_value_from_register): Add GDBARCH argument;
72 replace FRAME by FRAME_ID. No longer call get_frame_id.
73 (value_from_register): Update call to gdbarch_value_from_register.
74 * value.h (default_value_from_register): Update prototype.
75 * s390-linux-tdep.c (s390_value_from_register): Update interface
76 and call to default_value_from_register.
77 * spu-tdep.c (spu_value_from_register): Likewise.
79 * findvar.c (address_from_register): Remove TYPE argument.
80 Do not call value_from_register; use gdbarch_value_from_register
81 with null_frame_id instead.
82 * value.h (address_from_register): Update prototype.
83 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
84 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
85 address_from_register interface change.
87 2014-04-17 Yao Qi <yao@codesourcery.com>
89 * gdbtypes.h: Update comments to link to types and macros'
92 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
94 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
96 2014-04-16 Keith Seitz <keiths@redhat.com>
99 * dwarf2read.c (skip_one_die): Check that all relative-offset
100 sibling DIEs fall within range of the current reader's buffer.
101 (read_partial_die): Likewise.
103 2014-04-16 Keith Seitz <keiths@redhat.com>
106 * cp-namespace.c (lookup_symbol_file): If the type name of
107 `this' is NULL, return immediately.
109 2014-04-14 Keith Seitz <keiths@redhat.com>
112 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
113 from symbol_matches_domain in symtab.c. All local callers
114 of symbol_matches_domain updated.
115 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
116 search STRUCT_DOMAIN.
117 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
118 independently. standard_lookup will do that automatically.
119 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
120 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
121 (cp_lookup_symbol_in_namespace): Likewise.
122 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
123 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
124 may return a STRUCT_DOMAIN match.
125 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
126 * cp-support.c: Include language.h.
127 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
129 * psymtab.c (match_partial_symbol): Compare the requested
130 domain with the symbol's domain directly.
131 (lookup_partial_symbol): Likewise.
132 * symtab.c (lookup_symbol_in_language): Explain when/why
133 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
134 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
135 appropriate languages.
136 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
137 and moved to ada-lang.c
138 (lookup_block_symbol): Explain that this function only returns
139 symbol matching the requested DOMAIN.
140 Compare the requested domain with the symbol's domain directly.
141 (iterate_over_symbols): Compare the requested domain with the
142 symbol's domain directly.
143 * symtab.h (symbol_matches_domain): Remove.
145 2014-04-14 Tom Tromey <tromey@redhat.com>
148 * c-exp.y (type_aggregate_p): New function.
149 (qualified_name, classify_inner_name): Use it.
150 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
151 and TYPE_TARGET_TYPE of an enum type.
152 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
154 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
155 handle TYPE_DECLARED_CLASS.
156 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
158 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
159 * valops.c (enum_constant_from_type): New function.
160 (value_aggregate_elt): Use it.
161 * cp-namespace.c (cp_lookup_nested_symbol): Handle
164 2014-04-14 Tom Tromey <tromey@redhat.com>
166 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
167 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
169 * value.h (value_aggregate_elt): Update.
171 2014-04-14 Tom Tromey <tromey@redhat.com>
173 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
175 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
177 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
178 (evaluate_subexp_standard): Pass noside argument.
179 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
180 if noside equals EVAL_NORMAL. If the subscript yields a vla type
181 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
182 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
183 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
185 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
187 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
188 points to a constant blob.
190 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
192 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
193 property and store it as the high bound and flag the range accordingly.
194 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
195 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
196 * gdbtypes.h (enum range_flags): New enum.
197 (struct range_bounds): Add flags member.
199 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
201 * c-typeprint.c (c_type_print_varspec_suffix): Added
202 check for not yet resolved high bound. If unresolved, print
203 "variable length" string to the console instead of random
206 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
208 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
210 (ada_template_to_fixed_record_type_1): Likewise.
211 (ada_to_fixed_type_1): Likewise.
212 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
213 (cp_print_value): Likewise.
214 * d-valprint.c (dynamic_array_type): Likewise.
215 * findvar.c (address_of_variable): Likewise.
216 * jv-valprint.c (java_value_print): Likewise.
217 * valops.c (value_ind): Likewise.
218 * value.c (coerce_ref): Likewise.
220 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
222 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
223 value and retrieve the dynamic type size.
225 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
227 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
228 passed to sizeof is dynamic evaluate the argument to compute the length.
230 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
231 Joel Brobecker <brobecker@adacore.com>
233 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
234 (dwarf2_evaluate_property): New function.
235 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
236 * dwarf2read.c (attr_to_dynamic_prop): New function.
237 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
239 * gdbtypes.c: Include dwarf2loc.h.
240 (is_dynamic_type): New function.
241 (resolve_dynamic_type): New function.
242 (resolve_dynamic_bounds): New function.
243 (get_type_length): New function.
244 (check_typedef): Use get_type_length to compute type length.
245 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
246 (TYPE_LOW_BOUND_KIND): New macro.
247 (is_dynamic_type): New function prototype.
248 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
249 to resolve dynamic properties of the type. Update comment.
250 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
252 2014-04-14 Richard Henderson <rth@redhat.com>
254 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
256 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
257 Doug Evans <xdje42@gmail.com>
259 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
260 dereference TYPE_CODE_REF values.
262 2014-04-11 Joel Brobecker <brobecker@adacore.com>
264 Revert the following changes due to regressions:
266 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
267 (dwarf2_evaluate_property): New function.
268 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
269 * dwarf2read.c (attr_to_dynamic_prop): New function.
270 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
272 * gdbtypes.c: Include dwarf2loc.h.
273 (is_dynamic_type): New function.
274 (resolve_dynamic_type): New function.
275 (resolve_dynamic_bounds): New function.
276 (get_type_length): New function.
277 (check_typedef): Use get_type_length to compute type length.
278 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
279 (TYPE_LOW_BOUND_KIND): New macro.
280 (is_dynamic_type): New function prototype.
281 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
282 to resolve dynamic properties of the type. Update comment.
283 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
285 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
286 passed to sizeof is dynamic evaluate the argument to compute the length.
288 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
289 value and retrieve the dynamic type size.
291 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
292 (ada_template_to_fixed_record_type_1): Likewise.
293 (ada_to_fixed_type_1): Likewise.
294 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
295 (cp_print_value): Likewise.
296 * d-valprint.c (dynamic_array_type): Likewise.
297 * eval.c (evaluate_subexp_with_coercion): Likewise.
298 * findvar.c (address_of_variable): Likewise.
299 * jv-valprint.c (java_value_print): Likewise.
300 * valops.c (value_ind): Likewise.
301 * value.c (coerce_ref): Likewise.
303 * c-typeprint.c (c_type_print_varspec_suffix): Added
304 check for not yet resolved high bound. If unresolved, print
305 "variable length" string to the console instead of random
308 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
309 property and store it as the high bound and flag the range accordingly.
310 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
311 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
312 * gdbtypes.h (enum range_flags): New enum.
313 (struct range_bounds): Add flags member.
315 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
316 points to a constant blob.
318 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
319 (evaluate_subexp_standard): Pass noside argument.
320 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
321 if noside equals EVAL_NORMAL. If the subscript yields a vla type
322 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
323 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
324 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
326 2014-04-11 Keith Seitz <keiths@redhat.com>
329 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
330 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
333 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
335 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
336 (evaluate_subexp_standard): Pass noside argument.
337 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
338 if noside equals EVAL_NORMAL. If the subscript yields a vla type
339 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
340 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
341 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
343 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
345 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
346 points to a constant blob.
348 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
350 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
351 property and store it as the high bound and flag the range accordingly.
352 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
353 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
354 * gdbtypes.h (enum range_flags): New enum.
355 (struct range_bounds): Add flags member.
357 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
359 * c-typeprint.c (c_type_print_varspec_suffix): Added
360 check for not yet resolved high bound. If unresolved, print
361 "variable length" string to the console instead of random
364 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
366 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
367 (ada_template_to_fixed_record_type_1): Likewise.
368 (ada_to_fixed_type_1): Likewise.
369 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
370 (cp_print_value): Likewise.
371 * d-valprint.c (dynamic_array_type): Likewise.
372 * eval.c (evaluate_subexp_with_coercion): Likewise.
373 * findvar.c (address_of_variable): Likewise.
374 * jv-valprint.c (java_value_print): Likewise.
375 * valops.c (value_ind): Likewise.
376 * value.c (coerce_ref): Likewise.
378 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
380 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
381 value and retrieve the dynamic type size.
383 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
385 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
386 passed to sizeof is dynamic evaluate the argument to compute the length.
388 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
390 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
391 (dwarf2_evaluate_property): New function.
392 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
393 * dwarf2read.c (attr_to_dynamic_prop): New function.
394 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
396 * gdbtypes.c: Include dwarf2loc.h.
397 (is_dynamic_type): New function.
398 (resolve_dynamic_type): New function.
399 (resolve_dynamic_bounds): New function.
400 (get_type_length): New function.
401 (check_typedef): Use get_type_length to compute type length.
402 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
403 (TYPE_LOW_BOUND_KIND): New macro.
404 (is_dynamic_type): New function prototype.
405 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
406 to resolve dynamic properties of the type. Update comment.
407 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
409 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
411 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
412 declaring high/low bounds and change uses accordingly. Call
413 create_range_type instead of create_static_range_type.
414 * gdbtypes.c (create_range_type): New function.
415 (create_range_type): Convert bounds into struct bound_prop and pass
416 them to create_range_type.
417 * gdbtypes.h (struct bound_prop): New struct.
418 (create_range_type): New function prototype.
419 (struct range_bounds): Use struct bound_prop instead of LONGEST for
420 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
421 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
423 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
425 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
427 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
428 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
429 * ada-lang.c: All uses of create_range_type updated.
430 * coffread.c: All uses of create_range_type updated.
431 * dwarf2read.c: All uses of create_range_type updated.
432 * f-exp.y: All uses of create_range_type updated.
433 * m2-valprint.c: All uses of create_range_type updated.
434 * mdebugread.c: All uses of create_range_type updated.
435 * stabsread.c: All uses of create_range_type updated.
436 * valops.c: All uses of create_range_type updated.
437 * valprint.c: All uses of create_range_type updated.
439 2014-04-10 Pedro Alves <palves@redhat.com>
441 * breakpoint.c (single_step_breakpoints)
442 (single_step_gdbarch): Move up in the file.
443 (one_breakpoint_xfer_memory): New function, factored out from ...
444 (breakpoint_xfer_memory): ... here. Also process single-step
447 2014-04-09 Tristan Gingold <gingold@adacore.com>
449 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
451 (darwin_decode_exception_message): Free port only after use.
453 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
455 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
456 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
457 when setting the size of call_length.
459 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
461 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
462 dereference TYPE_CODE_REF values.
464 2014-04-07 Joel Brobecker <brobecker@adacore.com>
466 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
467 end of warning message.
469 2014-04-03 Doug Evans <dje@google.com>
471 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
472 of stub_comp_unit_die, stub_comp_dir is non-NULL.
474 2014-04-02 Alan Modra <amodra@gmail.com>
476 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
477 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
478 (struct symbol_file_add_from_memory_args): Add size field.
479 (find_vdso_size): New function.
480 (add_vsyscall_page): Attempt to find vdso size.
482 2014-04-01 Doug Evans <dje@google.com>
484 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
486 2014-04-01 Tristan Gingold <gingold@adacore.com>
488 * darwin-nat.c (darwin_encode_reply): Add prototype.
489 (darwin_decode_exception_message): Reply to unknown inferiors.
490 (darwin_decode_message): Handle message by id. Ignore message
492 (darwin_wait): Discard unknown messages, add debug trace.
494 2014-03-31 Doug Evans <dje@google.com>
496 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
499 2014-03-31 Doug Evans <dje@google.com>
501 New option "set print symbol-loading".
503 * solib.c (solib_read_symbols): Only print symbol loading messages
505 (solib_add): If symbol loading is in "brief" mode, notify user
506 symbols are being loaded.
507 (reload_shared_libraries_1): Ditto.
508 * symfile.c (print_symbol_loading_off): New static global.
509 (print_symbol_loading_brief): New static global.
510 (print_symbol_loading_full): New static global.
511 (print_symbol_loading_enums): New static global.
512 (print_symbol_loading): New static global.
513 (print_symbol_loading_p): New function.
514 (symbol_file_add_with_addrs): Only print symbol loading messages
516 (_initialize_symfile): Register "print symbol-loading" set/show
518 * symfile.h (print_symbol_loading_p): Declare.
520 2014-03-30 Doug Evans <xdje42@gmail.com>
522 * infrun.c (set_last_target_status): New function.
523 (handle_inferior_event): Call it.
525 2014-03-30 Doug Evans <xdje42@gmail.com>
527 * inferior.h (enum stop_kind): Improve comment.
529 2014-03-28 Joel Brobecker <brobecker@adacore.com>
531 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
532 a reference, strip the reference layer before calling
533 the lang_ops value_has_mutated callback.
535 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
537 Remove some globals from our parser.
538 * language.c (unk_lang_parser): Add "struct parser_state"
540 * language.h (struct language_defn) <la_parser>: Likewise.
541 * parse.c (expout, expout_size, expout_ptr): Remove variables.
542 (initialize_expout): Add "struct parser_state" argument.
543 Rewrite function to use the parser state.
544 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
545 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
546 write_exp_elt_longcst, write_exp_elt_dblcst,
547 write_exp_elt_decfloatcst, write_exp_elt_type,
548 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
549 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
550 write_dollar_variable): Likewise.
551 (parse_exp_in_context_1): Use parser state.
552 (insert_type_address_space): Add "struct parser_state" argument.
554 (increase_expout_size): New function.
555 * parser-defs.h: Forward declare "struct language_defn" and
556 "struct parser_state".
557 (expout, expout_size, expout_ptr): Remove extern declarations.
558 (parse_gdbarch, parse_language): Rewrite macro declarations to
559 accept the parser state.
560 (struct parser_state): New struct.
561 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
562 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
563 write_exp_elt_decfloatcst, write_exp_elt_type,
564 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
565 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
566 write_exp_msymbol, write_dollar_variable,
567 mark_struct_expression, insert_type_address_space): Add "struct
568 parser_state" argument.
569 (increase_expout_size): New function.
570 * utils.c (do_clear_parser_state): New function.
571 (make_cleanup_clear_parser_state): Likewise.
572 * utils.h (make_cleanup_clear_parser_state): New function
574 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
575 Update calls to write_exp* in order to pass the parser state.
576 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
577 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
578 (i386_stap_parse_special_token_three_arg_disp): Likewise.
579 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
580 * stap-probe.c (stap_parse_register_operand): Likewise.
581 (stap_parse_single_operand): Likewise.
582 (stap_parse_argument_1): Likewise.
583 (stap_parse_argument): Use parser state.
584 * stap-probe.h: Include "parser-defs.h".
585 (struct stap_parse_info) <pstate>: New field.
586 * c-exp.y (parse_type): Rewrite to use parser state.
587 (yyparse): Redefine to c_parse_internal.
588 (pstate): New global variable.
589 (parse_number): Add "struct parser_state" argument.
590 (write_destructor_name): Likewise.
591 (type_exp): Update calls to write_exp* and similars in order to
593 (exp1, exp, variable, qualified_name, space_identifier,
594 typename, typebase): Likewise.
595 (write_destructor_name, parse_number, lex_one_token,
596 classify_name, classify_inner_name, c_parse): Add "struct
597 parser_state" argument. Update function to use parser state.
598 * c-lang.h: Forward declare "struct parser_state".
599 (c_parse): Add "struct parser_state" argument.
600 * ada-exp.y (parse_type): Rewrite macro to use parser state.
601 (yyparse): Redefine macro to ada_parse_internal.
602 (pstate): New variable.
603 (write_int, write_object_renaming, write_var_or_type,
604 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
605 type_int, type_long, type_long_long, type_float, type_double,
606 type_long_double, type_char, type_boolean, type_system_address):
607 Add "struct parser_state" argument.
608 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
609 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
610 var_or_type, aggregate, aggregate_component_list,
611 positional_list, others, component_group,
612 component_associations): Update calls to write_exp* and similar
613 functions in order to use parser state.
614 (ada_parse, write_var_from_sym, write_int,
615 write_exp_op_with_string, write_object_renaming,
616 find_primitive_type, write_selectors, write_ambiguous_var,
617 write_var_or_type, write_name_assoc, type_int, type_long,
618 type_long_long, type_float, type_double, type_long_double,
619 type_char, type_boolean, type_system_address): Add "struct
620 parser_state" argument. Adjust function to use parser state.
621 * ada-lang.c (parse): Likewise.
622 * ada-lang.h: Forward declare "struct parser_state".
623 (ada_parse): Add "struct parser_state" argument.
624 * ada-lex.l (processInt, processReal): Likewise. Adjust all
625 calls to both functions.
626 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
628 (yyparse): Redefine macro to f_parse_internal.
629 (pstate): New variable.
630 (parse_number): Add "struct parser_state" argument.
631 (type_exp, exp, subrange, typebase): Update calls to write_exp*
632 and similars in order to use parser state.
633 (parse_number): Adjust code to use parser state.
635 (f_parse): New function.
636 * f-lang.h: Forward declare "struct parser_state".
637 (f_parse): Add "struct parser_state" argument.
638 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
640 (yyparse): Redefine macro for java_parse_internal.
641 (pstate): New variable.
642 (push_expression_name, push_expression_name, insert_exp): Add
643 "struct parser_state" argument.
644 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
645 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
646 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
647 PostIncrementExpression, PostDecrementExpression,
648 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
649 UnaryExpressionNotPlusMinus, CastExpression,
650 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
651 RelationalExpression, EqualityExpression, AndExpression,
652 ExclusiveOrExpression, InclusiveOrExpression,
653 ConditionalAndExpression, ConditionalOrExpression,
654 ConditionalExpression, Assignment, LeftHandSide): Update
655 calls to write_exp* and similars in order to use parser state.
656 (parse_number): Ajust code to use parser state.
658 (java_parse): New function.
659 (push_variable): Add "struct parser_state" argument. Adjust
660 code to user parser state.
661 (push_fieldnames, push_qualified_expression_name,
662 push_expression_name, insert_exp): Likewise.
663 * jv-lang.h: Forward declare "struct parser_state".
664 (java_parse): Add "struct parser_state" argument.
665 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
667 (yyparse): Redefine macro to m2_parse_internal.
668 (pstate): New variable.
669 (type_exp, exp, fblock, variable, type): Update calls to
670 write_exp* and similars to use parser state.
672 (m2_parse): New function.
673 * m2-lang.h: Forward declare "struct parser_state".
674 (m2_parse): Add "struct parser_state" argument.
675 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
676 * objc-lang.h: Forward declare "struct parser_state".
677 (end_msglist): Add "struct parser_state" argument.
678 * p-exp.y (parse_type): Rewrite macro to use parser state.
679 (yyparse): Redefine macro to pascal_parse_internal.
680 (pstate): New variable.
681 (parse_number): Add "struct parser_state" argument.
682 (type_exp, exp1, exp, qualified_name, variable): Update calls to
683 write_exp* and similars in order to use parser state.
684 (parse_number, yylex): Adjust code to use parser state.
685 (pascal_parse): New function.
686 * p-lang.h: Forward declare "struct parser_state".
687 (pascal_parse): Add "struct parser_state" argument.
688 * go-exp.y (parse_type): Rewrite macro to use parser state.
689 (yyparse): Redefine macro to go_parse_internal.
690 (pstate): New variable.
691 (parse_number): Add "struct parser_state" argument.
692 (type_exp, exp1, exp, variable, type): Update calls to
693 write_exp* and similars in order to use parser state.
694 (parse_number, lex_one_token, classify_name, yylex): Adjust code
696 (go_parse): Likewise.
697 * go-lang.h: Forward declare "struct parser_state".
698 (go_parse): Add "struct parser_state" argument.
700 2014-03-27 Doug Evans <dje@google.com>
702 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
704 2014-03-27 Doug Evans <dje@google.com>
706 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
707 Remove argument abbrev_section. All callers updated.
709 2014-03-27 Doug Evans <dje@google.com>
711 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
712 addr_base, ranges_base.
714 2014-03-26 Keith Seitz <keiths@redhat.com>
716 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
717 types, not VAR_DOMAIN.
719 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
721 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
723 * features/nios2-linux.c: Regenerated.
724 * features/nios2.c: Regenerated.
726 2014-03-25 Pedro Alves <palves@redhat.com>
728 * cli/cli-script.c (script_from_file): Force the interpreter to
731 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
733 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
734 small stack allocation.
736 2014-03-24 Tristan Gingold <gingold@adacore.com>
738 * darwin-nat.c (exc_server): Remove unused prototype.
739 (darwin_dump_message): Correctly display data on x86_64.
740 (darwin_encode_reply): Fix style.
741 Add comments and fix indentation.
743 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
745 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
747 2014-03-22 Doug Evans <xdje42@gmail.com>
749 * infcmd.c: Whitespace fixes.
750 (interrupt_command): Merge two function comments into one.
752 2014-03-22 Doug Evans <xdje42@gmail.com>
754 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
757 2014-03-22 Yao Qi <yao@codesourcery.com>
759 * remote.c (target_read_live_memory): Remove.
760 (memory_xfer_live_readonly_partial): Rename it to
761 remote_xfer_live_readonly_partial. Remove argument 'object'.
762 All callers updated. Call remote_read_bytes_1
763 instead of target_read_live_memory.
764 * tracepoint.c (set_traceframe_number): Remove.
765 (make_cleanup_restore_traceframe_number): Likewise .
766 * tracepoint.h (set_traceframe_number): Remove declaration.
767 (make_cleanup_restore_traceframe_number): Likewise.
769 2014-03-22 Yao Qi <yao@codesourcery.com>
771 * remote.c (remote_read_bytes): Move code on reading from the
773 (remote_read_bytes_1): ... here. New function.
775 2014-03-22 Yao Qi <yao@codesourcery.com>
777 * ctf.c (ctf_xfer_partial): Check the return value of
778 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
779 return TARGET_XFER_UNAVAILABLE.
780 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
781 * target.c (target_read_live_memory): Move it to remote.c.
782 (memory_xfer_live_readonly_partial): Likewise.
783 (memory_xfer_partial_1): Move some code to remote_read_bytes.
784 * remote.c (target_read_live_memory): Moved from target.c.
785 (memory_xfer_live_readonly_partial): Likewise.
786 (remote_read_bytes): Factored out from
787 memory_xfer_partial_1.
789 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
791 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
794 2014-03-21 Pedro Alves <palves@redhat.com>
796 * infrun.c (normal_stop): Extend comment.
798 2014-03-21 Hui Zhu <hui@codesourcery.com>
799 Pedro Alves <palves@redhat.com>
801 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
803 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
804 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
805 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
807 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
809 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
810 `z' formatted output modifier.
812 2014-03-20 Tom Tromey <tromey@redhat.com>
813 Sergio Durigan Junior <sergiodj@redhat.com>
815 * probe.c (parse_probes): Turn assert into an ordinary error.
816 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
817 exceptions when parsing probes. Rearrange the code for clarity.
819 2014-03-20 Tom Tromey <tromey@redhat.com>
822 * top.c (execute_command): Only dispatch events if the command
825 2014-03-20 Tom Tromey <tromey@redhat.com>
828 * infcall.c: Include event-top.h.
829 (run_inferior_call): Call async_disable_stdin if needed.
831 2014-03-20 Pedro Alves <palves@redhat.com>
833 * infrun.c (prepare_to_proceed): Delete.
834 (thread_still_needs_step_over): New function.
835 (find_thread_needs_step_over): New function.
836 (proceed): If the current thread needs a step-over, set its
837 steping_over_breakpoint flag. Adjust to use
838 find_thread_needs_step_over instead of prepare_to_proceed.
839 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
840 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
842 (switch_back_to_stepped_thread): Step over breakpoints of all
843 threads not the stepping thread, before switching back to the
846 2014-03-20 Pedro Alves <palves@redhat.com>
848 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
850 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
851 * infrun.c (saved_singlestep_ptid)
852 (stepping_past_singlestep_breakpoint): Delete.
853 (resume): Remove stepping_past_singlestep_breakpoint handling.
854 (proceed): Store the prev_pc of the stepping thread too.
855 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
857 (enum infwait_states): Delete infwait_thread_hop_state.
858 (struct execution_control_state) <hit_singlestep_breakpoint>: New
860 (handle_inferior_event): Adjust.
861 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
862 handling and the thread-hop code. Before removing single-step
863 breakpoints, check whether the thread hit a single-step breakpoint
864 of another thread. If it did, the trap is not a random signal.
865 (switch_back_to_stepped_thread): If the event thread hit a
866 single-step breakpoint, unblock it before switching to the
867 stepping thread. Handle the case of the stepped thread having
869 (keep_going): Handle the case of the current thread moving past a
870 single-step breakpoint.
872 2014-03-20 Pedro Alves <palves@redhat.com>
875 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
876 are being stepped over.
877 (breakpoint_address_match): Make extern.
878 * breakpoint.h (breakpoint_address_match): New declaration.
879 * inferior.h (stepping_past_instruction_at): New declaration.
880 * infrun.c (struct step_over_info): New type.
881 (step_over_info): New global.
882 (set_step_over_info, clear_step_over_info)
883 (stepping_past_instruction_at): New functions.
884 (handle_inferior_event): Clear the step-over info when
885 trap_expected is cleared.
886 (resume): Remove now stale comment.
887 (clear_proceed_status): Clear step-over info.
888 (proceed): Adjust step-over handling to set or clear the step-over
889 info instead of removing all breakpoints.
890 (handle_signal_stop): When setting up a thread-hop, don't remove
892 (stop_stepping): Clear step-over info.
893 (keep_going): Adjust step-over handling to set or clear step-over
894 info and then always inserting breakpoints, instead of removing
895 all breakpoints when stepping over one.
897 2014-03-20 Pedro Alves <palves@redhat.com>
899 * infrun.c (previous_inferior_ptid): Adjust comment.
900 (deferred_step_ptid): Delete.
901 (infrun_thread_ptid_changed, prepare_to_proceed)
902 (init_wait_for_inferior): Adjust.
903 (handle_signal_stop): Delete deferred_step_ptid handling.
905 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
908 * defs.h (sync_quit_force_run): New declaration.
909 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
910 * event-top.c (async_sigterm_handler): New declaration.
911 (async_sigterm_token): New variable.
912 (async_init_signals): Create also async_sigterm_token.
913 (async_sigterm_handler): New function.
914 (sync_quit_force_run): New variable.
915 (handle_sigterm): Replace quit_force call by other calls.
916 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
918 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
920 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
921 offset into SPE pseudo registers.
923 2014-03-18 Pedro Alves <palves@redhat.com>
926 * inferior.h (print_stop_event): Declare.
927 * infrun.c (print_stop_event): New, factored out from ...
928 (normal_stop): ... this.
929 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
930 of bpstat_print/print_stack_frame.
932 2014-03-17 Tom Tromey <tromey@redhat.com>
934 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
936 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
938 * ada-lang.c (decode_constrained_packed_array): Perform a
939 minimal coercion for reference with coerce_ref instead of
942 2014-03-17 Tristan Gingold <gingold@adacore.com>
944 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
945 (darwin_solib_create_inferior_hook): Emit a warning if version
948 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
950 * python/py-value.c (get_field_flag): Cast flag_name argument to
951 PyObject_GetAttrString to support Python 2.4.
953 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
955 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
956 (Global Maintainers): Remove Jan Kratochvil.
958 2014-03-14 Pedro Alves <palves@redhat.com>
960 * inferior.h (terminal_ours_for_output): Rename to ...
961 (child_terminal_ours_for_output): ... this.
962 (terminal_save_ours): Rename to ...
963 (child_terminal_save_ours): ... this.
964 (terminal_ours): Rename to ...
965 (child_terminal_ours): ... this.
966 (terminal_inferior): Rename to ...
967 (child_terminal_inferior): ... this.
968 (terminal_init_inferior): Rename to ...
969 (child_terminal_init_inferior): ... this.
970 (terminal_init_inferior_with_pgrp): Rename to ...
971 (child_terminal_init_inferior_with_pgrp): ... this.
972 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
973 (child_terminal_init_with_pgrp): ... this.
974 (terminal_save_ours): Rename to ...
975 (child_terminal_save_ours): ... this.
976 (terminal_init_inferior): Rename to ...
977 (child_terminal_init): ... this. Adjust.
978 (terminal_inferior): Rename to ...
979 (child_terminal_inferior): ... this.
980 (terminal_ours_for_output): Rename to ...
981 (child_terminal_ours_for_output): ... this. Adjust.
982 (terminal_ours): Rename to ...
983 (child_terminal_ours): ... this.
984 (terminal_ours_1): Rename to ...
985 (child_terminal_ours_1): ... this. Adjust.
986 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
987 * windows-nat.c (do_initial_windows_stuff): Adjust.
988 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
989 (gnu_terminal_init): ... this. Adjust.
990 (gnu_target): Adjust.
991 * inf-child.c (inf_child_target): Adjust.
993 2014-03-13 Doug Evans <xdje42@gmail.com>
996 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
999 2014-03-13 Doug Evans <xdje42@gmail.com>
1001 * value.c (record_latest_value): Call release_value_or_incref
1002 instead of release_value.
1004 2014-03-13 Pedro Alves <palves@redhat.com>
1006 * procfs.c (procfs_target): Don't override to_shortname,
1007 to_longname or to_doc.
1009 2014-03-13 Pedro Alves <palves@redhat.com>
1011 * inf-child.c (inf_child_open, inf_child_target): Don't mention
1012 Unix in user visible strings.
1014 2014-03-12 Stan Shebs <stan@codesourcery.com>
1016 * gdbtypes.h: Annotate comments for Doxygen, add a page
1017 block comment with some general info.
1019 2014-03-12 Pedro Alves <palves@redhat.com>
1021 * infcmd.c (prepare_execution_command): New function, factored out
1022 from several execution commands.
1023 (run_command_1, continue_command, step_1, jump_command)
1024 (signal_command, until_command, advance_command, finish_command)
1025 (attach_command): Use prepare_execution_command.
1027 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
1029 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
1032 (struct arm_linux_thread_points): Removed.
1033 (struct arm_linux_process_info): New.
1034 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
1035 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
1036 (arm_linux_find_breakpoints_by_tid): Removed.
1037 (struct arch_lwp_info): New.
1038 (arm_linux_find_process_pid): New functions.
1039 (arm_linux_add_process): New functions.
1040 (arm_linux_process_info_get): New functions.
1041 (arm_linux_forget_process): New function.
1042 (arm_linux_get_debug_reg_state): New function.
1043 (struct update_registers_data): New.
1044 (update_registers_callback): New function.
1045 (arm_linux_insert_hw_breakpoint1): Updated.
1046 (arm_linux_remove_hw_breakpoint1): Updated.
1047 (arm_linux_insert_hw_breakpoint): Updated.
1048 (arm_linux_remove_hw_breakpoint): Updated.
1049 (arm_linux_insert_watchpoint): Updated.
1050 (arm_linux_remove_watchpoint): Updated.
1051 (arm_linux_new_thread): Updated.
1052 (arm_linux_prepare_to_resume): New function.
1053 (arm_linux_new_fork): New function.
1054 (_initialize_arm_linux_nat): Updated.
1056 2014-03-12 Pedro Alves <palves@redhat.com>
1058 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
1060 2014-03-12 Tom Tromey <tromey@redhat.com>
1062 * inf-child.c (return_zero): New function.
1063 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
1064 * aix-thread.c (aix_thread_inferior_created): New function.
1065 (aix_thread_attach): Remove.
1066 (init_aix_thread_ops): Don't set to_attach.
1067 (_initialize_aix_thread): Register inferior_created observer.
1068 * corelow.c (init_core_ops): Don't set to_attach or
1070 * exec.c (init_exec_ops): Don't set to_attach or
1072 * infcmd.c (run_command_1): Use find_run_target. Make direct
1074 (attach_command): Use find_attach_target. Make direct target
1076 * record-btrace.c (init_record_btrace_ops): Don't set
1078 * record-full.c (record_full_can_async_p, record_full_is_async_p):
1080 (init_record_full_ops, init_record_full_core_ops): Update. Don't
1081 set to_create_inferior.
1082 * target.c (complete_target_initialization): Add assertion.
1083 (target_create_inferior): Remove.
1084 (find_default_attach, find_default_create_inferior): Remove.
1085 (find_attach_target, find_run_target): New functions.
1086 (find_default_is_async_p, find_default_can_async_p)
1087 (target_supports_non_stop, target_attach): Remove.
1088 (init_dummy_target): Don't set to_create_inferior or
1089 to_supports_non_stop.
1090 * target.h (struct target_ops) <to_attach>: Add comment. Remove
1091 TARGET_DEFAULT_FUNC.
1092 <to_create_inferior>: Add comment.
1093 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
1094 TARGET_DEFAULT_RETURN.
1095 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
1096 (find_attach_target, find_run_target): Declare.
1097 (target_create_inferior): Remove.
1098 (target_has_execution_1): Update comment.
1099 (target_supports_non_stop): Remove.
1100 * target-delegates.c: Rebuild.
1102 2014-03-12 Pedro Alves <palves@redhat.com>
1104 * inf-child.h: Update comment to not mention Unix.
1106 2014-03-12 Pedro Alves <palves@redhat.com>
1108 * inf-child.c: Update top comment to not mention Unix. Add
1109 generic comment describing how this target is meant to be used.
1110 (inf_child_post_attach, inf_child_post_startup_inferior)
1111 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
1114 2014-03-12 Pedro Alves <palves@redhat.com>
1116 * nto-procfs.c: Include inf-child.h.
1117 (procfs_ops): Delete global.
1118 (procfs_can_run): Delete method.
1119 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
1120 target pointer instead of referencing procfs_ops.
1121 (procfs_prepare_to_store): Delete.
1122 (init_procfs_ops): Delete function.
1123 (procfs_target): New function, based on init_procfs_ops, but
1124 inherit inf_child_target.
1125 (_initialize_procfs): Use procfs_target.
1127 2014-03-12 Pedro Alves <palves@redhat.com>
1129 * windows-nat.c: Include inf-child.h.
1130 (windows_ops): Delete global.
1131 (windows_open, windows_prepare_to_store, windows_can_run): Delete
1133 (init_windows_ops): Delete function.
1134 (windows_target): New function, based on init_windows_ops, but
1135 inherit inf_child_target.
1136 (_initialize_windows_nat): Use windows_target. Install x86
1137 specific target methods here.
1139 2014-03-10 Doug Evans <xdje42@gmail.com>
1141 * guile/guile.c (call_initialize_gdb_module): New function.
1142 (initialize_guile): Replace call to scm_init_guile with call to
1145 2014-03-10 Joel Brobecker <brobecker@adacore.com>
1147 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
1148 in call to TYPE_CODE macro.
1150 2014-03-10 Jerome Guitton <guitton@adacore.com>
1152 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
1153 Resolve tagged types to full view.
1155 2014-03-10 Hui Zhu <hui@codesourcery.com>
1157 * target.h (target_insert_breakpoint): Remove "hardware" from its
1160 2014-03-07 Doug Evans <dje@google.com>
1162 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
1164 2014-03-07 Doug Evans <dje@google.com>
1166 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
1167 Remove unused local comp_dir_attr. Assert exactly one of
1168 stub_comp_unit_die, stub_comp_dir is non-NULL.
1170 2014-03-07 Joel Brobecker <brobecker@adacore.com>
1172 * target.h (complete_target_initialization, add_target):
1175 2014-03-07 Pedro Alves <palves@redhat.com>
1177 * go32-nat.c: Include inf-child.h.
1178 (go32_ops): Delete global.
1179 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
1181 (go32_create_inferior): Push the passed in target pointer instead
1182 of referencing go32_ops.
1183 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
1184 (go32_target): New function, based on init_go32_ops, but inherit
1186 (_initialize_go32_nat): Use go32_target. Move parts of
1189 2014-03-06 Joel Brobecker <brobecker@adacore.com>
1191 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
1192 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
1193 SYMBOL_VALUE_ADDRESS.
1194 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
1196 2014-03-06 Yao Qi <yao@codesourcery.com>
1198 * breakpoint.c (get_tracepoint_by_number): Remove argument
1199 optional_p. All callers updated. Adjust comments. Update
1201 * breakpoint.h (get_tracepoint_by_number): Update declaration.
1203 2014-03-06 Yao Qi <yao@codesourcery.com>
1205 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
1206 early if get_number returns zero. Use 'p' instead of 'args'.
1208 2014-03-06 Yao Qi <yao@codesourcery.com>
1210 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
1213 2014-03-06 Yao Qi <yao@codesourcery.com>
1215 PR breakpoints/16508
1216 * tracepoint.c (check_trace_running): New function.
1217 (trace_find_command): Move code to check_trace_running and
1218 call check_trace_running.
1219 (trace_find_pc_command): Likewise.
1220 (trace_find_tracepoint_command): Likewise.
1221 (trace_find_line_command): Likewise.
1222 (trace_find_range_command): Likewise.
1223 * tracepoint.h (check_trace_running): Likewise.
1224 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
1226 2014-03-06 Yao Qi <yao@codesourcery.com>
1228 * target.h (struct target_ops) <to_traceframe_info>: Use
1229 TARGET_DEFAULT_NORETURN (tcomplain ()).
1230 * target-delegates.c: Regenerated.
1232 2014-03-05 Pedro Alves <palves@redhat.com>
1235 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
1236 void. Update comment.
1237 (dcache_xfer_memory): Delete.
1238 (dcache_read_memory_partial): New, based on the read bits of
1240 (dcache_update): Add status parameter. Use ULONGEST for len, and
1241 adjust. Discard cache lines if the reason for the update was
1243 * dcache.h (dcache_xfer_memory): Delete declaration.
1244 (dcache_read_memory_partial): New declaration.
1245 (dcache_update): Update prototype.
1246 * target.c (raw_memory_xfer_partial): Update the dcache here.
1247 (memory_xfer_partial_1): Don't handle dcache writes here.
1249 2014-03-05 Mike Frysinger <vapier@gentoo.org>
1251 * remote-sim.c (gdbsim_load): Add const to prog.
1253 2014-03-03 Tom Tromey <tromey@redhat.com>
1255 * elfread.c (probe_key): Change to bfd_data.
1256 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
1257 now per-BFD, not per-objfile.
1258 * stap-probe.c (stap_probe_destroy): Update comment.
1259 (handle_stap_probe): Allocate on the per-BFD obstack.
1261 2014-03-03 Tom Tromey <tromey@redhat.com>
1263 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
1264 * breakpoint.c (create_longjmp_master_breakpoint): Use
1266 (add_location_to_breakpoint, bkpt_probe_insert_location)
1267 (bkpt_probe_remove_location): Update.
1268 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
1269 * elfread.c (elf_symfile_relocate_probe): Remove.
1270 (elf_probe_fns): Update.
1271 (insert_exception_resume_breakpoint): Change type of "probe"
1272 parameter to bound_probe.
1273 (check_exception_resume): Update.
1274 * objfiles.c (objfile_relocate1): Don't relocate probes.
1275 * probe.c (bound_probe_s): New typedef.
1276 (parse_probes): Use get_probe_address. Set sal's objfile.
1277 (find_probe_by_pc): Return a bound_probe.
1278 (collect_probes): Return a VEC(bound_probe_s).
1279 (compare_probes): Update.
1280 (gen_ui_out_table_header_info): Change type of "probes"
1282 (info_probes_for_ops): Update.
1283 (get_probe_address): New function.
1284 (probe_safe_evaluate_at_pc): Update.
1285 * probe.h (struct probe_ops) <get_probe_address>: New field.
1286 <set_semaphore, clear_semaphore>: Add objfile parameter.
1287 (struct probe) <objfile>: Remove field.
1289 <address>: Update comment.
1290 (struct bound_probe): New.
1291 (find_probe_by_pc): Return a bound_probe.
1292 (get_probe_address): Declare.
1293 * solib-svr4.c (struct probe_and_action) <address>: New field.
1294 (hash_probe_and_action, equal_probe_and_action): Update.
1295 (register_solib_event_probe): Add address parameter.
1296 (solib_event_probe_at): Update.
1297 (svr4_create_probe_breakpoints): Add objfile parameter. Use
1299 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
1300 (stap_get_probe_address): New function.
1301 (stap_can_evaluate_probe_arguments, compute_probe_arg)
1302 (compile_probe_arg): Update.
1303 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
1305 (handle_stap_probe): Don't relocate the probe.
1306 (stap_relocate): Remove.
1307 (stap_gen_info_probes_table_values): Update.
1308 (stap_probe_ops): Remove stap_relocate.
1309 * symfile-debug.c (debug_sym_relocate_probe): Remove.
1310 (debug_sym_probe_fns): Update.
1311 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
1312 * symtab.c (init_sal): Use memset.
1313 * symtab.h (struct symtab_and_line) <objfile>: New field.
1314 * tracepoint.c (start_tracing, stop_tracing): Update.
1316 2014-03-03 Tom Tromey <tromey@redhat.com>
1318 * probe.h (parse_probes, find_probe_by_pc)
1319 (find_probes_in_objfile): Fix comments.
1321 2014-03-02 Doug Evans <xdje42@gmail.com>
1323 * infrun.c (handle_signal_stop): Replace test for
1324 TARGET_WAITKIND_STOPPED with an assert.
1326 2014-03-02 Doug Evans <xdje42@gmail.com>
1328 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
1330 2014-03-02 Doug Evans <xdje42@gmail.com>
1332 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
1334 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1336 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
1338 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1340 * i386obsd-nat.c: Include "obsd-nat.h".
1341 (_initialize_i386obsd_nat): Call obsd_add_target instead of
1343 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
1345 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1347 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
1349 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1351 * mips64obsd-nat.c: Include "obsd-nath".
1352 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
1354 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
1356 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1358 * amd64obsd-nat.c: Include "obsd-nat,h.
1359 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
1361 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
1363 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
1365 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
1366 (find_overload_match): Update call to find_oload_champ.
1367 (find_oload_champ_namespace_loop): Likewise
1369 2014-02-28 Mark Kettenis <kettenis@gnu.org>
1371 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
1373 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
1374 * config/sparc/obsd64.mh: New file.
1375 * sparc64obsd-nat.c: New file.
1377 * obsd-nat.h: New file.
1378 * obsd-nat.c: New file.
1379 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
1380 (ALLDEPFILES): Add obsd-nat.c.
1382 2014-02-28 Tom Tromey <tromey@redhat.com>
1384 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
1385 * cli-out.h (cli_ui_out_impl): Now const.
1386 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
1387 * ui-out.c (struct ui_out) <impl>: Now const.
1388 (default_ui_out_impl): Now const.
1389 (ui_out_new): Make 'impl' parameter const.
1390 * ui-out.h (ui_out_new): Update.
1392 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1394 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
1396 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1398 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
1400 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1402 Additional PR 8882 fix.
1403 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
1405 2014-02-27 Pedro Alves <palves@redhat.com>
1407 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
1410 2014-02-27 Pedro Alves <palves@redhat.com>
1413 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
1414 * nat/linux-waitpid.c: Include string.h.
1415 (status_to_str): Moved here and made extern.
1416 * nat/linux-waitpid.h (status_to_str): New declaration.
1418 2014-02-27 Hui Zhu <hui@codesourcery.com>
1421 * infrun.c (ptid_match): Move ...
1422 * common/ptid.c (ptid_match): ... here.
1423 * inferior.h (ptid_match): Move ...
1424 * common/ptid.h (ptid_match): ... here.
1426 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1428 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
1429 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
1432 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1434 * obsd-tdep.c (obsd_auxv_parse): New function.
1435 (obsd_init_abi): Set auxv_parse.
1437 * gdbarch.sh (auxv_parse): New.
1438 * gdbarch.h: Regenerated.
1439 * gdbarch.c: Regenerated.
1440 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
1442 2014-02-26 Ludovic Courtès <ludo@gnu.org>
1444 * guile/scm-value.c (gdbscm_history_append_x): New function.
1445 (value_functions): Add it.
1447 2014-02-27 Joel Brobecker <brobecker@adacore.com>
1449 * dwarf2read.c (attr_value_as_address): New function.
1450 (dwarf2_find_base_address, read_call_site_scope): Use
1451 attr_value_as_address in place of DW_ADDR.
1452 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
1453 the low and high addresses. Slight rework of the handling
1454 of the high pc being a constant form, and limit it to
1455 DWARF verson 4 or higher.
1456 (dwarf2_record_block_ranges): Likewise.
1457 (read_partial_die): Likewise.
1458 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
1460 2014-02-26 Tom Tromey <tromey@redhat.com>
1462 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
1464 2014-02-26 Tom Tromey <tromey@redhat.com>
1466 * elfread.c (elf_read_minimal_symbols): Return early if
1467 minimal symbols have already been read. Add "ei" parameter.
1468 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
1469 * minsyms.c (prim_record_minimal_symbol_full): Update.
1470 * objfiles.h (struct objstats) <n_minsyms>: Move...
1471 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
1472 * symmisc.c (print_objfile_statistics): Update.
1474 2014-02-26 Tom Tromey <tromey@redhat.com>
1476 * elfread.c (elf_read_minimal_symbols): New function, from
1478 (elf_symfile_read): Call it.
1480 2014-02-26 Tom Tromey <tromey@redhat.com>
1482 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
1483 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
1484 (lookup_minimal_symbol_solib_trampoline)
1485 (lookup_minimal_symbol_by_pc_section_1)
1486 (lookup_minimal_symbol_and_objfile): Update.
1487 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
1488 Don't allocate a minimal symbol if minsyms have already been read.
1489 (build_minimal_symbol_hash_tables): Update.
1490 (install_minimal_symbols): Do nothing if minsyms already read.
1491 Use the per-BFD obstack.
1492 (terminate_minimal_symbol_table): Use the per-BFD obstack.
1493 * objfiles.c (allocate_objfile): Call
1494 terminate_minimal_symbol_table later.
1495 (have_minimal_symbols): Update.
1496 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
1497 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
1498 Move from struct objfile.
1499 <minsyms_read>: New field.
1500 (struct objfile) <msymbols, minimal_symbol_count,
1501 msymbol_hash, msymbol_demangled_hash>: Move.
1502 (ALL_OBJFILE_MSYMBOLS): Update.
1503 * symfile.c (read_symbols): Set minsyms_read.
1504 (reread_symbols): Update.
1505 * symmisc.c (dump_objfile, dump_msymbols): Update.
1507 2014-02-26 Tom Tromey <tromey@redhat.com>
1509 * minsyms.c (msymbols_sort): Remove.
1510 * minsyms.h (msymbols_sort): Remove.
1511 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
1512 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
1513 * elfread.c (elf_symtab_read): Don't add section offsets.
1514 * xcoffread.c (record_minimal_symbol): Don't add section offset
1515 to minimal symbol address.
1516 * somread.c (text_offset, data_offset): Remove.
1517 (som_symtab_read): Don't add section offsets to minimal symbol
1519 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
1520 Don't add section offsets to minimal symbols.
1521 * coffread.c (coff_symtab_read): Don't add section offsets
1522 to minimal symbol addresses.
1523 * machoread.c (macho_symtab_add_minsym): Don't add section offset
1524 to minimal symbol addresses.
1525 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
1526 section offset to minimal symbol addresses.
1527 * mdebugread.c (parse_partial_symbols): Don't add section
1528 offset to minimal symbol addresses.
1529 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
1530 offset to minimal symbol addresses.
1532 2014-02-26 Tom Tromey <tromey@redhat.com>
1534 * ada-lang.c (ada_main_name): Update.
1535 (ada_add_standard_exceptions): Update.
1536 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
1537 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
1538 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
1539 * auxv.c (ld_so_xfer_auxv): Update.
1540 * avr-tdep.c (avr_scan_prologue): Update.
1541 * ax-gdb.c (gen_var_ref): Update.
1542 * blockframe.c (get_pc_function_start)
1543 (find_pc_partial_function_gnu_ifunc): Update.
1544 * breakpoint.c (create_overlay_event_breakpoint)
1545 (create_longjmp_master_breakpoint)
1546 (create_std_terminate_master_breakpoint)
1547 (create_exception_master_breakpoint): Update.
1548 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
1549 * c-valprint.c (c_val_print): Update.
1550 * coff-pe-read.c (add_pe_forwarded_sym): Update.
1551 * common/agent.c (agent_look_up_symbols): Update.
1552 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
1553 * dwarf2loc.c (call_site_to_target_addr): Update.
1554 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
1555 * elfread.c (elf_gnu_ifunc_record_cache)
1556 (elf_gnu_ifunc_resolve_by_got): Update.
1557 * findvar.c (default_read_var_value): Update.
1558 * frame.c (inside_main_func): Update.
1559 * frv-tdep.c (frv_frame_this_id): Update.
1560 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
1561 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
1563 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
1564 (hppa_hpux_find_dummy_bpaddr): Update.
1565 * hppa-tdep.c (hppa_symbol_address): Update.
1566 * infcmd.c (until_next_command): Update.
1567 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
1569 * linespec.c (minsym_found, add_minsym): Update.
1570 * linux-nat.c (get_signo): Update.
1571 * linux-thread-db.c (inferior_has_bug): Update.
1572 * m32c-tdep.c (m32c_return_value)
1573 (m32c_m16c_address_to_pointer): Update.
1574 * m32r-tdep.c (m32r_frame_this_id): Update.
1575 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
1576 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
1577 * maint.c (maintenance_translate_address): Update.
1578 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
1579 (frob_address): New function.
1580 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
1581 frob_address. Rename parameter to "pc_in".
1582 (compare_minimal_symbols, compact_minimal_symbols): Use raw
1584 (find_solib_trampoline_target, minimal_symbol_upper_bound):
1586 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
1587 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
1588 * objc-lang.c (find_objc_msgsend): Update.
1589 * objfiles.c (objfile_relocate1): Update.
1590 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
1591 * p-valprint.c (pascal_val_print): Update.
1592 * parse.c (write_exp_msymbol): Update.
1593 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
1594 (ppc_elfv2_skip_entrypoint): Update.
1595 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1596 * printcmd.c (build_address_symbolic, msym_info)
1597 (address_info): Update.
1598 * proc-service.c (ps_pglobal_lookup): Update.
1599 * psymtab.c (find_pc_sect_psymtab_closer)
1600 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
1601 Change msymbol parameter to bound_minimal_symbol.
1602 * ravenscar-thread.c (get_running_thread_id): Update.
1603 * remote.c (remote_check_symbols): Update.
1604 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
1606 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
1607 * solib-dsbt.c (lm_base): Update.
1608 * solib-frv.c (lm_base, main_got): Update.
1609 * solib-irix.c (locate_base): Update.
1610 * solib-som.c (som_solib_create_inferior_hook)
1611 (link_map_start): Update.
1612 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
1613 * solib-svr4.c (elf_locate_base, enable_break): Update.
1614 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
1615 (flush_ea_cache): Update.
1616 * stabsread.c (define_symbol, scan_file_globals): Update.
1617 * stack.c (find_frame_funname): Update.
1618 * symfile-debug.c (debug_qf_expand_symtabs_matching)
1619 (debug_qf_find_pc_sect_symtab): Update.
1620 * symfile.c (simple_read_overlay_table)
1621 (simple_overlay_update): Update.
1622 * symfile.h (struct quick_symbol_functions)
1623 <find_pc_sect_symtab>: Change type of msymbol to
1624 bound_minimal_symbol.
1625 * symmisc.c (dump_msymbols): Update.
1626 * symtab.c (find_pc_sect_symtab_via_partial)
1627 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
1628 (search_symbols, print_msymbol_info): Update.
1629 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
1630 (MSYMBOL_VALUE_ADDRESS): Redefine.
1631 (BMSYMBOL_VALUE_ADDRESS): New macro.
1632 * tracepoint.c (scope_info): Update.
1633 * tui/tui-disasm.c (tui_find_disassembly_address)
1634 (tui_get_begin_asm_address): Update.
1635 * valops.c (find_function_in_inferior): Update.
1636 * value.c (value_static_field, value_fn_field): Update.
1638 2014-02-26 Tom Tromey <tromey@redhat.com>
1640 * ada-lang.c (ada_update_initial_language): Update.
1641 (ada_main_name, ada_has_this_exception_support): Update.
1642 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
1643 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
1644 * arm-tdep.c (arm_skip_stub): Update.
1645 * auxv.c (ld_so_xfer_auxv): Update.
1646 * avr-tdep.c (avr_scan_prologue): Update.
1647 * ax-gdb.c (gen_var_ref): Update.
1648 * breakpoint.c (struct breakpoint_objfile_data)
1649 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
1650 type to bound_minimal_symbol.
1651 (create_overlay_event_breakpoint)
1652 (create_longjmp_master_breakpoint)
1653 (create_std_terminate_master_breakpoint)
1654 (create_exception_master_breakpoint): Update.
1655 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
1656 * c-exp.y (classify_name): Update.
1657 * coffread.c (coff_symfile_read): Update.
1658 * common/agent.c (agent_look_up_symbols): Update.
1659 * d-lang.c (d_main_name): Update.
1660 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
1661 * dec-thread.c (enable_dec_thread): Update.
1662 * dwarf2loc.c (call_site_to_target_addr): Update.
1663 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
1664 * eval.c (evaluate_subexp_standard): Update.
1665 * findvar.c (struct minsym_lookup_data) <result>: Change type
1666 to bound_minimal_symbol.
1668 (minsym_lookup_iterator_cb, default_read_var_value): Update.
1669 * frame.c (inside_main_func): Update.
1670 * frv-tdep.c (frv_frame_this_id): Update.
1671 * gcore.c (call_target_sbrk): Update.
1672 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
1673 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
1675 * go-lang.c (go_main_name): Update.
1676 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
1677 (hppa_hpux_find_import_stub_for_addr): Update.
1678 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
1679 Update. Change return type.
1680 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
1682 * jit.c (jit_breakpoint_re_set_internal): Update.
1683 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
1685 * linux-nat.c (get_signo): Update.
1686 * linux-thread-db.c (inferior_has_bug): Update
1687 * m32c-tdep.c (m32c_return_value)
1688 (m32c_m16c_address_to_pointer): Update.
1689 * m32r-tdep.c (m32r_frame_this_id): Update.
1690 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
1691 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
1692 * minsyms.c (lookup_minimal_symbol_internal): Rename to
1693 lookup_minimal_symbol. Change return type.
1694 (lookup_minimal_symbol): Remove.
1695 (lookup_bound_minimal_symbol): Update.
1696 (lookup_minimal_symbol_text): Change return type.
1697 (lookup_minimal_symbol_solib_trampoline): Change return type.
1698 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
1699 (lookup_minimal_symbol_solib_trampoline): Change return type.
1700 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
1701 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1702 (value_nsstring, find_imps): Update.
1703 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
1704 * p-lang.c (pascal_main_name): Update.
1705 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
1706 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1707 * proc-service.c (ps_pglobal_lookup): Update.
1708 * ravenscar-thread.c (get_running_thread_msymbol): Change
1710 (has_ravenscar_runtime, get_running_thread_id): Update.
1711 * remote.c (remote_check_symbols): Update.
1712 * sol-thread.c (ps_pglobal_lookup): Update.
1713 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
1714 * solib-dsbt.c (lm_base): Update.
1715 * solib-frv.c (lm_base, frv_relocate_section_addresses):
1717 * solib-irix.c (locate_base): Update.
1718 * solib-som.c (som_solib_create_inferior_hook)
1719 (som_solib_desire_dynamic_linker_symbols, link_map_start):
1721 * solib-spu.c (spu_enable_break): Update.
1722 * solib-svr4.c (elf_locate_base, enable_break): Update.
1723 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
1724 (flush_ea_cache): Update.
1725 * stabsread.c (define_symbol): Update.
1726 * symfile.c (simple_read_overlay_table): Update.
1727 * symtab.c (find_pc_sect_line): Update.
1728 * tracepoint.c (scope_info): Update.
1729 * tui-disasm.c (tui_get_begin_asm_address): Update.
1730 * value.c (value_static_field): Update.
1732 2014-02-26 Tom Tromey <tromey@redhat.com>
1734 * minsyms.c (prim_record_minimal_symbol_full): Use
1735 SET_MSYMBOL_VALUE_ADDRESS.
1736 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
1737 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
1738 SET_MSYMBOL_VALUE_ADDRESS.
1739 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
1740 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
1742 2014-02-26 Tom Tromey <tromey@redhat.com>
1744 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
1745 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
1746 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
1747 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
1748 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
1749 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
1750 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
1751 * ada-lang.c (ada_main_name): Update.
1752 (ada_lookup_simple_minsym): Update.
1753 (ada_make_symbol_completion_list): Update.
1754 (ada_add_standard_exceptions): Update.
1755 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
1756 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
1757 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1758 * arm-tdep.c (skip_prologue_function): Update.
1759 (arm_skip_stack_protector, arm_skip_stub): Update.
1760 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1761 (arm_wince_skip_main_prologue): Update.
1762 * auxv.c (ld_so_xfer_auxv): Update.
1763 * avr-tdep.c (avr_scan_prologue): Update.
1764 * ax-gdb.c (gen_var_ref): Update.
1765 * block.c (call_site_for_pc): Update.
1766 * blockframe.c (get_pc_function_start): Update.
1767 (find_pc_partial_function_gnu_ifunc): Update.
1768 * breakpoint.c (create_overlay_event_breakpoint): Update.
1769 (create_longjmp_master_breakpoint): Update.
1770 (create_std_terminate_master_breakpoint): Update.
1771 (create_exception_master_breakpoint): Update.
1772 (resolve_sal_pc): Update.
1773 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
1774 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
1776 * c-valprint.c (c_val_print): Update.
1777 * coff-pe-read.c (add_pe_forwarded_sym): Update.
1778 * coffread.c (coff_symfile_read): Update.
1779 * common/agent.c (agent_look_up_symbols): Update.
1780 * dbxread.c (find_stab_function_addr): Update.
1781 (end_psymtab): Update.
1782 * dwarf2loc.c (call_site_to_target_addr): Update.
1783 (func_verify_no_selftailcall): Update.
1784 (tailcall_dump): Update.
1785 (call_site_find_chain_1): Update.
1786 (dwarf_expr_reg_to_entry_parameter): Update.
1787 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1788 (elf_gnu_ifunc_resolve_by_got): Update.
1789 * f-valprint.c (info_common_command): Update.
1790 * findvar.c (read_var_value): Update.
1791 * frame.c (get_prev_frame_1): Update.
1792 (inside_main_func): Update.
1793 * frv-tdep.c (frv_skip_main_prologue): Update.
1794 (frv_frame_this_id): Update.
1795 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
1796 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1797 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1798 (gnuv3_skip_trampoline): Update.
1799 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
1800 (hppa64_hpux_in_solib_call_trampoline): Update.
1801 (hppa_hpux_skip_trampoline_code): Update.
1802 (hppa64_hpux_search_dummy_call_sequence): Update.
1803 (hppa_hpux_find_import_stub_for_addr): Update.
1804 (hppa_hpux_find_dummy_bpaddr): Update.
1805 * hppa-tdep.c (hppa_symbol_address)
1806 (hppa_lookup_stub_minimal_symbol): Update.
1807 * i386-tdep.c (i386_skip_main_prologue): Update.
1808 (i386_pe_skip_trampoline_code): Update.
1809 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1810 * infcall.c (get_function_name): Update.
1811 * infcmd.c (until_next_command): Update.
1812 * jit.c (jit_breakpoint_re_set_internal): Update.
1813 (jit_inferior_init): Update.
1814 * linespec.c (minsym_found): Update.
1815 (add_minsym): Update.
1816 * linux-fork.c (info_checkpoints_command): Update.
1817 * linux-nat.c (get_signo): Update.
1818 * linux-thread-db.c (inferior_has_bug): Update.
1819 * m32c-tdep.c (m32c_return_value): Update.
1820 (m32c_m16c_address_to_pointer): Update.
1821 (m32c_m16c_pointer_to_address): Update.
1822 * m32r-tdep.c (m32r_frame_this_id): Update.
1823 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
1824 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
1825 * maint.c (maintenance_translate_address): Update.
1826 * minsyms.c (add_minsym_to_hash_table): Update.
1827 (add_minsym_to_demangled_hash_table): Update.
1828 (msymbol_objfile): Update.
1829 (lookup_minimal_symbol): Update.
1830 (iterate_over_minimal_symbols): Update.
1831 (lookup_minimal_symbol_text): Update.
1832 (lookup_minimal_symbol_by_pc_name): Update.
1833 (lookup_minimal_symbol_solib_trampoline): Update.
1834 (lookup_minimal_symbol_by_pc_section_1): Update.
1835 (lookup_minimal_symbol_and_objfile): Update.
1836 (prim_record_minimal_symbol_full): Update.
1837 (compare_minimal_symbols): Update.
1838 (compact_minimal_symbols): Update.
1839 (build_minimal_symbol_hash_tables): Update.
1840 (install_minimal_symbols): Update.
1841 (terminate_minimal_symbol_table): Update.
1842 (find_solib_trampoline_target): Update.
1843 (minimal_symbol_upper_bound): Update.
1844 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
1845 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1846 (mips_skip_pic_trampoline_code): Update.
1847 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1848 * objc-lang.c (selectors_info): Update.
1849 (classes_info): Update.
1850 (find_methods): Update.
1851 (find_imps): Update.
1852 (find_objc_msgsend): Update.
1853 * objfiles.c (objfile_relocate1): Update.
1854 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
1855 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
1856 * p-valprint.c (pascal_val_print): Update.
1857 * parse.c (write_exp_msymbol): Update.
1858 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
1859 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
1860 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1861 * printcmd.c (build_address_symbolic): Update.
1863 (address_info): Update.
1864 * proc-service.c (ps_pglobal_lookup): Update.
1865 * psymtab.c (find_pc_sect_psymtab_closer): Update.
1866 (find_pc_sect_psymtab): Update.
1867 * python/py-framefilter.c (py_print_frame): Update.
1868 * ravenscar-thread.c (get_running_thread_id): Update.
1869 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
1871 * remote.c (remote_check_symbols): Update.
1872 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1873 (rs6000_skip_trampoline_code): Update.
1874 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
1875 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
1876 * solib-dsbt.c (lm_base): Update.
1877 * solib-frv.c (lm_base): Update.
1879 * solib-irix.c (locate_base): Update.
1880 * solib-som.c (som_solib_create_inferior_hook): Update.
1881 (som_solib_desire_dynamic_linker_symbols): Update.
1882 (link_map_start): Update.
1883 * solib-spu.c (spu_enable_break): Update.
1884 (ocl_enable_break): Update.
1885 * solib-svr4.c (elf_locate_base): Update.
1886 (enable_break): Update.
1887 * spu-tdep.c (spu_get_overlay_table): Update.
1888 (spu_catch_start): Update.
1889 (flush_ea_cache): Update.
1890 * stabsread.c (define_symbol): Update.
1891 (scan_file_globals): Update.
1892 * stack.c (find_frame_funname): Update.
1893 (frame_info): Update.
1894 * symfile.c (simple_read_overlay_table): Update.
1895 (simple_overlay_update): Update.
1896 * symmisc.c (dump_msymbols): Update.
1897 * symtab.c (fixup_section): Update.
1898 (find_pc_sect_line): Update.
1899 (skip_prologue_sal): Update.
1900 (search_symbols): Update.
1901 (print_msymbol_info): Update.
1902 (rbreak_command): Update.
1903 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
1904 (completion_list_objc_symbol): Update.
1905 (default_make_symbol_completion_list_break_on): Update.
1906 * tracepoint.c (scope_info): Update.
1907 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
1908 (tui_get_begin_asm_address): Update.
1909 * valops.c (find_function_in_inferior): Update.
1910 * value.c (value_static_field): Update.
1911 (value_fn_field): Update.
1913 2014-02-26 Tom Tromey <tromey@redhat.com>
1915 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
1916 bound minimal symbols. Move code that knows about minsym
1918 * minsyms.c (minimal_symbol_upper_bound): ... here. New
1920 * minsyms.h (minimal_symbol_upper_bound): Declare.
1921 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
1922 minimal_symbol_upper_bound.
1924 2014-02-27 Joel Brobecker <brobecker@adacore.com>
1926 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
1927 Use the type's name if its basic type does not have a tag.
1929 2014-02-27 Joel Brobecker <brobecker@adacore.com>
1931 * dwarf2read.c (read_subrange_type): Add comment.
1933 2014-02-27 Joel Brobecker <brobecker@adacore.com>
1935 * dwarf2read.c (update_enumeration_type_from_children): New
1936 function, mostly extracted from process_structure_scope.
1937 (read_enumeration_type): Call update_enumeration_type_from_children.
1938 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
1939 and flag_flag_enum fields.
1941 2014-02-26 Pedro Alves <palves@redhat.com>
1943 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
1944 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
1945 to_xfer_partial method.
1947 2014-02-26 Pedro Alves <palves@redhat.com>
1949 * target.c (complete_target_initialization): Don't install
1950 default_xfer_partial as to_xfer_partial hook.
1952 (update_current_target): Don't INHERIT nor de_fault
1953 deprecated_xfer_memory. Delete de_fault macro.
1954 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
1955 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
1956 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
1959 2014-02-26 Pedro Alves <palves@redhat.com>
1961 * go32-nat.c (my_write_child): New function.
1962 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
1963 (go32_xfer_partial): New function.
1964 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
1965 Instead install a to_xfer_partial hook.
1967 2014-02-26 Pedro Alves <palves@redhat.com>
1969 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
1970 to_xfer_partial helper. Rewrite.
1971 (procfs_xfer_partial): New function.
1972 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
1973 Install a to_xfer_partial hook.
1975 2014-02-26 Pedro Alves <palves@redhat.com>
1977 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
1978 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
1979 (m32r_xfer_partial): New function.
1980 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
1981 Install a to_xfer_partial hook.
1983 2014-02-26 Pedro Alves <palves@redhat.com>
1985 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
1987 (mips_xfer_partial): New function.
1988 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
1989 hook. Install a to_xfer_partial hook.
1991 2014-02-26 Joel Brobecker <brobecker@adacore.com>
1993 * gdbtypes.h (create_array_type_with_stride): Add declaration.
1994 * gdbtypes.c (create_array_type_with_stride): New function,
1995 renaming create_array_type, but with an added parameter
1996 called "bit_stride".
1997 (create_array_type): Re-implement using
1998 create_array_type_with_stride.
1999 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
2000 and DW_AT_bit_stride attributes.
2002 2014-02-26 Pedro Alves <palves@redhat.com>
2004 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
2005 task-specific breakpoints.
2007 2014-02-25 Pedro Alves <palves@redhat.com>
2009 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
2010 handling of object == TARGET_OBJECT_UNWIND_TABLE.
2012 2014-02-25 Stan Shebs <stan@codesourcery.com>
2014 * defs.h: Annotate comments for Doxygen.
2016 2014-02-25 Tom Tromey <tromey@redhat.com>
2018 * target.h (target_ignore): Don't declare.
2019 * target.c (target_ignore): Remove.
2021 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2024 * auto-load.c (auto_load_objfile_script_1): Change filename to
2027 2014-02-25 Joel Brobecker <brobecker@adacore.com>
2029 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
2030 documentation. Adjust prototype to match the target_ops
2031 to_xfer_partial method. Adjust implementation accordingly.
2033 2014-02-25 Hui Zhu <hui@codesourcery.com>
2035 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
2038 2014-02-25 Kevin Buettner <kevinb@redhat.com>
2040 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
2041 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
2042 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
2043 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
2044 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
2045 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
2046 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
2047 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
2049 (rl78_register_type): Use a data pointer type for SP and
2050 new pseudo registers mentioned above. Use a 16 bit integer
2051 type for all other register pairs.
2052 (rl78_register_name, rl78_g10_register_name): Update for
2053 new pseudo registers.
2054 (rl78_pseudo_register_read): Likewise.
2055 (rl78_pseudo_register_write): Likewise.
2056 (rl78_dwarf_reg_to_regnum): Return register numbers representing
2057 to the newly added pseudo registers.
2059 2014-02-24 Doug Evans <dje@google.com>
2061 * value.c (record_latest_value): Fix comment.
2062 * printcmd.c (print_command_1): Remove code to handle -1 return from
2063 record_latest_value.
2065 2014-02-24 Pedro Alves <palves@redhat.com>
2067 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
2068 deprecated_xfer_memory hook.
2069 (procfs_xfer_partial): Call procfs_xfer_memory instead
2070 of the deprecated_xfer_memory target hook.
2071 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
2074 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
2076 * windows-nat.c (windows_xfer_shared_libraries): Return
2077 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
2078 requested object is TARGET_OBJECT_LIBRARIES.
2080 2014-02-24 Yao Qi <yao@codesourcery.com>
2082 * target.h (enum target_xfer_status)
2083 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
2084 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
2086 * corefile.c (memory_error_message): User updated.
2087 * exec.c (section_table_read_available_memory): Likewise.
2088 * record-btrace.c (record_btrace_xfer_partial): Likewise.
2089 * target.c (target_xfer_status_to_string): Likewise.
2090 (raw_memory_xfer_partial): Likewise.
2091 (memory_xfer_partial_1, target_xfer_partial): Likewise.
2092 * valops.c (read_value_memory): Likewise.
2093 * exec.h: Update comments.
2095 2014-02-24 Yao Qi <yao@codesourcery.com>
2097 * target.c (target_xfer_status_to_string): Rename argument err
2099 * target.h (target_xfer_status_to_string): Update declaration.
2100 Replace target_xfer_error_to_string with
2101 target_xfer_status_to_string in comment.
2103 2014-02-24 Yao Qi <yao@codesourcery.com>
2105 * mips-linux-nat.c (super_close): Update its type.
2106 (mips_linux_close): Pass 'self' to super_close.
2108 2014-02-24 Yao Qi <yao@codesourcery.com>
2110 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
2111 * corefile.c (read_memory): Adjusted.
2112 * target.c (target_write_with_progress): Adjusted.
2114 2014-02-23 Yao Qi <yao@codesourcery.com>
2118 2013-10-25 Yao Qi <yao@codesourcery.com>
2120 * remote.c (remote_traceframe_info): Return early if
2121 traceframe is not selected.
2123 2013-07-19 Yao Qi <yao@codesourcery.com>
2125 * target.c (update_current_target): Change the default action
2126 of 'to_traceframe_info' from tcomplain to return_zero.
2127 * target.h (struct target_ops) <to_traceframe_info>: Add more
2130 2014-02-23 Yao Qi <yao@codesourcery.com>
2132 * valops.c (read_value_memory): Rewrite it. Call
2133 target_xfer_partial in a loop.
2134 * exec.h (section_table_available_memory): Remove declaration.
2135 Move comments to ...
2136 * exec.c (section_table_available_memory): ... here. Make it
2139 2014-02-23 Yao Qi <yao@codesourcery.com>
2141 * exec.c (section_table_read_available_memory): New function.
2142 * exec.h (section_table_read_available_memory): Declare.
2143 * ctf.c (ctf_xfer_partial): Call
2144 section_table_read_available_memory.
2145 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2147 2014-02-23 Yao Qi <yao@codesourcery.com>
2149 * ctf.c (ctf_xfer_partial): Move code to ...
2150 * exec.c (exec_read_partial_read_only): ... it. New function.
2151 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2152 * tracefile.c: Include "exec.h".
2153 * exec.h (exec_read_partial_read_only): Declare.
2155 2014-02-23 Yao Qi <yao@codesourcery.com>
2157 * tracefile-tfile.c (tfile_has_all_memory): Remove.
2158 (tfile_has_memory): Remove.
2159 (init_tfile_ops): Don't set fields to_has_all_memory and
2160 to_has_memory of tfile_ops.
2161 * tracefile.c (tracefile_has_all_memory): New function.
2162 (tracefile_has_memory): New function.
2163 (init_tracefile_ops): Initialize fields to_has_all_memory and
2164 to_has_memory of 'ops'.
2166 2014-02-23 Yao Qi <yao@codesourcery.com>
2168 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
2169 (ctf_thread_alive, ctf_get_trace_status): Remove.
2170 (init_ctf_ops): Don't set some fields of ctf_ops. Call
2172 * tracefile-tfile.c (tfile_get_trace_status): Remove.
2173 (tfile_has_stack, tfile_has_registers): Remove.
2174 (tfile_thread_alive): Remove.
2175 (init_tfile_ops): Don't set some fields of tfile_ops. Call
2177 * tracefile.c (tracefile_has_stack): New function.
2178 (tracefile_has_registers): New function.
2179 (tracefile_thread_alive): New function.
2180 (tracefile_get_trace_status): New function.
2181 (init_tracefile_ops): New function.
2182 * tracefile.h (init_tracefile_ops): Declare.
2184 2014-02-23 Yao Qi <yao@codesourcery.com>
2186 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
2187 (O_LARGEFILE): Likewise.
2188 (tfile_ops): Likewise.
2189 (TRACE_HEADER_SIZE): Likewise.
2190 (trace_fd, trace_frames_offset, cur_offset): Likewise.
2191 (cur_data_size): Likewise.
2192 (tfile_read, tfile_open, tfile_interp_line): Likewise.
2193 (tfile_close, tfile_files_info): Likewise.
2194 (tfile_get_trace_status): Likewise.
2195 (tfile_get_tracepoint_status): Likewise.
2196 (tfile_get_traceframe_address): Likewise.
2197 (tfile_trace_find, match_blocktype): Likewise.
2198 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
2199 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
2200 (tfile_get_trace_state_variable_value): Likewise.
2201 (tfile_has_all_memory, tfile_has_memory): Likewise.
2202 (tfile_has_stack, tfile_has_registers): Likewise.
2203 (tfile_thread_alive, build_traceframe_info): Likewise.
2204 (tfile_traceframe_info, init_tfile_ops): Likewise.
2205 (_initialize_tracepoint): Don't call init_tfile_ops
2206 and add_target_with_completer.
2207 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
2208 exec.h, completer.h and filenames.h.
2209 (_initialize_tracefile_tfile): New function.
2211 2014-02-23 Yao Qi <yao@codesourcery.com>
2213 * Makefile.in (REMOTE_OBS): Append tracefile.o and
2215 (HFILES_NO_SRCDIR): Add tracefile.h.
2216 * ctf.c: Include "tracefile.h".
2217 * tracefile.h: New file.
2218 * tracefile.c: New file
2219 * tracefile-tfile.c: New file.
2220 * tracepoint.c: Include "tracefile.h".
2221 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
2222 (stop_reason_names): Add const.
2223 (trace_file_writer_xfree): Move it to tracefile.c.
2224 (trace_save, trace_save_command, trace_save_tfile): Likewise.
2225 (trace_save_ctf): Likewise.
2226 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
2227 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
2228 (tfile_write_header, tfile_write_regblock_type): Likewise.
2229 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
2230 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
2231 (tfile_write_raw_data, tfile_end): Likewise.
2232 (tfile_trace_file_writer_new): Likewise.
2233 (free_uploaded_tp): Make it extern.
2234 (free_uploaded_tsv): Make it extern.
2235 (_initialize_tracepoint): Move code to register command 'tsave'
2237 * tracepoint.h (stop_reason_names): Declare.
2238 (struct trace_frame_write_ops): Move it to tracefile.h.
2239 (struct trace_file_write_ops): Likewise.
2240 (struct trace_file_writer): Likewise.
2241 (free_uploaded_tsvs, free_uploaded_tps): Declare.
2243 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2246 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
2248 (get_cores_used_by_process): New parameter num_cores, use it.
2249 (linux_xfer_osdata_processes): Pass num_cores to it.
2250 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
2253 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
2255 * target.c (memory_xfer_partial): Fix length arg in call to
2256 breakpoint_xfer_memory.
2258 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
2261 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
2262 number comes after the + or - signs. Adjust length of register
2263 name to be extracted.
2265 2014-02-20 Tom Tromey <tromey@redhat.com>
2267 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
2268 (ada_varobj_ops): Mark "extern".
2270 2014-02-20 Tom Tromey <tromey@redhat.com>
2272 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
2274 2014-02-20 Doug Evans <xdje42@gmail.com>
2276 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
2277 All callers updated.
2278 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
2279 All callers updated.
2280 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
2281 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
2283 2014-02-20 lin zuojian <manjian2006@gmail.com>
2284 Joel Brobecker <brobecker@adacore.com>
2285 Doug Evans <xdje42@gmail.com>
2288 * dwarf2read.c (struct die_info): New member in_process.
2289 (reset_die_in_process): New function.
2290 (process_die): Set it at the start, reset when returning.
2291 (inherit_abstract_dies): Only call process_die if origin_child_die
2292 not already being processed.
2294 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2296 * windows-nat.c (handle_unload_dll): Add function documentation.
2297 (do_initial_windows_stuff): Add comment explaining why we wait
2298 until after inferior initialization has finished before
2299 processing all DLLs.
2301 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2303 * windows-nat.c (get_module_name): Delete.
2304 (windows_get_exec_module_filename): New function, mostly
2305 inspired from get_module_name.
2306 (windows_pid_to_exec_file): Replace call to get_module_name
2307 by call to windows_get_exec_module_filename.
2309 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2311 * windows-nat.c (handle_load_dll): Rewrite this function's
2312 introductory comment. Remove code using get_module_name
2313 to get the DLL's name.
2315 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2317 * windows-nat.c (get_windows_debug_event): Ignore
2318 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
2319 if windows_initialization_done == 0.
2320 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
2321 Adjust implementation to always load all DLLs.
2322 (do_initial_windows_stuff): Replace call to
2323 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
2325 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2327 * windows-nat.c (_initialize_windows_nat): Deprecate the
2328 "dll-symbols" command. Turn the "add-shared-symbol-files"
2329 and "assf" aliases into commands, and deprecate them as well.
2330 * NEWS: Add entry explaining that "dll-symbols" and its two
2331 aliases are now deprecated.
2333 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2335 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
2336 new-line in debug string. Remove trailing spaces.
2338 2014-02-19 Stan Shebs <stan@codesourcery.com>
2340 * darwin-nat.c (darwin_xfer_partial): Fix return type.
2342 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
2344 * NEWS: Add entry for the new feature
2345 * python/py-value.c (valpy_binop): Call value_x_binop for struct
2348 2014-02-19 Stan Shebs <stan@codesourcery.com>
2350 * MAINTAINERS: List Yao Qi as nios2 maintainer.
2352 2014-02-19 Pedro Alves <palves@redhat.com>
2354 * common/ptid.h (struct ptid): Mention that process_stratum
2355 targets should prefer ptid.lwp.
2357 2014-02-19 Pedro Alves <palves@redhat.com>
2359 * remote.c (remote_thread_alive, write_ptid, read_ptid)
2360 (read_ptid, remote_newthread_step, remote_threads_extra_info)
2361 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
2362 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
2363 store remote thread ids rather than ptid.tid.
2364 (_initialize_remote): Adjust.
2366 2014-02-19 Tom Tromey <tromey@redhat.com>
2368 * target.c (target_get_unwinder): Rewrite.
2369 (target_get_tailcall_unwinder): Rewrite.
2370 * record-btrace.c (record_btrace_to_get_unwinder): New function.
2371 (record_btrace_to_get_tailcall_unwinder): New function.
2372 (init_record_btrace_ops): Update.
2373 * target.h (struct target_ops) <to_get_unwinder,
2374 to_get_tailcall_unwinder>: Now function pointers. Use
2375 TARGET_DEFAULT_RETURN.
2377 2014-02-19 Tom Tromey <tromey@redhat.com>
2379 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
2381 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
2383 2014-02-19 Tom Tromey <tromey@redhat.com>
2385 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
2387 * target-delegates.c: Rebuild.
2388 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
2389 TARGET_DEFAULT_FUNC.
2390 * target.c (default_target_decr_pc_after_break): Rename from
2391 forward_target_decr_pc_after_break. Simplify.
2392 (target_decr_pc_after_break): Rely on delegation.
2394 2014-02-19 Tom Tromey <tromey@redhat.com>
2396 * target.c (update_current_target): Do not INHERIT to_doc or
2397 to_magic. Do not de_fault to_open or to_close.
2399 2014-02-19 Tom Tromey <tromey@redhat.com>
2401 * gcore.h (objfile_find_memory_regions): Declare.
2402 * gcore.c (objfile_find_memory_regions): No longer static. Add
2404 (_initialize_gcore): Don't call exec_set_find_memory_regions.
2405 * exec.c: Include gcore.h.
2406 (exec_set_find_memory_regions): Remove.
2407 (exec_find_memory_regions): Remove.
2408 (exec_do_find_memory_regions): Remove.
2409 (init_exec_ops): Update.
2410 * defs.h (exec_set_find_memory_regions): Remove.
2412 2014-02-19 Tom Tromey <tromey@redhat.com>
2414 * target-delegates.c: Rebuild.
2415 * target.h (struct target_ops) <to_extra_thread_info,
2416 to_thread_name, to_pid_to_exec_file, to_get_section_table,
2417 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
2418 not 0, in TARGET_DEFAULT_RETURN.
2420 2014-02-19 Tom Tromey <tromey@redhat.com>
2422 * target.c (complete_target_initialization): Remove casts. Use
2423 return_zero_has_execution.
2424 (return_zero): Add "ignore" argument.
2425 (return_zero_has_execution): New function.
2426 (init_dummy_target): Remove casts. Use
2427 return_zero_has_execution.
2429 2014-02-19 Tom Tromey <tromey@redhat.com>
2431 * target.c (update_current_target): Update comments. Do not
2434 2014-02-19 Tom Tromey <tromey@redhat.com>
2436 * arm-linux-nat.c (arm_linux_read_description): Delegate when
2438 * corelow.c (core_read_description): Delegate when needed.
2439 * remote.c (remote_read_description): Delegate when needed.
2440 * target-delegates.c: Rebuild.
2441 * target.c (target_read_description): Rewrite.
2442 * target.h (struct target_ops) <to_read_description>: Update
2443 comment. Use TARGET_DEFAULT_RETURN.
2445 2014-02-19 Tom Tromey <tromey@redhat.com>
2447 * target-delegates.c: Rebuild.
2448 * target.c (update_current_target): Don't inherit or default
2450 (find_default_run_target): Check against delegate_can_run.
2451 * target.h (struct target_ops) <to_can_run>: Use
2452 TARGET_DEFAULT_RETURN.
2454 2014-02-19 Tom Tromey <tromey@redhat.com>
2456 * target-delegates.c: Rebuild.
2457 * target.c (target_disconnect): Unconditionally delegate.
2458 * target.h (struct target_ops) <to_disconnect>: Use
2459 TARGET_DEFAULT_NORETURN.
2461 2014-02-19 Tom Tromey <tromey@redhat.com>
2463 * record.c (record_stop): Unconditionally delegate.
2464 * target-delegates.c: Rebuild.
2465 * target.c (target_stop_recording): Unconditionally delegate.
2466 * target.h (struct target_ops) <to_stop_recording>: Use
2467 TARGET_DEFAULT_IGNORE.
2469 2014-02-19 Tom Tromey <tromey@redhat.com>
2471 * target-delegates.c: Rebuild.
2472 * target.c (target_enable_btrace): Unconditionally delegate.
2473 * target.h (struct target_ops) <to_enable_btrace>: Use
2474 TARGET_DEFAULT_NORETURN.
2476 2014-02-19 Tom Tromey <tromey@redhat.com>
2478 * target-delegates.c: Rebuild.
2479 * target.c (target_read_btrace): Unconditionally delegate.
2480 * target.h (struct target_ops) <to_read_btrace>: Use
2481 TARGET_DEFAULT_NORETURN.
2483 2014-02-19 Tom Tromey <tromey@redhat.com>
2485 * target-delegates.c: Rebuild.
2486 * target.c (target_teardown_btrace): Unconditionally delegate.
2487 * target.h (struct target_ops) <to_teardown_btrace>: Use
2488 TARGET_DEFAULT_NORETURN.
2490 2014-02-19 Tom Tromey <tromey@redhat.com>
2492 * target-delegates.c: Rebuild.
2493 * target.c (target_disable_btrace): Unconditionally delegate.
2494 * target.h (struct target_ops) <to_disable_btrace>: Use
2495 TARGET_DEFAULT_NORETURN.
2497 2014-02-19 Tom Tromey <tromey@redhat.com>
2499 * target-delegates.c: Rebuild.
2500 * target.c (default_search_memory): New function.
2501 (simple_search_memory): Update comment.
2502 (target_search_memory): Unconditionally delegate.
2503 * target.h (struct target_ops) <to_search_memory>: Use
2504 TARGET_DEFAULT_FUNC.
2506 2014-02-19 Tom Tromey <tromey@redhat.com>
2508 * auxv.c (default_auxv_parse): No longer static.
2509 (target_auxv_parse): Unconditionally delegate.
2510 * auxv.h (default_auxv_parse): Declare.
2511 * target-delegates.c: Rebuild.
2512 * target.c: Include auxv.h.
2513 * target.h (struct target_ops) <to_auxv_parse>: Use
2514 TARGET_DEFAULT_FUNC.
2516 2014-02-19 Tom Tromey <tromey@redhat.com>
2518 * target-delegates.c: Rebuild.
2519 * target.c (target_memory_map): Unconditionally delegate.
2520 * target.h (struct target_ops) <to_memory_map>: Use
2521 TARGET_DEFAULT_RETURN.
2523 2014-02-19 Tom Tromey <tromey@redhat.com>
2525 * target-delegates.c: Rebuild.
2526 * target.c (target_thread_alive): Unconditionally delegate.
2527 * target.h (struct target_ops) <to_thread_alive>: Use
2528 TARGET_DEFAULT_RETURN.
2530 2014-02-19 Tom Tromey <tromey@redhat.com>
2532 * target-delegates.c: Rebuild.
2533 * target.c (target_save_record): Unconditionally delegate.
2534 * target.h (struct target_ops) <to_save_record>: Use
2535 TARGET_DEFAULT_NORETURN.
2537 2014-02-19 Tom Tromey <tromey@redhat.com>
2539 * target-delegates.c: Rebuild.
2540 * target.c (target_delete_record): Unconditionally delegate.
2541 * target.h (struct target_ops) <to_delete_record>: Use
2542 TARGET_DEFAULT_NORETURN.
2544 2014-02-19 Tom Tromey <tromey@redhat.com>
2546 * target-delegates.c: Rebuild.
2547 * target.c (target_record_is_replaying): Unconditionally
2549 * target.h (struct target_ops) <to_record_is_replaying>: Use
2550 TARGET_DEFAULT_RETURN.
2552 2014-02-19 Tom Tromey <tromey@redhat.com>
2554 * target-delegates.c: Rebuild.
2555 * target.c (target_goto_record_begin): Unconditionally delegate.
2556 * target.h (struct target_ops) <to_goto_record_begin>: Use
2557 TARGET_DEFAULT_NORETURN.
2559 2014-02-19 Tom Tromey <tromey@redhat.com>
2561 * target-delegates.c: Rebuild.
2562 * target.c (target_goto_record_end): Unconditionally delegate.
2563 * target.h (struct target_ops) <to_goto_record_end>: Use
2564 TARGET_DEFAULT_NORETURN.
2566 2014-02-19 Tom Tromey <tromey@redhat.com>
2568 * target-delegates.c: Rebuild.
2569 * target.c (target_goto_record): Unconditionally delegate.
2570 * target.h (struct target_ops) <to_goto_record>: Use
2571 TARGET_DEFAULT_NORETURN.
2573 2014-02-19 Tom Tromey <tromey@redhat.com>
2575 * target-delegates.c: Rebuild.
2576 * target.c (target_insn_history): Unconditionally delegate.
2577 * target.h (struct target_ops) <to_insn_history>: Use
2578 TARGET_DEFAULT_NORETURN.
2580 2014-02-19 Tom Tromey <tromey@redhat.com>
2582 * target-delegates.c: Rebuild.
2583 * target.c (target_insn_history_from): Unconditionally delegate.
2584 * target.h (struct target_ops) <to_insn_history_from>: Use
2585 TARGET_DEFAULT_NORETURN.
2587 2014-02-19 Tom Tromey <tromey@redhat.com>
2589 * target-delegates.c: Rebuild.
2590 * target.c (target_insn_history_range): Unconditionally delegate.
2591 * target.h (struct target_ops) <to_insn_history_range>: Use
2592 TARGET_DEFAULT_NORETURN.
2594 2014-02-19 Tom Tromey <tromey@redhat.com>
2596 * target-delegates.c: Rebuild.
2597 * target.c (target_call_history): Unconditionally delegate.
2598 * target.h (struct target_ops) <to_call_history>: Use
2599 TARGET_DEFAULT_NORETURN.
2601 2014-02-19 Tom Tromey <tromey@redhat.com>
2603 * target-delegates.c: Rebuild.
2604 * target.c (target_call_history_from): Unconditionally delegate.
2605 * target.h (struct target_ops) <to_call_history_from>: Use
2606 TARGET_DEFAULT_NORETURN.
2608 2014-02-19 Tom Tromey <tromey@redhat.com>
2610 * target-delegates.c: Rebuild.
2611 * target.c (target_call_history_range): Unconditionally delegate.
2612 * target.h (struct target_ops) <to_call_history_range>: Use
2613 TARGET_DEFAULT_NORETURN.
2615 2014-02-19 Tom Tromey <tromey@redhat.com>
2617 * target-delegates.c: Rebuild.
2618 * target.c (target_verify_memory): Unconditionally delegate.
2619 * target.h (struct target_ops) <to_verify_memory>: Use
2620 TARGET_DEFAULT_NORETURN.
2622 2014-02-19 Tom Tromey <tromey@redhat.com>
2624 * target-delegates.c: Rebuild.
2625 * target.c (target_core_of_thread): Unconditionally delegate.
2626 * target.h (struct target_ops) <to_core_of_thread>: Use
2627 TARGET_DEFAULT_RETURN.
2629 2014-02-19 Tom Tromey <tromey@redhat.com>
2631 * target-delegates.c: Rebuild.
2632 * target.c (target_flash_done): Unconditionally delegate.
2633 * target.h (struct target_ops) <to_flash_done>: Use
2634 TARGET_DEFAULT_NORETURN.
2636 2014-02-19 Tom Tromey <tromey@redhat.com>
2638 * target-delegates.c: Rebuild.
2639 * target.c (target_flash_erase): Unconditionally delegate.
2640 * target.h (struct target_ops) <to_flash_erase>: Use
2641 TARGET_DEFAULT_NORETURN.
2643 2014-02-19 Tom Tromey <tromey@redhat.com>
2645 * target-delegates.c: Rebuild.
2646 * target.c (target_get_section_table): Unconditionally delegate.
2647 * target.h (struct target_ops) <to_get_section_table>: Use
2648 TARGET_DEFAULT_RETURN.
2650 2014-02-19 Tom Tromey <tromey@redhat.com>
2652 * target-delegates.c: Rebuild.
2653 * target.c (target_pid_to_str): Unconditionally delegate.
2654 (init_dummy_target): Don't initialize to_pid_to_str.
2655 (default_pid_to_str): Rename from dummy_pid_to_str.
2656 * target.h (struct target_ops) <to_pid_to_str>: Use
2657 TARGET_DEFAULT_FUNC.
2659 2014-02-19 Tom Tromey <tromey@redhat.com>
2661 * target-delegates.c: Rebuild.
2662 * target.c (target_find_new_threads): Unconditionally delegate.
2663 * target.h (struct target_ops) <to_find_new_threads>: Use
2664 TARGET_DEFAULT_RETURN.
2666 2014-02-19 Tom Tromey <tromey@redhat.com>
2668 * target-delegates.c: Rebuild.
2669 * target.c (target_program_signals): Unconditionally delegate.
2670 * target.h (struct target_ops) <to_program_signals>: Use
2671 TARGET_DEFAULT_IGNORE.
2673 2014-02-19 Tom Tromey <tromey@redhat.com>
2675 * target-delegates.c: Rebuild.
2676 * target.c (target_pass_signals): Unconditionally delegate.
2677 * target.h (struct target_ops) <to_pass_signals>: Use
2678 TARGET_DEFAULT_IGNORE.
2680 2014-02-19 Tom Tromey <tromey@redhat.com>
2682 * target-delegates.c: Rebuild.
2683 * target.c (default_mourn_inferior): New function.
2684 (target_mourn_inferior): Unconditionally delegate.
2685 * target.h (struct target_ops) <to_mourn_inferior>: Use
2686 TARGET_DEFAULT_FUNC.
2688 2014-02-19 Tom Tromey <tromey@redhat.com>
2690 * target-delegates.c: Rebuild.
2691 * target.c (default_follow_fork): New function.
2692 (target_follow_fork): Unconditionally delegate.
2693 * target.h (struct target_ops) <to_follow_fork>: Use
2694 TARGET_DEFAULT_FUNC.
2696 2014-02-19 Tom Tromey <tromey@redhat.com>
2698 * target-delegates.c: Rebuild.
2699 * target.c (target_kill): Unconditionally delegate.
2700 * target.h (struct target_ops) <to_kill>: Use
2701 TARGET_DEFAULT_NORETURN.
2703 2014-02-19 Tom Tromey <tromey@redhat.com>
2705 * target-delegates.c: Rebuild.
2706 * target.c (target_masked_watch_num_registers): Unconditionally
2708 * target.h (struct target_ops) <to_masked_watch_num_registers>:
2709 Use TARGET_DEFAULT_RETURN.
2711 2014-02-19 Tom Tromey <tromey@redhat.com>
2713 * target-delegates.c: Rebuild.
2714 * target.c (target_remove_mask_watchpoint): Unconditionally
2716 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
2717 TARGET_DEFAULT_RETURN.
2719 2014-02-19 Tom Tromey <tromey@redhat.com>
2721 * target-delegates.c: Rebuild.
2722 * target.c (target_insert_mask_watchpoint): Unconditionally
2724 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
2725 TARGET_DEFAULT_RETURN.
2727 2014-02-19 Tom Tromey <tromey@redhat.com>
2729 * target-delegates.c: Rebuild.
2730 * target.c (target_ranged_break_num_registers): Unconditionally
2732 * target.h (struct target_ops) <to_ranged_break_num_registers>:
2733 Use TARGET_DEFAULT_RETURN.
2735 2014-02-19 Tom Tromey <tromey@redhat.com>
2737 * target-delegates.c: Rebuild.
2738 * target.c (target_fetch_registers): Unconditionally delegate.
2739 * target.h (struct target_ops) <to_fetch_registers>: Use
2740 TARGET_DEFAULT_NORETURN.
2742 2014-02-19 Tom Tromey <tromey@redhat.com>
2744 * target-delegates.c: Rebuild.
2745 * target.c (update_current_target): Don't inherit or default
2747 * target.h (struct target_ops) <to_stop>: Use
2748 TARGET_DEFAULT_IGNORE.
2750 2014-02-19 Tom Tromey <tromey@redhat.com>
2752 * target-delegates.c: Rebuild.
2753 * target.c (update_current_target): Don't inherit or default
2754 to_can_run_breakpoint_commands.
2755 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
2756 Use TARGET_DEFAULT_RETURN.
2758 2014-02-19 Tom Tromey <tromey@redhat.com>
2760 * target-delegates.c: Rebuild.
2761 * target.c (update_current_target): Don't inherit or default
2762 to_supports_evaluation_of_breakpoint_conditions.
2763 * target.h (struct target_ops)
2764 <to_supports_evaluation_of_breakpoint_conditions>: Use
2765 TARGET_DEFAULT_RETURN.
2767 2014-02-19 Tom Tromey <tromey@redhat.com>
2769 * target-delegates.c: Rebuild.
2770 * target.c (update_current_target): Don't inherit or default
2771 to_augmented_libraries_svr4_read.
2772 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
2773 Use TARGET_DEFAULT_RETURN.
2775 2014-02-19 Tom Tromey <tromey@redhat.com>
2777 * target-delegates.c: Rebuild.
2778 * target.c (update_current_target): Don't inherit or default
2780 * target.h (struct target_ops) <to_can_use_agent>: Use
2781 TARGET_DEFAULT_RETURN.
2783 2014-02-19 Tom Tromey <tromey@redhat.com>
2785 * target-delegates.c: Rebuild.
2786 * target.c (update_current_target): Don't inherit or default
2788 * target.h (struct target_ops) <to_use_agent>: Use
2789 TARGET_DEFAULT_NORETURN.
2791 2014-02-19 Tom Tromey <tromey@redhat.com>
2793 * target-delegates.c: Rebuild.
2794 * target.c (update_current_target): Don't inherit or default
2796 (return_null): Remove.
2797 * target.h (struct target_ops) <to_traceframe_info>: Use
2798 TARGET_DEFAULT_RETURN.
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_static_tracepoint_markers_by_strid.
2805 * target.h (struct target_ops)
2806 <to_static_tracepoint_markers_by_strid>: Use
2807 TARGET_DEFAULT_NORETURN.
2809 2014-02-19 Tom Tromey <tromey@redhat.com>
2811 * target-delegates.c: Rebuild.
2812 * target.c (update_current_target): Don't inherit or default
2813 to_static_tracepoint_marker_at.
2814 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
2815 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
2822 * target.h (struct target_ops) <to_set_permissions>: Use
2823 TARGET_DEFAULT_IGNORE.
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
2830 * target.h (struct target_ops) <to_get_tib_address>: Use
2831 TARGET_DEFAULT_NORETURN.
2833 2014-02-19 Tom Tromey <tromey@redhat.com>
2835 * target-delegates.c: Rebuild.
2836 * target.c (update_current_target): Don't inherit or default
2838 * target.h (struct target_ops) <to_set_trace_notes>: 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 initialize
2845 to_set_trace_buffer_size.
2846 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
2847 TARGET_DEFAULT_IGNORE.
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_set_circular_trace_buffer.
2854 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
2855 TARGET_DEFAULT_IGNORE.
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
2861 to_set_disconnected_tracing.
2862 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
2863 TARGET_DEFAULT_IGNORE.
2865 2014-02-19 Tom Tromey <tromey@redhat.com>
2867 * target-delegates.c: Rebuild.
2868 * target.c (update_current_target): Don't inherit or default
2869 to_get_min_fast_tracepoint_insn_len.
2870 (return_minus_one): Remove.
2871 * target.h (struct target_ops)
2872 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
2874 2014-02-19 Tom Tromey <tromey@redhat.com>
2876 * target-delegates.c: Rebuild.
2877 * target.c (update_current_target): Don't inherit or default
2878 to_get_raw_trace_data.
2879 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
2880 TARGET_DEFAULT_NORETURN.
2882 2014-02-19 Tom Tromey <tromey@redhat.com>
2884 * target-delegates.c: Rebuild.
2885 * target.c (update_current_target): Don't inherit or default
2886 to_upload_trace_state_variables.
2887 * target.h (struct target_ops) <to_upload_trace_state_variables>:
2888 Use TARGET_DEFAULT_RETURN.
2890 2014-02-19 Tom Tromey <tromey@redhat.com>
2892 * target-delegates.c: Rebuild.
2893 * target.c (update_current_target): Don't inherit or default
2894 to_upload_tracepoints.
2895 * target.h (struct target_ops) <to_upload_tracepoints>: Use
2896 TARGET_DEFAULT_RETURN.
2898 2014-02-19 Tom Tromey <tromey@redhat.com>
2900 * target-delegates.c: Rebuild.
2901 * target.c (update_current_target): Don't inherit or default
2903 * target.h (struct target_ops) <to_save_trace_data>: Use
2904 TARGET_DEFAULT_NORETURN.
2906 2014-02-19 Tom Tromey <tromey@redhat.com>
2908 * target-delegates.c: Rebuild.
2909 * target.c (update_current_target): Don't inherit or default
2910 to_get_trace_state_variable_value.
2911 * target.h (struct target_ops)
2912 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
2914 2014-02-19 Tom Tromey <tromey@redhat.com>
2916 * target-delegates.c: Rebuild.
2917 * target.c (update_current_target): Don't inherit or default
2919 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
2921 2014-02-19 Tom Tromey <tromey@redhat.com>
2923 * target-delegates.c: Rebuild.
2924 * target.c (update_current_target): Don't inherit or default
2926 * target.h (struct target_ops) <to_trace_stop>: Use
2927 TARGET_DEFAULT_NORETURN.
2929 2014-02-19 Tom Tromey <tromey@redhat.com>
2931 * target-delegates.c: Rebuild.
2932 * target.c (update_current_target): Don't inherit or default
2933 to_get_tracepoint_status.
2934 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
2935 TARGET_DEFAULT_NORETURN.
2937 2014-02-19 Tom Tromey <tromey@redhat.com>
2939 * target-delegates.c: Rebuild.
2940 * target.c (update_current_target): Don't inherit or default
2941 to_get_trace_status.
2942 * target.h (struct target_ops) <to_get_trace_status>: Use
2943 TARGET_DEFAULT_RETURN.
2945 2014-02-19 Tom Tromey <tromey@redhat.com>
2947 * target-delegates.c: Rebuild.
2948 * target.c (update_current_target): Don't inherit or default
2950 * target.h (struct target_ops) <to_trace_start>: Use
2951 TARGET_DEFAULT_NORETURN.
2953 2014-02-19 Tom Tromey <tromey@redhat.com>
2955 * target-delegates.c: Rebuild.
2956 * target.c (update_current_target): Don't inherit or default
2957 to_trace_set_readonly_regions.
2958 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
2959 Use TARGET_DEFAULT_NORETURN.
2961 2014-02-19 Tom Tromey <tromey@redhat.com>
2963 * target-delegates.c: Rebuild.
2964 * target.c (update_current_target): Don't inherit or default
2965 to_disable_tracepoint.
2966 * target.h (struct target_ops) <to_disable_tracepoint>: Use
2967 TARGET_DEFAULT_NORETURN.
2969 2014-02-19 Tom Tromey <tromey@redhat.com>
2971 * target-delegates.c: Rebuild.
2972 * target.c (update_current_target): Don't inherit or default
2973 to_enable_tracepoint.
2974 * target.h (struct target_ops) <to_enable_tracepoint>: Use
2975 TARGET_DEFAULT_NORETURN.
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_download_trace_state_variable.
2982 * target.h (struct target_ops) <to_download_trace_state_variable>:
2983 Use TARGET_DEFAULT_NORETURN.
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_can_download_tracepoint.
2990 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
2991 TARGET_DEFAULT_RETURN.
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_download_tracepoint.
2998 * target.h (struct target_ops) <to_download_tracepoint>: Use
2999 TARGET_DEFAULT_NORETURN.
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
3006 * target.h (struct target_ops) <to_trace_init>: Use
3007 TARGET_DEFAULT_RETURN.
3009 2014-02-19 Tom Tromey <tromey@redhat.com>
3011 * target-delegates.c: Rebuild.
3012 * target.c (update_current_target): Don't inherit or default
3013 to_supports_string_tracing.
3014 * target.h (struct target_ops) <to_supports_string_tracing>: Use
3015 TARGET_DEFAULT_RETURN.
3017 2014-02-19 Tom Tromey <tromey@redhat.com>
3019 * target-delegates.c: Rebuild.
3020 * target.c (update_current_target): Don't inherit or default
3021 to_supports_enable_disable_tracepoint.
3022 * target.h (struct target_ops)
3023 <to_supports_enable_disable_tracepoint>: Use
3024 TARGET_DEFAULT_RETURN.
3026 2014-02-19 Tom Tromey <tromey@redhat.com>
3028 * target-delegates.c: Rebuild.
3029 * target.c (update_current_target): Don't inherit or default
3030 to_supports_multi_process.
3031 * target.h (struct target_ops) <to_supports_multi_process>: Use
3032 TARGET_DEFAULT_RETURN.
3034 2014-02-19 Tom Tromey <tromey@redhat.com>
3036 * target-delegates.c: Rebuild.
3037 * target.c (update_current_target): Don't inherit or default
3038 to_get_ada_task_ptid.
3039 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
3040 TARGET_DEFAULT_FUNC.
3042 2014-02-19 Tom Tromey <tromey@redhat.com>
3044 * target-delegates.c: Rebuild.
3045 * target.c (update_current_target): Don't inherit or default
3046 to_thread_architecture.
3047 * target.h (struct target_ops) <to_thread_architecture>: Use
3048 TARGET_DEFAULT_FUNC.
3050 2014-02-19 Tom Tromey <tromey@redhat.com>
3052 * target-delegates.c: Rebuild.
3053 * target.c (update_current_target): Don't inherit or default
3054 to_execution_direction.
3055 * target.h (struct target_ops) <to_execution_direction>: Use
3056 TARGET_DEFAULT_FUNC.
3058 2014-02-19 Tom Tromey <tromey@redhat.com>
3060 * target-delegates.c: Rebuild.
3061 * target.c (update_current_target): Don't inherit or default
3062 to_can_execute_reverse.
3063 * target.h (struct target_ops) <to_can_execute_reverse>: Use
3064 TARGET_DEFAULT_RETURN.
3065 (target_can_execute_reverse): Unconditionally delegate.
3067 2014-02-19 Tom Tromey <tromey@redhat.com>
3069 * target-delegates.c: Rebuild.
3070 * target.c (update_current_target): Don't inherit or default
3072 (dummy_goto_bookmark): Remove.
3073 (init_dummy_target): Don't inherit or default to_goto_bookmark.
3074 * target.h (struct target_ops) <to_goto_bookmark>: Use
3075 TARGET_DEFAULT_NORETURN.
3077 2014-02-19 Tom Tromey <tromey@redhat.com>
3079 * target-delegates.c: Rebuild.
3080 * target.c (update_current_target): Don't inherit or default
3082 (dummy_get_bookmark): Remove.
3083 (init_dummy_target): Don't inherit or default to_get_bookmark.
3084 * target.h (struct target_ops) <to_get_bookmark>: Use
3085 TARGET_DEFAULT_NORETURN
3087 2014-02-19 Tom Tromey <tromey@redhat.com>
3089 * target-delegates.c: Rebuild.
3090 * target.c (update_current_target): Don't inherit or default
3091 to_make_corefile_notes.
3092 (init_dummy_target): Don't initialize to_make_corefile_notes.
3093 * target.h (struct target_ops) <to_make_corefile_notes>: Use
3094 TARGET_DEFAULT_FUNC.
3096 2014-02-19 Tom Tromey <tromey@redhat.com>
3098 * target-delegates.c: Rebuild.
3099 * target.c (update_current_target): Don't inherit or default
3100 to_find_memory_regions.
3101 (init_dummy_target): Don't initialize to_find_memory_regions.
3102 * target.h (struct target_ops) <to_find_memory_regions>: Use
3103 TARGET_DEFAULT_FUNC.
3105 2014-02-19 Tom Tromey <tromey@redhat.com>
3107 * target-delegates.c: Rebuild.
3108 * target.c (update_current_target): Don't inherit or default
3110 * target.h (struct target_ops) <to_log_command>: Use
3111 TARGET_DEFAULT_IGNORE.
3112 (target_log_command): Unconditionally delegate.
3114 2014-02-19 Tom Tromey <tromey@redhat.com>
3116 * target-delegates.c: Rebuild.
3117 * target.c (update_current_target): Don't inherit or default
3118 to_pid_to_exec_file.
3119 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
3120 TARGET_DEFAULT_RETURN.
3122 2014-02-19 Tom Tromey <tromey@redhat.com>
3124 * target-delegates.c: Rebuild.
3125 * target.c (update_current_target): Don't inherit or default
3127 (target_thread_name): Unconditionally delegate.
3128 * target.h (struct target_ops) <to_thread_name>: 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_extra_thread_info.
3136 * target.h (struct target_ops) <to_extra_thread_info>: 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
3144 * target.h (struct target_ops) <to_has_exited>: 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_set_syscall_catchpoint.
3152 (return_one): Remove.
3153 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
3154 TARGET_DEFAULT_RETURN.
3156 2014-02-19 Tom Tromey <tromey@redhat.com>
3158 * target-delegates.c: Rebuild.
3159 * target.c (update_current_target): Don't inherit or default
3160 to_insert_exec_catchpoint.
3161 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
3162 TARGET_DEFAULT_RETURN.
3164 2014-01-08 Tom Tromey <tromey@redhat.com>
3166 * target-delegates.c: Rebuild.
3167 * target.c (update_current_target): Don't inherit or default
3168 to_insert_exec_catchpoint.
3169 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
3170 TARGET_DEFAULT_RETURN.
3172 2014-02-19 Tom Tromey <tromey@redhat.com>
3174 * target-delegates.c: Rebuild.
3175 * target.c (update_current_target): Don't inherit or default
3176 to_remove_vfork_catchpoint.
3177 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
3178 TARGET_DEFAULT_RETURN.
3180 2014-02-19 Tom Tromey <tromey@redhat.com>
3182 * target-delegates.c: Rebuild.
3183 * target.c (update_current_target): Don't inherit or default
3184 to_insert_vfork_catchpoint.
3185 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
3186 TARGET_DEFAULT_RETURN.
3188 2014-02-19 Tom Tromey <tromey@redhat.com>
3190 * target-delegates.c: Rebuild.
3191 * target.c (update_current_target): Don't inherit or default
3192 to_remove_fork_catchpoint.
3193 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
3194 TARGET_DEFAULT_RETURN.
3196 2014-02-19 Tom Tromey <tromey@redhat.com>
3198 * target-delegates.c: Rebuild.
3199 * target.c (update_current_target): Don't inherit or default
3200 to_insert_fork_catchpoint.
3201 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
3202 TARGET_DEFAULT_RETURN.
3204 2014-02-19 Tom Tromey <tromey@redhat.com>
3206 * target-delegates.c: Rebuild.
3207 * target.c (update_current_target): Don't inherit or default
3208 to_post_startup_inferior.
3209 * target.h (struct target_ops) <to_post_startup_inferior>: Use
3210 TARGET_DEFAULT_IGNORE.
3212 2014-02-19 Tom Tromey <tromey@redhat.com>
3214 * target-delegates.c: Rebuild.
3215 * target.c (update_current_target): Don't inherit or default
3217 * target.h (struct target_ops) <to_load>: Use
3218 TARGET_DEFAULT_NORETURN.
3220 2014-02-19 Tom Tromey <tromey@redhat.com>
3222 * target-delegates.c: Rebuild.
3223 * target.c (update_current_target): Don't inherit or default
3225 * target.h (struct target_ops) <to_terminal_info>: Use
3226 TARGET_DEFAULT_FUNC.
3228 2014-02-19 Tom Tromey <tromey@redhat.com>
3230 * target-delegates.c: Rebuild.
3231 * target.c (update_current_target): Don't inherit or default
3232 to_terminal_save_ours.
3233 * target.h (struct target_ops) <to_terminal_save_ours>: Use
3234 TARGET_DEFAULT_IGNORE.
3236 2014-02-19 Tom Tromey <tromey@redhat.com>
3238 * target-delegates.c: Rebuild.
3239 * target.c (update_current_target): Don't inherit or default
3241 * target.h (struct target_ops) <to_terminal_ours>: Use
3242 TARGET_DEFAULT_IGNORE.
3244 2014-02-19 Tom Tromey <tromey@redhat.com>
3246 * target-delegates.c: Rebuild.
3247 * target.c (update_current_target): Don't inherit or default
3248 to_terminal_ours_for_output.
3249 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
3250 TARGET_DEFAULT_IGNORE.
3252 2014-02-19 Tom Tromey <tromey@redhat.com>
3254 * target-delegates.c: Rebuild.
3255 * target.c (update_current_target): Don't inherit or default
3256 to_terminal_inferior.
3257 * target.h (struct target_ops) <to_terminal_inferior>: Use
3258 TARGET_DEFAULT_IGNORE.
3260 2014-02-19 Tom Tromey <tromey@redhat.com>
3262 * target-delegates.c: Rebuild.
3263 * target.c (update_current_target): Don't inherit or default
3265 * target.h (struct target_ops) <to_terminal_init>: Use
3266 TARGET_DEFAULT_IGNORE.
3268 2014-02-19 Tom Tromey <tromey@redhat.com>
3270 * target-delegates.c: Rebuild.
3271 * target.c (update_current_target): Don't inherit or default
3272 to_can_accel_watchpoint_condition.
3273 * target.h (struct target_ops)
3274 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
3276 2014-02-19 Tom Tromey <tromey@redhat.com>
3278 * target-delegates.c: Rebuild.
3279 * target.c (update_current_target): Don't inherit or default
3280 to_region_ok_for_hw_watchpoint.
3281 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
3282 Use TARGET_DEFAULT_FUNC.
3284 2014-02-19 Tom Tromey <tromey@redhat.com>
3286 * target-delegates.c: Rebuild.
3287 * target.c (update_current_target): Don't inherit or default
3288 to_watchpoint_addr_within_range.
3289 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
3290 Use TARGET_DEFAULT_FUNC.
3292 2014-02-19 Tom Tromey <tromey@redhat.com>
3294 * target-delegates.c: Rebuild.
3295 * target.c (update_current_target): Don't inherit or default
3296 to_remove_watchpoint.
3297 * target.h (struct target_ops) <to_remove_watchpoint>: Use
3298 TARGET_DEFAULT_NORETURN.
3300 2014-02-19 Tom Tromey <tromey@redhat.com>
3302 * target-delegates.c: Rebuild.
3303 * target.c (update_current_target): Don't inherit or default
3304 to_insert_watchpoint.
3305 * target.h (struct target_ops) <to_insert_watchpoint>: Use
3306 TARGET_DEFAULT_RETURN.
3308 2014-02-19 Tom Tromey <tromey@redhat.com>
3310 * target-delegates.c: Rebuild.
3311 * target.c (update_current_target): Don't inherit or default
3312 to_remove_hw_breakpoint.
3313 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
3314 TARGET_DEFAULT_RETURN.
3316 2014-02-19 Tom Tromey <tromey@redhat.com>
3318 * target-delegates.c: Rebuild.
3319 * target.c (update_current_target): Don't inherit or default
3320 to_insert_hw_breakpoint.
3321 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
3322 TARGET_DEFAULT_RETURN.
3324 2014-02-19 Tom Tromey <tromey@redhat.com>
3326 * target-delegates.c: Rebuild.
3327 * target.c (update_current_target): Don't inherit or default
3328 to_can_use_hw_breakpoint.
3329 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
3330 TARGET_DEFAULT_RETURN.
3332 2014-02-19 Tom Tromey <tromey@redhat.com>
3334 * target-delegates.c: Rebuild.
3335 * target.c (update_current_target): Don't inherit or default
3337 * target.h (struct target_ops) <to_files_info>: Use
3338 TARGET_DEFAULT_IGNORE.
3340 2014-02-19 Tom Tromey <tromey@redhat.com>
3342 * target-delegates.c: Rebuild.
3343 * target.c (update_current_target): Don't inherit or default
3345 * target.h (struct target_ops) <to_store>: Use
3346 TARGET_DEFAULT_NORETURN.
3348 2014-02-19 Tom Tromey <tromey@redhat.com>
3350 * target-delegates.c: Rebuild.
3351 * target.c (update_current_target): Don't inherit or default
3353 * target.h (struct target_ops) <to_post_attach>: Use
3354 TARGET_DEFAULT_IGNORE.
3356 2014-02-19 Tom Tromey <tromey@redhat.com>
3358 * target-delegates.c: Rebuild.
3359 * target.c (update_current_target): Don't inherit or default
3361 (default_rcmd): New function.
3362 (do_monitor_command): Unconditionally delegate.
3363 * target.h (struct target_ops) <to_rmcd>: Use
3364 TARGET_DEFAULT_FUNC.
3366 2014-02-19 Tom Tromey <tromey@redhat.com>
3368 * target-delegates.c: Rebuild.
3369 * target.c (init_dummy_target): Don't initialize to_attach.
3370 (target_attach): Unconditionally delegate.
3371 * target.h (struct target_ops) <to_attach>: Use
3372 TARGET_DEFAULT_FUNC.
3374 2014-02-19 Tom Tromey <tromey@redhat.com>
3376 * target-delegates.c: Rebuild.
3377 * target.c (target_detach): Unconditionally delegate.
3378 (init_dummy_target): Don't initialize to_detach.
3379 * target.h (struct target_ops) <to_detach>: Use
3380 TARGET_DEFAULT_IGNORE.
3382 2014-02-19 Tom Tromey <tromey@redhat.com>
3384 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
3386 (target_augmented_libraries_svr4_read): Add argument.
3387 * target.c (update_current_target): Update.
3388 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
3391 2014-02-19 Tom Tromey <tromey@redhat.com>
3393 * target.h (struct target_ops) <to_call_history_range>: Add
3395 * target.c (target_call_history_range): Add argument.
3396 * record-btrace.c (record_btrace_call_history_range): Add 'self'
3398 (record_btrace_call_history_from): Update.
3400 2014-02-19 Tom Tromey <tromey@redhat.com>
3402 * target.h (struct target_ops) <to_call_history_from>: Add
3404 * target.c (target_call_history_from): Add argument.
3405 * record-btrace.c (record_btrace_call_history_from): Add 'self'
3408 2014-02-19 Tom Tromey <tromey@redhat.com>
3410 * target.h (struct target_ops) <to_call_history>: Add argument.
3411 * target.c (target_call_history): Add argument.
3412 * record-btrace.c (record_btrace_call_history): Add 'self'
3415 2014-02-19 Tom Tromey <tromey@redhat.com>
3417 * target.h (struct target_ops) <to_insn_history_range>: Add
3419 * target.c (target_insn_history_range): Add argument.
3420 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
3422 (record_btrace_insn_history_from): Update.
3424 2014-02-19 Tom Tromey <tromey@redhat.com>
3426 * target.h (struct target_ops) <to_insn_history_from>: Add
3428 * target.c (target_insn_history_from): Add argument.
3429 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
3432 2014-02-19 Tom Tromey <tromey@redhat.com>
3434 * target.h (struct target_ops) <to_insn_history>: Add argument.
3435 * target.c (target_insn_history): Add argument.
3436 * record-btrace.c (record_btrace_insn_history): Add 'self'
3439 2014-02-19 Tom Tromey <tromey@redhat.com>
3441 * target.h (struct target_ops) <to_goto_record>: Add argument.
3442 * target.c (target_goto_record): Add argument.
3443 * record-full.c (record_full_goto): Add 'self' argument.
3444 * record-btrace.c (record_btrace_goto): Add 'self' argument.
3446 2014-02-19 Tom Tromey <tromey@redhat.com>
3448 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
3449 * target.c (target_goto_record_end): Add argument.
3450 * record-full.c (record_full_goto_end): Add 'self' argument.
3451 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
3453 2014-02-19 Tom Tromey <tromey@redhat.com>
3455 * target.h (struct target_ops) <to_goto_record_begin>: Add
3457 * target.c (target_goto_record_begin): Add argument.
3458 * record-full.c (record_full_goto_begin): Add 'self' argument.
3459 * record-btrace.c (record_btrace_goto_begin): Add 'self'
3462 2014-02-19 Tom Tromey <tromey@redhat.com>
3464 * target.h (struct target_ops) <to_record_is_replaying>: Add
3466 * target.c (target_record_is_replaying): Add argument.
3467 * record-full.c (record_full_is_replaying): Add 'self' argument.
3468 * record-btrace.c (record_btrace_is_replaying): Add 'self'
3470 (record_btrace_xfer_partial, record_btrace_store_registers)
3471 (record_btrace_prepare_to_store, record_btrace_resume)
3472 (record_btrace_wait, record_btrace_decr_pc_after_break)
3473 (record_btrace_find_new_threads, record_btrace_thread_alive):
3476 2014-02-19 Tom Tromey <tromey@redhat.com>
3478 * target.h (struct target_ops) <to_delete_record>: Add argument.
3479 * target.c (target_delete_record): Add argument.
3480 * record-full.c (record_full_delete): Add 'self' argument.
3482 2014-02-19 Tom Tromey <tromey@redhat.com>
3484 * target.h (struct target_ops) <to_save_record>: Add argument.
3485 * target.c (target_save_record): Add argument.
3486 * record-full.c (record_full_save): Add 'self' argument.
3487 (record_full_save): Add 'self' argument.
3489 2014-02-19 Tom Tromey <tromey@redhat.com>
3491 * target.h (struct target_ops) <to_info_record>: Add argument.
3492 * target.c (target_info_record): Add argument.
3493 * record.c (info_record_command): Add argument.
3494 * record-full.c (record_full_info): Add 'self' argument.
3495 * record-btrace.c (record_btrace_info): Add 'self' argument.
3497 2014-02-19 Tom Tromey <tromey@redhat.com>
3499 * target.h (struct target_ops) <to_stop_recording>: Add argument.
3500 * target.c (target_stop_recording): Add argument.
3501 * record.c (record_stop): Add argument.
3502 * record-btrace.c (record_btrace_stop_recording): Add 'self'
3505 2014-02-19 Tom Tromey <tromey@redhat.com>
3507 * target.h (struct target_ops) <to_read_btrace>: Add argument.
3508 * target.c (struct target_ops) <to_read_btrace>: Add argument.
3509 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
3511 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
3512 (_initialize_amd64_linux_nat): Use it.
3513 * i386-linux-nat.c (i386_linux_read_btrace): New function.
3514 (_initialize_i386_linux_nat): Use it.
3516 2014-02-19 Tom Tromey <tromey@redhat.com>
3518 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
3519 * target.c (target_teardown_btrace): Add argument.
3520 * remote.c (remote_teardown_btrace): Add 'self' argument.
3521 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
3523 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
3526 2014-02-19 Tom Tromey <tromey@redhat.com>
3528 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
3529 * target.c (target_disable_btrace): Add argument.
3530 * remote.c (remote_disable_btrace): Add 'self' argument.
3531 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
3533 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
3536 2014-02-19 Tom Tromey <tromey@redhat.com>
3538 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
3539 * target.c (target_enable_btrace): Add argument.
3540 * remote.c (remote_enable_btrace): Add 'self' argument.
3541 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
3543 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
3546 2014-02-19 Tom Tromey <tromey@redhat.com>
3548 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
3549 (target_can_use_agent): Add argument.
3550 * target.c (update_current_target): Update.
3551 * remote.c (remote_can_use_agent): Add 'self' argument.
3552 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
3554 2014-02-19 Tom Tromey <tromey@redhat.com>
3556 * target.h (struct target_ops) <to_use_agent>: Add argument.
3557 (target_use_agent): Add argument.
3558 * target.c (update_current_target): Update.
3559 * remote.c (remote_use_agent): Add 'self' argument.
3560 * inf-child.c (inf_child_use_agent): Add 'self' argument.
3562 2014-02-19 Tom Tromey <tromey@redhat.com>
3564 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
3565 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
3566 (target_traceframe_info): Add argument.
3567 * target.c (update_current_target): Update.
3568 * remote.c (remote_traceframe_info): Add 'self' argument.
3569 * ctf.c (ctf_traceframe_info): Add 'self' argument.
3571 2014-02-19 Tom Tromey <tromey@redhat.com>
3573 * target.h (target_static_tracepoint_markers_by_strid): Add
3575 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
3577 * target.c (update_current_target): Update.
3578 * remote.c (struct target_ops)
3579 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
3580 * linux-nat.c (struct target_ops)
3581 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
3583 2014-02-19 Tom Tromey <tromey@redhat.com>
3585 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
3587 (target_static_tracepoint_marker_at): Add argument.
3588 * target.c (update_current_target): Update.
3589 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
3592 2014-02-19 Tom Tromey <tromey@redhat.com>
3594 * target.h (struct target_ops) <to_set_permissions>: Add argument.
3595 (target_set_permissions): Add argument.
3596 * target.c (update_current_target): Update.
3597 * remote.c (remote_set_permissions): Add 'self' argument.
3598 (remote_start_remote): Update.
3600 2014-02-19 Tom Tromey <tromey@redhat.com>
3602 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
3603 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
3604 (target_get_tib_address): Add argument.
3605 * target.c (update_current_target): Update.
3606 * remote.c (remote_get_tib_address): Add 'self' argument.
3608 2014-02-19 Tom Tromey <tromey@redhat.com>
3610 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
3611 (target_set_trace_notes): Add argument.
3612 * target.c (update_current_target): Update.
3613 * remote.c (remote_set_trace_notes): Add 'self' argument.
3615 2014-02-19 Tom Tromey <tromey@redhat.com>
3617 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
3619 (target_set_trace_buffer_size): Add argument.
3620 * target.c (update_current_target): Update.
3621 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
3623 2014-02-19 Tom Tromey <tromey@redhat.com>
3625 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
3627 (target_set_circular_trace_buffer): Add argument.
3628 * target.c (update_current_target): Update.
3629 * remote.c (remote_set_circular_trace_buffer): Add 'self'
3632 2014-02-19 Tom Tromey <tromey@redhat.com>
3634 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
3636 (target_set_disconnected_tracing): Add argument.
3637 * target.c (update_current_target): Update.
3638 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
3640 2014-02-19 Tom Tromey <tromey@redhat.com>
3642 * target.h (struct target_ops)
3643 <to_get_min_fast_tracepoint_insn_len>: Add argument.
3644 (target_get_min_fast_tracepoint_insn_len): Add argument.
3645 * target.c (update_current_target): Update.
3646 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
3649 2014-02-19 Tom Tromey <tromey@redhat.com>
3651 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
3653 (target_get_raw_trace_data): Add argument.
3654 * target.c (update_current_target): Update.
3655 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
3657 2014-02-19 Tom Tromey <tromey@redhat.com>
3659 * target.h (struct target_ops) <to_upload_trace_state_variables>:
3661 (target_upload_trace_state_variables): Add argument.
3662 * target.c (update_current_target): Update.
3663 * remote.c (remote_upload_trace_state_variables): Add 'self'
3665 (remote_start_remote): Update.
3667 2014-02-19 Tom Tromey <tromey@redhat.com>
3669 * target.h (struct target_ops) <to_upload_tracepoints>: Add
3671 (target_upload_tracepoints): Add argument.
3672 * target.c (update_current_target): Update.
3673 * remote.c (remote_upload_tracepoints): Add 'self' argument.
3674 (remote_start_remote): Update.
3676 2014-02-19 Tom Tromey <tromey@redhat.com>
3678 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
3679 (target_save_trace_data): Add argument.
3680 * target.c (update_current_target): Update.
3681 * remote.c (remote_save_trace_data): Add 'self' argument.
3683 2014-02-19 Tom Tromey <tromey@redhat.com>
3685 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
3687 * target.h (struct target_ops)
3688 <to_get_trace_state_variable_value>: Add argument.
3689 (target_get_trace_state_variable_value): Add argument.
3690 * target.c (update_current_target): Update.
3691 * remote.c (remote_get_trace_state_variable_value): Add 'self'
3693 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
3695 2014-02-19 Tom Tromey <tromey@redhat.com>
3697 * tracepoint.c (tfile_trace_find): Add 'self' argument.
3698 * target.h (struct target_ops) <to_trace_find>: Add argument.
3699 (target_trace_find): Add argument.
3700 * target.c (update_current_target): Update.
3701 * remote.c (remote_trace_find): Add 'self' argument.
3702 * ctf.c (ctf_trace_find): Add 'self' argument.
3704 2014-02-19 Tom Tromey <tromey@redhat.com>
3706 * target.h (struct target_ops) <to_trace_stop>: Add argument.
3707 (target_trace_stop): Add argument.
3708 * target.c (update_current_target): Update.
3709 * remote.c (remote_trace_stop): Add 'self' argument.
3711 2014-02-19 Tom Tromey <tromey@redhat.com>
3713 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
3714 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
3716 (target_get_tracepoint_status): Add argument.
3717 * target.c (update_current_target): Update.
3718 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
3720 2014-02-19 Tom Tromey <tromey@redhat.com>
3722 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
3723 * target.h (struct target_ops) <to_get_trace_status>: Add
3725 (target_get_trace_status): Add argument.
3726 * target.c (update_current_target): Update.
3727 * remote.c (remote_get_trace_status): Add 'self' argument.
3728 (remote_start_remote, remote_can_download_tracepoint): Update.
3729 * ctf.c (ctf_get_trace_status): Add 'self' argument.
3731 2014-02-19 Tom Tromey <tromey@redhat.com>
3733 * target.h (struct target_ops) <to_trace_start>: Add argument.
3734 (target_trace_start): Add argument.
3735 * target.c (update_current_target): Update.
3736 * remote.c (remote_trace_start): Add 'self' argument.
3738 2014-02-19 Tom Tromey <tromey@redhat.com>
3740 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
3742 (target_trace_set_readonly_regions): Add argument.
3743 * target.c (update_current_target): Update.
3744 * remote.c (remote_trace_set_readonly_regions): Add 'self'
3747 2014-02-19 Tom Tromey <tromey@redhat.com>
3749 * target.h (struct target_ops) <to_disable_tracepoint>: Add
3751 (target_disable_tracepoint): Add argument.
3752 * target.c (update_current_target): Update.
3753 * remote.c (remote_disable_tracepoint): Add 'self' argument.
3755 2014-02-19 Tom Tromey <tromey@redhat.com>
3757 * target.h (struct target_ops) <to_enable_tracepoint>: Add
3759 (target_enable_tracepoint): Add argument.
3760 * target.c (update_current_target): Update.
3761 * remote.c (remote_enable_tracepoint): Add 'self' argument.
3763 2014-02-19 Tom Tromey <tromey@redhat.com>
3765 * target.h (struct target_ops) <to_download_trace_state_variable>:
3767 (target_download_trace_state_variable): Add argument.
3768 * target.c (update_current_target): Update.
3769 * remote.c (remote_download_trace_state_variable): Add 'self'
3772 2014-02-19 Tom Tromey <tromey@redhat.com>
3774 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
3776 (target_can_download_tracepoint): Add argument.
3777 * target.c (update_current_target): Update.
3778 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
3780 2014-02-19 Tom Tromey <tromey@redhat.com>
3782 * target.h (struct target_ops) <to_download_tracepoint>: Add
3784 (target_download_tracepoint): Add argument.
3785 * target.c (update_current_target): Update.
3786 * remote.c (remote_download_tracepoint): Add 'self' argument.
3788 2014-02-19 Tom Tromey <tromey@redhat.com>
3790 * target.h (struct target_ops) <to_trace_init>: Add argument.
3791 (target_trace_init): Add argument.
3792 * target.c (update_current_target): Update.
3793 * remote.c (remote_trace_init): Add 'self' argument.
3795 2014-02-19 Tom Tromey <tromey@redhat.com>
3797 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
3798 * target.c (target_fileio_readlink): Add argument.
3799 * remote.c (remote_hostio_readlink): Add 'self' argument.
3800 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
3802 2014-02-19 Tom Tromey <tromey@redhat.com>
3804 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
3805 * target.c (target_fileio_unlink): Add argument.
3806 * remote.c (remote_hostio_unlink): Add 'self' argument.
3807 (remote_file_delete): Update.
3808 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
3810 2014-02-19 Tom Tromey <tromey@redhat.com>
3812 * target.h (struct target_ops) <to_fileio_close>: Add argument.
3813 * target.c (target_fileio_close): Add argument.
3814 * remote.c (remote_hostio_close): Add 'self' argument.
3815 (remote_hostio_close_cleanup): Update.
3816 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
3818 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
3820 2014-02-19 Tom Tromey <tromey@redhat.com>
3822 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
3823 * target.c (target_fileio_pread): Add argument.
3824 * remote.c (remote_hostio_pread): Add 'self' argument.
3825 (remote_bfd_iovec_pread, remote_file_get): Update.
3826 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
3828 2014-02-19 Tom Tromey <tromey@redhat.com>
3830 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
3831 * target.c (target_fileio_pwrite): Add argument.
3832 * remote.c (remote_hostio_pwrite): Add 'self' argument.
3833 (remote_file_put): Update.
3834 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
3836 2014-02-19 Tom Tromey <tromey@redhat.com>
3838 * target.h (struct target_ops) <to_fileio_open>: Add argument.
3839 * target.c (target_fileio_open): Add argument.
3840 * remote.c (remote_hostio_open): Add 'self' argument.
3841 (remote_bfd_iovec_open): Add 'self' argument.
3842 (remote_file_put): Add 'self' argument.
3843 (remote_file_get): Add 'self' argument.
3844 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
3846 2014-02-19 Tom Tromey <tromey@redhat.com>
3848 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
3850 (target_can_run_breakpoint_commands): Add argument.
3851 * target.c (update_current_target): Update.
3852 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
3854 (remote_insert_breakpoint): Add 'self' argument.
3855 (remote_insert_hw_breakpoint): Add 'self' argument.
3856 (remote_can_run_breakpoint_commands): Add 'self' argument.
3858 2014-02-19 Tom Tromey <tromey@redhat.com>
3860 * target.h (struct target_ops)
3861 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
3862 (target_supports_evaluation_of_breakpoint_conditions): Add
3864 * target.c (update_current_target): Update.
3865 * remote.c (remote_supports_cond_breakpoints): Add 'self'
3867 (remote_insert_breakpoint): Add 'self' argument.
3868 (remote_insert_hw_breakpoint): Add 'self' argument.
3869 (remote_supports_cond_breakpoints): Add 'self' argument.
3871 2014-02-19 Tom Tromey <tromey@redhat.com>
3873 * target.h (struct target_ops) <to_supports_string_tracing>: Add
3875 (target_supports_string_tracing): Add argument.
3876 * target.c (update_current_target): Update.
3877 * remote.c (remote_supports_string_tracing): Add 'self' argument.
3879 2014-02-19 Tom Tromey <tromey@redhat.com>
3881 * target.h (struct target_ops)
3882 <to_supports_disable_randomization>: Add argument.
3883 * target.c (find_default_supports_disable_randomization): Add
3885 (target_supports_disable_randomization): Add argument.
3886 (find_default_supports_disable_randomization): Add 'self'
3888 * remote.c (extended_remote_supports_disable_randomization): Add
3890 (remote_supports_disable_randomization): Add 'self' argument.
3891 (extended_remote_create_inferior): Update.
3892 * linux-nat.c (linux_nat_supports_disable_randomization): Add
3895 2014-02-19 Tom Tromey <tromey@redhat.com>
3897 * target.h (struct target_ops)
3898 <to_supports_enable_disable_tracepoint>: Add argument.
3899 (target_supports_enable_disable_tracepoint): Add argument.
3900 * target.c (update_current_target): Update.
3901 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
3904 2014-02-19 Tom Tromey <tromey@redhat.com>
3906 * target.h (struct target_ops) <to_supports_multi_process>: Add
3908 (target_supports_multi_process): Add argument.
3909 * target.c (update_current_target): Update.
3910 * remote.c (remote_supports_multi_process): Add 'self' argument.
3911 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
3913 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
3916 2014-02-19 Tom Tromey <tromey@redhat.com>
3918 * target.h (struct target_ops) <to_execution_direction>: Add
3920 (target_execution_direction): Add argument.
3921 * target.c (default_execution_direction): Add 'self' argument.
3922 * record-full.c (record_full_execution_direction): Add 'self'
3925 2014-02-19 Tom Tromey <tromey@redhat.com>
3927 * target.h (struct target_ops) <to_can_execute_reverse>: Add
3929 (target_can_execute_reverse): Add argument.
3930 * remote.c (remote_can_execute_reverse): Add 'self' argument.
3931 * record-full.c (record_full_can_execute_reverse): Add 'self'
3933 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
3936 2014-02-19 Tom Tromey <tromey@redhat.com>
3938 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
3939 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
3941 (target_get_ada_task_ptid): Add argument.
3942 * target.c (update_current_target): Update.
3943 (default_get_ada_task_ptid): Add 'self' argument.
3944 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
3945 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
3946 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
3948 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
3950 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
3952 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
3954 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
3955 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
3958 2014-02-19 Tom Tromey <tromey@redhat.com>
3960 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
3961 (target_goto_bookmark): Add argument.
3962 * target.c (dummy_goto_bookmark): Add 'self' argument.
3963 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
3965 2014-02-19 Tom Tromey <tromey@redhat.com>
3967 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
3968 (target_get_bookmark): Add argument.
3969 * target.c (dummy_get_bookmark): Add 'self' argument.
3970 * record-full.c (record_full_get_bookmark): Add 'self' argument.
3972 2014-02-19 Tom Tromey <tromey@redhat.com>
3974 * target.h (struct target_ops) <to_make_corefile_notes>: Add
3976 (target_make_corefile_notes): Add argument.
3977 * target.c (dummy_make_corefile_notes): Add 'self' argument.
3978 * procfs.c (procfs_make_note_section): Add 'self' argument.
3979 (procfs_make_note_section): Add 'self' argument.
3980 (procfs_make_note_section): Add 'self' argument.
3981 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
3983 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
3984 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
3985 * exec.c (exec_make_note_section): Add 'self' argument.
3986 (exec_make_note_section): Add 'self' argument.
3988 2014-02-19 Tom Tromey <tromey@redhat.com>
3990 * target.h (struct target_ops) <to_find_memory_regions>: Add
3992 (target_find_memory_regions): Add argument.
3993 * target.c (dummy_find_memory_regions): Add 'self' argument.
3994 * procfs.c (proc_find_memory_regions): Add 'self' argument.
3995 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
3996 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
3997 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
3998 * exec. (exec_do_find_memory_regions): New global.
3999 (exec_set_find_memory_regions): Rewrite.
4000 (exec_find_memory_regions): New function.
4001 (init_exec_ops): Use exec_find_memory_regions.
4003 2014-02-19 Tom Tromey <tromey@redhat.com>
4005 * target.h (struct target_ops) <to_supports_non_stop>: Add
4007 * target.c (find_default_supports_non_stop): Add argument.
4008 (target_supports_non_stop): Add argument.
4009 (find_default_supports_non_stop): Add 'self' argument.
4010 * remote.c (remote_supports_non_stop): Add 'self' argument.
4011 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
4013 2014-02-19 Tom Tromey <tromey@redhat.com>
4015 * target.h (struct target_ops) <to_log_command>: Add argument.
4016 (target_log_command): Add argument.
4017 * serial.h (serial_log_command): Add 'self' argument.
4018 * serial.c (serial_log_command): Add 'self' argument.
4020 2014-02-19 Tom Tromey <tromey@redhat.com>
4022 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
4023 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
4025 (target_pid_to_exec_file): Add argument.
4026 * target.c (debug_to_pid_to_exec_file): Add argument.
4027 (update_current_target): Update.
4028 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
4029 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
4030 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
4031 (linux_handle_extended_wait): Update.
4032 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
4033 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
4034 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
4035 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
4037 2014-02-19 Tom Tromey <tromey@redhat.com>
4039 * target.h (struct target_ops) <to_rcmd>: Add argument.
4040 (target_rcmd): Add argument.
4041 * target.c (debug_to_rcmd): Add argument.
4042 (update_current_target, do_monitor_command): Update.
4043 * remote.c (remote_rcmd): Add 'self' argument.
4044 * monitor.c (monitor_rcmd): Add 'self' argument.
4046 2014-02-19 Tom Tromey <tromey@redhat.com>
4048 * windows-nat.c (windows_stop): Add 'self' argument.
4049 * target.h (struct target_ops) <to_stop>: Add argument.
4050 * target.c (target_stop): Add argument.
4051 (debug_to_stop): Add argument.
4052 (update_current_target): Update.
4053 * remote.c (remote_stop): Add 'self' argument.
4054 * remote-sim.c (gdbsim_stop): Add 'self' argument.
4055 (gdbsim_cntrl_c): Update.
4056 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
4057 * procfs.c (procfs_stop): Add 'self' argument.
4058 * nto-procfs.c (procfs_stop): Add 'self' argument.
4059 * monitor.c (monitor_stop): Add 'self' argument.
4060 (monitor_open): Update.
4061 * linux-nat.c (linux_nat_stop): Add argument.
4062 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
4063 * gnu-nat.c (gnu_stop): Add 'self' argument.
4064 * darwin-nat.c (darwin_stop): Add 'self' argument.
4066 2014-02-19 Tom Tromey <tromey@redhat.com>
4068 * target.h (struct target_ops) <to_thread_name>: Add argument.
4069 * target.c (target_thread_name): Add argument.
4070 (update_current_target): Update.
4071 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
4073 2014-02-19 Tom Tromey <tromey@redhat.com>
4075 * target.h (struct target_ops) <to_extra_thread_info>: Add
4077 (target_extra_thread_info): Add argument.
4078 * target.c (update_current_target): Update.
4079 * remote.c (remote_threads_extra_info): Add 'self' argument.
4080 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
4082 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
4083 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
4084 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
4086 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
4088 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
4090 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
4093 2014-02-19 Tom Tromey <tromey@redhat.com>
4095 * target.h (struct target_ops) <to_program_signals>: Add argument.
4096 * target.c (target_program_signals): Add argument.
4097 * remote.c (remote_program_signals): Add 'self' argument.
4099 2014-02-19 Tom Tromey <tromey@redhat.com>
4101 * target.h (struct target_ops) <to_pass_signals>: Add argument.
4102 * target.c (target_pass_signals): Add argument.
4103 * remote.c (remote_pass_signals): Add 'self' argument.
4104 (remote_start_remote): Update.
4105 * procfs.c (procfs_pass_signals): Add 'self' argument.
4106 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
4107 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
4108 (linux_nat_create_inferior, linux_nat_attach): Update.
4110 2014-02-19 Tom Tromey <tromey@redhat.com>
4112 * windows-nat.c (windows_can_run): Add 'self' argument.
4113 * target.h (struct target_ops) <to_can_run>: Add argument.
4114 (target_can_run): Add argument.
4115 * target.c (debug_to_can_run): Add argument.
4116 (update_current_target): Update.
4117 * nto-procfs.c (procfs_can_run): Add 'self' argument.
4118 * inf-child.c (inf_child_can_run): Add 'self' argument.
4119 * go32-nat.c (go32_can_run): Add 'self' argument.
4121 2014-02-19 Tom Tromey <tromey@redhat.com>
4123 * target.h (struct target_ops) <to_has_exited>: Add argument.
4124 (target_has_exited): Add argument.
4125 * target.c (debug_to_has_exited): Add argument.
4126 (update_current_target): Update.
4128 2014-02-19 Tom Tromey <tromey@redhat.com>
4130 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
4132 (target_set_syscall_catchpoint): Add argument.
4133 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
4135 * target.c (update_current_target): Update.
4137 2014-02-19 Tom Tromey <tromey@redhat.com>
4139 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
4141 (target_remove_exec_catchpoint): Add argument.
4142 * target.c (debug_to_remove_exec_catchpoint): Add argument.
4143 (update_current_target): Update.
4144 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
4147 2014-02-19 Tom Tromey <tromey@redhat.com>
4149 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
4151 (target_insert_exec_catchpoint): Add argument.
4152 * target.c (debug_to_insert_exec_catchpoint): Add argument.
4153 (update_current_target): Update.
4154 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
4157 2014-02-19 Tom Tromey <tromey@redhat.com>
4159 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
4161 (target_remove_vfork_catchpoint): Add argument.
4162 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
4163 (update_current_target): Update.
4164 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
4167 2014-02-19 Tom Tromey <tromey@redhat.com>
4169 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
4171 (target_insert_vfork_catchpoint): Add argument.
4172 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
4173 (update_current_target): Update.
4174 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
4177 2014-02-19 Tom Tromey <tromey@redhat.com>
4179 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
4181 (target_remove_fork_catchpoint): Add argument.
4182 * target.c (debug_to_remove_fork_catchpoint): Add argument.
4183 (update_current_target): Update.
4184 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
4187 2014-02-19 Tom Tromey <tromey@redhat.com>
4189 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
4191 (target_insert_fork_catchpoint): Add argument.
4192 * target.c (debug_to_insert_fork_catchpoint): Add argument.
4193 (update_current_target): Update.
4194 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
4197 2014-02-19 Tom Tromey <tromey@redhat.com>
4199 * target.h (struct target_ops) <to_post_startup_inferior>: Add
4201 (target_post_startup_inferior): Add argument.
4202 * target.c (debug_to_post_startup_inferior): Add argument.
4203 (update_current_target): Update.
4204 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
4206 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
4208 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
4210 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
4212 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
4214 (super_post_startup_inferior): Likewise.
4215 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
4217 (super_post_startup_inferior): Likewise.
4218 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
4219 Add 'self' argument.
4220 (super_post_startup_inferior): Likewise.
4222 2014-02-19 Tom Tromey <tromey@redhat.com>
4224 * target.h (struct target_ops) <to_load>: Add argument.
4225 * target.c (target_load): Add argument.
4226 (debug_to_load): Add argument.
4227 (update_current_target): Update.
4228 * remote.c (remote_load): Add 'self' argument.
4229 * remote-sim.c (gdbsim_load): Add 'self' argument.
4230 * remote-mips.c (mips_load): Add 'self' argument.
4231 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
4232 * monitor.c (monitor_load): Add 'self' argument.
4233 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
4235 2014-02-19 Tom Tromey <tromey@redhat.com>
4237 * target.h (struct target_ops) <to_terminal_info>: Add argument.
4238 (target_terminal_info): Add argument.
4239 * target.c (debug_to_terminal_info): Add argument.
4240 (default_terminal_info): Likewise.
4241 * inflow.c (child_terminal_info): Add 'self' argument.
4242 * inferior.h (child_terminal_info): Add 'self' argument.
4243 * go32-nat.c (go32_terminal_info): Add 'self' argument.
4245 2014-02-19 Tom Tromey <tromey@redhat.com>
4247 * target.h (struct target_ops) <to_terminal_save_ours>: Add
4249 (target_terminal_save_ours): Add argument.
4250 * target.c (debug_to_terminal_save_ours): Add argument.
4251 (update_current_target): Update.
4252 * inflow.c (terminal_save_ours): Add 'self' argument.
4253 * inferior.h (terminal_save_ours): Add 'self' argument.
4255 2014-02-19 Tom Tromey <tromey@redhat.com>
4257 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
4258 (target_terminal_ours): Add argument.
4259 * target.c (debug_to_terminal_ours): Add argument.
4260 (update_current_target): Update.
4261 * remote.c (remote_terminal_ours): Add 'self' argument.
4262 (remote_close): Update.
4263 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
4264 * inflow.c (terminal_ours): Add 'self' argument.
4265 * inferior.h (terminal_ours): Add 'self' argument.
4266 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
4268 2014-02-19 Pedro Alves <palves@redhat.com>
4269 Tom Tromey <tromey@redhat.com>
4271 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
4273 (target_terminal_ours_for_output): Add argument.
4274 * target.c (debug_to_terminal_ours_for_output): Add argument.
4275 (update_current_target): Update.
4276 * inflow.c (terminal_ours_for_output): Add 'self' argument.
4277 * inferior.h (terminal_ours_for_output): Add 'self' argument.
4278 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
4280 2014-02-19 Tom Tromey <tromey@redhat.com>
4282 * target.h (struct target_ops) <to_terminal_inferior>: Add
4284 * target.c (target_terminal_inferior): Add argument.
4285 (update_current_target): Update.
4286 * remote.c (remote_terminal_inferior): Add 'self' argument.
4287 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
4288 * inflow.c (terminal_inferior): Add 'self' argument.
4289 * inferior.h (terminal_inferior): Add 'self' argument.
4290 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
4291 (go32_terminal_inferior): Add 'self' argument.
4293 2014-02-19 Tom Tromey <tromey@redhat.com>
4295 * target.h (struct target_ops) <to_terminal_init>: Add argument.
4296 (target_terminal_init): Add argument.
4297 * target.c (debug_to_terminal_init): Add argument.
4298 (update_current_target): Update.
4299 * inflow.c (terminal_init_inferior): Add 'self' argument.
4300 * inferior.h (terminal_init_inferior): Add 'self' argument.
4301 * go32-nat.c (go32_terminal_init): Add 'self' argument.
4302 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
4304 2014-02-19 Tom Tromey <tromey@redhat.com>
4306 * target.h (struct target_ops)
4307 <to_can_accel_watchpoint_condition>: Add argument.
4308 (target_can_accel_watchpoint_condition): Add argument.
4309 * target.c (debug_to_can_accel_watchpoint_condition): Add
4311 (update_current_target): Update.
4312 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
4315 2014-02-19 Tom Tromey <tromey@redhat.com>
4317 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4319 (target_region_ok_for_hw_watchpoint): Add argument.
4320 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
4321 (default_region_ok_for_hw_watchpoint): Add argument.
4322 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
4323 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
4325 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
4327 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
4329 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
4331 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
4333 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
4335 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
4336 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
4338 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
4339 Add 'self' argument.
4341 2014-02-19 Tom Tromey <tromey@redhat.com>
4343 * target.h (struct target_ops) <to_insert_watchpoint>: Add
4345 (target_insert_watchpoint): Add argument.
4346 * target.c (debug_to_insert_watchpoint): Add argument.
4347 (update_current_target): Update.
4348 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
4349 * remote.c (remote_insert_watchpoint): Add 'self' argument.
4350 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
4351 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
4352 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
4353 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
4355 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
4356 (procfs_insert_hw_watchpoint): Add 'self' argument.
4357 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
4359 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
4361 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
4363 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
4364 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
4366 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
4369 2014-02-19 Tom Tromey <tromey@redhat.com>
4371 * target.h (struct target_ops) <to_remove_watchpoint>: Add
4373 (target_remove_watchpoint): Add argument.
4374 * target.c (debug_to_remove_watchpoint): Add argument.
4375 (update_current_target): Update.
4376 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
4377 * remote.c (remote_remove_watchpoint): Add 'self' argument.
4378 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
4379 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
4380 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
4381 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
4383 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
4384 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
4386 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
4388 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
4390 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
4391 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
4393 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
4396 2014-02-19 Tom Tromey <tromey@redhat.com>
4398 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
4400 (target_remove_hw_breakpoint): Add argument.
4401 * target.c (debug_to_remove_hw_breakpoint): Add argument.
4402 (update_current_target): Update.
4403 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
4404 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
4406 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
4407 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
4409 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
4412 2014-02-19 Tom Tromey <tromey@redhat.com>
4414 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
4416 (target_insert_hw_breakpoint): Add argument.
4417 * target.c (debug_to_insert_hw_breakpoint): Add argument.
4418 (update_current_target): Update.
4419 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
4420 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
4422 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
4423 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
4424 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
4426 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
4429 2014-02-19 Tom Tromey <tromey@redhat.com>
4431 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
4433 (target_can_use_hardware_watchpoint): Add argument.
4434 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
4435 (update_current_target): Update.
4436 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
4438 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
4440 * remote.c (remote_check_watch_resources): Add 'self' argument.
4441 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
4442 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
4444 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
4445 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
4447 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
4449 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
4451 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
4453 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
4455 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
4457 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
4458 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
4460 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
4463 2014-02-19 Tom Tromey <tromey@redhat.com>
4465 * target.h (struct target_ops) <to_post_attach>: Add argument.
4466 (target_post_attach): Add argument.
4467 * target.c (debug_to_post_attach): Add argument.
4468 (update_current_target): Update.
4469 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
4470 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
4471 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
4472 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
4473 * inf-child.c (inf_child_post_attach): Add 'self' argument.
4475 2014-02-19 Tom Tromey <tromey@redhat.com>
4477 * windows-nat.c (windows_close): Add 'self' argument.
4478 * tracepoint.c (tfile_close): Add 'self' argument.
4479 * target.h (struct target_ops) <to_close>: Add argument.
4480 * target.c (target_close): Add argument.
4481 (update_current_target): Update.
4482 * remote.c (remote_close): Add 'self' argument.
4483 * remote-sim.c (gdbsim_close): Add 'self' argument.
4484 * remote-mips.c (mips_close): Add 'self' argument.
4485 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
4486 * record-full.c (record_full_close): Add 'self' argument.
4487 * record-btrace.c (record_btrace_close): Add 'self' argument.
4488 * monitor.h (monitor_close): Add 'self' argument.
4489 * monitor.c (monitor_close): Add 'self' argument.
4490 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
4491 * linux-nat.c (linux_nat_close): Add argument.
4492 * go32-nat.c (go32_close): Add 'self' argument.
4493 * exec.c (exec_close_1): Add 'self' argument.
4494 * ctf.c (ctf_close): Add 'self' argument.
4495 * corelow.c (core_close): Add 'self' argument.
4496 (core_close_cleanup): Update.
4497 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
4498 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
4500 2014-02-19 Tom Tromey <tromey@redhat.com>
4502 * remote.c (remote_load): New function.
4503 (init_remote_ops): Use it.
4505 2014-02-19 Tom Tromey <tromey@redhat.com>
4507 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
4509 * common/linux-btrace.h (linux_supports_btrace): Update.
4510 * remote.c (remote_supports_btrace): Add "self" argument.
4511 * target-delegates.c: Rebuild.
4512 * target.c (target_supports_btrace): Remove.
4513 * target.h (struct target_ops) <to_supports_btrace>: Add
4514 target_ops argument.
4515 (target_supports_btrace): New define.
4517 2014-02-19 Tom Tromey <tromey@redhat.com>
4519 * record-full.c (record_full_beneath_to_resume_ops)
4520 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
4521 (record_full_beneath_to_wait)
4522 (record_full_beneath_to_store_registers_ops)
4523 (record_full_beneath_to_store_registers)
4524 (record_full_beneath_to_xfer_partial_ops)
4525 (record_full_beneath_to_xfer_partial)
4526 (record_full_beneath_to_insert_breakpoint_ops)
4527 (record_full_beneath_to_insert_breakpoint)
4528 (record_full_beneath_to_remove_breakpoint_ops)
4529 (record_full_beneath_to_remove_breakpoint)
4530 (record_full_beneath_to_stopped_by_watchpoint)
4531 (record_full_beneath_to_stopped_data_address)
4532 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
4533 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
4534 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
4535 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
4536 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
4537 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
4538 (tmp_to_stopped_data_address, tmp_to_async): Remove.
4539 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
4540 (record_full_resume, record_full_wait_1)
4541 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
4542 (record_full_store_registers, record_full_xfer_partial)
4543 (record_full_insert_breakpoint, record_full_remove_breakpoint)
4544 (record_full_async, record_full_core_xfer_partial): Use target
4546 * target-delegates.c: Rebuild.
4547 * target.c (current_xfer_partial): Remove.
4548 (update_current_target): Do not INHERIT or de_fault
4549 to_insert_breakpoint, to_remove_breakpoint,
4550 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
4551 to_is_async_p, to_async. Do not set to_xfer_partial field.
4552 (default_xfer_partial): Simplify.
4553 (current_xfer_partial): Remove.
4554 (target_wait, target_resume): Simplify.
4555 (find_default_can_async_p, find_default_is_async_p): Update.
4556 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
4557 to_xfer_partial, to_stopped_by_watchpoint,
4558 to_stopped_data_address.
4559 (target_store_registers): Simplify.
4560 (forward_target_remove_breakpoint)
4561 (forward_target_insert_breakpoint): Remove.
4562 (target_remove_breakpoint, target_insert_breakpoint)
4563 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
4564 * target.h (struct target_ops) <to_resume, to_wait,
4565 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
4566 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
4567 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
4569 (forward_target_remove_breakpoint)
4570 (forward_target_insert_breakpoint): Remove.
4571 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
4573 (record_btrace_insert_breakpoint): Delegate directly.
4575 2014-02-19 Tom Tromey <tromey@redhat.com>
4578 * target-delegates.c: New file.
4579 * target.c: Include target-delegates.c.
4580 (init_dummy_target): Call install_dummy_methods.
4581 (complete_target_initialization): Call install_delegators.
4582 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
4583 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
4584 * make-target-delegates: New file.
4586 2014-02-19 Tom Tromey <tromey@redhat.com>
4588 * record.c (find_record_target): Use find_target_at.
4589 * target.c (find_target_at): New function.
4590 * target.h (find_target_at): Declare.
4592 2014-02-19 Tom Tromey <tromey@redhat.com>
4594 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
4596 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
4598 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
4599 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
4601 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
4603 * linux-nat.c (save_sigtrap): Update.
4604 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
4605 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
4606 (linux_nat_close): Update.
4607 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
4609 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
4611 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
4612 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
4613 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
4614 (tmp_to_async): Add 'ops' argument.
4615 (record_full_stopped_by_watchpoint, record_full_async)
4616 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
4618 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
4619 (m32r_stopped_by_watchpoint): Add 'ops' argument.
4620 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
4621 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
4622 (remote_is_async_p, remote_async): Add 'ops' argument.
4623 (remote_stopped_data_address): Update.
4624 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
4625 * target.c (update_current_target)
4626 (find_default_can_async_p, find_default_is_async_p): Update.
4627 (init_dummy_target): Update.
4628 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
4629 * target.h (struct target_ops) <to_stopped_by_watchpoint,
4630 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
4631 (target_can_async_p, target_is_async_p, target_async)
4632 (target_stopped_by_watchpoint): Update.
4634 2014-02-19 Yao Qi <yao@codesourcery.com>
4637 * gdbarch.sh: Remove startup_gdbarch.
4638 * gdbarch.c: Regenerated.
4639 * gdbarch.h: Likewise.
4641 2014-02-17 Kevin Buettner <kevinb@redhat.com>
4643 * rl78-tdep.c (rl78_g10_register_name): New function.
4644 (rl78_return_value): Add g10 support.
4645 (rl78_gdbarch_init): Register rl78_g10_register_name for the
4648 2014-02-17 Doug Evans <xdje42@gmail.com>
4650 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
4651 (SUBDIR_GUILE_SRCS): Ditto.
4652 (scm-gsmob.o): Ditto.
4654 2014-02-17 Yao Qi <yao@codesourcery.com>
4656 * gnu-nat.c (ILL_RPC): Declare defined function.
4658 2014-02-17 Yao Qi <yao@codesourcery.com>
4660 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
4661 mach_msg_type_number_t.
4662 (gnu_write_inferior): Likewise.
4664 2014-02-17 Yao Qi <yao@codesourcery.com>
4666 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
4668 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
4669 (inf_validate_procs, inf_signal): Likewise.
4670 (S_exception_raise_request): Likewise.
4671 (do_mach_notify_dead_name): Likewise.
4672 (steal_exc_port): Likewise.
4673 (gnu_read_inferior): Change 'copy_count''s type to
4674 mach_msg_type_number_t.
4675 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
4678 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
4680 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
4681 flag. Adjust all users; in particular...
4682 (gnu_wait): ..., don't decrement its value in here...
4683 (gnu_create_inferior): ..., and instead set the flag in here,
4684 around the startup_inferior call, and call that one with
4685 START_INFERIOR_TRAPS_EXPECTED.
4687 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
4688 (ILL_RPC): ... new macro.
4689 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
4690 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
4691 (do_mach_notify_send_once, S_proc_setmsgport_reply)
4692 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
4693 functions with ILL_RPC macro.
4694 (S_proc_pid2task_reply, S_proc_task2pid_reply)
4695 (S_proc_task2proc_reply, S_proc_proc2task_reply)
4696 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
4697 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
4698 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
4699 (S_proc_getlogin_reply, S_proc_getsid_reply)
4700 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
4701 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
4702 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
4703 (S_proc_getnports_reply, S_proc_is_important_reply)
4704 (S_proc_get_code_reply): New stub functions, generated with
4707 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
4708 collected the type check structures.
4710 * reply_mig_hack.awk: Don't expect to see the auto keyword.
4712 2014-02-14 Doug Evans <dje@google.com>
4714 * target.c (target_write_partial): Fix result type.
4716 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
4718 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
4719 the proper offsets to access fpregset_t.
4721 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
4723 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
4724 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
4725 * h8300-tdep.c (setmachinelist): Remove global.
4726 * hppa-tdep.c (hppa_sigtramp): Remove global.
4727 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
4728 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
4729 * ravenscar-thread.c (update_target_observer): Remove global.
4730 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
4732 2014-02-12 Tom Tromey <tromey@redhat.com>
4734 * common/rsp-low.c: Update comments.
4735 * common/rsp-low.h: Update comments.
4737 2014-02-12 Tom Tromey <tromey@redhat.com>
4739 * common/rsp-low.c (convert_ascii_to_int): Remove.
4740 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
4742 2014-02-12 Tom Tromey <tromey@redhat.com>
4744 * common/rsp-low.h (unhexify): Don't declare.
4745 * common/rsp-low.c (unhexify): Remove.
4747 2014-02-12 Tom Tromey <tromey@redhat.com>
4749 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
4750 * common/rsp-low.c (convert_int_to_ascii): Remove.
4752 2014-02-12 Tom Tromey <tromey@redhat.com>
4754 * common/rsp-low.h (hexify): Don't declare.
4755 * common/rsp-low.c (hexify): Remove.
4757 2014-02-12 Tom Tromey <tromey@redhat.com>
4759 * common/rsp-low.c (hexify): Never take strlen of argument.
4761 2014-02-12 Tom Tromey <tromey@redhat.com>
4763 * common/rsp-low.c (bin2hex): Never take strlen of argument.
4764 * remote.c (extended_remote_run, remote_rcmd)
4765 (remote_download_trace_state_variable, remote_save_trace_data)
4766 (remote_set_trace_notes): Update.
4767 * tracepoint.c (encode_source_string, tfile_write_status)
4768 (tfile_write_uploaded_tsv): Update.
4770 2014-02-12 Tom Tromey <tromey@redhat.com>
4772 * tracepoint.c: Include rsp-low.h.
4773 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
4774 * remote.c: Include rsp-low.h.
4775 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
4776 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
4777 (remote_unescape_input): Move to common/rsp-low.c.
4778 * common/rsp-low.h: New file.
4779 * common/rsp-low.c: New file.
4780 * Makefile.in (SFILES): Add common/rsp-low.c.
4781 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
4782 (COMMON_OBS): Add rsp-low.o.
4783 (rsp-low.o): New target.
4785 2014-02-12 Tom Tromey <tromey@redhat.com>
4787 * utils.h: Include print-utils.h.
4788 (host_address_to_string, plongest, pulongest, phex, phex_nz)
4789 (int_string, core_addr_to_string, core_addr_to_string_nz)
4790 (hex_string, hex_string_custom): Don't declare.
4791 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
4792 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
4793 (hex_string_custom, int_string, core_addr_to_string)
4794 (core_addr_to_string_nz, host_address_to_string): Move to
4795 common/print-utils.c.
4796 * common/print-utils.h: New file.
4797 * common/print-utils.c: New file
4798 * Makefile.in (SFILES): Add common/print-utils.c.
4799 (HFILES_NO_SRCDIR): Add common/print-utils.h.
4800 (COMMON_OBS): Add print-utils.o.
4801 (print-utils.o): New target.
4803 2014-02-12 Tom Tromey <tromey@redhat.com>
4805 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
4807 2014-02-12 Mark Kettenis <kettenis@gnu.org>
4809 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
4811 2014-02-12 Mark Kettenis <kettenis@gnu.org>
4813 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
4814 if a PT_IO ptrace request returns sucessfully but indicates that 0
4815 bytes were transferred.
4817 2014-02-12 Pedro Alves <palves@redhat.com>
4818 Kevin Buettner <kevinb@redhat.com>
4820 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
4821 TYPE_INSTANCE_FLAG_CODE_SPACE.
4823 2014-02-12 Pedro Alves <palves@redhat.com>
4825 * h8300-tdep.c (pseudo_from_raw_register)
4826 (raw_from_pseudo_register): New functions.
4827 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
4830 2014-02-12 Pedro Alves <palves@redhat.com>
4832 * h8300-tdep.c (h8300_register_sim_regno): New function.
4833 (h8300_gdbarch_init): Install h8300_register_sim_regno as
4834 gdbarch_register_sim_regno hook.
4836 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
4838 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
4840 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
4842 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
4844 2014-02-12 Mark Kettenis <kettenis@gnu.org>
4846 * obsd-tdep.h (obsd_init_abi): New prototype.
4847 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
4848 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
4849 (obsd_init_abi): New functions.
4850 * i386obsd-tdep.c: Include "obsd-tdep.h".
4851 (i386obsd_init_abi): Call obsd_init_abi.
4852 * amd64obsd-tdep.c: Include "obsd-tdep.h".
4853 (amd64obsd_init_abi): Call obsd_init_abi.
4854 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
4855 obsd-tdep.c to gdb_target_obs.
4857 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
4859 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
4860 double float arguments to 16-byte in the argument slots.
4862 2014-02-11 Doug Evans <xdje42@gmail.com>
4864 * configure.ac: Don't crash if pkg-config is not found and guile
4865 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
4867 * configure: Regenerate.
4869 2014-02-11 Yao Qi <yao@codesourcery.com>
4871 * aix-thread.c (aix_thread_xfer_partial): Update comments.
4872 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
4873 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
4874 * gnu-nat.c (gnu_xfer_memory): Likewise.
4875 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
4876 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
4877 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
4878 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
4880 2014-02-11 Yao Qi <yao@codesourcery.com>
4882 * target.h (enum target_xfer_error): Rename to ...
4883 (enum target_xfer_status): ... it. New. All users updated.
4884 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
4886 (TARGET_XFER_STATUS_ERROR_P): New macro.
4887 (target_xfer_error_to_string): Remove declaration.
4888 (target_xfer_status_to_string): Declare.
4889 (target_xfer_partial_ftype): Adjust it.
4890 (struct target_ops) <to_xfer_partial>: Return
4891 target_xfer_status. Add argument xfered_len. Update
4893 * target.c (target_xfer_error_to_string): Rename to ...
4894 (target_xfer_status_to_string): ... it. New. All callers
4896 (target_read_live_memory): Likewise. Call target_xfer_partial
4897 instead of target_read.
4898 (memory_xfer_live_readonly_partial): Return
4899 target_xfer_status. Add argument xfered_len.
4900 (raw_memory_xfer_partial): Likewise.
4901 (memory_xfer_partial_1): Likewise.
4902 (memory_xfer_partial): Likewise.
4903 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
4904 properly. Update debug message.
4905 (default_xfer_partial, current_xfer_partial): Likewise.
4906 (target_write_partial): Likewise.
4907 (target_read_partial): Likewise. All callers updated.
4908 (read_whatever_is_readable): Likewise.
4909 (target_write_with_progress): Likewise.
4910 (target_read_alloc_1): Likewise.
4912 * aix-thread.c (aix_thread_xfer_partial): Likewise.
4913 * auxv.c (procfs_xfer_auxv): Likewise.
4914 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
4915 * bfd-target.c (target_bfd_xfer_partial): Likewise.
4916 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
4917 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
4918 * corefile.c (read_memory): Adjust.
4919 * corelow.c (core_xfer_partial): Likewise.
4920 * ctf.c (ctf_xfer_partial): Likewise.
4921 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
4923 (darwin_xfer_partial): Likewise.
4924 * exec.c (section_table_xfer_memory_partial): Likewise. All
4926 (exec_xfer_partial): Likewise.
4927 * exec.h (section_table_xfer_memory_partial): Update
4929 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
4931 (gnu_xfer_partial): Likewise.
4932 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
4933 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
4934 (ia64_hpux_xfer_solib_got): Likewise.
4935 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
4936 type of 'partial_len' to ULONGEST.
4937 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
4938 * linux-nat.c (linux_xfer_siginfo ): Likewise.
4939 (linux_nat_xfer_partial): Likewise.
4940 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
4941 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
4942 * monitor.c (monitor_xfer_memory): Likewise.
4943 (monitor_xfer_partial): Likewise.
4944 * procfs.c (procfs_xfer_partial): Likewise.
4945 * record-btrace.c (record_btrace_xfer_partial): Likewise.
4946 * record-full.c (record_full_xfer_partial): Likewise.
4947 (record_full_core_xfer_partial): Likewise.
4948 * remote-sim.c (gdbsim_xfer_memory): Likewise.
4949 (gdbsim_xfer_partial): Likewise.
4950 * remote.c (remote_write_bytes_aux): Likewise. All callers
4952 (remote_write_bytes, remote_read_bytes): Likewise. All
4954 (remote_flash_erase): Likewise. All callers updated.
4955 (remote_write_qxfer): Likewise. All callers updated.
4956 (remote_read_qxfer): Likewise. All callers updated.
4957 (remote_xfer_partial): Likewise.
4958 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
4959 (rs6000_xfer_shared_libraries): Likewise.
4960 * sol-thread.c (sol_thread_xfer_partial): Likewise.
4961 (sol_thread_xfer_partial): Likewise.
4962 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
4963 (sparc_xfer_partial): Likewise.
4964 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
4966 (spu_xfer_partial): Likewise.
4967 * spu-multiarch.c (spu_xfer_partial): Likewise.
4968 * tracepoint.c (tfile_xfer_partial): Likewise.
4969 * windows-nat.c (windows_xfer_memory): Likewise.
4970 (windows_xfer_shared_libraries): Likewise.
4971 (windows_xfer_partial): Likewise.
4972 * valprint.c: Replace 'target_xfer_error' with
4973 'target_xfer_status' in comments.
4975 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
4977 Checked in by Joel Brobecker <brobecker@adacore.com>.
4978 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
4980 2014-02-11 Joel Brobecker <brobecker@adacore.com>
4982 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
4983 function parameters.
4985 2014-02-10 Will Newton <will.newton@linaro.org>
4987 * elfread.c (elf_rel_plt_read): Look for a .got section if
4988 looking up .got.plt fails.
4989 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
4990 on address passed to elf_gnu_ifunc_record_cache.
4991 (elf_gnu_ifunc_resolve_addr): Likewise.
4992 (elf_gnu_ifunc_resolver_return_stop): Likewise.
4994 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
4996 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
4997 (X_RETTURN): New macro.
4998 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
5000 * sparc64-tdep.c (sparc64_init_abi): Hook
5001 sparc_in_function_epilogue_p.
5003 2014-02-10 Gary Benson <gbenson@redhat.com>
5005 * symfile-debug.c (debug_qf_expand_symtabs_matching):
5006 Rename name_matcher to symbol_matcher.
5008 2014-02-10 Gary Benson <gbenson@redhat.com>
5010 * symfile-debug.c (debug_qf_expand_symtabs_matching):
5011 Use expand_symtabs_file_matcher_ftype and
5012 expand_symtabs_symbol_matcher_ftype.
5014 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5016 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
5017 (struct ada_symbol_cache): New.
5018 (ada_free_symbol_cache): Forward declare.
5019 (struct ada_pspace_data): New.
5020 (ada_pspace_data_handle): New static global.
5021 (get_ada_pspace_data, ada_pspace_data_cleanup)
5022 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
5023 (cache_space, cache): Delete, now folded inside struct
5025 (ada_get_symbol_cache): New function.
5026 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
5028 (_initialize_ada_language): Remove initialization of cache_space.
5029 Move call to observer_attach_inferior_exit up, grouping it
5030 with the other observer registrations inside this function.
5031 Rename command to be more general. Add call to
5032 register_program_space_data_with_cleanup.
5034 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5036 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
5037 ada_new_objfile_observer.
5038 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
5039 (_initialize_tasks): Update uses of ada_new_objfile_observer
5040 and ada_tasks_normal_stop_observer.
5042 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5044 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
5045 returned by the 'Length attribute to integer.
5047 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5049 * ada-lang.c (_initialize_ada_language): Initialize
5050 cache_space obstack.
5052 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5054 * ada-lang.c (HASH_SIZE): New macro.
5055 (struct cache_entry): New type.
5056 (cache_space, cache): New static globals.
5057 (ada_clear_symbol_cache, find_entry): New functions.
5058 (lookup_cached_symbol, cache_symbol): Implement.
5059 (ada_new_objfile_observer, ada_free_objfile_observer): New.
5060 (_initialize_ada_language): Attach ada_new_objfile_observer
5061 and ada_free_objfile_observer.
5063 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5065 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
5066 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
5067 struct block * parameter.
5068 (ada_lookup_symbol_list_worker): Constify local variable "block".
5069 Remove cast which is no longer necessary.
5071 2014-02-10 Doug Evans <xdje42@gmail.com>
5073 Add Guile as an extension language.
5074 * NEWS: Mention Guile scripting.
5075 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
5076 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
5077 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
5078 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
5079 (CLIBS): Add GUILE_LIBS.
5080 (install-guile): New rule.
5081 (guile.o): New rule.
5082 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
5083 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
5084 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
5085 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
5086 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
5087 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
5088 (scm-type.o, scm-utils.o, scm-value.o): New rules.
5089 * configure.ac: New option --with-guile.
5090 * configure: Regenerate.
5091 * config.in: Regenerate.
5092 * auto-load.c: Remove #include "python/python.h". Add #include
5093 "gdb/section-scripts.h".
5094 (source_section_scripts): Handle Guile scripts.
5095 (_initialize_auto_load): Add name of Guile objfile script to
5096 scripts-directory help text.
5097 * breakpoint.c (condition_command): Tweak comment to include Scheme.
5098 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
5099 (struct breakpoint): New member scm_bp_object.
5100 * defs.h (enum command_control_type): New value guile_control.
5101 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
5103 (show_user): Update comment.
5104 (_initialize_cli_cmds): Update help text for "show user". Update help
5105 text for max-user-call-depth.
5106 * cli/cli-script.c: Remove #include "python/python.h". Add #include
5108 (multi_line_command_p): Add guile_control.
5109 (print_command_lines): Handle guile_control.
5110 (execute_control_command, recurse_read_control_structure): Ditto.
5111 (process_next_line): Recognize "guile" commands.
5112 * disasm.c (gdb_disassemble_info): Make non-static.
5113 * disasm.h: #include "dis-asm.h".
5114 (struct gdbarch): Add forward decl.
5115 (gdb_disassemble_info): Declare.
5116 * extension.c: #include "guile/guile.h".
5117 (extension_languages): Add guile.
5118 (get_ext_lang_defn): Handle EXT_LANG_GDB.
5119 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
5120 * gdbtypes.c (get_unsigned_type_max): New function.
5121 (get_signed_type_minmax): New function.
5122 * gdbtypes.h (get_unsigned_type_max): Declare.
5123 (get_signed_type_minmax): Declare.
5124 * guile/README: New file.
5125 * guile/guile-internal.h: New file.
5126 * guile/guile.c: New file.
5127 * guile/guile.h: New file.
5128 * guile/scm-arch.c: New file.
5129 * guile/scm-auto-load.c: New file.
5130 * guile/scm-block.c: New file.
5131 * guile/scm-breakpoint.c: New file.
5132 * guile/scm-disasm.c: New file.
5133 * guile/scm-exception.c: New file.
5134 * guile/scm-frame.c: New file.
5135 * guile/scm-gsmob.c: New file.
5136 * guile/scm-iterator.c: New file.
5137 * guile/scm-lazy-string.c: New file.
5138 * guile/scm-math.c: New file.
5139 * guile/scm-objfile.c: New file.
5140 * guile/scm-ports.c: New file.
5141 * guile/scm-pretty-print.c: New file.
5142 * guile/scm-safe-call.c: New file.
5143 * guile/scm-string.c: New file.
5144 * guile/scm-symbol.c: New file.
5145 * guile/scm-symtab.c: New file.
5146 * guile/scm-type.c: New file.
5147 * guile/scm-utils.c: New file.
5148 * guile/scm-value.c: New file.
5149 * guile/lib/gdb.scm: New file.
5150 * guile/lib/gdb/boot.scm: New file.
5151 * guile/lib/gdb/experimental.scm: New file.
5152 * guile/lib/gdb/init.scm: New file.
5153 * guile/lib/gdb/iterator.scm: New file.
5154 * guile/lib/gdb/printing.scm: New file.
5155 * guile/lib/gdb/types.scm: New file.
5156 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
5157 (VPATH): Add $(GUILE_SRCDIR).
5158 (GUILE_DIR): New variable.
5159 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
5160 (all): Add stamp-guile dependency.
5161 (stamp-guile): New rule.
5162 (clean-guile, install-guile, uninstall-guile): New rules.
5163 (install-only): Add install-guile dependency.
5164 (uninstall): Add uninstall-guile dependency.
5165 (clean): Add clean-guile dependency.
5167 2014-02-09 Doug Evans <xdje42@gmail.com>
5169 Revert this patch (which I approved, mea culpa).
5171 2014-02-08 Mark Kettenis <kettenis@gnu.org>
5173 * Makefile.in (all-lib): Remove.
5174 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
5176 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5178 Fix Python stack corruption.
5179 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
5182 2014-02-08 Mark Kettenis <kettenis@gnu.org>
5184 * Makefile.in (all-lib): Remove.
5185 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
5187 2014-02-07 Doug Evans <dje@google.com>
5189 * extension-priv.h (extension_language_script_ops): Add comment.
5190 (extension_language_ops): Add comment.
5191 (active_ext_lang_state): Fix typo in comment.
5193 2014-02-07 Pedro Alves <palves@redhat.com>
5195 PR breakpoints/16292
5196 * infrun.c (handle_signal_stop) <signal arrives while stepping
5197 over a breakpoint>: Switch back to the stepping thread.
5199 2014-02-07 Yao Qi <yao@codesourcery.com>
5201 * target.c (target_xfer_partial): Return zero if LEN is zero.
5203 2014-02-07 Yao Qi <yao@codesourcery.com>
5205 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
5206 (ld_so_xfer_auxv): Likewise.
5207 * bfd-target.c (target_bfd_xfer_partial): Likewise.
5208 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
5209 * corelow.c (core_xfer_partial): Likewise.
5210 * ctf.c (ctf_xfer_partial): Likewise.
5211 * darwin-nat.c (darwin_read_dyld_info): Likewise.
5212 (darwin_xfer_partial): Likewise.
5213 * exec.c (exec_xfer_partial): Likewise.
5214 * gnu-nat.c (gnu_xfer_partial): Likewise.
5215 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
5216 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
5217 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
5218 * linux-nat.c (linux_xfer_siginfo): Likewise.
5219 (linux_proc_xfer_spu): Likewise.
5220 * procfs.c (procfs_xfer_partial): Likewise.
5221 * record-full.c (record_full_xfer_partial): Likewise.
5222 (record_full_core_xfer_partial): Likewise.
5223 * remote-sim.c (gdbsim_xfer_partial): Likewise.
5224 * remote.c (remote_write_qxfer): Likewise.
5225 (remote_write_qxfer, remote_read_qxfer): Likewise.
5226 (remote_xfer_partial): Likewise.
5227 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5228 (rs6000_xfer_shared_libraries): Likewise.
5229 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5230 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
5231 (spu_xfer_partial): Likewise.
5232 * target.c (memory_xfer_partial_1): Likewise.
5233 * tracepoint.c (tfile_xfer_partial): Likewise.
5234 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
5235 (windows_xfer_partial): Likewise.
5237 2014-02-07 Yao Qi <yao@codesourcery.com>
5239 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
5241 (core_xfer_shared_libraries_aix): Likewise.
5242 * gdbarch.c, gdbarch.h: Regenerated.
5243 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
5244 ULONGEST. Change 'len_avail' type to ULONGEST.
5245 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
5246 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
5248 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
5250 2014-02-07 Yao Qi <yao@codesourcery.com>
5252 * corefile.c (memory_error): Get 'exception' from ERR and pass
5253 'exception' to throw_error.
5255 2014-02-06 Doug Evans <xdje42@gmail.com>
5257 * configure.ac (libpython checking): Remove all but python.o from
5258 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
5259 * configure: Regenerate.
5261 * Makefile.in (SFILES): Add extension.c.
5262 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
5263 (COMMON_OBS): Add extension.o.
5264 * extension.h: New file.
5265 * extension-priv.h: New file.
5266 * extension.c: New file.
5268 * python/python-internal.h: #include "extension.h".
5269 (gdbpy_auto_load_enabled): Declare.
5270 (gdbpy_apply_val_pretty_printer): Declare.
5271 (gdbpy_apply_frame_filter): Declare.
5272 (gdbpy_preserve_values): Declare.
5273 (gdbpy_breakpoint_cond_says_stop): Declare.
5274 (gdbpy_breakpoint_has_cond): Declare.
5275 (void source_python_script_for_objfile): Delete.
5276 * python/python.c: #include "extension-priv.h".
5277 Delete inclusion of "observer.h".
5278 (extension_language_python): Moved here and renamed from
5279 script_language_python in py-auto-load.c.
5280 Redefined to be of type extension_language_defn.
5281 (python_extension_script_ops): New global.
5282 (python_extension_ops): New global.
5283 (struct python_env): New member previous_active.
5284 (restore_python_env): Call restore_active_ext_lang.
5285 (ensure_python_env): Call set_active_ext_lang.
5286 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
5288 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
5290 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
5292 (gdbpy_eval_from_control_command): Renamed from
5293 eval_python_from_control_command, made static. New arg extlang.
5294 (gdbpy_source_script) Renamed from source_python_script, made static.
5296 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
5297 result to int. New arg extlang.
5298 (gdbpy_source_objfile_script): Renamed from
5299 source_python_script_for_objfile, made static. New arg extlang.
5300 (gdbpy_start_type_printers): Renamed from start_type_printers, made
5301 static. New args extlang, extlang_printers. Change result type to
5303 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
5304 static. New arg extlang. Rename arg printers to extlang_printers
5305 and change type to ext_lang_type_printers *.
5306 (gdbpy_free_type_printers): Renamed from free_type_printers, made
5307 static. Replace argument arg with extlang, extlang_printers.
5308 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
5309 (!HAVE_PYTHON, source_python_script): Delete.
5310 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
5311 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
5312 (!HAVE_PYTHON, start_type_printers): Delete.
5313 (!HAVE_PYTHON, apply_type_printers): Delete.
5314 (!HAVE_PYTHON, free_type_printers): Delete.
5315 (_initialize_python): Delete call to observer_attach_before_prompt.
5316 (finalize_python): Set/restore active extension language.
5317 (gdbpy_finish_initialization) Renamed from
5318 finish_python_initialization, made static. New arg extlang.
5319 (gdbpy_initialized): New function.
5320 * python/python.h: #include "extension.h". Delete #include
5321 "value.h", "mi/mi-cmds.h".
5322 (extension_language_python): Declare.
5323 (GDBPY_AUTO_FILE_NAME): Delete.
5324 (enum py_bt_status): Moved to extension.h and renamed to
5326 (enum frame_filter_flags): Moved to extension.h.
5327 (enum py_frame_args): Moved to extension.h and renamed to
5328 ext_lang_frame_args.
5329 (finish_python_initialization): Delete.
5330 (eval_python_from_control_command): Delete.
5331 (source_python_script): Delete.
5332 (apply_val_pretty_printer): Delete.
5333 (apply_frame_filter): Delete.
5334 (preserve_python_values): Delete.
5335 (gdbpy_script_language_defn): Delete.
5336 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
5337 (start_type_printers, apply_type_printers, free_type_printers): Delete.
5339 * auto-load.c: #include "extension.h".
5340 (GDB_AUTO_FILE_NAME): Delete.
5341 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
5342 (script_language_gdb): Delete, moved to extension.c and renamed to
5343 extension_language_gdb.
5344 (source_gdb_script_for_objfile): Delete.
5345 (auto_load_pspace_info): New member unsupported_script_warning_printed.
5346 (loaded_script): Change type of language member to
5347 struct extension_language_defn *.
5348 (init_loaded_scripts_info): Initialize
5349 unsupported_script_warning_printed.
5350 (maybe_add_script): Make static. Change type of language arg to
5351 struct extension_language_defn *.
5352 (clear_section_scripts): Reset unsupported_script_warning_printed.
5353 (auto_load_objfile_script_1): Rewrite to use extension language API.
5354 (auto_load_objfile_script): Make public. Remove support-compiled-in
5355 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
5356 (source_section_scripts): Rewrite to use extension language API.
5357 (load_auto_scripts_for_objfile): Rewrite to use
5358 auto_load_scripts_for_objfile.
5359 (collect_matching_scripts_data): Change type of language member to
5360 struct extension_language_defn *.
5361 (auto_load_info_scripts): Change type of language arg to
5362 struct extension_language_defn *.
5363 (unsupported_script_warning_print): New function.
5364 (script_not_found_warning_print): Make static.
5365 (_initialize_auto_load): Rewrite construction of scripts-directory
5367 * auto-load.h (struct objfile): Add forward decl.
5368 (struct script_language): Delete.
5369 (struct auto_load_pspace_info): Add forward decl.
5370 (struct extension_language_defn): Add forward decl.
5371 (maybe_add_script): Delete.
5372 (auto_load_objfile_script): Declare.
5373 (script_not_found_warning_print): Delete.
5374 (auto_load_info_scripts): Update prototype.
5375 (auto_load_gdb_scripts_enabled): Declare.
5376 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
5377 auto_load_python_scripts_enabled and made public.
5378 (script_language_python): Delete, moved to python.c.
5379 (gdbpy_script_language_defn): Delete.
5380 (info_auto_load_python_scripts): Update to use
5381 extension_language_python.
5383 * breakpoint.c (condition_command): Replace call to
5384 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
5385 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
5386 with call to breakpoint_ext_lang_cond_says_stop.
5387 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
5388 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
5389 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
5390 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
5392 (local_setattro): Print name of extension language with existing
5395 * valprint.c (val_print, value_print): Update to call
5396 apply_ext_lang_val_pretty_printer.
5397 * cp-valprint.c (cp_print_value): Update call to
5398 apply_ext_lang_val_pretty_printer.
5399 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
5400 (gdbpy_apply_val_pretty_printer): Renamed from
5401 apply_val_pretty_printer. New arg extlang.
5402 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
5404 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
5405 extension language API.
5406 * cli/cli-script.c (execute_control_command): Update to call
5407 eval_ext_lang_from_control_command.
5409 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
5410 enum ext_lang_bt_status values. Update call to
5411 apply_ext_lang_frame_filter.
5412 (mi_cmd_stack_list_locals): Ditto.
5413 (mi_cmd_stack_list_args): Ditto.
5414 (mi_cmd_stack_list_variables): Ditto.
5415 * mi/mi-main.c: Delete #include "python/python-internal.h".
5416 Add #include "extension.h".
5417 (mi_cmd_list_features): Replace reference to python internal variable
5418 gdb_python_initialized with call to ext_lang_initialized_p.
5420 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
5421 Update to use enum ext_lang_frame_args. Update to call
5422 apply_ext_lang_frame_filter.
5423 * python/py-framefilter.c (extract_sym): Update to use enum
5425 (extract_value, py_print_type, py_print_value): Ditto.
5426 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
5427 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
5428 (py_print_frame): Ditto.
5429 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
5430 New arg extlang. Update to use enum ext_lang_bt_status.
5432 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
5433 finish_python_initialization. Replace with call to
5434 finish_ext_lang_initialization.
5436 * typeprint.c (do_free_global_table): Update to call
5437 free_ext_lang_type_printers.
5438 (create_global_typedef_table): Update to call
5439 start_ext_lang_type_printers.
5440 (find_global_typedef): Update to call apply_ext_lang_type_printers.
5441 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
5442 (type_print_options): Change type of global_printers from "void *"
5443 to "struct ext_lang_type_printers *".
5445 * value.c (preserve_values): Update to call preserve_ext_lang_values.
5446 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
5447 (gdbpy_preserve_values): Renamed from preserve_python_values.
5449 (!HAVE_PYTHON, preserve_python_values): Delete.
5451 * utils.c (quit_flag): Delete, moved to extension.c.
5452 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
5455 * eval.c: Delete #include "python/python.h".
5456 * main.c: Delete #include "python/python.h".
5458 * defs.h: Update comment.
5460 2014-02-06 Joel Brobecker <brobecker@adacore.com>
5464 2014-02-05 Mark Kettenis <kettenis@gnu.org>
5466 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
5469 2014-02-05 Yao Qi <yao@codesourcery.com>
5471 * remote.c (remote_pass_signals): Remove local 'buf' and use
5473 (remote_program_signals): Likewise.
5475 2014-02-05 Yao Qi <yao@codesourcery.com>
5477 * ctf.c: Include "inferior.h" and "gdbthread.h".
5478 (CTF_PID): A new macro.
5479 (ctf_open): Call inferior_appeared and add_thread_silent.
5480 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
5481 (ctf_thread_alive): New function.
5482 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
5484 2014-02-05 Yao Qi <yao@codesourcery.com>
5488 2013-05-24 Yao Qi <yao@codesourcery.com>
5490 * tracepoint.c (TFILE_PID): Remove.
5491 (tfile_open): Don't add thread and inferior.
5492 (tfile_close): Don't set 'inferior_ptid'. Don't call
5493 exit_inferior_silent.
5494 (tfile_thread_alive): Remove.
5495 (init_tfile_ops): Don't set field 'to_thread_alive' of
5498 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
5500 * remote.c (remote_start_remote): Call remote_check_symbols even
5501 if only symbol-file (not file) has been given.
5503 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5505 * gdbarch.sh (skip_entrypoint): New callback.
5506 * gdbarch.c, gdbarch.h: Regenerate.
5507 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
5508 * infrun.c (fill_in_stop_func): Likewise.
5509 * ppc-linux-tdep.c: Include "elf/ppc64.h".
5510 (ppc_elfv2_elf_make_msymbol_special): New function.
5511 (ppc_elfv2_skip_entrypoint): Likewise.
5512 (ppc_linux_init_abi): Install them for ELFv2.
5514 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5516 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
5517 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
5518 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
5519 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
5520 structures returned in GPRs.
5522 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5524 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
5525 offset to the stack parameter list for the ELFv2 ABI.
5527 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5529 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
5530 set_gdbarch_convert_from_func_ptr_addr and
5531 set_gdbarch_elf_make_msymbol_special for ELFv1.
5532 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
5533 function descriptors on ELFv1.
5534 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
5535 set up r12 at function entry.
5537 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5539 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
5540 (struct gdbarch_tdep): New member elf_abi.
5542 * rs6000-tdep.c: Include "elf/ppc64.h".
5543 (rs6000_gdbarch_init): Detect ELF ABI version.
5545 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5547 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
5548 within a register pair holding a DFP 128-bit value on little-endian.
5549 (ppc64_sysv_abi_return_value_base): Likewise.
5550 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
5551 (dfp_pseudo_register_write): Likewise.
5553 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5555 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
5556 offset on little-endian when passing _Decimal32.
5557 (ppc64_sysv_abi_return_value_base): Likewise for return values.
5559 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5561 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
5562 of the overlapped FP register within the VSX register on little-
5564 (efpr_pseudo_register_write): Likewise.
5566 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5568 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
5569 offset on little-endian when passing small structures.
5571 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5573 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
5574 (struct ppc64_sysv_argpos): New data structure.
5575 (ppc64_sysv_abi_push_float): Remove.
5576 (ppc64_sysv_abi_push_val): New function.
5577 (ppc64_sysv_abi_push_integer): Likewise.
5578 (ppc64_sysv_abi_push_freg): Likewise.
5579 (ppc64_sysv_abi_push_vreg): Likewise.
5580 (ppc64_sysv_abi_push_param): Likewise.
5581 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
5582 (ppc64_sysv_abi_return_value_base): New function.
5583 (ppc64_sysv_abi_return_value): Refactor to use it.
5585 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5587 * NEWS: Document new target powerpc64le-*-linux*.
5589 2014-02-04 Mark Kettenis <kettenis@gnu.org>
5591 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
5592 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
5594 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
5595 register set used in ELF core dumps. Add floating-point register set.
5597 2014-02-03 Kevin Buettner <kevinb@redhat.com>
5599 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
5600 dwarf2_to_gdb[] table using symbolic constants. Adjust
5601 penultimate entry from number representing the PC register
5602 to symbolic constant representing the MDR register. Add
5603 constant for the PC register to the end of the table.
5605 2014-02-03 Mark Kettenis <kettenis@gnu.org>
5607 * bsd-kvm.c: Include <sys/param.h>
5609 2014-02-03 Mark Kettenis <kettenis@gnu.org>
5611 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
5613 2014-01-31 Joel Brobecker <brobecker@adacore.com>
5615 * ada-lang.h (clear_ada_sym_cache): Delete.
5617 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
5619 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
5621 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
5623 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
5624 the sigreturn register save area only if the syscall is
5627 2014-01-29 Joel Brobecker <brobecker@adacore.com>
5629 * valops.c (value_slice): Minor reformatting.
5631 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
5633 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
5635 2014-01-28 Joel Brobecker <brobecker@adacore.com>
5637 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
5639 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
5640 (ada_ignore_descriptive_types_p): New static global.
5641 (find_parallel_type_by_descriptive_type): Return immediately
5642 if ada_ignore_descriptive_types_p is set.
5643 (_initialize_ada_language): Register new commands "maintenance
5644 set ada", "maintenance show ada", "maintenance set ada
5645 ignore-descriptive-types" and "maintenance show ada
5646 ignore-descriptive-types".
5647 * NEWS: Add entry for new "maint ada set/show
5648 ignore-descriptive-types" commands.
5650 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
5652 * record-btrace.c (record_btrace_close): Call btrace_teardown
5655 2014-01-27 Joel Brobecker <brobecker@adacore.com>
5657 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
5660 2014-01-27 Joel Brobecker <brobecker@adacore.com>
5662 * ada-typeprint (type_is_full_subrange_of_target_type):
5664 (print_range): Add parameter bounds_prefered_p. If not set,
5665 try printing range types using the name of their base type.
5666 (print_range_type): Add parameter bounds_prefered_p.
5667 Use it in call to print_range.
5668 (print_array_type, ada_print_type): Update calls to print_range
5669 and print_range_type.
5671 2014-01-27 Joel Brobecker <brobecker@adacore.com>
5673 * ada-typeprint.c (print_array_type, print_choices, print_range)
5674 (print_range_bound, print_dynamic_range_bound, print_range_type):
5677 2014-01-27 Joel Brobecker <brobecker@adacore.com>
5679 * ada-typeprint.c (print_range): Add missing empty line
5680 after local declaration.
5682 2014-01-27 Joel Brobecker <brobecker@adacore.com>
5684 * ada-valprint.c (print_optional_low_bound): Get index_type's
5685 target type for as long as it is a TYPE_CODE_RANGE.
5687 2014-01-27 Joel Brobecker <brobecker@adacore.com>
5689 * procfs.c (procfs_make_note_section): Remove assertion and
5692 2014-01-24 Yao Qi <yao@codesourcery.com>
5694 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
5695 * corelow.c (get_core_siginfo): Likewise.
5697 2014-01-24 Yao Qi <yao@codesourcery.com>
5699 * remote.c (remote_write_bytes_aux): Change type of 'len' to
5700 ULONGEST. Don't check 'len' is negative.
5701 (remote_write_bytes): Change type of 'len' to ULONGEST.
5703 2014-01-23 Tom Tromey <tromey@redhat.com>
5706 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
5707 Handle exception from frame.block.
5708 (FrameVars.fetch_frame_locals): Likewise.
5710 2014-01-23 Tom Tromey <tromey@redhat.com>
5713 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
5714 on a NULL pointer. Move "goto error" to correct place.
5716 2014-01-23 Tom Tromey <tromey@redhat.com>
5719 * python/py-framefilter.c (apply_frame_filter): Call
5720 ensure_python_env after computing gdbarch.
5722 2014-01-23 Yao Qi <yao@codesourcery.com>
5724 * target.c (raw_memory_xfer_partial): Change argument type
5725 from void * to gdb_byte *.
5726 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
5728 2014-01-22 Doug Evans <dje@google.com>
5730 New gdbserver option --debug-format=timestamp.
5733 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
5735 * syscalls/s390x-linux.xml: New file.
5736 * syscalls/s390-linux.xml: New file.
5737 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
5738 (XML_SYSCALL_FILENAME_S390X): Likewise.
5739 (op_svc): New enum value for SVC opcode.
5740 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
5741 (s390_linux_get_syscall_number): New function.
5742 (s390_gdbarch_init): Register '*get_syscall_number' and the
5743 syscall xml file name.
5744 * data-directory/Makefile.in (SYSCALLS_FILES): Add
5745 "s390-linux.xml" and "s390x-linux.xml".
5746 * NEWS: Announce new feature.
5748 2014-01-22 Baruch Siach <baruch@tkos.co.il>
5750 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
5752 2014-01-22 Pedro Alves <palves@redhat.com>
5754 * xtensa-config.c: Include defs.h.
5756 2014-01-22 Joel Brobecker <brobecker@adacore.com>
5758 * common/common-utils.h: Add "ARI:" comment beside __func__
5761 2014-01-22 Joel Brobecker <brobecker@adacore.com>
5763 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
5764 documentation a bit.
5766 2014-01-21 Roland McGrath <mcgrathr@google.com>
5768 * configure.ac: Call AM_PROG_INSTALL_STRIP.
5769 * configure: Regenerate.
5770 * aclocal.m4: Regenerate.
5771 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
5772 New substituted variables.
5773 (install-strip): New target.
5774 (INSTALL_SCRIPT): New substituted variable.
5775 (FLAGS_TO_PASS): Add it.
5776 (install-only): Use $(INSTALL_SCRIPT) rather than
5777 $(INSTALL_PROGRAM) for gcore.
5779 2014-01-20 Tom Tromey <tromey@redhat.com>
5781 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
5784 2014-01-20 Tom Tromey <tromey@redhat.com>
5786 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
5787 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
5788 (deprecated_cmd_warning, complete_on_cmdlist): Update.
5789 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
5790 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
5791 (struct cmd_list_element) <flags>: Remove.
5792 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
5793 doc_allocated>: New fields.
5794 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
5796 * maint.c (maintenance_do_deprecate): Update.
5797 * top.c (execute_command): Update.
5799 2014-01-20 Baruch Siach <baruch@tkos.co.il>
5801 * xtensa-linux-nat.c: Include asm/ptrace.h.
5803 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
5805 * Makefile.in (SFILES): Add d-support.c.
5806 (COMMON_OBS): Add d-support.o.
5807 * d-lang.h (d_parse_symbol): Add comment, now defined in
5809 * d-lang.c (parse_call_convention)
5810 (parse_attributes, parse_function_types)
5811 (parse_function_args, parse_type, parse_identifier)
5812 (call_convention_p, d_parse_symbol): Move functions to ...
5813 * d-support.c: ... New file.
5815 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
5817 * d-lang.h (d_parse_symbol): Add declaration.
5818 * d-lang.c (extract_identifiers)
5819 (extract_type_info): Remove functions.
5820 (parse_call_convention, parse_attributes)
5821 (parse_function_types, parse_function_args)
5822 (parse_type, parse_identifier, call_convention_p)
5823 (d_parse_symbol): New functions.
5824 (d_demangle): Use d_parse_symbol to demangle D symbols.
5826 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
5828 * d-lang.h (struct builtin_d_type): New data type.
5829 (builtin_d_type): Add declaration.
5830 * d-lang.c (d_language_arch_info, build_d_types)
5831 (builtin_d_type): New functions.
5832 (enum d_primitive_types): New data type.
5833 (d_language_defn): Change c_language_arch_info to
5834 d_language_arch_info.
5835 (d_type_data): New static variable.
5836 (_initialize_d_language): Initialize d_type_data.
5838 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
5840 * d-lang.h (d_main_name): Add declaration.
5841 * d-lang.c (d_main_name): New function.
5842 * symtab.c (find_main_name): Add call to d_main_name.
5844 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
5846 * d-lang.c (d_language_defn): Change macro_expansion_c to
5849 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
5851 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5853 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
5855 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
5856 gdb_exception" declaration.
5857 * remote.c (getpkt_or_notif_sane): Likewise.
5859 2014-01-17 Doug Evans <dje@google.com>
5861 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
5862 function, contents of dirnames_to_char_ptr_vec_append moved here.
5863 (delim_string_to_char_ptr_vec): New function.
5864 (dirnames_to_char_ptr_vec_append): Rewrite.
5865 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
5867 2014-01-17 Doug Evans <dje@google.com>
5869 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
5871 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
5872 #include "common-utils.h".
5873 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
5874 * common/vec.h (VEC_ASSERT_PASS): Update.
5875 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
5876 (MACH_CHECK_ERROR): Update.
5878 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
5880 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
5882 * gdbarch.h: Regenerate.
5884 2014-01-16 Tom Tromey <tromey@redhat.com>
5886 * value.c (struct value) <regnum>: Move earlier.
5888 2014-01-16 Tom Tromey <tromey@redhat.com>
5890 * remote.c (extended_remote_create_inferior): Rename from
5891 extended_remote_create_inferior_1. Add "ops" argument. Remove
5894 2014-01-16 Pedro Alves <palves@redhat.com>
5896 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
5897 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
5900 2014-01-16 Doug Evans <dje@google.com>
5902 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
5904 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5906 * btrace.h (btrace_thread_flag): New.
5907 (struct btrace_thread_info) <flags>: New.
5908 * record-btrace.c (record_btrace_resume_thread)
5909 (record_btrace_find_thread_to_move, btrace_step_no_history)
5910 (btrace_step_stopped, record_btrace_start_replaying)
5911 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
5912 (record_btrace_find_resume_thread): New.
5913 (record_btrace_resume, record_btrace_wait): Extend.
5914 (record_btrace_can_execute_reverse): New.
5915 (record_btrace_open): Fail in non-stop mode.
5916 (record_btrace_set_replay): Split into this, ...
5917 (record_btrace_stop_replaying): ... this, ...
5918 (record_btrace_clear_histories): ... and this.
5919 (init_record_btrace_ops): Init to_can_execute_reverse.
5920 * NEWS: Announce it.
5922 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5924 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
5925 (forward_target_decr_pc_after_break)
5926 (target_decr_pc_after_break): New.
5927 * target.c (forward_target_decr_pc_after_break)
5928 (target_decr_pc_after_break): New.
5929 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
5930 instead of gdbarch_decr_pc_after_break.
5931 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
5932 instead of gdbarch_decr_pc_after_break.
5933 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
5934 instead of gdbarch_decr_pc_after_break.
5935 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
5936 instead of gdbarch_decr_pc_after_break.
5937 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
5938 instead of gdbarch_decr_pc_after_break.
5939 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
5940 instead of gdbarch_decr_pc_after_break.
5942 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5944 * btrace.c: Include regcache.h.
5945 (btrace_add_pc): New.
5946 (btrace_enable): Call btrace_add_pc.
5947 (btrace_is_empty): New.
5948 * btrace.h (btrace_is_empty): New.
5949 * record-btrace.c (require_btrace, record_btrace_info): Call
5952 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5954 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
5955 Support delta reads.
5956 (linux_disable_btrace): Change return type.
5957 * common/linux-btrace.h (linux_read_btrace): Change parameters
5958 and return type to allow error reporting. Update users.
5959 (linux_disable_btrace): Change return type. Update users.
5960 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
5962 (btrace_error): New.
5963 (btrace_block) <begin>: Comment on BEGIN == 0.
5964 * btrace.c (btrace_compute_ftrace): Start from the end of
5966 (btrace_stitch_trace, btrace_clear_history): New.
5967 (btrace_fetch): Read delta trace, return if replaying.
5968 (btrace_clear): Move clear history code to btrace_clear_history.
5969 (parse_xml_btrace): Throw an error if parsing failed.
5970 * target.h (struct target_ops) <to_read_btrace>: Change parameters
5971 and return type to allow error reporting.
5972 (target_read_btrace): Change parameters and return type to allow
5974 * target.c (target_read_btrace): Update.
5975 * remote.c (remote_read_btrace): Support delta reads. Pass
5977 * NEWS: Announce it.
5979 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5981 * record.h (record_btrace_frame_unwind)
5982 (record_btrace_tailcall_frame_unwind): New declarations.
5983 * dwarf2-frame: Include record.h
5984 (dwarf2_frame_cfa): Throw an error for btrace frames.
5985 * record-btrace.c: Include hashtab.h.
5986 (btrace_get_bfun_name): New.
5987 (btrace_call_history): Call btrace_get_bfun_name.
5988 (struct btrace_frame_cache): New.
5990 (bfcache_hash, bfcache_eq, bfcache_new): New.
5991 (btrace_get_frame_function): New.
5992 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
5993 (record_btrace_frame_this_id): Compute own id.
5994 (record_btrace_frame_prev_register): Provide PC, throw_error
5995 for all other registers.
5996 (record_btrace_frame_sniffer): Detect btrace frames.
5997 (record_btrace_tailcall_frame_sniffer): New.
5998 (record_btrace_frame_dealloc_cache): New.
5999 (record_btrace_frame_unwind): Add new functions.
6000 (record_btrace_tailcall_frame_unwind): New.
6001 (_initialize_record_btrace): Allocate cache.
6002 * btrace.c (btrace_clear): Call reinit_frame_cache.
6003 * NEWS: Announce it.
6005 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6007 * record-btrace.c (record_btrace_set_replay)
6008 (record_btrace_goto_begin, record_btrace_goto_end)
6009 (record_btrace_goto): New.
6010 (init_record_btrace_ops): Initialize them.
6011 * NEWS: Announce it.
6013 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6015 * record-btrace.c (record_btrace_find_new_threads)
6016 (record_btrace_thread_alive): New.
6017 (init_record_btrace_ops): Initialize to_find_new_threads and
6020 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6022 * record-btrace.c (record_btrace_resume): New.
6023 (record_btrace_wait): New.
6024 (init_record_btrace_ops): Initialize to_wait and to_resume.
6026 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6028 * record-btrace.c (record_btrace_xfer_partial)
6029 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
6030 (record_btrace_allow_memory_access): New.
6031 (init_record_btrace_ops): Initialize new methods.
6032 * target.c (raw_memory_xfer_partial): Bail out if target reports
6033 that this memory is not available.
6035 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6037 * target.h (target_ops) <to_insert_breakpoint>
6038 <to_remove_breakpoint>: Add target_ops parameter.
6039 (forward_target_insert_breakpoint): New.
6040 (forward_target_remove_breakpoint): New.
6041 (memory_remove_breakpoint, memory_insert_breakpoint):
6042 Add target_ops parameter.
6043 * target.c (target_insert_breakpoint): Split into this and ...
6044 (forward_target_insert_breakpoint): ... this.
6045 (target_remove_breakpoint): Split into this and ...
6046 (forward_target_remove_breakpoint): ... this.
6047 (debug_to_insert_breakpoint): Add target_ops parameter.
6048 Call forward_target_insert_breakpoint.
6049 (debug_to_remove_breakpoint): Add target_ops parameter.
6050 Call forward_target_remove_breakpoint.
6051 (update_current_target): Do not inherit or default to_insert_breakpoint
6052 and to_remove_breakpoint.
6053 * corelow.c (ignore): Add target_ops parameter.
6054 * exec.c (ignore): Add target_ops parameter.
6055 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
6056 Add target_ops parameter.
6057 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
6058 Add target_ops parameter.
6059 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
6060 Add target_ops parameter.
6061 * record-full.c (record_full_beneath_to_insert_breakpoint)
6062 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
6063 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
6064 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
6065 (record_full_core_remove_breakpoint): Add target_ops parameter.
6067 (record_full_beneath_to_insert_breakpoint_ops)
6068 (record_full_beneath_to_remove_breakpoint_ops)
6069 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
6070 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
6071 tmp_to_remove_breakpoint_ops,
6072 record_full_beneath_to_insert_breakpoint_ops, and
6073 record_full_beneath_to_remove_breakpoint_ops.
6074 * remote-m32r-sdi.c (m32r_insert_breakpoint)
6075 (m32r_remove_breakpoint): Add target_ops parameter.
6076 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
6077 Add target_ops parameter.
6078 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
6079 Add target_ops parameter.
6081 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6082 Markus Metzger <markus.t.metzger@intel.com>
6084 * record-btrace.c: Include frame-unwind.h.
6085 (record_btrace_frame_unwind_stop_reason)
6086 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
6087 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
6089 (init_record_btrace_ops): Install it.
6091 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6093 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
6096 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6098 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
6101 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6103 * frame-unwind.c: Include target.h.
6104 (frame_unwind_try_unwinder): New function with code from ...
6105 (frame_unwind_find_by_frame): ... here. New variable
6106 unwinder_from_target, call also target_get_unwinder)
6107 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
6108 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
6109 * target.h (struct target_ops): New fields to_get_unwinder and
6110 to_get_tailcall_unwinder.
6111 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
6113 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6115 * record-btrace.c (record_btrace_fetch_registers)
6116 (record_btrace_store_registers)
6117 (record_btrace_to_prepare_to_store): New.
6118 (init_record_btrace_ops): Add the above.
6120 2014-01-16 Tom Tromey <tromey@redhat.com>
6122 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
6123 * target.h (struct target_ops) <to_prepare_to_store>: Add
6125 (target_prepare_to_store): Add argument.
6126 * target.c (debug_to_prepare_to_store): Add argument.
6127 (update_current_target): Update.
6128 * remote.c (remote_prepare_to_store): Add 'self' argument.
6129 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
6130 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
6131 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
6132 * record-full.c (record_full_core_prepare_to_store): Add 'self'
6134 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
6135 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
6136 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
6137 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
6138 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
6140 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6142 * btrace.h (replay) <replay>: New.
6143 (btrace_is_replaying): New.
6144 * btrace.c (btrace_clear): Free replay iterator.
6145 (btrace_is_replaying): New.
6146 * record-btrace.c (record_btrace_is_replaying): New.
6147 (record_btrace_info): Print insn number if replaying.
6148 (record_btrace_insn_history): Start at replay position.
6149 (record_btrace_call_history): Start at replay position.
6150 (init_record_btrace_ops): Init to_record_is_replaying.
6152 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6154 * record-btrace.c (record_btrace_insn_history_range): Include
6156 (record_btrace_insn_history_from): Adjust range.
6157 (record_btrace_call_history_range): Include
6159 (record_btrace_call_history_from): Adjust range.
6160 * NEWS: Announce changes.
6162 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6164 * record.h (enum record_print_flag)
6165 <record_print_indent_calls>: New.
6166 * record.c (get_call_history_modifiers): Recognize /c modifier.
6167 (_initialize_record): Document /c modifier.
6168 * record-btrace.c (btrace_call_history): Add btinfo parameter.
6169 Reorder fields. Optionally indent the function name. Update
6171 * NEWS: Announce changes.
6173 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6175 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
6177 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6179 * btrace.c (ftrace_new_function): Start counting at one.
6180 * record-btrace.c (record_btrace_info): Adjust number of calls
6182 * NEWS: Announce it.
6184 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6186 * record-btrace.c (btrace_call_history_insn_range): Print
6187 insn range as [begin, end].
6189 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6191 * btrace.h (struct btrace_func_link): New.
6192 (enum btrace_function_flag): New.
6193 (struct btrace_inst): Rename to ...
6194 (struct btrace_insn): ...this. Update all users.
6195 (struct btrace_func) <ibegin, iend>: Remove.
6196 (struct btrace_func_link): New.
6197 (struct btrace_func): Rename to ...
6198 (struct btrace_function): ...this. Update all users.
6199 (struct btrace_function) <segment, flow, up, insn, insn_offset)
6200 (number, level, flags>: New.
6201 (struct btrace_insn_iterator): Rename to ...
6202 (struct btrace_insn_history): ...this.
6204 (struct btrace_insn_iterator, btrace_call_iterator): New.
6205 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
6206 (struct btrace_target_info) <begin, end, level>
6207 <insn_history, call_history>: New.
6208 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
6209 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
6210 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
6211 (btrace_call_number, btrace_call_begin, btrace_call_end)
6212 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
6213 (btrace_find_function_by_number, btrace_set_insn_history)
6214 (btrace_set_call_history): New.
6215 * btrace.c (btrace_init_insn_iterator)
6216 (btrace_init_func_iterator, compute_itrace): Remove.
6217 (ftrace_print_function_name, ftrace_print_filename)
6218 (ftrace_skip_file): Change
6220 (ftrace_init_func): Remove.
6221 (ftrace_debug): Use new btrace_function fields.
6222 (ftrace_function_switched): Also consider gaining and
6223 losing symbol information).
6224 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
6225 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
6226 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
6228 (ftrace_new_function): Move. Remove debug print.
6229 (ftrace_update_lines, ftrace_update_insns): New.
6230 (ftrace_update_function): Check for call, ret, and jump.
6231 (compute_ftrace): Renamed to ...
6232 (btrace_compute_ftrace): ...this. Rewritten to compute call
6234 (btrace_fetch, btrace_clear): Updated.
6235 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
6236 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
6237 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
6238 (btrace_call_number, btrace_call_begin, btrace_call_end)
6239 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
6240 (btrace_find_function_by_number, btrace_set_insn_history)
6241 (btrace_set_call_history): New.
6242 * record-btrace.c (require_btrace): Use new btrace thread
6244 (record_btrace_info, btrace_insn_history)
6245 (record_btrace_insn_history, record_btrace_insn_history_range):
6246 Use new btrace thread info fields and new iterator.
6247 (btrace_func_history_src_line): Rename to ...
6248 (btrace_call_history_src_line): ...this. Use new btrace
6250 (btrace_func_history): Rename to ...
6251 (btrace_call_history): ...this. Use new btrace thread info
6252 fields and new iterator.
6253 (record_btrace_call_history, record_btrace_call_history_range):
6254 Use new btrace thread info fields and new iterator.
6256 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6258 * frame.h (frame_id_build_unavailable_stack_special): New.
6259 * frame.c (frame_id_build_unavailable_stack_special): New.
6261 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6263 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
6264 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
6265 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
6267 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
6268 (i386_insn_is_jump, i386_jmp_p): New.
6269 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
6270 insn_is_jump to gdbarch.
6271 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
6272 * gdbarch.h: Regenerated.
6273 * gdbarch.c: Regenerated.
6274 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
6275 (default_insn_is_jump): New.
6276 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
6277 (default_insn_is_jump): New.
6279 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6281 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
6283 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
6284 (btrace_read_type) <btrace_read_new>: Change to ...
6285 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
6287 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6289 * common/linux-btrace.c (linux_read_btrace): Free trace from
6292 2014-01-15 Doug Evans <dje@google.com>
6294 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
6297 2014-01-15 Tom Tromey <tromey@redhat.com>
6299 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
6300 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
6301 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
6302 (set_objfile_main_name): New function.
6303 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
6304 language_of_main>: New fields.
6305 (set_objfile_main_name): Declare.
6306 * symtab.c (find_main_name): Loop over objfiles to find the main
6308 (set_main_name): Now static.
6309 (get_main_info): Add comment.
6310 * symtab.h (set_main_name): Don't declare.
6312 2014-01-15 Tom Tromey <tromey@redhat.com>
6314 * symtab.c (main_progspace_key): New global.
6315 (struct main_info): New.
6316 (name_of_main, language_of_main): Remove.
6317 (get_main_info, main_info_cleanup): New function.
6318 (set_main_name, main_name, main_language): Use get_main_info.
6319 (_initialize_symtab): Initialize main_progspace_key.
6321 2014-01-15 Tom Tromey <tromey@redhat.com>
6323 * dbxread.c (process_one_symbol): Update.
6324 * dwarf2read.c (read_partial_die): Update.
6325 * symfile.c (set_initial_language): Call main_language.
6326 * symtab.c (language_of_main): Now static.
6327 (set_main_name): Add 'lang' parameter.
6328 (find_main_name): Update.
6329 (main_language): New function.
6330 (symtab_observer_executable_changed): Update.
6331 * symtab.h (set_main_name): Update.
6332 (language_of_main): Remove.
6333 (main_language): Declare.
6335 2014-01-15 Tom Tromey <tromey@redhat.com>
6337 * symfile.c (init_entry_point_info): Use new "initialized" field.
6339 * objfiles.h (struct entry_point) <initialized>: New field.
6340 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
6341 (struct objfile) <ei>: ...here. Remove.
6342 * objfiles.c (entry_point_address_query): Update.
6344 2014-01-15 Tom Tromey <tromey@redhat.com>
6346 * objfiles.c (entry_point_address_query): Relocate entry point
6348 (objfile_relocate1): Do not relocate entry point address.
6349 * objfiles.h (struct entry_info) <entry_point>: Update comment.
6350 <the_bfd_section_index>: New field.
6351 * symfile.c (init_entry_point_info): Find the entry point's
6354 2014-01-15 Tom Tromey <tromey@redhat.com>
6356 * solib-frv.c (enable_break): Use entry_point_address_query.
6358 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6360 * NEWS: Add note on improved process record-replay on
6361 arm*-linux* targets.
6363 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6365 * arm-tdep.c (enum arm_record_result): New enum.
6366 (arm_record_unsupported_insn): New function.
6367 (arm_record_coproc_data_proc): Removed.
6368 (thumb2_record_ld_st_multiple): New function.
6369 (thumb2_record_ld_st_dual_ex_tbb): New function.
6370 (thumb2_record_data_proc_sreg_mimm): New function.
6371 (thumb2_record_ps_dest_generic): New function.
6372 (thumb2_record_branch_misc_cntrl): New function.
6373 (thumb2_record_str_single_data): New function.
6374 (thumb2_record_ld_mem_hints): New function.
6375 (thumb2_record_ld_word): New function.
6376 (thumb2_record_lmul_lmla_div): New function.
6377 (thumb2_record_decode_insn_handler): New function.
6378 (decode_insn): Add thumb32 instruction handlers.
6380 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6382 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
6383 (struct arm_linux_record_tdep): Declare.
6384 (arm_canonicalize_syscall): New function.
6385 (arm_all_but_pc_registers_record): New function.
6386 (arm_linux_syscall_record): New function.
6387 (arm_linux_init_abi): Add syscall recording constructs.
6388 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
6389 decoding. (arm_record_coproc_data_proc): Update arm syscall
6391 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
6392 <arm_syscall_record>: New field.
6393 * configure.tgt (arm*-*-linux*): Add linux-record.o to
6396 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6398 * arm-tdep.c (thumb_record_misc): Update to use sp as base
6399 register for push instruction recording.
6401 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6403 * arm-tdep.c (thumb_record_misc): Update to correct logical
6404 error while recording ldm, ldmia and pop instructions.
6406 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6408 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
6410 2014-01-15 Pedro Alves <palves@redhat.com>
6412 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
6413 (go32_resume, go32_fetch_registers, store_register)
6414 (go32_store_registers, go32_prepare_to_store)
6415 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
6416 (go32_create_inferior, go32_can_run, go32_terminal_init)
6417 (go32_terminal_inferior, go32_terminal_ours): Delete forward
6420 2014-01-15 Tom Tromey <tromey@redhat.com>
6422 * target.h (async_callback_ftype): New typedef.
6423 (struct target_ops) <to_async>: Use it.
6425 2014-01-15 Joel Brobecker <brobecker@adacore.com>
6427 * python/py-value.c (get_field_type): Remove unnecessary curly
6428 braces for single-statement if block.
6430 2014-01-15 Joel Brobecker <brobecker@adacore.com>
6432 * python/py-type.c (convert_field): Add missing empty line
6435 2014-01-14 Doug Evans <dje@google.com>
6437 * symfile.h (expand_symtabs_matching): Renamed from
6438 expand_partial_symbol_names. Update prototype.
6439 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
6440 * symfile.c (expand_symtabs_matching): Renamed from
6441 expand_partial_symbol_names. New args file_matcher, kind.
6442 Rename arg fun to symbol_matcher.
6443 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
6444 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
6445 ada_expand_partial_symbol_name.
6446 (ada_make_symbol_completion_list): Update to call
6447 expand_symtabs_matching.
6448 (ada_add_global_exceptions): Call expand_symtabs_matching.
6449 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
6450 call map_symbol_filenames.
6451 * symtab.c (sources_info): Update to call map_symbol_filenames.
6452 (search_symbols): Call expand_symtabs_matching.
6453 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
6454 (default_make_symbol_completion_list_break_on): Update to call
6455 expand_symtabs_matching.
6456 (make_source_files_completion_list): Update to call
6457 map_symbol_filenames.
6459 2014-01-14 Doug Evans <dje@google.com>
6461 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
6462 (expand_symtabs_symbol_matcher_ftype): New typedef.
6463 (quick_symbol_functions.expand_symtabs_matching): Update to use.
6464 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
6465 * symfile.c (expand_partial_symbol_names): Update to use
6466 expand_symtabs_symbol_matcher_ftype.
6467 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
6468 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
6469 Arg name_matcher renamed to symbol_matcher.
6470 * psymtab.c (recursively_search_psymtabs): Update to use
6471 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
6473 (expand_symtabs_matching_via_partial): Update to use
6474 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
6475 Arg name_matcher renamed to symbol_matcher.
6477 2014-01-14 Doug Evans <dje@google.com>
6479 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
6480 (map_partial_symbol_filenames): Ditto.
6481 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
6482 (map_partial_symbol_filenames): Ditto.
6483 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
6484 (map_partial_symbol_filenames): Ditto.
6485 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
6486 (map_partial_symbol_filenames): Ditto.
6487 * symtab.c: Delete #include "psymtab.h".
6489 2014-01-14 Pedro Alves <palves@redhat.com>
6490 Tom Tromey <tromey@redhat.com>
6492 * infrun.c (use_displaced_stepping): Use find_record_target
6493 instead of RECORD_IS_USED.
6494 (adjust_pc_after_break): Use record_full_is_used instead of
6496 * record-btrace.c (record_btrace_open): Call record_preopen
6497 instead of checking RECORD_IS_USED.
6498 * record-full.c (record_full_shortname)
6499 (record_full_core_shortname): New globals.
6500 (record_full_is_used): New function.
6501 (find_full_open): Call record_preopen instead of checking
6503 (init_record_full_ops): Set the target's shortname to
6504 record_full_shortname.
6505 (init_record_full_core_ops): Set the target's shortname to
6506 record_full_core_shortname.
6507 * record-full.h (record_full_is_used): Declare.
6508 * record.c (find_record_target): Make extern.
6509 (record_preopen): New function.
6510 * record.h (RECORD_IS_USED): Delete macro.
6511 (find_record_target, record_preopen): Declare functions.
6513 2014-01-14 Yao Qi <yao@codesourcery.com>
6515 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
6516 'len''s type to ULONGEST.
6517 (core_xfer_shared_libraries_aix): Likewise.
6518 * gdbarch.c, gdbarch.h: Regenerated.
6519 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
6520 Change type of 'len' to ULONGEST.
6521 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
6522 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
6524 2014-01-14 Yao Qi <yao@codesourcery.com>
6526 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
6527 type of 'len' to ULONGEST.
6528 (linux_xfer_osdata_processgroups): Likewise.
6529 (linux_xfer_osdata_threads): Likewise.
6530 (linux_xfer_osdata_fds): Likewise.
6531 (linux_xfer_osdata_isockets): Likewise.
6532 (linux_xfer_osdata_shm): Likewise.
6533 (linux_xfer_osdata_sem): Likewise.
6534 (linux_xfer_osdata_msg): Likewise.
6535 (linux_common_xfer_osdata): Likewise.
6536 (struct osdata_type) <getter>: Likewise.
6537 * common/linux-osdata.h (linux_common_xfer_osdata): Update
6540 2014-01-14 Yao Qi <yao@codesourcery.com>
6542 * target.h (target_xfer_partial_ftype): Update.
6543 (struct target_ops) <to_xfer_partial>: Change 'len' type to
6545 * aix-thread.c (aix_thread_xfer_partial): Change type of
6546 argument 'len' to ULONGEST.
6547 * auxv.c (procfs_xfer_auxv): Likewise.
6548 (ld_so_xfer_auxv): Likewise.
6549 (memory_xfer_auxv): Likewise.
6550 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6551 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6552 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
6553 * corelow.c (core_xfer_partial): Likewise.
6554 * ctf.c (ctf_xfer_partial): Likewise.
6555 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
6557 (darwin_read_dyld_info): Likewise.
6558 (darwin_xfer_partial): Likewise.
6559 * exec.c (section_table_xfer_memory_partial): Likewise.
6560 (exec_xfer_partial): Likewise.
6561 * exec.h (section_table_xfer_memory_partial): Update
6563 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
6564 instead of plongest.
6565 (gnu_xfer_partial): Likewise.
6566 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
6567 (ia64_hpux_xfer_solib_got): Likewise.
6568 (ia64_hpux_xfer_partial): Likewise.
6569 * ia64-linux-nat.c (ia64_linux_xfer_partial):
6570 * inf-ptrace.c (inf_ptrace_xfer_partial):
6571 * inf-ttrace.c (inf_ttrace_xfer_partial):
6572 * linux-nat.c (linux_xfer_siginfo): Likewise.
6573 (linux_nat_xfer_partial): Likewise.
6574 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
6575 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
6576 * monitor.c (monitor_xfer_memory): Likewise.
6577 (monitor_xfer_partial): Likewise.
6578 * procfs.c (procfs_xfer_partial): Likewise.
6579 * record-full.c (record_full_xfer_partial): Likewise.
6580 (record_full_core_xfer_partial): Likewise.
6581 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
6582 instead of plongest.
6583 (gdbsim_xfer_partial): Likewise.
6584 * remote.c (remote_xfer_partial): Likewise.
6585 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
6586 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
6588 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6589 (rs6000_xfer_shared_libraries): Likewise.
6590 * sol-thread.c (sol_thread_xfer_partial): Likewise.
6591 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6592 (sparc_xfer_partial): Likewise.
6593 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6594 (spu_xfer_partial): Likewise.
6595 * spu-multiarch.c (spu_xfer_partial): Likewise.
6596 * target.c (target_read_live_memory): Likewise.
6597 (memory_xfer_live_readonly_partial): Likewise.
6598 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
6599 (target_xfer_partial, default_xfer_partial): Likewise.
6600 (current_xfer_partial): Likewise.
6601 * tracepoint.c (tfile_xfer_partial): Likewise.
6602 * windows-nat.c (windows_xfer_memory): Likewise. Call
6603 pulongest instead of plongest.
6604 (windows_xfer_partial): Likewise.
6605 (windows_xfer_shared_libraries): Likewise.
6607 2014-01-14 Yao Qi <yao@codesourcery.com>
6609 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
6610 target_xfer_partial_ftype.
6612 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
6616 * valops.c (value_struct_elt_bitpos): New function
6617 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
6618 object to 'None' if the field name is an empty string ("").
6619 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
6620 attribute to look for a field when 'name' is 'None'.
6621 (get_field_type): New function
6623 2014-01-13 Doug Evans <dje@google.com>
6626 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
6627 (try_open_dwop_file): Ditto.
6628 * gdb_bfd.c: #include "vec.h".
6629 (bfdp): New typedef.
6630 (struct gdb_bfd_data): New member included_bfds.
6631 (gdb_bfd_unref): Unref all included bfds.
6632 (gdb_bfd_record_inclusion): New function.
6633 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
6635 2014-01-13 Tom Tromey <tromey@redhat.com>
6637 * gdbcore.h (deprecated_core_resize_section_table): Remove.
6639 2014-01-13 Tom Tromey <tromey@redhat.com>
6641 * defs.h (use_windows): Remove.
6642 * gdb.c (main): Update.
6643 * main.c (captured_main, gdb_main): Update.
6644 * main.h (struct captured_main_args) <use_windows>: Remove.
6645 * top.c (use_windows): Remove.
6647 2014-01-13 Tom Tromey <tromey@redhat.com>
6649 * defs.h (deprecated_flush_hook): Remove.
6651 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6654 * linux-thread-db.c (try_thread_db_load): Add parameter
6655 check_auto_load_safe. Move here the file_is_auto_load_safe call.
6656 (try_thread_db_load_from_pdir_1): Move it there from here.
6657 (try_thread_db_load_from_sdir): Update caller.
6658 (try_thread_db_load_from_dir): Move it there from here.
6660 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
6662 * regformats/regdat.sh: Always rewrite the register file.
6664 2014-01-13 Pedro Alves <palves@redhat.com>
6666 * Makefile.in (CHECK_HEADERS): New variable.
6667 (check-headers:): New rule.
6669 2014-01-13 Tom Tromey <tromey@redhat.com>
6671 * cli/cli-setshow.c (do_set_command): Update.
6672 * defs.h (deprecated_set_hook): Remove.
6673 * top.c (deprecated_set_hook): Remove.
6675 2014-01-13 Pedro Alves <palves@redhat.com>
6677 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
6678 the tracepoint if the PC is a pseudo-register.
6680 2014-01-13 Tom Tromey <tromey@redhat.com>
6682 * defs.h (XCALLOC): Remove.
6683 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
6684 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
6685 * dwarf2loc.c (allocate_piece_closure): Likewise.
6686 * elfread.c (elf_symfile_segments): Likewise.
6687 (elf_symfile_segments): Likewise.
6688 * gdbtypes.c (copy_type_recursive): Likewise.
6689 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
6690 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
6691 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
6693 * mt-tdep.c (mt_gdbarch_init): Likewise.
6694 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
6696 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
6697 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
6698 * registry.c (registry_alloc_data): Likewise.
6699 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
6700 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6701 * serial.c (serial_fdopen_ops): Likewise.
6702 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
6704 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
6705 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
6708 2014-01-13 Tom Tromey <tromey@redhat.com>
6710 * defs.h (XMALLOC): Remove.
6711 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
6712 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6713 * cli-out.c (struct ui_out *): Likewise.
6714 * cli/cli-dump.c (add_dump_command): Likewise.
6715 (add_dump_command): Likewise.
6716 * complaints.c (get_complaints): Likewise.
6717 (find_complaint): Likewise.
6718 * dwarf2-frame.c (execute_cfa_program): Likewise.
6719 * dwarf2read.c (abbrev_table_read_table): Likewise.
6720 * gdbarch.sh: Likewise.
6721 * gdbarch.c: Rebuild.
6722 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
6723 * interps.c (interp_new): Likewise.
6724 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6725 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6726 * mi/mi-console.c (mi_console_file_new): Likewise.
6727 * mi/mi-interp.c (mi_interpreter_init): Likewise.
6728 * mi/mi-out.c (mi_out_new): Likewise.
6729 * mi/mi-parse.c (mi_parse): Likewise.
6730 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6731 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6732 * observer.c (xalloc_observer_list_node): Likewise.
6733 * regcache.c (regcache_xmalloc_1): Likewise.
6734 * reggroups.c (reggroup_new): Likewise.
6735 (_initialize_reggroup): Likewise.
6736 * registry.c (register_data_with_cleanup): Likewise.
6737 * remote.c (remote_notif_stop_alloc_reply): Likewise.
6738 * ser-base.c (serial_ttystate): Likewise.
6739 * ser-mingw.c (make_pipe_state): Likewise.
6740 * ser-pipe.c (pipe_open): Likewise.
6741 * serial.c (serial_open): Likewise.
6742 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6743 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
6744 (tui_alloc_win_info): Likewise.
6745 (tui_add_content_elements): Likewise.
6746 * tui/tui-file.c (tui_file_new): Likewise.
6747 * tui/tui-out.c (tui_out_new): Likewise.
6748 * ui-file.c (mem_file_new): Likewise.
6749 * ui-out.c (push_level): Likewise.
6750 (make_cleanup_ui_out_end): Likewise.
6751 (append_header_to_list): Likewise.
6752 (ui_out_new): Likewise.
6753 * user-regs.c (user_reg_add_builtin): Likewise.
6755 2014-01-13 Tom Tromey <tromey@redhat.com>
6757 * defs.h (XZALLOC): Remove.
6758 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
6759 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
6760 (get_ada_tasks_inferior_data): Likewise.
6761 * auto-load.c (get_auto_load_pspace_data): Likewise.
6762 * auxv.c (get_auxv_inferior_data): Likewise.
6763 * bfd-target.c (target_bfd_reopen): Likewise.
6764 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
6765 (deprecated_insert_raw_breakpoint): Likewise.
6766 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
6767 * corelow.c (core_open): Likewise.
6768 * darwin-nat.c (darwin_check_new_threads): Likewise.
6769 (darwin_attach_pid): Likewise.
6770 * dummy-frame.c (dummy_frame_push): Likewise.
6771 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
6772 * dwarf2loc.c (allocate_piece_closure): Likewise.
6773 * elfread.c (elf_symfile_segments): Likewise.
6774 * eval.c (ptrmath_type_p): Likewise.
6775 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
6776 * gdbtypes.c (alloc_type_arch): Likewise.
6777 (alloc_type_instance): Likewise.
6778 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
6779 * inf-child.c (inf_child_can_use_agent): Likewise.
6780 * inflow.c (get_inflow_inferior_data): Likewise.
6781 * infrun.c (save_infcall_suspend_state): Likewise.
6782 * jit.c (jit_reader_load): Likewise.
6783 (get_jit_objfile_data): Likewise.
6784 (get_jit_program_space_data): Likewise.
6785 (jit_object_open_impl): Likewise.
6786 (jit_symtab_open_impl): Likewise.
6787 (jit_block_open_impl): Likewise.
6788 (jit_frame_sniffer): Likewise.
6789 * linux-fork.c (add_fork): Likewise.
6790 * maint.c (make_command_stats_cleanup): Likewise.
6791 * objfiles.c (get_objfile_pspace_data): Likewise.
6792 * opencl-lang.c (struct lval_closure): Likewise.
6793 * osdata.c (osdata_start_osdata): Likewise.
6794 * progspace.c (new_address_space): Likewise.
6795 (add_program_space): Likewise.
6796 * remote-sim.c (get_sim_inferior_data): Likewise.
6797 * sh-tdep.c (sh_gdbarch_init): Likewise.
6798 * skip.c (Ignore): Likewise.
6799 (skip_delete_command): Likewise.
6800 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
6801 (library_list_start_library): Likewise.
6802 (solib_aix_current_sos): Likewise.
6803 * solib-darwin.c (get_darwin_info): Likewise.
6804 (darwin_current_sos): Likewise.
6805 * solib-dsbt.c (get_dsbt_info): Likewise.
6806 * solib-ia64-hpux.c (new_so_list): Likewise.
6807 (ia64_hpux_get_solib_linkage_addr): Likewise.
6808 * solib-spu.c (append_ocl_sos): Likewise.
6809 (spu_current_sos): Likewise.
6810 * solib-svr4.c (get_svr4_info): Likewise.
6811 (svr4_keep_data_in_core): Likewise.
6812 (library_list_start_library): Likewise.
6813 (svr4_default_sos): Likewise.
6814 (svr4_read_so_list): Likewise.
6815 * solib-target.c (library_list_start_library): Likewise.
6816 (solib_target_current_sos): Likewise.
6817 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6818 * symfile-debug.c (install_symfile_debug_logging): Likewise.
6819 * symfile.c (default_symfile_segments): Likewise.
6820 * target-descriptions.c (tdesc_data_init): Likewise.
6821 (tdesc_create_reg): Likewise.
6822 (struct tdesc_type *): Likewise.
6823 (tdesc_create_vector): Likewise.
6824 (tdesc_set_struct_size): Likewise.
6825 (struct tdesc_type *): Likewise.
6826 (tdesc_free_feature): Likewise.
6827 (tdesc_create_feature): Likewise.
6828 * windows-nat.c (windows_add_thread): Likewise.
6829 (windows_make_so): Likewise.
6830 * xml-support.c (gdb_xml_body_text): Likewise.
6831 (gdb_xml_create_parser_and_cleanup): Likewise.
6832 (xml_process_xincludes): Likewise.
6833 * xml-syscall.c (allocate_syscalls_info): Likewise.
6834 (syscall_create_syscall_desc): Likewise.
6836 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
6838 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
6839 function, with code from i386_stap_parse_special_token.
6840 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6841 (i386_stap_parse_special_token): Move code to the two functions
6844 2014-01-09 Pedro Alves <palves@redhat.com>
6845 Hui Zhu <hui@codesourcery.com>
6848 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
6849 bp_err_string. Don't mark the location shlib_disabled if the
6850 error thrown wasn't a generic or memory error. Catch errors
6851 thrown while inserting breakpoints in overlayed code. Output
6852 error message of software breakpoints.
6853 * remote.c (remote_insert_breakpoint): If this breakpoint has
6854 target-side commands but this stub doesn't support Z0 packets,
6855 throw NOT_SUPPORTED_ERROR error.
6856 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
6857 * target.h (target_insert_breakpoint): Extend comment.
6858 (target_insert_hw_breakpoint): Add comment.
6860 2014-01-08 Pedro Alves <palves@redhat.com>
6862 * remote.c (remote_add_thread): Add threads silently if starting
6864 (remote_notice_new_inferior): If in all-stop, and starting up,
6865 don't call notice_new_inferior.
6866 (get_current_thread): New function, factored out from ...
6867 (add_current_inferior_and_thread): ... this. Adjust.
6868 (remote_start_remote) <all-stop>: Fetch the thread list. If we
6869 found any thread, then select the remote's current thread as GDB's
6872 2014-01-08 Joel Brobecker <brobecker@adacore.com>
6874 * NEWS: Create a new section for the next release branch.
6875 Rename the section of the current branch, now that it has
6878 2014-01-08 Joel Brobecker <brobecker@adacore.com>
6880 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
6881 * version.in: Bump version to 7.7.50.DATE-cvs.
6883 2014-01-08 Yao Qi <yao@codesourcery.com>
6885 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
6886 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
6887 (spu_xfer_partial): Cast 'buf' to 'const char *'.
6889 2014-01-08 Yao Qi <yao@codesourcery.com>
6891 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
6892 return value of bfd_get_filename to symbol_file_add_from_bfd.
6894 2014-01-08 Pierre Muller <muller@sourceware.org>
6897 * coff-pe-read.c (struct read_pe_section_data): Add index field.
6898 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
6899 to prim_record_mininal_symbol_and_info.
6900 (add_pe_forwarded_sym): Use known section number of forwarded symbol
6901 in call to prim_record_minimal_symbol_and_info.
6902 (read_pe_exported_syms): Set index field of section_data.
6904 2014-01-07 Andrew Pinski <apinski@cavium.com>
6906 * features/aarch64-core.xml (cpsr): Change to be 64bit.
6907 * features/aarch64.c: Regenerate.
6909 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
6911 * target.c (return_null): Define.
6912 (update_current_target): Use it instead of return_zero for
6913 functions that return a pointer.
6915 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
6917 * source.c (add_path): Fix check for duplicated paths in the previously
6920 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
6922 * ada-lang.c: Remove duplicated include statements.
6923 * alphabsd-nat.c: Ditto.
6924 * amd64-darwin-tdep.c: Ditto.
6925 * amd64fbsd-nat.c: Ditto.
6926 * auto-load.c: Ditto.
6928 * breakpoint.c: Ditto.
6930 * fork-child.c: Ditto.
6931 * gdb_usleep.c: Ditto.
6932 * i386-darwin-tdep.c: Ditto.
6933 * i386fbsd-nat.c: Ditto.
6935 * inferior.c: Ditto.
6937 * linux-nat.c: Ditto.
6938 * linux-tdep.c: Ditto.
6939 * m68kbsd-nat.c: Ditto.
6940 * m68klinux-nat.c: Ditto.
6941 * microblaze-tdep.c: Ditto.
6942 * mips-linux-tdep.c: Ditto.
6943 * mn10300-tdep.c: Ditto.
6944 * nto-tdep.c: Ditto.
6945 * opencl-lang.c: Ditto.
6947 * printcmd.c: Ditto.
6948 * regcache.c: Ditto.
6949 * remote-m32r-sdi.c: Ditto.
6953 * tilegx-linux-nat.c: Ditto.
6954 * tilegx-tdep.c: Ditto.
6955 * tracepoint.c: Ditto.
6957 * vaxbsd-nat.c: Ditto.
6958 * windows-nat.c: Ditto.
6959 * xtensa-tdep.c: Ditto.
6961 2014-01-07 Yao Qi <yao@codesourcery.com>
6963 * spu-linux-nat.c (_initialize_spu_nat): Declare.
6965 2014-01-07 Yao Qi <yao@codesourcery.com>
6966 Joel Brobecker <brobecker@adacore.com>
6968 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
6969 (pdc_write_regs): Likewise.
6970 (fetch_regs_kernel_thread): Likewise.
6971 (store_regs_kernel_thread): Likewise.
6973 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6975 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
6976 tagged type objects to their actual type.
6978 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6980 * ada-valprint.c (print_field_values): Add "language" parameter.
6981 Update calls to print_field_values and print_variant_part.
6982 Pass new parameter "language" in call to val_print instead
6983 of "current_language". Replace call to ada_val_print by call
6985 (print_variant_part): Add "language" parameter.
6986 (ada_val_print_struct_union): Update call to print_field_values.
6988 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6990 * ada-valprint.c (ui_memcpy): Delete.
6991 (ada_print_floating): Update documentation. Add empty line
6992 between between function documentation and implementation.
6993 Delete variable "buffer". Use ui_file_xstrdup in place of
6994 ui_file_put. Minor adjustments following this change.
6996 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6998 * ada-valprint.c (ada_val_print_string): New function,
6999 extracted from ada_val_print_array.
7000 (ada_val_print_array): Replace extracted code by call
7001 to ada_val_print_string followed by a return. Move
7002 "else" branch to the function's top block.
7004 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7006 * ada-valprint.c (ada_val_print_array): Move implementation
7007 down. Rename parameter "offset" and "val" into "offset_aligned"
7008 and "original_value" respectively. Add parameter "offset".
7010 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7012 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
7013 re-organizing the code. Change the "???" message printed
7014 when target type is a TYPE_CODE_UNDEF into
7015 "<ref to undefined type>".
7017 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7019 * ada-valprint.c (print_record): Delete, implementation inlined...
7020 (ada_val_print_struct_union): ... here. Remove call to
7021 ada_check_typedef in inlined implementation.
7023 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7025 * ada-valprint.c (ada_val_print_gnat_array): New function,
7026 extracted from ada_val_print_1;
7027 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
7028 (ada_val_print_flt, ada_val_print_struct_union)
7029 (ada_val_print_ref): Likewise.
7030 (ada_val_print_1): Delete variables i and elttype.
7031 Replace extracted-out code by call to corresponding
7034 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7036 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
7038 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7040 * ada-valprint.c (ada_val_print_1): Replace calls to
7041 ada_val_print_1 by calls to val_print.
7043 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7045 * ada-valprint.c (ada_val_print_1): Add parameter "language".
7046 Update calls to self accordingly. Replace calls to c_val_print
7047 by calls to val_print.
7049 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7051 * ada-valprint.c (print_record): Delete declaration.
7052 (adjust_type_signedness, ada_val_print_1): Likewise.
7053 (ada_val_print): Move function implementation down.
7054 (print_variant_part, print_field_values, print_record):
7055 Move function implementation up.
7057 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7059 * python/py-type.c (typy_get_name): New function.
7060 (type_object_getset): Add entry for attribute "name".
7061 * NEWS: Add entry mentioning this new attribute.
7063 2014-01-07 Yao Qi <yao@codesourcery.com>
7065 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
7068 2014-01-07 Yao Qi <yao@codesourcery.com>
7070 * gnu-nat.c (info_port_rights): Add qualifier const to
7073 2014-01-07 Yao Qi <yao@codesourcery.com>
7075 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
7077 2014-01-07 Yao Qi <yao@codesourcery.com>
7079 * gnu-nat.c (make_inf) Update declaration.
7080 (make_inf): Make it static.
7081 (inf_set_traced): Likewise.
7082 (inf_port_to_thread, inf_task_died_status): Likewise.
7084 2014-01-07 Yao Qi <yao@codesourcery.com>
7086 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
7088 2014-01-07 Yao Qi <yao@codesourcery.com>
7090 * gnu-nat.c (_initialize_gnu_nat): Declare.
7092 2014-01-07 Yao Qi <yao@codesourcery.com>
7094 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
7096 (struct gdbarch_info) <byte_order>: Change type to
7098 <byte_order_for_code>: Likewise.
7099 * gdbarch.c, gdbarch.h: Regenerated.
7101 2014-01-06 Sasha Smundak <asmundak@google.com>
7103 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
7105 2014-01-06 Tom Tromey <tromey@redhat.com>
7107 * doublest.c (convert_doublest_to_floatformat): Use const, not
7109 * somread.c (som_symtab_read): Likewise.
7111 2014-01-07 Hui Zhu <hui@codesourcery.com>
7113 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
7114 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
7115 (gdb_bfd_fopen): Ditto.
7116 (gdb_bfd_openr): Ditto.
7117 (gdb_bfd_openw): Ditto.
7118 (gdb_bfd_openr_iovec): Ditto.
7119 (gdb_bfd_fdopenr): Ditto.
7120 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
7121 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
7123 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
7125 * symfile-mem.c (symbol_file_add_from_memory): Removed
7126 gdb_bfd_stash_filename.
7128 2014-01-03 Doug Evans <dje@google.com>
7130 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
7133 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7135 Update year range in copyright notice of all files.
7137 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7139 * top.c (print_gdb_version): Set copyright year to 2014.
7141 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7143 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
7145 For older changes see ChangeLog-2013.
7151 version-control: never