1 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4 (dwarf2_evaluate_property): New function.
5 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6 * dwarf2read.c (attr_to_dynamic_prop): New function.
7 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9 * gdbtypes.c: Include dwarf2loc.h.
10 (is_dynamic_type): New function.
11 (resolve_dynamic_type): New function.
12 (resolve_dynamic_bounds): New function.
13 (get_type_length): New function.
14 (check_typedef): Use get_type_length to compute type length.
15 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
16 (TYPE_LOW_BOUND_KIND): New macro.
17 (is_dynamic_type): New function prototype.
18 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
19 to resolve dynamic properties of the type. Update comment.
20 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
22 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
24 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
25 declaring high/low bounds and change uses accordingly. Call
26 create_range_type instead of create_static_range_type.
27 * gdbtypes.c (create_range_type): New function.
28 (create_range_type): Convert bounds into struct bound_prop and pass
29 them to create_range_type.
30 * gdbtypes.h (struct bound_prop): New struct.
31 (create_range_type): New function prototype.
32 (struct range_bounds): Use struct bound_prop instead of LONGEST for
33 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
34 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
36 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
38 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
40 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
41 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
42 * ada-lang.c: All uses of create_range_type updated.
43 * coffread.c: All uses of create_range_type updated.
44 * dwarf2read.c: All uses of create_range_type updated.
45 * f-exp.y: All uses of create_range_type updated.
46 * m2-valprint.c: All uses of create_range_type updated.
47 * mdebugread.c: All uses of create_range_type updated.
48 * stabsread.c: All uses of create_range_type updated.
49 * valops.c: All uses of create_range_type updated.
50 * valprint.c: All uses of create_range_type updated.
52 2014-04-10 Pedro Alves <palves@redhat.com>
54 * breakpoint.c (single_step_breakpoints)
55 (single_step_gdbarch): Move up in the file.
56 (one_breakpoint_xfer_memory): New function, factored out from ...
57 (breakpoint_xfer_memory): ... here. Also process single-step
60 2014-04-09 Tristan Gingold <gingold@adacore.com>
62 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
64 (darwin_decode_exception_message): Free port only after use.
66 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
68 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
69 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
70 when setting the size of call_length.
72 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
74 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
75 dereference TYPE_CODE_REF values.
77 2014-04-07 Joel Brobecker <brobecker@adacore.com>
79 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
80 end of warning message.
82 2014-04-03 Doug Evans <dje@google.com>
84 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
85 of stub_comp_unit_die, stub_comp_dir is non-NULL.
87 2014-04-02 Alan Modra <amodra@gmail.com>
89 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
90 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
91 (struct symbol_file_add_from_memory_args): Add size field.
92 (find_vdso_size): New function.
93 (add_vsyscall_page): Attempt to find vdso size.
95 2014-04-01 Doug Evans <dje@google.com>
97 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
99 2014-04-01 Tristan Gingold <gingold@adacore.com>
101 * darwin-nat.c (darwin_encode_reply): Add prototype.
102 (darwin_decode_exception_message): Reply to unknown inferiors.
103 (darwin_decode_message): Handle message by id. Ignore message
105 (darwin_wait): Discard unknown messages, add debug trace.
107 2014-03-31 Doug Evans <dje@google.com>
109 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
112 2014-03-31 Doug Evans <dje@google.com>
114 New option "set print symbol-loading".
116 * solib.c (solib_read_symbols): Only print symbol loading messages
118 (solib_add): If symbol loading is in "brief" mode, notify user
119 symbols are being loaded.
120 (reload_shared_libraries_1): Ditto.
121 * symfile.c (print_symbol_loading_off): New static global.
122 (print_symbol_loading_brief): New static global.
123 (print_symbol_loading_full): New static global.
124 (print_symbol_loading_enums): New static global.
125 (print_symbol_loading): New static global.
126 (print_symbol_loading_p): New function.
127 (symbol_file_add_with_addrs): Only print symbol loading messages
129 (_initialize_symfile): Register "print symbol-loading" set/show
131 * symfile.h (print_symbol_loading_p): Declare.
133 2014-03-30 Doug Evans <xdje42@gmail.com>
135 * infrun.c (set_last_target_status): New function.
136 (handle_inferior_event): Call it.
138 2014-03-30 Doug Evans <xdje42@gmail.com>
140 * inferior.h (enum stop_kind): Improve comment.
142 2014-03-28 Joel Brobecker <brobecker@adacore.com>
144 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
145 a reference, strip the reference layer before calling
146 the lang_ops value_has_mutated callback.
148 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
150 Remove some globals from our parser.
151 * language.c (unk_lang_parser): Add "struct parser_state"
153 * language.h (struct language_defn) <la_parser>: Likewise.
154 * parse.c (expout, expout_size, expout_ptr): Remove variables.
155 (initialize_expout): Add "struct parser_state" argument.
156 Rewrite function to use the parser state.
157 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
158 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
159 write_exp_elt_longcst, write_exp_elt_dblcst,
160 write_exp_elt_decfloatcst, write_exp_elt_type,
161 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
162 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
163 write_dollar_variable): Likewise.
164 (parse_exp_in_context_1): Use parser state.
165 (insert_type_address_space): Add "struct parser_state" argument.
167 (increase_expout_size): New function.
168 * parser-defs.h: Forward declare "struct language_defn" and
169 "struct parser_state".
170 (expout, expout_size, expout_ptr): Remove extern declarations.
171 (parse_gdbarch, parse_language): Rewrite macro declarations to
172 accept the parser state.
173 (struct parser_state): New struct.
174 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
175 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
176 write_exp_elt_decfloatcst, write_exp_elt_type,
177 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
178 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
179 write_exp_msymbol, write_dollar_variable,
180 mark_struct_expression, insert_type_address_space): Add "struct
181 parser_state" argument.
182 (increase_expout_size): New function.
183 * utils.c (do_clear_parser_state): New function.
184 (make_cleanup_clear_parser_state): Likewise.
185 * utils.h (make_cleanup_clear_parser_state): New function
187 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
188 Update calls to write_exp* in order to pass the parser state.
189 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
190 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
191 (i386_stap_parse_special_token_three_arg_disp): Likewise.
192 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
193 * stap-probe.c (stap_parse_register_operand): Likewise.
194 (stap_parse_single_operand): Likewise.
195 (stap_parse_argument_1): Likewise.
196 (stap_parse_argument): Use parser state.
197 * stap-probe.h: Include "parser-defs.h".
198 (struct stap_parse_info) <pstate>: New field.
199 * c-exp.y (parse_type): Rewrite to use parser state.
200 (yyparse): Redefine to c_parse_internal.
201 (pstate): New global variable.
202 (parse_number): Add "struct parser_state" argument.
203 (write_destructor_name): Likewise.
204 (type_exp): Update calls to write_exp* and similars in order to
206 (exp1, exp, variable, qualified_name, space_identifier,
207 typename, typebase): Likewise.
208 (write_destructor_name, parse_number, lex_one_token,
209 classify_name, classify_inner_name, c_parse): Add "struct
210 parser_state" argument. Update function to use parser state.
211 * c-lang.h: Forward declare "struct parser_state".
212 (c_parse): Add "struct parser_state" argument.
213 * ada-exp.y (parse_type): Rewrite macro to use parser state.
214 (yyparse): Redefine macro to ada_parse_internal.
215 (pstate): New variable.
216 (write_int, write_object_renaming, write_var_or_type,
217 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
218 type_int, type_long, type_long_long, type_float, type_double,
219 type_long_double, type_char, type_boolean, type_system_address):
220 Add "struct parser_state" argument.
221 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
222 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
223 var_or_type, aggregate, aggregate_component_list,
224 positional_list, others, component_group,
225 component_associations): Update calls to write_exp* and similar
226 functions in order to use parser state.
227 (ada_parse, write_var_from_sym, write_int,
228 write_exp_op_with_string, write_object_renaming,
229 find_primitive_type, write_selectors, write_ambiguous_var,
230 write_var_or_type, write_name_assoc, type_int, type_long,
231 type_long_long, type_float, type_double, type_long_double,
232 type_char, type_boolean, type_system_address): Add "struct
233 parser_state" argument. Adjust function to use parser state.
234 * ada-lang.c (parse): Likewise.
235 * ada-lang.h: Forward declare "struct parser_state".
236 (ada_parse): Add "struct parser_state" argument.
237 * ada-lex.l (processInt, processReal): Likewise. Adjust all
238 calls to both functions.
239 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
241 (yyparse): Redefine macro to f_parse_internal.
242 (pstate): New variable.
243 (parse_number): Add "struct parser_state" argument.
244 (type_exp, exp, subrange, typebase): Update calls to write_exp*
245 and similars in order to use parser state.
246 (parse_number): Adjust code to use parser state.
248 (f_parse): New function.
249 * f-lang.h: Forward declare "struct parser_state".
250 (f_parse): Add "struct parser_state" argument.
251 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
253 (yyparse): Redefine macro for java_parse_internal.
254 (pstate): New variable.
255 (push_expression_name, push_expression_name, insert_exp): Add
256 "struct parser_state" argument.
257 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
258 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
259 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
260 PostIncrementExpression, PostDecrementExpression,
261 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
262 UnaryExpressionNotPlusMinus, CastExpression,
263 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
264 RelationalExpression, EqualityExpression, AndExpression,
265 ExclusiveOrExpression, InclusiveOrExpression,
266 ConditionalAndExpression, ConditionalOrExpression,
267 ConditionalExpression, Assignment, LeftHandSide): Update
268 calls to write_exp* and similars in order to use parser state.
269 (parse_number): Ajust code to use parser state.
271 (java_parse): New function.
272 (push_variable): Add "struct parser_state" argument. Adjust
273 code to user parser state.
274 (push_fieldnames, push_qualified_expression_name,
275 push_expression_name, insert_exp): Likewise.
276 * jv-lang.h: Forward declare "struct parser_state".
277 (java_parse): Add "struct parser_state" argument.
278 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
280 (yyparse): Redefine macro to m2_parse_internal.
281 (pstate): New variable.
282 (type_exp, exp, fblock, variable, type): Update calls to
283 write_exp* and similars to use parser state.
285 (m2_parse): New function.
286 * m2-lang.h: Forward declare "struct parser_state".
287 (m2_parse): Add "struct parser_state" argument.
288 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
289 * objc-lang.h: Forward declare "struct parser_state".
290 (end_msglist): Add "struct parser_state" argument.
291 * p-exp.y (parse_type): Rewrite macro to use parser state.
292 (yyparse): Redefine macro to pascal_parse_internal.
293 (pstate): New variable.
294 (parse_number): Add "struct parser_state" argument.
295 (type_exp, exp1, exp, qualified_name, variable): Update calls to
296 write_exp* and similars in order to use parser state.
297 (parse_number, yylex): Adjust code to use parser state.
298 (pascal_parse): New function.
299 * p-lang.h: Forward declare "struct parser_state".
300 (pascal_parse): Add "struct parser_state" argument.
301 * go-exp.y (parse_type): Rewrite macro to use parser state.
302 (yyparse): Redefine macro to go_parse_internal.
303 (pstate): New variable.
304 (parse_number): Add "struct parser_state" argument.
305 (type_exp, exp1, exp, variable, type): Update calls to
306 write_exp* and similars in order to use parser state.
307 (parse_number, lex_one_token, classify_name, yylex): Adjust code
309 (go_parse): Likewise.
310 * go-lang.h: Forward declare "struct parser_state".
311 (go_parse): Add "struct parser_state" argument.
313 2014-03-27 Doug Evans <dje@google.com>
315 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
317 2014-03-27 Doug Evans <dje@google.com>
319 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
320 Remove argument abbrev_section. All callers updated.
322 2014-03-27 Doug Evans <dje@google.com>
324 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
325 addr_base, ranges_base.
327 2014-03-26 Keith Seitz <keiths@redhat.com>
329 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
330 types, not VAR_DOMAIN.
332 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
334 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
336 * features/nios2-linux.c: Regenerated.
337 * features/nios2.c: Regenerated.
339 2014-03-25 Pedro Alves <palves@redhat.com>
341 * cli/cli-script.c (script_from_file): Force the interpreter to
344 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
346 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
347 small stack allocation.
349 2014-03-24 Tristan Gingold <gingold@adacore.com>
351 * darwin-nat.c (exc_server): Remove unused prototype.
352 (darwin_dump_message): Correctly display data on x86_64.
353 (darwin_encode_reply): Fix style.
354 Add comments and fix indentation.
356 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
358 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
360 2014-03-22 Doug Evans <xdje42@gmail.com>
362 * infcmd.c: Whitespace fixes.
363 (interrupt_command): Merge two function comments into one.
365 2014-03-22 Doug Evans <xdje42@gmail.com>
367 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
370 2014-03-22 Yao Qi <yao@codesourcery.com>
372 * remote.c (target_read_live_memory): Remove.
373 (memory_xfer_live_readonly_partial): Rename it to
374 remote_xfer_live_readonly_partial. Remove argument 'object'.
375 All callers updated. Call remote_read_bytes_1
376 instead of target_read_live_memory.
377 * tracepoint.c (set_traceframe_number): Remove.
378 (make_cleanup_restore_traceframe_number): Likewise .
379 * tracepoint.h (set_traceframe_number): Remove declaration.
380 (make_cleanup_restore_traceframe_number): Likewise.
382 2014-03-22 Yao Qi <yao@codesourcery.com>
384 * remote.c (remote_read_bytes): Move code on reading from the
386 (remote_read_bytes_1): ... here. New function.
388 2014-03-22 Yao Qi <yao@codesourcery.com>
390 * ctf.c (ctf_xfer_partial): Check the return value of
391 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
392 return TARGET_XFER_UNAVAILABLE.
393 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
394 * target.c (target_read_live_memory): Move it to remote.c.
395 (memory_xfer_live_readonly_partial): Likewise.
396 (memory_xfer_partial_1): Move some code to remote_read_bytes.
397 * remote.c (target_read_live_memory): Moved from target.c.
398 (memory_xfer_live_readonly_partial): Likewise.
399 (remote_read_bytes): Factored out from
400 memory_xfer_partial_1.
402 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
404 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
407 2014-03-21 Pedro Alves <palves@redhat.com>
409 * infrun.c (normal_stop): Extend comment.
411 2014-03-21 Hui Zhu <hui@codesourcery.com>
412 Pedro Alves <palves@redhat.com>
414 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
416 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
417 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
418 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
420 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
422 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
423 `z' formatted output modifier.
425 2014-03-20 Tom Tromey <tromey@redhat.com>
426 Sergio Durigan Junior <sergiodj@redhat.com>
428 * probe.c (parse_probes): Turn assert into an ordinary error.
429 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
430 exceptions when parsing probes. Rearrange the code for clarity.
432 2014-03-20 Tom Tromey <tromey@redhat.com>
435 * top.c (execute_command): Only dispatch events if the command
438 2014-03-20 Tom Tromey <tromey@redhat.com>
441 * infcall.c: Include event-top.h.
442 (run_inferior_call): Call async_disable_stdin if needed.
444 2014-03-20 Pedro Alves <palves@redhat.com>
446 * infrun.c (prepare_to_proceed): Delete.
447 (thread_still_needs_step_over): New function.
448 (find_thread_needs_step_over): New function.
449 (proceed): If the current thread needs a step-over, set its
450 steping_over_breakpoint flag. Adjust to use
451 find_thread_needs_step_over instead of prepare_to_proceed.
452 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
453 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
455 (switch_back_to_stepped_thread): Step over breakpoints of all
456 threads not the stepping thread, before switching back to the
459 2014-03-20 Pedro Alves <palves@redhat.com>
461 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
463 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
464 * infrun.c (saved_singlestep_ptid)
465 (stepping_past_singlestep_breakpoint): Delete.
466 (resume): Remove stepping_past_singlestep_breakpoint handling.
467 (proceed): Store the prev_pc of the stepping thread too.
468 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
470 (enum infwait_states): Delete infwait_thread_hop_state.
471 (struct execution_control_state) <hit_singlestep_breakpoint>: New
473 (handle_inferior_event): Adjust.
474 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
475 handling and the thread-hop code. Before removing single-step
476 breakpoints, check whether the thread hit a single-step breakpoint
477 of another thread. If it did, the trap is not a random signal.
478 (switch_back_to_stepped_thread): If the event thread hit a
479 single-step breakpoint, unblock it before switching to the
480 stepping thread. Handle the case of the stepped thread having
482 (keep_going): Handle the case of the current thread moving past a
483 single-step breakpoint.
485 2014-03-20 Pedro Alves <palves@redhat.com>
488 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
489 are being stepped over.
490 (breakpoint_address_match): Make extern.
491 * breakpoint.h (breakpoint_address_match): New declaration.
492 * inferior.h (stepping_past_instruction_at): New declaration.
493 * infrun.c (struct step_over_info): New type.
494 (step_over_info): New global.
495 (set_step_over_info, clear_step_over_info)
496 (stepping_past_instruction_at): New functions.
497 (handle_inferior_event): Clear the step-over info when
498 trap_expected is cleared.
499 (resume): Remove now stale comment.
500 (clear_proceed_status): Clear step-over info.
501 (proceed): Adjust step-over handling to set or clear the step-over
502 info instead of removing all breakpoints.
503 (handle_signal_stop): When setting up a thread-hop, don't remove
505 (stop_stepping): Clear step-over info.
506 (keep_going): Adjust step-over handling to set or clear step-over
507 info and then always inserting breakpoints, instead of removing
508 all breakpoints when stepping over one.
510 2014-03-20 Pedro Alves <palves@redhat.com>
512 * infrun.c (previous_inferior_ptid): Adjust comment.
513 (deferred_step_ptid): Delete.
514 (infrun_thread_ptid_changed, prepare_to_proceed)
515 (init_wait_for_inferior): Adjust.
516 (handle_signal_stop): Delete deferred_step_ptid handling.
518 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
521 * defs.h (sync_quit_force_run): New declaration.
522 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
523 * event-top.c (async_sigterm_handler): New declaration.
524 (async_sigterm_token): New variable.
525 (async_init_signals): Create also async_sigterm_token.
526 (async_sigterm_handler): New function.
527 (sync_quit_force_run): New variable.
528 (handle_sigterm): Replace quit_force call by other calls.
529 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
531 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
533 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
534 offset into SPE pseudo registers.
536 2014-03-18 Pedro Alves <palves@redhat.com>
539 * inferior.h (print_stop_event): Declare.
540 * infrun.c (print_stop_event): New, factored out from ...
541 (normal_stop): ... this.
542 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
543 of bpstat_print/print_stack_frame.
545 2014-03-17 Tom Tromey <tromey@redhat.com>
547 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
549 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
551 * ada-lang.c (decode_constrained_packed_array): Perform a
552 minimal coercion for reference with coerce_ref instead of
555 2014-03-17 Tristan Gingold <gingold@adacore.com>
557 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
558 (darwin_solib_create_inferior_hook): Emit a warning if version
561 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
563 * python/py-value.c (get_field_flag): Cast flag_name argument to
564 PyObject_GetAttrString to support Python 2.4.
566 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
568 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
569 (Global Maintainers): Remove Jan Kratochvil.
571 2014-03-14 Pedro Alves <palves@redhat.com>
573 * inferior.h (terminal_ours_for_output): Rename to ...
574 (child_terminal_ours_for_output): ... this.
575 (terminal_save_ours): Rename to ...
576 (child_terminal_save_ours): ... this.
577 (terminal_ours): Rename to ...
578 (child_terminal_ours): ... this.
579 (terminal_inferior): Rename to ...
580 (child_terminal_inferior): ... this.
581 (terminal_init_inferior): Rename to ...
582 (child_terminal_init_inferior): ... this.
583 (terminal_init_inferior_with_pgrp): Rename to ...
584 (child_terminal_init_inferior_with_pgrp): ... this.
585 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
586 (child_terminal_init_with_pgrp): ... this.
587 (terminal_save_ours): Rename to ...
588 (child_terminal_save_ours): ... this.
589 (terminal_init_inferior): Rename to ...
590 (child_terminal_init): ... this. Adjust.
591 (terminal_inferior): Rename to ...
592 (child_terminal_inferior): ... this.
593 (terminal_ours_for_output): Rename to ...
594 (child_terminal_ours_for_output): ... this. Adjust.
595 (terminal_ours): Rename to ...
596 (child_terminal_ours): ... this.
597 (terminal_ours_1): Rename to ...
598 (child_terminal_ours_1): ... this. Adjust.
599 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
600 * windows-nat.c (do_initial_windows_stuff): Adjust.
601 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
602 (gnu_terminal_init): ... this. Adjust.
603 (gnu_target): Adjust.
604 * inf-child.c (inf_child_target): Adjust.
606 2014-03-13 Doug Evans <xdje42@gmail.com>
609 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
612 2014-03-13 Doug Evans <xdje42@gmail.com>
614 * value.c (record_latest_value): Call release_value_or_incref
615 instead of release_value.
617 2014-03-13 Pedro Alves <palves@redhat.com>
619 * procfs.c (procfs_target): Don't override to_shortname,
620 to_longname or to_doc.
622 2014-03-13 Pedro Alves <palves@redhat.com>
624 * inf-child.c (inf_child_open, inf_child_target): Don't mention
625 Unix in user visible strings.
627 2014-03-12 Stan Shebs <stan@codesourcery.com>
629 * gdbtypes.h: Annotate comments for Doxygen, add a page
630 block comment with some general info.
632 2014-03-12 Pedro Alves <palves@redhat.com>
634 * infcmd.c (prepare_execution_command): New function, factored out
635 from several execution commands.
636 (run_command_1, continue_command, step_1, jump_command)
637 (signal_command, until_command, advance_command, finish_command)
638 (attach_command): Use prepare_execution_command.
640 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
642 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
645 (struct arm_linux_thread_points): Removed.
646 (struct arm_linux_process_info): New.
647 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
648 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
649 (arm_linux_find_breakpoints_by_tid): Removed.
650 (struct arch_lwp_info): New.
651 (arm_linux_find_process_pid): New functions.
652 (arm_linux_add_process): New functions.
653 (arm_linux_process_info_get): New functions.
654 (arm_linux_forget_process): New function.
655 (arm_linux_get_debug_reg_state): New function.
656 (struct update_registers_data): New.
657 (update_registers_callback): New function.
658 (arm_linux_insert_hw_breakpoint1): Updated.
659 (arm_linux_remove_hw_breakpoint1): Updated.
660 (arm_linux_insert_hw_breakpoint): Updated.
661 (arm_linux_remove_hw_breakpoint): Updated.
662 (arm_linux_insert_watchpoint): Updated.
663 (arm_linux_remove_watchpoint): Updated.
664 (arm_linux_new_thread): Updated.
665 (arm_linux_prepare_to_resume): New function.
666 (arm_linux_new_fork): New function.
667 (_initialize_arm_linux_nat): Updated.
669 2014-03-12 Pedro Alves <palves@redhat.com>
671 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
673 2014-03-12 Tom Tromey <tromey@redhat.com>
675 * inf-child.c (return_zero): New function.
676 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
677 * aix-thread.c (aix_thread_inferior_created): New function.
678 (aix_thread_attach): Remove.
679 (init_aix_thread_ops): Don't set to_attach.
680 (_initialize_aix_thread): Register inferior_created observer.
681 * corelow.c (init_core_ops): Don't set to_attach or
683 * exec.c (init_exec_ops): Don't set to_attach or
685 * infcmd.c (run_command_1): Use find_run_target. Make direct
687 (attach_command): Use find_attach_target. Make direct target
689 * record-btrace.c (init_record_btrace_ops): Don't set
691 * record-full.c (record_full_can_async_p, record_full_is_async_p):
693 (init_record_full_ops, init_record_full_core_ops): Update. Don't
694 set to_create_inferior.
695 * target.c (complete_target_initialization): Add assertion.
696 (target_create_inferior): Remove.
697 (find_default_attach, find_default_create_inferior): Remove.
698 (find_attach_target, find_run_target): New functions.
699 (find_default_is_async_p, find_default_can_async_p)
700 (target_supports_non_stop, target_attach): Remove.
701 (init_dummy_target): Don't set to_create_inferior or
702 to_supports_non_stop.
703 * target.h (struct target_ops) <to_attach>: Add comment. Remove
705 <to_create_inferior>: Add comment.
706 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
707 TARGET_DEFAULT_RETURN.
708 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
709 (find_attach_target, find_run_target): Declare.
710 (target_create_inferior): Remove.
711 (target_has_execution_1): Update comment.
712 (target_supports_non_stop): Remove.
713 * target-delegates.c: Rebuild.
715 2014-03-12 Pedro Alves <palves@redhat.com>
717 * inf-child.h: Update comment to not mention Unix.
719 2014-03-12 Pedro Alves <palves@redhat.com>
721 * inf-child.c: Update top comment to not mention Unix. Add
722 generic comment describing how this target is meant to be used.
723 (inf_child_post_attach, inf_child_post_startup_inferior)
724 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
727 2014-03-12 Pedro Alves <palves@redhat.com>
729 * nto-procfs.c: Include inf-child.h.
730 (procfs_ops): Delete global.
731 (procfs_can_run): Delete method.
732 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
733 target pointer instead of referencing procfs_ops.
734 (procfs_prepare_to_store): Delete.
735 (init_procfs_ops): Delete function.
736 (procfs_target): New function, based on init_procfs_ops, but
737 inherit inf_child_target.
738 (_initialize_procfs): Use procfs_target.
740 2014-03-12 Pedro Alves <palves@redhat.com>
742 * windows-nat.c: Include inf-child.h.
743 (windows_ops): Delete global.
744 (windows_open, windows_prepare_to_store, windows_can_run): Delete
746 (init_windows_ops): Delete function.
747 (windows_target): New function, based on init_windows_ops, but
748 inherit inf_child_target.
749 (_initialize_windows_nat): Use windows_target. Install x86
750 specific target methods here.
752 2014-03-10 Doug Evans <xdje42@gmail.com>
754 * guile/guile.c (call_initialize_gdb_module): New function.
755 (initialize_guile): Replace call to scm_init_guile with call to
758 2014-03-10 Joel Brobecker <brobecker@adacore.com>
760 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
761 in call to TYPE_CODE macro.
763 2014-03-10 Jerome Guitton <guitton@adacore.com>
765 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
766 Resolve tagged types to full view.
768 2014-03-10 Hui Zhu <hui@codesourcery.com>
770 * target.h (target_insert_breakpoint): Remove "hardware" from its
773 2014-03-07 Doug Evans <dje@google.com>
775 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
777 2014-03-07 Doug Evans <dje@google.com>
779 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
780 Remove unused local comp_dir_attr. Assert exactly one of
781 stub_comp_unit_die, stub_comp_dir is non-NULL.
783 2014-03-07 Joel Brobecker <brobecker@adacore.com>
785 * target.h (complete_target_initialization, add_target):
788 2014-03-07 Pedro Alves <palves@redhat.com>
790 * go32-nat.c: Include inf-child.h.
791 (go32_ops): Delete global.
792 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
794 (go32_create_inferior): Push the passed in target pointer instead
795 of referencing go32_ops.
796 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
797 (go32_target): New function, based on init_go32_ops, but inherit
799 (_initialize_go32_nat): Use go32_target. Move parts of
802 2014-03-06 Joel Brobecker <brobecker@adacore.com>
804 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
805 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
806 SYMBOL_VALUE_ADDRESS.
807 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
809 2014-03-06 Yao Qi <yao@codesourcery.com>
811 * breakpoint.c (get_tracepoint_by_number): Remove argument
812 optional_p. All callers updated. Adjust comments. Update
814 * breakpoint.h (get_tracepoint_by_number): Update declaration.
816 2014-03-06 Yao Qi <yao@codesourcery.com>
818 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
819 early if get_number returns zero. Use 'p' instead of 'args'.
821 2014-03-06 Yao Qi <yao@codesourcery.com>
823 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
826 2014-03-06 Yao Qi <yao@codesourcery.com>
829 * tracepoint.c (check_trace_running): New function.
830 (trace_find_command): Move code to check_trace_running and
831 call check_trace_running.
832 (trace_find_pc_command): Likewise.
833 (trace_find_tracepoint_command): Likewise.
834 (trace_find_line_command): Likewise.
835 (trace_find_range_command): Likewise.
836 * tracepoint.h (check_trace_running): Likewise.
837 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
839 2014-03-06 Yao Qi <yao@codesourcery.com>
841 * target.h (struct target_ops) <to_traceframe_info>: Use
842 TARGET_DEFAULT_NORETURN (tcomplain ()).
843 * target-delegates.c: Regenerated.
845 2014-03-05 Pedro Alves <palves@redhat.com>
848 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
849 void. Update comment.
850 (dcache_xfer_memory): Delete.
851 (dcache_read_memory_partial): New, based on the read bits of
853 (dcache_update): Add status parameter. Use ULONGEST for len, and
854 adjust. Discard cache lines if the reason for the update was
856 * dcache.h (dcache_xfer_memory): Delete declaration.
857 (dcache_read_memory_partial): New declaration.
858 (dcache_update): Update prototype.
859 * target.c (raw_memory_xfer_partial): Update the dcache here.
860 (memory_xfer_partial_1): Don't handle dcache writes here.
862 2014-03-05 Mike Frysinger <vapier@gentoo.org>
864 * remote-sim.c (gdbsim_load): Add const to prog.
866 2014-03-03 Tom Tromey <tromey@redhat.com>
868 * elfread.c (probe_key): Change to bfd_data.
869 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
870 now per-BFD, not per-objfile.
871 * stap-probe.c (stap_probe_destroy): Update comment.
872 (handle_stap_probe): Allocate on the per-BFD obstack.
874 2014-03-03 Tom Tromey <tromey@redhat.com>
876 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
877 * breakpoint.c (create_longjmp_master_breakpoint): Use
879 (add_location_to_breakpoint, bkpt_probe_insert_location)
880 (bkpt_probe_remove_location): Update.
881 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
882 * elfread.c (elf_symfile_relocate_probe): Remove.
883 (elf_probe_fns): Update.
884 (insert_exception_resume_breakpoint): Change type of "probe"
885 parameter to bound_probe.
886 (check_exception_resume): Update.
887 * objfiles.c (objfile_relocate1): Don't relocate probes.
888 * probe.c (bound_probe_s): New typedef.
889 (parse_probes): Use get_probe_address. Set sal's objfile.
890 (find_probe_by_pc): Return a bound_probe.
891 (collect_probes): Return a VEC(bound_probe_s).
892 (compare_probes): Update.
893 (gen_ui_out_table_header_info): Change type of "probes"
895 (info_probes_for_ops): Update.
896 (get_probe_address): New function.
897 (probe_safe_evaluate_at_pc): Update.
898 * probe.h (struct probe_ops) <get_probe_address>: New field.
899 <set_semaphore, clear_semaphore>: Add objfile parameter.
900 (struct probe) <objfile>: Remove field.
902 <address>: Update comment.
903 (struct bound_probe): New.
904 (find_probe_by_pc): Return a bound_probe.
905 (get_probe_address): Declare.
906 * solib-svr4.c (struct probe_and_action) <address>: New field.
907 (hash_probe_and_action, equal_probe_and_action): Update.
908 (register_solib_event_probe): Add address parameter.
909 (solib_event_probe_at): Update.
910 (svr4_create_probe_breakpoints): Add objfile parameter. Use
912 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
913 (stap_get_probe_address): New function.
914 (stap_can_evaluate_probe_arguments, compute_probe_arg)
915 (compile_probe_arg): Update.
916 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
918 (handle_stap_probe): Don't relocate the probe.
919 (stap_relocate): Remove.
920 (stap_gen_info_probes_table_values): Update.
921 (stap_probe_ops): Remove stap_relocate.
922 * symfile-debug.c (debug_sym_relocate_probe): Remove.
923 (debug_sym_probe_fns): Update.
924 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
925 * symtab.c (init_sal): Use memset.
926 * symtab.h (struct symtab_and_line) <objfile>: New field.
927 * tracepoint.c (start_tracing, stop_tracing): Update.
929 2014-03-03 Tom Tromey <tromey@redhat.com>
931 * probe.h (parse_probes, find_probe_by_pc)
932 (find_probes_in_objfile): Fix comments.
934 2014-03-02 Doug Evans <xdje42@gmail.com>
936 * infrun.c (handle_signal_stop): Replace test for
937 TARGET_WAITKIND_STOPPED with an assert.
939 2014-03-02 Doug Evans <xdje42@gmail.com>
941 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
943 2014-03-02 Doug Evans <xdje42@gmail.com>
945 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
947 2014-03-01 Mark Kettenis <kettenis@gnu.org>
949 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
951 2014-03-01 Mark Kettenis <kettenis@gnu.org>
953 * i386obsd-nat.c: Include "obsd-nat.h".
954 (_initialize_i386obsd_nat): Call obsd_add_target instead of
956 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
958 2014-03-01 Mark Kettenis <kettenis@gnu.org>
960 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
962 2014-03-01 Mark Kettenis <kettenis@gnu.org>
964 * mips64obsd-nat.c: Include "obsd-nath".
965 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
967 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
969 2014-03-01 Mark Kettenis <kettenis@gnu.org>
971 * amd64obsd-nat.c: Include "obsd-nat,h.
972 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
974 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
976 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
978 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
979 (find_overload_match): Update call to find_oload_champ.
980 (find_oload_champ_namespace_loop): Likewise
982 2014-02-28 Mark Kettenis <kettenis@gnu.org>
984 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
986 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
987 * config/sparc/obsd64.mh: New file.
988 * sparc64obsd-nat.c: New file.
990 * obsd-nat.h: New file.
991 * obsd-nat.c: New file.
992 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
993 (ALLDEPFILES): Add obsd-nat.c.
995 2014-02-28 Tom Tromey <tromey@redhat.com>
997 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
998 * cli-out.h (cli_ui_out_impl): Now const.
999 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
1000 * ui-out.c (struct ui_out) <impl>: Now const.
1001 (default_ui_out_impl): Now const.
1002 (ui_out_new): Make 'impl' parameter const.
1003 * ui-out.h (ui_out_new): Update.
1005 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1007 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
1009 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1011 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
1013 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1015 Additional PR 8882 fix.
1016 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
1018 2014-02-27 Pedro Alves <palves@redhat.com>
1020 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
1023 2014-02-27 Pedro Alves <palves@redhat.com>
1026 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
1027 * nat/linux-waitpid.c: Include string.h.
1028 (status_to_str): Moved here and made extern.
1029 * nat/linux-waitpid.h (status_to_str): New declaration.
1031 2014-02-27 Hui Zhu <hui@codesourcery.com>
1034 * infrun.c (ptid_match): Move ...
1035 * common/ptid.c (ptid_match): ... here.
1036 * inferior.h (ptid_match): Move ...
1037 * common/ptid.h (ptid_match): ... here.
1039 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1041 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
1042 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
1045 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1047 * obsd-tdep.c (obsd_auxv_parse): New function.
1048 (obsd_init_abi): Set auxv_parse.
1050 * gdbarch.sh (auxv_parse): New.
1051 * gdbarch.h: Regenerated.
1052 * gdbarch.c: Regenerated.
1053 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
1055 2014-02-26 Ludovic Courtès <ludo@gnu.org>
1057 * guile/scm-value.c (gdbscm_history_append_x): New function.
1058 (value_functions): Add it.
1060 2014-02-27 Joel Brobecker <brobecker@adacore.com>
1062 * dwarf2read.c (attr_value_as_address): New function.
1063 (dwarf2_find_base_address, read_call_site_scope): Use
1064 attr_value_as_address in place of DW_ADDR.
1065 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
1066 the low and high addresses. Slight rework of the handling
1067 of the high pc being a constant form, and limit it to
1068 DWARF verson 4 or higher.
1069 (dwarf2_record_block_ranges): Likewise.
1070 (read_partial_die): Likewise.
1071 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
1073 2014-02-26 Tom Tromey <tromey@redhat.com>
1075 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
1077 2014-02-26 Tom Tromey <tromey@redhat.com>
1079 * elfread.c (elf_read_minimal_symbols): Return early if
1080 minimal symbols have already been read. Add "ei" parameter.
1081 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
1082 * minsyms.c (prim_record_minimal_symbol_full): Update.
1083 * objfiles.h (struct objstats) <n_minsyms>: Move...
1084 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
1085 * symmisc.c (print_objfile_statistics): Update.
1087 2014-02-26 Tom Tromey <tromey@redhat.com>
1089 * elfread.c (elf_read_minimal_symbols): New function, from
1091 (elf_symfile_read): Call it.
1093 2014-02-26 Tom Tromey <tromey@redhat.com>
1095 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
1096 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
1097 (lookup_minimal_symbol_solib_trampoline)
1098 (lookup_minimal_symbol_by_pc_section_1)
1099 (lookup_minimal_symbol_and_objfile): Update.
1100 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
1101 Don't allocate a minimal symbol if minsyms have already been read.
1102 (build_minimal_symbol_hash_tables): Update.
1103 (install_minimal_symbols): Do nothing if minsyms already read.
1104 Use the per-BFD obstack.
1105 (terminate_minimal_symbol_table): Use the per-BFD obstack.
1106 * objfiles.c (allocate_objfile): Call
1107 terminate_minimal_symbol_table later.
1108 (have_minimal_symbols): Update.
1109 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
1110 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
1111 Move from struct objfile.
1112 <minsyms_read>: New field.
1113 (struct objfile) <msymbols, minimal_symbol_count,
1114 msymbol_hash, msymbol_demangled_hash>: Move.
1115 (ALL_OBJFILE_MSYMBOLS): Update.
1116 * symfile.c (read_symbols): Set minsyms_read.
1117 (reread_symbols): Update.
1118 * symmisc.c (dump_objfile, dump_msymbols): Update.
1120 2014-02-26 Tom Tromey <tromey@redhat.com>
1122 * minsyms.c (msymbols_sort): Remove.
1123 * minsyms.h (msymbols_sort): Remove.
1124 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
1125 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
1126 * elfread.c (elf_symtab_read): Don't add section offsets.
1127 * xcoffread.c (record_minimal_symbol): Don't add section offset
1128 to minimal symbol address.
1129 * somread.c (text_offset, data_offset): Remove.
1130 (som_symtab_read): Don't add section offsets to minimal symbol
1132 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
1133 Don't add section offsets to minimal symbols.
1134 * coffread.c (coff_symtab_read): Don't add section offsets
1135 to minimal symbol addresses.
1136 * machoread.c (macho_symtab_add_minsym): Don't add section offset
1137 to minimal symbol addresses.
1138 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
1139 section offset to minimal symbol addresses.
1140 * mdebugread.c (parse_partial_symbols): Don't add section
1141 offset to minimal symbol addresses.
1142 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
1143 offset to minimal symbol addresses.
1145 2014-02-26 Tom Tromey <tromey@redhat.com>
1147 * ada-lang.c (ada_main_name): Update.
1148 (ada_add_standard_exceptions): Update.
1149 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
1150 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
1151 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
1152 * auxv.c (ld_so_xfer_auxv): Update.
1153 * avr-tdep.c (avr_scan_prologue): Update.
1154 * ax-gdb.c (gen_var_ref): Update.
1155 * blockframe.c (get_pc_function_start)
1156 (find_pc_partial_function_gnu_ifunc): Update.
1157 * breakpoint.c (create_overlay_event_breakpoint)
1158 (create_longjmp_master_breakpoint)
1159 (create_std_terminate_master_breakpoint)
1160 (create_exception_master_breakpoint): Update.
1161 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
1162 * c-valprint.c (c_val_print): Update.
1163 * coff-pe-read.c (add_pe_forwarded_sym): Update.
1164 * common/agent.c (agent_look_up_symbols): Update.
1165 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
1166 * dwarf2loc.c (call_site_to_target_addr): Update.
1167 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
1168 * elfread.c (elf_gnu_ifunc_record_cache)
1169 (elf_gnu_ifunc_resolve_by_got): Update.
1170 * findvar.c (default_read_var_value): Update.
1171 * frame.c (inside_main_func): Update.
1172 * frv-tdep.c (frv_frame_this_id): Update.
1173 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
1174 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
1176 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
1177 (hppa_hpux_find_dummy_bpaddr): Update.
1178 * hppa-tdep.c (hppa_symbol_address): Update.
1179 * infcmd.c (until_next_command): Update.
1180 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
1182 * linespec.c (minsym_found, add_minsym): Update.
1183 * linux-nat.c (get_signo): Update.
1184 * linux-thread-db.c (inferior_has_bug): Update.
1185 * m32c-tdep.c (m32c_return_value)
1186 (m32c_m16c_address_to_pointer): Update.
1187 * m32r-tdep.c (m32r_frame_this_id): Update.
1188 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
1189 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
1190 * maint.c (maintenance_translate_address): Update.
1191 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
1192 (frob_address): New function.
1193 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
1194 frob_address. Rename parameter to "pc_in".
1195 (compare_minimal_symbols, compact_minimal_symbols): Use raw
1197 (find_solib_trampoline_target, minimal_symbol_upper_bound):
1199 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
1200 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
1201 * objc-lang.c (find_objc_msgsend): Update.
1202 * objfiles.c (objfile_relocate1): Update.
1203 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
1204 * p-valprint.c (pascal_val_print): Update.
1205 * parse.c (write_exp_msymbol): Update.
1206 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
1207 (ppc_elfv2_skip_entrypoint): Update.
1208 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1209 * printcmd.c (build_address_symbolic, msym_info)
1210 (address_info): Update.
1211 * proc-service.c (ps_pglobal_lookup): Update.
1212 * psymtab.c (find_pc_sect_psymtab_closer)
1213 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
1214 Change msymbol parameter to bound_minimal_symbol.
1215 * ravenscar-thread.c (get_running_thread_id): Update.
1216 * remote.c (remote_check_symbols): Update.
1217 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
1219 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
1220 * solib-dsbt.c (lm_base): Update.
1221 * solib-frv.c (lm_base, main_got): Update.
1222 * solib-irix.c (locate_base): Update.
1223 * solib-som.c (som_solib_create_inferior_hook)
1224 (link_map_start): Update.
1225 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
1226 * solib-svr4.c (elf_locate_base, enable_break): Update.
1227 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
1228 (flush_ea_cache): Update.
1229 * stabsread.c (define_symbol, scan_file_globals): Update.
1230 * stack.c (find_frame_funname): Update.
1231 * symfile-debug.c (debug_qf_expand_symtabs_matching)
1232 (debug_qf_find_pc_sect_symtab): Update.
1233 * symfile.c (simple_read_overlay_table)
1234 (simple_overlay_update): Update.
1235 * symfile.h (struct quick_symbol_functions)
1236 <find_pc_sect_symtab>: Change type of msymbol to
1237 bound_minimal_symbol.
1238 * symmisc.c (dump_msymbols): Update.
1239 * symtab.c (find_pc_sect_symtab_via_partial)
1240 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
1241 (search_symbols, print_msymbol_info): Update.
1242 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
1243 (MSYMBOL_VALUE_ADDRESS): Redefine.
1244 (BMSYMBOL_VALUE_ADDRESS): New macro.
1245 * tracepoint.c (scope_info): Update.
1246 * tui/tui-disasm.c (tui_find_disassembly_address)
1247 (tui_get_begin_asm_address): Update.
1248 * valops.c (find_function_in_inferior): Update.
1249 * value.c (value_static_field, value_fn_field): Update.
1251 2014-02-26 Tom Tromey <tromey@redhat.com>
1253 * ada-lang.c (ada_update_initial_language): Update.
1254 (ada_main_name, ada_has_this_exception_support): Update.
1255 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
1256 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
1257 * arm-tdep.c (arm_skip_stub): Update.
1258 * auxv.c (ld_so_xfer_auxv): Update.
1259 * avr-tdep.c (avr_scan_prologue): Update.
1260 * ax-gdb.c (gen_var_ref): Update.
1261 * breakpoint.c (struct breakpoint_objfile_data)
1262 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
1263 type to bound_minimal_symbol.
1264 (create_overlay_event_breakpoint)
1265 (create_longjmp_master_breakpoint)
1266 (create_std_terminate_master_breakpoint)
1267 (create_exception_master_breakpoint): Update.
1268 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
1269 * c-exp.y (classify_name): Update.
1270 * coffread.c (coff_symfile_read): Update.
1271 * common/agent.c (agent_look_up_symbols): Update.
1272 * d-lang.c (d_main_name): Update.
1273 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
1274 * dec-thread.c (enable_dec_thread): Update.
1275 * dwarf2loc.c (call_site_to_target_addr): Update.
1276 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
1277 * eval.c (evaluate_subexp_standard): Update.
1278 * findvar.c (struct minsym_lookup_data) <result>: Change type
1279 to bound_minimal_symbol.
1281 (minsym_lookup_iterator_cb, default_read_var_value): Update.
1282 * frame.c (inside_main_func): Update.
1283 * frv-tdep.c (frv_frame_this_id): Update.
1284 * gcore.c (call_target_sbrk): Update.
1285 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
1286 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
1288 * go-lang.c (go_main_name): Update.
1289 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
1290 (hppa_hpux_find_import_stub_for_addr): Update.
1291 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
1292 Update. Change return type.
1293 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
1295 * jit.c (jit_breakpoint_re_set_internal): Update.
1296 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
1298 * linux-nat.c (get_signo): Update.
1299 * linux-thread-db.c (inferior_has_bug): Update
1300 * m32c-tdep.c (m32c_return_value)
1301 (m32c_m16c_address_to_pointer): Update.
1302 * m32r-tdep.c (m32r_frame_this_id): Update.
1303 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
1304 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
1305 * minsyms.c (lookup_minimal_symbol_internal): Rename to
1306 lookup_minimal_symbol. Change return type.
1307 (lookup_minimal_symbol): Remove.
1308 (lookup_bound_minimal_symbol): Update.
1309 (lookup_minimal_symbol_text): Change return type.
1310 (lookup_minimal_symbol_solib_trampoline): Change return type.
1311 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
1312 (lookup_minimal_symbol_solib_trampoline): Change return type.
1313 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
1314 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1315 (value_nsstring, find_imps): Update.
1316 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
1317 * p-lang.c (pascal_main_name): Update.
1318 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
1319 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1320 * proc-service.c (ps_pglobal_lookup): Update.
1321 * ravenscar-thread.c (get_running_thread_msymbol): Change
1323 (has_ravenscar_runtime, get_running_thread_id): Update.
1324 * remote.c (remote_check_symbols): Update.
1325 * sol-thread.c (ps_pglobal_lookup): Update.
1326 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
1327 * solib-dsbt.c (lm_base): Update.
1328 * solib-frv.c (lm_base, frv_relocate_section_addresses):
1330 * solib-irix.c (locate_base): Update.
1331 * solib-som.c (som_solib_create_inferior_hook)
1332 (som_solib_desire_dynamic_linker_symbols, link_map_start):
1334 * solib-spu.c (spu_enable_break): Update.
1335 * solib-svr4.c (elf_locate_base, enable_break): Update.
1336 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
1337 (flush_ea_cache): Update.
1338 * stabsread.c (define_symbol): Update.
1339 * symfile.c (simple_read_overlay_table): Update.
1340 * symtab.c (find_pc_sect_line): Update.
1341 * tracepoint.c (scope_info): Update.
1342 * tui-disasm.c (tui_get_begin_asm_address): Update.
1343 * value.c (value_static_field): Update.
1345 2014-02-26 Tom Tromey <tromey@redhat.com>
1347 * minsyms.c (prim_record_minimal_symbol_full): Use
1348 SET_MSYMBOL_VALUE_ADDRESS.
1349 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
1350 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
1351 SET_MSYMBOL_VALUE_ADDRESS.
1352 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
1353 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
1355 2014-02-26 Tom Tromey <tromey@redhat.com>
1357 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
1358 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
1359 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
1360 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
1361 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
1362 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
1363 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
1364 * ada-lang.c (ada_main_name): Update.
1365 (ada_lookup_simple_minsym): Update.
1366 (ada_make_symbol_completion_list): Update.
1367 (ada_add_standard_exceptions): Update.
1368 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
1369 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
1370 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1371 * arm-tdep.c (skip_prologue_function): Update.
1372 (arm_skip_stack_protector, arm_skip_stub): Update.
1373 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1374 (arm_wince_skip_main_prologue): Update.
1375 * auxv.c (ld_so_xfer_auxv): Update.
1376 * avr-tdep.c (avr_scan_prologue): Update.
1377 * ax-gdb.c (gen_var_ref): Update.
1378 * block.c (call_site_for_pc): Update.
1379 * blockframe.c (get_pc_function_start): Update.
1380 (find_pc_partial_function_gnu_ifunc): Update.
1381 * breakpoint.c (create_overlay_event_breakpoint): Update.
1382 (create_longjmp_master_breakpoint): Update.
1383 (create_std_terminate_master_breakpoint): Update.
1384 (create_exception_master_breakpoint): Update.
1385 (resolve_sal_pc): Update.
1386 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
1387 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
1389 * c-valprint.c (c_val_print): Update.
1390 * coff-pe-read.c (add_pe_forwarded_sym): Update.
1391 * coffread.c (coff_symfile_read): Update.
1392 * common/agent.c (agent_look_up_symbols): Update.
1393 * dbxread.c (find_stab_function_addr): Update.
1394 (end_psymtab): Update.
1395 * dwarf2loc.c (call_site_to_target_addr): Update.
1396 (func_verify_no_selftailcall): Update.
1397 (tailcall_dump): Update.
1398 (call_site_find_chain_1): Update.
1399 (dwarf_expr_reg_to_entry_parameter): Update.
1400 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1401 (elf_gnu_ifunc_resolve_by_got): Update.
1402 * f-valprint.c (info_common_command): Update.
1403 * findvar.c (read_var_value): Update.
1404 * frame.c (get_prev_frame_1): Update.
1405 (inside_main_func): Update.
1406 * frv-tdep.c (frv_skip_main_prologue): Update.
1407 (frv_frame_this_id): Update.
1408 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
1409 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1410 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1411 (gnuv3_skip_trampoline): Update.
1412 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
1413 (hppa64_hpux_in_solib_call_trampoline): Update.
1414 (hppa_hpux_skip_trampoline_code): Update.
1415 (hppa64_hpux_search_dummy_call_sequence): Update.
1416 (hppa_hpux_find_import_stub_for_addr): Update.
1417 (hppa_hpux_find_dummy_bpaddr): Update.
1418 * hppa-tdep.c (hppa_symbol_address)
1419 (hppa_lookup_stub_minimal_symbol): Update.
1420 * i386-tdep.c (i386_skip_main_prologue): Update.
1421 (i386_pe_skip_trampoline_code): Update.
1422 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1423 * infcall.c (get_function_name): Update.
1424 * infcmd.c (until_next_command): Update.
1425 * jit.c (jit_breakpoint_re_set_internal): Update.
1426 (jit_inferior_init): Update.
1427 * linespec.c (minsym_found): Update.
1428 (add_minsym): Update.
1429 * linux-fork.c (info_checkpoints_command): Update.
1430 * linux-nat.c (get_signo): Update.
1431 * linux-thread-db.c (inferior_has_bug): Update.
1432 * m32c-tdep.c (m32c_return_value): Update.
1433 (m32c_m16c_address_to_pointer): Update.
1434 (m32c_m16c_pointer_to_address): Update.
1435 * m32r-tdep.c (m32r_frame_this_id): Update.
1436 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
1437 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
1438 * maint.c (maintenance_translate_address): Update.
1439 * minsyms.c (add_minsym_to_hash_table): Update.
1440 (add_minsym_to_demangled_hash_table): Update.
1441 (msymbol_objfile): Update.
1442 (lookup_minimal_symbol): Update.
1443 (iterate_over_minimal_symbols): Update.
1444 (lookup_minimal_symbol_text): Update.
1445 (lookup_minimal_symbol_by_pc_name): Update.
1446 (lookup_minimal_symbol_solib_trampoline): Update.
1447 (lookup_minimal_symbol_by_pc_section_1): Update.
1448 (lookup_minimal_symbol_and_objfile): Update.
1449 (prim_record_minimal_symbol_full): Update.
1450 (compare_minimal_symbols): Update.
1451 (compact_minimal_symbols): Update.
1452 (build_minimal_symbol_hash_tables): Update.
1453 (install_minimal_symbols): Update.
1454 (terminate_minimal_symbol_table): Update.
1455 (find_solib_trampoline_target): Update.
1456 (minimal_symbol_upper_bound): Update.
1457 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
1458 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1459 (mips_skip_pic_trampoline_code): Update.
1460 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1461 * objc-lang.c (selectors_info): Update.
1462 (classes_info): Update.
1463 (find_methods): Update.
1464 (find_imps): Update.
1465 (find_objc_msgsend): Update.
1466 * objfiles.c (objfile_relocate1): Update.
1467 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
1468 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
1469 * p-valprint.c (pascal_val_print): Update.
1470 * parse.c (write_exp_msymbol): Update.
1471 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
1472 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
1473 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1474 * printcmd.c (build_address_symbolic): Update.
1476 (address_info): Update.
1477 * proc-service.c (ps_pglobal_lookup): Update.
1478 * psymtab.c (find_pc_sect_psymtab_closer): Update.
1479 (find_pc_sect_psymtab): Update.
1480 * python/py-framefilter.c (py_print_frame): Update.
1481 * ravenscar-thread.c (get_running_thread_id): Update.
1482 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
1484 * remote.c (remote_check_symbols): Update.
1485 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1486 (rs6000_skip_trampoline_code): Update.
1487 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
1488 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
1489 * solib-dsbt.c (lm_base): Update.
1490 * solib-frv.c (lm_base): Update.
1492 * solib-irix.c (locate_base): Update.
1493 * solib-som.c (som_solib_create_inferior_hook): Update.
1494 (som_solib_desire_dynamic_linker_symbols): Update.
1495 (link_map_start): Update.
1496 * solib-spu.c (spu_enable_break): Update.
1497 (ocl_enable_break): Update.
1498 * solib-svr4.c (elf_locate_base): Update.
1499 (enable_break): Update.
1500 * spu-tdep.c (spu_get_overlay_table): Update.
1501 (spu_catch_start): Update.
1502 (flush_ea_cache): Update.
1503 * stabsread.c (define_symbol): Update.
1504 (scan_file_globals): Update.
1505 * stack.c (find_frame_funname): Update.
1506 (frame_info): Update.
1507 * symfile.c (simple_read_overlay_table): Update.
1508 (simple_overlay_update): Update.
1509 * symmisc.c (dump_msymbols): Update.
1510 * symtab.c (fixup_section): Update.
1511 (find_pc_sect_line): Update.
1512 (skip_prologue_sal): Update.
1513 (search_symbols): Update.
1514 (print_msymbol_info): Update.
1515 (rbreak_command): Update.
1516 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
1517 (completion_list_objc_symbol): Update.
1518 (default_make_symbol_completion_list_break_on): Update.
1519 * tracepoint.c (scope_info): Update.
1520 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
1521 (tui_get_begin_asm_address): Update.
1522 * valops.c (find_function_in_inferior): Update.
1523 * value.c (value_static_field): Update.
1524 (value_fn_field): Update.
1526 2014-02-26 Tom Tromey <tromey@redhat.com>
1528 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
1529 bound minimal symbols. Move code that knows about minsym
1531 * minsyms.c (minimal_symbol_upper_bound): ... here. New
1533 * minsyms.h (minimal_symbol_upper_bound): Declare.
1534 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
1535 minimal_symbol_upper_bound.
1537 2014-02-27 Joel Brobecker <brobecker@adacore.com>
1539 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
1540 Use the type's name if its basic type does not have a tag.
1542 2014-02-27 Joel Brobecker <brobecker@adacore.com>
1544 * dwarf2read.c (read_subrange_type): Add comment.
1546 2014-02-27 Joel Brobecker <brobecker@adacore.com>
1548 * dwarf2read.c (update_enumeration_type_from_children): New
1549 function, mostly extracted from process_structure_scope.
1550 (read_enumeration_type): Call update_enumeration_type_from_children.
1551 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
1552 and flag_flag_enum fields.
1554 2014-02-26 Pedro Alves <palves@redhat.com>
1556 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
1557 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
1558 to_xfer_partial method.
1560 2014-02-26 Pedro Alves <palves@redhat.com>
1562 * target.c (complete_target_initialization): Don't install
1563 default_xfer_partial as to_xfer_partial hook.
1565 (update_current_target): Don't INHERIT nor de_fault
1566 deprecated_xfer_memory. Delete de_fault macro.
1567 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
1568 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
1569 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
1572 2014-02-26 Pedro Alves <palves@redhat.com>
1574 * go32-nat.c (my_write_child): New function.
1575 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
1576 (go32_xfer_partial): New function.
1577 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
1578 Instead install a to_xfer_partial hook.
1580 2014-02-26 Pedro Alves <palves@redhat.com>
1582 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
1583 to_xfer_partial helper. Rewrite.
1584 (procfs_xfer_partial): New function.
1585 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
1586 Install a to_xfer_partial hook.
1588 2014-02-26 Pedro Alves <palves@redhat.com>
1590 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
1591 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
1592 (m32r_xfer_partial): New function.
1593 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
1594 Install a to_xfer_partial hook.
1596 2014-02-26 Pedro Alves <palves@redhat.com>
1598 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
1600 (mips_xfer_partial): New function.
1601 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
1602 hook. Install a to_xfer_partial hook.
1604 2014-02-26 Joel Brobecker <brobecker@adacore.com>
1606 * gdbtypes.h (create_array_type_with_stride): Add declaration.
1607 * gdbtypes.c (create_array_type_with_stride): New function,
1608 renaming create_array_type, but with an added parameter
1609 called "bit_stride".
1610 (create_array_type): Re-implement using
1611 create_array_type_with_stride.
1612 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
1613 and DW_AT_bit_stride attributes.
1615 2014-02-26 Pedro Alves <palves@redhat.com>
1617 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
1618 task-specific breakpoints.
1620 2014-02-25 Pedro Alves <palves@redhat.com>
1622 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
1623 handling of object == TARGET_OBJECT_UNWIND_TABLE.
1625 2014-02-25 Stan Shebs <stan@codesourcery.com>
1627 * defs.h: Annotate comments for Doxygen.
1629 2014-02-25 Tom Tromey <tromey@redhat.com>
1631 * target.h (target_ignore): Don't declare.
1632 * target.c (target_ignore): Remove.
1634 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1637 * auto-load.c (auto_load_objfile_script_1): Change filename to
1640 2014-02-25 Joel Brobecker <brobecker@adacore.com>
1642 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
1643 documentation. Adjust prototype to match the target_ops
1644 to_xfer_partial method. Adjust implementation accordingly.
1646 2014-02-25 Hui Zhu <hui@codesourcery.com>
1648 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
1651 2014-02-25 Kevin Buettner <kevinb@redhat.com>
1653 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
1654 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
1655 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
1656 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
1657 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
1658 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
1659 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
1660 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
1662 (rl78_register_type): Use a data pointer type for SP and
1663 new pseudo registers mentioned above. Use a 16 bit integer
1664 type for all other register pairs.
1665 (rl78_register_name, rl78_g10_register_name): Update for
1666 new pseudo registers.
1667 (rl78_pseudo_register_read): Likewise.
1668 (rl78_pseudo_register_write): Likewise.
1669 (rl78_dwarf_reg_to_regnum): Return register numbers representing
1670 to the newly added pseudo registers.
1672 2014-02-24 Doug Evans <dje@google.com>
1674 * value.c (record_latest_value): Fix comment.
1675 * printcmd.c (print_command_1): Remove code to handle -1 return from
1676 record_latest_value.
1678 2014-02-24 Pedro Alves <palves@redhat.com>
1680 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
1681 deprecated_xfer_memory hook.
1682 (procfs_xfer_partial): Call procfs_xfer_memory instead
1683 of the deprecated_xfer_memory target hook.
1684 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
1687 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
1689 * windows-nat.c (windows_xfer_shared_libraries): Return
1690 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
1691 requested object is TARGET_OBJECT_LIBRARIES.
1693 2014-02-24 Yao Qi <yao@codesourcery.com>
1695 * target.h (enum target_xfer_status)
1696 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
1697 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
1699 * corefile.c (memory_error_message): User updated.
1700 * exec.c (section_table_read_available_memory): Likewise.
1701 * record-btrace.c (record_btrace_xfer_partial): Likewise.
1702 * target.c (target_xfer_status_to_string): Likewise.
1703 (raw_memory_xfer_partial): Likewise.
1704 (memory_xfer_partial_1, target_xfer_partial): Likewise.
1705 * valops.c (read_value_memory): Likewise.
1706 * exec.h: Update comments.
1708 2014-02-24 Yao Qi <yao@codesourcery.com>
1710 * target.c (target_xfer_status_to_string): Rename argument err
1712 * target.h (target_xfer_status_to_string): Update declaration.
1713 Replace target_xfer_error_to_string with
1714 target_xfer_status_to_string in comment.
1716 2014-02-24 Yao Qi <yao@codesourcery.com>
1718 * mips-linux-nat.c (super_close): Update its type.
1719 (mips_linux_close): Pass 'self' to super_close.
1721 2014-02-24 Yao Qi <yao@codesourcery.com>
1723 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
1724 * corefile.c (read_memory): Adjusted.
1725 * target.c (target_write_with_progress): Adjusted.
1727 2014-02-23 Yao Qi <yao@codesourcery.com>
1731 2013-10-25 Yao Qi <yao@codesourcery.com>
1733 * remote.c (remote_traceframe_info): Return early if
1734 traceframe is not selected.
1736 2013-07-19 Yao Qi <yao@codesourcery.com>
1738 * target.c (update_current_target): Change the default action
1739 of 'to_traceframe_info' from tcomplain to return_zero.
1740 * target.h (struct target_ops) <to_traceframe_info>: Add more
1743 2014-02-23 Yao Qi <yao@codesourcery.com>
1745 * valops.c (read_value_memory): Rewrite it. Call
1746 target_xfer_partial in a loop.
1747 * exec.h (section_table_available_memory): Remove declaration.
1748 Move comments to ...
1749 * exec.c (section_table_available_memory): ... here. Make it
1752 2014-02-23 Yao Qi <yao@codesourcery.com>
1754 * exec.c (section_table_read_available_memory): New function.
1755 * exec.h (section_table_read_available_memory): Declare.
1756 * ctf.c (ctf_xfer_partial): Call
1757 section_table_read_available_memory.
1758 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
1760 2014-02-23 Yao Qi <yao@codesourcery.com>
1762 * ctf.c (ctf_xfer_partial): Move code to ...
1763 * exec.c (exec_read_partial_read_only): ... it. New function.
1764 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
1765 * tracefile.c: Include "exec.h".
1766 * exec.h (exec_read_partial_read_only): Declare.
1768 2014-02-23 Yao Qi <yao@codesourcery.com>
1770 * tracefile-tfile.c (tfile_has_all_memory): Remove.
1771 (tfile_has_memory): Remove.
1772 (init_tfile_ops): Don't set fields to_has_all_memory and
1773 to_has_memory of tfile_ops.
1774 * tracefile.c (tracefile_has_all_memory): New function.
1775 (tracefile_has_memory): New function.
1776 (init_tracefile_ops): Initialize fields to_has_all_memory and
1777 to_has_memory of 'ops'.
1779 2014-02-23 Yao Qi <yao@codesourcery.com>
1781 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
1782 (ctf_thread_alive, ctf_get_trace_status): Remove.
1783 (init_ctf_ops): Don't set some fields of ctf_ops. Call
1785 * tracefile-tfile.c (tfile_get_trace_status): Remove.
1786 (tfile_has_stack, tfile_has_registers): Remove.
1787 (tfile_thread_alive): Remove.
1788 (init_tfile_ops): Don't set some fields of tfile_ops. Call
1790 * tracefile.c (tracefile_has_stack): New function.
1791 (tracefile_has_registers): New function.
1792 (tracefile_thread_alive): New function.
1793 (tracefile_get_trace_status): New function.
1794 (init_tracefile_ops): New function.
1795 * tracefile.h (init_tracefile_ops): Declare.
1797 2014-02-23 Yao Qi <yao@codesourcery.com>
1799 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
1800 (O_LARGEFILE): Likewise.
1801 (tfile_ops): Likewise.
1802 (TRACE_HEADER_SIZE): Likewise.
1803 (trace_fd, trace_frames_offset, cur_offset): Likewise.
1804 (cur_data_size): Likewise.
1805 (tfile_read, tfile_open, tfile_interp_line): Likewise.
1806 (tfile_close, tfile_files_info): Likewise.
1807 (tfile_get_trace_status): Likewise.
1808 (tfile_get_tracepoint_status): Likewise.
1809 (tfile_get_traceframe_address): Likewise.
1810 (tfile_trace_find, match_blocktype): Likewise.
1811 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
1812 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
1813 (tfile_get_trace_state_variable_value): Likewise.
1814 (tfile_has_all_memory, tfile_has_memory): Likewise.
1815 (tfile_has_stack, tfile_has_registers): Likewise.
1816 (tfile_thread_alive, build_traceframe_info): Likewise.
1817 (tfile_traceframe_info, init_tfile_ops): Likewise.
1818 (_initialize_tracepoint): Don't call init_tfile_ops
1819 and add_target_with_completer.
1820 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
1821 exec.h, completer.h and filenames.h.
1822 (_initialize_tracefile_tfile): New function.
1824 2014-02-23 Yao Qi <yao@codesourcery.com>
1826 * Makefile.in (REMOTE_OBS): Append tracefile.o and
1828 (HFILES_NO_SRCDIR): Add tracefile.h.
1829 * ctf.c: Include "tracefile.h".
1830 * tracefile.h: New file.
1831 * tracefile.c: New file
1832 * tracefile-tfile.c: New file.
1833 * tracepoint.c: Include "tracefile.h".
1834 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
1835 (stop_reason_names): Add const.
1836 (trace_file_writer_xfree): Move it to tracefile.c.
1837 (trace_save, trace_save_command, trace_save_tfile): Likewise.
1838 (trace_save_ctf): Likewise.
1839 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
1840 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
1841 (tfile_write_header, tfile_write_regblock_type): Likewise.
1842 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
1843 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
1844 (tfile_write_raw_data, tfile_end): Likewise.
1845 (tfile_trace_file_writer_new): Likewise.
1846 (free_uploaded_tp): Make it extern.
1847 (free_uploaded_tsv): Make it extern.
1848 (_initialize_tracepoint): Move code to register command 'tsave'
1850 * tracepoint.h (stop_reason_names): Declare.
1851 (struct trace_frame_write_ops): Move it to tracefile.h.
1852 (struct trace_file_write_ops): Likewise.
1853 (struct trace_file_writer): Likewise.
1854 (free_uploaded_tsvs, free_uploaded_tps): Declare.
1856 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1859 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
1861 (get_cores_used_by_process): New parameter num_cores, use it.
1862 (linux_xfer_osdata_processes): Pass num_cores to it.
1863 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
1866 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
1868 * target.c (memory_xfer_partial): Fix length arg in call to
1869 breakpoint_xfer_memory.
1871 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
1874 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
1875 number comes after the + or - signs. Adjust length of register
1876 name to be extracted.
1878 2014-02-20 Tom Tromey <tromey@redhat.com>
1880 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
1881 (ada_varobj_ops): Mark "extern".
1883 2014-02-20 Tom Tromey <tromey@redhat.com>
1885 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
1887 2014-02-20 Doug Evans <xdje42@gmail.com>
1889 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
1890 All callers updated.
1891 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
1892 All callers updated.
1893 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
1894 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
1896 2014-02-20 lin zuojian <manjian2006@gmail.com>
1897 Joel Brobecker <brobecker@adacore.com>
1898 Doug Evans <xdje42@gmail.com>
1901 * dwarf2read.c (struct die_info): New member in_process.
1902 (reset_die_in_process): New function.
1903 (process_die): Set it at the start, reset when returning.
1904 (inherit_abstract_dies): Only call process_die if origin_child_die
1905 not already being processed.
1907 2014-02-20 Joel Brobecker <brobecker@adacore.com>
1909 * windows-nat.c (handle_unload_dll): Add function documentation.
1910 (do_initial_windows_stuff): Add comment explaining why we wait
1911 until after inferior initialization has finished before
1912 processing all DLLs.
1914 2014-02-20 Joel Brobecker <brobecker@adacore.com>
1916 * windows-nat.c (get_module_name): Delete.
1917 (windows_get_exec_module_filename): New function, mostly
1918 inspired from get_module_name.
1919 (windows_pid_to_exec_file): Replace call to get_module_name
1920 by call to windows_get_exec_module_filename.
1922 2014-02-20 Joel Brobecker <brobecker@adacore.com>
1924 * windows-nat.c (handle_load_dll): Rewrite this function's
1925 introductory comment. Remove code using get_module_name
1926 to get the DLL's name.
1928 2014-02-20 Joel Brobecker <brobecker@adacore.com>
1930 * windows-nat.c (get_windows_debug_event): Ignore
1931 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
1932 if windows_initialization_done == 0.
1933 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
1934 Adjust implementation to always load all DLLs.
1935 (do_initial_windows_stuff): Replace call to
1936 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
1938 2014-02-20 Joel Brobecker <brobecker@adacore.com>
1940 * windows-nat.c (_initialize_windows_nat): Deprecate the
1941 "dll-symbols" command. Turn the "add-shared-symbol-files"
1942 and "assf" aliases into commands, and deprecate them as well.
1943 * NEWS: Add entry explaining that "dll-symbols" and its two
1944 aliases are now deprecated.
1946 2014-02-20 Joel Brobecker <brobecker@adacore.com>
1948 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
1949 new-line in debug string. Remove trailing spaces.
1951 2014-02-19 Stan Shebs <stan@codesourcery.com>
1953 * darwin-nat.c (darwin_xfer_partial): Fix return type.
1955 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
1957 * NEWS: Add entry for the new feature
1958 * python/py-value.c (valpy_binop): Call value_x_binop for struct
1961 2014-02-19 Stan Shebs <stan@codesourcery.com>
1963 * MAINTAINERS: List Yao Qi as nios2 maintainer.
1965 2014-02-19 Pedro Alves <palves@redhat.com>
1967 * common/ptid.h (struct ptid): Mention that process_stratum
1968 targets should prefer ptid.lwp.
1970 2014-02-19 Pedro Alves <palves@redhat.com>
1972 * remote.c (remote_thread_alive, write_ptid, read_ptid)
1973 (read_ptid, remote_newthread_step, remote_threads_extra_info)
1974 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
1975 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
1976 store remote thread ids rather than ptid.tid.
1977 (_initialize_remote): Adjust.
1979 2014-02-19 Tom Tromey <tromey@redhat.com>
1981 * target.c (target_get_unwinder): Rewrite.
1982 (target_get_tailcall_unwinder): Rewrite.
1983 * record-btrace.c (record_btrace_to_get_unwinder): New function.
1984 (record_btrace_to_get_tailcall_unwinder): New function.
1985 (init_record_btrace_ops): Update.
1986 * target.h (struct target_ops) <to_get_unwinder,
1987 to_get_tailcall_unwinder>: Now function pointers. Use
1988 TARGET_DEFAULT_RETURN.
1990 2014-02-19 Tom Tromey <tromey@redhat.com>
1992 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
1994 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
1996 2014-02-19 Tom Tromey <tromey@redhat.com>
1998 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
2000 * target-delegates.c: Rebuild.
2001 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
2002 TARGET_DEFAULT_FUNC.
2003 * target.c (default_target_decr_pc_after_break): Rename from
2004 forward_target_decr_pc_after_break. Simplify.
2005 (target_decr_pc_after_break): Rely on delegation.
2007 2014-02-19 Tom Tromey <tromey@redhat.com>
2009 * target.c (update_current_target): Do not INHERIT to_doc or
2010 to_magic. Do not de_fault to_open or to_close.
2012 2014-02-19 Tom Tromey <tromey@redhat.com>
2014 * gcore.h (objfile_find_memory_regions): Declare.
2015 * gcore.c (objfile_find_memory_regions): No longer static. Add
2017 (_initialize_gcore): Don't call exec_set_find_memory_regions.
2018 * exec.c: Include gcore.h.
2019 (exec_set_find_memory_regions): Remove.
2020 (exec_find_memory_regions): Remove.
2021 (exec_do_find_memory_regions): Remove.
2022 (init_exec_ops): Update.
2023 * defs.h (exec_set_find_memory_regions): Remove.
2025 2014-02-19 Tom Tromey <tromey@redhat.com>
2027 * target-delegates.c: Rebuild.
2028 * target.h (struct target_ops) <to_extra_thread_info,
2029 to_thread_name, to_pid_to_exec_file, to_get_section_table,
2030 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
2031 not 0, in TARGET_DEFAULT_RETURN.
2033 2014-02-19 Tom Tromey <tromey@redhat.com>
2035 * target.c (complete_target_initialization): Remove casts. Use
2036 return_zero_has_execution.
2037 (return_zero): Add "ignore" argument.
2038 (return_zero_has_execution): New function.
2039 (init_dummy_target): Remove casts. Use
2040 return_zero_has_execution.
2042 2014-02-19 Tom Tromey <tromey@redhat.com>
2044 * target.c (update_current_target): Update comments. Do not
2047 2014-02-19 Tom Tromey <tromey@redhat.com>
2049 * arm-linux-nat.c (arm_linux_read_description): Delegate when
2051 * corelow.c (core_read_description): Delegate when needed.
2052 * remote.c (remote_read_description): Delegate when needed.
2053 * target-delegates.c: Rebuild.
2054 * target.c (target_read_description): Rewrite.
2055 * target.h (struct target_ops) <to_read_description>: Update
2056 comment. Use TARGET_DEFAULT_RETURN.
2058 2014-02-19 Tom Tromey <tromey@redhat.com>
2060 * target-delegates.c: Rebuild.
2061 * target.c (update_current_target): Don't inherit or default
2063 (find_default_run_target): Check against delegate_can_run.
2064 * target.h (struct target_ops) <to_can_run>: Use
2065 TARGET_DEFAULT_RETURN.
2067 2014-02-19 Tom Tromey <tromey@redhat.com>
2069 * target-delegates.c: Rebuild.
2070 * target.c (target_disconnect): Unconditionally delegate.
2071 * target.h (struct target_ops) <to_disconnect>: Use
2072 TARGET_DEFAULT_NORETURN.
2074 2014-02-19 Tom Tromey <tromey@redhat.com>
2076 * record.c (record_stop): Unconditionally delegate.
2077 * target-delegates.c: Rebuild.
2078 * target.c (target_stop_recording): Unconditionally delegate.
2079 * target.h (struct target_ops) <to_stop_recording>: Use
2080 TARGET_DEFAULT_IGNORE.
2082 2014-02-19 Tom Tromey <tromey@redhat.com>
2084 * target-delegates.c: Rebuild.
2085 * target.c (target_enable_btrace): Unconditionally delegate.
2086 * target.h (struct target_ops) <to_enable_btrace>: Use
2087 TARGET_DEFAULT_NORETURN.
2089 2014-02-19 Tom Tromey <tromey@redhat.com>
2091 * target-delegates.c: Rebuild.
2092 * target.c (target_read_btrace): Unconditionally delegate.
2093 * target.h (struct target_ops) <to_read_btrace>: Use
2094 TARGET_DEFAULT_NORETURN.
2096 2014-02-19 Tom Tromey <tromey@redhat.com>
2098 * target-delegates.c: Rebuild.
2099 * target.c (target_teardown_btrace): Unconditionally delegate.
2100 * target.h (struct target_ops) <to_teardown_btrace>: Use
2101 TARGET_DEFAULT_NORETURN.
2103 2014-02-19 Tom Tromey <tromey@redhat.com>
2105 * target-delegates.c: Rebuild.
2106 * target.c (target_disable_btrace): Unconditionally delegate.
2107 * target.h (struct target_ops) <to_disable_btrace>: Use
2108 TARGET_DEFAULT_NORETURN.
2110 2014-02-19 Tom Tromey <tromey@redhat.com>
2112 * target-delegates.c: Rebuild.
2113 * target.c (default_search_memory): New function.
2114 (simple_search_memory): Update comment.
2115 (target_search_memory): Unconditionally delegate.
2116 * target.h (struct target_ops) <to_search_memory>: Use
2117 TARGET_DEFAULT_FUNC.
2119 2014-02-19 Tom Tromey <tromey@redhat.com>
2121 * auxv.c (default_auxv_parse): No longer static.
2122 (target_auxv_parse): Unconditionally delegate.
2123 * auxv.h (default_auxv_parse): Declare.
2124 * target-delegates.c: Rebuild.
2125 * target.c: Include auxv.h.
2126 * target.h (struct target_ops) <to_auxv_parse>: Use
2127 TARGET_DEFAULT_FUNC.
2129 2014-02-19 Tom Tromey <tromey@redhat.com>
2131 * target-delegates.c: Rebuild.
2132 * target.c (target_memory_map): Unconditionally delegate.
2133 * target.h (struct target_ops) <to_memory_map>: Use
2134 TARGET_DEFAULT_RETURN.
2136 2014-02-19 Tom Tromey <tromey@redhat.com>
2138 * target-delegates.c: Rebuild.
2139 * target.c (target_thread_alive): Unconditionally delegate.
2140 * target.h (struct target_ops) <to_thread_alive>: Use
2141 TARGET_DEFAULT_RETURN.
2143 2014-02-19 Tom Tromey <tromey@redhat.com>
2145 * target-delegates.c: Rebuild.
2146 * target.c (target_save_record): Unconditionally delegate.
2147 * target.h (struct target_ops) <to_save_record>: Use
2148 TARGET_DEFAULT_NORETURN.
2150 2014-02-19 Tom Tromey <tromey@redhat.com>
2152 * target-delegates.c: Rebuild.
2153 * target.c (target_delete_record): Unconditionally delegate.
2154 * target.h (struct target_ops) <to_delete_record>: Use
2155 TARGET_DEFAULT_NORETURN.
2157 2014-02-19 Tom Tromey <tromey@redhat.com>
2159 * target-delegates.c: Rebuild.
2160 * target.c (target_record_is_replaying): Unconditionally
2162 * target.h (struct target_ops) <to_record_is_replaying>: Use
2163 TARGET_DEFAULT_RETURN.
2165 2014-02-19 Tom Tromey <tromey@redhat.com>
2167 * target-delegates.c: Rebuild.
2168 * target.c (target_goto_record_begin): Unconditionally delegate.
2169 * target.h (struct target_ops) <to_goto_record_begin>: Use
2170 TARGET_DEFAULT_NORETURN.
2172 2014-02-19 Tom Tromey <tromey@redhat.com>
2174 * target-delegates.c: Rebuild.
2175 * target.c (target_goto_record_end): Unconditionally delegate.
2176 * target.h (struct target_ops) <to_goto_record_end>: Use
2177 TARGET_DEFAULT_NORETURN.
2179 2014-02-19 Tom Tromey <tromey@redhat.com>
2181 * target-delegates.c: Rebuild.
2182 * target.c (target_goto_record): Unconditionally delegate.
2183 * target.h (struct target_ops) <to_goto_record>: Use
2184 TARGET_DEFAULT_NORETURN.
2186 2014-02-19 Tom Tromey <tromey@redhat.com>
2188 * target-delegates.c: Rebuild.
2189 * target.c (target_insn_history): Unconditionally delegate.
2190 * target.h (struct target_ops) <to_insn_history>: Use
2191 TARGET_DEFAULT_NORETURN.
2193 2014-02-19 Tom Tromey <tromey@redhat.com>
2195 * target-delegates.c: Rebuild.
2196 * target.c (target_insn_history_from): Unconditionally delegate.
2197 * target.h (struct target_ops) <to_insn_history_from>: Use
2198 TARGET_DEFAULT_NORETURN.
2200 2014-02-19 Tom Tromey <tromey@redhat.com>
2202 * target-delegates.c: Rebuild.
2203 * target.c (target_insn_history_range): Unconditionally delegate.
2204 * target.h (struct target_ops) <to_insn_history_range>: Use
2205 TARGET_DEFAULT_NORETURN.
2207 2014-02-19 Tom Tromey <tromey@redhat.com>
2209 * target-delegates.c: Rebuild.
2210 * target.c (target_call_history): Unconditionally delegate.
2211 * target.h (struct target_ops) <to_call_history>: Use
2212 TARGET_DEFAULT_NORETURN.
2214 2014-02-19 Tom Tromey <tromey@redhat.com>
2216 * target-delegates.c: Rebuild.
2217 * target.c (target_call_history_from): Unconditionally delegate.
2218 * target.h (struct target_ops) <to_call_history_from>: Use
2219 TARGET_DEFAULT_NORETURN.
2221 2014-02-19 Tom Tromey <tromey@redhat.com>
2223 * target-delegates.c: Rebuild.
2224 * target.c (target_call_history_range): Unconditionally delegate.
2225 * target.h (struct target_ops) <to_call_history_range>: Use
2226 TARGET_DEFAULT_NORETURN.
2228 2014-02-19 Tom Tromey <tromey@redhat.com>
2230 * target-delegates.c: Rebuild.
2231 * target.c (target_verify_memory): Unconditionally delegate.
2232 * target.h (struct target_ops) <to_verify_memory>: Use
2233 TARGET_DEFAULT_NORETURN.
2235 2014-02-19 Tom Tromey <tromey@redhat.com>
2237 * target-delegates.c: Rebuild.
2238 * target.c (target_core_of_thread): Unconditionally delegate.
2239 * target.h (struct target_ops) <to_core_of_thread>: Use
2240 TARGET_DEFAULT_RETURN.
2242 2014-02-19 Tom Tromey <tromey@redhat.com>
2244 * target-delegates.c: Rebuild.
2245 * target.c (target_flash_done): Unconditionally delegate.
2246 * target.h (struct target_ops) <to_flash_done>: Use
2247 TARGET_DEFAULT_NORETURN.
2249 2014-02-19 Tom Tromey <tromey@redhat.com>
2251 * target-delegates.c: Rebuild.
2252 * target.c (target_flash_erase): Unconditionally delegate.
2253 * target.h (struct target_ops) <to_flash_erase>: Use
2254 TARGET_DEFAULT_NORETURN.
2256 2014-02-19 Tom Tromey <tromey@redhat.com>
2258 * target-delegates.c: Rebuild.
2259 * target.c (target_get_section_table): Unconditionally delegate.
2260 * target.h (struct target_ops) <to_get_section_table>: Use
2261 TARGET_DEFAULT_RETURN.
2263 2014-02-19 Tom Tromey <tromey@redhat.com>
2265 * target-delegates.c: Rebuild.
2266 * target.c (target_pid_to_str): Unconditionally delegate.
2267 (init_dummy_target): Don't initialize to_pid_to_str.
2268 (default_pid_to_str): Rename from dummy_pid_to_str.
2269 * target.h (struct target_ops) <to_pid_to_str>: Use
2270 TARGET_DEFAULT_FUNC.
2272 2014-02-19 Tom Tromey <tromey@redhat.com>
2274 * target-delegates.c: Rebuild.
2275 * target.c (target_find_new_threads): Unconditionally delegate.
2276 * target.h (struct target_ops) <to_find_new_threads>: Use
2277 TARGET_DEFAULT_RETURN.
2279 2014-02-19 Tom Tromey <tromey@redhat.com>
2281 * target-delegates.c: Rebuild.
2282 * target.c (target_program_signals): Unconditionally delegate.
2283 * target.h (struct target_ops) <to_program_signals>: Use
2284 TARGET_DEFAULT_IGNORE.
2286 2014-02-19 Tom Tromey <tromey@redhat.com>
2288 * target-delegates.c: Rebuild.
2289 * target.c (target_pass_signals): Unconditionally delegate.
2290 * target.h (struct target_ops) <to_pass_signals>: Use
2291 TARGET_DEFAULT_IGNORE.
2293 2014-02-19 Tom Tromey <tromey@redhat.com>
2295 * target-delegates.c: Rebuild.
2296 * target.c (default_mourn_inferior): New function.
2297 (target_mourn_inferior): Unconditionally delegate.
2298 * target.h (struct target_ops) <to_mourn_inferior>: Use
2299 TARGET_DEFAULT_FUNC.
2301 2014-02-19 Tom Tromey <tromey@redhat.com>
2303 * target-delegates.c: Rebuild.
2304 * target.c (default_follow_fork): New function.
2305 (target_follow_fork): Unconditionally delegate.
2306 * target.h (struct target_ops) <to_follow_fork>: Use
2307 TARGET_DEFAULT_FUNC.
2309 2014-02-19 Tom Tromey <tromey@redhat.com>
2311 * target-delegates.c: Rebuild.
2312 * target.c (target_kill): Unconditionally delegate.
2313 * target.h (struct target_ops) <to_kill>: Use
2314 TARGET_DEFAULT_NORETURN.
2316 2014-02-19 Tom Tromey <tromey@redhat.com>
2318 * target-delegates.c: Rebuild.
2319 * target.c (target_masked_watch_num_registers): Unconditionally
2321 * target.h (struct target_ops) <to_masked_watch_num_registers>:
2322 Use TARGET_DEFAULT_RETURN.
2324 2014-02-19 Tom Tromey <tromey@redhat.com>
2326 * target-delegates.c: Rebuild.
2327 * target.c (target_remove_mask_watchpoint): Unconditionally
2329 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
2330 TARGET_DEFAULT_RETURN.
2332 2014-02-19 Tom Tromey <tromey@redhat.com>
2334 * target-delegates.c: Rebuild.
2335 * target.c (target_insert_mask_watchpoint): Unconditionally
2337 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
2338 TARGET_DEFAULT_RETURN.
2340 2014-02-19 Tom Tromey <tromey@redhat.com>
2342 * target-delegates.c: Rebuild.
2343 * target.c (target_ranged_break_num_registers): Unconditionally
2345 * target.h (struct target_ops) <to_ranged_break_num_registers>:
2346 Use TARGET_DEFAULT_RETURN.
2348 2014-02-19 Tom Tromey <tromey@redhat.com>
2350 * target-delegates.c: Rebuild.
2351 * target.c (target_fetch_registers): Unconditionally delegate.
2352 * target.h (struct target_ops) <to_fetch_registers>: Use
2353 TARGET_DEFAULT_NORETURN.
2355 2014-02-19 Tom Tromey <tromey@redhat.com>
2357 * target-delegates.c: Rebuild.
2358 * target.c (update_current_target): Don't inherit or default
2360 * target.h (struct target_ops) <to_stop>: Use
2361 TARGET_DEFAULT_IGNORE.
2363 2014-02-19 Tom Tromey <tromey@redhat.com>
2365 * target-delegates.c: Rebuild.
2366 * target.c (update_current_target): Don't inherit or default
2367 to_can_run_breakpoint_commands.
2368 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
2369 Use TARGET_DEFAULT_RETURN.
2371 2014-02-19 Tom Tromey <tromey@redhat.com>
2373 * target-delegates.c: Rebuild.
2374 * target.c (update_current_target): Don't inherit or default
2375 to_supports_evaluation_of_breakpoint_conditions.
2376 * target.h (struct target_ops)
2377 <to_supports_evaluation_of_breakpoint_conditions>: Use
2378 TARGET_DEFAULT_RETURN.
2380 2014-02-19 Tom Tromey <tromey@redhat.com>
2382 * target-delegates.c: Rebuild.
2383 * target.c (update_current_target): Don't inherit or default
2384 to_augmented_libraries_svr4_read.
2385 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
2386 Use TARGET_DEFAULT_RETURN.
2388 2014-02-19 Tom Tromey <tromey@redhat.com>
2390 * target-delegates.c: Rebuild.
2391 * target.c (update_current_target): Don't inherit or default
2393 * target.h (struct target_ops) <to_can_use_agent>: Use
2394 TARGET_DEFAULT_RETURN.
2396 2014-02-19 Tom Tromey <tromey@redhat.com>
2398 * target-delegates.c: Rebuild.
2399 * target.c (update_current_target): Don't inherit or default
2401 * target.h (struct target_ops) <to_use_agent>: Use
2402 TARGET_DEFAULT_NORETURN.
2404 2014-02-19 Tom Tromey <tromey@redhat.com>
2406 * target-delegates.c: Rebuild.
2407 * target.c (update_current_target): Don't inherit or default
2409 (return_null): Remove.
2410 * target.h (struct target_ops) <to_traceframe_info>: Use
2411 TARGET_DEFAULT_RETURN.
2413 2014-02-19 Tom Tromey <tromey@redhat.com>
2415 * target-delegates.c: Rebuild.
2416 * target.c (update_current_target): Don't inherit or default
2417 to_static_tracepoint_markers_by_strid.
2418 * target.h (struct target_ops)
2419 <to_static_tracepoint_markers_by_strid>: Use
2420 TARGET_DEFAULT_NORETURN.
2422 2014-02-19 Tom Tromey <tromey@redhat.com>
2424 * target-delegates.c: Rebuild.
2425 * target.c (update_current_target): Don't inherit or default
2426 to_static_tracepoint_marker_at.
2427 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
2428 Use TARGET_DEFAULT_RETURN.
2430 2014-02-19 Tom Tromey <tromey@redhat.com>
2432 * target-delegates.c: Rebuild.
2433 * target.c (update_current_target): Don't inherit or default
2435 * target.h (struct target_ops) <to_set_permissions>: Use
2436 TARGET_DEFAULT_IGNORE.
2438 2014-02-19 Tom Tromey <tromey@redhat.com>
2440 * target-delegates.c: Rebuild.
2441 * target.c (update_current_target): Don't inherit or default
2443 * target.h (struct target_ops) <to_get_tib_address>: Use
2444 TARGET_DEFAULT_NORETURN.
2446 2014-02-19 Tom Tromey <tromey@redhat.com>
2448 * target-delegates.c: Rebuild.
2449 * target.c (update_current_target): Don't inherit or default
2451 * target.h (struct target_ops) <to_set_trace_notes>: Use
2452 TARGET_DEFAULT_RETURN.
2454 2014-02-19 Tom Tromey <tromey@redhat.com>
2456 * target-delegates.c: Rebuild.
2457 * target.c (update_current_target): Don't initialize
2458 to_set_trace_buffer_size.
2459 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
2460 TARGET_DEFAULT_IGNORE.
2462 2014-02-19 Tom Tromey <tromey@redhat.com>
2464 * target-delegates.c: Rebuild.
2465 * target.c (update_current_target): Don't inherit or default
2466 to_set_circular_trace_buffer.
2467 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
2468 TARGET_DEFAULT_IGNORE.
2470 2014-02-19 Tom Tromey <tromey@redhat.com>
2472 * target-delegates.c: Rebuild.
2473 * target.c (update_current_target): Don't inherit or default
2474 to_set_disconnected_tracing.
2475 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
2476 TARGET_DEFAULT_IGNORE.
2478 2014-02-19 Tom Tromey <tromey@redhat.com>
2480 * target-delegates.c: Rebuild.
2481 * target.c (update_current_target): Don't inherit or default
2482 to_get_min_fast_tracepoint_insn_len.
2483 (return_minus_one): Remove.
2484 * target.h (struct target_ops)
2485 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
2487 2014-02-19 Tom Tromey <tromey@redhat.com>
2489 * target-delegates.c: Rebuild.
2490 * target.c (update_current_target): Don't inherit or default
2491 to_get_raw_trace_data.
2492 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
2493 TARGET_DEFAULT_NORETURN.
2495 2014-02-19 Tom Tromey <tromey@redhat.com>
2497 * target-delegates.c: Rebuild.
2498 * target.c (update_current_target): Don't inherit or default
2499 to_upload_trace_state_variables.
2500 * target.h (struct target_ops) <to_upload_trace_state_variables>:
2501 Use TARGET_DEFAULT_RETURN.
2503 2014-02-19 Tom Tromey <tromey@redhat.com>
2505 * target-delegates.c: Rebuild.
2506 * target.c (update_current_target): Don't inherit or default
2507 to_upload_tracepoints.
2508 * target.h (struct target_ops) <to_upload_tracepoints>: Use
2509 TARGET_DEFAULT_RETURN.
2511 2014-02-19 Tom Tromey <tromey@redhat.com>
2513 * target-delegates.c: Rebuild.
2514 * target.c (update_current_target): Don't inherit or default
2516 * target.h (struct target_ops) <to_save_trace_data>: Use
2517 TARGET_DEFAULT_NORETURN.
2519 2014-02-19 Tom Tromey <tromey@redhat.com>
2521 * target-delegates.c: Rebuild.
2522 * target.c (update_current_target): Don't inherit or default
2523 to_get_trace_state_variable_value.
2524 * target.h (struct target_ops)
2525 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
2527 2014-02-19 Tom Tromey <tromey@redhat.com>
2529 * target-delegates.c: Rebuild.
2530 * target.c (update_current_target): Don't inherit or default
2532 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
2534 2014-02-19 Tom Tromey <tromey@redhat.com>
2536 * target-delegates.c: Rebuild.
2537 * target.c (update_current_target): Don't inherit or default
2539 * target.h (struct target_ops) <to_trace_stop>: Use
2540 TARGET_DEFAULT_NORETURN.
2542 2014-02-19 Tom Tromey <tromey@redhat.com>
2544 * target-delegates.c: Rebuild.
2545 * target.c (update_current_target): Don't inherit or default
2546 to_get_tracepoint_status.
2547 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
2548 TARGET_DEFAULT_NORETURN.
2550 2014-02-19 Tom Tromey <tromey@redhat.com>
2552 * target-delegates.c: Rebuild.
2553 * target.c (update_current_target): Don't inherit or default
2554 to_get_trace_status.
2555 * target.h (struct target_ops) <to_get_trace_status>: Use
2556 TARGET_DEFAULT_RETURN.
2558 2014-02-19 Tom Tromey <tromey@redhat.com>
2560 * target-delegates.c: Rebuild.
2561 * target.c (update_current_target): Don't inherit or default
2563 * target.h (struct target_ops) <to_trace_start>: Use
2564 TARGET_DEFAULT_NORETURN.
2566 2014-02-19 Tom Tromey <tromey@redhat.com>
2568 * target-delegates.c: Rebuild.
2569 * target.c (update_current_target): Don't inherit or default
2570 to_trace_set_readonly_regions.
2571 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
2572 Use TARGET_DEFAULT_NORETURN.
2574 2014-02-19 Tom Tromey <tromey@redhat.com>
2576 * target-delegates.c: Rebuild.
2577 * target.c (update_current_target): Don't inherit or default
2578 to_disable_tracepoint.
2579 * target.h (struct target_ops) <to_disable_tracepoint>: Use
2580 TARGET_DEFAULT_NORETURN.
2582 2014-02-19 Tom Tromey <tromey@redhat.com>
2584 * target-delegates.c: Rebuild.
2585 * target.c (update_current_target): Don't inherit or default
2586 to_enable_tracepoint.
2587 * target.h (struct target_ops) <to_enable_tracepoint>: Use
2588 TARGET_DEFAULT_NORETURN.
2590 2014-02-19 Tom Tromey <tromey@redhat.com>
2592 * target-delegates.c: Rebuild.
2593 * target.c (update_current_target): Don't inherit or default
2594 to_download_trace_state_variable.
2595 * target.h (struct target_ops) <to_download_trace_state_variable>:
2596 Use TARGET_DEFAULT_NORETURN.
2598 2014-02-19 Tom Tromey <tromey@redhat.com>
2600 * target-delegates.c: Rebuild.
2601 * target.c (update_current_target): Don't inherit or default
2602 to_can_download_tracepoint.
2603 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
2604 TARGET_DEFAULT_RETURN.
2606 2014-02-19 Tom Tromey <tromey@redhat.com>
2608 * target-delegates.c: Rebuild.
2609 * target.c (update_current_target): Don't inherit or default
2610 to_download_tracepoint.
2611 * target.h (struct target_ops) <to_download_tracepoint>: Use
2612 TARGET_DEFAULT_NORETURN.
2614 2014-02-19 Tom Tromey <tromey@redhat.com>
2616 * target-delegates.c: Rebuild.
2617 * target.c (update_current_target): Don't inherit or default
2619 * target.h (struct target_ops) <to_trace_init>: Use
2620 TARGET_DEFAULT_RETURN.
2622 2014-02-19 Tom Tromey <tromey@redhat.com>
2624 * target-delegates.c: Rebuild.
2625 * target.c (update_current_target): Don't inherit or default
2626 to_supports_string_tracing.
2627 * target.h (struct target_ops) <to_supports_string_tracing>: Use
2628 TARGET_DEFAULT_RETURN.
2630 2014-02-19 Tom Tromey <tromey@redhat.com>
2632 * target-delegates.c: Rebuild.
2633 * target.c (update_current_target): Don't inherit or default
2634 to_supports_enable_disable_tracepoint.
2635 * target.h (struct target_ops)
2636 <to_supports_enable_disable_tracepoint>: Use
2637 TARGET_DEFAULT_RETURN.
2639 2014-02-19 Tom Tromey <tromey@redhat.com>
2641 * target-delegates.c: Rebuild.
2642 * target.c (update_current_target): Don't inherit or default
2643 to_supports_multi_process.
2644 * target.h (struct target_ops) <to_supports_multi_process>: Use
2645 TARGET_DEFAULT_RETURN.
2647 2014-02-19 Tom Tromey <tromey@redhat.com>
2649 * target-delegates.c: Rebuild.
2650 * target.c (update_current_target): Don't inherit or default
2651 to_get_ada_task_ptid.
2652 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
2653 TARGET_DEFAULT_FUNC.
2655 2014-02-19 Tom Tromey <tromey@redhat.com>
2657 * target-delegates.c: Rebuild.
2658 * target.c (update_current_target): Don't inherit or default
2659 to_thread_architecture.
2660 * target.h (struct target_ops) <to_thread_architecture>: Use
2661 TARGET_DEFAULT_FUNC.
2663 2014-02-19 Tom Tromey <tromey@redhat.com>
2665 * target-delegates.c: Rebuild.
2666 * target.c (update_current_target): Don't inherit or default
2667 to_execution_direction.
2668 * target.h (struct target_ops) <to_execution_direction>: Use
2669 TARGET_DEFAULT_FUNC.
2671 2014-02-19 Tom Tromey <tromey@redhat.com>
2673 * target-delegates.c: Rebuild.
2674 * target.c (update_current_target): Don't inherit or default
2675 to_can_execute_reverse.
2676 * target.h (struct target_ops) <to_can_execute_reverse>: Use
2677 TARGET_DEFAULT_RETURN.
2678 (target_can_execute_reverse): Unconditionally delegate.
2680 2014-02-19 Tom Tromey <tromey@redhat.com>
2682 * target-delegates.c: Rebuild.
2683 * target.c (update_current_target): Don't inherit or default
2685 (dummy_goto_bookmark): Remove.
2686 (init_dummy_target): Don't inherit or default to_goto_bookmark.
2687 * target.h (struct target_ops) <to_goto_bookmark>: Use
2688 TARGET_DEFAULT_NORETURN.
2690 2014-02-19 Tom Tromey <tromey@redhat.com>
2692 * target-delegates.c: Rebuild.
2693 * target.c (update_current_target): Don't inherit or default
2695 (dummy_get_bookmark): Remove.
2696 (init_dummy_target): Don't inherit or default to_get_bookmark.
2697 * target.h (struct target_ops) <to_get_bookmark>: Use
2698 TARGET_DEFAULT_NORETURN
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_make_corefile_notes.
2705 (init_dummy_target): Don't initialize to_make_corefile_notes.
2706 * target.h (struct target_ops) <to_make_corefile_notes>: Use
2707 TARGET_DEFAULT_FUNC.
2709 2014-02-19 Tom Tromey <tromey@redhat.com>
2711 * target-delegates.c: Rebuild.
2712 * target.c (update_current_target): Don't inherit or default
2713 to_find_memory_regions.
2714 (init_dummy_target): Don't initialize to_find_memory_regions.
2715 * target.h (struct target_ops) <to_find_memory_regions>: Use
2716 TARGET_DEFAULT_FUNC.
2718 2014-02-19 Tom Tromey <tromey@redhat.com>
2720 * target-delegates.c: Rebuild.
2721 * target.c (update_current_target): Don't inherit or default
2723 * target.h (struct target_ops) <to_log_command>: Use
2724 TARGET_DEFAULT_IGNORE.
2725 (target_log_command): Unconditionally delegate.
2727 2014-02-19 Tom Tromey <tromey@redhat.com>
2729 * target-delegates.c: Rebuild.
2730 * target.c (update_current_target): Don't inherit or default
2731 to_pid_to_exec_file.
2732 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
2733 TARGET_DEFAULT_RETURN.
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 (target_thread_name): Unconditionally delegate.
2741 * target.h (struct target_ops) <to_thread_name>: Use
2742 TARGET_DEFAULT_RETURN.
2744 2014-02-19 Tom Tromey <tromey@redhat.com>
2746 * target-delegates.c: Rebuild.
2747 * target.c (update_current_target): Don't inherit or default
2748 to_extra_thread_info.
2749 * target.h (struct target_ops) <to_extra_thread_info>: Use
2750 TARGET_DEFAULT_RETURN.
2752 2014-02-19 Tom Tromey <tromey@redhat.com>
2754 * target-delegates.c: Rebuild.
2755 * target.c (update_current_target): Don't inherit or default
2757 * target.h (struct target_ops) <to_has_exited>: Use
2758 TARGET_DEFAULT_RETURN..
2760 2014-02-19 Tom Tromey <tromey@redhat.com>
2762 * target-delegates.c: Rebuild.
2763 * target.c (update_current_target): Don't inherit or default
2764 to_set_syscall_catchpoint.
2765 (return_one): Remove.
2766 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
2767 TARGET_DEFAULT_RETURN.
2769 2014-02-19 Tom Tromey <tromey@redhat.com>
2771 * target-delegates.c: Rebuild.
2772 * target.c (update_current_target): Don't inherit or default
2773 to_insert_exec_catchpoint.
2774 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
2775 TARGET_DEFAULT_RETURN.
2777 2014-01-08 Tom Tromey <tromey@redhat.com>
2779 * target-delegates.c: Rebuild.
2780 * target.c (update_current_target): Don't inherit or default
2781 to_insert_exec_catchpoint.
2782 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
2783 TARGET_DEFAULT_RETURN.
2785 2014-02-19 Tom Tromey <tromey@redhat.com>
2787 * target-delegates.c: Rebuild.
2788 * target.c (update_current_target): Don't inherit or default
2789 to_remove_vfork_catchpoint.
2790 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
2791 TARGET_DEFAULT_RETURN.
2793 2014-02-19 Tom Tromey <tromey@redhat.com>
2795 * target-delegates.c: Rebuild.
2796 * target.c (update_current_target): Don't inherit or default
2797 to_insert_vfork_catchpoint.
2798 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
2799 TARGET_DEFAULT_RETURN.
2801 2014-02-19 Tom Tromey <tromey@redhat.com>
2803 * target-delegates.c: Rebuild.
2804 * target.c (update_current_target): Don't inherit or default
2805 to_remove_fork_catchpoint.
2806 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
2807 TARGET_DEFAULT_RETURN.
2809 2014-02-19 Tom Tromey <tromey@redhat.com>
2811 * target-delegates.c: Rebuild.
2812 * target.c (update_current_target): Don't inherit or default
2813 to_insert_fork_catchpoint.
2814 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
2815 TARGET_DEFAULT_RETURN.
2817 2014-02-19 Tom Tromey <tromey@redhat.com>
2819 * target-delegates.c: Rebuild.
2820 * target.c (update_current_target): Don't inherit or default
2821 to_post_startup_inferior.
2822 * target.h (struct target_ops) <to_post_startup_inferior>: Use
2823 TARGET_DEFAULT_IGNORE.
2825 2014-02-19 Tom Tromey <tromey@redhat.com>
2827 * target-delegates.c: Rebuild.
2828 * target.c (update_current_target): Don't inherit or default
2830 * target.h (struct target_ops) <to_load>: Use
2831 TARGET_DEFAULT_NORETURN.
2833 2014-02-19 Tom Tromey <tromey@redhat.com>
2835 * target-delegates.c: Rebuild.
2836 * target.c (update_current_target): Don't inherit or default
2838 * target.h (struct target_ops) <to_terminal_info>: Use
2839 TARGET_DEFAULT_FUNC.
2841 2014-02-19 Tom Tromey <tromey@redhat.com>
2843 * target-delegates.c: Rebuild.
2844 * target.c (update_current_target): Don't inherit or default
2845 to_terminal_save_ours.
2846 * target.h (struct target_ops) <to_terminal_save_ours>: Use
2847 TARGET_DEFAULT_IGNORE.
2849 2014-02-19 Tom Tromey <tromey@redhat.com>
2851 * target-delegates.c: Rebuild.
2852 * target.c (update_current_target): Don't inherit or default
2854 * target.h (struct target_ops) <to_terminal_ours>: Use
2855 TARGET_DEFAULT_IGNORE.
2857 2014-02-19 Tom Tromey <tromey@redhat.com>
2859 * target-delegates.c: Rebuild.
2860 * target.c (update_current_target): Don't inherit or default
2861 to_terminal_ours_for_output.
2862 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
2863 TARGET_DEFAULT_IGNORE.
2865 2014-02-19 Tom Tromey <tromey@redhat.com>
2867 * target-delegates.c: Rebuild.
2868 * target.c (update_current_target): Don't inherit or default
2869 to_terminal_inferior.
2870 * target.h (struct target_ops) <to_terminal_inferior>: Use
2871 TARGET_DEFAULT_IGNORE.
2873 2014-02-19 Tom Tromey <tromey@redhat.com>
2875 * target-delegates.c: Rebuild.
2876 * target.c (update_current_target): Don't inherit or default
2878 * target.h (struct target_ops) <to_terminal_init>: Use
2879 TARGET_DEFAULT_IGNORE.
2881 2014-02-19 Tom Tromey <tromey@redhat.com>
2883 * target-delegates.c: Rebuild.
2884 * target.c (update_current_target): Don't inherit or default
2885 to_can_accel_watchpoint_condition.
2886 * target.h (struct target_ops)
2887 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
2889 2014-02-19 Tom Tromey <tromey@redhat.com>
2891 * target-delegates.c: Rebuild.
2892 * target.c (update_current_target): Don't inherit or default
2893 to_region_ok_for_hw_watchpoint.
2894 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
2895 Use TARGET_DEFAULT_FUNC.
2897 2014-02-19 Tom Tromey <tromey@redhat.com>
2899 * target-delegates.c: Rebuild.
2900 * target.c (update_current_target): Don't inherit or default
2901 to_watchpoint_addr_within_range.
2902 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
2903 Use TARGET_DEFAULT_FUNC.
2905 2014-02-19 Tom Tromey <tromey@redhat.com>
2907 * target-delegates.c: Rebuild.
2908 * target.c (update_current_target): Don't inherit or default
2909 to_remove_watchpoint.
2910 * target.h (struct target_ops) <to_remove_watchpoint>: Use
2911 TARGET_DEFAULT_NORETURN.
2913 2014-02-19 Tom Tromey <tromey@redhat.com>
2915 * target-delegates.c: Rebuild.
2916 * target.c (update_current_target): Don't inherit or default
2917 to_insert_watchpoint.
2918 * target.h (struct target_ops) <to_insert_watchpoint>: Use
2919 TARGET_DEFAULT_RETURN.
2921 2014-02-19 Tom Tromey <tromey@redhat.com>
2923 * target-delegates.c: Rebuild.
2924 * target.c (update_current_target): Don't inherit or default
2925 to_remove_hw_breakpoint.
2926 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
2927 TARGET_DEFAULT_RETURN.
2929 2014-02-19 Tom Tromey <tromey@redhat.com>
2931 * target-delegates.c: Rebuild.
2932 * target.c (update_current_target): Don't inherit or default
2933 to_insert_hw_breakpoint.
2934 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
2935 TARGET_DEFAULT_RETURN.
2937 2014-02-19 Tom Tromey <tromey@redhat.com>
2939 * target-delegates.c: Rebuild.
2940 * target.c (update_current_target): Don't inherit or default
2941 to_can_use_hw_breakpoint.
2942 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
2943 TARGET_DEFAULT_RETURN.
2945 2014-02-19 Tom Tromey <tromey@redhat.com>
2947 * target-delegates.c: Rebuild.
2948 * target.c (update_current_target): Don't inherit or default
2950 * target.h (struct target_ops) <to_files_info>: Use
2951 TARGET_DEFAULT_IGNORE.
2953 2014-02-19 Tom Tromey <tromey@redhat.com>
2955 * target-delegates.c: Rebuild.
2956 * target.c (update_current_target): Don't inherit or default
2958 * target.h (struct target_ops) <to_store>: Use
2959 TARGET_DEFAULT_NORETURN.
2961 2014-02-19 Tom Tromey <tromey@redhat.com>
2963 * target-delegates.c: Rebuild.
2964 * target.c (update_current_target): Don't inherit or default
2966 * target.h (struct target_ops) <to_post_attach>: Use
2967 TARGET_DEFAULT_IGNORE.
2969 2014-02-19 Tom Tromey <tromey@redhat.com>
2971 * target-delegates.c: Rebuild.
2972 * target.c (update_current_target): Don't inherit or default
2974 (default_rcmd): New function.
2975 (do_monitor_command): Unconditionally delegate.
2976 * target.h (struct target_ops) <to_rmcd>: Use
2977 TARGET_DEFAULT_FUNC.
2979 2014-02-19 Tom Tromey <tromey@redhat.com>
2981 * target-delegates.c: Rebuild.
2982 * target.c (init_dummy_target): Don't initialize to_attach.
2983 (target_attach): Unconditionally delegate.
2984 * target.h (struct target_ops) <to_attach>: Use
2985 TARGET_DEFAULT_FUNC.
2987 2014-02-19 Tom Tromey <tromey@redhat.com>
2989 * target-delegates.c: Rebuild.
2990 * target.c (target_detach): Unconditionally delegate.
2991 (init_dummy_target): Don't initialize to_detach.
2992 * target.h (struct target_ops) <to_detach>: Use
2993 TARGET_DEFAULT_IGNORE.
2995 2014-02-19 Tom Tromey <tromey@redhat.com>
2997 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
2999 (target_augmented_libraries_svr4_read): Add argument.
3000 * target.c (update_current_target): Update.
3001 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
3004 2014-02-19 Tom Tromey <tromey@redhat.com>
3006 * target.h (struct target_ops) <to_call_history_range>: Add
3008 * target.c (target_call_history_range): Add argument.
3009 * record-btrace.c (record_btrace_call_history_range): Add 'self'
3011 (record_btrace_call_history_from): Update.
3013 2014-02-19 Tom Tromey <tromey@redhat.com>
3015 * target.h (struct target_ops) <to_call_history_from>: Add
3017 * target.c (target_call_history_from): Add argument.
3018 * record-btrace.c (record_btrace_call_history_from): Add 'self'
3021 2014-02-19 Tom Tromey <tromey@redhat.com>
3023 * target.h (struct target_ops) <to_call_history>: Add argument.
3024 * target.c (target_call_history): Add argument.
3025 * record-btrace.c (record_btrace_call_history): Add 'self'
3028 2014-02-19 Tom Tromey <tromey@redhat.com>
3030 * target.h (struct target_ops) <to_insn_history_range>: Add
3032 * target.c (target_insn_history_range): Add argument.
3033 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
3035 (record_btrace_insn_history_from): Update.
3037 2014-02-19 Tom Tromey <tromey@redhat.com>
3039 * target.h (struct target_ops) <to_insn_history_from>: Add
3041 * target.c (target_insn_history_from): Add argument.
3042 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
3045 2014-02-19 Tom Tromey <tromey@redhat.com>
3047 * target.h (struct target_ops) <to_insn_history>: Add argument.
3048 * target.c (target_insn_history): Add argument.
3049 * record-btrace.c (record_btrace_insn_history): Add 'self'
3052 2014-02-19 Tom Tromey <tromey@redhat.com>
3054 * target.h (struct target_ops) <to_goto_record>: Add argument.
3055 * target.c (target_goto_record): Add argument.
3056 * record-full.c (record_full_goto): Add 'self' argument.
3057 * record-btrace.c (record_btrace_goto): Add 'self' argument.
3059 2014-02-19 Tom Tromey <tromey@redhat.com>
3061 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
3062 * target.c (target_goto_record_end): Add argument.
3063 * record-full.c (record_full_goto_end): Add 'self' argument.
3064 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
3066 2014-02-19 Tom Tromey <tromey@redhat.com>
3068 * target.h (struct target_ops) <to_goto_record_begin>: Add
3070 * target.c (target_goto_record_begin): Add argument.
3071 * record-full.c (record_full_goto_begin): Add 'self' argument.
3072 * record-btrace.c (record_btrace_goto_begin): Add 'self'
3075 2014-02-19 Tom Tromey <tromey@redhat.com>
3077 * target.h (struct target_ops) <to_record_is_replaying>: Add
3079 * target.c (target_record_is_replaying): Add argument.
3080 * record-full.c (record_full_is_replaying): Add 'self' argument.
3081 * record-btrace.c (record_btrace_is_replaying): Add 'self'
3083 (record_btrace_xfer_partial, record_btrace_store_registers)
3084 (record_btrace_prepare_to_store, record_btrace_resume)
3085 (record_btrace_wait, record_btrace_decr_pc_after_break)
3086 (record_btrace_find_new_threads, record_btrace_thread_alive):
3089 2014-02-19 Tom Tromey <tromey@redhat.com>
3091 * target.h (struct target_ops) <to_delete_record>: Add argument.
3092 * target.c (target_delete_record): Add argument.
3093 * record-full.c (record_full_delete): Add 'self' argument.
3095 2014-02-19 Tom Tromey <tromey@redhat.com>
3097 * target.h (struct target_ops) <to_save_record>: Add argument.
3098 * target.c (target_save_record): Add argument.
3099 * record-full.c (record_full_save): Add 'self' argument.
3100 (record_full_save): Add 'self' argument.
3102 2014-02-19 Tom Tromey <tromey@redhat.com>
3104 * target.h (struct target_ops) <to_info_record>: Add argument.
3105 * target.c (target_info_record): Add argument.
3106 * record.c (info_record_command): Add argument.
3107 * record-full.c (record_full_info): Add 'self' argument.
3108 * record-btrace.c (record_btrace_info): Add 'self' argument.
3110 2014-02-19 Tom Tromey <tromey@redhat.com>
3112 * target.h (struct target_ops) <to_stop_recording>: Add argument.
3113 * target.c (target_stop_recording): Add argument.
3114 * record.c (record_stop): Add argument.
3115 * record-btrace.c (record_btrace_stop_recording): Add 'self'
3118 2014-02-19 Tom Tromey <tromey@redhat.com>
3120 * target.h (struct target_ops) <to_read_btrace>: Add argument.
3121 * target.c (struct target_ops) <to_read_btrace>: Add argument.
3122 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
3124 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
3125 (_initialize_amd64_linux_nat): Use it.
3126 * i386-linux-nat.c (i386_linux_read_btrace): New function.
3127 (_initialize_i386_linux_nat): Use it.
3129 2014-02-19 Tom Tromey <tromey@redhat.com>
3131 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
3132 * target.c (target_teardown_btrace): Add argument.
3133 * remote.c (remote_teardown_btrace): Add 'self' argument.
3134 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
3136 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
3139 2014-02-19 Tom Tromey <tromey@redhat.com>
3141 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
3142 * target.c (target_disable_btrace): Add argument.
3143 * remote.c (remote_disable_btrace): Add 'self' argument.
3144 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
3146 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
3149 2014-02-19 Tom Tromey <tromey@redhat.com>
3151 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
3152 * target.c (target_enable_btrace): Add argument.
3153 * remote.c (remote_enable_btrace): Add 'self' argument.
3154 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
3156 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
3159 2014-02-19 Tom Tromey <tromey@redhat.com>
3161 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
3162 (target_can_use_agent): Add argument.
3163 * target.c (update_current_target): Update.
3164 * remote.c (remote_can_use_agent): Add 'self' argument.
3165 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
3167 2014-02-19 Tom Tromey <tromey@redhat.com>
3169 * target.h (struct target_ops) <to_use_agent>: Add argument.
3170 (target_use_agent): Add argument.
3171 * target.c (update_current_target): Update.
3172 * remote.c (remote_use_agent): Add 'self' argument.
3173 * inf-child.c (inf_child_use_agent): Add 'self' argument.
3175 2014-02-19 Tom Tromey <tromey@redhat.com>
3177 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
3178 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
3179 (target_traceframe_info): Add argument.
3180 * target.c (update_current_target): Update.
3181 * remote.c (remote_traceframe_info): Add 'self' argument.
3182 * ctf.c (ctf_traceframe_info): Add 'self' argument.
3184 2014-02-19 Tom Tromey <tromey@redhat.com>
3186 * target.h (target_static_tracepoint_markers_by_strid): Add
3188 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
3190 * target.c (update_current_target): Update.
3191 * remote.c (struct target_ops)
3192 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
3193 * linux-nat.c (struct target_ops)
3194 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
3196 2014-02-19 Tom Tromey <tromey@redhat.com>
3198 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
3200 (target_static_tracepoint_marker_at): Add argument.
3201 * target.c (update_current_target): Update.
3202 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
3205 2014-02-19 Tom Tromey <tromey@redhat.com>
3207 * target.h (struct target_ops) <to_set_permissions>: Add argument.
3208 (target_set_permissions): Add argument.
3209 * target.c (update_current_target): Update.
3210 * remote.c (remote_set_permissions): Add 'self' argument.
3211 (remote_start_remote): Update.
3213 2014-02-19 Tom Tromey <tromey@redhat.com>
3215 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
3216 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
3217 (target_get_tib_address): Add argument.
3218 * target.c (update_current_target): Update.
3219 * remote.c (remote_get_tib_address): Add 'self' argument.
3221 2014-02-19 Tom Tromey <tromey@redhat.com>
3223 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
3224 (target_set_trace_notes): Add argument.
3225 * target.c (update_current_target): Update.
3226 * remote.c (remote_set_trace_notes): Add 'self' argument.
3228 2014-02-19 Tom Tromey <tromey@redhat.com>
3230 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
3232 (target_set_trace_buffer_size): Add argument.
3233 * target.c (update_current_target): Update.
3234 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
3236 2014-02-19 Tom Tromey <tromey@redhat.com>
3238 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
3240 (target_set_circular_trace_buffer): Add argument.
3241 * target.c (update_current_target): Update.
3242 * remote.c (remote_set_circular_trace_buffer): Add 'self'
3245 2014-02-19 Tom Tromey <tromey@redhat.com>
3247 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
3249 (target_set_disconnected_tracing): Add argument.
3250 * target.c (update_current_target): Update.
3251 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
3253 2014-02-19 Tom Tromey <tromey@redhat.com>
3255 * target.h (struct target_ops)
3256 <to_get_min_fast_tracepoint_insn_len>: Add argument.
3257 (target_get_min_fast_tracepoint_insn_len): Add argument.
3258 * target.c (update_current_target): Update.
3259 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
3262 2014-02-19 Tom Tromey <tromey@redhat.com>
3264 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
3266 (target_get_raw_trace_data): Add argument.
3267 * target.c (update_current_target): Update.
3268 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
3270 2014-02-19 Tom Tromey <tromey@redhat.com>
3272 * target.h (struct target_ops) <to_upload_trace_state_variables>:
3274 (target_upload_trace_state_variables): Add argument.
3275 * target.c (update_current_target): Update.
3276 * remote.c (remote_upload_trace_state_variables): Add 'self'
3278 (remote_start_remote): Update.
3280 2014-02-19 Tom Tromey <tromey@redhat.com>
3282 * target.h (struct target_ops) <to_upload_tracepoints>: Add
3284 (target_upload_tracepoints): Add argument.
3285 * target.c (update_current_target): Update.
3286 * remote.c (remote_upload_tracepoints): Add 'self' argument.
3287 (remote_start_remote): Update.
3289 2014-02-19 Tom Tromey <tromey@redhat.com>
3291 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
3292 (target_save_trace_data): Add argument.
3293 * target.c (update_current_target): Update.
3294 * remote.c (remote_save_trace_data): Add 'self' argument.
3296 2014-02-19 Tom Tromey <tromey@redhat.com>
3298 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
3300 * target.h (struct target_ops)
3301 <to_get_trace_state_variable_value>: Add argument.
3302 (target_get_trace_state_variable_value): Add argument.
3303 * target.c (update_current_target): Update.
3304 * remote.c (remote_get_trace_state_variable_value): Add 'self'
3306 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
3308 2014-02-19 Tom Tromey <tromey@redhat.com>
3310 * tracepoint.c (tfile_trace_find): Add 'self' argument.
3311 * target.h (struct target_ops) <to_trace_find>: Add argument.
3312 (target_trace_find): Add argument.
3313 * target.c (update_current_target): Update.
3314 * remote.c (remote_trace_find): Add 'self' argument.
3315 * ctf.c (ctf_trace_find): Add 'self' argument.
3317 2014-02-19 Tom Tromey <tromey@redhat.com>
3319 * target.h (struct target_ops) <to_trace_stop>: Add argument.
3320 (target_trace_stop): Add argument.
3321 * target.c (update_current_target): Update.
3322 * remote.c (remote_trace_stop): Add 'self' argument.
3324 2014-02-19 Tom Tromey <tromey@redhat.com>
3326 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
3327 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
3329 (target_get_tracepoint_status): Add argument.
3330 * target.c (update_current_target): Update.
3331 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
3333 2014-02-19 Tom Tromey <tromey@redhat.com>
3335 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
3336 * target.h (struct target_ops) <to_get_trace_status>: Add
3338 (target_get_trace_status): Add argument.
3339 * target.c (update_current_target): Update.
3340 * remote.c (remote_get_trace_status): Add 'self' argument.
3341 (remote_start_remote, remote_can_download_tracepoint): Update.
3342 * ctf.c (ctf_get_trace_status): Add 'self' argument.
3344 2014-02-19 Tom Tromey <tromey@redhat.com>
3346 * target.h (struct target_ops) <to_trace_start>: Add argument.
3347 (target_trace_start): Add argument.
3348 * target.c (update_current_target): Update.
3349 * remote.c (remote_trace_start): Add 'self' argument.
3351 2014-02-19 Tom Tromey <tromey@redhat.com>
3353 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
3355 (target_trace_set_readonly_regions): Add argument.
3356 * target.c (update_current_target): Update.
3357 * remote.c (remote_trace_set_readonly_regions): Add 'self'
3360 2014-02-19 Tom Tromey <tromey@redhat.com>
3362 * target.h (struct target_ops) <to_disable_tracepoint>: Add
3364 (target_disable_tracepoint): Add argument.
3365 * target.c (update_current_target): Update.
3366 * remote.c (remote_disable_tracepoint): Add 'self' argument.
3368 2014-02-19 Tom Tromey <tromey@redhat.com>
3370 * target.h (struct target_ops) <to_enable_tracepoint>: Add
3372 (target_enable_tracepoint): Add argument.
3373 * target.c (update_current_target): Update.
3374 * remote.c (remote_enable_tracepoint): Add 'self' argument.
3376 2014-02-19 Tom Tromey <tromey@redhat.com>
3378 * target.h (struct target_ops) <to_download_trace_state_variable>:
3380 (target_download_trace_state_variable): Add argument.
3381 * target.c (update_current_target): Update.
3382 * remote.c (remote_download_trace_state_variable): Add 'self'
3385 2014-02-19 Tom Tromey <tromey@redhat.com>
3387 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
3389 (target_can_download_tracepoint): Add argument.
3390 * target.c (update_current_target): Update.
3391 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
3393 2014-02-19 Tom Tromey <tromey@redhat.com>
3395 * target.h (struct target_ops) <to_download_tracepoint>: Add
3397 (target_download_tracepoint): Add argument.
3398 * target.c (update_current_target): Update.
3399 * remote.c (remote_download_tracepoint): Add 'self' argument.
3401 2014-02-19 Tom Tromey <tromey@redhat.com>
3403 * target.h (struct target_ops) <to_trace_init>: Add argument.
3404 (target_trace_init): Add argument.
3405 * target.c (update_current_target): Update.
3406 * remote.c (remote_trace_init): Add 'self' argument.
3408 2014-02-19 Tom Tromey <tromey@redhat.com>
3410 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
3411 * target.c (target_fileio_readlink): Add argument.
3412 * remote.c (remote_hostio_readlink): Add 'self' argument.
3413 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
3415 2014-02-19 Tom Tromey <tromey@redhat.com>
3417 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
3418 * target.c (target_fileio_unlink): Add argument.
3419 * remote.c (remote_hostio_unlink): Add 'self' argument.
3420 (remote_file_delete): Update.
3421 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
3423 2014-02-19 Tom Tromey <tromey@redhat.com>
3425 * target.h (struct target_ops) <to_fileio_close>: Add argument.
3426 * target.c (target_fileio_close): Add argument.
3427 * remote.c (remote_hostio_close): Add 'self' argument.
3428 (remote_hostio_close_cleanup): Update.
3429 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
3431 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
3433 2014-02-19 Tom Tromey <tromey@redhat.com>
3435 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
3436 * target.c (target_fileio_pread): Add argument.
3437 * remote.c (remote_hostio_pread): Add 'self' argument.
3438 (remote_bfd_iovec_pread, remote_file_get): Update.
3439 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
3441 2014-02-19 Tom Tromey <tromey@redhat.com>
3443 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
3444 * target.c (target_fileio_pwrite): Add argument.
3445 * remote.c (remote_hostio_pwrite): Add 'self' argument.
3446 (remote_file_put): Update.
3447 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
3449 2014-02-19 Tom Tromey <tromey@redhat.com>
3451 * target.h (struct target_ops) <to_fileio_open>: Add argument.
3452 * target.c (target_fileio_open): Add argument.
3453 * remote.c (remote_hostio_open): Add 'self' argument.
3454 (remote_bfd_iovec_open): Add 'self' argument.
3455 (remote_file_put): Add 'self' argument.
3456 (remote_file_get): Add 'self' argument.
3457 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
3459 2014-02-19 Tom Tromey <tromey@redhat.com>
3461 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
3463 (target_can_run_breakpoint_commands): Add argument.
3464 * target.c (update_current_target): Update.
3465 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
3467 (remote_insert_breakpoint): Add 'self' argument.
3468 (remote_insert_hw_breakpoint): Add 'self' argument.
3469 (remote_can_run_breakpoint_commands): Add 'self' argument.
3471 2014-02-19 Tom Tromey <tromey@redhat.com>
3473 * target.h (struct target_ops)
3474 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
3475 (target_supports_evaluation_of_breakpoint_conditions): Add
3477 * target.c (update_current_target): Update.
3478 * remote.c (remote_supports_cond_breakpoints): Add 'self'
3480 (remote_insert_breakpoint): Add 'self' argument.
3481 (remote_insert_hw_breakpoint): Add 'self' argument.
3482 (remote_supports_cond_breakpoints): Add 'self' argument.
3484 2014-02-19 Tom Tromey <tromey@redhat.com>
3486 * target.h (struct target_ops) <to_supports_string_tracing>: Add
3488 (target_supports_string_tracing): Add argument.
3489 * target.c (update_current_target): Update.
3490 * remote.c (remote_supports_string_tracing): Add 'self' argument.
3492 2014-02-19 Tom Tromey <tromey@redhat.com>
3494 * target.h (struct target_ops)
3495 <to_supports_disable_randomization>: Add argument.
3496 * target.c (find_default_supports_disable_randomization): Add
3498 (target_supports_disable_randomization): Add argument.
3499 (find_default_supports_disable_randomization): Add 'self'
3501 * remote.c (extended_remote_supports_disable_randomization): Add
3503 (remote_supports_disable_randomization): Add 'self' argument.
3504 (extended_remote_create_inferior): Update.
3505 * linux-nat.c (linux_nat_supports_disable_randomization): Add
3508 2014-02-19 Tom Tromey <tromey@redhat.com>
3510 * target.h (struct target_ops)
3511 <to_supports_enable_disable_tracepoint>: Add argument.
3512 (target_supports_enable_disable_tracepoint): Add argument.
3513 * target.c (update_current_target): Update.
3514 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
3517 2014-02-19 Tom Tromey <tromey@redhat.com>
3519 * target.h (struct target_ops) <to_supports_multi_process>: Add
3521 (target_supports_multi_process): Add argument.
3522 * target.c (update_current_target): Update.
3523 * remote.c (remote_supports_multi_process): Add 'self' argument.
3524 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
3526 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
3529 2014-02-19 Tom Tromey <tromey@redhat.com>
3531 * target.h (struct target_ops) <to_execution_direction>: Add
3533 (target_execution_direction): Add argument.
3534 * target.c (default_execution_direction): Add 'self' argument.
3535 * record-full.c (record_full_execution_direction): Add 'self'
3538 2014-02-19 Tom Tromey <tromey@redhat.com>
3540 * target.h (struct target_ops) <to_can_execute_reverse>: Add
3542 (target_can_execute_reverse): Add argument.
3543 * remote.c (remote_can_execute_reverse): Add 'self' argument.
3544 * record-full.c (record_full_can_execute_reverse): Add 'self'
3546 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
3549 2014-02-19 Tom Tromey <tromey@redhat.com>
3551 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
3552 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
3554 (target_get_ada_task_ptid): Add argument.
3555 * target.c (update_current_target): Update.
3556 (default_get_ada_task_ptid): Add 'self' argument.
3557 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
3558 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
3559 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
3561 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
3563 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
3565 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
3567 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
3568 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
3571 2014-02-19 Tom Tromey <tromey@redhat.com>
3573 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
3574 (target_goto_bookmark): Add argument.
3575 * target.c (dummy_goto_bookmark): Add 'self' argument.
3576 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
3578 2014-02-19 Tom Tromey <tromey@redhat.com>
3580 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
3581 (target_get_bookmark): Add argument.
3582 * target.c (dummy_get_bookmark): Add 'self' argument.
3583 * record-full.c (record_full_get_bookmark): Add 'self' argument.
3585 2014-02-19 Tom Tromey <tromey@redhat.com>
3587 * target.h (struct target_ops) <to_make_corefile_notes>: Add
3589 (target_make_corefile_notes): Add argument.
3590 * target.c (dummy_make_corefile_notes): Add 'self' argument.
3591 * procfs.c (procfs_make_note_section): Add 'self' argument.
3592 (procfs_make_note_section): Add 'self' argument.
3593 (procfs_make_note_section): Add 'self' argument.
3594 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
3596 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
3597 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
3598 * exec.c (exec_make_note_section): Add 'self' argument.
3599 (exec_make_note_section): Add 'self' argument.
3601 2014-02-19 Tom Tromey <tromey@redhat.com>
3603 * target.h (struct target_ops) <to_find_memory_regions>: Add
3605 (target_find_memory_regions): Add argument.
3606 * target.c (dummy_find_memory_regions): Add 'self' argument.
3607 * procfs.c (proc_find_memory_regions): Add 'self' argument.
3608 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
3609 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
3610 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
3611 * exec. (exec_do_find_memory_regions): New global.
3612 (exec_set_find_memory_regions): Rewrite.
3613 (exec_find_memory_regions): New function.
3614 (init_exec_ops): Use exec_find_memory_regions.
3616 2014-02-19 Tom Tromey <tromey@redhat.com>
3618 * target.h (struct target_ops) <to_supports_non_stop>: Add
3620 * target.c (find_default_supports_non_stop): Add argument.
3621 (target_supports_non_stop): Add argument.
3622 (find_default_supports_non_stop): Add 'self' argument.
3623 * remote.c (remote_supports_non_stop): Add 'self' argument.
3624 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
3626 2014-02-19 Tom Tromey <tromey@redhat.com>
3628 * target.h (struct target_ops) <to_log_command>: Add argument.
3629 (target_log_command): Add argument.
3630 * serial.h (serial_log_command): Add 'self' argument.
3631 * serial.c (serial_log_command): Add 'self' argument.
3633 2014-02-19 Tom Tromey <tromey@redhat.com>
3635 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
3636 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
3638 (target_pid_to_exec_file): Add argument.
3639 * target.c (debug_to_pid_to_exec_file): Add argument.
3640 (update_current_target): Update.
3641 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
3642 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
3643 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
3644 (linux_handle_extended_wait): Update.
3645 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
3646 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
3647 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
3648 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
3650 2014-02-19 Tom Tromey <tromey@redhat.com>
3652 * target.h (struct target_ops) <to_rcmd>: Add argument.
3653 (target_rcmd): Add argument.
3654 * target.c (debug_to_rcmd): Add argument.
3655 (update_current_target, do_monitor_command): Update.
3656 * remote.c (remote_rcmd): Add 'self' argument.
3657 * monitor.c (monitor_rcmd): Add 'self' argument.
3659 2014-02-19 Tom Tromey <tromey@redhat.com>
3661 * windows-nat.c (windows_stop): Add 'self' argument.
3662 * target.h (struct target_ops) <to_stop>: Add argument.
3663 * target.c (target_stop): Add argument.
3664 (debug_to_stop): Add argument.
3665 (update_current_target): Update.
3666 * remote.c (remote_stop): Add 'self' argument.
3667 * remote-sim.c (gdbsim_stop): Add 'self' argument.
3668 (gdbsim_cntrl_c): Update.
3669 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
3670 * procfs.c (procfs_stop): Add 'self' argument.
3671 * nto-procfs.c (procfs_stop): Add 'self' argument.
3672 * monitor.c (monitor_stop): Add 'self' argument.
3673 (monitor_open): Update.
3674 * linux-nat.c (linux_nat_stop): Add argument.
3675 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
3676 * gnu-nat.c (gnu_stop): Add 'self' argument.
3677 * darwin-nat.c (darwin_stop): Add 'self' argument.
3679 2014-02-19 Tom Tromey <tromey@redhat.com>
3681 * target.h (struct target_ops) <to_thread_name>: Add argument.
3682 * target.c (target_thread_name): Add argument.
3683 (update_current_target): Update.
3684 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
3686 2014-02-19 Tom Tromey <tromey@redhat.com>
3688 * target.h (struct target_ops) <to_extra_thread_info>: Add
3690 (target_extra_thread_info): Add argument.
3691 * target.c (update_current_target): Update.
3692 * remote.c (remote_threads_extra_info): Add 'self' argument.
3693 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
3695 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
3696 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
3697 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
3699 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
3701 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
3703 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
3706 2014-02-19 Tom Tromey <tromey@redhat.com>
3708 * target.h (struct target_ops) <to_program_signals>: Add argument.
3709 * target.c (target_program_signals): Add argument.
3710 * remote.c (remote_program_signals): Add 'self' argument.
3712 2014-02-19 Tom Tromey <tromey@redhat.com>
3714 * target.h (struct target_ops) <to_pass_signals>: Add argument.
3715 * target.c (target_pass_signals): Add argument.
3716 * remote.c (remote_pass_signals): Add 'self' argument.
3717 (remote_start_remote): Update.
3718 * procfs.c (procfs_pass_signals): Add 'self' argument.
3719 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
3720 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
3721 (linux_nat_create_inferior, linux_nat_attach): Update.
3723 2014-02-19 Tom Tromey <tromey@redhat.com>
3725 * windows-nat.c (windows_can_run): Add 'self' argument.
3726 * target.h (struct target_ops) <to_can_run>: Add argument.
3727 (target_can_run): Add argument.
3728 * target.c (debug_to_can_run): Add argument.
3729 (update_current_target): Update.
3730 * nto-procfs.c (procfs_can_run): Add 'self' argument.
3731 * inf-child.c (inf_child_can_run): Add 'self' argument.
3732 * go32-nat.c (go32_can_run): Add 'self' argument.
3734 2014-02-19 Tom Tromey <tromey@redhat.com>
3736 * target.h (struct target_ops) <to_has_exited>: Add argument.
3737 (target_has_exited): Add argument.
3738 * target.c (debug_to_has_exited): Add argument.
3739 (update_current_target): Update.
3741 2014-02-19 Tom Tromey <tromey@redhat.com>
3743 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
3745 (target_set_syscall_catchpoint): Add argument.
3746 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
3748 * target.c (update_current_target): Update.
3750 2014-02-19 Tom Tromey <tromey@redhat.com>
3752 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
3754 (target_remove_exec_catchpoint): Add argument.
3755 * target.c (debug_to_remove_exec_catchpoint): Add argument.
3756 (update_current_target): Update.
3757 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
3760 2014-02-19 Tom Tromey <tromey@redhat.com>
3762 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
3764 (target_insert_exec_catchpoint): Add argument.
3765 * target.c (debug_to_insert_exec_catchpoint): Add argument.
3766 (update_current_target): Update.
3767 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
3770 2014-02-19 Tom Tromey <tromey@redhat.com>
3772 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
3774 (target_remove_vfork_catchpoint): Add argument.
3775 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
3776 (update_current_target): Update.
3777 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
3780 2014-02-19 Tom Tromey <tromey@redhat.com>
3782 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
3784 (target_insert_vfork_catchpoint): Add argument.
3785 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
3786 (update_current_target): Update.
3787 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
3790 2014-02-19 Tom Tromey <tromey@redhat.com>
3792 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
3794 (target_remove_fork_catchpoint): Add argument.
3795 * target.c (debug_to_remove_fork_catchpoint): Add argument.
3796 (update_current_target): Update.
3797 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
3800 2014-02-19 Tom Tromey <tromey@redhat.com>
3802 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
3804 (target_insert_fork_catchpoint): Add argument.
3805 * target.c (debug_to_insert_fork_catchpoint): Add argument.
3806 (update_current_target): Update.
3807 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
3810 2014-02-19 Tom Tromey <tromey@redhat.com>
3812 * target.h (struct target_ops) <to_post_startup_inferior>: Add
3814 (target_post_startup_inferior): Add argument.
3815 * target.c (debug_to_post_startup_inferior): Add argument.
3816 (update_current_target): Update.
3817 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
3819 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
3821 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
3823 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
3825 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
3827 (super_post_startup_inferior): Likewise.
3828 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
3830 (super_post_startup_inferior): Likewise.
3831 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
3832 Add 'self' argument.
3833 (super_post_startup_inferior): Likewise.
3835 2014-02-19 Tom Tromey <tromey@redhat.com>
3837 * target.h (struct target_ops) <to_load>: Add argument.
3838 * target.c (target_load): Add argument.
3839 (debug_to_load): Add argument.
3840 (update_current_target): Update.
3841 * remote.c (remote_load): Add 'self' argument.
3842 * remote-sim.c (gdbsim_load): Add 'self' argument.
3843 * remote-mips.c (mips_load): Add 'self' argument.
3844 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
3845 * monitor.c (monitor_load): Add 'self' argument.
3846 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
3848 2014-02-19 Tom Tromey <tromey@redhat.com>
3850 * target.h (struct target_ops) <to_terminal_info>: Add argument.
3851 (target_terminal_info): Add argument.
3852 * target.c (debug_to_terminal_info): Add argument.
3853 (default_terminal_info): Likewise.
3854 * inflow.c (child_terminal_info): Add 'self' argument.
3855 * inferior.h (child_terminal_info): Add 'self' argument.
3856 * go32-nat.c (go32_terminal_info): Add 'self' argument.
3858 2014-02-19 Tom Tromey <tromey@redhat.com>
3860 * target.h (struct target_ops) <to_terminal_save_ours>: Add
3862 (target_terminal_save_ours): Add argument.
3863 * target.c (debug_to_terminal_save_ours): Add argument.
3864 (update_current_target): Update.
3865 * inflow.c (terminal_save_ours): Add 'self' argument.
3866 * inferior.h (terminal_save_ours): Add 'self' argument.
3868 2014-02-19 Tom Tromey <tromey@redhat.com>
3870 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
3871 (target_terminal_ours): Add argument.
3872 * target.c (debug_to_terminal_ours): Add argument.
3873 (update_current_target): Update.
3874 * remote.c (remote_terminal_ours): Add 'self' argument.
3875 (remote_close): Update.
3876 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
3877 * inflow.c (terminal_ours): Add 'self' argument.
3878 * inferior.h (terminal_ours): Add 'self' argument.
3879 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
3881 2014-02-19 Pedro Alves <palves@redhat.com>
3882 Tom Tromey <tromey@redhat.com>
3884 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
3886 (target_terminal_ours_for_output): Add argument.
3887 * target.c (debug_to_terminal_ours_for_output): Add argument.
3888 (update_current_target): Update.
3889 * inflow.c (terminal_ours_for_output): Add 'self' argument.
3890 * inferior.h (terminal_ours_for_output): Add 'self' argument.
3891 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
3893 2014-02-19 Tom Tromey <tromey@redhat.com>
3895 * target.h (struct target_ops) <to_terminal_inferior>: Add
3897 * target.c (target_terminal_inferior): Add argument.
3898 (update_current_target): Update.
3899 * remote.c (remote_terminal_inferior): Add 'self' argument.
3900 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
3901 * inflow.c (terminal_inferior): Add 'self' argument.
3902 * inferior.h (terminal_inferior): Add 'self' argument.
3903 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
3904 (go32_terminal_inferior): Add 'self' argument.
3906 2014-02-19 Tom Tromey <tromey@redhat.com>
3908 * target.h (struct target_ops) <to_terminal_init>: Add argument.
3909 (target_terminal_init): Add argument.
3910 * target.c (debug_to_terminal_init): Add argument.
3911 (update_current_target): Update.
3912 * inflow.c (terminal_init_inferior): Add 'self' argument.
3913 * inferior.h (terminal_init_inferior): Add 'self' argument.
3914 * go32-nat.c (go32_terminal_init): Add 'self' argument.
3915 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
3917 2014-02-19 Tom Tromey <tromey@redhat.com>
3919 * target.h (struct target_ops)
3920 <to_can_accel_watchpoint_condition>: Add argument.
3921 (target_can_accel_watchpoint_condition): Add argument.
3922 * target.c (debug_to_can_accel_watchpoint_condition): Add
3924 (update_current_target): Update.
3925 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
3928 2014-02-19 Tom Tromey <tromey@redhat.com>
3930 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
3932 (target_region_ok_for_hw_watchpoint): Add argument.
3933 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
3934 (default_region_ok_for_hw_watchpoint): Add argument.
3935 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
3936 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
3938 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
3940 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
3942 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
3944 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
3946 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
3948 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
3949 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
3951 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
3952 Add 'self' argument.
3954 2014-02-19 Tom Tromey <tromey@redhat.com>
3956 * target.h (struct target_ops) <to_insert_watchpoint>: Add
3958 (target_insert_watchpoint): Add argument.
3959 * target.c (debug_to_insert_watchpoint): Add argument.
3960 (update_current_target): Update.
3961 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
3962 * remote.c (remote_insert_watchpoint): Add 'self' argument.
3963 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
3964 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
3965 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
3966 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
3968 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
3969 (procfs_insert_hw_watchpoint): Add 'self' argument.
3970 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
3972 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
3974 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
3976 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
3977 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
3979 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
3982 2014-02-19 Tom Tromey <tromey@redhat.com>
3984 * target.h (struct target_ops) <to_remove_watchpoint>: Add
3986 (target_remove_watchpoint): Add argument.
3987 * target.c (debug_to_remove_watchpoint): Add argument.
3988 (update_current_target): Update.
3989 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
3990 * remote.c (remote_remove_watchpoint): Add 'self' argument.
3991 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
3992 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
3993 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
3994 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
3996 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
3997 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
3999 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
4001 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
4003 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
4004 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
4006 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
4009 2014-02-19 Tom Tromey <tromey@redhat.com>
4011 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
4013 (target_remove_hw_breakpoint): Add argument.
4014 * target.c (debug_to_remove_hw_breakpoint): Add argument.
4015 (update_current_target): Update.
4016 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
4017 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
4019 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
4020 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
4022 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
4025 2014-02-19 Tom Tromey <tromey@redhat.com>
4027 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
4029 (target_insert_hw_breakpoint): Add argument.
4030 * target.c (debug_to_insert_hw_breakpoint): Add argument.
4031 (update_current_target): Update.
4032 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
4033 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
4035 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
4036 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
4037 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
4039 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
4042 2014-02-19 Tom Tromey <tromey@redhat.com>
4044 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
4046 (target_can_use_hardware_watchpoint): Add argument.
4047 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
4048 (update_current_target): Update.
4049 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
4051 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
4053 * remote.c (remote_check_watch_resources): Add 'self' argument.
4054 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
4055 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
4057 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
4058 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
4060 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
4062 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
4064 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
4066 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
4068 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
4070 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
4071 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
4073 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
4076 2014-02-19 Tom Tromey <tromey@redhat.com>
4078 * target.h (struct target_ops) <to_post_attach>: Add argument.
4079 (target_post_attach): Add argument.
4080 * target.c (debug_to_post_attach): Add argument.
4081 (update_current_target): Update.
4082 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
4083 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
4084 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
4085 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
4086 * inf-child.c (inf_child_post_attach): Add 'self' argument.
4088 2014-02-19 Tom Tromey <tromey@redhat.com>
4090 * windows-nat.c (windows_close): Add 'self' argument.
4091 * tracepoint.c (tfile_close): Add 'self' argument.
4092 * target.h (struct target_ops) <to_close>: Add argument.
4093 * target.c (target_close): Add argument.
4094 (update_current_target): Update.
4095 * remote.c (remote_close): Add 'self' argument.
4096 * remote-sim.c (gdbsim_close): Add 'self' argument.
4097 * remote-mips.c (mips_close): Add 'self' argument.
4098 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
4099 * record-full.c (record_full_close): Add 'self' argument.
4100 * record-btrace.c (record_btrace_close): Add 'self' argument.
4101 * monitor.h (monitor_close): Add 'self' argument.
4102 * monitor.c (monitor_close): Add 'self' argument.
4103 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
4104 * linux-nat.c (linux_nat_close): Add argument.
4105 * go32-nat.c (go32_close): Add 'self' argument.
4106 * exec.c (exec_close_1): Add 'self' argument.
4107 * ctf.c (ctf_close): Add 'self' argument.
4108 * corelow.c (core_close): Add 'self' argument.
4109 (core_close_cleanup): Update.
4110 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
4111 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
4113 2014-02-19 Tom Tromey <tromey@redhat.com>
4115 * remote.c (remote_load): New function.
4116 (init_remote_ops): Use it.
4118 2014-02-19 Tom Tromey <tromey@redhat.com>
4120 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
4122 * common/linux-btrace.h (linux_supports_btrace): Update.
4123 * remote.c (remote_supports_btrace): Add "self" argument.
4124 * target-delegates.c: Rebuild.
4125 * target.c (target_supports_btrace): Remove.
4126 * target.h (struct target_ops) <to_supports_btrace>: Add
4127 target_ops argument.
4128 (target_supports_btrace): New define.
4130 2014-02-19 Tom Tromey <tromey@redhat.com>
4132 * record-full.c (record_full_beneath_to_resume_ops)
4133 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
4134 (record_full_beneath_to_wait)
4135 (record_full_beneath_to_store_registers_ops)
4136 (record_full_beneath_to_store_registers)
4137 (record_full_beneath_to_xfer_partial_ops)
4138 (record_full_beneath_to_xfer_partial)
4139 (record_full_beneath_to_insert_breakpoint_ops)
4140 (record_full_beneath_to_insert_breakpoint)
4141 (record_full_beneath_to_remove_breakpoint_ops)
4142 (record_full_beneath_to_remove_breakpoint)
4143 (record_full_beneath_to_stopped_by_watchpoint)
4144 (record_full_beneath_to_stopped_data_address)
4145 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
4146 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
4147 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
4148 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
4149 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
4150 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
4151 (tmp_to_stopped_data_address, tmp_to_async): Remove.
4152 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
4153 (record_full_resume, record_full_wait_1)
4154 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
4155 (record_full_store_registers, record_full_xfer_partial)
4156 (record_full_insert_breakpoint, record_full_remove_breakpoint)
4157 (record_full_async, record_full_core_xfer_partial): Use target
4159 * target-delegates.c: Rebuild.
4160 * target.c (current_xfer_partial): Remove.
4161 (update_current_target): Do not INHERIT or de_fault
4162 to_insert_breakpoint, to_remove_breakpoint,
4163 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
4164 to_is_async_p, to_async. Do not set to_xfer_partial field.
4165 (default_xfer_partial): Simplify.
4166 (current_xfer_partial): Remove.
4167 (target_wait, target_resume): Simplify.
4168 (find_default_can_async_p, find_default_is_async_p): Update.
4169 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
4170 to_xfer_partial, to_stopped_by_watchpoint,
4171 to_stopped_data_address.
4172 (target_store_registers): Simplify.
4173 (forward_target_remove_breakpoint)
4174 (forward_target_insert_breakpoint): Remove.
4175 (target_remove_breakpoint, target_insert_breakpoint)
4176 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
4177 * target.h (struct target_ops) <to_resume, to_wait,
4178 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
4179 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
4180 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
4182 (forward_target_remove_breakpoint)
4183 (forward_target_insert_breakpoint): Remove.
4184 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
4186 (record_btrace_insert_breakpoint): Delegate directly.
4188 2014-02-19 Tom Tromey <tromey@redhat.com>
4191 * target-delegates.c: New file.
4192 * target.c: Include target-delegates.c.
4193 (init_dummy_target): Call install_dummy_methods.
4194 (complete_target_initialization): Call install_delegators.
4195 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
4196 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
4197 * make-target-delegates: New file.
4199 2014-02-19 Tom Tromey <tromey@redhat.com>
4201 * record.c (find_record_target): Use find_target_at.
4202 * target.c (find_target_at): New function.
4203 * target.h (find_target_at): Declare.
4205 2014-02-19 Tom Tromey <tromey@redhat.com>
4207 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
4209 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
4211 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
4212 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
4214 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
4216 * linux-nat.c (save_sigtrap): Update.
4217 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
4218 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
4219 (linux_nat_close): Update.
4220 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
4222 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
4224 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
4225 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
4226 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
4227 (tmp_to_async): Add 'ops' argument.
4228 (record_full_stopped_by_watchpoint, record_full_async)
4229 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
4231 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
4232 (m32r_stopped_by_watchpoint): Add 'ops' argument.
4233 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
4234 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
4235 (remote_is_async_p, remote_async): Add 'ops' argument.
4236 (remote_stopped_data_address): Update.
4237 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
4238 * target.c (update_current_target)
4239 (find_default_can_async_p, find_default_is_async_p): Update.
4240 (init_dummy_target): Update.
4241 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
4242 * target.h (struct target_ops) <to_stopped_by_watchpoint,
4243 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
4244 (target_can_async_p, target_is_async_p, target_async)
4245 (target_stopped_by_watchpoint): Update.
4247 2014-02-19 Yao Qi <yao@codesourcery.com>
4250 * gdbarch.sh: Remove startup_gdbarch.
4251 * gdbarch.c: Regenerated.
4252 * gdbarch.h: Likewise.
4254 2014-02-17 Kevin Buettner <kevinb@redhat.com>
4256 * rl78-tdep.c (rl78_g10_register_name): New function.
4257 (rl78_return_value): Add g10 support.
4258 (rl78_gdbarch_init): Register rl78_g10_register_name for the
4261 2014-02-17 Doug Evans <xdje42@gmail.com>
4263 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
4264 (SUBDIR_GUILE_SRCS): Ditto.
4265 (scm-gsmob.o): Ditto.
4267 2014-02-17 Yao Qi <yao@codesourcery.com>
4269 * gnu-nat.c (ILL_RPC): Declare defined function.
4271 2014-02-17 Yao Qi <yao@codesourcery.com>
4273 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
4274 mach_msg_type_number_t.
4275 (gnu_write_inferior): Likewise.
4277 2014-02-17 Yao Qi <yao@codesourcery.com>
4279 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
4281 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
4282 (inf_validate_procs, inf_signal): Likewise.
4283 (S_exception_raise_request): Likewise.
4284 (do_mach_notify_dead_name): Likewise.
4285 (steal_exc_port): Likewise.
4286 (gnu_read_inferior): Change 'copy_count''s type to
4287 mach_msg_type_number_t.
4288 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
4291 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
4293 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
4294 flag. Adjust all users; in particular...
4295 (gnu_wait): ..., don't decrement its value in here...
4296 (gnu_create_inferior): ..., and instead set the flag in here,
4297 around the startup_inferior call, and call that one with
4298 START_INFERIOR_TRAPS_EXPECTED.
4300 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
4301 (ILL_RPC): ... new macro.
4302 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
4303 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
4304 (do_mach_notify_send_once, S_proc_setmsgport_reply)
4305 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
4306 functions with ILL_RPC macro.
4307 (S_proc_pid2task_reply, S_proc_task2pid_reply)
4308 (S_proc_task2proc_reply, S_proc_proc2task_reply)
4309 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
4310 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
4311 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
4312 (S_proc_getlogin_reply, S_proc_getsid_reply)
4313 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
4314 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
4315 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
4316 (S_proc_getnports_reply, S_proc_is_important_reply)
4317 (S_proc_get_code_reply): New stub functions, generated with
4320 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
4321 collected the type check structures.
4323 * reply_mig_hack.awk: Don't expect to see the auto keyword.
4325 2014-02-14 Doug Evans <dje@google.com>
4327 * target.c (target_write_partial): Fix result type.
4329 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
4331 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
4332 the proper offsets to access fpregset_t.
4334 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
4336 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
4337 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
4338 * h8300-tdep.c (setmachinelist): Remove global.
4339 * hppa-tdep.c (hppa_sigtramp): Remove global.
4340 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
4341 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
4342 * ravenscar-thread.c (update_target_observer): Remove global.
4343 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
4345 2014-02-12 Tom Tromey <tromey@redhat.com>
4347 * common/rsp-low.c: Update comments.
4348 * common/rsp-low.h: Update comments.
4350 2014-02-12 Tom Tromey <tromey@redhat.com>
4352 * common/rsp-low.c (convert_ascii_to_int): Remove.
4353 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
4355 2014-02-12 Tom Tromey <tromey@redhat.com>
4357 * common/rsp-low.h (unhexify): Don't declare.
4358 * common/rsp-low.c (unhexify): Remove.
4360 2014-02-12 Tom Tromey <tromey@redhat.com>
4362 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
4363 * common/rsp-low.c (convert_int_to_ascii): Remove.
4365 2014-02-12 Tom Tromey <tromey@redhat.com>
4367 * common/rsp-low.h (hexify): Don't declare.
4368 * common/rsp-low.c (hexify): Remove.
4370 2014-02-12 Tom Tromey <tromey@redhat.com>
4372 * common/rsp-low.c (hexify): Never take strlen of argument.
4374 2014-02-12 Tom Tromey <tromey@redhat.com>
4376 * common/rsp-low.c (bin2hex): Never take strlen of argument.
4377 * remote.c (extended_remote_run, remote_rcmd)
4378 (remote_download_trace_state_variable, remote_save_trace_data)
4379 (remote_set_trace_notes): Update.
4380 * tracepoint.c (encode_source_string, tfile_write_status)
4381 (tfile_write_uploaded_tsv): Update.
4383 2014-02-12 Tom Tromey <tromey@redhat.com>
4385 * tracepoint.c: Include rsp-low.h.
4386 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
4387 * remote.c: Include rsp-low.h.
4388 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
4389 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
4390 (remote_unescape_input): Move to common/rsp-low.c.
4391 * common/rsp-low.h: New file.
4392 * common/rsp-low.c: New file.
4393 * Makefile.in (SFILES): Add common/rsp-low.c.
4394 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
4395 (COMMON_OBS): Add rsp-low.o.
4396 (rsp-low.o): New target.
4398 2014-02-12 Tom Tromey <tromey@redhat.com>
4400 * utils.h: Include print-utils.h.
4401 (host_address_to_string, plongest, pulongest, phex, phex_nz)
4402 (int_string, core_addr_to_string, core_addr_to_string_nz)
4403 (hex_string, hex_string_custom): Don't declare.
4404 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
4405 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
4406 (hex_string_custom, int_string, core_addr_to_string)
4407 (core_addr_to_string_nz, host_address_to_string): Move to
4408 common/print-utils.c.
4409 * common/print-utils.h: New file.
4410 * common/print-utils.c: New file
4411 * Makefile.in (SFILES): Add common/print-utils.c.
4412 (HFILES_NO_SRCDIR): Add common/print-utils.h.
4413 (COMMON_OBS): Add print-utils.o.
4414 (print-utils.o): New target.
4416 2014-02-12 Tom Tromey <tromey@redhat.com>
4418 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
4420 2014-02-12 Mark Kettenis <kettenis@gnu.org>
4422 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
4424 2014-02-12 Mark Kettenis <kettenis@gnu.org>
4426 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
4427 if a PT_IO ptrace request returns sucessfully but indicates that 0
4428 bytes were transferred.
4430 2014-02-12 Pedro Alves <palves@redhat.com>
4431 Kevin Buettner <kevinb@redhat.com>
4433 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
4434 TYPE_INSTANCE_FLAG_CODE_SPACE.
4436 2014-02-12 Pedro Alves <palves@redhat.com>
4438 * h8300-tdep.c (pseudo_from_raw_register)
4439 (raw_from_pseudo_register): New functions.
4440 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
4443 2014-02-12 Pedro Alves <palves@redhat.com>
4445 * h8300-tdep.c (h8300_register_sim_regno): New function.
4446 (h8300_gdbarch_init): Install h8300_register_sim_regno as
4447 gdbarch_register_sim_regno hook.
4449 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
4451 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
4453 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
4455 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
4457 2014-02-12 Mark Kettenis <kettenis@gnu.org>
4459 * obsd-tdep.h (obsd_init_abi): New prototype.
4460 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
4461 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
4462 (obsd_init_abi): New functions.
4463 * i386obsd-tdep.c: Include "obsd-tdep.h".
4464 (i386obsd_init_abi): Call obsd_init_abi.
4465 * amd64obsd-tdep.c: Include "obsd-tdep.h".
4466 (amd64obsd_init_abi): Call obsd_init_abi.
4467 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
4468 obsd-tdep.c to gdb_target_obs.
4470 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
4472 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
4473 double float arguments to 16-byte in the argument slots.
4475 2014-02-11 Doug Evans <xdje42@gmail.com>
4477 * configure.ac: Don't crash if pkg-config is not found and guile
4478 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
4480 * configure: Regenerate.
4482 2014-02-11 Yao Qi <yao@codesourcery.com>
4484 * aix-thread.c (aix_thread_xfer_partial): Update comments.
4485 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
4486 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
4487 * gnu-nat.c (gnu_xfer_memory): Likewise.
4488 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
4489 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
4490 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
4491 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
4493 2014-02-11 Yao Qi <yao@codesourcery.com>
4495 * target.h (enum target_xfer_error): Rename to ...
4496 (enum target_xfer_status): ... it. New. All users updated.
4497 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
4499 (TARGET_XFER_STATUS_ERROR_P): New macro.
4500 (target_xfer_error_to_string): Remove declaration.
4501 (target_xfer_status_to_string): Declare.
4502 (target_xfer_partial_ftype): Adjust it.
4503 (struct target_ops) <to_xfer_partial>: Return
4504 target_xfer_status. Add argument xfered_len. Update
4506 * target.c (target_xfer_error_to_string): Rename to ...
4507 (target_xfer_status_to_string): ... it. New. All callers
4509 (target_read_live_memory): Likewise. Call target_xfer_partial
4510 instead of target_read.
4511 (memory_xfer_live_readonly_partial): Return
4512 target_xfer_status. Add argument xfered_len.
4513 (raw_memory_xfer_partial): Likewise.
4514 (memory_xfer_partial_1): Likewise.
4515 (memory_xfer_partial): Likewise.
4516 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
4517 properly. Update debug message.
4518 (default_xfer_partial, current_xfer_partial): Likewise.
4519 (target_write_partial): Likewise.
4520 (target_read_partial): Likewise. All callers updated.
4521 (read_whatever_is_readable): Likewise.
4522 (target_write_with_progress): Likewise.
4523 (target_read_alloc_1): Likewise.
4525 * aix-thread.c (aix_thread_xfer_partial): Likewise.
4526 * auxv.c (procfs_xfer_auxv): Likewise.
4527 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
4528 * bfd-target.c (target_bfd_xfer_partial): Likewise.
4529 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
4530 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
4531 * corefile.c (read_memory): Adjust.
4532 * corelow.c (core_xfer_partial): Likewise.
4533 * ctf.c (ctf_xfer_partial): Likewise.
4534 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
4536 (darwin_xfer_partial): Likewise.
4537 * exec.c (section_table_xfer_memory_partial): Likewise. All
4539 (exec_xfer_partial): Likewise.
4540 * exec.h (section_table_xfer_memory_partial): Update
4542 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
4544 (gnu_xfer_partial): Likewise.
4545 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
4546 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
4547 (ia64_hpux_xfer_solib_got): Likewise.
4548 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
4549 type of 'partial_len' to ULONGEST.
4550 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
4551 * linux-nat.c (linux_xfer_siginfo ): Likewise.
4552 (linux_nat_xfer_partial): Likewise.
4553 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
4554 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
4555 * monitor.c (monitor_xfer_memory): Likewise.
4556 (monitor_xfer_partial): Likewise.
4557 * procfs.c (procfs_xfer_partial): Likewise.
4558 * record-btrace.c (record_btrace_xfer_partial): Likewise.
4559 * record-full.c (record_full_xfer_partial): Likewise.
4560 (record_full_core_xfer_partial): Likewise.
4561 * remote-sim.c (gdbsim_xfer_memory): Likewise.
4562 (gdbsim_xfer_partial): Likewise.
4563 * remote.c (remote_write_bytes_aux): Likewise. All callers
4565 (remote_write_bytes, remote_read_bytes): Likewise. All
4567 (remote_flash_erase): Likewise. All callers updated.
4568 (remote_write_qxfer): Likewise. All callers updated.
4569 (remote_read_qxfer): Likewise. All callers updated.
4570 (remote_xfer_partial): Likewise.
4571 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
4572 (rs6000_xfer_shared_libraries): Likewise.
4573 * sol-thread.c (sol_thread_xfer_partial): Likewise.
4574 (sol_thread_xfer_partial): Likewise.
4575 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
4576 (sparc_xfer_partial): Likewise.
4577 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
4579 (spu_xfer_partial): Likewise.
4580 * spu-multiarch.c (spu_xfer_partial): Likewise.
4581 * tracepoint.c (tfile_xfer_partial): Likewise.
4582 * windows-nat.c (windows_xfer_memory): Likewise.
4583 (windows_xfer_shared_libraries): Likewise.
4584 (windows_xfer_partial): Likewise.
4585 * valprint.c: Replace 'target_xfer_error' with
4586 'target_xfer_status' in comments.
4588 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
4590 Checked in by Joel Brobecker <brobecker@adacore.com>.
4591 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
4593 2014-02-11 Joel Brobecker <brobecker@adacore.com>
4595 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
4596 function parameters.
4598 2014-02-10 Will Newton <will.newton@linaro.org>
4600 * elfread.c (elf_rel_plt_read): Look for a .got section if
4601 looking up .got.plt fails.
4602 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
4603 on address passed to elf_gnu_ifunc_record_cache.
4604 (elf_gnu_ifunc_resolve_addr): Likewise.
4605 (elf_gnu_ifunc_resolver_return_stop): Likewise.
4607 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
4609 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
4610 (X_RETTURN): New macro.
4611 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
4613 * sparc64-tdep.c (sparc64_init_abi): Hook
4614 sparc_in_function_epilogue_p.
4616 2014-02-10 Gary Benson <gbenson@redhat.com>
4618 * symfile-debug.c (debug_qf_expand_symtabs_matching):
4619 Rename name_matcher to symbol_matcher.
4621 2014-02-10 Gary Benson <gbenson@redhat.com>
4623 * symfile-debug.c (debug_qf_expand_symtabs_matching):
4624 Use expand_symtabs_file_matcher_ftype and
4625 expand_symtabs_symbol_matcher_ftype.
4627 2014-02-10 Joel Brobecker <brobecker@adacore.com>
4629 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
4630 (struct ada_symbol_cache): New.
4631 (ada_free_symbol_cache): Forward declare.
4632 (struct ada_pspace_data): New.
4633 (ada_pspace_data_handle): New static global.
4634 (get_ada_pspace_data, ada_pspace_data_cleanup)
4635 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
4636 (cache_space, cache): Delete, now folded inside struct
4638 (ada_get_symbol_cache): New function.
4639 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
4641 (_initialize_ada_language): Remove initialization of cache_space.
4642 Move call to observer_attach_inferior_exit up, grouping it
4643 with the other observer registrations inside this function.
4644 Rename command to be more general. Add call to
4645 register_program_space_data_with_cleanup.
4647 2014-02-10 Joel Brobecker <brobecker@adacore.com>
4649 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
4650 ada_new_objfile_observer.
4651 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
4652 (_initialize_tasks): Update uses of ada_new_objfile_observer
4653 and ada_tasks_normal_stop_observer.
4655 2014-02-10 Joel Brobecker <brobecker@adacore.com>
4657 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
4658 returned by the 'Length attribute to integer.
4660 2014-02-10 Joel Brobecker <brobecker@adacore.com>
4662 * ada-lang.c (_initialize_ada_language): Initialize
4663 cache_space obstack.
4665 2014-02-10 Joel Brobecker <brobecker@adacore.com>
4667 * ada-lang.c (HASH_SIZE): New macro.
4668 (struct cache_entry): New type.
4669 (cache_space, cache): New static globals.
4670 (ada_clear_symbol_cache, find_entry): New functions.
4671 (lookup_cached_symbol, cache_symbol): Implement.
4672 (ada_new_objfile_observer, ada_free_objfile_observer): New.
4673 (_initialize_ada_language): Attach ada_new_objfile_observer
4674 and ada_free_objfile_observer.
4676 2014-02-10 Joel Brobecker <brobecker@adacore.com>
4678 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
4679 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
4680 struct block * parameter.
4681 (ada_lookup_symbol_list_worker): Constify local variable "block".
4682 Remove cast which is no longer necessary.
4684 2014-02-10 Doug Evans <xdje42@gmail.com>
4686 Add Guile as an extension language.
4687 * NEWS: Mention Guile scripting.
4688 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
4689 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
4690 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
4691 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
4692 (CLIBS): Add GUILE_LIBS.
4693 (install-guile): New rule.
4694 (guile.o): New rule.
4695 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
4696 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
4697 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
4698 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
4699 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
4700 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
4701 (scm-type.o, scm-utils.o, scm-value.o): New rules.
4702 * configure.ac: New option --with-guile.
4703 * configure: Regenerate.
4704 * config.in: Regenerate.
4705 * auto-load.c: Remove #include "python/python.h". Add #include
4706 "gdb/section-scripts.h".
4707 (source_section_scripts): Handle Guile scripts.
4708 (_initialize_auto_load): Add name of Guile objfile script to
4709 scripts-directory help text.
4710 * breakpoint.c (condition_command): Tweak comment to include Scheme.
4711 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
4712 (struct breakpoint): New member scm_bp_object.
4713 * defs.h (enum command_control_type): New value guile_control.
4714 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
4716 (show_user): Update comment.
4717 (_initialize_cli_cmds): Update help text for "show user". Update help
4718 text for max-user-call-depth.
4719 * cli/cli-script.c: Remove #include "python/python.h". Add #include
4721 (multi_line_command_p): Add guile_control.
4722 (print_command_lines): Handle guile_control.
4723 (execute_control_command, recurse_read_control_structure): Ditto.
4724 (process_next_line): Recognize "guile" commands.
4725 * disasm.c (gdb_disassemble_info): Make non-static.
4726 * disasm.h: #include "dis-asm.h".
4727 (struct gdbarch): Add forward decl.
4728 (gdb_disassemble_info): Declare.
4729 * extension.c: #include "guile/guile.h".
4730 (extension_languages): Add guile.
4731 (get_ext_lang_defn): Handle EXT_LANG_GDB.
4732 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
4733 * gdbtypes.c (get_unsigned_type_max): New function.
4734 (get_signed_type_minmax): New function.
4735 * gdbtypes.h (get_unsigned_type_max): Declare.
4736 (get_signed_type_minmax): Declare.
4737 * guile/README: New file.
4738 * guile/guile-internal.h: New file.
4739 * guile/guile.c: New file.
4740 * guile/guile.h: New file.
4741 * guile/scm-arch.c: New file.
4742 * guile/scm-auto-load.c: New file.
4743 * guile/scm-block.c: New file.
4744 * guile/scm-breakpoint.c: New file.
4745 * guile/scm-disasm.c: New file.
4746 * guile/scm-exception.c: New file.
4747 * guile/scm-frame.c: New file.
4748 * guile/scm-gsmob.c: New file.
4749 * guile/scm-iterator.c: New file.
4750 * guile/scm-lazy-string.c: New file.
4751 * guile/scm-math.c: New file.
4752 * guile/scm-objfile.c: New file.
4753 * guile/scm-ports.c: New file.
4754 * guile/scm-pretty-print.c: New file.
4755 * guile/scm-safe-call.c: New file.
4756 * guile/scm-string.c: New file.
4757 * guile/scm-symbol.c: New file.
4758 * guile/scm-symtab.c: New file.
4759 * guile/scm-type.c: New file.
4760 * guile/scm-utils.c: New file.
4761 * guile/scm-value.c: New file.
4762 * guile/lib/gdb.scm: New file.
4763 * guile/lib/gdb/boot.scm: New file.
4764 * guile/lib/gdb/experimental.scm: New file.
4765 * guile/lib/gdb/init.scm: New file.
4766 * guile/lib/gdb/iterator.scm: New file.
4767 * guile/lib/gdb/printing.scm: New file.
4768 * guile/lib/gdb/types.scm: New file.
4769 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
4770 (VPATH): Add $(GUILE_SRCDIR).
4771 (GUILE_DIR): New variable.
4772 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
4773 (all): Add stamp-guile dependency.
4774 (stamp-guile): New rule.
4775 (clean-guile, install-guile, uninstall-guile): New rules.
4776 (install-only): Add install-guile dependency.
4777 (uninstall): Add uninstall-guile dependency.
4778 (clean): Add clean-guile dependency.
4780 2014-02-09 Doug Evans <xdje42@gmail.com>
4782 Revert this patch (which I approved, mea culpa).
4784 2014-02-08 Mark Kettenis <kettenis@gnu.org>
4786 * Makefile.in (all-lib): Remove.
4787 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
4789 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4791 Fix Python stack corruption.
4792 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
4795 2014-02-08 Mark Kettenis <kettenis@gnu.org>
4797 * Makefile.in (all-lib): Remove.
4798 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
4800 2014-02-07 Doug Evans <dje@google.com>
4802 * extension-priv.h (extension_language_script_ops): Add comment.
4803 (extension_language_ops): Add comment.
4804 (active_ext_lang_state): Fix typo in comment.
4806 2014-02-07 Pedro Alves <palves@redhat.com>
4808 PR breakpoints/16292
4809 * infrun.c (handle_signal_stop) <signal arrives while stepping
4810 over a breakpoint>: Switch back to the stepping thread.
4812 2014-02-07 Yao Qi <yao@codesourcery.com>
4814 * target.c (target_xfer_partial): Return zero if LEN is zero.
4816 2014-02-07 Yao Qi <yao@codesourcery.com>
4818 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
4819 (ld_so_xfer_auxv): Likewise.
4820 * bfd-target.c (target_bfd_xfer_partial): Likewise.
4821 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
4822 * corelow.c (core_xfer_partial): Likewise.
4823 * ctf.c (ctf_xfer_partial): Likewise.
4824 * darwin-nat.c (darwin_read_dyld_info): Likewise.
4825 (darwin_xfer_partial): Likewise.
4826 * exec.c (exec_xfer_partial): Likewise.
4827 * gnu-nat.c (gnu_xfer_partial): Likewise.
4828 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
4829 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
4830 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
4831 * linux-nat.c (linux_xfer_siginfo): Likewise.
4832 (linux_proc_xfer_spu): Likewise.
4833 * procfs.c (procfs_xfer_partial): Likewise.
4834 * record-full.c (record_full_xfer_partial): Likewise.
4835 (record_full_core_xfer_partial): Likewise.
4836 * remote-sim.c (gdbsim_xfer_partial): Likewise.
4837 * remote.c (remote_write_qxfer): Likewise.
4838 (remote_write_qxfer, remote_read_qxfer): Likewise.
4839 (remote_xfer_partial): Likewise.
4840 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
4841 (rs6000_xfer_shared_libraries): Likewise.
4842 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
4843 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
4844 (spu_xfer_partial): Likewise.
4845 * target.c (memory_xfer_partial_1): Likewise.
4846 * tracepoint.c (tfile_xfer_partial): Likewise.
4847 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
4848 (windows_xfer_partial): Likewise.
4850 2014-02-07 Yao Qi <yao@codesourcery.com>
4852 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
4854 (core_xfer_shared_libraries_aix): Likewise.
4855 * gdbarch.c, gdbarch.h: Regenerated.
4856 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
4857 ULONGEST. Change 'len_avail' type to ULONGEST.
4858 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
4859 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
4861 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
4863 2014-02-07 Yao Qi <yao@codesourcery.com>
4865 * corefile.c (memory_error): Get 'exception' from ERR and pass
4866 'exception' to throw_error.
4868 2014-02-06 Doug Evans <xdje42@gmail.com>
4870 * configure.ac (libpython checking): Remove all but python.o from
4871 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
4872 * configure: Regenerate.
4874 * Makefile.in (SFILES): Add extension.c.
4875 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
4876 (COMMON_OBS): Add extension.o.
4877 * extension.h: New file.
4878 * extension-priv.h: New file.
4879 * extension.c: New file.
4881 * python/python-internal.h: #include "extension.h".
4882 (gdbpy_auto_load_enabled): Declare.
4883 (gdbpy_apply_val_pretty_printer): Declare.
4884 (gdbpy_apply_frame_filter): Declare.
4885 (gdbpy_preserve_values): Declare.
4886 (gdbpy_breakpoint_cond_says_stop): Declare.
4887 (gdbpy_breakpoint_has_cond): Declare.
4888 (void source_python_script_for_objfile): Delete.
4889 * python/python.c: #include "extension-priv.h".
4890 Delete inclusion of "observer.h".
4891 (extension_language_python): Moved here and renamed from
4892 script_language_python in py-auto-load.c.
4893 Redefined to be of type extension_language_defn.
4894 (python_extension_script_ops): New global.
4895 (python_extension_ops): New global.
4896 (struct python_env): New member previous_active.
4897 (restore_python_env): Call restore_active_ext_lang.
4898 (ensure_python_env): Call set_active_ext_lang.
4899 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
4901 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
4903 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
4905 (gdbpy_eval_from_control_command): Renamed from
4906 eval_python_from_control_command, made static. New arg extlang.
4907 (gdbpy_source_script) Renamed from source_python_script, made static.
4909 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
4910 result to int. New arg extlang.
4911 (gdbpy_source_objfile_script): Renamed from
4912 source_python_script_for_objfile, made static. New arg extlang.
4913 (gdbpy_start_type_printers): Renamed from start_type_printers, made
4914 static. New args extlang, extlang_printers. Change result type to
4916 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
4917 static. New arg extlang. Rename arg printers to extlang_printers
4918 and change type to ext_lang_type_printers *.
4919 (gdbpy_free_type_printers): Renamed from free_type_printers, made
4920 static. Replace argument arg with extlang, extlang_printers.
4921 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
4922 (!HAVE_PYTHON, source_python_script): Delete.
4923 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
4924 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
4925 (!HAVE_PYTHON, start_type_printers): Delete.
4926 (!HAVE_PYTHON, apply_type_printers): Delete.
4927 (!HAVE_PYTHON, free_type_printers): Delete.
4928 (_initialize_python): Delete call to observer_attach_before_prompt.
4929 (finalize_python): Set/restore active extension language.
4930 (gdbpy_finish_initialization) Renamed from
4931 finish_python_initialization, made static. New arg extlang.
4932 (gdbpy_initialized): New function.
4933 * python/python.h: #include "extension.h". Delete #include
4934 "value.h", "mi/mi-cmds.h".
4935 (extension_language_python): Declare.
4936 (GDBPY_AUTO_FILE_NAME): Delete.
4937 (enum py_bt_status): Moved to extension.h and renamed to
4939 (enum frame_filter_flags): Moved to extension.h.
4940 (enum py_frame_args): Moved to extension.h and renamed to
4941 ext_lang_frame_args.
4942 (finish_python_initialization): Delete.
4943 (eval_python_from_control_command): Delete.
4944 (source_python_script): Delete.
4945 (apply_val_pretty_printer): Delete.
4946 (apply_frame_filter): Delete.
4947 (preserve_python_values): Delete.
4948 (gdbpy_script_language_defn): Delete.
4949 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
4950 (start_type_printers, apply_type_printers, free_type_printers): Delete.
4952 * auto-load.c: #include "extension.h".
4953 (GDB_AUTO_FILE_NAME): Delete.
4954 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
4955 (script_language_gdb): Delete, moved to extension.c and renamed to
4956 extension_language_gdb.
4957 (source_gdb_script_for_objfile): Delete.
4958 (auto_load_pspace_info): New member unsupported_script_warning_printed.
4959 (loaded_script): Change type of language member to
4960 struct extension_language_defn *.
4961 (init_loaded_scripts_info): Initialize
4962 unsupported_script_warning_printed.
4963 (maybe_add_script): Make static. Change type of language arg to
4964 struct extension_language_defn *.
4965 (clear_section_scripts): Reset unsupported_script_warning_printed.
4966 (auto_load_objfile_script_1): Rewrite to use extension language API.
4967 (auto_load_objfile_script): Make public. Remove support-compiled-in
4968 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
4969 (source_section_scripts): Rewrite to use extension language API.
4970 (load_auto_scripts_for_objfile): Rewrite to use
4971 auto_load_scripts_for_objfile.
4972 (collect_matching_scripts_data): Change type of language member to
4973 struct extension_language_defn *.
4974 (auto_load_info_scripts): Change type of language arg to
4975 struct extension_language_defn *.
4976 (unsupported_script_warning_print): New function.
4977 (script_not_found_warning_print): Make static.
4978 (_initialize_auto_load): Rewrite construction of scripts-directory
4980 * auto-load.h (struct objfile): Add forward decl.
4981 (struct script_language): Delete.
4982 (struct auto_load_pspace_info): Add forward decl.
4983 (struct extension_language_defn): Add forward decl.
4984 (maybe_add_script): Delete.
4985 (auto_load_objfile_script): Declare.
4986 (script_not_found_warning_print): Delete.
4987 (auto_load_info_scripts): Update prototype.
4988 (auto_load_gdb_scripts_enabled): Declare.
4989 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
4990 auto_load_python_scripts_enabled and made public.
4991 (script_language_python): Delete, moved to python.c.
4992 (gdbpy_script_language_defn): Delete.
4993 (info_auto_load_python_scripts): Update to use
4994 extension_language_python.
4996 * breakpoint.c (condition_command): Replace call to
4997 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
4998 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
4999 with call to breakpoint_ext_lang_cond_says_stop.
5000 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
5001 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
5002 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
5003 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
5005 (local_setattro): Print name of extension language with existing
5008 * valprint.c (val_print, value_print): Update to call
5009 apply_ext_lang_val_pretty_printer.
5010 * cp-valprint.c (cp_print_value): Update call to
5011 apply_ext_lang_val_pretty_printer.
5012 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
5013 (gdbpy_apply_val_pretty_printer): Renamed from
5014 apply_val_pretty_printer. New arg extlang.
5015 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
5017 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
5018 extension language API.
5019 * cli/cli-script.c (execute_control_command): Update to call
5020 eval_ext_lang_from_control_command.
5022 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
5023 enum ext_lang_bt_status values. Update call to
5024 apply_ext_lang_frame_filter.
5025 (mi_cmd_stack_list_locals): Ditto.
5026 (mi_cmd_stack_list_args): Ditto.
5027 (mi_cmd_stack_list_variables): Ditto.
5028 * mi/mi-main.c: Delete #include "python/python-internal.h".
5029 Add #include "extension.h".
5030 (mi_cmd_list_features): Replace reference to python internal variable
5031 gdb_python_initialized with call to ext_lang_initialized_p.
5033 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
5034 Update to use enum ext_lang_frame_args. Update to call
5035 apply_ext_lang_frame_filter.
5036 * python/py-framefilter.c (extract_sym): Update to use enum
5038 (extract_value, py_print_type, py_print_value): Ditto.
5039 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
5040 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
5041 (py_print_frame): Ditto.
5042 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
5043 New arg extlang. Update to use enum ext_lang_bt_status.
5045 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
5046 finish_python_initialization. Replace with call to
5047 finish_ext_lang_initialization.
5049 * typeprint.c (do_free_global_table): Update to call
5050 free_ext_lang_type_printers.
5051 (create_global_typedef_table): Update to call
5052 start_ext_lang_type_printers.
5053 (find_global_typedef): Update to call apply_ext_lang_type_printers.
5054 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
5055 (type_print_options): Change type of global_printers from "void *"
5056 to "struct ext_lang_type_printers *".
5058 * value.c (preserve_values): Update to call preserve_ext_lang_values.
5059 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
5060 (gdbpy_preserve_values): Renamed from preserve_python_values.
5062 (!HAVE_PYTHON, preserve_python_values): Delete.
5064 * utils.c (quit_flag): Delete, moved to extension.c.
5065 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
5068 * eval.c: Delete #include "python/python.h".
5069 * main.c: Delete #include "python/python.h".
5071 * defs.h: Update comment.
5073 2014-02-06 Joel Brobecker <brobecker@adacore.com>
5077 2014-02-05 Mark Kettenis <kettenis@gnu.org>
5079 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
5082 2014-02-05 Yao Qi <yao@codesourcery.com>
5084 * remote.c (remote_pass_signals): Remove local 'buf' and use
5086 (remote_program_signals): Likewise.
5088 2014-02-05 Yao Qi <yao@codesourcery.com>
5090 * ctf.c: Include "inferior.h" and "gdbthread.h".
5091 (CTF_PID): A new macro.
5092 (ctf_open): Call inferior_appeared and add_thread_silent.
5093 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
5094 (ctf_thread_alive): New function.
5095 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
5097 2014-02-05 Yao Qi <yao@codesourcery.com>
5101 2013-05-24 Yao Qi <yao@codesourcery.com>
5103 * tracepoint.c (TFILE_PID): Remove.
5104 (tfile_open): Don't add thread and inferior.
5105 (tfile_close): Don't set 'inferior_ptid'. Don't call
5106 exit_inferior_silent.
5107 (tfile_thread_alive): Remove.
5108 (init_tfile_ops): Don't set field 'to_thread_alive' of
5111 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
5113 * remote.c (remote_start_remote): Call remote_check_symbols even
5114 if only symbol-file (not file) has been given.
5116 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5118 * gdbarch.sh (skip_entrypoint): New callback.
5119 * gdbarch.c, gdbarch.h: Regenerate.
5120 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
5121 * infrun.c (fill_in_stop_func): Likewise.
5122 * ppc-linux-tdep.c: Include "elf/ppc64.h".
5123 (ppc_elfv2_elf_make_msymbol_special): New function.
5124 (ppc_elfv2_skip_entrypoint): Likewise.
5125 (ppc_linux_init_abi): Install them for ELFv2.
5127 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5129 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
5130 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
5131 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
5132 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
5133 structures returned in GPRs.
5135 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5137 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
5138 offset to the stack parameter list for the ELFv2 ABI.
5140 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5142 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
5143 set_gdbarch_convert_from_func_ptr_addr and
5144 set_gdbarch_elf_make_msymbol_special for ELFv1.
5145 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
5146 function descriptors on ELFv1.
5147 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
5148 set up r12 at function entry.
5150 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5152 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
5153 (struct gdbarch_tdep): New member elf_abi.
5155 * rs6000-tdep.c: Include "elf/ppc64.h".
5156 (rs6000_gdbarch_init): Detect ELF ABI version.
5158 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5160 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
5161 within a register pair holding a DFP 128-bit value on little-endian.
5162 (ppc64_sysv_abi_return_value_base): Likewise.
5163 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
5164 (dfp_pseudo_register_write): Likewise.
5166 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5168 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
5169 offset on little-endian when passing _Decimal32.
5170 (ppc64_sysv_abi_return_value_base): Likewise for return values.
5172 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5174 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
5175 of the overlapped FP register within the VSX register on little-
5177 (efpr_pseudo_register_write): Likewise.
5179 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5181 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
5182 offset on little-endian when passing small structures.
5184 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5186 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
5187 (struct ppc64_sysv_argpos): New data structure.
5188 (ppc64_sysv_abi_push_float): Remove.
5189 (ppc64_sysv_abi_push_val): New function.
5190 (ppc64_sysv_abi_push_integer): Likewise.
5191 (ppc64_sysv_abi_push_freg): Likewise.
5192 (ppc64_sysv_abi_push_vreg): Likewise.
5193 (ppc64_sysv_abi_push_param): Likewise.
5194 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
5195 (ppc64_sysv_abi_return_value_base): New function.
5196 (ppc64_sysv_abi_return_value): Refactor to use it.
5198 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5200 * NEWS: Document new target powerpc64le-*-linux*.
5202 2014-02-04 Mark Kettenis <kettenis@gnu.org>
5204 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
5205 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
5207 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
5208 register set used in ELF core dumps. Add floating-point register set.
5210 2014-02-03 Kevin Buettner <kevinb@redhat.com>
5212 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
5213 dwarf2_to_gdb[] table using symbolic constants. Adjust
5214 penultimate entry from number representing the PC register
5215 to symbolic constant representing the MDR register. Add
5216 constant for the PC register to the end of the table.
5218 2014-02-03 Mark Kettenis <kettenis@gnu.org>
5220 * bsd-kvm.c: Include <sys/param.h>
5222 2014-02-03 Mark Kettenis <kettenis@gnu.org>
5224 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
5226 2014-01-31 Joel Brobecker <brobecker@adacore.com>
5228 * ada-lang.h (clear_ada_sym_cache): Delete.
5230 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
5232 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
5234 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
5236 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
5237 the sigreturn register save area only if the syscall is
5240 2014-01-29 Joel Brobecker <brobecker@adacore.com>
5242 * valops.c (value_slice): Minor reformatting.
5244 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
5246 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
5248 2014-01-28 Joel Brobecker <brobecker@adacore.com>
5250 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
5252 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
5253 (ada_ignore_descriptive_types_p): New static global.
5254 (find_parallel_type_by_descriptive_type): Return immediately
5255 if ada_ignore_descriptive_types_p is set.
5256 (_initialize_ada_language): Register new commands "maintenance
5257 set ada", "maintenance show ada", "maintenance set ada
5258 ignore-descriptive-types" and "maintenance show ada
5259 ignore-descriptive-types".
5260 * NEWS: Add entry for new "maint ada set/show
5261 ignore-descriptive-types" commands.
5263 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
5265 * record-btrace.c (record_btrace_close): Call btrace_teardown
5268 2014-01-27 Joel Brobecker <brobecker@adacore.com>
5270 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
5273 2014-01-27 Joel Brobecker <brobecker@adacore.com>
5275 * ada-typeprint (type_is_full_subrange_of_target_type):
5277 (print_range): Add parameter bounds_prefered_p. If not set,
5278 try printing range types using the name of their base type.
5279 (print_range_type): Add parameter bounds_prefered_p.
5280 Use it in call to print_range.
5281 (print_array_type, ada_print_type): Update calls to print_range
5282 and print_range_type.
5284 2014-01-27 Joel Brobecker <brobecker@adacore.com>
5286 * ada-typeprint.c (print_array_type, print_choices, print_range)
5287 (print_range_bound, print_dynamic_range_bound, print_range_type):
5290 2014-01-27 Joel Brobecker <brobecker@adacore.com>
5292 * ada-typeprint.c (print_range): Add missing empty line
5293 after local declaration.
5295 2014-01-27 Joel Brobecker <brobecker@adacore.com>
5297 * ada-valprint.c (print_optional_low_bound): Get index_type's
5298 target type for as long as it is a TYPE_CODE_RANGE.
5300 2014-01-27 Joel Brobecker <brobecker@adacore.com>
5302 * procfs.c (procfs_make_note_section): Remove assertion and
5305 2014-01-24 Yao Qi <yao@codesourcery.com>
5307 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
5308 * corelow.c (get_core_siginfo): Likewise.
5310 2014-01-24 Yao Qi <yao@codesourcery.com>
5312 * remote.c (remote_write_bytes_aux): Change type of 'len' to
5313 ULONGEST. Don't check 'len' is negative.
5314 (remote_write_bytes): Change type of 'len' to ULONGEST.
5316 2014-01-23 Tom Tromey <tromey@redhat.com>
5319 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
5320 Handle exception from frame.block.
5321 (FrameVars.fetch_frame_locals): Likewise.
5323 2014-01-23 Tom Tromey <tromey@redhat.com>
5326 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
5327 on a NULL pointer. Move "goto error" to correct place.
5329 2014-01-23 Tom Tromey <tromey@redhat.com>
5332 * python/py-framefilter.c (apply_frame_filter): Call
5333 ensure_python_env after computing gdbarch.
5335 2014-01-23 Yao Qi <yao@codesourcery.com>
5337 * target.c (raw_memory_xfer_partial): Change argument type
5338 from void * to gdb_byte *.
5339 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
5341 2014-01-22 Doug Evans <dje@google.com>
5343 New gdbserver option --debug-format=timestamp.
5346 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
5348 * syscalls/s390x-linux.xml: New file.
5349 * syscalls/s390-linux.xml: New file.
5350 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
5351 (XML_SYSCALL_FILENAME_S390X): Likewise.
5352 (op_svc): New enum value for SVC opcode.
5353 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
5354 (s390_linux_get_syscall_number): New function.
5355 (s390_gdbarch_init): Register '*get_syscall_number' and the
5356 syscall xml file name.
5357 * data-directory/Makefile.in (SYSCALLS_FILES): Add
5358 "s390-linux.xml" and "s390x-linux.xml".
5359 * NEWS: Announce new feature.
5361 2014-01-22 Baruch Siach <baruch@tkos.co.il>
5363 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
5365 2014-01-22 Pedro Alves <palves@redhat.com>
5367 * xtensa-config.c: Include defs.h.
5369 2014-01-22 Joel Brobecker <brobecker@adacore.com>
5371 * common/common-utils.h: Add "ARI:" comment beside __func__
5374 2014-01-22 Joel Brobecker <brobecker@adacore.com>
5376 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
5377 documentation a bit.
5379 2014-01-21 Roland McGrath <mcgrathr@google.com>
5381 * configure.ac: Call AM_PROG_INSTALL_STRIP.
5382 * configure: Regenerate.
5383 * aclocal.m4: Regenerate.
5384 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
5385 New substituted variables.
5386 (install-strip): New target.
5387 (INSTALL_SCRIPT): New substituted variable.
5388 (FLAGS_TO_PASS): Add it.
5389 (install-only): Use $(INSTALL_SCRIPT) rather than
5390 $(INSTALL_PROGRAM) for gcore.
5392 2014-01-20 Tom Tromey <tromey@redhat.com>
5394 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
5397 2014-01-20 Tom Tromey <tromey@redhat.com>
5399 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
5400 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
5401 (deprecated_cmd_warning, complete_on_cmdlist): Update.
5402 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
5403 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
5404 (struct cmd_list_element) <flags>: Remove.
5405 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
5406 doc_allocated>: New fields.
5407 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
5409 * maint.c (maintenance_do_deprecate): Update.
5410 * top.c (execute_command): Update.
5412 2014-01-20 Baruch Siach <baruch@tkos.co.il>
5414 * xtensa-linux-nat.c: Include asm/ptrace.h.
5416 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
5418 * Makefile.in (SFILES): Add d-support.c.
5419 (COMMON_OBS): Add d-support.o.
5420 * d-lang.h (d_parse_symbol): Add comment, now defined in
5422 * d-lang.c (parse_call_convention)
5423 (parse_attributes, parse_function_types)
5424 (parse_function_args, parse_type, parse_identifier)
5425 (call_convention_p, d_parse_symbol): Move functions to ...
5426 * d-support.c: ... New file.
5428 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
5430 * d-lang.h (d_parse_symbol): Add declaration.
5431 * d-lang.c (extract_identifiers)
5432 (extract_type_info): Remove functions.
5433 (parse_call_convention, parse_attributes)
5434 (parse_function_types, parse_function_args)
5435 (parse_type, parse_identifier, call_convention_p)
5436 (d_parse_symbol): New functions.
5437 (d_demangle): Use d_parse_symbol to demangle D symbols.
5439 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
5441 * d-lang.h (struct builtin_d_type): New data type.
5442 (builtin_d_type): Add declaration.
5443 * d-lang.c (d_language_arch_info, build_d_types)
5444 (builtin_d_type): New functions.
5445 (enum d_primitive_types): New data type.
5446 (d_language_defn): Change c_language_arch_info to
5447 d_language_arch_info.
5448 (d_type_data): New static variable.
5449 (_initialize_d_language): Initialize d_type_data.
5451 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
5453 * d-lang.h (d_main_name): Add declaration.
5454 * d-lang.c (d_main_name): New function.
5455 * symtab.c (find_main_name): Add call to d_main_name.
5457 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
5459 * d-lang.c (d_language_defn): Change macro_expansion_c to
5462 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
5464 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5466 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
5468 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
5469 gdb_exception" declaration.
5470 * remote.c (getpkt_or_notif_sane): Likewise.
5472 2014-01-17 Doug Evans <dje@google.com>
5474 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
5475 function, contents of dirnames_to_char_ptr_vec_append moved here.
5476 (delim_string_to_char_ptr_vec): New function.
5477 (dirnames_to_char_ptr_vec_append): Rewrite.
5478 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
5480 2014-01-17 Doug Evans <dje@google.com>
5482 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
5484 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
5485 #include "common-utils.h".
5486 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
5487 * common/vec.h (VEC_ASSERT_PASS): Update.
5488 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
5489 (MACH_CHECK_ERROR): Update.
5491 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
5493 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
5495 * gdbarch.h: Regenerate.
5497 2014-01-16 Tom Tromey <tromey@redhat.com>
5499 * value.c (struct value) <regnum>: Move earlier.
5501 2014-01-16 Tom Tromey <tromey@redhat.com>
5503 * remote.c (extended_remote_create_inferior): Rename from
5504 extended_remote_create_inferior_1. Add "ops" argument. Remove
5507 2014-01-16 Pedro Alves <palves@redhat.com>
5509 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
5510 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
5513 2014-01-16 Doug Evans <dje@google.com>
5515 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
5517 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5519 * btrace.h (btrace_thread_flag): New.
5520 (struct btrace_thread_info) <flags>: New.
5521 * record-btrace.c (record_btrace_resume_thread)
5522 (record_btrace_find_thread_to_move, btrace_step_no_history)
5523 (btrace_step_stopped, record_btrace_start_replaying)
5524 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
5525 (record_btrace_find_resume_thread): New.
5526 (record_btrace_resume, record_btrace_wait): Extend.
5527 (record_btrace_can_execute_reverse): New.
5528 (record_btrace_open): Fail in non-stop mode.
5529 (record_btrace_set_replay): Split into this, ...
5530 (record_btrace_stop_replaying): ... this, ...
5531 (record_btrace_clear_histories): ... and this.
5532 (init_record_btrace_ops): Init to_can_execute_reverse.
5533 * NEWS: Announce it.
5535 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5537 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
5538 (forward_target_decr_pc_after_break)
5539 (target_decr_pc_after_break): New.
5540 * target.c (forward_target_decr_pc_after_break)
5541 (target_decr_pc_after_break): New.
5542 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
5543 instead of gdbarch_decr_pc_after_break.
5544 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
5545 instead of gdbarch_decr_pc_after_break.
5546 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
5547 instead of gdbarch_decr_pc_after_break.
5548 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
5549 instead of gdbarch_decr_pc_after_break.
5550 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
5551 instead of gdbarch_decr_pc_after_break.
5552 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
5553 instead of gdbarch_decr_pc_after_break.
5555 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5557 * btrace.c: Include regcache.h.
5558 (btrace_add_pc): New.
5559 (btrace_enable): Call btrace_add_pc.
5560 (btrace_is_empty): New.
5561 * btrace.h (btrace_is_empty): New.
5562 * record-btrace.c (require_btrace, record_btrace_info): Call
5565 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5567 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
5568 Support delta reads.
5569 (linux_disable_btrace): Change return type.
5570 * common/linux-btrace.h (linux_read_btrace): Change parameters
5571 and return type to allow error reporting. Update users.
5572 (linux_disable_btrace): Change return type. Update users.
5573 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
5575 (btrace_error): New.
5576 (btrace_block) <begin>: Comment on BEGIN == 0.
5577 * btrace.c (btrace_compute_ftrace): Start from the end of
5579 (btrace_stitch_trace, btrace_clear_history): New.
5580 (btrace_fetch): Read delta trace, return if replaying.
5581 (btrace_clear): Move clear history code to btrace_clear_history.
5582 (parse_xml_btrace): Throw an error if parsing failed.
5583 * target.h (struct target_ops) <to_read_btrace>: Change parameters
5584 and return type to allow error reporting.
5585 (target_read_btrace): Change parameters and return type to allow
5587 * target.c (target_read_btrace): Update.
5588 * remote.c (remote_read_btrace): Support delta reads. Pass
5590 * NEWS: Announce it.
5592 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5594 * record.h (record_btrace_frame_unwind)
5595 (record_btrace_tailcall_frame_unwind): New declarations.
5596 * dwarf2-frame: Include record.h
5597 (dwarf2_frame_cfa): Throw an error for btrace frames.
5598 * record-btrace.c: Include hashtab.h.
5599 (btrace_get_bfun_name): New.
5600 (btrace_call_history): Call btrace_get_bfun_name.
5601 (struct btrace_frame_cache): New.
5603 (bfcache_hash, bfcache_eq, bfcache_new): New.
5604 (btrace_get_frame_function): New.
5605 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
5606 (record_btrace_frame_this_id): Compute own id.
5607 (record_btrace_frame_prev_register): Provide PC, throw_error
5608 for all other registers.
5609 (record_btrace_frame_sniffer): Detect btrace frames.
5610 (record_btrace_tailcall_frame_sniffer): New.
5611 (record_btrace_frame_dealloc_cache): New.
5612 (record_btrace_frame_unwind): Add new functions.
5613 (record_btrace_tailcall_frame_unwind): New.
5614 (_initialize_record_btrace): Allocate cache.
5615 * btrace.c (btrace_clear): Call reinit_frame_cache.
5616 * NEWS: Announce it.
5618 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5620 * record-btrace.c (record_btrace_set_replay)
5621 (record_btrace_goto_begin, record_btrace_goto_end)
5622 (record_btrace_goto): New.
5623 (init_record_btrace_ops): Initialize them.
5624 * NEWS: Announce it.
5626 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5628 * record-btrace.c (record_btrace_find_new_threads)
5629 (record_btrace_thread_alive): New.
5630 (init_record_btrace_ops): Initialize to_find_new_threads and
5633 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5635 * record-btrace.c (record_btrace_resume): New.
5636 (record_btrace_wait): New.
5637 (init_record_btrace_ops): Initialize to_wait and to_resume.
5639 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5641 * record-btrace.c (record_btrace_xfer_partial)
5642 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
5643 (record_btrace_allow_memory_access): New.
5644 (init_record_btrace_ops): Initialize new methods.
5645 * target.c (raw_memory_xfer_partial): Bail out if target reports
5646 that this memory is not available.
5648 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5650 * target.h (target_ops) <to_insert_breakpoint>
5651 <to_remove_breakpoint>: Add target_ops parameter.
5652 (forward_target_insert_breakpoint): New.
5653 (forward_target_remove_breakpoint): New.
5654 (memory_remove_breakpoint, memory_insert_breakpoint):
5655 Add target_ops parameter.
5656 * target.c (target_insert_breakpoint): Split into this and ...
5657 (forward_target_insert_breakpoint): ... this.
5658 (target_remove_breakpoint): Split into this and ...
5659 (forward_target_remove_breakpoint): ... this.
5660 (debug_to_insert_breakpoint): Add target_ops parameter.
5661 Call forward_target_insert_breakpoint.
5662 (debug_to_remove_breakpoint): Add target_ops parameter.
5663 Call forward_target_remove_breakpoint.
5664 (update_current_target): Do not inherit or default to_insert_breakpoint
5665 and to_remove_breakpoint.
5666 * corelow.c (ignore): Add target_ops parameter.
5667 * exec.c (ignore): Add target_ops parameter.
5668 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
5669 Add target_ops parameter.
5670 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
5671 Add target_ops parameter.
5672 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
5673 Add target_ops parameter.
5674 * record-full.c (record_full_beneath_to_insert_breakpoint)
5675 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
5676 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
5677 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
5678 (record_full_core_remove_breakpoint): Add target_ops parameter.
5680 (record_full_beneath_to_insert_breakpoint_ops)
5681 (record_full_beneath_to_remove_breakpoint_ops)
5682 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
5683 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
5684 tmp_to_remove_breakpoint_ops,
5685 record_full_beneath_to_insert_breakpoint_ops, and
5686 record_full_beneath_to_remove_breakpoint_ops.
5687 * remote-m32r-sdi.c (m32r_insert_breakpoint)
5688 (m32r_remove_breakpoint): Add target_ops parameter.
5689 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
5690 Add target_ops parameter.
5691 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
5692 Add target_ops parameter.
5694 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5695 Markus Metzger <markus.t.metzger@intel.com>
5697 * record-btrace.c: Include frame-unwind.h.
5698 (record_btrace_frame_unwind_stop_reason)
5699 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
5700 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
5702 (init_record_btrace_ops): Install it.
5704 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5706 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
5709 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5711 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
5714 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5716 * frame-unwind.c: Include target.h.
5717 (frame_unwind_try_unwinder): New function with code from ...
5718 (frame_unwind_find_by_frame): ... here. New variable
5719 unwinder_from_target, call also target_get_unwinder)
5720 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
5721 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
5722 * target.h (struct target_ops): New fields to_get_unwinder and
5723 to_get_tailcall_unwinder.
5724 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
5726 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5728 * record-btrace.c (record_btrace_fetch_registers)
5729 (record_btrace_store_registers)
5730 (record_btrace_to_prepare_to_store): New.
5731 (init_record_btrace_ops): Add the above.
5733 2014-01-16 Tom Tromey <tromey@redhat.com>
5735 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
5736 * target.h (struct target_ops) <to_prepare_to_store>: Add
5738 (target_prepare_to_store): Add argument.
5739 * target.c (debug_to_prepare_to_store): Add argument.
5740 (update_current_target): Update.
5741 * remote.c (remote_prepare_to_store): Add 'self' argument.
5742 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
5743 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
5744 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
5745 * record-full.c (record_full_core_prepare_to_store): Add 'self'
5747 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
5748 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
5749 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
5750 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
5751 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
5753 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5755 * btrace.h (replay) <replay>: New.
5756 (btrace_is_replaying): New.
5757 * btrace.c (btrace_clear): Free replay iterator.
5758 (btrace_is_replaying): New.
5759 * record-btrace.c (record_btrace_is_replaying): New.
5760 (record_btrace_info): Print insn number if replaying.
5761 (record_btrace_insn_history): Start at replay position.
5762 (record_btrace_call_history): Start at replay position.
5763 (init_record_btrace_ops): Init to_record_is_replaying.
5765 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5767 * record-btrace.c (record_btrace_insn_history_range): Include
5769 (record_btrace_insn_history_from): Adjust range.
5770 (record_btrace_call_history_range): Include
5772 (record_btrace_call_history_from): Adjust range.
5773 * NEWS: Announce changes.
5775 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5777 * record.h (enum record_print_flag)
5778 <record_print_indent_calls>: New.
5779 * record.c (get_call_history_modifiers): Recognize /c modifier.
5780 (_initialize_record): Document /c modifier.
5781 * record-btrace.c (btrace_call_history): Add btinfo parameter.
5782 Reorder fields. Optionally indent the function name. Update
5784 * NEWS: Announce changes.
5786 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5788 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
5790 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5792 * btrace.c (ftrace_new_function): Start counting at one.
5793 * record-btrace.c (record_btrace_info): Adjust number of calls
5795 * NEWS: Announce it.
5797 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5799 * record-btrace.c (btrace_call_history_insn_range): Print
5800 insn range as [begin, end].
5802 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5804 * btrace.h (struct btrace_func_link): New.
5805 (enum btrace_function_flag): New.
5806 (struct btrace_inst): Rename to ...
5807 (struct btrace_insn): ...this. Update all users.
5808 (struct btrace_func) <ibegin, iend>: Remove.
5809 (struct btrace_func_link): New.
5810 (struct btrace_func): Rename to ...
5811 (struct btrace_function): ...this. Update all users.
5812 (struct btrace_function) <segment, flow, up, insn, insn_offset)
5813 (number, level, flags>: New.
5814 (struct btrace_insn_iterator): Rename to ...
5815 (struct btrace_insn_history): ...this.
5817 (struct btrace_insn_iterator, btrace_call_iterator): New.
5818 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
5819 (struct btrace_target_info) <begin, end, level>
5820 <insn_history, call_history>: New.
5821 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
5822 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
5823 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
5824 (btrace_call_number, btrace_call_begin, btrace_call_end)
5825 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
5826 (btrace_find_function_by_number, btrace_set_insn_history)
5827 (btrace_set_call_history): New.
5828 * btrace.c (btrace_init_insn_iterator)
5829 (btrace_init_func_iterator, compute_itrace): Remove.
5830 (ftrace_print_function_name, ftrace_print_filename)
5831 (ftrace_skip_file): Change
5833 (ftrace_init_func): Remove.
5834 (ftrace_debug): Use new btrace_function fields.
5835 (ftrace_function_switched): Also consider gaining and
5836 losing symbol information).
5837 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
5838 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
5839 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
5841 (ftrace_new_function): Move. Remove debug print.
5842 (ftrace_update_lines, ftrace_update_insns): New.
5843 (ftrace_update_function): Check for call, ret, and jump.
5844 (compute_ftrace): Renamed to ...
5845 (btrace_compute_ftrace): ...this. Rewritten to compute call
5847 (btrace_fetch, btrace_clear): Updated.
5848 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
5849 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
5850 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
5851 (btrace_call_number, btrace_call_begin, btrace_call_end)
5852 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
5853 (btrace_find_function_by_number, btrace_set_insn_history)
5854 (btrace_set_call_history): New.
5855 * record-btrace.c (require_btrace): Use new btrace thread
5857 (record_btrace_info, btrace_insn_history)
5858 (record_btrace_insn_history, record_btrace_insn_history_range):
5859 Use new btrace thread info fields and new iterator.
5860 (btrace_func_history_src_line): Rename to ...
5861 (btrace_call_history_src_line): ...this. Use new btrace
5863 (btrace_func_history): Rename to ...
5864 (btrace_call_history): ...this. Use new btrace thread info
5865 fields and new iterator.
5866 (record_btrace_call_history, record_btrace_call_history_range):
5867 Use new btrace thread info fields and new iterator.
5869 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5871 * frame.h (frame_id_build_unavailable_stack_special): New.
5872 * frame.c (frame_id_build_unavailable_stack_special): New.
5874 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5876 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
5877 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
5878 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
5880 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
5881 (i386_insn_is_jump, i386_jmp_p): New.
5882 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
5883 insn_is_jump to gdbarch.
5884 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
5885 * gdbarch.h: Regenerated.
5886 * gdbarch.c: Regenerated.
5887 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
5888 (default_insn_is_jump): New.
5889 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
5890 (default_insn_is_jump): New.
5892 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5894 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
5896 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
5897 (btrace_read_type) <btrace_read_new>: Change to ...
5898 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
5900 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5902 * common/linux-btrace.c (linux_read_btrace): Free trace from
5905 2014-01-15 Doug Evans <dje@google.com>
5907 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
5910 2014-01-15 Tom Tromey <tromey@redhat.com>
5912 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
5913 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
5914 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
5915 (set_objfile_main_name): New function.
5916 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
5917 language_of_main>: New fields.
5918 (set_objfile_main_name): Declare.
5919 * symtab.c (find_main_name): Loop over objfiles to find the main
5921 (set_main_name): Now static.
5922 (get_main_info): Add comment.
5923 * symtab.h (set_main_name): Don't declare.
5925 2014-01-15 Tom Tromey <tromey@redhat.com>
5927 * symtab.c (main_progspace_key): New global.
5928 (struct main_info): New.
5929 (name_of_main, language_of_main): Remove.
5930 (get_main_info, main_info_cleanup): New function.
5931 (set_main_name, main_name, main_language): Use get_main_info.
5932 (_initialize_symtab): Initialize main_progspace_key.
5934 2014-01-15 Tom Tromey <tromey@redhat.com>
5936 * dbxread.c (process_one_symbol): Update.
5937 * dwarf2read.c (read_partial_die): Update.
5938 * symfile.c (set_initial_language): Call main_language.
5939 * symtab.c (language_of_main): Now static.
5940 (set_main_name): Add 'lang' parameter.
5941 (find_main_name): Update.
5942 (main_language): New function.
5943 (symtab_observer_executable_changed): Update.
5944 * symtab.h (set_main_name): Update.
5945 (language_of_main): Remove.
5946 (main_language): Declare.
5948 2014-01-15 Tom Tromey <tromey@redhat.com>
5950 * symfile.c (init_entry_point_info): Use new "initialized" field.
5952 * objfiles.h (struct entry_point) <initialized>: New field.
5953 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
5954 (struct objfile) <ei>: ...here. Remove.
5955 * objfiles.c (entry_point_address_query): Update.
5957 2014-01-15 Tom Tromey <tromey@redhat.com>
5959 * objfiles.c (entry_point_address_query): Relocate entry point
5961 (objfile_relocate1): Do not relocate entry point address.
5962 * objfiles.h (struct entry_info) <entry_point>: Update comment.
5963 <the_bfd_section_index>: New field.
5964 * symfile.c (init_entry_point_info): Find the entry point's
5967 2014-01-15 Tom Tromey <tromey@redhat.com>
5969 * solib-frv.c (enable_break): Use entry_point_address_query.
5971 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
5973 * NEWS: Add note on improved process record-replay on
5974 arm*-linux* targets.
5976 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
5978 * arm-tdep.c (enum arm_record_result): New enum.
5979 (arm_record_unsupported_insn): New function.
5980 (arm_record_coproc_data_proc): Removed.
5981 (thumb2_record_ld_st_multiple): New function.
5982 (thumb2_record_ld_st_dual_ex_tbb): New function.
5983 (thumb2_record_data_proc_sreg_mimm): New function.
5984 (thumb2_record_ps_dest_generic): New function.
5985 (thumb2_record_branch_misc_cntrl): New function.
5986 (thumb2_record_str_single_data): New function.
5987 (thumb2_record_ld_mem_hints): New function.
5988 (thumb2_record_ld_word): New function.
5989 (thumb2_record_lmul_lmla_div): New function.
5990 (thumb2_record_decode_insn_handler): New function.
5991 (decode_insn): Add thumb32 instruction handlers.
5993 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
5995 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
5996 (struct arm_linux_record_tdep): Declare.
5997 (arm_canonicalize_syscall): New function.
5998 (arm_all_but_pc_registers_record): New function.
5999 (arm_linux_syscall_record): New function.
6000 (arm_linux_init_abi): Add syscall recording constructs.
6001 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
6002 decoding. (arm_record_coproc_data_proc): Update arm syscall
6004 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
6005 <arm_syscall_record>: New field.
6006 * configure.tgt (arm*-*-linux*): Add linux-record.o to
6009 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6011 * arm-tdep.c (thumb_record_misc): Update to use sp as base
6012 register for push instruction recording.
6014 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6016 * arm-tdep.c (thumb_record_misc): Update to correct logical
6017 error while recording ldm, ldmia and pop instructions.
6019 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6021 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
6023 2014-01-15 Pedro Alves <palves@redhat.com>
6025 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
6026 (go32_resume, go32_fetch_registers, store_register)
6027 (go32_store_registers, go32_prepare_to_store)
6028 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
6029 (go32_create_inferior, go32_can_run, go32_terminal_init)
6030 (go32_terminal_inferior, go32_terminal_ours): Delete forward
6033 2014-01-15 Tom Tromey <tromey@redhat.com>
6035 * target.h (async_callback_ftype): New typedef.
6036 (struct target_ops) <to_async>: Use it.
6038 2014-01-15 Joel Brobecker <brobecker@adacore.com>
6040 * python/py-value.c (get_field_type): Remove unnecessary curly
6041 braces for single-statement if block.
6043 2014-01-15 Joel Brobecker <brobecker@adacore.com>
6045 * python/py-type.c (convert_field): Add missing empty line
6048 2014-01-14 Doug Evans <dje@google.com>
6050 * symfile.h (expand_symtabs_matching): Renamed from
6051 expand_partial_symbol_names. Update prototype.
6052 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
6053 * symfile.c (expand_symtabs_matching): Renamed from
6054 expand_partial_symbol_names. New args file_matcher, kind.
6055 Rename arg fun to symbol_matcher.
6056 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
6057 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
6058 ada_expand_partial_symbol_name.
6059 (ada_make_symbol_completion_list): Update to call
6060 expand_symtabs_matching.
6061 (ada_add_global_exceptions): Call expand_symtabs_matching.
6062 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
6063 call map_symbol_filenames.
6064 * symtab.c (sources_info): Update to call map_symbol_filenames.
6065 (search_symbols): Call expand_symtabs_matching.
6066 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
6067 (default_make_symbol_completion_list_break_on): Update to call
6068 expand_symtabs_matching.
6069 (make_source_files_completion_list): Update to call
6070 map_symbol_filenames.
6072 2014-01-14 Doug Evans <dje@google.com>
6074 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
6075 (expand_symtabs_symbol_matcher_ftype): New typedef.
6076 (quick_symbol_functions.expand_symtabs_matching): Update to use.
6077 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
6078 * symfile.c (expand_partial_symbol_names): Update to use
6079 expand_symtabs_symbol_matcher_ftype.
6080 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
6081 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
6082 Arg name_matcher renamed to symbol_matcher.
6083 * psymtab.c (recursively_search_psymtabs): Update to use
6084 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
6086 (expand_symtabs_matching_via_partial): Update to use
6087 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
6088 Arg name_matcher renamed to symbol_matcher.
6090 2014-01-14 Doug Evans <dje@google.com>
6092 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
6093 (map_partial_symbol_filenames): Ditto.
6094 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
6095 (map_partial_symbol_filenames): Ditto.
6096 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
6097 (map_partial_symbol_filenames): Ditto.
6098 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
6099 (map_partial_symbol_filenames): Ditto.
6100 * symtab.c: Delete #include "psymtab.h".
6102 2014-01-14 Pedro Alves <palves@redhat.com>
6103 Tom Tromey <tromey@redhat.com>
6105 * infrun.c (use_displaced_stepping): Use find_record_target
6106 instead of RECORD_IS_USED.
6107 (adjust_pc_after_break): Use record_full_is_used instead of
6109 * record-btrace.c (record_btrace_open): Call record_preopen
6110 instead of checking RECORD_IS_USED.
6111 * record-full.c (record_full_shortname)
6112 (record_full_core_shortname): New globals.
6113 (record_full_is_used): New function.
6114 (find_full_open): Call record_preopen instead of checking
6116 (init_record_full_ops): Set the target's shortname to
6117 record_full_shortname.
6118 (init_record_full_core_ops): Set the target's shortname to
6119 record_full_core_shortname.
6120 * record-full.h (record_full_is_used): Declare.
6121 * record.c (find_record_target): Make extern.
6122 (record_preopen): New function.
6123 * record.h (RECORD_IS_USED): Delete macro.
6124 (find_record_target, record_preopen): Declare functions.
6126 2014-01-14 Yao Qi <yao@codesourcery.com>
6128 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
6129 'len''s type to ULONGEST.
6130 (core_xfer_shared_libraries_aix): Likewise.
6131 * gdbarch.c, gdbarch.h: Regenerated.
6132 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
6133 Change type of 'len' to ULONGEST.
6134 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
6135 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
6137 2014-01-14 Yao Qi <yao@codesourcery.com>
6139 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
6140 type of 'len' to ULONGEST.
6141 (linux_xfer_osdata_processgroups): Likewise.
6142 (linux_xfer_osdata_threads): Likewise.
6143 (linux_xfer_osdata_fds): Likewise.
6144 (linux_xfer_osdata_isockets): Likewise.
6145 (linux_xfer_osdata_shm): Likewise.
6146 (linux_xfer_osdata_sem): Likewise.
6147 (linux_xfer_osdata_msg): Likewise.
6148 (linux_common_xfer_osdata): Likewise.
6149 (struct osdata_type) <getter>: Likewise.
6150 * common/linux-osdata.h (linux_common_xfer_osdata): Update
6153 2014-01-14 Yao Qi <yao@codesourcery.com>
6155 * target.h (target_xfer_partial_ftype): Update.
6156 (struct target_ops) <to_xfer_partial>: Change 'len' type to
6158 * aix-thread.c (aix_thread_xfer_partial): Change type of
6159 argument 'len' to ULONGEST.
6160 * auxv.c (procfs_xfer_auxv): Likewise.
6161 (ld_so_xfer_auxv): Likewise.
6162 (memory_xfer_auxv): Likewise.
6163 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6164 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6165 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
6166 * corelow.c (core_xfer_partial): Likewise.
6167 * ctf.c (ctf_xfer_partial): Likewise.
6168 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
6170 (darwin_read_dyld_info): Likewise.
6171 (darwin_xfer_partial): Likewise.
6172 * exec.c (section_table_xfer_memory_partial): Likewise.
6173 (exec_xfer_partial): Likewise.
6174 * exec.h (section_table_xfer_memory_partial): Update
6176 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
6177 instead of plongest.
6178 (gnu_xfer_partial): Likewise.
6179 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
6180 (ia64_hpux_xfer_solib_got): Likewise.
6181 (ia64_hpux_xfer_partial): Likewise.
6182 * ia64-linux-nat.c (ia64_linux_xfer_partial):
6183 * inf-ptrace.c (inf_ptrace_xfer_partial):
6184 * inf-ttrace.c (inf_ttrace_xfer_partial):
6185 * linux-nat.c (linux_xfer_siginfo): Likewise.
6186 (linux_nat_xfer_partial): Likewise.
6187 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
6188 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
6189 * monitor.c (monitor_xfer_memory): Likewise.
6190 (monitor_xfer_partial): Likewise.
6191 * procfs.c (procfs_xfer_partial): Likewise.
6192 * record-full.c (record_full_xfer_partial): Likewise.
6193 (record_full_core_xfer_partial): Likewise.
6194 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
6195 instead of plongest.
6196 (gdbsim_xfer_partial): Likewise.
6197 * remote.c (remote_xfer_partial): Likewise.
6198 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
6199 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
6201 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6202 (rs6000_xfer_shared_libraries): Likewise.
6203 * sol-thread.c (sol_thread_xfer_partial): Likewise.
6204 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6205 (sparc_xfer_partial): Likewise.
6206 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6207 (spu_xfer_partial): Likewise.
6208 * spu-multiarch.c (spu_xfer_partial): Likewise.
6209 * target.c (target_read_live_memory): Likewise.
6210 (memory_xfer_live_readonly_partial): Likewise.
6211 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
6212 (target_xfer_partial, default_xfer_partial): Likewise.
6213 (current_xfer_partial): Likewise.
6214 * tracepoint.c (tfile_xfer_partial): Likewise.
6215 * windows-nat.c (windows_xfer_memory): Likewise. Call
6216 pulongest instead of plongest.
6217 (windows_xfer_partial): Likewise.
6218 (windows_xfer_shared_libraries): Likewise.
6220 2014-01-14 Yao Qi <yao@codesourcery.com>
6222 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
6223 target_xfer_partial_ftype.
6225 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
6229 * valops.c (value_struct_elt_bitpos): New function
6230 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
6231 object to 'None' if the field name is an empty string ("").
6232 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
6233 attribute to look for a field when 'name' is 'None'.
6234 (get_field_type): New function
6236 2014-01-13 Doug Evans <dje@google.com>
6239 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
6240 (try_open_dwop_file): Ditto.
6241 * gdb_bfd.c: #include "vec.h".
6242 (bfdp): New typedef.
6243 (struct gdb_bfd_data): New member included_bfds.
6244 (gdb_bfd_unref): Unref all included bfds.
6245 (gdb_bfd_record_inclusion): New function.
6246 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
6248 2014-01-13 Tom Tromey <tromey@redhat.com>
6250 * gdbcore.h (deprecated_core_resize_section_table): Remove.
6252 2014-01-13 Tom Tromey <tromey@redhat.com>
6254 * defs.h (use_windows): Remove.
6255 * gdb.c (main): Update.
6256 * main.c (captured_main, gdb_main): Update.
6257 * main.h (struct captured_main_args) <use_windows>: Remove.
6258 * top.c (use_windows): Remove.
6260 2014-01-13 Tom Tromey <tromey@redhat.com>
6262 * defs.h (deprecated_flush_hook): Remove.
6264 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6267 * linux-thread-db.c (try_thread_db_load): Add parameter
6268 check_auto_load_safe. Move here the file_is_auto_load_safe call.
6269 (try_thread_db_load_from_pdir_1): Move it there from here.
6270 (try_thread_db_load_from_sdir): Update caller.
6271 (try_thread_db_load_from_dir): Move it there from here.
6273 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
6275 * regformats/regdat.sh: Always rewrite the register file.
6277 2014-01-13 Pedro Alves <palves@redhat.com>
6279 * Makefile.in (CHECK_HEADERS): New variable.
6280 (check-headers:): New rule.
6282 2014-01-13 Tom Tromey <tromey@redhat.com>
6284 * cli/cli-setshow.c (do_set_command): Update.
6285 * defs.h (deprecated_set_hook): Remove.
6286 * top.c (deprecated_set_hook): Remove.
6288 2014-01-13 Pedro Alves <palves@redhat.com>
6290 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
6291 the tracepoint if the PC is a pseudo-register.
6293 2014-01-13 Tom Tromey <tromey@redhat.com>
6295 * defs.h (XCALLOC): Remove.
6296 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
6297 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
6298 * dwarf2loc.c (allocate_piece_closure): Likewise.
6299 * elfread.c (elf_symfile_segments): Likewise.
6300 (elf_symfile_segments): Likewise.
6301 * gdbtypes.c (copy_type_recursive): Likewise.
6302 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
6303 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
6304 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
6306 * mt-tdep.c (mt_gdbarch_init): Likewise.
6307 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
6309 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
6310 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
6311 * registry.c (registry_alloc_data): Likewise.
6312 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
6313 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6314 * serial.c (serial_fdopen_ops): Likewise.
6315 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
6317 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
6318 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
6321 2014-01-13 Tom Tromey <tromey@redhat.com>
6323 * defs.h (XMALLOC): Remove.
6324 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
6325 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6326 * cli-out.c (struct ui_out *): Likewise.
6327 * cli/cli-dump.c (add_dump_command): Likewise.
6328 (add_dump_command): Likewise.
6329 * complaints.c (get_complaints): Likewise.
6330 (find_complaint): Likewise.
6331 * dwarf2-frame.c (execute_cfa_program): Likewise.
6332 * dwarf2read.c (abbrev_table_read_table): Likewise.
6333 * gdbarch.sh: Likewise.
6334 * gdbarch.c: Rebuild.
6335 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
6336 * interps.c (interp_new): Likewise.
6337 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6338 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6339 * mi/mi-console.c (mi_console_file_new): Likewise.
6340 * mi/mi-interp.c (mi_interpreter_init): Likewise.
6341 * mi/mi-out.c (mi_out_new): Likewise.
6342 * mi/mi-parse.c (mi_parse): Likewise.
6343 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6344 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6345 * observer.c (xalloc_observer_list_node): Likewise.
6346 * regcache.c (regcache_xmalloc_1): Likewise.
6347 * reggroups.c (reggroup_new): Likewise.
6348 (_initialize_reggroup): Likewise.
6349 * registry.c (register_data_with_cleanup): Likewise.
6350 * remote.c (remote_notif_stop_alloc_reply): Likewise.
6351 * ser-base.c (serial_ttystate): Likewise.
6352 * ser-mingw.c (make_pipe_state): Likewise.
6353 * ser-pipe.c (pipe_open): Likewise.
6354 * serial.c (serial_open): Likewise.
6355 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6356 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
6357 (tui_alloc_win_info): Likewise.
6358 (tui_add_content_elements): Likewise.
6359 * tui/tui-file.c (tui_file_new): Likewise.
6360 * tui/tui-out.c (tui_out_new): Likewise.
6361 * ui-file.c (mem_file_new): Likewise.
6362 * ui-out.c (push_level): Likewise.
6363 (make_cleanup_ui_out_end): Likewise.
6364 (append_header_to_list): Likewise.
6365 (ui_out_new): Likewise.
6366 * user-regs.c (user_reg_add_builtin): Likewise.
6368 2014-01-13 Tom Tromey <tromey@redhat.com>
6370 * defs.h (XZALLOC): Remove.
6371 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
6372 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
6373 (get_ada_tasks_inferior_data): Likewise.
6374 * auto-load.c (get_auto_load_pspace_data): Likewise.
6375 * auxv.c (get_auxv_inferior_data): Likewise.
6376 * bfd-target.c (target_bfd_reopen): Likewise.
6377 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
6378 (deprecated_insert_raw_breakpoint): Likewise.
6379 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
6380 * corelow.c (core_open): Likewise.
6381 * darwin-nat.c (darwin_check_new_threads): Likewise.
6382 (darwin_attach_pid): Likewise.
6383 * dummy-frame.c (dummy_frame_push): Likewise.
6384 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
6385 * dwarf2loc.c (allocate_piece_closure): Likewise.
6386 * elfread.c (elf_symfile_segments): Likewise.
6387 * eval.c (ptrmath_type_p): Likewise.
6388 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
6389 * gdbtypes.c (alloc_type_arch): Likewise.
6390 (alloc_type_instance): Likewise.
6391 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
6392 * inf-child.c (inf_child_can_use_agent): Likewise.
6393 * inflow.c (get_inflow_inferior_data): Likewise.
6394 * infrun.c (save_infcall_suspend_state): Likewise.
6395 * jit.c (jit_reader_load): Likewise.
6396 (get_jit_objfile_data): Likewise.
6397 (get_jit_program_space_data): Likewise.
6398 (jit_object_open_impl): Likewise.
6399 (jit_symtab_open_impl): Likewise.
6400 (jit_block_open_impl): Likewise.
6401 (jit_frame_sniffer): Likewise.
6402 * linux-fork.c (add_fork): Likewise.
6403 * maint.c (make_command_stats_cleanup): Likewise.
6404 * objfiles.c (get_objfile_pspace_data): Likewise.
6405 * opencl-lang.c (struct lval_closure): Likewise.
6406 * osdata.c (osdata_start_osdata): Likewise.
6407 * progspace.c (new_address_space): Likewise.
6408 (add_program_space): Likewise.
6409 * remote-sim.c (get_sim_inferior_data): Likewise.
6410 * sh-tdep.c (sh_gdbarch_init): Likewise.
6411 * skip.c (Ignore): Likewise.
6412 (skip_delete_command): Likewise.
6413 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
6414 (library_list_start_library): Likewise.
6415 (solib_aix_current_sos): Likewise.
6416 * solib-darwin.c (get_darwin_info): Likewise.
6417 (darwin_current_sos): Likewise.
6418 * solib-dsbt.c (get_dsbt_info): Likewise.
6419 * solib-ia64-hpux.c (new_so_list): Likewise.
6420 (ia64_hpux_get_solib_linkage_addr): Likewise.
6421 * solib-spu.c (append_ocl_sos): Likewise.
6422 (spu_current_sos): Likewise.
6423 * solib-svr4.c (get_svr4_info): Likewise.
6424 (svr4_keep_data_in_core): Likewise.
6425 (library_list_start_library): Likewise.
6426 (svr4_default_sos): Likewise.
6427 (svr4_read_so_list): Likewise.
6428 * solib-target.c (library_list_start_library): Likewise.
6429 (solib_target_current_sos): Likewise.
6430 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6431 * symfile-debug.c (install_symfile_debug_logging): Likewise.
6432 * symfile.c (default_symfile_segments): Likewise.
6433 * target-descriptions.c (tdesc_data_init): Likewise.
6434 (tdesc_create_reg): Likewise.
6435 (struct tdesc_type *): Likewise.
6436 (tdesc_create_vector): Likewise.
6437 (tdesc_set_struct_size): Likewise.
6438 (struct tdesc_type *): Likewise.
6439 (tdesc_free_feature): Likewise.
6440 (tdesc_create_feature): Likewise.
6441 * windows-nat.c (windows_add_thread): Likewise.
6442 (windows_make_so): Likewise.
6443 * xml-support.c (gdb_xml_body_text): Likewise.
6444 (gdb_xml_create_parser_and_cleanup): Likewise.
6445 (xml_process_xincludes): Likewise.
6446 * xml-syscall.c (allocate_syscalls_info): Likewise.
6447 (syscall_create_syscall_desc): Likewise.
6449 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
6451 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
6452 function, with code from i386_stap_parse_special_token.
6453 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6454 (i386_stap_parse_special_token): Move code to the two functions
6457 2014-01-09 Pedro Alves <palves@redhat.com>
6458 Hui Zhu <hui@codesourcery.com>
6461 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
6462 bp_err_string. Don't mark the location shlib_disabled if the
6463 error thrown wasn't a generic or memory error. Catch errors
6464 thrown while inserting breakpoints in overlayed code. Output
6465 error message of software breakpoints.
6466 * remote.c (remote_insert_breakpoint): If this breakpoint has
6467 target-side commands but this stub doesn't support Z0 packets,
6468 throw NOT_SUPPORTED_ERROR error.
6469 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
6470 * target.h (target_insert_breakpoint): Extend comment.
6471 (target_insert_hw_breakpoint): Add comment.
6473 2014-01-08 Pedro Alves <palves@redhat.com>
6475 * remote.c (remote_add_thread): Add threads silently if starting
6477 (remote_notice_new_inferior): If in all-stop, and starting up,
6478 don't call notice_new_inferior.
6479 (get_current_thread): New function, factored out from ...
6480 (add_current_inferior_and_thread): ... this. Adjust.
6481 (remote_start_remote) <all-stop>: Fetch the thread list. If we
6482 found any thread, then select the remote's current thread as GDB's
6485 2014-01-08 Joel Brobecker <brobecker@adacore.com>
6487 * NEWS: Create a new section for the next release branch.
6488 Rename the section of the current branch, now that it has
6491 2014-01-08 Joel Brobecker <brobecker@adacore.com>
6493 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
6494 * version.in: Bump version to 7.7.50.DATE-cvs.
6496 2014-01-08 Yao Qi <yao@codesourcery.com>
6498 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
6499 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
6500 (spu_xfer_partial): Cast 'buf' to 'const char *'.
6502 2014-01-08 Yao Qi <yao@codesourcery.com>
6504 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
6505 return value of bfd_get_filename to symbol_file_add_from_bfd.
6507 2014-01-08 Pierre Muller <muller@sourceware.org>
6510 * coff-pe-read.c (struct read_pe_section_data): Add index field.
6511 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
6512 to prim_record_mininal_symbol_and_info.
6513 (add_pe_forwarded_sym): Use known section number of forwarded symbol
6514 in call to prim_record_minimal_symbol_and_info.
6515 (read_pe_exported_syms): Set index field of section_data.
6517 2014-01-07 Andrew Pinski <apinski@cavium.com>
6519 * features/aarch64-core.xml (cpsr): Change to be 64bit.
6520 * features/aarch64.c: Regenerate.
6522 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
6524 * target.c (return_null): Define.
6525 (update_current_target): Use it instead of return_zero for
6526 functions that return a pointer.
6528 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
6530 * source.c (add_path): Fix check for duplicated paths in the previously
6533 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
6535 * ada-lang.c: Remove duplicated include statements.
6536 * alphabsd-nat.c: Ditto.
6537 * amd64-darwin-tdep.c: Ditto.
6538 * amd64fbsd-nat.c: Ditto.
6539 * auto-load.c: Ditto.
6541 * breakpoint.c: Ditto.
6543 * fork-child.c: Ditto.
6544 * gdb_usleep.c: Ditto.
6545 * i386-darwin-tdep.c: Ditto.
6546 * i386fbsd-nat.c: Ditto.
6548 * inferior.c: Ditto.
6550 * linux-nat.c: Ditto.
6551 * linux-tdep.c: Ditto.
6552 * m68kbsd-nat.c: Ditto.
6553 * m68klinux-nat.c: Ditto.
6554 * microblaze-tdep.c: Ditto.
6555 * mips-linux-tdep.c: Ditto.
6556 * mn10300-tdep.c: Ditto.
6557 * nto-tdep.c: Ditto.
6558 * opencl-lang.c: Ditto.
6560 * printcmd.c: Ditto.
6561 * regcache.c: Ditto.
6562 * remote-m32r-sdi.c: Ditto.
6566 * tilegx-linux-nat.c: Ditto.
6567 * tilegx-tdep.c: Ditto.
6568 * tracepoint.c: Ditto.
6570 * vaxbsd-nat.c: Ditto.
6571 * windows-nat.c: Ditto.
6572 * xtensa-tdep.c: Ditto.
6574 2014-01-07 Yao Qi <yao@codesourcery.com>
6576 * spu-linux-nat.c (_initialize_spu_nat): Declare.
6578 2014-01-07 Yao Qi <yao@codesourcery.com>
6579 Joel Brobecker <brobecker@adacore.com>
6581 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
6582 (pdc_write_regs): Likewise.
6583 (fetch_regs_kernel_thread): Likewise.
6584 (store_regs_kernel_thread): Likewise.
6586 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6588 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
6589 tagged type objects to their actual type.
6591 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6593 * ada-valprint.c (print_field_values): Add "language" parameter.
6594 Update calls to print_field_values and print_variant_part.
6595 Pass new parameter "language" in call to val_print instead
6596 of "current_language". Replace call to ada_val_print by call
6598 (print_variant_part): Add "language" parameter.
6599 (ada_val_print_struct_union): Update call to print_field_values.
6601 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6603 * ada-valprint.c (ui_memcpy): Delete.
6604 (ada_print_floating): Update documentation. Add empty line
6605 between between function documentation and implementation.
6606 Delete variable "buffer". Use ui_file_xstrdup in place of
6607 ui_file_put. Minor adjustments following this change.
6609 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6611 * ada-valprint.c (ada_val_print_string): New function,
6612 extracted from ada_val_print_array.
6613 (ada_val_print_array): Replace extracted code by call
6614 to ada_val_print_string followed by a return. Move
6615 "else" branch to the function's top block.
6617 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6619 * ada-valprint.c (ada_val_print_array): Move implementation
6620 down. Rename parameter "offset" and "val" into "offset_aligned"
6621 and "original_value" respectively. Add parameter "offset".
6623 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6625 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
6626 re-organizing the code. Change the "???" message printed
6627 when target type is a TYPE_CODE_UNDEF into
6628 "<ref to undefined type>".
6630 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6632 * ada-valprint.c (print_record): Delete, implementation inlined...
6633 (ada_val_print_struct_union): ... here. Remove call to
6634 ada_check_typedef in inlined implementation.
6636 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6638 * ada-valprint.c (ada_val_print_gnat_array): New function,
6639 extracted from ada_val_print_1;
6640 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
6641 (ada_val_print_flt, ada_val_print_struct_union)
6642 (ada_val_print_ref): Likewise.
6643 (ada_val_print_1): Delete variables i and elttype.
6644 Replace extracted-out code by call to corresponding
6647 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6649 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
6651 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6653 * ada-valprint.c (ada_val_print_1): Replace calls to
6654 ada_val_print_1 by calls to val_print.
6656 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6658 * ada-valprint.c (ada_val_print_1): Add parameter "language".
6659 Update calls to self accordingly. Replace calls to c_val_print
6660 by calls to val_print.
6662 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6664 * ada-valprint.c (print_record): Delete declaration.
6665 (adjust_type_signedness, ada_val_print_1): Likewise.
6666 (ada_val_print): Move function implementation down.
6667 (print_variant_part, print_field_values, print_record):
6668 Move function implementation up.
6670 2014-01-07 Joel Brobecker <brobecker@adacore.com>
6672 * python/py-type.c (typy_get_name): New function.
6673 (type_object_getset): Add entry for attribute "name".
6674 * NEWS: Add entry mentioning this new attribute.
6676 2014-01-07 Yao Qi <yao@codesourcery.com>
6678 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
6681 2014-01-07 Yao Qi <yao@codesourcery.com>
6683 * gnu-nat.c (info_port_rights): Add qualifier const to
6686 2014-01-07 Yao Qi <yao@codesourcery.com>
6688 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
6690 2014-01-07 Yao Qi <yao@codesourcery.com>
6692 * gnu-nat.c (make_inf) Update declaration.
6693 (make_inf): Make it static.
6694 (inf_set_traced): Likewise.
6695 (inf_port_to_thread, inf_task_died_status): Likewise.
6697 2014-01-07 Yao Qi <yao@codesourcery.com>
6699 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
6701 2014-01-07 Yao Qi <yao@codesourcery.com>
6703 * gnu-nat.c (_initialize_gnu_nat): Declare.
6705 2014-01-07 Yao Qi <yao@codesourcery.com>
6707 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
6709 (struct gdbarch_info) <byte_order>: Change type to
6711 <byte_order_for_code>: Likewise.
6712 * gdbarch.c, gdbarch.h: Regenerated.
6714 2014-01-06 Sasha Smundak <asmundak@google.com>
6716 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
6718 2014-01-06 Tom Tromey <tromey@redhat.com>
6720 * doublest.c (convert_doublest_to_floatformat): Use const, not
6722 * somread.c (som_symtab_read): Likewise.
6724 2014-01-07 Hui Zhu <hui@codesourcery.com>
6726 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
6727 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
6728 (gdb_bfd_fopen): Ditto.
6729 (gdb_bfd_openr): Ditto.
6730 (gdb_bfd_openw): Ditto.
6731 (gdb_bfd_openr_iovec): Ditto.
6732 (gdb_bfd_fdopenr): Ditto.
6733 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
6734 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
6736 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
6738 * symfile-mem.c (symbol_file_add_from_memory): Removed
6739 gdb_bfd_stash_filename.
6741 2014-01-03 Doug Evans <dje@google.com>
6743 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
6746 2014-01-01 Joel Brobecker <brobecker@adacore.com>
6748 Update year range in copyright notice of all files.
6750 2014-01-01 Joel Brobecker <brobecker@adacore.com>
6752 * top.c (print_gdb_version): Set copyright year to 2014.
6754 2014-01-01 Joel Brobecker <brobecker@adacore.com>
6756 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
6758 For older changes see ChangeLog-2013.
6764 version-control: never