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