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