1 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4 points to a constant blob.
6 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9 property and store it as the high bound and flag the range accordingly.
10 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
11 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
12 * gdbtypes.h (enum range_flags): New enum.
13 (struct range_bounds): Add flags member.
15 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
17 * c-typeprint.c (c_type_print_varspec_suffix): Added
18 check for not yet resolved high bound. If unresolved, print
19 "variable length" string to the console instead of random
22 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
24 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
25 (ada_template_to_fixed_record_type_1): Likewise.
26 (ada_to_fixed_type_1): Likewise.
27 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
28 (cp_print_value): Likewise.
29 * d-valprint.c (dynamic_array_type): Likewise.
30 * eval.c (evaluate_subexp_with_coercion): Likewise.
31 * findvar.c (address_of_variable): Likewise.
32 * jv-valprint.c (java_value_print): Likewise.
33 * valops.c (value_ind): Likewise.
34 * value.c (coerce_ref): Likewise.
36 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
38 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
39 value and retrieve the dynamic type size.
41 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
43 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
44 passed to sizeof is dynamic evaluate the argument to compute the length.
46 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
48 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
49 (dwarf2_evaluate_property): New function.
50 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
51 * dwarf2read.c (attr_to_dynamic_prop): New function.
52 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
54 * gdbtypes.c: Include dwarf2loc.h.
55 (is_dynamic_type): New function.
56 (resolve_dynamic_type): New function.
57 (resolve_dynamic_bounds): New function.
58 (get_type_length): New function.
59 (check_typedef): Use get_type_length to compute type length.
60 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
61 (TYPE_LOW_BOUND_KIND): New macro.
62 (is_dynamic_type): New function prototype.
63 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
64 to resolve dynamic properties of the type. Update comment.
65 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
67 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
69 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
70 declaring high/low bounds and change uses accordingly. Call
71 create_range_type instead of create_static_range_type.
72 * gdbtypes.c (create_range_type): New function.
73 (create_range_type): Convert bounds into struct bound_prop and pass
74 them to create_range_type.
75 * gdbtypes.h (struct bound_prop): New struct.
76 (create_range_type): New function prototype.
77 (struct range_bounds): Use struct bound_prop instead of LONGEST for
78 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
79 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
81 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
83 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
85 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
86 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
87 * ada-lang.c: All uses of create_range_type updated.
88 * coffread.c: All uses of create_range_type updated.
89 * dwarf2read.c: All uses of create_range_type updated.
90 * f-exp.y: All uses of create_range_type updated.
91 * m2-valprint.c: All uses of create_range_type updated.
92 * mdebugread.c: All uses of create_range_type updated.
93 * stabsread.c: All uses of create_range_type updated.
94 * valops.c: All uses of create_range_type updated.
95 * valprint.c: All uses of create_range_type updated.
97 2014-04-10 Pedro Alves <palves@redhat.com>
99 * breakpoint.c (single_step_breakpoints)
100 (single_step_gdbarch): Move up in the file.
101 (one_breakpoint_xfer_memory): New function, factored out from ...
102 (breakpoint_xfer_memory): ... here. Also process single-step
105 2014-04-09 Tristan Gingold <gingold@adacore.com>
107 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
109 (darwin_decode_exception_message): Free port only after use.
111 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
113 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
114 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
115 when setting the size of call_length.
117 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
119 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
120 dereference TYPE_CODE_REF values.
122 2014-04-07 Joel Brobecker <brobecker@adacore.com>
124 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
125 end of warning message.
127 2014-04-03 Doug Evans <dje@google.com>
129 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
130 of stub_comp_unit_die, stub_comp_dir is non-NULL.
132 2014-04-02 Alan Modra <amodra@gmail.com>
134 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
135 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
136 (struct symbol_file_add_from_memory_args): Add size field.
137 (find_vdso_size): New function.
138 (add_vsyscall_page): Attempt to find vdso size.
140 2014-04-01 Doug Evans <dje@google.com>
142 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
144 2014-04-01 Tristan Gingold <gingold@adacore.com>
146 * darwin-nat.c (darwin_encode_reply): Add prototype.
147 (darwin_decode_exception_message): Reply to unknown inferiors.
148 (darwin_decode_message): Handle message by id. Ignore message
150 (darwin_wait): Discard unknown messages, add debug trace.
152 2014-03-31 Doug Evans <dje@google.com>
154 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
157 2014-03-31 Doug Evans <dje@google.com>
159 New option "set print symbol-loading".
161 * solib.c (solib_read_symbols): Only print symbol loading messages
163 (solib_add): If symbol loading is in "brief" mode, notify user
164 symbols are being loaded.
165 (reload_shared_libraries_1): Ditto.
166 * symfile.c (print_symbol_loading_off): New static global.
167 (print_symbol_loading_brief): New static global.
168 (print_symbol_loading_full): New static global.
169 (print_symbol_loading_enums): New static global.
170 (print_symbol_loading): New static global.
171 (print_symbol_loading_p): New function.
172 (symbol_file_add_with_addrs): Only print symbol loading messages
174 (_initialize_symfile): Register "print symbol-loading" set/show
176 * symfile.h (print_symbol_loading_p): Declare.
178 2014-03-30 Doug Evans <xdje42@gmail.com>
180 * infrun.c (set_last_target_status): New function.
181 (handle_inferior_event): Call it.
183 2014-03-30 Doug Evans <xdje42@gmail.com>
185 * inferior.h (enum stop_kind): Improve comment.
187 2014-03-28 Joel Brobecker <brobecker@adacore.com>
189 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
190 a reference, strip the reference layer before calling
191 the lang_ops value_has_mutated callback.
193 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
195 Remove some globals from our parser.
196 * language.c (unk_lang_parser): Add "struct parser_state"
198 * language.h (struct language_defn) <la_parser>: Likewise.
199 * parse.c (expout, expout_size, expout_ptr): Remove variables.
200 (initialize_expout): Add "struct parser_state" argument.
201 Rewrite function to use the parser state.
202 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
203 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
204 write_exp_elt_longcst, write_exp_elt_dblcst,
205 write_exp_elt_decfloatcst, write_exp_elt_type,
206 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
207 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
208 write_dollar_variable): Likewise.
209 (parse_exp_in_context_1): Use parser state.
210 (insert_type_address_space): Add "struct parser_state" argument.
212 (increase_expout_size): New function.
213 * parser-defs.h: Forward declare "struct language_defn" and
214 "struct parser_state".
215 (expout, expout_size, expout_ptr): Remove extern declarations.
216 (parse_gdbarch, parse_language): Rewrite macro declarations to
217 accept the parser state.
218 (struct parser_state): New struct.
219 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
220 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
221 write_exp_elt_decfloatcst, write_exp_elt_type,
222 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
223 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
224 write_exp_msymbol, write_dollar_variable,
225 mark_struct_expression, insert_type_address_space): Add "struct
226 parser_state" argument.
227 (increase_expout_size): New function.
228 * utils.c (do_clear_parser_state): New function.
229 (make_cleanup_clear_parser_state): Likewise.
230 * utils.h (make_cleanup_clear_parser_state): New function
232 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
233 Update calls to write_exp* in order to pass the parser state.
234 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
235 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
236 (i386_stap_parse_special_token_three_arg_disp): Likewise.
237 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
238 * stap-probe.c (stap_parse_register_operand): Likewise.
239 (stap_parse_single_operand): Likewise.
240 (stap_parse_argument_1): Likewise.
241 (stap_parse_argument): Use parser state.
242 * stap-probe.h: Include "parser-defs.h".
243 (struct stap_parse_info) <pstate>: New field.
244 * c-exp.y (parse_type): Rewrite to use parser state.
245 (yyparse): Redefine to c_parse_internal.
246 (pstate): New global variable.
247 (parse_number): Add "struct parser_state" argument.
248 (write_destructor_name): Likewise.
249 (type_exp): Update calls to write_exp* and similars in order to
251 (exp1, exp, variable, qualified_name, space_identifier,
252 typename, typebase): Likewise.
253 (write_destructor_name, parse_number, lex_one_token,
254 classify_name, classify_inner_name, c_parse): Add "struct
255 parser_state" argument. Update function to use parser state.
256 * c-lang.h: Forward declare "struct parser_state".
257 (c_parse): Add "struct parser_state" argument.
258 * ada-exp.y (parse_type): Rewrite macro to use parser state.
259 (yyparse): Redefine macro to ada_parse_internal.
260 (pstate): New variable.
261 (write_int, write_object_renaming, write_var_or_type,
262 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
263 type_int, type_long, type_long_long, type_float, type_double,
264 type_long_double, type_char, type_boolean, type_system_address):
265 Add "struct parser_state" argument.
266 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
267 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
268 var_or_type, aggregate, aggregate_component_list,
269 positional_list, others, component_group,
270 component_associations): Update calls to write_exp* and similar
271 functions in order to use parser state.
272 (ada_parse, write_var_from_sym, write_int,
273 write_exp_op_with_string, write_object_renaming,
274 find_primitive_type, write_selectors, write_ambiguous_var,
275 write_var_or_type, write_name_assoc, type_int, type_long,
276 type_long_long, type_float, type_double, type_long_double,
277 type_char, type_boolean, type_system_address): Add "struct
278 parser_state" argument. Adjust function to use parser state.
279 * ada-lang.c (parse): Likewise.
280 * ada-lang.h: Forward declare "struct parser_state".
281 (ada_parse): Add "struct parser_state" argument.
282 * ada-lex.l (processInt, processReal): Likewise. Adjust all
283 calls to both functions.
284 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
286 (yyparse): Redefine macro to f_parse_internal.
287 (pstate): New variable.
288 (parse_number): Add "struct parser_state" argument.
289 (type_exp, exp, subrange, typebase): Update calls to write_exp*
290 and similars in order to use parser state.
291 (parse_number): Adjust code to use parser state.
293 (f_parse): New function.
294 * f-lang.h: Forward declare "struct parser_state".
295 (f_parse): Add "struct parser_state" argument.
296 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
298 (yyparse): Redefine macro for java_parse_internal.
299 (pstate): New variable.
300 (push_expression_name, push_expression_name, insert_exp): Add
301 "struct parser_state" argument.
302 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
303 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
304 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
305 PostIncrementExpression, PostDecrementExpression,
306 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
307 UnaryExpressionNotPlusMinus, CastExpression,
308 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
309 RelationalExpression, EqualityExpression, AndExpression,
310 ExclusiveOrExpression, InclusiveOrExpression,
311 ConditionalAndExpression, ConditionalOrExpression,
312 ConditionalExpression, Assignment, LeftHandSide): Update
313 calls to write_exp* and similars in order to use parser state.
314 (parse_number): Ajust code to use parser state.
316 (java_parse): New function.
317 (push_variable): Add "struct parser_state" argument. Adjust
318 code to user parser state.
319 (push_fieldnames, push_qualified_expression_name,
320 push_expression_name, insert_exp): Likewise.
321 * jv-lang.h: Forward declare "struct parser_state".
322 (java_parse): Add "struct parser_state" argument.
323 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
325 (yyparse): Redefine macro to m2_parse_internal.
326 (pstate): New variable.
327 (type_exp, exp, fblock, variable, type): Update calls to
328 write_exp* and similars to use parser state.
330 (m2_parse): New function.
331 * m2-lang.h: Forward declare "struct parser_state".
332 (m2_parse): Add "struct parser_state" argument.
333 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
334 * objc-lang.h: Forward declare "struct parser_state".
335 (end_msglist): Add "struct parser_state" argument.
336 * p-exp.y (parse_type): Rewrite macro to use parser state.
337 (yyparse): Redefine macro to pascal_parse_internal.
338 (pstate): New variable.
339 (parse_number): Add "struct parser_state" argument.
340 (type_exp, exp1, exp, qualified_name, variable): Update calls to
341 write_exp* and similars in order to use parser state.
342 (parse_number, yylex): Adjust code to use parser state.
343 (pascal_parse): New function.
344 * p-lang.h: Forward declare "struct parser_state".
345 (pascal_parse): Add "struct parser_state" argument.
346 * go-exp.y (parse_type): Rewrite macro to use parser state.
347 (yyparse): Redefine macro to go_parse_internal.
348 (pstate): New variable.
349 (parse_number): Add "struct parser_state" argument.
350 (type_exp, exp1, exp, variable, type): Update calls to
351 write_exp* and similars in order to use parser state.
352 (parse_number, lex_one_token, classify_name, yylex): Adjust code
354 (go_parse): Likewise.
355 * go-lang.h: Forward declare "struct parser_state".
356 (go_parse): Add "struct parser_state" argument.
358 2014-03-27 Doug Evans <dje@google.com>
360 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
362 2014-03-27 Doug Evans <dje@google.com>
364 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
365 Remove argument abbrev_section. All callers updated.
367 2014-03-27 Doug Evans <dje@google.com>
369 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
370 addr_base, ranges_base.
372 2014-03-26 Keith Seitz <keiths@redhat.com>
374 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
375 types, not VAR_DOMAIN.
377 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
379 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
381 * features/nios2-linux.c: Regenerated.
382 * features/nios2.c: Regenerated.
384 2014-03-25 Pedro Alves <palves@redhat.com>
386 * cli/cli-script.c (script_from_file): Force the interpreter to
389 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
391 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
392 small stack allocation.
394 2014-03-24 Tristan Gingold <gingold@adacore.com>
396 * darwin-nat.c (exc_server): Remove unused prototype.
397 (darwin_dump_message): Correctly display data on x86_64.
398 (darwin_encode_reply): Fix style.
399 Add comments and fix indentation.
401 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
403 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
405 2014-03-22 Doug Evans <xdje42@gmail.com>
407 * infcmd.c: Whitespace fixes.
408 (interrupt_command): Merge two function comments into one.
410 2014-03-22 Doug Evans <xdje42@gmail.com>
412 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
415 2014-03-22 Yao Qi <yao@codesourcery.com>
417 * remote.c (target_read_live_memory): Remove.
418 (memory_xfer_live_readonly_partial): Rename it to
419 remote_xfer_live_readonly_partial. Remove argument 'object'.
420 All callers updated. Call remote_read_bytes_1
421 instead of target_read_live_memory.
422 * tracepoint.c (set_traceframe_number): Remove.
423 (make_cleanup_restore_traceframe_number): Likewise .
424 * tracepoint.h (set_traceframe_number): Remove declaration.
425 (make_cleanup_restore_traceframe_number): Likewise.
427 2014-03-22 Yao Qi <yao@codesourcery.com>
429 * remote.c (remote_read_bytes): Move code on reading from the
431 (remote_read_bytes_1): ... here. New function.
433 2014-03-22 Yao Qi <yao@codesourcery.com>
435 * ctf.c (ctf_xfer_partial): Check the return value of
436 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
437 return TARGET_XFER_UNAVAILABLE.
438 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
439 * target.c (target_read_live_memory): Move it to remote.c.
440 (memory_xfer_live_readonly_partial): Likewise.
441 (memory_xfer_partial_1): Move some code to remote_read_bytes.
442 * remote.c (target_read_live_memory): Moved from target.c.
443 (memory_xfer_live_readonly_partial): Likewise.
444 (remote_read_bytes): Factored out from
445 memory_xfer_partial_1.
447 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
449 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
452 2014-03-21 Pedro Alves <palves@redhat.com>
454 * infrun.c (normal_stop): Extend comment.
456 2014-03-21 Hui Zhu <hui@codesourcery.com>
457 Pedro Alves <palves@redhat.com>
459 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
461 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
462 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
463 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
465 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
467 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
468 `z' formatted output modifier.
470 2014-03-20 Tom Tromey <tromey@redhat.com>
471 Sergio Durigan Junior <sergiodj@redhat.com>
473 * probe.c (parse_probes): Turn assert into an ordinary error.
474 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
475 exceptions when parsing probes. Rearrange the code for clarity.
477 2014-03-20 Tom Tromey <tromey@redhat.com>
480 * top.c (execute_command): Only dispatch events if the command
483 2014-03-20 Tom Tromey <tromey@redhat.com>
486 * infcall.c: Include event-top.h.
487 (run_inferior_call): Call async_disable_stdin if needed.
489 2014-03-20 Pedro Alves <palves@redhat.com>
491 * infrun.c (prepare_to_proceed): Delete.
492 (thread_still_needs_step_over): New function.
493 (find_thread_needs_step_over): New function.
494 (proceed): If the current thread needs a step-over, set its
495 steping_over_breakpoint flag. Adjust to use
496 find_thread_needs_step_over instead of prepare_to_proceed.
497 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
498 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
500 (switch_back_to_stepped_thread): Step over breakpoints of all
501 threads not the stepping thread, before switching back to the
504 2014-03-20 Pedro Alves <palves@redhat.com>
506 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
508 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
509 * infrun.c (saved_singlestep_ptid)
510 (stepping_past_singlestep_breakpoint): Delete.
511 (resume): Remove stepping_past_singlestep_breakpoint handling.
512 (proceed): Store the prev_pc of the stepping thread too.
513 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
515 (enum infwait_states): Delete infwait_thread_hop_state.
516 (struct execution_control_state) <hit_singlestep_breakpoint>: New
518 (handle_inferior_event): Adjust.
519 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
520 handling and the thread-hop code. Before removing single-step
521 breakpoints, check whether the thread hit a single-step breakpoint
522 of another thread. If it did, the trap is not a random signal.
523 (switch_back_to_stepped_thread): If the event thread hit a
524 single-step breakpoint, unblock it before switching to the
525 stepping thread. Handle the case of the stepped thread having
527 (keep_going): Handle the case of the current thread moving past a
528 single-step breakpoint.
530 2014-03-20 Pedro Alves <palves@redhat.com>
533 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
534 are being stepped over.
535 (breakpoint_address_match): Make extern.
536 * breakpoint.h (breakpoint_address_match): New declaration.
537 * inferior.h (stepping_past_instruction_at): New declaration.
538 * infrun.c (struct step_over_info): New type.
539 (step_over_info): New global.
540 (set_step_over_info, clear_step_over_info)
541 (stepping_past_instruction_at): New functions.
542 (handle_inferior_event): Clear the step-over info when
543 trap_expected is cleared.
544 (resume): Remove now stale comment.
545 (clear_proceed_status): Clear step-over info.
546 (proceed): Adjust step-over handling to set or clear the step-over
547 info instead of removing all breakpoints.
548 (handle_signal_stop): When setting up a thread-hop, don't remove
550 (stop_stepping): Clear step-over info.
551 (keep_going): Adjust step-over handling to set or clear step-over
552 info and then always inserting breakpoints, instead of removing
553 all breakpoints when stepping over one.
555 2014-03-20 Pedro Alves <palves@redhat.com>
557 * infrun.c (previous_inferior_ptid): Adjust comment.
558 (deferred_step_ptid): Delete.
559 (infrun_thread_ptid_changed, prepare_to_proceed)
560 (init_wait_for_inferior): Adjust.
561 (handle_signal_stop): Delete deferred_step_ptid handling.
563 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
566 * defs.h (sync_quit_force_run): New declaration.
567 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
568 * event-top.c (async_sigterm_handler): New declaration.
569 (async_sigterm_token): New variable.
570 (async_init_signals): Create also async_sigterm_token.
571 (async_sigterm_handler): New function.
572 (sync_quit_force_run): New variable.
573 (handle_sigterm): Replace quit_force call by other calls.
574 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
576 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
578 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
579 offset into SPE pseudo registers.
581 2014-03-18 Pedro Alves <palves@redhat.com>
584 * inferior.h (print_stop_event): Declare.
585 * infrun.c (print_stop_event): New, factored out from ...
586 (normal_stop): ... this.
587 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
588 of bpstat_print/print_stack_frame.
590 2014-03-17 Tom Tromey <tromey@redhat.com>
592 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
594 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
596 * ada-lang.c (decode_constrained_packed_array): Perform a
597 minimal coercion for reference with coerce_ref instead of
600 2014-03-17 Tristan Gingold <gingold@adacore.com>
602 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
603 (darwin_solib_create_inferior_hook): Emit a warning if version
606 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
608 * python/py-value.c (get_field_flag): Cast flag_name argument to
609 PyObject_GetAttrString to support Python 2.4.
611 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
613 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
614 (Global Maintainers): Remove Jan Kratochvil.
616 2014-03-14 Pedro Alves <palves@redhat.com>
618 * inferior.h (terminal_ours_for_output): Rename to ...
619 (child_terminal_ours_for_output): ... this.
620 (terminal_save_ours): Rename to ...
621 (child_terminal_save_ours): ... this.
622 (terminal_ours): Rename to ...
623 (child_terminal_ours): ... this.
624 (terminal_inferior): Rename to ...
625 (child_terminal_inferior): ... this.
626 (terminal_init_inferior): Rename to ...
627 (child_terminal_init_inferior): ... this.
628 (terminal_init_inferior_with_pgrp): Rename to ...
629 (child_terminal_init_inferior_with_pgrp): ... this.
630 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
631 (child_terminal_init_with_pgrp): ... this.
632 (terminal_save_ours): Rename to ...
633 (child_terminal_save_ours): ... this.
634 (terminal_init_inferior): Rename to ...
635 (child_terminal_init): ... this. Adjust.
636 (terminal_inferior): Rename to ...
637 (child_terminal_inferior): ... this.
638 (terminal_ours_for_output): Rename to ...
639 (child_terminal_ours_for_output): ... this. Adjust.
640 (terminal_ours): Rename to ...
641 (child_terminal_ours): ... this.
642 (terminal_ours_1): Rename to ...
643 (child_terminal_ours_1): ... this. Adjust.
644 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
645 * windows-nat.c (do_initial_windows_stuff): Adjust.
646 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
647 (gnu_terminal_init): ... this. Adjust.
648 (gnu_target): Adjust.
649 * inf-child.c (inf_child_target): Adjust.
651 2014-03-13 Doug Evans <xdje42@gmail.com>
654 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
657 2014-03-13 Doug Evans <xdje42@gmail.com>
659 * value.c (record_latest_value): Call release_value_or_incref
660 instead of release_value.
662 2014-03-13 Pedro Alves <palves@redhat.com>
664 * procfs.c (procfs_target): Don't override to_shortname,
665 to_longname or to_doc.
667 2014-03-13 Pedro Alves <palves@redhat.com>
669 * inf-child.c (inf_child_open, inf_child_target): Don't mention
670 Unix in user visible strings.
672 2014-03-12 Stan Shebs <stan@codesourcery.com>
674 * gdbtypes.h: Annotate comments for Doxygen, add a page
675 block comment with some general info.
677 2014-03-12 Pedro Alves <palves@redhat.com>
679 * infcmd.c (prepare_execution_command): New function, factored out
680 from several execution commands.
681 (run_command_1, continue_command, step_1, jump_command)
682 (signal_command, until_command, advance_command, finish_command)
683 (attach_command): Use prepare_execution_command.
685 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
687 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
690 (struct arm_linux_thread_points): Removed.
691 (struct arm_linux_process_info): New.
692 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
693 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
694 (arm_linux_find_breakpoints_by_tid): Removed.
695 (struct arch_lwp_info): New.
696 (arm_linux_find_process_pid): New functions.
697 (arm_linux_add_process): New functions.
698 (arm_linux_process_info_get): New functions.
699 (arm_linux_forget_process): New function.
700 (arm_linux_get_debug_reg_state): New function.
701 (struct update_registers_data): New.
702 (update_registers_callback): New function.
703 (arm_linux_insert_hw_breakpoint1): Updated.
704 (arm_linux_remove_hw_breakpoint1): Updated.
705 (arm_linux_insert_hw_breakpoint): Updated.
706 (arm_linux_remove_hw_breakpoint): Updated.
707 (arm_linux_insert_watchpoint): Updated.
708 (arm_linux_remove_watchpoint): Updated.
709 (arm_linux_new_thread): Updated.
710 (arm_linux_prepare_to_resume): New function.
711 (arm_linux_new_fork): New function.
712 (_initialize_arm_linux_nat): Updated.
714 2014-03-12 Pedro Alves <palves@redhat.com>
716 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
718 2014-03-12 Tom Tromey <tromey@redhat.com>
720 * inf-child.c (return_zero): New function.
721 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
722 * aix-thread.c (aix_thread_inferior_created): New function.
723 (aix_thread_attach): Remove.
724 (init_aix_thread_ops): Don't set to_attach.
725 (_initialize_aix_thread): Register inferior_created observer.
726 * corelow.c (init_core_ops): Don't set to_attach or
728 * exec.c (init_exec_ops): Don't set to_attach or
730 * infcmd.c (run_command_1): Use find_run_target. Make direct
732 (attach_command): Use find_attach_target. Make direct target
734 * record-btrace.c (init_record_btrace_ops): Don't set
736 * record-full.c (record_full_can_async_p, record_full_is_async_p):
738 (init_record_full_ops, init_record_full_core_ops): Update. Don't
739 set to_create_inferior.
740 * target.c (complete_target_initialization): Add assertion.
741 (target_create_inferior): Remove.
742 (find_default_attach, find_default_create_inferior): Remove.
743 (find_attach_target, find_run_target): New functions.
744 (find_default_is_async_p, find_default_can_async_p)
745 (target_supports_non_stop, target_attach): Remove.
746 (init_dummy_target): Don't set to_create_inferior or
747 to_supports_non_stop.
748 * target.h (struct target_ops) <to_attach>: Add comment. Remove
750 <to_create_inferior>: Add comment.
751 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
752 TARGET_DEFAULT_RETURN.
753 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
754 (find_attach_target, find_run_target): Declare.
755 (target_create_inferior): Remove.
756 (target_has_execution_1): Update comment.
757 (target_supports_non_stop): Remove.
758 * target-delegates.c: Rebuild.
760 2014-03-12 Pedro Alves <palves@redhat.com>
762 * inf-child.h: Update comment to not mention Unix.
764 2014-03-12 Pedro Alves <palves@redhat.com>
766 * inf-child.c: Update top comment to not mention Unix. Add
767 generic comment describing how this target is meant to be used.
768 (inf_child_post_attach, inf_child_post_startup_inferior)
769 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
772 2014-03-12 Pedro Alves <palves@redhat.com>
774 * nto-procfs.c: Include inf-child.h.
775 (procfs_ops): Delete global.
776 (procfs_can_run): Delete method.
777 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
778 target pointer instead of referencing procfs_ops.
779 (procfs_prepare_to_store): Delete.
780 (init_procfs_ops): Delete function.
781 (procfs_target): New function, based on init_procfs_ops, but
782 inherit inf_child_target.
783 (_initialize_procfs): Use procfs_target.
785 2014-03-12 Pedro Alves <palves@redhat.com>
787 * windows-nat.c: Include inf-child.h.
788 (windows_ops): Delete global.
789 (windows_open, windows_prepare_to_store, windows_can_run): Delete
791 (init_windows_ops): Delete function.
792 (windows_target): New function, based on init_windows_ops, but
793 inherit inf_child_target.
794 (_initialize_windows_nat): Use windows_target. Install x86
795 specific target methods here.
797 2014-03-10 Doug Evans <xdje42@gmail.com>
799 * guile/guile.c (call_initialize_gdb_module): New function.
800 (initialize_guile): Replace call to scm_init_guile with call to
803 2014-03-10 Joel Brobecker <brobecker@adacore.com>
805 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
806 in call to TYPE_CODE macro.
808 2014-03-10 Jerome Guitton <guitton@adacore.com>
810 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
811 Resolve tagged types to full view.
813 2014-03-10 Hui Zhu <hui@codesourcery.com>
815 * target.h (target_insert_breakpoint): Remove "hardware" from its
818 2014-03-07 Doug Evans <dje@google.com>
820 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
822 2014-03-07 Doug Evans <dje@google.com>
824 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
825 Remove unused local comp_dir_attr. Assert exactly one of
826 stub_comp_unit_die, stub_comp_dir is non-NULL.
828 2014-03-07 Joel Brobecker <brobecker@adacore.com>
830 * target.h (complete_target_initialization, add_target):
833 2014-03-07 Pedro Alves <palves@redhat.com>
835 * go32-nat.c: Include inf-child.h.
836 (go32_ops): Delete global.
837 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
839 (go32_create_inferior): Push the passed in target pointer instead
840 of referencing go32_ops.
841 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
842 (go32_target): New function, based on init_go32_ops, but inherit
844 (_initialize_go32_nat): Use go32_target. Move parts of
847 2014-03-06 Joel Brobecker <brobecker@adacore.com>
849 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
850 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
851 SYMBOL_VALUE_ADDRESS.
852 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
854 2014-03-06 Yao Qi <yao@codesourcery.com>
856 * breakpoint.c (get_tracepoint_by_number): Remove argument
857 optional_p. All callers updated. Adjust comments. Update
859 * breakpoint.h (get_tracepoint_by_number): Update declaration.
861 2014-03-06 Yao Qi <yao@codesourcery.com>
863 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
864 early if get_number returns zero. Use 'p' instead of 'args'.
866 2014-03-06 Yao Qi <yao@codesourcery.com>
868 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
871 2014-03-06 Yao Qi <yao@codesourcery.com>
874 * tracepoint.c (check_trace_running): New function.
875 (trace_find_command): Move code to check_trace_running and
876 call check_trace_running.
877 (trace_find_pc_command): Likewise.
878 (trace_find_tracepoint_command): Likewise.
879 (trace_find_line_command): Likewise.
880 (trace_find_range_command): Likewise.
881 * tracepoint.h (check_trace_running): Likewise.
882 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
884 2014-03-06 Yao Qi <yao@codesourcery.com>
886 * target.h (struct target_ops) <to_traceframe_info>: Use
887 TARGET_DEFAULT_NORETURN (tcomplain ()).
888 * target-delegates.c: Regenerated.
890 2014-03-05 Pedro Alves <palves@redhat.com>
893 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
894 void. Update comment.
895 (dcache_xfer_memory): Delete.
896 (dcache_read_memory_partial): New, based on the read bits of
898 (dcache_update): Add status parameter. Use ULONGEST for len, and
899 adjust. Discard cache lines if the reason for the update was
901 * dcache.h (dcache_xfer_memory): Delete declaration.
902 (dcache_read_memory_partial): New declaration.
903 (dcache_update): Update prototype.
904 * target.c (raw_memory_xfer_partial): Update the dcache here.
905 (memory_xfer_partial_1): Don't handle dcache writes here.
907 2014-03-05 Mike Frysinger <vapier@gentoo.org>
909 * remote-sim.c (gdbsim_load): Add const to prog.
911 2014-03-03 Tom Tromey <tromey@redhat.com>
913 * elfread.c (probe_key): Change to bfd_data.
914 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
915 now per-BFD, not per-objfile.
916 * stap-probe.c (stap_probe_destroy): Update comment.
917 (handle_stap_probe): Allocate on the per-BFD obstack.
919 2014-03-03 Tom Tromey <tromey@redhat.com>
921 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
922 * breakpoint.c (create_longjmp_master_breakpoint): Use
924 (add_location_to_breakpoint, bkpt_probe_insert_location)
925 (bkpt_probe_remove_location): Update.
926 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
927 * elfread.c (elf_symfile_relocate_probe): Remove.
928 (elf_probe_fns): Update.
929 (insert_exception_resume_breakpoint): Change type of "probe"
930 parameter to bound_probe.
931 (check_exception_resume): Update.
932 * objfiles.c (objfile_relocate1): Don't relocate probes.
933 * probe.c (bound_probe_s): New typedef.
934 (parse_probes): Use get_probe_address. Set sal's objfile.
935 (find_probe_by_pc): Return a bound_probe.
936 (collect_probes): Return a VEC(bound_probe_s).
937 (compare_probes): Update.
938 (gen_ui_out_table_header_info): Change type of "probes"
940 (info_probes_for_ops): Update.
941 (get_probe_address): New function.
942 (probe_safe_evaluate_at_pc): Update.
943 * probe.h (struct probe_ops) <get_probe_address>: New field.
944 <set_semaphore, clear_semaphore>: Add objfile parameter.
945 (struct probe) <objfile>: Remove field.
947 <address>: Update comment.
948 (struct bound_probe): New.
949 (find_probe_by_pc): Return a bound_probe.
950 (get_probe_address): Declare.
951 * solib-svr4.c (struct probe_and_action) <address>: New field.
952 (hash_probe_and_action, equal_probe_and_action): Update.
953 (register_solib_event_probe): Add address parameter.
954 (solib_event_probe_at): Update.
955 (svr4_create_probe_breakpoints): Add objfile parameter. Use
957 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
958 (stap_get_probe_address): New function.
959 (stap_can_evaluate_probe_arguments, compute_probe_arg)
960 (compile_probe_arg): Update.
961 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
963 (handle_stap_probe): Don't relocate the probe.
964 (stap_relocate): Remove.
965 (stap_gen_info_probes_table_values): Update.
966 (stap_probe_ops): Remove stap_relocate.
967 * symfile-debug.c (debug_sym_relocate_probe): Remove.
968 (debug_sym_probe_fns): Update.
969 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
970 * symtab.c (init_sal): Use memset.
971 * symtab.h (struct symtab_and_line) <objfile>: New field.
972 * tracepoint.c (start_tracing, stop_tracing): Update.
974 2014-03-03 Tom Tromey <tromey@redhat.com>
976 * probe.h (parse_probes, find_probe_by_pc)
977 (find_probes_in_objfile): Fix comments.
979 2014-03-02 Doug Evans <xdje42@gmail.com>
981 * infrun.c (handle_signal_stop): Replace test for
982 TARGET_WAITKIND_STOPPED with an assert.
984 2014-03-02 Doug Evans <xdje42@gmail.com>
986 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
988 2014-03-02 Doug Evans <xdje42@gmail.com>
990 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
992 2014-03-01 Mark Kettenis <kettenis@gnu.org>
994 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
996 2014-03-01 Mark Kettenis <kettenis@gnu.org>
998 * i386obsd-nat.c: Include "obsd-nat.h".
999 (_initialize_i386obsd_nat): Call obsd_add_target instead of
1001 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
1003 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1005 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
1007 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1009 * mips64obsd-nat.c: Include "obsd-nath".
1010 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
1012 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
1014 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1016 * amd64obsd-nat.c: Include "obsd-nat,h.
1017 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
1019 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
1021 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
1023 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
1024 (find_overload_match): Update call to find_oload_champ.
1025 (find_oload_champ_namespace_loop): Likewise
1027 2014-02-28 Mark Kettenis <kettenis@gnu.org>
1029 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
1031 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
1032 * config/sparc/obsd64.mh: New file.
1033 * sparc64obsd-nat.c: New file.
1035 * obsd-nat.h: New file.
1036 * obsd-nat.c: New file.
1037 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
1038 (ALLDEPFILES): Add obsd-nat.c.
1040 2014-02-28 Tom Tromey <tromey@redhat.com>
1042 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
1043 * cli-out.h (cli_ui_out_impl): Now const.
1044 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
1045 * ui-out.c (struct ui_out) <impl>: Now const.
1046 (default_ui_out_impl): Now const.
1047 (ui_out_new): Make 'impl' parameter const.
1048 * ui-out.h (ui_out_new): Update.
1050 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1052 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
1054 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1056 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
1058 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1060 Additional PR 8882 fix.
1061 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
1063 2014-02-27 Pedro Alves <palves@redhat.com>
1065 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
1068 2014-02-27 Pedro Alves <palves@redhat.com>
1071 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
1072 * nat/linux-waitpid.c: Include string.h.
1073 (status_to_str): Moved here and made extern.
1074 * nat/linux-waitpid.h (status_to_str): New declaration.
1076 2014-02-27 Hui Zhu <hui@codesourcery.com>
1079 * infrun.c (ptid_match): Move ...
1080 * common/ptid.c (ptid_match): ... here.
1081 * inferior.h (ptid_match): Move ...
1082 * common/ptid.h (ptid_match): ... here.
1084 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1086 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
1087 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
1090 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1092 * obsd-tdep.c (obsd_auxv_parse): New function.
1093 (obsd_init_abi): Set auxv_parse.
1095 * gdbarch.sh (auxv_parse): New.
1096 * gdbarch.h: Regenerated.
1097 * gdbarch.c: Regenerated.
1098 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
1100 2014-02-26 Ludovic Courtès <ludo@gnu.org>
1102 * guile/scm-value.c (gdbscm_history_append_x): New function.
1103 (value_functions): Add it.
1105 2014-02-27 Joel Brobecker <brobecker@adacore.com>
1107 * dwarf2read.c (attr_value_as_address): New function.
1108 (dwarf2_find_base_address, read_call_site_scope): Use
1109 attr_value_as_address in place of DW_ADDR.
1110 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
1111 the low and high addresses. Slight rework of the handling
1112 of the high pc being a constant form, and limit it to
1113 DWARF verson 4 or higher.
1114 (dwarf2_record_block_ranges): Likewise.
1115 (read_partial_die): Likewise.
1116 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
1118 2014-02-26 Tom Tromey <tromey@redhat.com>
1120 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
1122 2014-02-26 Tom Tromey <tromey@redhat.com>
1124 * elfread.c (elf_read_minimal_symbols): Return early if
1125 minimal symbols have already been read. Add "ei" parameter.
1126 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
1127 * minsyms.c (prim_record_minimal_symbol_full): Update.
1128 * objfiles.h (struct objstats) <n_minsyms>: Move...
1129 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
1130 * symmisc.c (print_objfile_statistics): Update.
1132 2014-02-26 Tom Tromey <tromey@redhat.com>
1134 * elfread.c (elf_read_minimal_symbols): New function, from
1136 (elf_symfile_read): Call it.
1138 2014-02-26 Tom Tromey <tromey@redhat.com>
1140 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
1141 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
1142 (lookup_minimal_symbol_solib_trampoline)
1143 (lookup_minimal_symbol_by_pc_section_1)
1144 (lookup_minimal_symbol_and_objfile): Update.
1145 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
1146 Don't allocate a minimal symbol if minsyms have already been read.
1147 (build_minimal_symbol_hash_tables): Update.
1148 (install_minimal_symbols): Do nothing if minsyms already read.
1149 Use the per-BFD obstack.
1150 (terminate_minimal_symbol_table): Use the per-BFD obstack.
1151 * objfiles.c (allocate_objfile): Call
1152 terminate_minimal_symbol_table later.
1153 (have_minimal_symbols): Update.
1154 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
1155 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
1156 Move from struct objfile.
1157 <minsyms_read>: New field.
1158 (struct objfile) <msymbols, minimal_symbol_count,
1159 msymbol_hash, msymbol_demangled_hash>: Move.
1160 (ALL_OBJFILE_MSYMBOLS): Update.
1161 * symfile.c (read_symbols): Set minsyms_read.
1162 (reread_symbols): Update.
1163 * symmisc.c (dump_objfile, dump_msymbols): Update.
1165 2014-02-26 Tom Tromey <tromey@redhat.com>
1167 * minsyms.c (msymbols_sort): Remove.
1168 * minsyms.h (msymbols_sort): Remove.
1169 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
1170 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
1171 * elfread.c (elf_symtab_read): Don't add section offsets.
1172 * xcoffread.c (record_minimal_symbol): Don't add section offset
1173 to minimal symbol address.
1174 * somread.c (text_offset, data_offset): Remove.
1175 (som_symtab_read): Don't add section offsets to minimal symbol
1177 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
1178 Don't add section offsets to minimal symbols.
1179 * coffread.c (coff_symtab_read): Don't add section offsets
1180 to minimal symbol addresses.
1181 * machoread.c (macho_symtab_add_minsym): Don't add section offset
1182 to minimal symbol addresses.
1183 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
1184 section offset to minimal symbol addresses.
1185 * mdebugread.c (parse_partial_symbols): Don't add section
1186 offset to minimal symbol addresses.
1187 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
1188 offset to minimal symbol addresses.
1190 2014-02-26 Tom Tromey <tromey@redhat.com>
1192 * ada-lang.c (ada_main_name): Update.
1193 (ada_add_standard_exceptions): Update.
1194 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
1195 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
1196 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
1197 * auxv.c (ld_so_xfer_auxv): Update.
1198 * avr-tdep.c (avr_scan_prologue): Update.
1199 * ax-gdb.c (gen_var_ref): Update.
1200 * blockframe.c (get_pc_function_start)
1201 (find_pc_partial_function_gnu_ifunc): Update.
1202 * breakpoint.c (create_overlay_event_breakpoint)
1203 (create_longjmp_master_breakpoint)
1204 (create_std_terminate_master_breakpoint)
1205 (create_exception_master_breakpoint): Update.
1206 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
1207 * c-valprint.c (c_val_print): Update.
1208 * coff-pe-read.c (add_pe_forwarded_sym): Update.
1209 * common/agent.c (agent_look_up_symbols): Update.
1210 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
1211 * dwarf2loc.c (call_site_to_target_addr): Update.
1212 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
1213 * elfread.c (elf_gnu_ifunc_record_cache)
1214 (elf_gnu_ifunc_resolve_by_got): Update.
1215 * findvar.c (default_read_var_value): Update.
1216 * frame.c (inside_main_func): Update.
1217 * frv-tdep.c (frv_frame_this_id): Update.
1218 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
1219 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
1221 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
1222 (hppa_hpux_find_dummy_bpaddr): Update.
1223 * hppa-tdep.c (hppa_symbol_address): Update.
1224 * infcmd.c (until_next_command): Update.
1225 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
1227 * linespec.c (minsym_found, add_minsym): Update.
1228 * linux-nat.c (get_signo): Update.
1229 * linux-thread-db.c (inferior_has_bug): Update.
1230 * m32c-tdep.c (m32c_return_value)
1231 (m32c_m16c_address_to_pointer): Update.
1232 * m32r-tdep.c (m32r_frame_this_id): Update.
1233 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
1234 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
1235 * maint.c (maintenance_translate_address): Update.
1236 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
1237 (frob_address): New function.
1238 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
1239 frob_address. Rename parameter to "pc_in".
1240 (compare_minimal_symbols, compact_minimal_symbols): Use raw
1242 (find_solib_trampoline_target, minimal_symbol_upper_bound):
1244 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
1245 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
1246 * objc-lang.c (find_objc_msgsend): Update.
1247 * objfiles.c (objfile_relocate1): Update.
1248 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
1249 * p-valprint.c (pascal_val_print): Update.
1250 * parse.c (write_exp_msymbol): Update.
1251 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
1252 (ppc_elfv2_skip_entrypoint): Update.
1253 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1254 * printcmd.c (build_address_symbolic, msym_info)
1255 (address_info): Update.
1256 * proc-service.c (ps_pglobal_lookup): Update.
1257 * psymtab.c (find_pc_sect_psymtab_closer)
1258 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
1259 Change msymbol parameter to bound_minimal_symbol.
1260 * ravenscar-thread.c (get_running_thread_id): Update.
1261 * remote.c (remote_check_symbols): Update.
1262 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
1264 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
1265 * solib-dsbt.c (lm_base): Update.
1266 * solib-frv.c (lm_base, main_got): Update.
1267 * solib-irix.c (locate_base): Update.
1268 * solib-som.c (som_solib_create_inferior_hook)
1269 (link_map_start): Update.
1270 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
1271 * solib-svr4.c (elf_locate_base, enable_break): Update.
1272 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
1273 (flush_ea_cache): Update.
1274 * stabsread.c (define_symbol, scan_file_globals): Update.
1275 * stack.c (find_frame_funname): Update.
1276 * symfile-debug.c (debug_qf_expand_symtabs_matching)
1277 (debug_qf_find_pc_sect_symtab): Update.
1278 * symfile.c (simple_read_overlay_table)
1279 (simple_overlay_update): Update.
1280 * symfile.h (struct quick_symbol_functions)
1281 <find_pc_sect_symtab>: Change type of msymbol to
1282 bound_minimal_symbol.
1283 * symmisc.c (dump_msymbols): Update.
1284 * symtab.c (find_pc_sect_symtab_via_partial)
1285 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
1286 (search_symbols, print_msymbol_info): Update.
1287 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
1288 (MSYMBOL_VALUE_ADDRESS): Redefine.
1289 (BMSYMBOL_VALUE_ADDRESS): New macro.
1290 * tracepoint.c (scope_info): Update.
1291 * tui/tui-disasm.c (tui_find_disassembly_address)
1292 (tui_get_begin_asm_address): Update.
1293 * valops.c (find_function_in_inferior): Update.
1294 * value.c (value_static_field, value_fn_field): Update.
1296 2014-02-26 Tom Tromey <tromey@redhat.com>
1298 * ada-lang.c (ada_update_initial_language): Update.
1299 (ada_main_name, ada_has_this_exception_support): Update.
1300 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
1301 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
1302 * arm-tdep.c (arm_skip_stub): Update.
1303 * auxv.c (ld_so_xfer_auxv): Update.
1304 * avr-tdep.c (avr_scan_prologue): Update.
1305 * ax-gdb.c (gen_var_ref): Update.
1306 * breakpoint.c (struct breakpoint_objfile_data)
1307 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
1308 type to bound_minimal_symbol.
1309 (create_overlay_event_breakpoint)
1310 (create_longjmp_master_breakpoint)
1311 (create_std_terminate_master_breakpoint)
1312 (create_exception_master_breakpoint): Update.
1313 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
1314 * c-exp.y (classify_name): Update.
1315 * coffread.c (coff_symfile_read): Update.
1316 * common/agent.c (agent_look_up_symbols): Update.
1317 * d-lang.c (d_main_name): Update.
1318 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
1319 * dec-thread.c (enable_dec_thread): Update.
1320 * dwarf2loc.c (call_site_to_target_addr): Update.
1321 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
1322 * eval.c (evaluate_subexp_standard): Update.
1323 * findvar.c (struct minsym_lookup_data) <result>: Change type
1324 to bound_minimal_symbol.
1326 (minsym_lookup_iterator_cb, default_read_var_value): Update.
1327 * frame.c (inside_main_func): Update.
1328 * frv-tdep.c (frv_frame_this_id): Update.
1329 * gcore.c (call_target_sbrk): Update.
1330 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
1331 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
1333 * go-lang.c (go_main_name): Update.
1334 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
1335 (hppa_hpux_find_import_stub_for_addr): Update.
1336 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
1337 Update. Change return type.
1338 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
1340 * jit.c (jit_breakpoint_re_set_internal): Update.
1341 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
1343 * linux-nat.c (get_signo): Update.
1344 * linux-thread-db.c (inferior_has_bug): Update
1345 * m32c-tdep.c (m32c_return_value)
1346 (m32c_m16c_address_to_pointer): Update.
1347 * m32r-tdep.c (m32r_frame_this_id): Update.
1348 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
1349 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
1350 * minsyms.c (lookup_minimal_symbol_internal): Rename to
1351 lookup_minimal_symbol. Change return type.
1352 (lookup_minimal_symbol): Remove.
1353 (lookup_bound_minimal_symbol): Update.
1354 (lookup_minimal_symbol_text): Change return type.
1355 (lookup_minimal_symbol_solib_trampoline): Change return type.
1356 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
1357 (lookup_minimal_symbol_solib_trampoline): Change return type.
1358 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
1359 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1360 (value_nsstring, find_imps): Update.
1361 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
1362 * p-lang.c (pascal_main_name): Update.
1363 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
1364 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1365 * proc-service.c (ps_pglobal_lookup): Update.
1366 * ravenscar-thread.c (get_running_thread_msymbol): Change
1368 (has_ravenscar_runtime, get_running_thread_id): Update.
1369 * remote.c (remote_check_symbols): Update.
1370 * sol-thread.c (ps_pglobal_lookup): Update.
1371 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
1372 * solib-dsbt.c (lm_base): Update.
1373 * solib-frv.c (lm_base, frv_relocate_section_addresses):
1375 * solib-irix.c (locate_base): Update.
1376 * solib-som.c (som_solib_create_inferior_hook)
1377 (som_solib_desire_dynamic_linker_symbols, link_map_start):
1379 * solib-spu.c (spu_enable_break): Update.
1380 * solib-svr4.c (elf_locate_base, enable_break): Update.
1381 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
1382 (flush_ea_cache): Update.
1383 * stabsread.c (define_symbol): Update.
1384 * symfile.c (simple_read_overlay_table): Update.
1385 * symtab.c (find_pc_sect_line): Update.
1386 * tracepoint.c (scope_info): Update.
1387 * tui-disasm.c (tui_get_begin_asm_address): Update.
1388 * value.c (value_static_field): Update.
1390 2014-02-26 Tom Tromey <tromey@redhat.com>
1392 * minsyms.c (prim_record_minimal_symbol_full): Use
1393 SET_MSYMBOL_VALUE_ADDRESS.
1394 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
1395 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
1396 SET_MSYMBOL_VALUE_ADDRESS.
1397 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
1398 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
1400 2014-02-26 Tom Tromey <tromey@redhat.com>
1402 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
1403 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
1404 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
1405 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
1406 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
1407 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
1408 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
1409 * ada-lang.c (ada_main_name): Update.
1410 (ada_lookup_simple_minsym): Update.
1411 (ada_make_symbol_completion_list): Update.
1412 (ada_add_standard_exceptions): Update.
1413 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
1414 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
1415 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1416 * arm-tdep.c (skip_prologue_function): Update.
1417 (arm_skip_stack_protector, arm_skip_stub): Update.
1418 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1419 (arm_wince_skip_main_prologue): Update.
1420 * auxv.c (ld_so_xfer_auxv): Update.
1421 * avr-tdep.c (avr_scan_prologue): Update.
1422 * ax-gdb.c (gen_var_ref): Update.
1423 * block.c (call_site_for_pc): Update.
1424 * blockframe.c (get_pc_function_start): Update.
1425 (find_pc_partial_function_gnu_ifunc): Update.
1426 * breakpoint.c (create_overlay_event_breakpoint): Update.
1427 (create_longjmp_master_breakpoint): Update.
1428 (create_std_terminate_master_breakpoint): Update.
1429 (create_exception_master_breakpoint): Update.
1430 (resolve_sal_pc): Update.
1431 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
1432 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
1434 * c-valprint.c (c_val_print): Update.
1435 * coff-pe-read.c (add_pe_forwarded_sym): Update.
1436 * coffread.c (coff_symfile_read): Update.
1437 * common/agent.c (agent_look_up_symbols): Update.
1438 * dbxread.c (find_stab_function_addr): Update.
1439 (end_psymtab): Update.
1440 * dwarf2loc.c (call_site_to_target_addr): Update.
1441 (func_verify_no_selftailcall): Update.
1442 (tailcall_dump): Update.
1443 (call_site_find_chain_1): Update.
1444 (dwarf_expr_reg_to_entry_parameter): Update.
1445 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1446 (elf_gnu_ifunc_resolve_by_got): Update.
1447 * f-valprint.c (info_common_command): Update.
1448 * findvar.c (read_var_value): Update.
1449 * frame.c (get_prev_frame_1): Update.
1450 (inside_main_func): Update.
1451 * frv-tdep.c (frv_skip_main_prologue): Update.
1452 (frv_frame_this_id): Update.
1453 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
1454 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1455 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1456 (gnuv3_skip_trampoline): Update.
1457 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
1458 (hppa64_hpux_in_solib_call_trampoline): Update.
1459 (hppa_hpux_skip_trampoline_code): Update.
1460 (hppa64_hpux_search_dummy_call_sequence): Update.
1461 (hppa_hpux_find_import_stub_for_addr): Update.
1462 (hppa_hpux_find_dummy_bpaddr): Update.
1463 * hppa-tdep.c (hppa_symbol_address)
1464 (hppa_lookup_stub_minimal_symbol): Update.
1465 * i386-tdep.c (i386_skip_main_prologue): Update.
1466 (i386_pe_skip_trampoline_code): Update.
1467 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1468 * infcall.c (get_function_name): Update.
1469 * infcmd.c (until_next_command): Update.
1470 * jit.c (jit_breakpoint_re_set_internal): Update.
1471 (jit_inferior_init): Update.
1472 * linespec.c (minsym_found): Update.
1473 (add_minsym): Update.
1474 * linux-fork.c (info_checkpoints_command): Update.
1475 * linux-nat.c (get_signo): Update.
1476 * linux-thread-db.c (inferior_has_bug): Update.
1477 * m32c-tdep.c (m32c_return_value): Update.
1478 (m32c_m16c_address_to_pointer): Update.
1479 (m32c_m16c_pointer_to_address): Update.
1480 * m32r-tdep.c (m32r_frame_this_id): Update.
1481 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
1482 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
1483 * maint.c (maintenance_translate_address): Update.
1484 * minsyms.c (add_minsym_to_hash_table): Update.
1485 (add_minsym_to_demangled_hash_table): Update.
1486 (msymbol_objfile): Update.
1487 (lookup_minimal_symbol): Update.
1488 (iterate_over_minimal_symbols): Update.
1489 (lookup_minimal_symbol_text): Update.
1490 (lookup_minimal_symbol_by_pc_name): Update.
1491 (lookup_minimal_symbol_solib_trampoline): Update.
1492 (lookup_minimal_symbol_by_pc_section_1): Update.
1493 (lookup_minimal_symbol_and_objfile): Update.
1494 (prim_record_minimal_symbol_full): Update.
1495 (compare_minimal_symbols): Update.
1496 (compact_minimal_symbols): Update.
1497 (build_minimal_symbol_hash_tables): Update.
1498 (install_minimal_symbols): Update.
1499 (terminate_minimal_symbol_table): Update.
1500 (find_solib_trampoline_target): Update.
1501 (minimal_symbol_upper_bound): Update.
1502 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
1503 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1504 (mips_skip_pic_trampoline_code): Update.
1505 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1506 * objc-lang.c (selectors_info): Update.
1507 (classes_info): Update.
1508 (find_methods): Update.
1509 (find_imps): Update.
1510 (find_objc_msgsend): Update.
1511 * objfiles.c (objfile_relocate1): Update.
1512 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
1513 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
1514 * p-valprint.c (pascal_val_print): Update.
1515 * parse.c (write_exp_msymbol): Update.
1516 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
1517 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
1518 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1519 * printcmd.c (build_address_symbolic): Update.
1521 (address_info): Update.
1522 * proc-service.c (ps_pglobal_lookup): Update.
1523 * psymtab.c (find_pc_sect_psymtab_closer): Update.
1524 (find_pc_sect_psymtab): Update.
1525 * python/py-framefilter.c (py_print_frame): Update.
1526 * ravenscar-thread.c (get_running_thread_id): Update.
1527 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
1529 * remote.c (remote_check_symbols): Update.
1530 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1531 (rs6000_skip_trampoline_code): Update.
1532 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
1533 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
1534 * solib-dsbt.c (lm_base): Update.
1535 * solib-frv.c (lm_base): Update.
1537 * solib-irix.c (locate_base): Update.
1538 * solib-som.c (som_solib_create_inferior_hook): Update.
1539 (som_solib_desire_dynamic_linker_symbols): Update.
1540 (link_map_start): Update.
1541 * solib-spu.c (spu_enable_break): Update.
1542 (ocl_enable_break): Update.
1543 * solib-svr4.c (elf_locate_base): Update.
1544 (enable_break): Update.
1545 * spu-tdep.c (spu_get_overlay_table): Update.
1546 (spu_catch_start): Update.
1547 (flush_ea_cache): Update.
1548 * stabsread.c (define_symbol): Update.
1549 (scan_file_globals): Update.
1550 * stack.c (find_frame_funname): Update.
1551 (frame_info): Update.
1552 * symfile.c (simple_read_overlay_table): Update.
1553 (simple_overlay_update): Update.
1554 * symmisc.c (dump_msymbols): Update.
1555 * symtab.c (fixup_section): Update.
1556 (find_pc_sect_line): Update.
1557 (skip_prologue_sal): Update.
1558 (search_symbols): Update.
1559 (print_msymbol_info): Update.
1560 (rbreak_command): Update.
1561 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
1562 (completion_list_objc_symbol): Update.
1563 (default_make_symbol_completion_list_break_on): Update.
1564 * tracepoint.c (scope_info): Update.
1565 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
1566 (tui_get_begin_asm_address): Update.
1567 * valops.c (find_function_in_inferior): Update.
1568 * value.c (value_static_field): Update.
1569 (value_fn_field): Update.
1571 2014-02-26 Tom Tromey <tromey@redhat.com>
1573 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
1574 bound minimal symbols. Move code that knows about minsym
1576 * minsyms.c (minimal_symbol_upper_bound): ... here. New
1578 * minsyms.h (minimal_symbol_upper_bound): Declare.
1579 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
1580 minimal_symbol_upper_bound.
1582 2014-02-27 Joel Brobecker <brobecker@adacore.com>
1584 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
1585 Use the type's name if its basic type does not have a tag.
1587 2014-02-27 Joel Brobecker <brobecker@adacore.com>
1589 * dwarf2read.c (read_subrange_type): Add comment.
1591 2014-02-27 Joel Brobecker <brobecker@adacore.com>
1593 * dwarf2read.c (update_enumeration_type_from_children): New
1594 function, mostly extracted from process_structure_scope.
1595 (read_enumeration_type): Call update_enumeration_type_from_children.
1596 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
1597 and flag_flag_enum fields.
1599 2014-02-26 Pedro Alves <palves@redhat.com>
1601 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
1602 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
1603 to_xfer_partial method.
1605 2014-02-26 Pedro Alves <palves@redhat.com>
1607 * target.c (complete_target_initialization): Don't install
1608 default_xfer_partial as to_xfer_partial hook.
1610 (update_current_target): Don't INHERIT nor de_fault
1611 deprecated_xfer_memory. Delete de_fault macro.
1612 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
1613 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
1614 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
1617 2014-02-26 Pedro Alves <palves@redhat.com>
1619 * go32-nat.c (my_write_child): New function.
1620 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
1621 (go32_xfer_partial): New function.
1622 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
1623 Instead install a to_xfer_partial hook.
1625 2014-02-26 Pedro Alves <palves@redhat.com>
1627 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
1628 to_xfer_partial helper. Rewrite.
1629 (procfs_xfer_partial): New function.
1630 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
1631 Install a to_xfer_partial hook.
1633 2014-02-26 Pedro Alves <palves@redhat.com>
1635 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
1636 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
1637 (m32r_xfer_partial): New function.
1638 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
1639 Install a to_xfer_partial hook.
1641 2014-02-26 Pedro Alves <palves@redhat.com>
1643 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
1645 (mips_xfer_partial): New function.
1646 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
1647 hook. Install a to_xfer_partial hook.
1649 2014-02-26 Joel Brobecker <brobecker@adacore.com>
1651 * gdbtypes.h (create_array_type_with_stride): Add declaration.
1652 * gdbtypes.c (create_array_type_with_stride): New function,
1653 renaming create_array_type, but with an added parameter
1654 called "bit_stride".
1655 (create_array_type): Re-implement using
1656 create_array_type_with_stride.
1657 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
1658 and DW_AT_bit_stride attributes.
1660 2014-02-26 Pedro Alves <palves@redhat.com>
1662 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
1663 task-specific breakpoints.
1665 2014-02-25 Pedro Alves <palves@redhat.com>
1667 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
1668 handling of object == TARGET_OBJECT_UNWIND_TABLE.
1670 2014-02-25 Stan Shebs <stan@codesourcery.com>
1672 * defs.h: Annotate comments for Doxygen.
1674 2014-02-25 Tom Tromey <tromey@redhat.com>
1676 * target.h (target_ignore): Don't declare.
1677 * target.c (target_ignore): Remove.
1679 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1682 * auto-load.c (auto_load_objfile_script_1): Change filename to
1685 2014-02-25 Joel Brobecker <brobecker@adacore.com>
1687 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
1688 documentation. Adjust prototype to match the target_ops
1689 to_xfer_partial method. Adjust implementation accordingly.
1691 2014-02-25 Hui Zhu <hui@codesourcery.com>
1693 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
1696 2014-02-25 Kevin Buettner <kevinb@redhat.com>
1698 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
1699 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
1700 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
1701 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
1702 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
1703 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
1704 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
1705 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
1707 (rl78_register_type): Use a data pointer type for SP and
1708 new pseudo registers mentioned above. Use a 16 bit integer
1709 type for all other register pairs.
1710 (rl78_register_name, rl78_g10_register_name): Update for
1711 new pseudo registers.
1712 (rl78_pseudo_register_read): Likewise.
1713 (rl78_pseudo_register_write): Likewise.
1714 (rl78_dwarf_reg_to_regnum): Return register numbers representing
1715 to the newly added pseudo registers.
1717 2014-02-24 Doug Evans <dje@google.com>
1719 * value.c (record_latest_value): Fix comment.
1720 * printcmd.c (print_command_1): Remove code to handle -1 return from
1721 record_latest_value.
1723 2014-02-24 Pedro Alves <palves@redhat.com>
1725 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
1726 deprecated_xfer_memory hook.
1727 (procfs_xfer_partial): Call procfs_xfer_memory instead
1728 of the deprecated_xfer_memory target hook.
1729 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
1732 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
1734 * windows-nat.c (windows_xfer_shared_libraries): Return
1735 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
1736 requested object is TARGET_OBJECT_LIBRARIES.
1738 2014-02-24 Yao Qi <yao@codesourcery.com>
1740 * target.h (enum target_xfer_status)
1741 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
1742 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
1744 * corefile.c (memory_error_message): User updated.
1745 * exec.c (section_table_read_available_memory): Likewise.
1746 * record-btrace.c (record_btrace_xfer_partial): Likewise.
1747 * target.c (target_xfer_status_to_string): Likewise.
1748 (raw_memory_xfer_partial): Likewise.
1749 (memory_xfer_partial_1, target_xfer_partial): Likewise.
1750 * valops.c (read_value_memory): Likewise.
1751 * exec.h: Update comments.
1753 2014-02-24 Yao Qi <yao@codesourcery.com>
1755 * target.c (target_xfer_status_to_string): Rename argument err
1757 * target.h (target_xfer_status_to_string): Update declaration.
1758 Replace target_xfer_error_to_string with
1759 target_xfer_status_to_string in comment.
1761 2014-02-24 Yao Qi <yao@codesourcery.com>
1763 * mips-linux-nat.c (super_close): Update its type.
1764 (mips_linux_close): Pass 'self' to super_close.
1766 2014-02-24 Yao Qi <yao@codesourcery.com>
1768 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
1769 * corefile.c (read_memory): Adjusted.
1770 * target.c (target_write_with_progress): Adjusted.
1772 2014-02-23 Yao Qi <yao@codesourcery.com>
1776 2013-10-25 Yao Qi <yao@codesourcery.com>
1778 * remote.c (remote_traceframe_info): Return early if
1779 traceframe is not selected.
1781 2013-07-19 Yao Qi <yao@codesourcery.com>
1783 * target.c (update_current_target): Change the default action
1784 of 'to_traceframe_info' from tcomplain to return_zero.
1785 * target.h (struct target_ops) <to_traceframe_info>: Add more
1788 2014-02-23 Yao Qi <yao@codesourcery.com>
1790 * valops.c (read_value_memory): Rewrite it. Call
1791 target_xfer_partial in a loop.
1792 * exec.h (section_table_available_memory): Remove declaration.
1793 Move comments to ...
1794 * exec.c (section_table_available_memory): ... here. Make it
1797 2014-02-23 Yao Qi <yao@codesourcery.com>
1799 * exec.c (section_table_read_available_memory): New function.
1800 * exec.h (section_table_read_available_memory): Declare.
1801 * ctf.c (ctf_xfer_partial): Call
1802 section_table_read_available_memory.
1803 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
1805 2014-02-23 Yao Qi <yao@codesourcery.com>
1807 * ctf.c (ctf_xfer_partial): Move code to ...
1808 * exec.c (exec_read_partial_read_only): ... it. New function.
1809 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
1810 * tracefile.c: Include "exec.h".
1811 * exec.h (exec_read_partial_read_only): Declare.
1813 2014-02-23 Yao Qi <yao@codesourcery.com>
1815 * tracefile-tfile.c (tfile_has_all_memory): Remove.
1816 (tfile_has_memory): Remove.
1817 (init_tfile_ops): Don't set fields to_has_all_memory and
1818 to_has_memory of tfile_ops.
1819 * tracefile.c (tracefile_has_all_memory): New function.
1820 (tracefile_has_memory): New function.
1821 (init_tracefile_ops): Initialize fields to_has_all_memory and
1822 to_has_memory of 'ops'.
1824 2014-02-23 Yao Qi <yao@codesourcery.com>
1826 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
1827 (ctf_thread_alive, ctf_get_trace_status): Remove.
1828 (init_ctf_ops): Don't set some fields of ctf_ops. Call
1830 * tracefile-tfile.c (tfile_get_trace_status): Remove.
1831 (tfile_has_stack, tfile_has_registers): Remove.
1832 (tfile_thread_alive): Remove.
1833 (init_tfile_ops): Don't set some fields of tfile_ops. Call
1835 * tracefile.c (tracefile_has_stack): New function.
1836 (tracefile_has_registers): New function.
1837 (tracefile_thread_alive): New function.
1838 (tracefile_get_trace_status): New function.
1839 (init_tracefile_ops): New function.
1840 * tracefile.h (init_tracefile_ops): Declare.
1842 2014-02-23 Yao Qi <yao@codesourcery.com>
1844 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
1845 (O_LARGEFILE): Likewise.
1846 (tfile_ops): Likewise.
1847 (TRACE_HEADER_SIZE): Likewise.
1848 (trace_fd, trace_frames_offset, cur_offset): Likewise.
1849 (cur_data_size): Likewise.
1850 (tfile_read, tfile_open, tfile_interp_line): Likewise.
1851 (tfile_close, tfile_files_info): Likewise.
1852 (tfile_get_trace_status): Likewise.
1853 (tfile_get_tracepoint_status): Likewise.
1854 (tfile_get_traceframe_address): Likewise.
1855 (tfile_trace_find, match_blocktype): Likewise.
1856 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
1857 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
1858 (tfile_get_trace_state_variable_value): Likewise.
1859 (tfile_has_all_memory, tfile_has_memory): Likewise.
1860 (tfile_has_stack, tfile_has_registers): Likewise.
1861 (tfile_thread_alive, build_traceframe_info): Likewise.
1862 (tfile_traceframe_info, init_tfile_ops): Likewise.
1863 (_initialize_tracepoint): Don't call init_tfile_ops
1864 and add_target_with_completer.
1865 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
1866 exec.h, completer.h and filenames.h.
1867 (_initialize_tracefile_tfile): New function.
1869 2014-02-23 Yao Qi <yao@codesourcery.com>
1871 * Makefile.in (REMOTE_OBS): Append tracefile.o and
1873 (HFILES_NO_SRCDIR): Add tracefile.h.
1874 * ctf.c: Include "tracefile.h".
1875 * tracefile.h: New file.
1876 * tracefile.c: New file
1877 * tracefile-tfile.c: New file.
1878 * tracepoint.c: Include "tracefile.h".
1879 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
1880 (stop_reason_names): Add const.
1881 (trace_file_writer_xfree): Move it to tracefile.c.
1882 (trace_save, trace_save_command, trace_save_tfile): Likewise.
1883 (trace_save_ctf): Likewise.
1884 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
1885 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
1886 (tfile_write_header, tfile_write_regblock_type): Likewise.
1887 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
1888 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
1889 (tfile_write_raw_data, tfile_end): Likewise.
1890 (tfile_trace_file_writer_new): Likewise.
1891 (free_uploaded_tp): Make it extern.
1892 (free_uploaded_tsv): Make it extern.
1893 (_initialize_tracepoint): Move code to register command 'tsave'
1895 * tracepoint.h (stop_reason_names): Declare.
1896 (struct trace_frame_write_ops): Move it to tracefile.h.
1897 (struct trace_file_write_ops): Likewise.
1898 (struct trace_file_writer): Likewise.
1899 (free_uploaded_tsvs, free_uploaded_tps): Declare.
1901 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1904 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
1906 (get_cores_used_by_process): New parameter num_cores, use it.
1907 (linux_xfer_osdata_processes): Pass num_cores to it.
1908 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
1911 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
1913 * target.c (memory_xfer_partial): Fix length arg in call to
1914 breakpoint_xfer_memory.
1916 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
1919 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
1920 number comes after the + or - signs. Adjust length of register
1921 name to be extracted.
1923 2014-02-20 Tom Tromey <tromey@redhat.com>
1925 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
1926 (ada_varobj_ops): Mark "extern".
1928 2014-02-20 Tom Tromey <tromey@redhat.com>
1930 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
1932 2014-02-20 Doug Evans <xdje42@gmail.com>
1934 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
1935 All callers updated.
1936 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
1937 All callers updated.
1938 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
1939 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
1941 2014-02-20 lin zuojian <manjian2006@gmail.com>
1942 Joel Brobecker <brobecker@adacore.com>
1943 Doug Evans <xdje42@gmail.com>
1946 * dwarf2read.c (struct die_info): New member in_process.
1947 (reset_die_in_process): New function.
1948 (process_die): Set it at the start, reset when returning.
1949 (inherit_abstract_dies): Only call process_die if origin_child_die
1950 not already being processed.
1952 2014-02-20 Joel Brobecker <brobecker@adacore.com>
1954 * windows-nat.c (handle_unload_dll): Add function documentation.
1955 (do_initial_windows_stuff): Add comment explaining why we wait
1956 until after inferior initialization has finished before
1957 processing all DLLs.
1959 2014-02-20 Joel Brobecker <brobecker@adacore.com>
1961 * windows-nat.c (get_module_name): Delete.
1962 (windows_get_exec_module_filename): New function, mostly
1963 inspired from get_module_name.
1964 (windows_pid_to_exec_file): Replace call to get_module_name
1965 by call to windows_get_exec_module_filename.
1967 2014-02-20 Joel Brobecker <brobecker@adacore.com>
1969 * windows-nat.c (handle_load_dll): Rewrite this function's
1970 introductory comment. Remove code using get_module_name
1971 to get the DLL's name.
1973 2014-02-20 Joel Brobecker <brobecker@adacore.com>
1975 * windows-nat.c (get_windows_debug_event): Ignore
1976 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
1977 if windows_initialization_done == 0.
1978 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
1979 Adjust implementation to always load all DLLs.
1980 (do_initial_windows_stuff): Replace call to
1981 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
1983 2014-02-20 Joel Brobecker <brobecker@adacore.com>
1985 * windows-nat.c (_initialize_windows_nat): Deprecate the
1986 "dll-symbols" command. Turn the "add-shared-symbol-files"
1987 and "assf" aliases into commands, and deprecate them as well.
1988 * NEWS: Add entry explaining that "dll-symbols" and its two
1989 aliases are now deprecated.
1991 2014-02-20 Joel Brobecker <brobecker@adacore.com>
1993 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
1994 new-line in debug string. Remove trailing spaces.
1996 2014-02-19 Stan Shebs <stan@codesourcery.com>
1998 * darwin-nat.c (darwin_xfer_partial): Fix return type.
2000 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
2002 * NEWS: Add entry for the new feature
2003 * python/py-value.c (valpy_binop): Call value_x_binop for struct
2006 2014-02-19 Stan Shebs <stan@codesourcery.com>
2008 * MAINTAINERS: List Yao Qi as nios2 maintainer.
2010 2014-02-19 Pedro Alves <palves@redhat.com>
2012 * common/ptid.h (struct ptid): Mention that process_stratum
2013 targets should prefer ptid.lwp.
2015 2014-02-19 Pedro Alves <palves@redhat.com>
2017 * remote.c (remote_thread_alive, write_ptid, read_ptid)
2018 (read_ptid, remote_newthread_step, remote_threads_extra_info)
2019 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
2020 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
2021 store remote thread ids rather than ptid.tid.
2022 (_initialize_remote): Adjust.
2024 2014-02-19 Tom Tromey <tromey@redhat.com>
2026 * target.c (target_get_unwinder): Rewrite.
2027 (target_get_tailcall_unwinder): Rewrite.
2028 * record-btrace.c (record_btrace_to_get_unwinder): New function.
2029 (record_btrace_to_get_tailcall_unwinder): New function.
2030 (init_record_btrace_ops): Update.
2031 * target.h (struct target_ops) <to_get_unwinder,
2032 to_get_tailcall_unwinder>: Now function pointers. Use
2033 TARGET_DEFAULT_RETURN.
2035 2014-02-19 Tom Tromey <tromey@redhat.com>
2037 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
2039 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
2041 2014-02-19 Tom Tromey <tromey@redhat.com>
2043 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
2045 * target-delegates.c: Rebuild.
2046 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
2047 TARGET_DEFAULT_FUNC.
2048 * target.c (default_target_decr_pc_after_break): Rename from
2049 forward_target_decr_pc_after_break. Simplify.
2050 (target_decr_pc_after_break): Rely on delegation.
2052 2014-02-19 Tom Tromey <tromey@redhat.com>
2054 * target.c (update_current_target): Do not INHERIT to_doc or
2055 to_magic. Do not de_fault to_open or to_close.
2057 2014-02-19 Tom Tromey <tromey@redhat.com>
2059 * gcore.h (objfile_find_memory_regions): Declare.
2060 * gcore.c (objfile_find_memory_regions): No longer static. Add
2062 (_initialize_gcore): Don't call exec_set_find_memory_regions.
2063 * exec.c: Include gcore.h.
2064 (exec_set_find_memory_regions): Remove.
2065 (exec_find_memory_regions): Remove.
2066 (exec_do_find_memory_regions): Remove.
2067 (init_exec_ops): Update.
2068 * defs.h (exec_set_find_memory_regions): Remove.
2070 2014-02-19 Tom Tromey <tromey@redhat.com>
2072 * target-delegates.c: Rebuild.
2073 * target.h (struct target_ops) <to_extra_thread_info,
2074 to_thread_name, to_pid_to_exec_file, to_get_section_table,
2075 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
2076 not 0, in TARGET_DEFAULT_RETURN.
2078 2014-02-19 Tom Tromey <tromey@redhat.com>
2080 * target.c (complete_target_initialization): Remove casts. Use
2081 return_zero_has_execution.
2082 (return_zero): Add "ignore" argument.
2083 (return_zero_has_execution): New function.
2084 (init_dummy_target): Remove casts. Use
2085 return_zero_has_execution.
2087 2014-02-19 Tom Tromey <tromey@redhat.com>
2089 * target.c (update_current_target): Update comments. Do not
2092 2014-02-19 Tom Tromey <tromey@redhat.com>
2094 * arm-linux-nat.c (arm_linux_read_description): Delegate when
2096 * corelow.c (core_read_description): Delegate when needed.
2097 * remote.c (remote_read_description): Delegate when needed.
2098 * target-delegates.c: Rebuild.
2099 * target.c (target_read_description): Rewrite.
2100 * target.h (struct target_ops) <to_read_description>: Update
2101 comment. Use TARGET_DEFAULT_RETURN.
2103 2014-02-19 Tom Tromey <tromey@redhat.com>
2105 * target-delegates.c: Rebuild.
2106 * target.c (update_current_target): Don't inherit or default
2108 (find_default_run_target): Check against delegate_can_run.
2109 * target.h (struct target_ops) <to_can_run>: Use
2110 TARGET_DEFAULT_RETURN.
2112 2014-02-19 Tom Tromey <tromey@redhat.com>
2114 * target-delegates.c: Rebuild.
2115 * target.c (target_disconnect): Unconditionally delegate.
2116 * target.h (struct target_ops) <to_disconnect>: Use
2117 TARGET_DEFAULT_NORETURN.
2119 2014-02-19 Tom Tromey <tromey@redhat.com>
2121 * record.c (record_stop): Unconditionally delegate.
2122 * target-delegates.c: Rebuild.
2123 * target.c (target_stop_recording): Unconditionally delegate.
2124 * target.h (struct target_ops) <to_stop_recording>: Use
2125 TARGET_DEFAULT_IGNORE.
2127 2014-02-19 Tom Tromey <tromey@redhat.com>
2129 * target-delegates.c: Rebuild.
2130 * target.c (target_enable_btrace): Unconditionally delegate.
2131 * target.h (struct target_ops) <to_enable_btrace>: Use
2132 TARGET_DEFAULT_NORETURN.
2134 2014-02-19 Tom Tromey <tromey@redhat.com>
2136 * target-delegates.c: Rebuild.
2137 * target.c (target_read_btrace): Unconditionally delegate.
2138 * target.h (struct target_ops) <to_read_btrace>: Use
2139 TARGET_DEFAULT_NORETURN.
2141 2014-02-19 Tom Tromey <tromey@redhat.com>
2143 * target-delegates.c: Rebuild.
2144 * target.c (target_teardown_btrace): Unconditionally delegate.
2145 * target.h (struct target_ops) <to_teardown_btrace>: Use
2146 TARGET_DEFAULT_NORETURN.
2148 2014-02-19 Tom Tromey <tromey@redhat.com>
2150 * target-delegates.c: Rebuild.
2151 * target.c (target_disable_btrace): Unconditionally delegate.
2152 * target.h (struct target_ops) <to_disable_btrace>: Use
2153 TARGET_DEFAULT_NORETURN.
2155 2014-02-19 Tom Tromey <tromey@redhat.com>
2157 * target-delegates.c: Rebuild.
2158 * target.c (default_search_memory): New function.
2159 (simple_search_memory): Update comment.
2160 (target_search_memory): Unconditionally delegate.
2161 * target.h (struct target_ops) <to_search_memory>: Use
2162 TARGET_DEFAULT_FUNC.
2164 2014-02-19 Tom Tromey <tromey@redhat.com>
2166 * auxv.c (default_auxv_parse): No longer static.
2167 (target_auxv_parse): Unconditionally delegate.
2168 * auxv.h (default_auxv_parse): Declare.
2169 * target-delegates.c: Rebuild.
2170 * target.c: Include auxv.h.
2171 * target.h (struct target_ops) <to_auxv_parse>: Use
2172 TARGET_DEFAULT_FUNC.
2174 2014-02-19 Tom Tromey <tromey@redhat.com>
2176 * target-delegates.c: Rebuild.
2177 * target.c (target_memory_map): Unconditionally delegate.
2178 * target.h (struct target_ops) <to_memory_map>: Use
2179 TARGET_DEFAULT_RETURN.
2181 2014-02-19 Tom Tromey <tromey@redhat.com>
2183 * target-delegates.c: Rebuild.
2184 * target.c (target_thread_alive): Unconditionally delegate.
2185 * target.h (struct target_ops) <to_thread_alive>: Use
2186 TARGET_DEFAULT_RETURN.
2188 2014-02-19 Tom Tromey <tromey@redhat.com>
2190 * target-delegates.c: Rebuild.
2191 * target.c (target_save_record): Unconditionally delegate.
2192 * target.h (struct target_ops) <to_save_record>: Use
2193 TARGET_DEFAULT_NORETURN.
2195 2014-02-19 Tom Tromey <tromey@redhat.com>
2197 * target-delegates.c: Rebuild.
2198 * target.c (target_delete_record): Unconditionally delegate.
2199 * target.h (struct target_ops) <to_delete_record>: Use
2200 TARGET_DEFAULT_NORETURN.
2202 2014-02-19 Tom Tromey <tromey@redhat.com>
2204 * target-delegates.c: Rebuild.
2205 * target.c (target_record_is_replaying): Unconditionally
2207 * target.h (struct target_ops) <to_record_is_replaying>: Use
2208 TARGET_DEFAULT_RETURN.
2210 2014-02-19 Tom Tromey <tromey@redhat.com>
2212 * target-delegates.c: Rebuild.
2213 * target.c (target_goto_record_begin): Unconditionally delegate.
2214 * target.h (struct target_ops) <to_goto_record_begin>: Use
2215 TARGET_DEFAULT_NORETURN.
2217 2014-02-19 Tom Tromey <tromey@redhat.com>
2219 * target-delegates.c: Rebuild.
2220 * target.c (target_goto_record_end): Unconditionally delegate.
2221 * target.h (struct target_ops) <to_goto_record_end>: Use
2222 TARGET_DEFAULT_NORETURN.
2224 2014-02-19 Tom Tromey <tromey@redhat.com>
2226 * target-delegates.c: Rebuild.
2227 * target.c (target_goto_record): Unconditionally delegate.
2228 * target.h (struct target_ops) <to_goto_record>: Use
2229 TARGET_DEFAULT_NORETURN.
2231 2014-02-19 Tom Tromey <tromey@redhat.com>
2233 * target-delegates.c: Rebuild.
2234 * target.c (target_insn_history): Unconditionally delegate.
2235 * target.h (struct target_ops) <to_insn_history>: Use
2236 TARGET_DEFAULT_NORETURN.
2238 2014-02-19 Tom Tromey <tromey@redhat.com>
2240 * target-delegates.c: Rebuild.
2241 * target.c (target_insn_history_from): Unconditionally delegate.
2242 * target.h (struct target_ops) <to_insn_history_from>: Use
2243 TARGET_DEFAULT_NORETURN.
2245 2014-02-19 Tom Tromey <tromey@redhat.com>
2247 * target-delegates.c: Rebuild.
2248 * target.c (target_insn_history_range): Unconditionally delegate.
2249 * target.h (struct target_ops) <to_insn_history_range>: Use
2250 TARGET_DEFAULT_NORETURN.
2252 2014-02-19 Tom Tromey <tromey@redhat.com>
2254 * target-delegates.c: Rebuild.
2255 * target.c (target_call_history): Unconditionally delegate.
2256 * target.h (struct target_ops) <to_call_history>: Use
2257 TARGET_DEFAULT_NORETURN.
2259 2014-02-19 Tom Tromey <tromey@redhat.com>
2261 * target-delegates.c: Rebuild.
2262 * target.c (target_call_history_from): Unconditionally delegate.
2263 * target.h (struct target_ops) <to_call_history_from>: Use
2264 TARGET_DEFAULT_NORETURN.
2266 2014-02-19 Tom Tromey <tromey@redhat.com>
2268 * target-delegates.c: Rebuild.
2269 * target.c (target_call_history_range): Unconditionally delegate.
2270 * target.h (struct target_ops) <to_call_history_range>: Use
2271 TARGET_DEFAULT_NORETURN.
2273 2014-02-19 Tom Tromey <tromey@redhat.com>
2275 * target-delegates.c: Rebuild.
2276 * target.c (target_verify_memory): Unconditionally delegate.
2277 * target.h (struct target_ops) <to_verify_memory>: Use
2278 TARGET_DEFAULT_NORETURN.
2280 2014-02-19 Tom Tromey <tromey@redhat.com>
2282 * target-delegates.c: Rebuild.
2283 * target.c (target_core_of_thread): Unconditionally delegate.
2284 * target.h (struct target_ops) <to_core_of_thread>: Use
2285 TARGET_DEFAULT_RETURN.
2287 2014-02-19 Tom Tromey <tromey@redhat.com>
2289 * target-delegates.c: Rebuild.
2290 * target.c (target_flash_done): Unconditionally delegate.
2291 * target.h (struct target_ops) <to_flash_done>: Use
2292 TARGET_DEFAULT_NORETURN.
2294 2014-02-19 Tom Tromey <tromey@redhat.com>
2296 * target-delegates.c: Rebuild.
2297 * target.c (target_flash_erase): Unconditionally delegate.
2298 * target.h (struct target_ops) <to_flash_erase>: Use
2299 TARGET_DEFAULT_NORETURN.
2301 2014-02-19 Tom Tromey <tromey@redhat.com>
2303 * target-delegates.c: Rebuild.
2304 * target.c (target_get_section_table): Unconditionally delegate.
2305 * target.h (struct target_ops) <to_get_section_table>: Use
2306 TARGET_DEFAULT_RETURN.
2308 2014-02-19 Tom Tromey <tromey@redhat.com>
2310 * target-delegates.c: Rebuild.
2311 * target.c (target_pid_to_str): Unconditionally delegate.
2312 (init_dummy_target): Don't initialize to_pid_to_str.
2313 (default_pid_to_str): Rename from dummy_pid_to_str.
2314 * target.h (struct target_ops) <to_pid_to_str>: Use
2315 TARGET_DEFAULT_FUNC.
2317 2014-02-19 Tom Tromey <tromey@redhat.com>
2319 * target-delegates.c: Rebuild.
2320 * target.c (target_find_new_threads): Unconditionally delegate.
2321 * target.h (struct target_ops) <to_find_new_threads>: Use
2322 TARGET_DEFAULT_RETURN.
2324 2014-02-19 Tom Tromey <tromey@redhat.com>
2326 * target-delegates.c: Rebuild.
2327 * target.c (target_program_signals): Unconditionally delegate.
2328 * target.h (struct target_ops) <to_program_signals>: Use
2329 TARGET_DEFAULT_IGNORE.
2331 2014-02-19 Tom Tromey <tromey@redhat.com>
2333 * target-delegates.c: Rebuild.
2334 * target.c (target_pass_signals): Unconditionally delegate.
2335 * target.h (struct target_ops) <to_pass_signals>: Use
2336 TARGET_DEFAULT_IGNORE.
2338 2014-02-19 Tom Tromey <tromey@redhat.com>
2340 * target-delegates.c: Rebuild.
2341 * target.c (default_mourn_inferior): New function.
2342 (target_mourn_inferior): Unconditionally delegate.
2343 * target.h (struct target_ops) <to_mourn_inferior>: Use
2344 TARGET_DEFAULT_FUNC.
2346 2014-02-19 Tom Tromey <tromey@redhat.com>
2348 * target-delegates.c: Rebuild.
2349 * target.c (default_follow_fork): New function.
2350 (target_follow_fork): Unconditionally delegate.
2351 * target.h (struct target_ops) <to_follow_fork>: Use
2352 TARGET_DEFAULT_FUNC.
2354 2014-02-19 Tom Tromey <tromey@redhat.com>
2356 * target-delegates.c: Rebuild.
2357 * target.c (target_kill): Unconditionally delegate.
2358 * target.h (struct target_ops) <to_kill>: Use
2359 TARGET_DEFAULT_NORETURN.
2361 2014-02-19 Tom Tromey <tromey@redhat.com>
2363 * target-delegates.c: Rebuild.
2364 * target.c (target_masked_watch_num_registers): Unconditionally
2366 * target.h (struct target_ops) <to_masked_watch_num_registers>:
2367 Use TARGET_DEFAULT_RETURN.
2369 2014-02-19 Tom Tromey <tromey@redhat.com>
2371 * target-delegates.c: Rebuild.
2372 * target.c (target_remove_mask_watchpoint): Unconditionally
2374 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
2375 TARGET_DEFAULT_RETURN.
2377 2014-02-19 Tom Tromey <tromey@redhat.com>
2379 * target-delegates.c: Rebuild.
2380 * target.c (target_insert_mask_watchpoint): Unconditionally
2382 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
2383 TARGET_DEFAULT_RETURN.
2385 2014-02-19 Tom Tromey <tromey@redhat.com>
2387 * target-delegates.c: Rebuild.
2388 * target.c (target_ranged_break_num_registers): Unconditionally
2390 * target.h (struct target_ops) <to_ranged_break_num_registers>:
2391 Use TARGET_DEFAULT_RETURN.
2393 2014-02-19 Tom Tromey <tromey@redhat.com>
2395 * target-delegates.c: Rebuild.
2396 * target.c (target_fetch_registers): Unconditionally delegate.
2397 * target.h (struct target_ops) <to_fetch_registers>: Use
2398 TARGET_DEFAULT_NORETURN.
2400 2014-02-19 Tom Tromey <tromey@redhat.com>
2402 * target-delegates.c: Rebuild.
2403 * target.c (update_current_target): Don't inherit or default
2405 * target.h (struct target_ops) <to_stop>: Use
2406 TARGET_DEFAULT_IGNORE.
2408 2014-02-19 Tom Tromey <tromey@redhat.com>
2410 * target-delegates.c: Rebuild.
2411 * target.c (update_current_target): Don't inherit or default
2412 to_can_run_breakpoint_commands.
2413 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
2414 Use TARGET_DEFAULT_RETURN.
2416 2014-02-19 Tom Tromey <tromey@redhat.com>
2418 * target-delegates.c: Rebuild.
2419 * target.c (update_current_target): Don't inherit or default
2420 to_supports_evaluation_of_breakpoint_conditions.
2421 * target.h (struct target_ops)
2422 <to_supports_evaluation_of_breakpoint_conditions>: Use
2423 TARGET_DEFAULT_RETURN.
2425 2014-02-19 Tom Tromey <tromey@redhat.com>
2427 * target-delegates.c: Rebuild.
2428 * target.c (update_current_target): Don't inherit or default
2429 to_augmented_libraries_svr4_read.
2430 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
2431 Use TARGET_DEFAULT_RETURN.
2433 2014-02-19 Tom Tromey <tromey@redhat.com>
2435 * target-delegates.c: Rebuild.
2436 * target.c (update_current_target): Don't inherit or default
2438 * target.h (struct target_ops) <to_can_use_agent>: Use
2439 TARGET_DEFAULT_RETURN.
2441 2014-02-19 Tom Tromey <tromey@redhat.com>
2443 * target-delegates.c: Rebuild.
2444 * target.c (update_current_target): Don't inherit or default
2446 * target.h (struct target_ops) <to_use_agent>: Use
2447 TARGET_DEFAULT_NORETURN.
2449 2014-02-19 Tom Tromey <tromey@redhat.com>
2451 * target-delegates.c: Rebuild.
2452 * target.c (update_current_target): Don't inherit or default
2454 (return_null): Remove.
2455 * target.h (struct target_ops) <to_traceframe_info>: Use
2456 TARGET_DEFAULT_RETURN.
2458 2014-02-19 Tom Tromey <tromey@redhat.com>
2460 * target-delegates.c: Rebuild.
2461 * target.c (update_current_target): Don't inherit or default
2462 to_static_tracepoint_markers_by_strid.
2463 * target.h (struct target_ops)
2464 <to_static_tracepoint_markers_by_strid>: Use
2465 TARGET_DEFAULT_NORETURN.
2467 2014-02-19 Tom Tromey <tromey@redhat.com>
2469 * target-delegates.c: Rebuild.
2470 * target.c (update_current_target): Don't inherit or default
2471 to_static_tracepoint_marker_at.
2472 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
2473 Use TARGET_DEFAULT_RETURN.
2475 2014-02-19 Tom Tromey <tromey@redhat.com>
2477 * target-delegates.c: Rebuild.
2478 * target.c (update_current_target): Don't inherit or default
2480 * target.h (struct target_ops) <to_set_permissions>: Use
2481 TARGET_DEFAULT_IGNORE.
2483 2014-02-19 Tom Tromey <tromey@redhat.com>
2485 * target-delegates.c: Rebuild.
2486 * target.c (update_current_target): Don't inherit or default
2488 * target.h (struct target_ops) <to_get_tib_address>: Use
2489 TARGET_DEFAULT_NORETURN.
2491 2014-02-19 Tom Tromey <tromey@redhat.com>
2493 * target-delegates.c: Rebuild.
2494 * target.c (update_current_target): Don't inherit or default
2496 * target.h (struct target_ops) <to_set_trace_notes>: Use
2497 TARGET_DEFAULT_RETURN.
2499 2014-02-19 Tom Tromey <tromey@redhat.com>
2501 * target-delegates.c: Rebuild.
2502 * target.c (update_current_target): Don't initialize
2503 to_set_trace_buffer_size.
2504 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
2505 TARGET_DEFAULT_IGNORE.
2507 2014-02-19 Tom Tromey <tromey@redhat.com>
2509 * target-delegates.c: Rebuild.
2510 * target.c (update_current_target): Don't inherit or default
2511 to_set_circular_trace_buffer.
2512 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
2513 TARGET_DEFAULT_IGNORE.
2515 2014-02-19 Tom Tromey <tromey@redhat.com>
2517 * target-delegates.c: Rebuild.
2518 * target.c (update_current_target): Don't inherit or default
2519 to_set_disconnected_tracing.
2520 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
2521 TARGET_DEFAULT_IGNORE.
2523 2014-02-19 Tom Tromey <tromey@redhat.com>
2525 * target-delegates.c: Rebuild.
2526 * target.c (update_current_target): Don't inherit or default
2527 to_get_min_fast_tracepoint_insn_len.
2528 (return_minus_one): Remove.
2529 * target.h (struct target_ops)
2530 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
2532 2014-02-19 Tom Tromey <tromey@redhat.com>
2534 * target-delegates.c: Rebuild.
2535 * target.c (update_current_target): Don't inherit or default
2536 to_get_raw_trace_data.
2537 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
2538 TARGET_DEFAULT_NORETURN.
2540 2014-02-19 Tom Tromey <tromey@redhat.com>
2542 * target-delegates.c: Rebuild.
2543 * target.c (update_current_target): Don't inherit or default
2544 to_upload_trace_state_variables.
2545 * target.h (struct target_ops) <to_upload_trace_state_variables>:
2546 Use TARGET_DEFAULT_RETURN.
2548 2014-02-19 Tom Tromey <tromey@redhat.com>
2550 * target-delegates.c: Rebuild.
2551 * target.c (update_current_target): Don't inherit or default
2552 to_upload_tracepoints.
2553 * target.h (struct target_ops) <to_upload_tracepoints>: Use
2554 TARGET_DEFAULT_RETURN.
2556 2014-02-19 Tom Tromey <tromey@redhat.com>
2558 * target-delegates.c: Rebuild.
2559 * target.c (update_current_target): Don't inherit or default
2561 * target.h (struct target_ops) <to_save_trace_data>: Use
2562 TARGET_DEFAULT_NORETURN.
2564 2014-02-19 Tom Tromey <tromey@redhat.com>
2566 * target-delegates.c: Rebuild.
2567 * target.c (update_current_target): Don't inherit or default
2568 to_get_trace_state_variable_value.
2569 * target.h (struct target_ops)
2570 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
2572 2014-02-19 Tom Tromey <tromey@redhat.com>
2574 * target-delegates.c: Rebuild.
2575 * target.c (update_current_target): Don't inherit or default
2577 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
2579 2014-02-19 Tom Tromey <tromey@redhat.com>
2581 * target-delegates.c: Rebuild.
2582 * target.c (update_current_target): Don't inherit or default
2584 * target.h (struct target_ops) <to_trace_stop>: Use
2585 TARGET_DEFAULT_NORETURN.
2587 2014-02-19 Tom Tromey <tromey@redhat.com>
2589 * target-delegates.c: Rebuild.
2590 * target.c (update_current_target): Don't inherit or default
2591 to_get_tracepoint_status.
2592 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
2593 TARGET_DEFAULT_NORETURN.
2595 2014-02-19 Tom Tromey <tromey@redhat.com>
2597 * target-delegates.c: Rebuild.
2598 * target.c (update_current_target): Don't inherit or default
2599 to_get_trace_status.
2600 * target.h (struct target_ops) <to_get_trace_status>: Use
2601 TARGET_DEFAULT_RETURN.
2603 2014-02-19 Tom Tromey <tromey@redhat.com>
2605 * target-delegates.c: Rebuild.
2606 * target.c (update_current_target): Don't inherit or default
2608 * target.h (struct target_ops) <to_trace_start>: Use
2609 TARGET_DEFAULT_NORETURN.
2611 2014-02-19 Tom Tromey <tromey@redhat.com>
2613 * target-delegates.c: Rebuild.
2614 * target.c (update_current_target): Don't inherit or default
2615 to_trace_set_readonly_regions.
2616 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
2617 Use TARGET_DEFAULT_NORETURN.
2619 2014-02-19 Tom Tromey <tromey@redhat.com>
2621 * target-delegates.c: Rebuild.
2622 * target.c (update_current_target): Don't inherit or default
2623 to_disable_tracepoint.
2624 * target.h (struct target_ops) <to_disable_tracepoint>: Use
2625 TARGET_DEFAULT_NORETURN.
2627 2014-02-19 Tom Tromey <tromey@redhat.com>
2629 * target-delegates.c: Rebuild.
2630 * target.c (update_current_target): Don't inherit or default
2631 to_enable_tracepoint.
2632 * target.h (struct target_ops) <to_enable_tracepoint>: Use
2633 TARGET_DEFAULT_NORETURN.
2635 2014-02-19 Tom Tromey <tromey@redhat.com>
2637 * target-delegates.c: Rebuild.
2638 * target.c (update_current_target): Don't inherit or default
2639 to_download_trace_state_variable.
2640 * target.h (struct target_ops) <to_download_trace_state_variable>:
2641 Use TARGET_DEFAULT_NORETURN.
2643 2014-02-19 Tom Tromey <tromey@redhat.com>
2645 * target-delegates.c: Rebuild.
2646 * target.c (update_current_target): Don't inherit or default
2647 to_can_download_tracepoint.
2648 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
2649 TARGET_DEFAULT_RETURN.
2651 2014-02-19 Tom Tromey <tromey@redhat.com>
2653 * target-delegates.c: Rebuild.
2654 * target.c (update_current_target): Don't inherit or default
2655 to_download_tracepoint.
2656 * target.h (struct target_ops) <to_download_tracepoint>: Use
2657 TARGET_DEFAULT_NORETURN.
2659 2014-02-19 Tom Tromey <tromey@redhat.com>
2661 * target-delegates.c: Rebuild.
2662 * target.c (update_current_target): Don't inherit or default
2664 * target.h (struct target_ops) <to_trace_init>: Use
2665 TARGET_DEFAULT_RETURN.
2667 2014-02-19 Tom Tromey <tromey@redhat.com>
2669 * target-delegates.c: Rebuild.
2670 * target.c (update_current_target): Don't inherit or default
2671 to_supports_string_tracing.
2672 * target.h (struct target_ops) <to_supports_string_tracing>: Use
2673 TARGET_DEFAULT_RETURN.
2675 2014-02-19 Tom Tromey <tromey@redhat.com>
2677 * target-delegates.c: Rebuild.
2678 * target.c (update_current_target): Don't inherit or default
2679 to_supports_enable_disable_tracepoint.
2680 * target.h (struct target_ops)
2681 <to_supports_enable_disable_tracepoint>: Use
2682 TARGET_DEFAULT_RETURN.
2684 2014-02-19 Tom Tromey <tromey@redhat.com>
2686 * target-delegates.c: Rebuild.
2687 * target.c (update_current_target): Don't inherit or default
2688 to_supports_multi_process.
2689 * target.h (struct target_ops) <to_supports_multi_process>: Use
2690 TARGET_DEFAULT_RETURN.
2692 2014-02-19 Tom Tromey <tromey@redhat.com>
2694 * target-delegates.c: Rebuild.
2695 * target.c (update_current_target): Don't inherit or default
2696 to_get_ada_task_ptid.
2697 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
2698 TARGET_DEFAULT_FUNC.
2700 2014-02-19 Tom Tromey <tromey@redhat.com>
2702 * target-delegates.c: Rebuild.
2703 * target.c (update_current_target): Don't inherit or default
2704 to_thread_architecture.
2705 * target.h (struct target_ops) <to_thread_architecture>: Use
2706 TARGET_DEFAULT_FUNC.
2708 2014-02-19 Tom Tromey <tromey@redhat.com>
2710 * target-delegates.c: Rebuild.
2711 * target.c (update_current_target): Don't inherit or default
2712 to_execution_direction.
2713 * target.h (struct target_ops) <to_execution_direction>: Use
2714 TARGET_DEFAULT_FUNC.
2716 2014-02-19 Tom Tromey <tromey@redhat.com>
2718 * target-delegates.c: Rebuild.
2719 * target.c (update_current_target): Don't inherit or default
2720 to_can_execute_reverse.
2721 * target.h (struct target_ops) <to_can_execute_reverse>: Use
2722 TARGET_DEFAULT_RETURN.
2723 (target_can_execute_reverse): Unconditionally delegate.
2725 2014-02-19 Tom Tromey <tromey@redhat.com>
2727 * target-delegates.c: Rebuild.
2728 * target.c (update_current_target): Don't inherit or default
2730 (dummy_goto_bookmark): Remove.
2731 (init_dummy_target): Don't inherit or default to_goto_bookmark.
2732 * target.h (struct target_ops) <to_goto_bookmark>: Use
2733 TARGET_DEFAULT_NORETURN.
2735 2014-02-19 Tom Tromey <tromey@redhat.com>
2737 * target-delegates.c: Rebuild.
2738 * target.c (update_current_target): Don't inherit or default
2740 (dummy_get_bookmark): Remove.
2741 (init_dummy_target): Don't inherit or default to_get_bookmark.
2742 * target.h (struct target_ops) <to_get_bookmark>: Use
2743 TARGET_DEFAULT_NORETURN
2745 2014-02-19 Tom Tromey <tromey@redhat.com>
2747 * target-delegates.c: Rebuild.
2748 * target.c (update_current_target): Don't inherit or default
2749 to_make_corefile_notes.
2750 (init_dummy_target): Don't initialize to_make_corefile_notes.
2751 * target.h (struct target_ops) <to_make_corefile_notes>: Use
2752 TARGET_DEFAULT_FUNC.
2754 2014-02-19 Tom Tromey <tromey@redhat.com>
2756 * target-delegates.c: Rebuild.
2757 * target.c (update_current_target): Don't inherit or default
2758 to_find_memory_regions.
2759 (init_dummy_target): Don't initialize to_find_memory_regions.
2760 * target.h (struct target_ops) <to_find_memory_regions>: Use
2761 TARGET_DEFAULT_FUNC.
2763 2014-02-19 Tom Tromey <tromey@redhat.com>
2765 * target-delegates.c: Rebuild.
2766 * target.c (update_current_target): Don't inherit or default
2768 * target.h (struct target_ops) <to_log_command>: Use
2769 TARGET_DEFAULT_IGNORE.
2770 (target_log_command): Unconditionally delegate.
2772 2014-02-19 Tom Tromey <tromey@redhat.com>
2774 * target-delegates.c: Rebuild.
2775 * target.c (update_current_target): Don't inherit or default
2776 to_pid_to_exec_file.
2777 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
2778 TARGET_DEFAULT_RETURN.
2780 2014-02-19 Tom Tromey <tromey@redhat.com>
2782 * target-delegates.c: Rebuild.
2783 * target.c (update_current_target): Don't inherit or default
2785 (target_thread_name): Unconditionally delegate.
2786 * target.h (struct target_ops) <to_thread_name>: Use
2787 TARGET_DEFAULT_RETURN.
2789 2014-02-19 Tom Tromey <tromey@redhat.com>
2791 * target-delegates.c: Rebuild.
2792 * target.c (update_current_target): Don't inherit or default
2793 to_extra_thread_info.
2794 * target.h (struct target_ops) <to_extra_thread_info>: Use
2795 TARGET_DEFAULT_RETURN.
2797 2014-02-19 Tom Tromey <tromey@redhat.com>
2799 * target-delegates.c: Rebuild.
2800 * target.c (update_current_target): Don't inherit or default
2802 * target.h (struct target_ops) <to_has_exited>: Use
2803 TARGET_DEFAULT_RETURN..
2805 2014-02-19 Tom Tromey <tromey@redhat.com>
2807 * target-delegates.c: Rebuild.
2808 * target.c (update_current_target): Don't inherit or default
2809 to_set_syscall_catchpoint.
2810 (return_one): Remove.
2811 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
2812 TARGET_DEFAULT_RETURN.
2814 2014-02-19 Tom Tromey <tromey@redhat.com>
2816 * target-delegates.c: Rebuild.
2817 * target.c (update_current_target): Don't inherit or default
2818 to_insert_exec_catchpoint.
2819 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
2820 TARGET_DEFAULT_RETURN.
2822 2014-01-08 Tom Tromey <tromey@redhat.com>
2824 * target-delegates.c: Rebuild.
2825 * target.c (update_current_target): Don't inherit or default
2826 to_insert_exec_catchpoint.
2827 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
2828 TARGET_DEFAULT_RETURN.
2830 2014-02-19 Tom Tromey <tromey@redhat.com>
2832 * target-delegates.c: Rebuild.
2833 * target.c (update_current_target): Don't inherit or default
2834 to_remove_vfork_catchpoint.
2835 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
2836 TARGET_DEFAULT_RETURN.
2838 2014-02-19 Tom Tromey <tromey@redhat.com>
2840 * target-delegates.c: Rebuild.
2841 * target.c (update_current_target): Don't inherit or default
2842 to_insert_vfork_catchpoint.
2843 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
2844 TARGET_DEFAULT_RETURN.
2846 2014-02-19 Tom Tromey <tromey@redhat.com>
2848 * target-delegates.c: Rebuild.
2849 * target.c (update_current_target): Don't inherit or default
2850 to_remove_fork_catchpoint.
2851 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
2852 TARGET_DEFAULT_RETURN.
2854 2014-02-19 Tom Tromey <tromey@redhat.com>
2856 * target-delegates.c: Rebuild.
2857 * target.c (update_current_target): Don't inherit or default
2858 to_insert_fork_catchpoint.
2859 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
2860 TARGET_DEFAULT_RETURN.
2862 2014-02-19 Tom Tromey <tromey@redhat.com>
2864 * target-delegates.c: Rebuild.
2865 * target.c (update_current_target): Don't inherit or default
2866 to_post_startup_inferior.
2867 * target.h (struct target_ops) <to_post_startup_inferior>: Use
2868 TARGET_DEFAULT_IGNORE.
2870 2014-02-19 Tom Tromey <tromey@redhat.com>
2872 * target-delegates.c: Rebuild.
2873 * target.c (update_current_target): Don't inherit or default
2875 * target.h (struct target_ops) <to_load>: Use
2876 TARGET_DEFAULT_NORETURN.
2878 2014-02-19 Tom Tromey <tromey@redhat.com>
2880 * target-delegates.c: Rebuild.
2881 * target.c (update_current_target): Don't inherit or default
2883 * target.h (struct target_ops) <to_terminal_info>: Use
2884 TARGET_DEFAULT_FUNC.
2886 2014-02-19 Tom Tromey <tromey@redhat.com>
2888 * target-delegates.c: Rebuild.
2889 * target.c (update_current_target): Don't inherit or default
2890 to_terminal_save_ours.
2891 * target.h (struct target_ops) <to_terminal_save_ours>: Use
2892 TARGET_DEFAULT_IGNORE.
2894 2014-02-19 Tom Tromey <tromey@redhat.com>
2896 * target-delegates.c: Rebuild.
2897 * target.c (update_current_target): Don't inherit or default
2899 * target.h (struct target_ops) <to_terminal_ours>: Use
2900 TARGET_DEFAULT_IGNORE.
2902 2014-02-19 Tom Tromey <tromey@redhat.com>
2904 * target-delegates.c: Rebuild.
2905 * target.c (update_current_target): Don't inherit or default
2906 to_terminal_ours_for_output.
2907 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
2908 TARGET_DEFAULT_IGNORE.
2910 2014-02-19 Tom Tromey <tromey@redhat.com>
2912 * target-delegates.c: Rebuild.
2913 * target.c (update_current_target): Don't inherit or default
2914 to_terminal_inferior.
2915 * target.h (struct target_ops) <to_terminal_inferior>: Use
2916 TARGET_DEFAULT_IGNORE.
2918 2014-02-19 Tom Tromey <tromey@redhat.com>
2920 * target-delegates.c: Rebuild.
2921 * target.c (update_current_target): Don't inherit or default
2923 * target.h (struct target_ops) <to_terminal_init>: Use
2924 TARGET_DEFAULT_IGNORE.
2926 2014-02-19 Tom Tromey <tromey@redhat.com>
2928 * target-delegates.c: Rebuild.
2929 * target.c (update_current_target): Don't inherit or default
2930 to_can_accel_watchpoint_condition.
2931 * target.h (struct target_ops)
2932 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
2934 2014-02-19 Tom Tromey <tromey@redhat.com>
2936 * target-delegates.c: Rebuild.
2937 * target.c (update_current_target): Don't inherit or default
2938 to_region_ok_for_hw_watchpoint.
2939 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
2940 Use TARGET_DEFAULT_FUNC.
2942 2014-02-19 Tom Tromey <tromey@redhat.com>
2944 * target-delegates.c: Rebuild.
2945 * target.c (update_current_target): Don't inherit or default
2946 to_watchpoint_addr_within_range.
2947 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
2948 Use TARGET_DEFAULT_FUNC.
2950 2014-02-19 Tom Tromey <tromey@redhat.com>
2952 * target-delegates.c: Rebuild.
2953 * target.c (update_current_target): Don't inherit or default
2954 to_remove_watchpoint.
2955 * target.h (struct target_ops) <to_remove_watchpoint>: Use
2956 TARGET_DEFAULT_NORETURN.
2958 2014-02-19 Tom Tromey <tromey@redhat.com>
2960 * target-delegates.c: Rebuild.
2961 * target.c (update_current_target): Don't inherit or default
2962 to_insert_watchpoint.
2963 * target.h (struct target_ops) <to_insert_watchpoint>: Use
2964 TARGET_DEFAULT_RETURN.
2966 2014-02-19 Tom Tromey <tromey@redhat.com>
2968 * target-delegates.c: Rebuild.
2969 * target.c (update_current_target): Don't inherit or default
2970 to_remove_hw_breakpoint.
2971 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
2972 TARGET_DEFAULT_RETURN.
2974 2014-02-19 Tom Tromey <tromey@redhat.com>
2976 * target-delegates.c: Rebuild.
2977 * target.c (update_current_target): Don't inherit or default
2978 to_insert_hw_breakpoint.
2979 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
2980 TARGET_DEFAULT_RETURN.
2982 2014-02-19 Tom Tromey <tromey@redhat.com>
2984 * target-delegates.c: Rebuild.
2985 * target.c (update_current_target): Don't inherit or default
2986 to_can_use_hw_breakpoint.
2987 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
2988 TARGET_DEFAULT_RETURN.
2990 2014-02-19 Tom Tromey <tromey@redhat.com>
2992 * target-delegates.c: Rebuild.
2993 * target.c (update_current_target): Don't inherit or default
2995 * target.h (struct target_ops) <to_files_info>: Use
2996 TARGET_DEFAULT_IGNORE.
2998 2014-02-19 Tom Tromey <tromey@redhat.com>
3000 * target-delegates.c: Rebuild.
3001 * target.c (update_current_target): Don't inherit or default
3003 * target.h (struct target_ops) <to_store>: Use
3004 TARGET_DEFAULT_NORETURN.
3006 2014-02-19 Tom Tromey <tromey@redhat.com>
3008 * target-delegates.c: Rebuild.
3009 * target.c (update_current_target): Don't inherit or default
3011 * target.h (struct target_ops) <to_post_attach>: Use
3012 TARGET_DEFAULT_IGNORE.
3014 2014-02-19 Tom Tromey <tromey@redhat.com>
3016 * target-delegates.c: Rebuild.
3017 * target.c (update_current_target): Don't inherit or default
3019 (default_rcmd): New function.
3020 (do_monitor_command): Unconditionally delegate.
3021 * target.h (struct target_ops) <to_rmcd>: Use
3022 TARGET_DEFAULT_FUNC.
3024 2014-02-19 Tom Tromey <tromey@redhat.com>
3026 * target-delegates.c: Rebuild.
3027 * target.c (init_dummy_target): Don't initialize to_attach.
3028 (target_attach): Unconditionally delegate.
3029 * target.h (struct target_ops) <to_attach>: Use
3030 TARGET_DEFAULT_FUNC.
3032 2014-02-19 Tom Tromey <tromey@redhat.com>
3034 * target-delegates.c: Rebuild.
3035 * target.c (target_detach): Unconditionally delegate.
3036 (init_dummy_target): Don't initialize to_detach.
3037 * target.h (struct target_ops) <to_detach>: Use
3038 TARGET_DEFAULT_IGNORE.
3040 2014-02-19 Tom Tromey <tromey@redhat.com>
3042 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
3044 (target_augmented_libraries_svr4_read): Add argument.
3045 * target.c (update_current_target): Update.
3046 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
3049 2014-02-19 Tom Tromey <tromey@redhat.com>
3051 * target.h (struct target_ops) <to_call_history_range>: Add
3053 * target.c (target_call_history_range): Add argument.
3054 * record-btrace.c (record_btrace_call_history_range): Add 'self'
3056 (record_btrace_call_history_from): Update.
3058 2014-02-19 Tom Tromey <tromey@redhat.com>
3060 * target.h (struct target_ops) <to_call_history_from>: Add
3062 * target.c (target_call_history_from): Add argument.
3063 * record-btrace.c (record_btrace_call_history_from): Add 'self'
3066 2014-02-19 Tom Tromey <tromey@redhat.com>
3068 * target.h (struct target_ops) <to_call_history>: Add argument.
3069 * target.c (target_call_history): Add argument.
3070 * record-btrace.c (record_btrace_call_history): Add 'self'
3073 2014-02-19 Tom Tromey <tromey@redhat.com>
3075 * target.h (struct target_ops) <to_insn_history_range>: Add
3077 * target.c (target_insn_history_range): Add argument.
3078 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
3080 (record_btrace_insn_history_from): Update.
3082 2014-02-19 Tom Tromey <tromey@redhat.com>
3084 * target.h (struct target_ops) <to_insn_history_from>: Add
3086 * target.c (target_insn_history_from): Add argument.
3087 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
3090 2014-02-19 Tom Tromey <tromey@redhat.com>
3092 * target.h (struct target_ops) <to_insn_history>: Add argument.
3093 * target.c (target_insn_history): Add argument.
3094 * record-btrace.c (record_btrace_insn_history): Add 'self'
3097 2014-02-19 Tom Tromey <tromey@redhat.com>
3099 * target.h (struct target_ops) <to_goto_record>: Add argument.
3100 * target.c (target_goto_record): Add argument.
3101 * record-full.c (record_full_goto): Add 'self' argument.
3102 * record-btrace.c (record_btrace_goto): Add 'self' argument.
3104 2014-02-19 Tom Tromey <tromey@redhat.com>
3106 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
3107 * target.c (target_goto_record_end): Add argument.
3108 * record-full.c (record_full_goto_end): Add 'self' argument.
3109 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
3111 2014-02-19 Tom Tromey <tromey@redhat.com>
3113 * target.h (struct target_ops) <to_goto_record_begin>: Add
3115 * target.c (target_goto_record_begin): Add argument.
3116 * record-full.c (record_full_goto_begin): Add 'self' argument.
3117 * record-btrace.c (record_btrace_goto_begin): Add 'self'
3120 2014-02-19 Tom Tromey <tromey@redhat.com>
3122 * target.h (struct target_ops) <to_record_is_replaying>: Add
3124 * target.c (target_record_is_replaying): Add argument.
3125 * record-full.c (record_full_is_replaying): Add 'self' argument.
3126 * record-btrace.c (record_btrace_is_replaying): Add 'self'
3128 (record_btrace_xfer_partial, record_btrace_store_registers)
3129 (record_btrace_prepare_to_store, record_btrace_resume)
3130 (record_btrace_wait, record_btrace_decr_pc_after_break)
3131 (record_btrace_find_new_threads, record_btrace_thread_alive):
3134 2014-02-19 Tom Tromey <tromey@redhat.com>
3136 * target.h (struct target_ops) <to_delete_record>: Add argument.
3137 * target.c (target_delete_record): Add argument.
3138 * record-full.c (record_full_delete): Add 'self' argument.
3140 2014-02-19 Tom Tromey <tromey@redhat.com>
3142 * target.h (struct target_ops) <to_save_record>: Add argument.
3143 * target.c (target_save_record): Add argument.
3144 * record-full.c (record_full_save): Add 'self' argument.
3145 (record_full_save): Add 'self' argument.
3147 2014-02-19 Tom Tromey <tromey@redhat.com>
3149 * target.h (struct target_ops) <to_info_record>: Add argument.
3150 * target.c (target_info_record): Add argument.
3151 * record.c (info_record_command): Add argument.
3152 * record-full.c (record_full_info): Add 'self' argument.
3153 * record-btrace.c (record_btrace_info): Add 'self' argument.
3155 2014-02-19 Tom Tromey <tromey@redhat.com>
3157 * target.h (struct target_ops) <to_stop_recording>: Add argument.
3158 * target.c (target_stop_recording): Add argument.
3159 * record.c (record_stop): Add argument.
3160 * record-btrace.c (record_btrace_stop_recording): Add 'self'
3163 2014-02-19 Tom Tromey <tromey@redhat.com>
3165 * target.h (struct target_ops) <to_read_btrace>: Add argument.
3166 * target.c (struct target_ops) <to_read_btrace>: Add argument.
3167 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
3169 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
3170 (_initialize_amd64_linux_nat): Use it.
3171 * i386-linux-nat.c (i386_linux_read_btrace): New function.
3172 (_initialize_i386_linux_nat): Use it.
3174 2014-02-19 Tom Tromey <tromey@redhat.com>
3176 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
3177 * target.c (target_teardown_btrace): Add argument.
3178 * remote.c (remote_teardown_btrace): Add 'self' argument.
3179 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
3181 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
3184 2014-02-19 Tom Tromey <tromey@redhat.com>
3186 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
3187 * target.c (target_disable_btrace): Add argument.
3188 * remote.c (remote_disable_btrace): Add 'self' argument.
3189 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
3191 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
3194 2014-02-19 Tom Tromey <tromey@redhat.com>
3196 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
3197 * target.c (target_enable_btrace): Add argument.
3198 * remote.c (remote_enable_btrace): Add 'self' argument.
3199 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
3201 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
3204 2014-02-19 Tom Tromey <tromey@redhat.com>
3206 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
3207 (target_can_use_agent): Add argument.
3208 * target.c (update_current_target): Update.
3209 * remote.c (remote_can_use_agent): Add 'self' argument.
3210 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
3212 2014-02-19 Tom Tromey <tromey@redhat.com>
3214 * target.h (struct target_ops) <to_use_agent>: Add argument.
3215 (target_use_agent): Add argument.
3216 * target.c (update_current_target): Update.
3217 * remote.c (remote_use_agent): Add 'self' argument.
3218 * inf-child.c (inf_child_use_agent): Add 'self' argument.
3220 2014-02-19 Tom Tromey <tromey@redhat.com>
3222 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
3223 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
3224 (target_traceframe_info): Add argument.
3225 * target.c (update_current_target): Update.
3226 * remote.c (remote_traceframe_info): Add 'self' argument.
3227 * ctf.c (ctf_traceframe_info): Add 'self' argument.
3229 2014-02-19 Tom Tromey <tromey@redhat.com>
3231 * target.h (target_static_tracepoint_markers_by_strid): Add
3233 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
3235 * target.c (update_current_target): Update.
3236 * remote.c (struct target_ops)
3237 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
3238 * linux-nat.c (struct target_ops)
3239 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
3241 2014-02-19 Tom Tromey <tromey@redhat.com>
3243 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
3245 (target_static_tracepoint_marker_at): Add argument.
3246 * target.c (update_current_target): Update.
3247 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
3250 2014-02-19 Tom Tromey <tromey@redhat.com>
3252 * target.h (struct target_ops) <to_set_permissions>: Add argument.
3253 (target_set_permissions): Add argument.
3254 * target.c (update_current_target): Update.
3255 * remote.c (remote_set_permissions): Add 'self' argument.
3256 (remote_start_remote): Update.
3258 2014-02-19 Tom Tromey <tromey@redhat.com>
3260 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
3261 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
3262 (target_get_tib_address): Add argument.
3263 * target.c (update_current_target): Update.
3264 * remote.c (remote_get_tib_address): Add 'self' argument.
3266 2014-02-19 Tom Tromey <tromey@redhat.com>
3268 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
3269 (target_set_trace_notes): Add argument.
3270 * target.c (update_current_target): Update.
3271 * remote.c (remote_set_trace_notes): Add 'self' argument.
3273 2014-02-19 Tom Tromey <tromey@redhat.com>
3275 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
3277 (target_set_trace_buffer_size): Add argument.
3278 * target.c (update_current_target): Update.
3279 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
3281 2014-02-19 Tom Tromey <tromey@redhat.com>
3283 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
3285 (target_set_circular_trace_buffer): Add argument.
3286 * target.c (update_current_target): Update.
3287 * remote.c (remote_set_circular_trace_buffer): Add 'self'
3290 2014-02-19 Tom Tromey <tromey@redhat.com>
3292 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
3294 (target_set_disconnected_tracing): Add argument.
3295 * target.c (update_current_target): Update.
3296 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
3298 2014-02-19 Tom Tromey <tromey@redhat.com>
3300 * target.h (struct target_ops)
3301 <to_get_min_fast_tracepoint_insn_len>: Add argument.
3302 (target_get_min_fast_tracepoint_insn_len): Add argument.
3303 * target.c (update_current_target): Update.
3304 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
3307 2014-02-19 Tom Tromey <tromey@redhat.com>
3309 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
3311 (target_get_raw_trace_data): Add argument.
3312 * target.c (update_current_target): Update.
3313 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
3315 2014-02-19 Tom Tromey <tromey@redhat.com>
3317 * target.h (struct target_ops) <to_upload_trace_state_variables>:
3319 (target_upload_trace_state_variables): Add argument.
3320 * target.c (update_current_target): Update.
3321 * remote.c (remote_upload_trace_state_variables): Add 'self'
3323 (remote_start_remote): Update.
3325 2014-02-19 Tom Tromey <tromey@redhat.com>
3327 * target.h (struct target_ops) <to_upload_tracepoints>: Add
3329 (target_upload_tracepoints): Add argument.
3330 * target.c (update_current_target): Update.
3331 * remote.c (remote_upload_tracepoints): Add 'self' argument.
3332 (remote_start_remote): Update.
3334 2014-02-19 Tom Tromey <tromey@redhat.com>
3336 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
3337 (target_save_trace_data): Add argument.
3338 * target.c (update_current_target): Update.
3339 * remote.c (remote_save_trace_data): Add 'self' argument.
3341 2014-02-19 Tom Tromey <tromey@redhat.com>
3343 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
3345 * target.h (struct target_ops)
3346 <to_get_trace_state_variable_value>: Add argument.
3347 (target_get_trace_state_variable_value): Add argument.
3348 * target.c (update_current_target): Update.
3349 * remote.c (remote_get_trace_state_variable_value): Add 'self'
3351 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
3353 2014-02-19 Tom Tromey <tromey@redhat.com>
3355 * tracepoint.c (tfile_trace_find): Add 'self' argument.
3356 * target.h (struct target_ops) <to_trace_find>: Add argument.
3357 (target_trace_find): Add argument.
3358 * target.c (update_current_target): Update.
3359 * remote.c (remote_trace_find): Add 'self' argument.
3360 * ctf.c (ctf_trace_find): Add 'self' argument.
3362 2014-02-19 Tom Tromey <tromey@redhat.com>
3364 * target.h (struct target_ops) <to_trace_stop>: Add argument.
3365 (target_trace_stop): Add argument.
3366 * target.c (update_current_target): Update.
3367 * remote.c (remote_trace_stop): Add 'self' argument.
3369 2014-02-19 Tom Tromey <tromey@redhat.com>
3371 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
3372 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
3374 (target_get_tracepoint_status): Add argument.
3375 * target.c (update_current_target): Update.
3376 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
3378 2014-02-19 Tom Tromey <tromey@redhat.com>
3380 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
3381 * target.h (struct target_ops) <to_get_trace_status>: Add
3383 (target_get_trace_status): Add argument.
3384 * target.c (update_current_target): Update.
3385 * remote.c (remote_get_trace_status): Add 'self' argument.
3386 (remote_start_remote, remote_can_download_tracepoint): Update.
3387 * ctf.c (ctf_get_trace_status): Add 'self' argument.
3389 2014-02-19 Tom Tromey <tromey@redhat.com>
3391 * target.h (struct target_ops) <to_trace_start>: Add argument.
3392 (target_trace_start): Add argument.
3393 * target.c (update_current_target): Update.
3394 * remote.c (remote_trace_start): Add 'self' argument.
3396 2014-02-19 Tom Tromey <tromey@redhat.com>
3398 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
3400 (target_trace_set_readonly_regions): Add argument.
3401 * target.c (update_current_target): Update.
3402 * remote.c (remote_trace_set_readonly_regions): Add 'self'
3405 2014-02-19 Tom Tromey <tromey@redhat.com>
3407 * target.h (struct target_ops) <to_disable_tracepoint>: Add
3409 (target_disable_tracepoint): Add argument.
3410 * target.c (update_current_target): Update.
3411 * remote.c (remote_disable_tracepoint): Add 'self' argument.
3413 2014-02-19 Tom Tromey <tromey@redhat.com>
3415 * target.h (struct target_ops) <to_enable_tracepoint>: Add
3417 (target_enable_tracepoint): Add argument.
3418 * target.c (update_current_target): Update.
3419 * remote.c (remote_enable_tracepoint): Add 'self' argument.
3421 2014-02-19 Tom Tromey <tromey@redhat.com>
3423 * target.h (struct target_ops) <to_download_trace_state_variable>:
3425 (target_download_trace_state_variable): Add argument.
3426 * target.c (update_current_target): Update.
3427 * remote.c (remote_download_trace_state_variable): Add 'self'
3430 2014-02-19 Tom Tromey <tromey@redhat.com>
3432 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
3434 (target_can_download_tracepoint): Add argument.
3435 * target.c (update_current_target): Update.
3436 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
3438 2014-02-19 Tom Tromey <tromey@redhat.com>
3440 * target.h (struct target_ops) <to_download_tracepoint>: Add
3442 (target_download_tracepoint): Add argument.
3443 * target.c (update_current_target): Update.
3444 * remote.c (remote_download_tracepoint): Add 'self' argument.
3446 2014-02-19 Tom Tromey <tromey@redhat.com>
3448 * target.h (struct target_ops) <to_trace_init>: Add argument.
3449 (target_trace_init): Add argument.
3450 * target.c (update_current_target): Update.
3451 * remote.c (remote_trace_init): Add 'self' argument.
3453 2014-02-19 Tom Tromey <tromey@redhat.com>
3455 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
3456 * target.c (target_fileio_readlink): Add argument.
3457 * remote.c (remote_hostio_readlink): Add 'self' argument.
3458 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
3460 2014-02-19 Tom Tromey <tromey@redhat.com>
3462 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
3463 * target.c (target_fileio_unlink): Add argument.
3464 * remote.c (remote_hostio_unlink): Add 'self' argument.
3465 (remote_file_delete): Update.
3466 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
3468 2014-02-19 Tom Tromey <tromey@redhat.com>
3470 * target.h (struct target_ops) <to_fileio_close>: Add argument.
3471 * target.c (target_fileio_close): Add argument.
3472 * remote.c (remote_hostio_close): Add 'self' argument.
3473 (remote_hostio_close_cleanup): Update.
3474 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
3476 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
3478 2014-02-19 Tom Tromey <tromey@redhat.com>
3480 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
3481 * target.c (target_fileio_pread): Add argument.
3482 * remote.c (remote_hostio_pread): Add 'self' argument.
3483 (remote_bfd_iovec_pread, remote_file_get): Update.
3484 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
3486 2014-02-19 Tom Tromey <tromey@redhat.com>
3488 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
3489 * target.c (target_fileio_pwrite): Add argument.
3490 * remote.c (remote_hostio_pwrite): Add 'self' argument.
3491 (remote_file_put): Update.
3492 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
3494 2014-02-19 Tom Tromey <tromey@redhat.com>
3496 * target.h (struct target_ops) <to_fileio_open>: Add argument.
3497 * target.c (target_fileio_open): Add argument.
3498 * remote.c (remote_hostio_open): Add 'self' argument.
3499 (remote_bfd_iovec_open): Add 'self' argument.
3500 (remote_file_put): Add 'self' argument.
3501 (remote_file_get): Add 'self' argument.
3502 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
3504 2014-02-19 Tom Tromey <tromey@redhat.com>
3506 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
3508 (target_can_run_breakpoint_commands): Add argument.
3509 * target.c (update_current_target): Update.
3510 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
3512 (remote_insert_breakpoint): Add 'self' argument.
3513 (remote_insert_hw_breakpoint): Add 'self' argument.
3514 (remote_can_run_breakpoint_commands): Add 'self' argument.
3516 2014-02-19 Tom Tromey <tromey@redhat.com>
3518 * target.h (struct target_ops)
3519 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
3520 (target_supports_evaluation_of_breakpoint_conditions): Add
3522 * target.c (update_current_target): Update.
3523 * remote.c (remote_supports_cond_breakpoints): Add 'self'
3525 (remote_insert_breakpoint): Add 'self' argument.
3526 (remote_insert_hw_breakpoint): Add 'self' argument.
3527 (remote_supports_cond_breakpoints): Add 'self' argument.
3529 2014-02-19 Tom Tromey <tromey@redhat.com>
3531 * target.h (struct target_ops) <to_supports_string_tracing>: Add
3533 (target_supports_string_tracing): Add argument.
3534 * target.c (update_current_target): Update.
3535 * remote.c (remote_supports_string_tracing): Add 'self' argument.
3537 2014-02-19 Tom Tromey <tromey@redhat.com>
3539 * target.h (struct target_ops)
3540 <to_supports_disable_randomization>: Add argument.
3541 * target.c (find_default_supports_disable_randomization): Add
3543 (target_supports_disable_randomization): Add argument.
3544 (find_default_supports_disable_randomization): Add 'self'
3546 * remote.c (extended_remote_supports_disable_randomization): Add
3548 (remote_supports_disable_randomization): Add 'self' argument.
3549 (extended_remote_create_inferior): Update.
3550 * linux-nat.c (linux_nat_supports_disable_randomization): Add
3553 2014-02-19 Tom Tromey <tromey@redhat.com>
3555 * target.h (struct target_ops)
3556 <to_supports_enable_disable_tracepoint>: Add argument.
3557 (target_supports_enable_disable_tracepoint): Add argument.
3558 * target.c (update_current_target): Update.
3559 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
3562 2014-02-19 Tom Tromey <tromey@redhat.com>
3564 * target.h (struct target_ops) <to_supports_multi_process>: Add
3566 (target_supports_multi_process): Add argument.
3567 * target.c (update_current_target): Update.
3568 * remote.c (remote_supports_multi_process): Add 'self' argument.
3569 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
3571 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
3574 2014-02-19 Tom Tromey <tromey@redhat.com>
3576 * target.h (struct target_ops) <to_execution_direction>: Add
3578 (target_execution_direction): Add argument.
3579 * target.c (default_execution_direction): Add 'self' argument.
3580 * record-full.c (record_full_execution_direction): Add 'self'
3583 2014-02-19 Tom Tromey <tromey@redhat.com>
3585 * target.h (struct target_ops) <to_can_execute_reverse>: Add
3587 (target_can_execute_reverse): Add argument.
3588 * remote.c (remote_can_execute_reverse): Add 'self' argument.
3589 * record-full.c (record_full_can_execute_reverse): Add 'self'
3591 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
3594 2014-02-19 Tom Tromey <tromey@redhat.com>
3596 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
3597 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
3599 (target_get_ada_task_ptid): Add argument.
3600 * target.c (update_current_target): Update.
3601 (default_get_ada_task_ptid): Add 'self' argument.
3602 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
3603 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
3604 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
3606 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
3608 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
3610 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
3612 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
3613 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
3616 2014-02-19 Tom Tromey <tromey@redhat.com>
3618 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
3619 (target_goto_bookmark): Add argument.
3620 * target.c (dummy_goto_bookmark): Add 'self' argument.
3621 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
3623 2014-02-19 Tom Tromey <tromey@redhat.com>
3625 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
3626 (target_get_bookmark): Add argument.
3627 * target.c (dummy_get_bookmark): Add 'self' argument.
3628 * record-full.c (record_full_get_bookmark): Add 'self' argument.
3630 2014-02-19 Tom Tromey <tromey@redhat.com>
3632 * target.h (struct target_ops) <to_make_corefile_notes>: Add
3634 (target_make_corefile_notes): Add argument.
3635 * target.c (dummy_make_corefile_notes): Add 'self' argument.
3636 * procfs.c (procfs_make_note_section): Add 'self' argument.
3637 (procfs_make_note_section): Add 'self' argument.
3638 (procfs_make_note_section): Add 'self' argument.
3639 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
3641 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
3642 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
3643 * exec.c (exec_make_note_section): Add 'self' argument.
3644 (exec_make_note_section): Add 'self' argument.
3646 2014-02-19 Tom Tromey <tromey@redhat.com>
3648 * target.h (struct target_ops) <to_find_memory_regions>: Add
3650 (target_find_memory_regions): Add argument.
3651 * target.c (dummy_find_memory_regions): Add 'self' argument.
3652 * procfs.c (proc_find_memory_regions): Add 'self' argument.
3653 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
3654 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
3655 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
3656 * exec. (exec_do_find_memory_regions): New global.
3657 (exec_set_find_memory_regions): Rewrite.
3658 (exec_find_memory_regions): New function.
3659 (init_exec_ops): Use exec_find_memory_regions.
3661 2014-02-19 Tom Tromey <tromey@redhat.com>
3663 * target.h (struct target_ops) <to_supports_non_stop>: Add
3665 * target.c (find_default_supports_non_stop): Add argument.
3666 (target_supports_non_stop): Add argument.
3667 (find_default_supports_non_stop): Add 'self' argument.
3668 * remote.c (remote_supports_non_stop): Add 'self' argument.
3669 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
3671 2014-02-19 Tom Tromey <tromey@redhat.com>
3673 * target.h (struct target_ops) <to_log_command>: Add argument.
3674 (target_log_command): Add argument.
3675 * serial.h (serial_log_command): Add 'self' argument.
3676 * serial.c (serial_log_command): Add 'self' argument.
3678 2014-02-19 Tom Tromey <tromey@redhat.com>
3680 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
3681 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
3683 (target_pid_to_exec_file): Add argument.
3684 * target.c (debug_to_pid_to_exec_file): Add argument.
3685 (update_current_target): Update.
3686 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
3687 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
3688 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
3689 (linux_handle_extended_wait): Update.
3690 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
3691 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
3692 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
3693 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
3695 2014-02-19 Tom Tromey <tromey@redhat.com>
3697 * target.h (struct target_ops) <to_rcmd>: Add argument.
3698 (target_rcmd): Add argument.
3699 * target.c (debug_to_rcmd): Add argument.
3700 (update_current_target, do_monitor_command): Update.
3701 * remote.c (remote_rcmd): Add 'self' argument.
3702 * monitor.c (monitor_rcmd): Add 'self' argument.
3704 2014-02-19 Tom Tromey <tromey@redhat.com>
3706 * windows-nat.c (windows_stop): Add 'self' argument.
3707 * target.h (struct target_ops) <to_stop>: Add argument.
3708 * target.c (target_stop): Add argument.
3709 (debug_to_stop): Add argument.
3710 (update_current_target): Update.
3711 * remote.c (remote_stop): Add 'self' argument.
3712 * remote-sim.c (gdbsim_stop): Add 'self' argument.
3713 (gdbsim_cntrl_c): Update.
3714 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
3715 * procfs.c (procfs_stop): Add 'self' argument.
3716 * nto-procfs.c (procfs_stop): Add 'self' argument.
3717 * monitor.c (monitor_stop): Add 'self' argument.
3718 (monitor_open): Update.
3719 * linux-nat.c (linux_nat_stop): Add argument.
3720 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
3721 * gnu-nat.c (gnu_stop): Add 'self' argument.
3722 * darwin-nat.c (darwin_stop): Add 'self' argument.
3724 2014-02-19 Tom Tromey <tromey@redhat.com>
3726 * target.h (struct target_ops) <to_thread_name>: Add argument.
3727 * target.c (target_thread_name): Add argument.
3728 (update_current_target): Update.
3729 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
3731 2014-02-19 Tom Tromey <tromey@redhat.com>
3733 * target.h (struct target_ops) <to_extra_thread_info>: Add
3735 (target_extra_thread_info): Add argument.
3736 * target.c (update_current_target): Update.
3737 * remote.c (remote_threads_extra_info): Add 'self' argument.
3738 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
3740 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
3741 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
3742 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
3744 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
3746 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
3748 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
3751 2014-02-19 Tom Tromey <tromey@redhat.com>
3753 * target.h (struct target_ops) <to_program_signals>: Add argument.
3754 * target.c (target_program_signals): Add argument.
3755 * remote.c (remote_program_signals): Add 'self' argument.
3757 2014-02-19 Tom Tromey <tromey@redhat.com>
3759 * target.h (struct target_ops) <to_pass_signals>: Add argument.
3760 * target.c (target_pass_signals): Add argument.
3761 * remote.c (remote_pass_signals): Add 'self' argument.
3762 (remote_start_remote): Update.
3763 * procfs.c (procfs_pass_signals): Add 'self' argument.
3764 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
3765 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
3766 (linux_nat_create_inferior, linux_nat_attach): Update.
3768 2014-02-19 Tom Tromey <tromey@redhat.com>
3770 * windows-nat.c (windows_can_run): Add 'self' argument.
3771 * target.h (struct target_ops) <to_can_run>: Add argument.
3772 (target_can_run): Add argument.
3773 * target.c (debug_to_can_run): Add argument.
3774 (update_current_target): Update.
3775 * nto-procfs.c (procfs_can_run): Add 'self' argument.
3776 * inf-child.c (inf_child_can_run): Add 'self' argument.
3777 * go32-nat.c (go32_can_run): Add 'self' argument.
3779 2014-02-19 Tom Tromey <tromey@redhat.com>
3781 * target.h (struct target_ops) <to_has_exited>: Add argument.
3782 (target_has_exited): Add argument.
3783 * target.c (debug_to_has_exited): Add argument.
3784 (update_current_target): Update.
3786 2014-02-19 Tom Tromey <tromey@redhat.com>
3788 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
3790 (target_set_syscall_catchpoint): Add argument.
3791 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
3793 * target.c (update_current_target): Update.
3795 2014-02-19 Tom Tromey <tromey@redhat.com>
3797 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
3799 (target_remove_exec_catchpoint): Add argument.
3800 * target.c (debug_to_remove_exec_catchpoint): Add argument.
3801 (update_current_target): Update.
3802 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
3805 2014-02-19 Tom Tromey <tromey@redhat.com>
3807 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
3809 (target_insert_exec_catchpoint): Add argument.
3810 * target.c (debug_to_insert_exec_catchpoint): Add argument.
3811 (update_current_target): Update.
3812 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
3815 2014-02-19 Tom Tromey <tromey@redhat.com>
3817 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
3819 (target_remove_vfork_catchpoint): Add argument.
3820 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
3821 (update_current_target): Update.
3822 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
3825 2014-02-19 Tom Tromey <tromey@redhat.com>
3827 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
3829 (target_insert_vfork_catchpoint): Add argument.
3830 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
3831 (update_current_target): Update.
3832 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
3835 2014-02-19 Tom Tromey <tromey@redhat.com>
3837 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
3839 (target_remove_fork_catchpoint): Add argument.
3840 * target.c (debug_to_remove_fork_catchpoint): Add argument.
3841 (update_current_target): Update.
3842 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
3845 2014-02-19 Tom Tromey <tromey@redhat.com>
3847 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
3849 (target_insert_fork_catchpoint): Add argument.
3850 * target.c (debug_to_insert_fork_catchpoint): Add argument.
3851 (update_current_target): Update.
3852 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
3855 2014-02-19 Tom Tromey <tromey@redhat.com>
3857 * target.h (struct target_ops) <to_post_startup_inferior>: Add
3859 (target_post_startup_inferior): Add argument.
3860 * target.c (debug_to_post_startup_inferior): Add argument.
3861 (update_current_target): Update.
3862 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
3864 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
3866 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
3868 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
3870 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
3872 (super_post_startup_inferior): Likewise.
3873 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
3875 (super_post_startup_inferior): Likewise.
3876 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
3877 Add 'self' argument.
3878 (super_post_startup_inferior): Likewise.
3880 2014-02-19 Tom Tromey <tromey@redhat.com>
3882 * target.h (struct target_ops) <to_load>: Add argument.
3883 * target.c (target_load): Add argument.
3884 (debug_to_load): Add argument.
3885 (update_current_target): Update.
3886 * remote.c (remote_load): Add 'self' argument.
3887 * remote-sim.c (gdbsim_load): Add 'self' argument.
3888 * remote-mips.c (mips_load): Add 'self' argument.
3889 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
3890 * monitor.c (monitor_load): Add 'self' argument.
3891 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
3893 2014-02-19 Tom Tromey <tromey@redhat.com>
3895 * target.h (struct target_ops) <to_terminal_info>: Add argument.
3896 (target_terminal_info): Add argument.
3897 * target.c (debug_to_terminal_info): Add argument.
3898 (default_terminal_info): Likewise.
3899 * inflow.c (child_terminal_info): Add 'self' argument.
3900 * inferior.h (child_terminal_info): Add 'self' argument.
3901 * go32-nat.c (go32_terminal_info): Add 'self' argument.
3903 2014-02-19 Tom Tromey <tromey@redhat.com>
3905 * target.h (struct target_ops) <to_terminal_save_ours>: Add
3907 (target_terminal_save_ours): Add argument.
3908 * target.c (debug_to_terminal_save_ours): Add argument.
3909 (update_current_target): Update.
3910 * inflow.c (terminal_save_ours): Add 'self' argument.
3911 * inferior.h (terminal_save_ours): Add 'self' argument.
3913 2014-02-19 Tom Tromey <tromey@redhat.com>
3915 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
3916 (target_terminal_ours): Add argument.
3917 * target.c (debug_to_terminal_ours): Add argument.
3918 (update_current_target): Update.
3919 * remote.c (remote_terminal_ours): Add 'self' argument.
3920 (remote_close): Update.
3921 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
3922 * inflow.c (terminal_ours): Add 'self' argument.
3923 * inferior.h (terminal_ours): Add 'self' argument.
3924 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
3926 2014-02-19 Pedro Alves <palves@redhat.com>
3927 Tom Tromey <tromey@redhat.com>
3929 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
3931 (target_terminal_ours_for_output): Add argument.
3932 * target.c (debug_to_terminal_ours_for_output): Add argument.
3933 (update_current_target): Update.
3934 * inflow.c (terminal_ours_for_output): Add 'self' argument.
3935 * inferior.h (terminal_ours_for_output): Add 'self' argument.
3936 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
3938 2014-02-19 Tom Tromey <tromey@redhat.com>
3940 * target.h (struct target_ops) <to_terminal_inferior>: Add
3942 * target.c (target_terminal_inferior): Add argument.
3943 (update_current_target): Update.
3944 * remote.c (remote_terminal_inferior): Add 'self' argument.
3945 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
3946 * inflow.c (terminal_inferior): Add 'self' argument.
3947 * inferior.h (terminal_inferior): Add 'self' argument.
3948 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
3949 (go32_terminal_inferior): Add 'self' argument.
3951 2014-02-19 Tom Tromey <tromey@redhat.com>
3953 * target.h (struct target_ops) <to_terminal_init>: Add argument.
3954 (target_terminal_init): Add argument.
3955 * target.c (debug_to_terminal_init): Add argument.
3956 (update_current_target): Update.
3957 * inflow.c (terminal_init_inferior): Add 'self' argument.
3958 * inferior.h (terminal_init_inferior): Add 'self' argument.
3959 * go32-nat.c (go32_terminal_init): Add 'self' argument.
3960 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
3962 2014-02-19 Tom Tromey <tromey@redhat.com>
3964 * target.h (struct target_ops)
3965 <to_can_accel_watchpoint_condition>: Add argument.
3966 (target_can_accel_watchpoint_condition): Add argument.
3967 * target.c (debug_to_can_accel_watchpoint_condition): Add
3969 (update_current_target): Update.
3970 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
3973 2014-02-19 Tom Tromey <tromey@redhat.com>
3975 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
3977 (target_region_ok_for_hw_watchpoint): Add argument.
3978 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
3979 (default_region_ok_for_hw_watchpoint): Add argument.
3980 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
3981 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
3983 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
3985 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
3987 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
3989 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
3991 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
3993 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
3994 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
3996 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
3997 Add 'self' argument.
3999 2014-02-19 Tom Tromey <tromey@redhat.com>
4001 * target.h (struct target_ops) <to_insert_watchpoint>: Add
4003 (target_insert_watchpoint): Add argument.
4004 * target.c (debug_to_insert_watchpoint): Add argument.
4005 (update_current_target): Update.
4006 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
4007 * remote.c (remote_insert_watchpoint): Add 'self' argument.
4008 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
4009 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
4010 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
4011 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
4013 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
4014 (procfs_insert_hw_watchpoint): Add 'self' argument.
4015 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
4017 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
4019 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
4021 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
4022 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
4024 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
4027 2014-02-19 Tom Tromey <tromey@redhat.com>
4029 * target.h (struct target_ops) <to_remove_watchpoint>: Add
4031 (target_remove_watchpoint): Add argument.
4032 * target.c (debug_to_remove_watchpoint): Add argument.
4033 (update_current_target): Update.
4034 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
4035 * remote.c (remote_remove_watchpoint): Add 'self' argument.
4036 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
4037 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
4038 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
4039 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
4041 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
4042 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
4044 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
4046 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
4048 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
4049 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
4051 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
4054 2014-02-19 Tom Tromey <tromey@redhat.com>
4056 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
4058 (target_remove_hw_breakpoint): Add argument.
4059 * target.c (debug_to_remove_hw_breakpoint): Add argument.
4060 (update_current_target): Update.
4061 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
4062 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
4064 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
4065 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
4067 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
4070 2014-02-19 Tom Tromey <tromey@redhat.com>
4072 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
4074 (target_insert_hw_breakpoint): Add argument.
4075 * target.c (debug_to_insert_hw_breakpoint): Add argument.
4076 (update_current_target): Update.
4077 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
4078 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
4080 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
4081 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
4082 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
4084 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
4087 2014-02-19 Tom Tromey <tromey@redhat.com>
4089 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
4091 (target_can_use_hardware_watchpoint): Add argument.
4092 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
4093 (update_current_target): Update.
4094 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
4096 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
4098 * remote.c (remote_check_watch_resources): Add 'self' argument.
4099 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
4100 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
4102 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
4103 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
4105 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
4107 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
4109 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
4111 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
4113 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
4115 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
4116 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
4118 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
4121 2014-02-19 Tom Tromey <tromey@redhat.com>
4123 * target.h (struct target_ops) <to_post_attach>: Add argument.
4124 (target_post_attach): Add argument.
4125 * target.c (debug_to_post_attach): Add argument.
4126 (update_current_target): Update.
4127 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
4128 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
4129 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
4130 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
4131 * inf-child.c (inf_child_post_attach): Add 'self' argument.
4133 2014-02-19 Tom Tromey <tromey@redhat.com>
4135 * windows-nat.c (windows_close): Add 'self' argument.
4136 * tracepoint.c (tfile_close): Add 'self' argument.
4137 * target.h (struct target_ops) <to_close>: Add argument.
4138 * target.c (target_close): Add argument.
4139 (update_current_target): Update.
4140 * remote.c (remote_close): Add 'self' argument.
4141 * remote-sim.c (gdbsim_close): Add 'self' argument.
4142 * remote-mips.c (mips_close): Add 'self' argument.
4143 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
4144 * record-full.c (record_full_close): Add 'self' argument.
4145 * record-btrace.c (record_btrace_close): Add 'self' argument.
4146 * monitor.h (monitor_close): Add 'self' argument.
4147 * monitor.c (monitor_close): Add 'self' argument.
4148 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
4149 * linux-nat.c (linux_nat_close): Add argument.
4150 * go32-nat.c (go32_close): Add 'self' argument.
4151 * exec.c (exec_close_1): Add 'self' argument.
4152 * ctf.c (ctf_close): Add 'self' argument.
4153 * corelow.c (core_close): Add 'self' argument.
4154 (core_close_cleanup): Update.
4155 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
4156 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
4158 2014-02-19 Tom Tromey <tromey@redhat.com>
4160 * remote.c (remote_load): New function.
4161 (init_remote_ops): Use it.
4163 2014-02-19 Tom Tromey <tromey@redhat.com>
4165 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
4167 * common/linux-btrace.h (linux_supports_btrace): Update.
4168 * remote.c (remote_supports_btrace): Add "self" argument.
4169 * target-delegates.c: Rebuild.
4170 * target.c (target_supports_btrace): Remove.
4171 * target.h (struct target_ops) <to_supports_btrace>: Add
4172 target_ops argument.
4173 (target_supports_btrace): New define.
4175 2014-02-19 Tom Tromey <tromey@redhat.com>
4177 * record-full.c (record_full_beneath_to_resume_ops)
4178 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
4179 (record_full_beneath_to_wait)
4180 (record_full_beneath_to_store_registers_ops)
4181 (record_full_beneath_to_store_registers)
4182 (record_full_beneath_to_xfer_partial_ops)
4183 (record_full_beneath_to_xfer_partial)
4184 (record_full_beneath_to_insert_breakpoint_ops)
4185 (record_full_beneath_to_insert_breakpoint)
4186 (record_full_beneath_to_remove_breakpoint_ops)
4187 (record_full_beneath_to_remove_breakpoint)
4188 (record_full_beneath_to_stopped_by_watchpoint)
4189 (record_full_beneath_to_stopped_data_address)
4190 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
4191 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
4192 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
4193 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
4194 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
4195 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
4196 (tmp_to_stopped_data_address, tmp_to_async): Remove.
4197 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
4198 (record_full_resume, record_full_wait_1)
4199 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
4200 (record_full_store_registers, record_full_xfer_partial)
4201 (record_full_insert_breakpoint, record_full_remove_breakpoint)
4202 (record_full_async, record_full_core_xfer_partial): Use target
4204 * target-delegates.c: Rebuild.
4205 * target.c (current_xfer_partial): Remove.
4206 (update_current_target): Do not INHERIT or de_fault
4207 to_insert_breakpoint, to_remove_breakpoint,
4208 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
4209 to_is_async_p, to_async. Do not set to_xfer_partial field.
4210 (default_xfer_partial): Simplify.
4211 (current_xfer_partial): Remove.
4212 (target_wait, target_resume): Simplify.
4213 (find_default_can_async_p, find_default_is_async_p): Update.
4214 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
4215 to_xfer_partial, to_stopped_by_watchpoint,
4216 to_stopped_data_address.
4217 (target_store_registers): Simplify.
4218 (forward_target_remove_breakpoint)
4219 (forward_target_insert_breakpoint): Remove.
4220 (target_remove_breakpoint, target_insert_breakpoint)
4221 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
4222 * target.h (struct target_ops) <to_resume, to_wait,
4223 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
4224 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
4225 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
4227 (forward_target_remove_breakpoint)
4228 (forward_target_insert_breakpoint): Remove.
4229 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
4231 (record_btrace_insert_breakpoint): Delegate directly.
4233 2014-02-19 Tom Tromey <tromey@redhat.com>
4236 * target-delegates.c: New file.
4237 * target.c: Include target-delegates.c.
4238 (init_dummy_target): Call install_dummy_methods.
4239 (complete_target_initialization): Call install_delegators.
4240 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
4241 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
4242 * make-target-delegates: New file.
4244 2014-02-19 Tom Tromey <tromey@redhat.com>
4246 * record.c (find_record_target): Use find_target_at.
4247 * target.c (find_target_at): New function.
4248 * target.h (find_target_at): Declare.
4250 2014-02-19 Tom Tromey <tromey@redhat.com>
4252 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
4254 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
4256 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
4257 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
4259 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
4261 * linux-nat.c (save_sigtrap): Update.
4262 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
4263 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
4264 (linux_nat_close): Update.
4265 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
4267 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
4269 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
4270 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
4271 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
4272 (tmp_to_async): Add 'ops' argument.
4273 (record_full_stopped_by_watchpoint, record_full_async)
4274 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
4276 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
4277 (m32r_stopped_by_watchpoint): Add 'ops' argument.
4278 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
4279 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
4280 (remote_is_async_p, remote_async): Add 'ops' argument.
4281 (remote_stopped_data_address): Update.
4282 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
4283 * target.c (update_current_target)
4284 (find_default_can_async_p, find_default_is_async_p): Update.
4285 (init_dummy_target): Update.
4286 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
4287 * target.h (struct target_ops) <to_stopped_by_watchpoint,
4288 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
4289 (target_can_async_p, target_is_async_p, target_async)
4290 (target_stopped_by_watchpoint): Update.
4292 2014-02-19 Yao Qi <yao@codesourcery.com>
4295 * gdbarch.sh: Remove startup_gdbarch.
4296 * gdbarch.c: Regenerated.
4297 * gdbarch.h: Likewise.
4299 2014-02-17 Kevin Buettner <kevinb@redhat.com>
4301 * rl78-tdep.c (rl78_g10_register_name): New function.
4302 (rl78_return_value): Add g10 support.
4303 (rl78_gdbarch_init): Register rl78_g10_register_name for the
4306 2014-02-17 Doug Evans <xdje42@gmail.com>
4308 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
4309 (SUBDIR_GUILE_SRCS): Ditto.
4310 (scm-gsmob.o): Ditto.
4312 2014-02-17 Yao Qi <yao@codesourcery.com>
4314 * gnu-nat.c (ILL_RPC): Declare defined function.
4316 2014-02-17 Yao Qi <yao@codesourcery.com>
4318 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
4319 mach_msg_type_number_t.
4320 (gnu_write_inferior): Likewise.
4322 2014-02-17 Yao Qi <yao@codesourcery.com>
4324 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
4326 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
4327 (inf_validate_procs, inf_signal): Likewise.
4328 (S_exception_raise_request): Likewise.
4329 (do_mach_notify_dead_name): Likewise.
4330 (steal_exc_port): Likewise.
4331 (gnu_read_inferior): Change 'copy_count''s type to
4332 mach_msg_type_number_t.
4333 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
4336 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
4338 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
4339 flag. Adjust all users; in particular...
4340 (gnu_wait): ..., don't decrement its value in here...
4341 (gnu_create_inferior): ..., and instead set the flag in here,
4342 around the startup_inferior call, and call that one with
4343 START_INFERIOR_TRAPS_EXPECTED.
4345 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
4346 (ILL_RPC): ... new macro.
4347 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
4348 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
4349 (do_mach_notify_send_once, S_proc_setmsgport_reply)
4350 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
4351 functions with ILL_RPC macro.
4352 (S_proc_pid2task_reply, S_proc_task2pid_reply)
4353 (S_proc_task2proc_reply, S_proc_proc2task_reply)
4354 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
4355 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
4356 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
4357 (S_proc_getlogin_reply, S_proc_getsid_reply)
4358 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
4359 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
4360 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
4361 (S_proc_getnports_reply, S_proc_is_important_reply)
4362 (S_proc_get_code_reply): New stub functions, generated with
4365 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
4366 collected the type check structures.
4368 * reply_mig_hack.awk: Don't expect to see the auto keyword.
4370 2014-02-14 Doug Evans <dje@google.com>
4372 * target.c (target_write_partial): Fix result type.
4374 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
4376 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
4377 the proper offsets to access fpregset_t.
4379 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
4381 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
4382 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
4383 * h8300-tdep.c (setmachinelist): Remove global.
4384 * hppa-tdep.c (hppa_sigtramp): Remove global.
4385 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
4386 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
4387 * ravenscar-thread.c (update_target_observer): Remove global.
4388 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
4390 2014-02-12 Tom Tromey <tromey@redhat.com>
4392 * common/rsp-low.c: Update comments.
4393 * common/rsp-low.h: Update comments.
4395 2014-02-12 Tom Tromey <tromey@redhat.com>
4397 * common/rsp-low.c (convert_ascii_to_int): Remove.
4398 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
4400 2014-02-12 Tom Tromey <tromey@redhat.com>
4402 * common/rsp-low.h (unhexify): Don't declare.
4403 * common/rsp-low.c (unhexify): Remove.
4405 2014-02-12 Tom Tromey <tromey@redhat.com>
4407 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
4408 * common/rsp-low.c (convert_int_to_ascii): Remove.
4410 2014-02-12 Tom Tromey <tromey@redhat.com>
4412 * common/rsp-low.h (hexify): Don't declare.
4413 * common/rsp-low.c (hexify): Remove.
4415 2014-02-12 Tom Tromey <tromey@redhat.com>
4417 * common/rsp-low.c (hexify): Never take strlen of argument.
4419 2014-02-12 Tom Tromey <tromey@redhat.com>
4421 * common/rsp-low.c (bin2hex): Never take strlen of argument.
4422 * remote.c (extended_remote_run, remote_rcmd)
4423 (remote_download_trace_state_variable, remote_save_trace_data)
4424 (remote_set_trace_notes): Update.
4425 * tracepoint.c (encode_source_string, tfile_write_status)
4426 (tfile_write_uploaded_tsv): Update.
4428 2014-02-12 Tom Tromey <tromey@redhat.com>
4430 * tracepoint.c: Include rsp-low.h.
4431 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
4432 * remote.c: Include rsp-low.h.
4433 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
4434 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
4435 (remote_unescape_input): Move to common/rsp-low.c.
4436 * common/rsp-low.h: New file.
4437 * common/rsp-low.c: New file.
4438 * Makefile.in (SFILES): Add common/rsp-low.c.
4439 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
4440 (COMMON_OBS): Add rsp-low.o.
4441 (rsp-low.o): New target.
4443 2014-02-12 Tom Tromey <tromey@redhat.com>
4445 * utils.h: Include print-utils.h.
4446 (host_address_to_string, plongest, pulongest, phex, phex_nz)
4447 (int_string, core_addr_to_string, core_addr_to_string_nz)
4448 (hex_string, hex_string_custom): Don't declare.
4449 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
4450 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
4451 (hex_string_custom, int_string, core_addr_to_string)
4452 (core_addr_to_string_nz, host_address_to_string): Move to
4453 common/print-utils.c.
4454 * common/print-utils.h: New file.
4455 * common/print-utils.c: New file
4456 * Makefile.in (SFILES): Add common/print-utils.c.
4457 (HFILES_NO_SRCDIR): Add common/print-utils.h.
4458 (COMMON_OBS): Add print-utils.o.
4459 (print-utils.o): New target.
4461 2014-02-12 Tom Tromey <tromey@redhat.com>
4463 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
4465 2014-02-12 Mark Kettenis <kettenis@gnu.org>
4467 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
4469 2014-02-12 Mark Kettenis <kettenis@gnu.org>
4471 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
4472 if a PT_IO ptrace request returns sucessfully but indicates that 0
4473 bytes were transferred.
4475 2014-02-12 Pedro Alves <palves@redhat.com>
4476 Kevin Buettner <kevinb@redhat.com>
4478 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
4479 TYPE_INSTANCE_FLAG_CODE_SPACE.
4481 2014-02-12 Pedro Alves <palves@redhat.com>
4483 * h8300-tdep.c (pseudo_from_raw_register)
4484 (raw_from_pseudo_register): New functions.
4485 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
4488 2014-02-12 Pedro Alves <palves@redhat.com>
4490 * h8300-tdep.c (h8300_register_sim_regno): New function.
4491 (h8300_gdbarch_init): Install h8300_register_sim_regno as
4492 gdbarch_register_sim_regno hook.
4494 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
4496 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
4498 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
4500 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
4502 2014-02-12 Mark Kettenis <kettenis@gnu.org>
4504 * obsd-tdep.h (obsd_init_abi): New prototype.
4505 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
4506 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
4507 (obsd_init_abi): New functions.
4508 * i386obsd-tdep.c: Include "obsd-tdep.h".
4509 (i386obsd_init_abi): Call obsd_init_abi.
4510 * amd64obsd-tdep.c: Include "obsd-tdep.h".
4511 (amd64obsd_init_abi): Call obsd_init_abi.
4512 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
4513 obsd-tdep.c to gdb_target_obs.
4515 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
4517 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
4518 double float arguments to 16-byte in the argument slots.
4520 2014-02-11 Doug Evans <xdje42@gmail.com>
4522 * configure.ac: Don't crash if pkg-config is not found and guile
4523 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
4525 * configure: Regenerate.
4527 2014-02-11 Yao Qi <yao@codesourcery.com>
4529 * aix-thread.c (aix_thread_xfer_partial): Update comments.
4530 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
4531 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
4532 * gnu-nat.c (gnu_xfer_memory): Likewise.
4533 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
4534 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
4535 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
4536 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
4538 2014-02-11 Yao Qi <yao@codesourcery.com>
4540 * target.h (enum target_xfer_error): Rename to ...
4541 (enum target_xfer_status): ... it. New. All users updated.
4542 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
4544 (TARGET_XFER_STATUS_ERROR_P): New macro.
4545 (target_xfer_error_to_string): Remove declaration.
4546 (target_xfer_status_to_string): Declare.
4547 (target_xfer_partial_ftype): Adjust it.
4548 (struct target_ops) <to_xfer_partial>: Return
4549 target_xfer_status. Add argument xfered_len. Update
4551 * target.c (target_xfer_error_to_string): Rename to ...
4552 (target_xfer_status_to_string): ... it. New. All callers
4554 (target_read_live_memory): Likewise. Call target_xfer_partial
4555 instead of target_read.
4556 (memory_xfer_live_readonly_partial): Return
4557 target_xfer_status. Add argument xfered_len.
4558 (raw_memory_xfer_partial): Likewise.
4559 (memory_xfer_partial_1): Likewise.
4560 (memory_xfer_partial): Likewise.
4561 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
4562 properly. Update debug message.
4563 (default_xfer_partial, current_xfer_partial): Likewise.
4564 (target_write_partial): Likewise.
4565 (target_read_partial): Likewise. All callers updated.
4566 (read_whatever_is_readable): Likewise.
4567 (target_write_with_progress): Likewise.
4568 (target_read_alloc_1): Likewise.
4570 * aix-thread.c (aix_thread_xfer_partial): Likewise.
4571 * auxv.c (procfs_xfer_auxv): Likewise.
4572 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
4573 * bfd-target.c (target_bfd_xfer_partial): Likewise.
4574 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
4575 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
4576 * corefile.c (read_memory): Adjust.
4577 * corelow.c (core_xfer_partial): Likewise.
4578 * ctf.c (ctf_xfer_partial): Likewise.
4579 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
4581 (darwin_xfer_partial): Likewise.
4582 * exec.c (section_table_xfer_memory_partial): Likewise. All
4584 (exec_xfer_partial): Likewise.
4585 * exec.h (section_table_xfer_memory_partial): Update
4587 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
4589 (gnu_xfer_partial): Likewise.
4590 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
4591 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
4592 (ia64_hpux_xfer_solib_got): Likewise.
4593 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
4594 type of 'partial_len' to ULONGEST.
4595 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
4596 * linux-nat.c (linux_xfer_siginfo ): Likewise.
4597 (linux_nat_xfer_partial): Likewise.
4598 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
4599 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
4600 * monitor.c (monitor_xfer_memory): Likewise.
4601 (monitor_xfer_partial): Likewise.
4602 * procfs.c (procfs_xfer_partial): Likewise.
4603 * record-btrace.c (record_btrace_xfer_partial): Likewise.
4604 * record-full.c (record_full_xfer_partial): Likewise.
4605 (record_full_core_xfer_partial): Likewise.
4606 * remote-sim.c (gdbsim_xfer_memory): Likewise.
4607 (gdbsim_xfer_partial): Likewise.
4608 * remote.c (remote_write_bytes_aux): Likewise. All callers
4610 (remote_write_bytes, remote_read_bytes): Likewise. All
4612 (remote_flash_erase): Likewise. All callers updated.
4613 (remote_write_qxfer): Likewise. All callers updated.
4614 (remote_read_qxfer): Likewise. All callers updated.
4615 (remote_xfer_partial): Likewise.
4616 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
4617 (rs6000_xfer_shared_libraries): Likewise.
4618 * sol-thread.c (sol_thread_xfer_partial): Likewise.
4619 (sol_thread_xfer_partial): Likewise.
4620 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
4621 (sparc_xfer_partial): Likewise.
4622 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
4624 (spu_xfer_partial): Likewise.
4625 * spu-multiarch.c (spu_xfer_partial): Likewise.
4626 * tracepoint.c (tfile_xfer_partial): Likewise.
4627 * windows-nat.c (windows_xfer_memory): Likewise.
4628 (windows_xfer_shared_libraries): Likewise.
4629 (windows_xfer_partial): Likewise.
4630 * valprint.c: Replace 'target_xfer_error' with
4631 'target_xfer_status' in comments.
4633 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
4635 Checked in by Joel Brobecker <brobecker@adacore.com>.
4636 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
4638 2014-02-11 Joel Brobecker <brobecker@adacore.com>
4640 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
4641 function parameters.
4643 2014-02-10 Will Newton <will.newton@linaro.org>
4645 * elfread.c (elf_rel_plt_read): Look for a .got section if
4646 looking up .got.plt fails.
4647 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
4648 on address passed to elf_gnu_ifunc_record_cache.
4649 (elf_gnu_ifunc_resolve_addr): Likewise.
4650 (elf_gnu_ifunc_resolver_return_stop): Likewise.
4652 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
4654 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
4655 (X_RETTURN): New macro.
4656 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
4658 * sparc64-tdep.c (sparc64_init_abi): Hook
4659 sparc_in_function_epilogue_p.
4661 2014-02-10 Gary Benson <gbenson@redhat.com>
4663 * symfile-debug.c (debug_qf_expand_symtabs_matching):
4664 Rename name_matcher to symbol_matcher.
4666 2014-02-10 Gary Benson <gbenson@redhat.com>
4668 * symfile-debug.c (debug_qf_expand_symtabs_matching):
4669 Use expand_symtabs_file_matcher_ftype and
4670 expand_symtabs_symbol_matcher_ftype.
4672 2014-02-10 Joel Brobecker <brobecker@adacore.com>
4674 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
4675 (struct ada_symbol_cache): New.
4676 (ada_free_symbol_cache): Forward declare.
4677 (struct ada_pspace_data): New.
4678 (ada_pspace_data_handle): New static global.
4679 (get_ada_pspace_data, ada_pspace_data_cleanup)
4680 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
4681 (cache_space, cache): Delete, now folded inside struct
4683 (ada_get_symbol_cache): New function.
4684 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
4686 (_initialize_ada_language): Remove initialization of cache_space.
4687 Move call to observer_attach_inferior_exit up, grouping it
4688 with the other observer registrations inside this function.
4689 Rename command to be more general. Add call to
4690 register_program_space_data_with_cleanup.
4692 2014-02-10 Joel Brobecker <brobecker@adacore.com>
4694 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
4695 ada_new_objfile_observer.
4696 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
4697 (_initialize_tasks): Update uses of ada_new_objfile_observer
4698 and ada_tasks_normal_stop_observer.
4700 2014-02-10 Joel Brobecker <brobecker@adacore.com>
4702 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
4703 returned by the 'Length attribute to integer.
4705 2014-02-10 Joel Brobecker <brobecker@adacore.com>
4707 * ada-lang.c (_initialize_ada_language): Initialize
4708 cache_space obstack.
4710 2014-02-10 Joel Brobecker <brobecker@adacore.com>
4712 * ada-lang.c (HASH_SIZE): New macro.
4713 (struct cache_entry): New type.
4714 (cache_space, cache): New static globals.
4715 (ada_clear_symbol_cache, find_entry): New functions.
4716 (lookup_cached_symbol, cache_symbol): Implement.
4717 (ada_new_objfile_observer, ada_free_objfile_observer): New.
4718 (_initialize_ada_language): Attach ada_new_objfile_observer
4719 and ada_free_objfile_observer.
4721 2014-02-10 Joel Brobecker <brobecker@adacore.com>
4723 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
4724 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
4725 struct block * parameter.
4726 (ada_lookup_symbol_list_worker): Constify local variable "block".
4727 Remove cast which is no longer necessary.
4729 2014-02-10 Doug Evans <xdje42@gmail.com>
4731 Add Guile as an extension language.
4732 * NEWS: Mention Guile scripting.
4733 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
4734 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
4735 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
4736 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
4737 (CLIBS): Add GUILE_LIBS.
4738 (install-guile): New rule.
4739 (guile.o): New rule.
4740 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
4741 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
4742 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
4743 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
4744 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
4745 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
4746 (scm-type.o, scm-utils.o, scm-value.o): New rules.
4747 * configure.ac: New option --with-guile.
4748 * configure: Regenerate.
4749 * config.in: Regenerate.
4750 * auto-load.c: Remove #include "python/python.h". Add #include
4751 "gdb/section-scripts.h".
4752 (source_section_scripts): Handle Guile scripts.
4753 (_initialize_auto_load): Add name of Guile objfile script to
4754 scripts-directory help text.
4755 * breakpoint.c (condition_command): Tweak comment to include Scheme.
4756 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
4757 (struct breakpoint): New member scm_bp_object.
4758 * defs.h (enum command_control_type): New value guile_control.
4759 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
4761 (show_user): Update comment.
4762 (_initialize_cli_cmds): Update help text for "show user". Update help
4763 text for max-user-call-depth.
4764 * cli/cli-script.c: Remove #include "python/python.h". Add #include
4766 (multi_line_command_p): Add guile_control.
4767 (print_command_lines): Handle guile_control.
4768 (execute_control_command, recurse_read_control_structure): Ditto.
4769 (process_next_line): Recognize "guile" commands.
4770 * disasm.c (gdb_disassemble_info): Make non-static.
4771 * disasm.h: #include "dis-asm.h".
4772 (struct gdbarch): Add forward decl.
4773 (gdb_disassemble_info): Declare.
4774 * extension.c: #include "guile/guile.h".
4775 (extension_languages): Add guile.
4776 (get_ext_lang_defn): Handle EXT_LANG_GDB.
4777 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
4778 * gdbtypes.c (get_unsigned_type_max): New function.
4779 (get_signed_type_minmax): New function.
4780 * gdbtypes.h (get_unsigned_type_max): Declare.
4781 (get_signed_type_minmax): Declare.
4782 * guile/README: New file.
4783 * guile/guile-internal.h: New file.
4784 * guile/guile.c: New file.
4785 * guile/guile.h: New file.
4786 * guile/scm-arch.c: New file.
4787 * guile/scm-auto-load.c: New file.
4788 * guile/scm-block.c: New file.
4789 * guile/scm-breakpoint.c: New file.
4790 * guile/scm-disasm.c: New file.
4791 * guile/scm-exception.c: New file.
4792 * guile/scm-frame.c: New file.
4793 * guile/scm-gsmob.c: New file.
4794 * guile/scm-iterator.c: New file.
4795 * guile/scm-lazy-string.c: New file.
4796 * guile/scm-math.c: New file.
4797 * guile/scm-objfile.c: New file.
4798 * guile/scm-ports.c: New file.
4799 * guile/scm-pretty-print.c: New file.
4800 * guile/scm-safe-call.c: New file.
4801 * guile/scm-string.c: New file.
4802 * guile/scm-symbol.c: New file.
4803 * guile/scm-symtab.c: New file.
4804 * guile/scm-type.c: New file.
4805 * guile/scm-utils.c: New file.
4806 * guile/scm-value.c: New file.
4807 * guile/lib/gdb.scm: New file.
4808 * guile/lib/gdb/boot.scm: New file.
4809 * guile/lib/gdb/experimental.scm: New file.
4810 * guile/lib/gdb/init.scm: New file.
4811 * guile/lib/gdb/iterator.scm: New file.
4812 * guile/lib/gdb/printing.scm: New file.
4813 * guile/lib/gdb/types.scm: New file.
4814 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
4815 (VPATH): Add $(GUILE_SRCDIR).
4816 (GUILE_DIR): New variable.
4817 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
4818 (all): Add stamp-guile dependency.
4819 (stamp-guile): New rule.
4820 (clean-guile, install-guile, uninstall-guile): New rules.
4821 (install-only): Add install-guile dependency.
4822 (uninstall): Add uninstall-guile dependency.
4823 (clean): Add clean-guile dependency.
4825 2014-02-09 Doug Evans <xdje42@gmail.com>
4827 Revert this patch (which I approved, mea culpa).
4829 2014-02-08 Mark Kettenis <kettenis@gnu.org>
4831 * Makefile.in (all-lib): Remove.
4832 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
4834 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4836 Fix Python stack corruption.
4837 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
4840 2014-02-08 Mark Kettenis <kettenis@gnu.org>
4842 * Makefile.in (all-lib): Remove.
4843 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
4845 2014-02-07 Doug Evans <dje@google.com>
4847 * extension-priv.h (extension_language_script_ops): Add comment.
4848 (extension_language_ops): Add comment.
4849 (active_ext_lang_state): Fix typo in comment.
4851 2014-02-07 Pedro Alves <palves@redhat.com>
4853 PR breakpoints/16292
4854 * infrun.c (handle_signal_stop) <signal arrives while stepping
4855 over a breakpoint>: Switch back to the stepping thread.
4857 2014-02-07 Yao Qi <yao@codesourcery.com>
4859 * target.c (target_xfer_partial): Return zero if LEN is zero.
4861 2014-02-07 Yao Qi <yao@codesourcery.com>
4863 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
4864 (ld_so_xfer_auxv): Likewise.
4865 * bfd-target.c (target_bfd_xfer_partial): Likewise.
4866 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
4867 * corelow.c (core_xfer_partial): Likewise.
4868 * ctf.c (ctf_xfer_partial): Likewise.
4869 * darwin-nat.c (darwin_read_dyld_info): Likewise.
4870 (darwin_xfer_partial): Likewise.
4871 * exec.c (exec_xfer_partial): Likewise.
4872 * gnu-nat.c (gnu_xfer_partial): Likewise.
4873 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
4874 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
4875 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
4876 * linux-nat.c (linux_xfer_siginfo): Likewise.
4877 (linux_proc_xfer_spu): Likewise.
4878 * procfs.c (procfs_xfer_partial): Likewise.
4879 * record-full.c (record_full_xfer_partial): Likewise.
4880 (record_full_core_xfer_partial): Likewise.
4881 * remote-sim.c (gdbsim_xfer_partial): Likewise.
4882 * remote.c (remote_write_qxfer): Likewise.
4883 (remote_write_qxfer, remote_read_qxfer): Likewise.
4884 (remote_xfer_partial): Likewise.
4885 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
4886 (rs6000_xfer_shared_libraries): Likewise.
4887 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
4888 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
4889 (spu_xfer_partial): Likewise.
4890 * target.c (memory_xfer_partial_1): Likewise.
4891 * tracepoint.c (tfile_xfer_partial): Likewise.
4892 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
4893 (windows_xfer_partial): Likewise.
4895 2014-02-07 Yao Qi <yao@codesourcery.com>
4897 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
4899 (core_xfer_shared_libraries_aix): Likewise.
4900 * gdbarch.c, gdbarch.h: Regenerated.
4901 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
4902 ULONGEST. Change 'len_avail' type to ULONGEST.
4903 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
4904 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
4906 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
4908 2014-02-07 Yao Qi <yao@codesourcery.com>
4910 * corefile.c (memory_error): Get 'exception' from ERR and pass
4911 'exception' to throw_error.
4913 2014-02-06 Doug Evans <xdje42@gmail.com>
4915 * configure.ac (libpython checking): Remove all but python.o from
4916 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
4917 * configure: Regenerate.
4919 * Makefile.in (SFILES): Add extension.c.
4920 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
4921 (COMMON_OBS): Add extension.o.
4922 * extension.h: New file.
4923 * extension-priv.h: New file.
4924 * extension.c: New file.
4926 * python/python-internal.h: #include "extension.h".
4927 (gdbpy_auto_load_enabled): Declare.
4928 (gdbpy_apply_val_pretty_printer): Declare.
4929 (gdbpy_apply_frame_filter): Declare.
4930 (gdbpy_preserve_values): Declare.
4931 (gdbpy_breakpoint_cond_says_stop): Declare.
4932 (gdbpy_breakpoint_has_cond): Declare.
4933 (void source_python_script_for_objfile): Delete.
4934 * python/python.c: #include "extension-priv.h".
4935 Delete inclusion of "observer.h".
4936 (extension_language_python): Moved here and renamed from
4937 script_language_python in py-auto-load.c.
4938 Redefined to be of type extension_language_defn.
4939 (python_extension_script_ops): New global.
4940 (python_extension_ops): New global.
4941 (struct python_env): New member previous_active.
4942 (restore_python_env): Call restore_active_ext_lang.
4943 (ensure_python_env): Call set_active_ext_lang.
4944 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
4946 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
4948 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
4950 (gdbpy_eval_from_control_command): Renamed from
4951 eval_python_from_control_command, made static. New arg extlang.
4952 (gdbpy_source_script) Renamed from source_python_script, made static.
4954 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
4955 result to int. New arg extlang.
4956 (gdbpy_source_objfile_script): Renamed from
4957 source_python_script_for_objfile, made static. New arg extlang.
4958 (gdbpy_start_type_printers): Renamed from start_type_printers, made
4959 static. New args extlang, extlang_printers. Change result type to
4961 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
4962 static. New arg extlang. Rename arg printers to extlang_printers
4963 and change type to ext_lang_type_printers *.
4964 (gdbpy_free_type_printers): Renamed from free_type_printers, made
4965 static. Replace argument arg with extlang, extlang_printers.
4966 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
4967 (!HAVE_PYTHON, source_python_script): Delete.
4968 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
4969 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
4970 (!HAVE_PYTHON, start_type_printers): Delete.
4971 (!HAVE_PYTHON, apply_type_printers): Delete.
4972 (!HAVE_PYTHON, free_type_printers): Delete.
4973 (_initialize_python): Delete call to observer_attach_before_prompt.
4974 (finalize_python): Set/restore active extension language.
4975 (gdbpy_finish_initialization) Renamed from
4976 finish_python_initialization, made static. New arg extlang.
4977 (gdbpy_initialized): New function.
4978 * python/python.h: #include "extension.h". Delete #include
4979 "value.h", "mi/mi-cmds.h".
4980 (extension_language_python): Declare.
4981 (GDBPY_AUTO_FILE_NAME): Delete.
4982 (enum py_bt_status): Moved to extension.h and renamed to
4984 (enum frame_filter_flags): Moved to extension.h.
4985 (enum py_frame_args): Moved to extension.h and renamed to
4986 ext_lang_frame_args.
4987 (finish_python_initialization): Delete.
4988 (eval_python_from_control_command): Delete.
4989 (source_python_script): Delete.
4990 (apply_val_pretty_printer): Delete.
4991 (apply_frame_filter): Delete.
4992 (preserve_python_values): Delete.
4993 (gdbpy_script_language_defn): Delete.
4994 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
4995 (start_type_printers, apply_type_printers, free_type_printers): Delete.
4997 * auto-load.c: #include "extension.h".
4998 (GDB_AUTO_FILE_NAME): Delete.
4999 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
5000 (script_language_gdb): Delete, moved to extension.c and renamed to
5001 extension_language_gdb.
5002 (source_gdb_script_for_objfile): Delete.
5003 (auto_load_pspace_info): New member unsupported_script_warning_printed.
5004 (loaded_script): Change type of language member to
5005 struct extension_language_defn *.
5006 (init_loaded_scripts_info): Initialize
5007 unsupported_script_warning_printed.
5008 (maybe_add_script): Make static. Change type of language arg to
5009 struct extension_language_defn *.
5010 (clear_section_scripts): Reset unsupported_script_warning_printed.
5011 (auto_load_objfile_script_1): Rewrite to use extension language API.
5012 (auto_load_objfile_script): Make public. Remove support-compiled-in
5013 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
5014 (source_section_scripts): Rewrite to use extension language API.
5015 (load_auto_scripts_for_objfile): Rewrite to use
5016 auto_load_scripts_for_objfile.
5017 (collect_matching_scripts_data): Change type of language member to
5018 struct extension_language_defn *.
5019 (auto_load_info_scripts): Change type of language arg to
5020 struct extension_language_defn *.
5021 (unsupported_script_warning_print): New function.
5022 (script_not_found_warning_print): Make static.
5023 (_initialize_auto_load): Rewrite construction of scripts-directory
5025 * auto-load.h (struct objfile): Add forward decl.
5026 (struct script_language): Delete.
5027 (struct auto_load_pspace_info): Add forward decl.
5028 (struct extension_language_defn): Add forward decl.
5029 (maybe_add_script): Delete.
5030 (auto_load_objfile_script): Declare.
5031 (script_not_found_warning_print): Delete.
5032 (auto_load_info_scripts): Update prototype.
5033 (auto_load_gdb_scripts_enabled): Declare.
5034 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
5035 auto_load_python_scripts_enabled and made public.
5036 (script_language_python): Delete, moved to python.c.
5037 (gdbpy_script_language_defn): Delete.
5038 (info_auto_load_python_scripts): Update to use
5039 extension_language_python.
5041 * breakpoint.c (condition_command): Replace call to
5042 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
5043 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
5044 with call to breakpoint_ext_lang_cond_says_stop.
5045 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
5046 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
5047 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
5048 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
5050 (local_setattro): Print name of extension language with existing
5053 * valprint.c (val_print, value_print): Update to call
5054 apply_ext_lang_val_pretty_printer.
5055 * cp-valprint.c (cp_print_value): Update call to
5056 apply_ext_lang_val_pretty_printer.
5057 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
5058 (gdbpy_apply_val_pretty_printer): Renamed from
5059 apply_val_pretty_printer. New arg extlang.
5060 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
5062 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
5063 extension language API.
5064 * cli/cli-script.c (execute_control_command): Update to call
5065 eval_ext_lang_from_control_command.
5067 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
5068 enum ext_lang_bt_status values. Update call to
5069 apply_ext_lang_frame_filter.
5070 (mi_cmd_stack_list_locals): Ditto.
5071 (mi_cmd_stack_list_args): Ditto.
5072 (mi_cmd_stack_list_variables): Ditto.
5073 * mi/mi-main.c: Delete #include "python/python-internal.h".
5074 Add #include "extension.h".
5075 (mi_cmd_list_features): Replace reference to python internal variable
5076 gdb_python_initialized with call to ext_lang_initialized_p.
5078 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
5079 Update to use enum ext_lang_frame_args. Update to call
5080 apply_ext_lang_frame_filter.
5081 * python/py-framefilter.c (extract_sym): Update to use enum
5083 (extract_value, py_print_type, py_print_value): Ditto.
5084 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
5085 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
5086 (py_print_frame): Ditto.
5087 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
5088 New arg extlang. Update to use enum ext_lang_bt_status.
5090 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
5091 finish_python_initialization. Replace with call to
5092 finish_ext_lang_initialization.
5094 * typeprint.c (do_free_global_table): Update to call
5095 free_ext_lang_type_printers.
5096 (create_global_typedef_table): Update to call
5097 start_ext_lang_type_printers.
5098 (find_global_typedef): Update to call apply_ext_lang_type_printers.
5099 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
5100 (type_print_options): Change type of global_printers from "void *"
5101 to "struct ext_lang_type_printers *".
5103 * value.c (preserve_values): Update to call preserve_ext_lang_values.
5104 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
5105 (gdbpy_preserve_values): Renamed from preserve_python_values.
5107 (!HAVE_PYTHON, preserve_python_values): Delete.
5109 * utils.c (quit_flag): Delete, moved to extension.c.
5110 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
5113 * eval.c: Delete #include "python/python.h".
5114 * main.c: Delete #include "python/python.h".
5116 * defs.h: Update comment.
5118 2014-02-06 Joel Brobecker <brobecker@adacore.com>
5122 2014-02-05 Mark Kettenis <kettenis@gnu.org>
5124 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
5127 2014-02-05 Yao Qi <yao@codesourcery.com>
5129 * remote.c (remote_pass_signals): Remove local 'buf' and use
5131 (remote_program_signals): Likewise.
5133 2014-02-05 Yao Qi <yao@codesourcery.com>
5135 * ctf.c: Include "inferior.h" and "gdbthread.h".
5136 (CTF_PID): A new macro.
5137 (ctf_open): Call inferior_appeared and add_thread_silent.
5138 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
5139 (ctf_thread_alive): New function.
5140 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
5142 2014-02-05 Yao Qi <yao@codesourcery.com>
5146 2013-05-24 Yao Qi <yao@codesourcery.com>
5148 * tracepoint.c (TFILE_PID): Remove.
5149 (tfile_open): Don't add thread and inferior.
5150 (tfile_close): Don't set 'inferior_ptid'. Don't call
5151 exit_inferior_silent.
5152 (tfile_thread_alive): Remove.
5153 (init_tfile_ops): Don't set field 'to_thread_alive' of
5156 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
5158 * remote.c (remote_start_remote): Call remote_check_symbols even
5159 if only symbol-file (not file) has been given.
5161 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5163 * gdbarch.sh (skip_entrypoint): New callback.
5164 * gdbarch.c, gdbarch.h: Regenerate.
5165 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
5166 * infrun.c (fill_in_stop_func): Likewise.
5167 * ppc-linux-tdep.c: Include "elf/ppc64.h".
5168 (ppc_elfv2_elf_make_msymbol_special): New function.
5169 (ppc_elfv2_skip_entrypoint): Likewise.
5170 (ppc_linux_init_abi): Install them for ELFv2.
5172 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5174 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
5175 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
5176 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
5177 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
5178 structures returned in GPRs.
5180 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5182 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
5183 offset to the stack parameter list for the ELFv2 ABI.
5185 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5187 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
5188 set_gdbarch_convert_from_func_ptr_addr and
5189 set_gdbarch_elf_make_msymbol_special for ELFv1.
5190 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
5191 function descriptors on ELFv1.
5192 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
5193 set up r12 at function entry.
5195 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5197 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
5198 (struct gdbarch_tdep): New member elf_abi.
5200 * rs6000-tdep.c: Include "elf/ppc64.h".
5201 (rs6000_gdbarch_init): Detect ELF ABI version.
5203 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5205 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
5206 within a register pair holding a DFP 128-bit value on little-endian.
5207 (ppc64_sysv_abi_return_value_base): Likewise.
5208 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
5209 (dfp_pseudo_register_write): Likewise.
5211 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5213 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
5214 offset on little-endian when passing _Decimal32.
5215 (ppc64_sysv_abi_return_value_base): Likewise for return values.
5217 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5219 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
5220 of the overlapped FP register within the VSX register on little-
5222 (efpr_pseudo_register_write): Likewise.
5224 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5226 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
5227 offset on little-endian when passing small structures.
5229 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5231 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
5232 (struct ppc64_sysv_argpos): New data structure.
5233 (ppc64_sysv_abi_push_float): Remove.
5234 (ppc64_sysv_abi_push_val): New function.
5235 (ppc64_sysv_abi_push_integer): Likewise.
5236 (ppc64_sysv_abi_push_freg): Likewise.
5237 (ppc64_sysv_abi_push_vreg): Likewise.
5238 (ppc64_sysv_abi_push_param): Likewise.
5239 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
5240 (ppc64_sysv_abi_return_value_base): New function.
5241 (ppc64_sysv_abi_return_value): Refactor to use it.
5243 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5245 * NEWS: Document new target powerpc64le-*-linux*.
5247 2014-02-04 Mark Kettenis <kettenis@gnu.org>
5249 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
5250 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
5252 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
5253 register set used in ELF core dumps. Add floating-point register set.
5255 2014-02-03 Kevin Buettner <kevinb@redhat.com>
5257 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
5258 dwarf2_to_gdb[] table using symbolic constants. Adjust
5259 penultimate entry from number representing the PC register
5260 to symbolic constant representing the MDR register. Add
5261 constant for the PC register to the end of the table.
5263 2014-02-03 Mark Kettenis <kettenis@gnu.org>
5265 * bsd-kvm.c: Include <sys/param.h>
5267 2014-02-03 Mark Kettenis <kettenis@gnu.org>
5269 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
5271 2014-01-31 Joel Brobecker <brobecker@adacore.com>
5273 * ada-lang.h (clear_ada_sym_cache): Delete.
5275 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
5277 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
5279 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
5281 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
5282 the sigreturn register save area only if the syscall is
5285 2014-01-29 Joel Brobecker <brobecker@adacore.com>
5287 * valops.c (value_slice): Minor reformatting.
5289 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
5291 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
5293 2014-01-28 Joel Brobecker <brobecker@adacore.com>
5295 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
5297 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
5298 (ada_ignore_descriptive_types_p): New static global.
5299 (find_parallel_type_by_descriptive_type): Return immediately
5300 if ada_ignore_descriptive_types_p is set.
5301 (_initialize_ada_language): Register new commands "maintenance
5302 set ada", "maintenance show ada", "maintenance set ada
5303 ignore-descriptive-types" and "maintenance show ada
5304 ignore-descriptive-types".
5305 * NEWS: Add entry for new "maint ada set/show
5306 ignore-descriptive-types" commands.
5308 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
5310 * record-btrace.c (record_btrace_close): Call btrace_teardown
5313 2014-01-27 Joel Brobecker <brobecker@adacore.com>
5315 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
5318 2014-01-27 Joel Brobecker <brobecker@adacore.com>
5320 * ada-typeprint (type_is_full_subrange_of_target_type):
5322 (print_range): Add parameter bounds_prefered_p. If not set,
5323 try printing range types using the name of their base type.
5324 (print_range_type): Add parameter bounds_prefered_p.
5325 Use it in call to print_range.
5326 (print_array_type, ada_print_type): Update calls to print_range
5327 and print_range_type.
5329 2014-01-27 Joel Brobecker <brobecker@adacore.com>
5331 * ada-typeprint.c (print_array_type, print_choices, print_range)
5332 (print_range_bound, print_dynamic_range_bound, print_range_type):
5335 2014-01-27 Joel Brobecker <brobecker@adacore.com>
5337 * ada-typeprint.c (print_range): Add missing empty line
5338 after local declaration.
5340 2014-01-27 Joel Brobecker <brobecker@adacore.com>
5342 * ada-valprint.c (print_optional_low_bound): Get index_type's
5343 target type for as long as it is a TYPE_CODE_RANGE.
5345 2014-01-27 Joel Brobecker <brobecker@adacore.com>
5347 * procfs.c (procfs_make_note_section): Remove assertion and
5350 2014-01-24 Yao Qi <yao@codesourcery.com>
5352 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
5353 * corelow.c (get_core_siginfo): Likewise.
5355 2014-01-24 Yao Qi <yao@codesourcery.com>
5357 * remote.c (remote_write_bytes_aux): Change type of 'len' to
5358 ULONGEST. Don't check 'len' is negative.
5359 (remote_write_bytes): Change type of 'len' to ULONGEST.
5361 2014-01-23 Tom Tromey <tromey@redhat.com>
5364 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
5365 Handle exception from frame.block.
5366 (FrameVars.fetch_frame_locals): Likewise.
5368 2014-01-23 Tom Tromey <tromey@redhat.com>
5371 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
5372 on a NULL pointer. Move "goto error" to correct place.
5374 2014-01-23 Tom Tromey <tromey@redhat.com>
5377 * python/py-framefilter.c (apply_frame_filter): Call
5378 ensure_python_env after computing gdbarch.
5380 2014-01-23 Yao Qi <yao@codesourcery.com>
5382 * target.c (raw_memory_xfer_partial): Change argument type
5383 from void * to gdb_byte *.
5384 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
5386 2014-01-22 Doug Evans <dje@google.com>
5388 New gdbserver option --debug-format=timestamp.
5391 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
5393 * syscalls/s390x-linux.xml: New file.
5394 * syscalls/s390-linux.xml: New file.
5395 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
5396 (XML_SYSCALL_FILENAME_S390X): Likewise.
5397 (op_svc): New enum value for SVC opcode.
5398 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
5399 (s390_linux_get_syscall_number): New function.
5400 (s390_gdbarch_init): Register '*get_syscall_number' and the
5401 syscall xml file name.
5402 * data-directory/Makefile.in (SYSCALLS_FILES): Add
5403 "s390-linux.xml" and "s390x-linux.xml".
5404 * NEWS: Announce new feature.
5406 2014-01-22 Baruch Siach <baruch@tkos.co.il>
5408 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
5410 2014-01-22 Pedro Alves <palves@redhat.com>
5412 * xtensa-config.c: Include defs.h.
5414 2014-01-22 Joel Brobecker <brobecker@adacore.com>
5416 * common/common-utils.h: Add "ARI:" comment beside __func__
5419 2014-01-22 Joel Brobecker <brobecker@adacore.com>
5421 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
5422 documentation a bit.
5424 2014-01-21 Roland McGrath <mcgrathr@google.com>
5426 * configure.ac: Call AM_PROG_INSTALL_STRIP.
5427 * configure: Regenerate.
5428 * aclocal.m4: Regenerate.
5429 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
5430 New substituted variables.
5431 (install-strip): New target.
5432 (INSTALL_SCRIPT): New substituted variable.
5433 (FLAGS_TO_PASS): Add it.
5434 (install-only): Use $(INSTALL_SCRIPT) rather than
5435 $(INSTALL_PROGRAM) for gcore.
5437 2014-01-20 Tom Tromey <tromey@redhat.com>
5439 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
5442 2014-01-20 Tom Tromey <tromey@redhat.com>
5444 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
5445 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
5446 (deprecated_cmd_warning, complete_on_cmdlist): Update.
5447 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
5448 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
5449 (struct cmd_list_element) <flags>: Remove.
5450 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
5451 doc_allocated>: New fields.
5452 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
5454 * maint.c (maintenance_do_deprecate): Update.
5455 * top.c (execute_command): Update.
5457 2014-01-20 Baruch Siach <baruch@tkos.co.il>
5459 * xtensa-linux-nat.c: Include asm/ptrace.h.
5461 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
5463 * Makefile.in (SFILES): Add d-support.c.
5464 (COMMON_OBS): Add d-support.o.
5465 * d-lang.h (d_parse_symbol): Add comment, now defined in
5467 * d-lang.c (parse_call_convention)
5468 (parse_attributes, parse_function_types)
5469 (parse_function_args, parse_type, parse_identifier)
5470 (call_convention_p, d_parse_symbol): Move functions to ...
5471 * d-support.c: ... New file.
5473 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
5475 * d-lang.h (d_parse_symbol): Add declaration.
5476 * d-lang.c (extract_identifiers)
5477 (extract_type_info): Remove functions.
5478 (parse_call_convention, parse_attributes)
5479 (parse_function_types, parse_function_args)
5480 (parse_type, parse_identifier, call_convention_p)
5481 (d_parse_symbol): New functions.
5482 (d_demangle): Use d_parse_symbol to demangle D symbols.
5484 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
5486 * d-lang.h (struct builtin_d_type): New data type.
5487 (builtin_d_type): Add declaration.
5488 * d-lang.c (d_language_arch_info, build_d_types)
5489 (builtin_d_type): New functions.
5490 (enum d_primitive_types): New data type.
5491 (d_language_defn): Change c_language_arch_info to
5492 d_language_arch_info.
5493 (d_type_data): New static variable.
5494 (_initialize_d_language): Initialize d_type_data.
5496 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
5498 * d-lang.h (d_main_name): Add declaration.
5499 * d-lang.c (d_main_name): New function.
5500 * symtab.c (find_main_name): Add call to d_main_name.
5502 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
5504 * d-lang.c (d_language_defn): Change macro_expansion_c to
5507 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
5509 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5511 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
5513 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
5514 gdb_exception" declaration.
5515 * remote.c (getpkt_or_notif_sane): Likewise.
5517 2014-01-17 Doug Evans <dje@google.com>
5519 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
5520 function, contents of dirnames_to_char_ptr_vec_append moved here.
5521 (delim_string_to_char_ptr_vec): New function.
5522 (dirnames_to_char_ptr_vec_append): Rewrite.
5523 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
5525 2014-01-17 Doug Evans <dje@google.com>
5527 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
5529 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
5530 #include "common-utils.h".
5531 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
5532 * common/vec.h (VEC_ASSERT_PASS): Update.
5533 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
5534 (MACH_CHECK_ERROR): Update.
5536 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
5538 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
5540 * gdbarch.h: Regenerate.
5542 2014-01-16 Tom Tromey <tromey@redhat.com>
5544 * value.c (struct value) <regnum>: Move earlier.
5546 2014-01-16 Tom Tromey <tromey@redhat.com>
5548 * remote.c (extended_remote_create_inferior): Rename from
5549 extended_remote_create_inferior_1. Add "ops" argument. Remove
5552 2014-01-16 Pedro Alves <palves@redhat.com>
5554 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
5555 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
5558 2014-01-16 Doug Evans <dje@google.com>
5560 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
5562 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5564 * btrace.h (btrace_thread_flag): New.
5565 (struct btrace_thread_info) <flags>: New.
5566 * record-btrace.c (record_btrace_resume_thread)
5567 (record_btrace_find_thread_to_move, btrace_step_no_history)
5568 (btrace_step_stopped, record_btrace_start_replaying)
5569 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
5570 (record_btrace_find_resume_thread): New.
5571 (record_btrace_resume, record_btrace_wait): Extend.
5572 (record_btrace_can_execute_reverse): New.
5573 (record_btrace_open): Fail in non-stop mode.
5574 (record_btrace_set_replay): Split into this, ...
5575 (record_btrace_stop_replaying): ... this, ...
5576 (record_btrace_clear_histories): ... and this.
5577 (init_record_btrace_ops): Init to_can_execute_reverse.
5578 * NEWS: Announce it.
5580 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5582 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
5583 (forward_target_decr_pc_after_break)
5584 (target_decr_pc_after_break): New.
5585 * target.c (forward_target_decr_pc_after_break)
5586 (target_decr_pc_after_break): New.
5587 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
5588 instead of gdbarch_decr_pc_after_break.
5589 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
5590 instead of gdbarch_decr_pc_after_break.
5591 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
5592 instead of gdbarch_decr_pc_after_break.
5593 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
5594 instead of gdbarch_decr_pc_after_break.
5595 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
5596 instead of gdbarch_decr_pc_after_break.
5597 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
5598 instead of gdbarch_decr_pc_after_break.
5600 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5602 * btrace.c: Include regcache.h.
5603 (btrace_add_pc): New.
5604 (btrace_enable): Call btrace_add_pc.
5605 (btrace_is_empty): New.
5606 * btrace.h (btrace_is_empty): New.
5607 * record-btrace.c (require_btrace, record_btrace_info): Call
5610 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5612 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
5613 Support delta reads.
5614 (linux_disable_btrace): Change return type.
5615 * common/linux-btrace.h (linux_read_btrace): Change parameters
5616 and return type to allow error reporting. Update users.
5617 (linux_disable_btrace): Change return type. Update users.
5618 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
5620 (btrace_error): New.
5621 (btrace_block) <begin>: Comment on BEGIN == 0.
5622 * btrace.c (btrace_compute_ftrace): Start from the end of
5624 (btrace_stitch_trace, btrace_clear_history): New.
5625 (btrace_fetch): Read delta trace, return if replaying.
5626 (btrace_clear): Move clear history code to btrace_clear_history.
5627 (parse_xml_btrace): Throw an error if parsing failed.
5628 * target.h (struct target_ops) <to_read_btrace>: Change parameters
5629 and return type to allow error reporting.
5630 (target_read_btrace): Change parameters and return type to allow
5632 * target.c (target_read_btrace): Update.
5633 * remote.c (remote_read_btrace): Support delta reads. Pass
5635 * NEWS: Announce it.
5637 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5639 * record.h (record_btrace_frame_unwind)
5640 (record_btrace_tailcall_frame_unwind): New declarations.
5641 * dwarf2-frame: Include record.h
5642 (dwarf2_frame_cfa): Throw an error for btrace frames.
5643 * record-btrace.c: Include hashtab.h.
5644 (btrace_get_bfun_name): New.
5645 (btrace_call_history): Call btrace_get_bfun_name.
5646 (struct btrace_frame_cache): New.
5648 (bfcache_hash, bfcache_eq, bfcache_new): New.
5649 (btrace_get_frame_function): New.
5650 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
5651 (record_btrace_frame_this_id): Compute own id.
5652 (record_btrace_frame_prev_register): Provide PC, throw_error
5653 for all other registers.
5654 (record_btrace_frame_sniffer): Detect btrace frames.
5655 (record_btrace_tailcall_frame_sniffer): New.
5656 (record_btrace_frame_dealloc_cache): New.
5657 (record_btrace_frame_unwind): Add new functions.
5658 (record_btrace_tailcall_frame_unwind): New.
5659 (_initialize_record_btrace): Allocate cache.
5660 * btrace.c (btrace_clear): Call reinit_frame_cache.
5661 * NEWS: Announce it.
5663 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5665 * record-btrace.c (record_btrace_set_replay)
5666 (record_btrace_goto_begin, record_btrace_goto_end)
5667 (record_btrace_goto): New.
5668 (init_record_btrace_ops): Initialize them.
5669 * NEWS: Announce it.
5671 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5673 * record-btrace.c (record_btrace_find_new_threads)
5674 (record_btrace_thread_alive): New.
5675 (init_record_btrace_ops): Initialize to_find_new_threads and
5678 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5680 * record-btrace.c (record_btrace_resume): New.
5681 (record_btrace_wait): New.
5682 (init_record_btrace_ops): Initialize to_wait and to_resume.
5684 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5686 * record-btrace.c (record_btrace_xfer_partial)
5687 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
5688 (record_btrace_allow_memory_access): New.
5689 (init_record_btrace_ops): Initialize new methods.
5690 * target.c (raw_memory_xfer_partial): Bail out if target reports
5691 that this memory is not available.
5693 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5695 * target.h (target_ops) <to_insert_breakpoint>
5696 <to_remove_breakpoint>: Add target_ops parameter.
5697 (forward_target_insert_breakpoint): New.
5698 (forward_target_remove_breakpoint): New.
5699 (memory_remove_breakpoint, memory_insert_breakpoint):
5700 Add target_ops parameter.
5701 * target.c (target_insert_breakpoint): Split into this and ...
5702 (forward_target_insert_breakpoint): ... this.
5703 (target_remove_breakpoint): Split into this and ...
5704 (forward_target_remove_breakpoint): ... this.
5705 (debug_to_insert_breakpoint): Add target_ops parameter.
5706 Call forward_target_insert_breakpoint.
5707 (debug_to_remove_breakpoint): Add target_ops parameter.
5708 Call forward_target_remove_breakpoint.
5709 (update_current_target): Do not inherit or default to_insert_breakpoint
5710 and to_remove_breakpoint.
5711 * corelow.c (ignore): Add target_ops parameter.
5712 * exec.c (ignore): Add target_ops parameter.
5713 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
5714 Add target_ops parameter.
5715 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
5716 Add target_ops parameter.
5717 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
5718 Add target_ops parameter.
5719 * record-full.c (record_full_beneath_to_insert_breakpoint)
5720 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
5721 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
5722 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
5723 (record_full_core_remove_breakpoint): Add target_ops parameter.
5725 (record_full_beneath_to_insert_breakpoint_ops)
5726 (record_full_beneath_to_remove_breakpoint_ops)
5727 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
5728 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
5729 tmp_to_remove_breakpoint_ops,
5730 record_full_beneath_to_insert_breakpoint_ops, and
5731 record_full_beneath_to_remove_breakpoint_ops.
5732 * remote-m32r-sdi.c (m32r_insert_breakpoint)
5733 (m32r_remove_breakpoint): Add target_ops parameter.
5734 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
5735 Add target_ops parameter.
5736 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
5737 Add target_ops parameter.
5739 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5740 Markus Metzger <markus.t.metzger@intel.com>
5742 * record-btrace.c: Include frame-unwind.h.
5743 (record_btrace_frame_unwind_stop_reason)
5744 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
5745 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
5747 (init_record_btrace_ops): Install it.
5749 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5751 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
5754 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5756 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
5759 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5761 * frame-unwind.c: Include target.h.
5762 (frame_unwind_try_unwinder): New function with code from ...
5763 (frame_unwind_find_by_frame): ... here. New variable
5764 unwinder_from_target, call also target_get_unwinder)
5765 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
5766 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
5767 * target.h (struct target_ops): New fields to_get_unwinder and
5768 to_get_tailcall_unwinder.
5769 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
5771 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5773 * record-btrace.c (record_btrace_fetch_registers)
5774 (record_btrace_store_registers)
5775 (record_btrace_to_prepare_to_store): New.
5776 (init_record_btrace_ops): Add the above.
5778 2014-01-16 Tom Tromey <tromey@redhat.com>
5780 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
5781 * target.h (struct target_ops) <to_prepare_to_store>: Add
5783 (target_prepare_to_store): Add argument.
5784 * target.c (debug_to_prepare_to_store): Add argument.
5785 (update_current_target): Update.
5786 * remote.c (remote_prepare_to_store): Add 'self' argument.
5787 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
5788 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
5789 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
5790 * record-full.c (record_full_core_prepare_to_store): Add 'self'
5792 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
5793 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
5794 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
5795 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
5796 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
5798 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5800 * btrace.h (replay) <replay>: New.
5801 (btrace_is_replaying): New.
5802 * btrace.c (btrace_clear): Free replay iterator.
5803 (btrace_is_replaying): New.
5804 * record-btrace.c (record_btrace_is_replaying): New.
5805 (record_btrace_info): Print insn number if replaying.
5806 (record_btrace_insn_history): Start at replay position.
5807 (record_btrace_call_history): Start at replay position.
5808 (init_record_btrace_ops): Init to_record_is_replaying.
5810 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5812 * record-btrace.c (record_btrace_insn_history_range): Include
5814 (record_btrace_insn_history_from): Adjust range.
5815 (record_btrace_call_history_range): Include
5817 (record_btrace_call_history_from): Adjust range.
5818 * NEWS: Announce changes.
5820 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5822 * record.h (enum record_print_flag)
5823 <record_print_indent_calls>: New.
5824 * record.c (get_call_history_modifiers): Recognize /c modifier.
5825 (_initialize_record): Document /c modifier.
5826 * record-btrace.c (btrace_call_history): Add btinfo parameter.
5827 Reorder fields. Optionally indent the function name. Update
5829 * NEWS: Announce changes.
5831 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5833 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
5835 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5837 * btrace.c (ftrace_new_function): Start counting at one.
5838 * record-btrace.c (record_btrace_info): Adjust number of calls
5840 * NEWS: Announce it.
5842 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5844 * record-btrace.c (btrace_call_history_insn_range): Print
5845 insn range as [begin, end].
5847 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5849 * btrace.h (struct btrace_func_link): New.
5850 (enum btrace_function_flag): New.
5851 (struct btrace_inst): Rename to ...
5852 (struct btrace_insn): ...this. Update all users.
5853 (struct btrace_func) <ibegin, iend>: Remove.
5854 (struct btrace_func_link): New.
5855 (struct btrace_func): Rename to ...
5856 (struct btrace_function): ...this. Update all users.
5857 (struct btrace_function) <segment, flow, up, insn, insn_offset)
5858 (number, level, flags>: New.
5859 (struct btrace_insn_iterator): Rename to ...
5860 (struct btrace_insn_history): ...this.
5862 (struct btrace_insn_iterator, btrace_call_iterator): New.
5863 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
5864 (struct btrace_target_info) <begin, end, level>
5865 <insn_history, call_history>: New.
5866 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
5867 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
5868 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
5869 (btrace_call_number, btrace_call_begin, btrace_call_end)
5870 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
5871 (btrace_find_function_by_number, btrace_set_insn_history)
5872 (btrace_set_call_history): New.
5873 * btrace.c (btrace_init_insn_iterator)
5874 (btrace_init_func_iterator, compute_itrace): Remove.
5875 (ftrace_print_function_name, ftrace_print_filename)
5876 (ftrace_skip_file): Change
5878 (ftrace_init_func): Remove.
5879 (ftrace_debug): Use new btrace_function fields.
5880 (ftrace_function_switched): Also consider gaining and
5881 losing symbol information).
5882 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
5883 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
5884 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
5886 (ftrace_new_function): Move. Remove debug print.
5887 (ftrace_update_lines, ftrace_update_insns): New.
5888 (ftrace_update_function): Check for call, ret, and jump.
5889 (compute_ftrace): Renamed to ...
5890 (btrace_compute_ftrace): ...this. Rewritten to compute call
5892 (btrace_fetch, btrace_clear): Updated.
5893 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
5894 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
5895 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
5896 (btrace_call_number, btrace_call_begin, btrace_call_end)
5897 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
5898 (btrace_find_function_by_number, btrace_set_insn_history)
5899 (btrace_set_call_history): New.
5900 * record-btrace.c (require_btrace): Use new btrace thread
5902 (record_btrace_info, btrace_insn_history)
5903 (record_btrace_insn_history, record_btrace_insn_history_range):
5904 Use new btrace thread info fields and new iterator.
5905 (btrace_func_history_src_line): Rename to ...
5906 (btrace_call_history_src_line): ...this. Use new btrace
5908 (btrace_func_history): Rename to ...
5909 (btrace_call_history): ...this. Use new btrace thread info
5910 fields and new iterator.
5911 (record_btrace_call_history, record_btrace_call_history_range):
5912 Use new btrace thread info fields and new iterator.
5914 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5916 * frame.h (frame_id_build_unavailable_stack_special): New.
5917 * frame.c (frame_id_build_unavailable_stack_special): New.
5919 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5921 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
5922 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
5923 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
5925 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
5926 (i386_insn_is_jump, i386_jmp_p): New.
5927 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
5928 insn_is_jump to gdbarch.
5929 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
5930 * gdbarch.h: Regenerated.
5931 * gdbarch.c: Regenerated.
5932 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
5933 (default_insn_is_jump): New.
5934 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
5935 (default_insn_is_jump): New.
5937 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5939 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
5941 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
5942 (btrace_read_type) <btrace_read_new>: Change to ...
5943 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
5945 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5947 * common/linux-btrace.c (linux_read_btrace): Free trace from
5950 2014-01-15 Doug Evans <dje@google.com>
5952 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
5955 2014-01-15 Tom Tromey <tromey@redhat.com>
5957 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
5958 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
5959 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
5960 (set_objfile_main_name): New function.
5961 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
5962 language_of_main>: New fields.
5963 (set_objfile_main_name): Declare.
5964 * symtab.c (find_main_name): Loop over objfiles to find the main
5966 (set_main_name): Now static.
5967 (get_main_info): Add comment.
5968 * symtab.h (set_main_name): Don't declare.
5970 2014-01-15 Tom Tromey <tromey@redhat.com>
5972 * symtab.c (main_progspace_key): New global.
5973 (struct main_info): New.
5974 (name_of_main, language_of_main): Remove.
5975 (get_main_info, main_info_cleanup): New function.
5976 (set_main_name, main_name, main_language): Use get_main_info.
5977 (_initialize_symtab): Initialize main_progspace_key.
5979 2014-01-15 Tom Tromey <tromey@redhat.com>
5981 * dbxread.c (process_one_symbol): Update.
5982 * dwarf2read.c (read_partial_die): Update.
5983 * symfile.c (set_initial_language): Call main_language.
5984 * symtab.c (language_of_main): Now static.
5985 (set_main_name): Add 'lang' parameter.
5986 (find_main_name): Update.
5987 (main_language): New function.
5988 (symtab_observer_executable_changed): Update.
5989 * symtab.h (set_main_name): Update.
5990 (language_of_main): Remove.
5991 (main_language): Declare.
5993 2014-01-15 Tom Tromey <tromey@redhat.com>
5995 * symfile.c (init_entry_point_info): Use new "initialized" field.
5997 * objfiles.h (struct entry_point) <initialized>: New field.
5998 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
5999 (struct objfile) <ei>: ...here. Remove.
6000 * objfiles.c (entry_point_address_query): Update.
6002 2014-01-15 Tom Tromey <tromey@redhat.com>
6004 * objfiles.c (entry_point_address_query): Relocate entry point
6006 (objfile_relocate1): Do not relocate entry point address.
6007 * objfiles.h (struct entry_info) <entry_point>: Update comment.
6008 <the_bfd_section_index>: New field.
6009 * symfile.c (init_entry_point_info): Find the entry point's
6012 2014-01-15 Tom Tromey <tromey@redhat.com>
6014 * solib-frv.c (enable_break): Use entry_point_address_query.
6016 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6018 * NEWS: Add note on improved process record-replay on
6019 arm*-linux* targets.
6021 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6023 * arm-tdep.c (enum arm_record_result): New enum.
6024 (arm_record_unsupported_insn): New function.
6025 (arm_record_coproc_data_proc): Removed.
6026 (thumb2_record_ld_st_multiple): New function.
6027 (thumb2_record_ld_st_dual_ex_tbb): New function.
6028 (thumb2_record_data_proc_sreg_mimm): New function.
6029 (thumb2_record_ps_dest_generic): New function.
6030 (thumb2_record_branch_misc_cntrl): New function.
6031 (thumb2_record_str_single_data): New function.
6032 (thumb2_record_ld_mem_hints): New function.
6033 (thumb2_record_ld_word): New function.
6034 (thumb2_record_lmul_lmla_div): New function.
6035 (thumb2_record_decode_insn_handler): New function.
6036 (decode_insn): Add thumb32 instruction handlers.
6038 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6040 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
6041 (struct arm_linux_record_tdep): Declare.
6042 (arm_canonicalize_syscall): New function.
6043 (arm_all_but_pc_registers_record): New function.
6044 (arm_linux_syscall_record): New function.
6045 (arm_linux_init_abi): Add syscall recording constructs.
6046 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
6047 decoding. (arm_record_coproc_data_proc): Update arm syscall
6049 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
6050 <arm_syscall_record>: New field.
6051 * configure.tgt (arm*-*-linux*): Add linux-record.o to
6054 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6056 * arm-tdep.c (thumb_record_misc): Update to use sp as base
6057 register for push instruction recording.
6059 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6061 * arm-tdep.c (thumb_record_misc): Update to correct logical
6062 error while recording ldm, ldmia and pop instructions.
6064 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6066 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
6068 2014-01-15 Pedro Alves <palves@redhat.com>
6070 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
6071 (go32_resume, go32_fetch_registers, store_register)
6072 (go32_store_registers, go32_prepare_to_store)
6073 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
6074 (go32_create_inferior, go32_can_run, go32_terminal_init)
6075 (go32_terminal_inferior, go32_terminal_ours): Delete forward
6078 2014-01-15 Tom Tromey <tromey@redhat.com>
6080 * target.h (async_callback_ftype): New typedef.
6081 (struct target_ops) <to_async>: Use it.
6083 2014-01-15 Joel Brobecker <brobecker@adacore.com>
6085 * python/py-value.c (get_field_type): Remove unnecessary curly
6086 braces for single-statement if block.
6088 2014-01-15 Joel Brobecker <brobecker@adacore.com>
6090 * python/py-type.c (convert_field): Add missing empty line
6093 2014-01-14 Doug Evans <dje@google.com>
6095 * symfile.h (expand_symtabs_matching): Renamed from
6096 expand_partial_symbol_names. Update prototype.
6097 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
6098 * symfile.c (expand_symtabs_matching): Renamed from
6099 expand_partial_symbol_names. New args file_matcher, kind.
6100 Rename arg fun to symbol_matcher.
6101 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
6102 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
6103 ada_expand_partial_symbol_name.
6104 (ada_make_symbol_completion_list): Update to call
6105 expand_symtabs_matching.
6106 (ada_add_global_exceptions): Call expand_symtabs_matching.
6107 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
6108 call map_symbol_filenames.
6109 * symtab.c (sources_info): Update to call map_symbol_filenames.
6110 (search_symbols): Call expand_symtabs_matching.
6111 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
6112 (default_make_symbol_completion_list_break_on): Update to call
6113 expand_symtabs_matching.
6114 (make_source_files_completion_list): Update to call
6115 map_symbol_filenames.
6117 2014-01-14 Doug Evans <dje@google.com>
6119 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
6120 (expand_symtabs_symbol_matcher_ftype): New typedef.
6121 (quick_symbol_functions.expand_symtabs_matching): Update to use.
6122 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
6123 * symfile.c (expand_partial_symbol_names): Update to use
6124 expand_symtabs_symbol_matcher_ftype.
6125 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
6126 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
6127 Arg name_matcher renamed to symbol_matcher.
6128 * psymtab.c (recursively_search_psymtabs): Update to use
6129 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
6131 (expand_symtabs_matching_via_partial): Update to use
6132 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
6133 Arg name_matcher renamed to symbol_matcher.
6135 2014-01-14 Doug Evans <dje@google.com>
6137 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
6138 (map_partial_symbol_filenames): Ditto.
6139 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
6140 (map_partial_symbol_filenames): Ditto.
6141 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
6142 (map_partial_symbol_filenames): Ditto.
6143 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
6144 (map_partial_symbol_filenames): Ditto.
6145 * symtab.c: Delete #include "psymtab.h".
6147 2014-01-14 Pedro Alves <palves@redhat.com>
6148 Tom Tromey <tromey@redhat.com>
6150 * infrun.c (use_displaced_stepping): Use find_record_target
6151 instead of RECORD_IS_USED.
6152 (adjust_pc_after_break): Use record_full_is_used instead of
6154 * record-btrace.c (record_btrace_open): Call record_preopen
6155 instead of checking RECORD_IS_USED.
6156 * record-full.c (record_full_shortname)
6157 (record_full_core_shortname): New globals.
6158 (record_full_is_used): New function.
6159 (find_full_open): Call record_preopen instead of checking
6161 (init_record_full_ops): Set the target's shortname to
6162 record_full_shortname.
6163 (init_record_full_core_ops): Set the target's shortname to
6164 record_full_core_shortname.
6165 * record-full.h (record_full_is_used): Declare.
6166 * record.c (find_record_target): Make extern.
6167 (record_preopen): New function.
6168 * record.h (RECORD_IS_USED): Delete macro.
6169 (find_record_target, record_preopen): Declare functions.
6171 2014-01-14 Yao Qi <yao@codesourcery.com>
6173 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
6174 'len''s type to ULONGEST.
6175 (core_xfer_shared_libraries_aix): Likewise.
6176 * gdbarch.c, gdbarch.h: Regenerated.
6177 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
6178 Change type of 'len' to ULONGEST.
6179 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
6180 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
6182 2014-01-14 Yao Qi <yao@codesourcery.com>
6184 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
6185 type of 'len' to ULONGEST.
6186 (linux_xfer_osdata_processgroups): Likewise.
6187 (linux_xfer_osdata_threads): Likewise.
6188 (linux_xfer_osdata_fds): Likewise.
6189 (linux_xfer_osdata_isockets): Likewise.
6190 (linux_xfer_osdata_shm): Likewise.
6191 (linux_xfer_osdata_sem): Likewise.
6192 (linux_xfer_osdata_msg): Likewise.
6193 (linux_common_xfer_osdata): Likewise.
6194 (struct osdata_type) <getter>: Likewise.
6195 * common/linux-osdata.h (linux_common_xfer_osdata): Update
6198 2014-01-14 Yao Qi <yao@codesourcery.com>
6200 * target.h (target_xfer_partial_ftype): Update.
6201 (struct target_ops) <to_xfer_partial>: Change 'len' type to
6203 * aix-thread.c (aix_thread_xfer_partial): Change type of
6204 argument 'len' to ULONGEST.
6205 * auxv.c (procfs_xfer_auxv): Likewise.
6206 (ld_so_xfer_auxv): Likewise.
6207 (memory_xfer_auxv): Likewise.
6208 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6209 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6210 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
6211 * corelow.c (core_xfer_partial): Likewise.
6212 * ctf.c (ctf_xfer_partial): Likewise.
6213 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
6215 (darwin_read_dyld_info): Likewise.
6216 (darwin_xfer_partial): Likewise.
6217 * exec.c (section_table_xfer_memory_partial): Likewise.
6218 (exec_xfer_partial): Likewise.
6219 * exec.h (section_table_xfer_memory_partial): Update
6221 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
6222 instead of plongest.
6223 (gnu_xfer_partial): Likewise.
6224 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
6225 (ia64_hpux_xfer_solib_got): Likewise.
6226 (ia64_hpux_xfer_partial): Likewise.
6227 * ia64-linux-nat.c (ia64_linux_xfer_partial):
6228 * inf-ptrace.c (inf_ptrace_xfer_partial):
6229 * inf-ttrace.c (inf_ttrace_xfer_partial):
6230 * linux-nat.c (linux_xfer_siginfo): Likewise.
6231 (linux_nat_xfer_partial): Likewise.
6232 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
6233 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
6234 * monitor.c (monitor_xfer_memory): Likewise.
6235 (monitor_xfer_partial): Likewise.
6236 * procfs.c (procfs_xfer_partial): Likewise.
6237 * record-full.c (record_full_xfer_partial): Likewise.
6238 (record_full_core_xfer_partial): Likewise.
6239 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
6240 instead of plongest.
6241 (gdbsim_xfer_partial): Likewise.
6242 * remote.c (remote_xfer_partial): Likewise.
6243 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
6244 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
6246 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6247 (rs6000_xfer_shared_libraries): Likewise.
6248 * sol-thread.c (sol_thread_xfer_partial): Likewise.
6249 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6250 (sparc_xfer_partial): Likewise.
6251 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6252 (spu_xfer_partial): Likewise.
6253 * spu-multiarch.c (spu_xfer_partial): Likewise.
6254 * target.c (target_read_live_memory): Likewise.
6255 (memory_xfer_live_readonly_partial): Likewise.
6256 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
6257 (target_xfer_partial, default_xfer_partial): Likewise.
6258 (current_xfer_partial): Likewise.
6259 * tracepoint.c (tfile_xfer_partial): Likewise.
6260 * windows-nat.c (windows_xfer_memory): Likewise. Call
6261 pulongest instead of plongest.
6262 (windows_xfer_partial): Likewise.
6263 (windows_xfer_shared_libraries): Likewise.
6265 2014-01-14 Yao Qi <yao@codesourcery.com>
6267 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
6268 target_xfer_partial_ftype.
6270 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
6274 * valops.c (value_struct_elt_bitpos): New function
6275 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
6276 object to 'None' if the field name is an empty string ("").
6277 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
6278 attribute to look for a field when 'name' is 'None'.
6279 (get_field_type): New function
6281 2014-01-13 Doug Evans <dje@google.com>
6284 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
6285 (try_open_dwop_file): Ditto.
6286 * gdb_bfd.c: #include "vec.h".
6287 (bfdp): New typedef.
6288 (struct gdb_bfd_data): New member included_bfds.
6289 (gdb_bfd_unref): Unref all included bfds.
6290 (gdb_bfd_record_inclusion): New function.
6291 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
6293 2014-01-13 Tom Tromey <tromey@redhat.com>
6295 * gdbcore.h (deprecated_core_resize_section_table): Remove.
6297 2014-01-13 Tom Tromey <tromey@redhat.com>
6299 * defs.h (use_windows): Remove.
6300 * gdb.c (main): Update.
6301 * main.c (captured_main, gdb_main): Update.
6302 * main.h (struct captured_main_args) <use_windows>: Remove.
6303 * top.c (use_windows): Remove.
6305 2014-01-13 Tom Tromey <tromey@redhat.com>
6307 * defs.h (deprecated_flush_hook): Remove.
6309 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6312 * linux-thread-db.c (try_thread_db_load): Add parameter
6313 check_auto_load_safe. Move here the file_is_auto_load_safe call.
6314 (try_thread_db_load_from_pdir_1): Move it there from here.
6315 (try_thread_db_load_from_sdir): Update caller.
6316 (try_thread_db_load_from_dir): Move it there from here.
6318 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
6320 * regformats/regdat.sh: Always rewrite the register file.
6322 2014-01-13 Pedro Alves <palves@redhat.com>
6324 * Makefile.in (CHECK_HEADERS): New variable.
6325 (check-headers:): New rule.
6327 2014-01-13 Tom Tromey <tromey@redhat.com>
6329 * cli/cli-setshow.c (do_set_command): Update.
6330 * defs.h (deprecated_set_hook): Remove.
6331 * top.c (deprecated_set_hook): Remove.
6333 2014-01-13 Pedro Alves <palves@redhat.com>
6335 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
6336 the tracepoint if the PC is a pseudo-register.
6338 2014-01-13 Tom Tromey <tromey@redhat.com>
6340 * defs.h (XCALLOC): Remove.
6341 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
6342 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
6343 * dwarf2loc.c (allocate_piece_closure): Likewise.
6344 * elfread.c (elf_symfile_segments): Likewise.
6345 (elf_symfile_segments): Likewise.
6346 * gdbtypes.c (copy_type_recursive): Likewise.
6347 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
6348 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
6349 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
6351 * mt-tdep.c (mt_gdbarch_init): Likewise.
6352 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
6354 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
6355 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
6356 * registry.c (registry_alloc_data): Likewise.
6357 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
6358 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6359 * serial.c (serial_fdopen_ops): Likewise.
6360 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
6362 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
6363 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
6366 2014-01-13 Tom Tromey <tromey@redhat.com>
6368 * defs.h (XMALLOC): Remove.
6369 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
6370 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6371 * cli-out.c (struct ui_out *): Likewise.
6372 * cli/cli-dump.c (add_dump_command): Likewise.
6373 (add_dump_command): Likewise.
6374 * complaints.c (get_complaints): Likewise.
6375 (find_complaint): Likewise.
6376 * dwarf2-frame.c (execute_cfa_program): Likewise.
6377 * dwarf2read.c (abbrev_table_read_table): Likewise.
6378 * gdbarch.sh: Likewise.
6379 * gdbarch.c: Rebuild.
6380 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
6381 * interps.c (interp_new): Likewise.
6382 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6383 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6384 * mi/mi-console.c (mi_console_file_new): Likewise.
6385 * mi/mi-interp.c (mi_interpreter_init): Likewise.
6386 * mi/mi-out.c (mi_out_new): Likewise.
6387 * mi/mi-parse.c (mi_parse): Likewise.
6388 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6389 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6390 * observer.c (xalloc_observer_list_node): Likewise.
6391 * regcache.c (regcache_xmalloc_1): Likewise.
6392 * reggroups.c (reggroup_new): Likewise.
6393 (_initialize_reggroup): Likewise.
6394 * registry.c (register_data_with_cleanup): Likewise.
6395 * remote.c (remote_notif_stop_alloc_reply): Likewise.
6396 * ser-base.c (serial_ttystate): Likewise.
6397 * ser-mingw.c (make_pipe_state): Likewise.
6398 * ser-pipe.c (pipe_open): Likewise.
6399 * serial.c (serial_open): Likewise.
6400 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6401 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
6402 (tui_alloc_win_info): Likewise.
6403 (tui_add_content_elements): Likewise.
6404 * tui/tui-file.c (tui_file_new): Likewise.
6405 * tui/tui-out.c (tui_out_new): Likewise.
6406 * ui-file.c (mem_file_new): Likewise.
6407 * ui-out.c (push_level): Likewise.
6408 (make_cleanup_ui_out_end): Likewise.
6409 (append_header_to_list): Likewise.
6410 (ui_out_new): Likewise.
6411 * user-regs.c (user_reg_add_builtin): Likewise.
6413 2014-01-13 Tom Tromey <tromey@redhat.com>
6415 * defs.h (XZALLOC): Remove.
6416 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
6417 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
6418 (get_ada_tasks_inferior_data): Likewise.
6419 * auto-load.c (get_auto_load_pspace_data): Likewise.
6420 * auxv.c (get_auxv_inferior_data): Likewise.
6421 * bfd-target.c (target_bfd_reopen): Likewise.
6422 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
6423 (deprecated_insert_raw_breakpoint): Likewise.
6424 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
6425 * corelow.c (core_open): Likewise.
6426 * darwin-nat.c (darwin_check_new_threads): Likewise.
6427 (darwin_attach_pid): Likewise.
6428 * dummy-frame.c (dummy_frame_push): Likewise.
6429 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
6430 * dwarf2loc.c (allocate_piece_closure): Likewise.
6431 * elfread.c (elf_symfile_segments): Likewise.
6432 * eval.c (ptrmath_type_p): Likewise.
6433 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
6434 * gdbtypes.c (alloc_type_arch): Likewise.
6435 (alloc_type_instance): Likewise.
6436 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
6437 * inf-child.c (inf_child_can_use_agent): Likewise.
6438 * inflow.c (get_inflow_inferior_data): Likewise.
6439 * infrun.c (save_infcall_suspend_state): Likewise.
6440 * jit.c (jit_reader_load): Likewise.
6441 (get_jit_objfile_data): Likewise.
6442 (get_jit_program_space_data): Likewise.
6443 (jit_object_open_impl): Likewise.
6444 (jit_symtab_open_impl): Likewise.
6445 (jit_block_open_impl): Likewise.
6446 (jit_frame_sniffer): Likewise.
6447 * linux-fork.c (add_fork): Likewise.
6448 * maint.c (make_command_stats_cleanup): Likewise.
6449 * objfiles.c (get_objfile_pspace_data): Likewise.
6450 * opencl-lang.c (struct lval_closure): Likewise.
6451 * osdata.c (osdata_start_osdata): Likewise.
6452 * progspace.c (new_address_space): Likewise.
6453 (add_program_space): Likewise.
6454 * remote-sim.c (get_sim_inferior_data): Likewise.
6455 * sh-tdep.c (sh_gdbarch_init): Likewise.
6456 * skip.c (Ignore): Likewise.
6457 (skip_delete_command): Likewise.
6458 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
6459 (library_list_start_library): Likewise.
6460 (solib_aix_current_sos): Likewise.
6461 * solib-darwin.c (get_darwin_info): Likewise.
6462 (darwin_current_sos): Likewise.
6463 * solib-dsbt.c (get_dsbt_info): Likewise.
6464 * solib-ia64-hpux.c (new_so_list): Likewise.
6465 (ia64_hpux_get_solib_linkage_addr): Likewise.
6466 * solib-spu.c (append_ocl_sos): Likewise.
6467 (spu_current_sos): Likewise.
6468 * solib-svr4.c (get_svr4_info): Likewise.
6469 (svr4_keep_data_in_core): Likewise.
6470 (library_list_start_library): Likewise.
6471 (svr4_default_sos): Likewise.
6472 (svr4_read_so_list): Likewise.
6473 * solib-target.c (library_list_start_library): Likewise.
6474 (solib_target_current_sos): Likewise.
6475 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6476 * symfile-debug.c (install_symfile_debug_logging): Likewise.
6477 * symfile.c (default_symfile_segments): Likewise.
6478 * target-descriptions.c (tdesc_data_init): Likewise.
6479 (tdesc_create_reg): Likewise.
6480 (struct tdesc_type *): Likewise.
6481 (tdesc_create_vector): Likewise.
6482 (tdesc_set_struct_size): Likewise.
6483 (struct tdesc_type *): Likewise.
6484 (tdesc_free_feature): Likewise.
6485 (tdesc_create_feature): Likewise.
6486 * windows-nat.c (windows_add_thread): Likewise.
6487 (windows_make_so): Likewise.
6488 * xml-support.c (gdb_xml_body_text): Likewise.
6489 (gdb_xml_create_parser_and_cleanup): Likewise.
6490 (xml_process_xincludes): Likewise.
6491 * xml-syscall.c (allocate_syscalls_info): Likewise.
6492 (syscall_create_syscall_desc): Likewise.
6494 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
6496 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
6497 function, with code from i386_stap_parse_special_token.
6498 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6499 (i386_stap_parse_special_token): Move code to the two functions
6502 2014-01-09 Pedro Alves <palves@redhat.com>
6503 Hui Zhu <hui@codesourcery.com>
6506 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
6507 bp_err_string. Don't mark the location shlib_disabled if the
6508 error thrown wasn't a generic or memory error. Catch errors
6509 thrown while inserting breakpoints in overlayed code. Output
6510 error message of software breakpoints.
6511 * remote.c (remote_insert_breakpoint): If this breakpoint has
6512 target-side commands but this stub doesn't support Z0 packets,
6513 throw NOT_SUPPORTED_ERROR error.
6514 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
6515 * target.h (target_insert_breakpoint): Extend comment.
6516 (target_insert_hw_breakpoint): Add comment.
6518 2014-01-08 Pedro Alves <palves@redhat.com>
6520 * remote.c (remote_add_thread): Add threads silently if starting
6522 (remote_notice_new_inferior): If in all-stop, and starting up,
6523 don't call notice_new_inferior.
6524 (get_current_thread): New function, factored out from ...
6525 (add_current_inferior_and_thread): ... this. Adjust.
6526 (remote_start_remote) <all-stop>: Fetch the thread list. If we
6527 found any thread, then select the remote's current thread as GDB's
6530 2014-01-08 Joel Brobecker <brobecker@adacore.com>
6532 * NEWS: Create a new section for the next release branch.
6533 Rename the section of the current branch, now that it has
6536 2014-01-08 Joel Brobecker <brobecker@adacore.com>
6538 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
6539 * version.in: Bump version to 7.7.50.DATE-cvs.
6541 2014-01-08 Yao Qi <yao@codesourcery.com>
6543 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
6544 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
6545 (spu_xfer_partial): Cast 'buf' to 'const char *'.
6547 2014-01-08 Yao Qi <yao@codesourcery.com>
6549 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
6550 return value of bfd_get_filename to symbol_file_add_from_bfd.
6552 2014-01-08 Pierre Muller <muller@sourceware.org>
6555 * coff-pe-read.c (struct read_pe_section_data): Add index field.
6556 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
6557 to prim_record_mininal_symbol_and_info.
6558 (add_pe_forwarded_sym): Use known section number of forwarded symbol
6559 in call to prim_record_minimal_symbol_and_info.
6560 (read_pe_exported_syms): Set index field of section_data.
6562 2014-01-07 Andrew Pinski <apinski@cavium.com>
6564 * features/aarch64-core.xml (cpsr): Change to be 64bit.
6565 * features/aarch64.c: Regenerate.
6567 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
6569 * target.c (return_null): Define.
6570 (update_current_target): Use it instead of return_zero for
6571 functions that return a pointer.
6573 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
6575 * source.c (add_path): Fix check for duplicated paths in the previously
6578 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
6580 * ada-lang.c: Remove duplicated include statements.
6581 * alphabsd-nat.c: Ditto.
6582 * amd64-darwin-tdep.c: Ditto.
6583 * amd64fbsd-nat.c: Ditto.
6584 * auto-load.c: Ditto.
6586 * breakpoint.c: Ditto.
6588 * fork-child.c: Ditto.
6589 * gdb_usleep.c: Ditto.
6590 * i386-darwin-tdep.c: Ditto.
6591 * i386fbsd-nat.c: Ditto.
6593 * inferior.c: Ditto.
6595 * linux-nat.c: Ditto.
6596 * linux-tdep.c: Ditto.
6597 * m68kbsd-nat.c: Ditto.
6598 * m68klinux-nat.c: Ditto.
6599 * microblaze-tdep.c: Ditto.
6600 * mips-linux-tdep.c: Ditto.
6601 * mn10300-tdep.c: Ditto.
6602 * nto-tdep.c: Ditto.
6603 * opencl-lang.c: Ditto.
6605 * printcmd.c: Ditto.
6606 * regcache.c: Ditto.
6607 * remote-m32r-sdi.c: Ditto.
6611 * tilegx-linux-nat.c: Ditto.
6612 * tilegx-tdep.c: Ditto.
6613 * tracepoint.c: Ditto.
6615 * vaxbsd-nat.c: Ditto.
6616 * windows-nat.c: Ditto.
6617 * xtensa-tdep.c: Ditto.
6619 2014-01-07 Yao Qi <yao@codesourcery.com>
6621 * spu-linux-nat.c (_initialize_spu_nat): Declare.
6623 2014-01-07 Yao Qi <yao@codesourcery.com>
6624 Joel Brobecker <brobecker@adacore.com>
6626 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
6627 (pdc_write_regs): Likewise.
6628 (fetch_regs_kernel_thread): Likewise.
6629 (store_regs_kernel_thread): Likewise.
6631 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6633 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
6634 tagged type objects to their actual type.
6636 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6638 * ada-valprint.c (print_field_values): Add "language" parameter.
6639 Update calls to print_field_values and print_variant_part.
6640 Pass new parameter "language" in call to val_print instead
6641 of "current_language". Replace call to ada_val_print by call
6643 (print_variant_part): Add "language" parameter.
6644 (ada_val_print_struct_union): Update call to print_field_values.
6646 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6648 * ada-valprint.c (ui_memcpy): Delete.
6649 (ada_print_floating): Update documentation. Add empty line
6650 between between function documentation and implementation.
6651 Delete variable "buffer". Use ui_file_xstrdup in place of
6652 ui_file_put. Minor adjustments following this change.
6654 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6656 * ada-valprint.c (ada_val_print_string): New function,
6657 extracted from ada_val_print_array.
6658 (ada_val_print_array): Replace extracted code by call
6659 to ada_val_print_string followed by a return. Move
6660 "else" branch to the function's top block.
6662 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6664 * ada-valprint.c (ada_val_print_array): Move implementation
6665 down. Rename parameter "offset" and "val" into "offset_aligned"
6666 and "original_value" respectively. Add parameter "offset".
6668 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6670 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
6671 re-organizing the code. Change the "???" message printed
6672 when target type is a TYPE_CODE_UNDEF into
6673 "<ref to undefined type>".
6675 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6677 * ada-valprint.c (print_record): Delete, implementation inlined...
6678 (ada_val_print_struct_union): ... here. Remove call to
6679 ada_check_typedef in inlined implementation.
6681 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6683 * ada-valprint.c (ada_val_print_gnat_array): New function,
6684 extracted from ada_val_print_1;
6685 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
6686 (ada_val_print_flt, ada_val_print_struct_union)
6687 (ada_val_print_ref): Likewise.
6688 (ada_val_print_1): Delete variables i and elttype.
6689 Replace extracted-out code by call to corresponding
6692 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6694 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
6696 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6698 * ada-valprint.c (ada_val_print_1): Replace calls to
6699 ada_val_print_1 by calls to val_print.
6701 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6703 * ada-valprint.c (ada_val_print_1): Add parameter "language".
6704 Update calls to self accordingly. Replace calls to c_val_print
6705 by calls to val_print.
6707 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6709 * ada-valprint.c (print_record): Delete declaration.
6710 (adjust_type_signedness, ada_val_print_1): Likewise.
6711 (ada_val_print): Move function implementation down.
6712 (print_variant_part, print_field_values, print_record):
6713 Move function implementation up.
6715 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6717 * python/py-type.c (typy_get_name): New function.
6718 (type_object_getset): Add entry for attribute "name".
6719 * NEWS: Add entry mentioning this new attribute.
6721 2014-01-07 Yao Qi <yao@codesourcery.com>
6723 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
6726 2014-01-07 Yao Qi <yao@codesourcery.com>
6728 * gnu-nat.c (info_port_rights): Add qualifier const to
6731 2014-01-07 Yao Qi <yao@codesourcery.com>
6733 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
6735 2014-01-07 Yao Qi <yao@codesourcery.com>
6737 * gnu-nat.c (make_inf) Update declaration.
6738 (make_inf): Make it static.
6739 (inf_set_traced): Likewise.
6740 (inf_port_to_thread, inf_task_died_status): Likewise.
6742 2014-01-07 Yao Qi <yao@codesourcery.com>
6744 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
6746 2014-01-07 Yao Qi <yao@codesourcery.com>
6748 * gnu-nat.c (_initialize_gnu_nat): Declare.
6750 2014-01-07 Yao Qi <yao@codesourcery.com>
6752 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
6754 (struct gdbarch_info) <byte_order>: Change type to
6756 <byte_order_for_code>: Likewise.
6757 * gdbarch.c, gdbarch.h: Regenerated.
6759 2014-01-06 Sasha Smundak <asmundak@google.com>
6761 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
6763 2014-01-06 Tom Tromey <tromey@redhat.com>
6765 * doublest.c (convert_doublest_to_floatformat): Use const, not
6767 * somread.c (som_symtab_read): Likewise.
6769 2014-01-07 Hui Zhu <hui@codesourcery.com>
6771 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
6772 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
6773 (gdb_bfd_fopen): Ditto.
6774 (gdb_bfd_openr): Ditto.
6775 (gdb_bfd_openw): Ditto.
6776 (gdb_bfd_openr_iovec): Ditto.
6777 (gdb_bfd_fdopenr): Ditto.
6778 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
6779 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
6781 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
6783 * symfile-mem.c (symbol_file_add_from_memory): Removed
6784 gdb_bfd_stash_filename.
6786 2014-01-03 Doug Evans <dje@google.com>
6788 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
6791 2014-01-01 Joel Brobecker <brobecker@adacore.com>
6793 Update year range in copyright notice of all files.
6795 2014-01-01 Joel Brobecker <brobecker@adacore.com>
6797 * top.c (print_gdb_version): Set copyright year to 2014.
6799 2014-01-01 Joel Brobecker <brobecker@adacore.com>
6801 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
6803 For older changes see ChangeLog-2013.
6809 version-control: never