1 2014-04-26 Doug Evans <xdje42@gmail.com>
3 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5 2014-04-25 Pedro Alves <palves@redhat.com>
8 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
9 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
10 and newline from built string.
11 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
12 (linux_ptrace_attach_fail_reason): ... this.
13 * linux-nat.c (linux_nat_attach): Adjust to use
14 linux_ptrace_attach_fail_reason.
16 2014-04-25 Pedro Alves <palves@redhat.com>
18 * remote.c (struct remote_state): Remove multi_process_aware,
19 non_stop_aware, cond_tracepoints, cond_breakpoints,
20 breakpoint_commands, fast_tracepoints, static_tracepoints,
21 install_in_trace, disconnected_tracing,
22 enable_disable_tracepoints, string_tracing, and
23 augmented_libraries_svr4_read fields.
24 (remote_multi_process_p): Move further below in the file.
25 (struct packet_config): Add comments.
26 (update_packet_config): Delete function.
27 (show_packet_config_cmd): Use packet_config_support.
28 (add_packet_config_cmd): Use NULL as set callback.
29 (packet_ok): "set remote foo-packet"-style commands no longer
30 change config->supported -- adjust.
31 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
32 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
33 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
34 (PACKET_QNonStop, PACKET_multiprocess_feature)
35 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
36 (PACKET_DisconnectedTracing_feature)
37 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
38 (set_remote_protocol_packet_cmd): Delete function.
39 (packet_config_support, packet_support): New functions.
40 (set_remote_protocol_Z_packet_cmd): Don't call
42 (remote_query_attached, remote_pass_signals)
43 (remote_program_signals, remote_threads_info)
44 (remote_threads_extra_info, remote_start_remote): Use
46 (remote_start_remote): Use packet_config_support and
48 (init_all_packet_configs): Set all packets to unknown support,
49 instead of calling update_packet_config.
50 (remote_check_symbols): Use packet_support.
51 (remote_supported_packet): Unconditionally set the packet config's
53 (remote_multi_process_feature, remote_non_stop_feature)
54 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
55 (remote_breakpoint_commands_feature)
56 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
57 (remote_install_in_trace_feature)
58 (remote_disconnected_tracing_feature)
59 (remote_enable_disable_tracepoint_feature)
60 (remote_string_tracing_feature)
61 (remote_augmented_libraries_svr4_read_feature): Delete functions.
62 (remote_protocol_features): Adjust to use remote_supported_packet
63 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
64 "ConditionalTracepoints", "ConditionalBreakpoints",
65 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
66 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
67 "EnableDisableTracepoints", and "tracenz".
68 (remote_query_supported): Use packet_support.
69 (remote_open_1): Adjust.
70 (extended_remote_attach_1): Use packet_support. Switch on the
71 result of packet_ok instead of checking whether the packet ended
73 (remote_vcont_resume): Use packet_support.
74 (remote_resume, remote_stop_ns, fetch_register_using_p)
75 (remote_prepare_to_store, store_register_using_P)
76 (check_binary_download, remote_write_bytes): Use packet_support.
77 (remote_vkill): Use packet_support. Switch on the result of
78 packet_ok instead of checking whether the packet ended up
80 (extended_remote_supports_disable_randomization): Use
82 (extended_remote_run): Switch on the result of packet_ok instead
83 of checking whether the packet ended up disabled.
84 (remote_insert_breakpoint, remote_remove_breakpoint)
85 (remote_insert_watchpoint, remote_remove_watchpoint)
86 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
88 (remote_search_memory): Use packet_config_support.
89 (remote_get_thread_local_address, remote_get_tib_address)
90 (remote_hostio_send_command, remote_can_execute_reverse): Use
92 (remote_supports_cond_tracepoints)
93 (remote_supports_cond_breakpoints)
94 (remote_supports_fast_tracepoints)
95 (remote_supports_static_tracepoints)
96 (remote_supports_install_in_trace)
97 (remote_supports_enable_disable_tracepoint)
98 (remote_supports_string_tracing)
99 (remote_can_run_breakpoint_commands): Rewrite, checking whether
100 the packet config says the feature is enabled or disabled.
101 (remote_download_tracepoint, remote_trace_set_readonly_regions)
102 (remote_get_trace_status): Use packet_support.
103 (remote_set_disconnected_tracing): Adjust to check whether the
104 feature is enabled with packet_support.
105 (remote_set_trace_buffer_size, remote_use_agent)
106 (remote_can_use_agent, remote_supports_btrace): Use
108 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
109 Use packet_config_support.
110 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
111 the packet config says the feature is enabled or disabled.
112 (set_range_stepping): Use packet_support.
114 2014-04-25 Tom Tromey <tromey@redhat.com>
116 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
119 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
121 * NEWS: Mention support for C99 variable length arrays.
123 2014-04-24 Joel Brobecker <brobecker@adacore.com>
125 * ada-lang.c (standard_exc): Expand introductory comment.
127 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
128 Walfred Tedeschi <walfred.tedeschi@intel.com>
130 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
132 (amd64_linux_read_description): Add code to handle AVX512 xstate
133 mask and return respective tdesc.
134 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
135 and features/i386/x32-avx512-linux.c.
136 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
137 (amd64_linux_core_read_description): Add code to handle AVX512
138 xstate mask and return respective tdesc.
139 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
140 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
142 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
143 (tdesc_amd64_avx512_linux): New prototype.
144 (tdesc_x32_avx512_linux): Likewise.
145 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
146 features/i386/x32-avx512.c.
147 (amd64_ymm_avx512_names): New register names for pseudo
149 (amd64_ymmh_avx512_names): New register names for raw registers
151 (amd64_k_names): New register names for K registers.
152 (amd64_zmmh_names): New register names for ZMM raw registers.
153 (amd64_zmm_names): New registers names for ZMM pseudo registers.
154 (amd64_xmm_avx512_names): New register names for XMM16-31
156 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
158 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
159 if feature is present.
160 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
161 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
162 (AMD64_NUM_REGS): Adjust to new number of registers.
163 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
164 registers supplied via XSTATE by AVX512 registers.
165 (i386_linux_read_description): Add case for AVX512.
166 * i386-linux-tdep.c: Include i386-avx512-linux.c.
167 (i386_linux_gregset_reg_offset): Add AVX512 registers.
168 (i386_linux_core_read_description): Add case for AVX512.
169 (i386_linux_init_abi): Install supported register note section
171 (_initialize_i386_linux_tdep): Add call to tdesc init function for
173 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
174 registers to be number of zmm7h + 1.
175 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
176 * i386-tdep.c: Include features/i386/i386-avx512.c.
177 (i386_zmm_names): Add ZMM pseudo register names array.
178 (i386_zmmh_names): Add ZMM raw register names array.
179 (i386_k_names): Add K raw register names array.
180 (num_lower_zmm_regs): Add constant for the number of lower ZMM
181 registers. AVX512 has 16 more ZMM registers than there are YMM
183 (i386_zmmh_regnum_p): Add function to look up register number of
185 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
186 (i386_k_regnum_p): Likewise for K raw registers.
187 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
188 registers added by AVX512.
189 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
190 registers added by AVX512.
191 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
193 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
194 (i386_pseudo_register_name): Add ZMM pseudo registers.
195 (i386_zmm_type): Construct and return vector registers type for ZMM
197 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
198 ZMM0-31 pseudo registers and K registers.
199 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
200 and YMM16-31 registers from register cache.
201 (i386_pseudo_register_write): Add code to write K, ZMM and
203 (i386_register_reggroup_p): Add code to include/exclude AVX512
204 registers in/from respective register groups.
205 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
206 registers if feature is present in xcr0.
207 (i386_gdbarch_init): Add code to initialize AVX512 feature
208 variables in tdep structure, wire in pseudo registers and call
209 initialize_tdesc_i386_avx512.
210 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
212 (i386_regnum): Add AVX512 registers.
213 (I386_SSE_NUM_REGS): New define for number of SSE registers.
214 (I386_AVX_NUM_REGS): Likewise for AVX registers.
215 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
216 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
218 (i386_xmm_avx512_regnum_p): New prototype for register look up.
219 (i386_ymm_avx512_regnum_p): Likewise.
220 (i386_k_regnum_p): Likewise.
221 (i386_zmm_regnum_p): Likewise.
222 (i386_zmmh_regnum_p): Likewise.
223 * i387-tdep.c : Update year in copyright notice.
224 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
226 (XSAVE_YMM_AVX512_ADDR): New macro.
227 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
229 (XSAVE_XMM_AVX512_ADDR): New macro.
230 (xsave_avx512_k_offset): New table for K register offsets in
232 (XSAVE_AVX512_K_ADDR): New macro.
233 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
235 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
236 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
238 (i387_collect_xsave): Add code to collect AVX512 registers from
240 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
241 of XMM16-31 registers.
242 (I387_NUM_K_REGS): New define for number of K registers.
243 (I387_K0_REGNUM): New define for K0 register number.
244 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
245 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
246 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
248 (I387_YMM16H_REGNUM): New define for YMM16H register number.
249 (I387_XMM16_REGNUM): New define for XMM16 register number.
250 (I387_YMM0_REGNUM): New define for YMM0 register number.
251 (I387_KEND_REGNUM): New define for last K register number.
252 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
253 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
255 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
257 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
259 * features/Makefile: Add AVX512 related files.
260 * features/i386/32bit-avx512.xml: New file.
261 * features/i386/64bit-avx512.xml: Likewise.
262 * features/i386/amd64-avx512-linux.c: Likewise.
263 * features/i386/amd64-avx512-linux.xml: Likewise.
264 * features/i386/amd64-avx512.c: Likewise.
265 * features/i386/amd64-avx512.xml: Likewise.
266 * features/i386/i386-avx512-linux.c: Likewise.
267 * features/i386/i386-avx512-linux.xml: Likewise.
268 * features/i386/i386-avx512.c: Likewise.
269 * features/i386/i386-avx512.xml: Likewise.
270 * features/i386/x32-avx512-linux.c: Likewise.
271 * features/i386/x32-avx512-linux.xml: Likewise.
272 * features/i386/x32-avx512.c: Likewise.
273 * features/i386/x32-avx512.xml: Likewise.
274 * regformats/i386/amd64-avx512-linux.dat: New file.
275 * regformats/i386/amd64-avx512.dat: Likewise.
276 * regformats/i386/i386-avx512-linux.dat: Likewise.
277 * regformats/i386/i386-avx512.dat: Likewise.
278 * regformats/i386/x32-avx512-linux.dat: Likewise.
279 * regformats/i386/x32-avx512.dat: Likewise.
280 * NEWS: Add note about new support for AVX512.
283 2014-04-23 Pedro Alves <palves@redhat.com>
285 * breakpoint.c (insert_bp_location): Tolerate errors if the
286 breakpoint is set in a user-loaded objfile.
287 (remove_breakpoint_1): Likewise. Also tolerate errors if the
288 location is marked shlib_disabled. If the breakpoint is set in a
289 user-loaded objfile is a GDB-side memory breakpoint, validate it
290 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
291 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
293 * mem-break.c (memory_validate_breakpoint): New function.
294 * objfiles.c (userloaded_objfile_contains_address_p): New
296 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
297 * target.h (memory_validate_breakpoint): New declaration.
299 2014-04-23 Pedro Alves <palves@redhat.com>
301 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
302 the breakpoint is set in a shared library, only suppress
303 errors for software breakpoints, not hardware breakpoints.
305 2014-04-22 Pedro Alves <palves@redhat.com>
307 * infrun.c (schedlock_applies): New function, factored out from
308 find_thread_needs_step_over.
309 (find_thread_needs_step_over): Use it.
310 (switch_back_to_stepped_thread): Always clear trap_expected if the
311 step over is finished. Return early if scheduler locking applies.
312 Look for the stepping thread and a potential step-over thread with
314 (currently_stepping_or_nexting_callback): Delete.
316 2014-04-22 Nick Clifton <nickc@redhat.com>
318 * NEWS: Mention that ARM sim now supports tracing.
320 2014-04-22 Yao Qi <yao@codesourcery.com>
322 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
324 * tracefile.c (tracefile_fetch_registers): ... it. New
326 * tracefile.h (tracefile_fetch_registers): Declare.
327 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
328 tracefile_fetch_registers.
330 2014-04-19 Eli Zaretskii <eliz@gnu.org>
333 * windows-nat.c (thread_rec): Don't display a warning when
334 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
335 fails for any reason, set th->suspended to -1, so that we don't
336 try to resume such a thread. Also, don't return NULL in these
337 cases, to avoid completely ruin the session due to "PC register is
338 not available" error.
339 (do_windows_fetch_inferior_registers): Check errors in
340 GetThreadContext call.
341 (windows_continue): Accept an additional argument KILLED; if not
342 zero, ignore errors in the SetThreadContext call, since the
343 inferior was killed and is shutting down.
344 (windows_resume, get_windows_debug_event)
345 (windows_create_inferior, windows_mourn_inferior)
346 (windows_kill_inferior): All callers of windows_continue changed
347 to adjust to its new calling sequence.
349 2014-04-19 Yao Qi <yao@codesourcery.com>
351 * ctf.c (ctf_open): Call post_create_inferior.
353 2014-04-19 Yao Qi <yao@codesourcery.com>
355 * ctf.c (handle_id): New static variable.
356 (ctf_open_dir): Get handle_id from bt_context_add_trace return
357 value. Get the declaration of event "register" and get length
360 2014-04-19 Yao Qi <yao@codesourcery.com>
362 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
364 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
366 * valops.c (oload_method_static): Remove unnecessary argument
367 METHOD. Update all callers.
369 2014-04-18 Pedro alves <palves@redhat.com>
370 Tom Tromey <tromey@redhat.com>
373 * frame.c (get_prev_frame_1): Rename to ...
374 (get_prev_frame_always): ... this, and make extern. Adjust.
375 (skip_artificial_frames): Use get_prev_frame_always.
376 (frame_unwind_caller_id, frame_pop, get_prev_frame)
377 (get_frame_unwind_stop_reason): Adjust to rename.
378 * frame.h (get_prev_frame_always): Declare.
379 * inline-frame.c: Include frame.h.
380 (inline_frame_this_id): Use get_prev_frame_always.
382 2014-04-18 Tristan Gingold <gingold@adacore.com>
384 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
385 code by using bfd_mach_o_get_base_address.
387 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
389 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
390 (spu_ax_pseudo_register_collect): New function.
391 (spu_ax_pseudo_register_push_stack): Likewise.
392 (spu_dwarf_reg_to_regnum): Likewise.
393 (spu_gdbarch_init): Install them. Append DWARF unwinders.
395 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
397 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
398 Replace FRAME argument with FRAME_ID.
399 * gdbarch.c, gdbarch.h: Regenerate.
400 * findvar.c (default_value_from_register): Add GDBARCH argument;
401 replace FRAME by FRAME_ID. No longer call get_frame_id.
402 (value_from_register): Update call to gdbarch_value_from_register.
403 * value.h (default_value_from_register): Update prototype.
404 * s390-linux-tdep.c (s390_value_from_register): Update interface
405 and call to default_value_from_register.
406 * spu-tdep.c (spu_value_from_register): Likewise.
408 * findvar.c (address_from_register): Remove TYPE argument.
409 Do not call value_from_register; use gdbarch_value_from_register
410 with null_frame_id instead.
411 * value.h (address_from_register): Update prototype.
412 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
413 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
414 address_from_register interface change.
416 2014-04-17 Yao Qi <yao@codesourcery.com>
418 * gdbtypes.h: Update comments to link to types and macros'
421 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
423 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
425 2014-04-16 Keith Seitz <keiths@redhat.com>
428 * dwarf2read.c (skip_one_die): Check that all relative-offset
429 sibling DIEs fall within range of the current reader's buffer.
430 (read_partial_die): Likewise.
432 2014-04-16 Keith Seitz <keiths@redhat.com>
435 * cp-namespace.c (lookup_symbol_file): If the type name of
436 `this' is NULL, return immediately.
438 2014-04-14 Keith Seitz <keiths@redhat.com>
441 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
442 from symbol_matches_domain in symtab.c. All local callers
443 of symbol_matches_domain updated.
444 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
445 search STRUCT_DOMAIN.
446 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
447 independently. standard_lookup will do that automatically.
448 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
449 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
450 (cp_lookup_symbol_in_namespace): Likewise.
451 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
452 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
453 may return a STRUCT_DOMAIN match.
454 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
455 * cp-support.c: Include language.h.
456 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
458 * psymtab.c (match_partial_symbol): Compare the requested
459 domain with the symbol's domain directly.
460 (lookup_partial_symbol): Likewise.
461 * symtab.c (lookup_symbol_in_language): Explain when/why
462 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
463 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
464 appropriate languages.
465 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
466 and moved to ada-lang.c
467 (lookup_block_symbol): Explain that this function only returns
468 symbol matching the requested DOMAIN.
469 Compare the requested domain with the symbol's domain directly.
470 (iterate_over_symbols): Compare the requested domain with the
471 symbol's domain directly.
472 * symtab.h (symbol_matches_domain): Remove.
474 2014-04-14 Tom Tromey <tromey@redhat.com>
477 * c-exp.y (type_aggregate_p): New function.
478 (qualified_name, classify_inner_name): Use it.
479 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
480 and TYPE_TARGET_TYPE of an enum type.
481 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
483 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
484 handle TYPE_DECLARED_CLASS.
485 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
487 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
488 * valops.c (enum_constant_from_type): New function.
489 (value_aggregate_elt): Use it.
490 * cp-namespace.c (cp_lookup_nested_symbol): Handle
493 2014-04-14 Tom Tromey <tromey@redhat.com>
495 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
496 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
498 * value.h (value_aggregate_elt): Update.
500 2014-04-14 Tom Tromey <tromey@redhat.com>
502 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
504 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
506 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
507 (evaluate_subexp_standard): Pass noside argument.
508 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
509 if noside equals EVAL_NORMAL. If the subscript yields a vla type
510 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
511 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
512 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
514 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
516 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
517 points to a constant blob.
519 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
521 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
522 property and store it as the high bound and flag the range accordingly.
523 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
524 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
525 * gdbtypes.h (enum range_flags): New enum.
526 (struct range_bounds): Add flags member.
528 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
530 * c-typeprint.c (c_type_print_varspec_suffix): Added
531 check for not yet resolved high bound. If unresolved, print
532 "variable length" string to the console instead of random
535 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
537 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
539 (ada_template_to_fixed_record_type_1): Likewise.
540 (ada_to_fixed_type_1): Likewise.
541 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
542 (cp_print_value): Likewise.
543 * d-valprint.c (dynamic_array_type): Likewise.
544 * findvar.c (address_of_variable): Likewise.
545 * jv-valprint.c (java_value_print): Likewise.
546 * valops.c (value_ind): Likewise.
547 * value.c (coerce_ref): Likewise.
549 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
551 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
552 value and retrieve the dynamic type size.
554 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
556 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
557 passed to sizeof is dynamic evaluate the argument to compute the length.
559 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
560 Joel Brobecker <brobecker@adacore.com>
562 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
563 (dwarf2_evaluate_property): New function.
564 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
565 * dwarf2read.c (attr_to_dynamic_prop): New function.
566 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
568 * gdbtypes.c: Include dwarf2loc.h.
569 (is_dynamic_type): New function.
570 (resolve_dynamic_type): New function.
571 (resolve_dynamic_bounds): New function.
572 (get_type_length): New function.
573 (check_typedef): Use get_type_length to compute type length.
574 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
575 (TYPE_LOW_BOUND_KIND): New macro.
576 (is_dynamic_type): New function prototype.
577 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
578 to resolve dynamic properties of the type. Update comment.
579 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
581 2014-04-14 Richard Henderson <rth@redhat.com>
583 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
585 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
586 Doug Evans <xdje42@gmail.com>
588 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
589 dereference TYPE_CODE_REF values.
591 2014-04-11 Joel Brobecker <brobecker@adacore.com>
593 Revert the following changes due to regressions:
595 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
596 (dwarf2_evaluate_property): New function.
597 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
598 * dwarf2read.c (attr_to_dynamic_prop): New function.
599 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
601 * gdbtypes.c: Include dwarf2loc.h.
602 (is_dynamic_type): New function.
603 (resolve_dynamic_type): New function.
604 (resolve_dynamic_bounds): New function.
605 (get_type_length): New function.
606 (check_typedef): Use get_type_length to compute type length.
607 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
608 (TYPE_LOW_BOUND_KIND): New macro.
609 (is_dynamic_type): New function prototype.
610 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
611 to resolve dynamic properties of the type. Update comment.
612 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
614 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
615 passed to sizeof is dynamic evaluate the argument to compute the length.
617 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
618 value and retrieve the dynamic type size.
620 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
621 (ada_template_to_fixed_record_type_1): Likewise.
622 (ada_to_fixed_type_1): Likewise.
623 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
624 (cp_print_value): Likewise.
625 * d-valprint.c (dynamic_array_type): Likewise.
626 * eval.c (evaluate_subexp_with_coercion): Likewise.
627 * findvar.c (address_of_variable): Likewise.
628 * jv-valprint.c (java_value_print): Likewise.
629 * valops.c (value_ind): Likewise.
630 * value.c (coerce_ref): Likewise.
632 * c-typeprint.c (c_type_print_varspec_suffix): Added
633 check for not yet resolved high bound. If unresolved, print
634 "variable length" string to the console instead of random
637 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
638 property and store it as the high bound and flag the range accordingly.
639 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
640 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
641 * gdbtypes.h (enum range_flags): New enum.
642 (struct range_bounds): Add flags member.
644 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
645 points to a constant blob.
647 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
648 (evaluate_subexp_standard): Pass noside argument.
649 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
650 if noside equals EVAL_NORMAL. If the subscript yields a vla type
651 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
652 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
653 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
655 2014-04-11 Keith Seitz <keiths@redhat.com>
658 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
659 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
662 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
664 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
665 (evaluate_subexp_standard): Pass noside argument.
666 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
667 if noside equals EVAL_NORMAL. If the subscript yields a vla type
668 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
669 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
670 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
672 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
674 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
675 points to a constant blob.
677 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
679 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
680 property and store it as the high bound and flag the range accordingly.
681 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
682 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
683 * gdbtypes.h (enum range_flags): New enum.
684 (struct range_bounds): Add flags member.
686 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
688 * c-typeprint.c (c_type_print_varspec_suffix): Added
689 check for not yet resolved high bound. If unresolved, print
690 "variable length" string to the console instead of random
693 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
695 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
696 (ada_template_to_fixed_record_type_1): Likewise.
697 (ada_to_fixed_type_1): Likewise.
698 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
699 (cp_print_value): Likewise.
700 * d-valprint.c (dynamic_array_type): Likewise.
701 * eval.c (evaluate_subexp_with_coercion): Likewise.
702 * findvar.c (address_of_variable): Likewise.
703 * jv-valprint.c (java_value_print): Likewise.
704 * valops.c (value_ind): Likewise.
705 * value.c (coerce_ref): Likewise.
707 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
709 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
710 value and retrieve the dynamic type size.
712 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
714 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
715 passed to sizeof is dynamic evaluate the argument to compute the length.
717 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
719 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
720 (dwarf2_evaluate_property): New function.
721 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
722 * dwarf2read.c (attr_to_dynamic_prop): New function.
723 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
725 * gdbtypes.c: Include dwarf2loc.h.
726 (is_dynamic_type): New function.
727 (resolve_dynamic_type): New function.
728 (resolve_dynamic_bounds): New function.
729 (get_type_length): New function.
730 (check_typedef): Use get_type_length to compute type length.
731 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
732 (TYPE_LOW_BOUND_KIND): New macro.
733 (is_dynamic_type): New function prototype.
734 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
735 to resolve dynamic properties of the type. Update comment.
736 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
738 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
740 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
741 declaring high/low bounds and change uses accordingly. Call
742 create_range_type instead of create_static_range_type.
743 * gdbtypes.c (create_range_type): New function.
744 (create_range_type): Convert bounds into struct bound_prop and pass
745 them to create_range_type.
746 * gdbtypes.h (struct bound_prop): New struct.
747 (create_range_type): New function prototype.
748 (struct range_bounds): Use struct bound_prop instead of LONGEST for
749 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
750 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
752 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
754 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
756 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
757 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
758 * ada-lang.c: All uses of create_range_type updated.
759 * coffread.c: All uses of create_range_type updated.
760 * dwarf2read.c: All uses of create_range_type updated.
761 * f-exp.y: All uses of create_range_type updated.
762 * m2-valprint.c: All uses of create_range_type updated.
763 * mdebugread.c: All uses of create_range_type updated.
764 * stabsread.c: All uses of create_range_type updated.
765 * valops.c: All uses of create_range_type updated.
766 * valprint.c: All uses of create_range_type updated.
768 2014-04-10 Pedro Alves <palves@redhat.com>
770 * breakpoint.c (single_step_breakpoints)
771 (single_step_gdbarch): Move up in the file.
772 (one_breakpoint_xfer_memory): New function, factored out from ...
773 (breakpoint_xfer_memory): ... here. Also process single-step
776 2014-04-09 Tristan Gingold <gingold@adacore.com>
778 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
780 (darwin_decode_exception_message): Free port only after use.
782 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
784 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
785 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
786 when setting the size of call_length.
788 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
790 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
791 dereference TYPE_CODE_REF values.
793 2014-04-07 Joel Brobecker <brobecker@adacore.com>
795 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
796 end of warning message.
798 2014-04-03 Doug Evans <dje@google.com>
800 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
801 of stub_comp_unit_die, stub_comp_dir is non-NULL.
803 2014-04-02 Alan Modra <amodra@gmail.com>
805 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
806 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
807 (struct symbol_file_add_from_memory_args): Add size field.
808 (find_vdso_size): New function.
809 (add_vsyscall_page): Attempt to find vdso size.
811 2014-04-01 Doug Evans <dje@google.com>
813 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
815 2014-04-01 Tristan Gingold <gingold@adacore.com>
817 * darwin-nat.c (darwin_encode_reply): Add prototype.
818 (darwin_decode_exception_message): Reply to unknown inferiors.
819 (darwin_decode_message): Handle message by id. Ignore message
821 (darwin_wait): Discard unknown messages, add debug trace.
823 2014-03-31 Doug Evans <dje@google.com>
825 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
828 2014-03-31 Doug Evans <dje@google.com>
830 New option "set print symbol-loading".
832 * solib.c (solib_read_symbols): Only print symbol loading messages
834 (solib_add): If symbol loading is in "brief" mode, notify user
835 symbols are being loaded.
836 (reload_shared_libraries_1): Ditto.
837 * symfile.c (print_symbol_loading_off): New static global.
838 (print_symbol_loading_brief): New static global.
839 (print_symbol_loading_full): New static global.
840 (print_symbol_loading_enums): New static global.
841 (print_symbol_loading): New static global.
842 (print_symbol_loading_p): New function.
843 (symbol_file_add_with_addrs): Only print symbol loading messages
845 (_initialize_symfile): Register "print symbol-loading" set/show
847 * symfile.h (print_symbol_loading_p): Declare.
849 2014-03-30 Doug Evans <xdje42@gmail.com>
851 * infrun.c (set_last_target_status): New function.
852 (handle_inferior_event): Call it.
854 2014-03-30 Doug Evans <xdje42@gmail.com>
856 * inferior.h (enum stop_kind): Improve comment.
858 2014-03-28 Joel Brobecker <brobecker@adacore.com>
860 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
861 a reference, strip the reference layer before calling
862 the lang_ops value_has_mutated callback.
864 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
866 Remove some globals from our parser.
867 * language.c (unk_lang_parser): Add "struct parser_state"
869 * language.h (struct language_defn) <la_parser>: Likewise.
870 * parse.c (expout, expout_size, expout_ptr): Remove variables.
871 (initialize_expout): Add "struct parser_state" argument.
872 Rewrite function to use the parser state.
873 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
874 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
875 write_exp_elt_longcst, write_exp_elt_dblcst,
876 write_exp_elt_decfloatcst, write_exp_elt_type,
877 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
878 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
879 write_dollar_variable): Likewise.
880 (parse_exp_in_context_1): Use parser state.
881 (insert_type_address_space): Add "struct parser_state" argument.
883 (increase_expout_size): New function.
884 * parser-defs.h: Forward declare "struct language_defn" and
885 "struct parser_state".
886 (expout, expout_size, expout_ptr): Remove extern declarations.
887 (parse_gdbarch, parse_language): Rewrite macro declarations to
888 accept the parser state.
889 (struct parser_state): New struct.
890 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
891 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
892 write_exp_elt_decfloatcst, write_exp_elt_type,
893 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
894 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
895 write_exp_msymbol, write_dollar_variable,
896 mark_struct_expression, insert_type_address_space): Add "struct
897 parser_state" argument.
898 (increase_expout_size): New function.
899 * utils.c (do_clear_parser_state): New function.
900 (make_cleanup_clear_parser_state): Likewise.
901 * utils.h (make_cleanup_clear_parser_state): New function
903 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
904 Update calls to write_exp* in order to pass the parser state.
905 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
906 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
907 (i386_stap_parse_special_token_three_arg_disp): Likewise.
908 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
909 * stap-probe.c (stap_parse_register_operand): Likewise.
910 (stap_parse_single_operand): Likewise.
911 (stap_parse_argument_1): Likewise.
912 (stap_parse_argument): Use parser state.
913 * stap-probe.h: Include "parser-defs.h".
914 (struct stap_parse_info) <pstate>: New field.
915 * c-exp.y (parse_type): Rewrite to use parser state.
916 (yyparse): Redefine to c_parse_internal.
917 (pstate): New global variable.
918 (parse_number): Add "struct parser_state" argument.
919 (write_destructor_name): Likewise.
920 (type_exp): Update calls to write_exp* and similars in order to
922 (exp1, exp, variable, qualified_name, space_identifier,
923 typename, typebase): Likewise.
924 (write_destructor_name, parse_number, lex_one_token,
925 classify_name, classify_inner_name, c_parse): Add "struct
926 parser_state" argument. Update function to use parser state.
927 * c-lang.h: Forward declare "struct parser_state".
928 (c_parse): Add "struct parser_state" argument.
929 * ada-exp.y (parse_type): Rewrite macro to use parser state.
930 (yyparse): Redefine macro to ada_parse_internal.
931 (pstate): New variable.
932 (write_int, write_object_renaming, write_var_or_type,
933 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
934 type_int, type_long, type_long_long, type_float, type_double,
935 type_long_double, type_char, type_boolean, type_system_address):
936 Add "struct parser_state" argument.
937 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
938 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
939 var_or_type, aggregate, aggregate_component_list,
940 positional_list, others, component_group,
941 component_associations): Update calls to write_exp* and similar
942 functions in order to use parser state.
943 (ada_parse, write_var_from_sym, write_int,
944 write_exp_op_with_string, write_object_renaming,
945 find_primitive_type, write_selectors, write_ambiguous_var,
946 write_var_or_type, write_name_assoc, type_int, type_long,
947 type_long_long, type_float, type_double, type_long_double,
948 type_char, type_boolean, type_system_address): Add "struct
949 parser_state" argument. Adjust function to use parser state.
950 * ada-lang.c (parse): Likewise.
951 * ada-lang.h: Forward declare "struct parser_state".
952 (ada_parse): Add "struct parser_state" argument.
953 * ada-lex.l (processInt, processReal): Likewise. Adjust all
954 calls to both functions.
955 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
957 (yyparse): Redefine macro to f_parse_internal.
958 (pstate): New variable.
959 (parse_number): Add "struct parser_state" argument.
960 (type_exp, exp, subrange, typebase): Update calls to write_exp*
961 and similars in order to use parser state.
962 (parse_number): Adjust code to use parser state.
964 (f_parse): New function.
965 * f-lang.h: Forward declare "struct parser_state".
966 (f_parse): Add "struct parser_state" argument.
967 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
969 (yyparse): Redefine macro for java_parse_internal.
970 (pstate): New variable.
971 (push_expression_name, push_expression_name, insert_exp): Add
972 "struct parser_state" argument.
973 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
974 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
975 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
976 PostIncrementExpression, PostDecrementExpression,
977 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
978 UnaryExpressionNotPlusMinus, CastExpression,
979 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
980 RelationalExpression, EqualityExpression, AndExpression,
981 ExclusiveOrExpression, InclusiveOrExpression,
982 ConditionalAndExpression, ConditionalOrExpression,
983 ConditionalExpression, Assignment, LeftHandSide): Update
984 calls to write_exp* and similars in order to use parser state.
985 (parse_number): Ajust code to use parser state.
987 (java_parse): New function.
988 (push_variable): Add "struct parser_state" argument. Adjust
989 code to user parser state.
990 (push_fieldnames, push_qualified_expression_name,
991 push_expression_name, insert_exp): Likewise.
992 * jv-lang.h: Forward declare "struct parser_state".
993 (java_parse): Add "struct parser_state" argument.
994 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
996 (yyparse): Redefine macro to m2_parse_internal.
997 (pstate): New variable.
998 (type_exp, exp, fblock, variable, type): Update calls to
999 write_exp* and similars to use parser state.
1001 (m2_parse): New function.
1002 * m2-lang.h: Forward declare "struct parser_state".
1003 (m2_parse): Add "struct parser_state" argument.
1004 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
1005 * objc-lang.h: Forward declare "struct parser_state".
1006 (end_msglist): Add "struct parser_state" argument.
1007 * p-exp.y (parse_type): Rewrite macro to use parser state.
1008 (yyparse): Redefine macro to pascal_parse_internal.
1009 (pstate): New variable.
1010 (parse_number): Add "struct parser_state" argument.
1011 (type_exp, exp1, exp, qualified_name, variable): Update calls to
1012 write_exp* and similars in order to use parser state.
1013 (parse_number, yylex): Adjust code to use parser state.
1014 (pascal_parse): New function.
1015 * p-lang.h: Forward declare "struct parser_state".
1016 (pascal_parse): Add "struct parser_state" argument.
1017 * go-exp.y (parse_type): Rewrite macro to use parser state.
1018 (yyparse): Redefine macro to go_parse_internal.
1019 (pstate): New variable.
1020 (parse_number): Add "struct parser_state" argument.
1021 (type_exp, exp1, exp, variable, type): Update calls to
1022 write_exp* and similars in order to use parser state.
1023 (parse_number, lex_one_token, classify_name, yylex): Adjust code
1024 to use parser state.
1025 (go_parse): Likewise.
1026 * go-lang.h: Forward declare "struct parser_state".
1027 (go_parse): Add "struct parser_state" argument.
1029 2014-03-27 Doug Evans <dje@google.com>
1031 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
1033 2014-03-27 Doug Evans <dje@google.com>
1035 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
1036 Remove argument abbrev_section. All callers updated.
1038 2014-03-27 Doug Evans <dje@google.com>
1040 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
1041 addr_base, ranges_base.
1043 2014-03-26 Keith Seitz <keiths@redhat.com>
1045 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
1046 types, not VAR_DOMAIN.
1048 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
1050 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
1052 * features/nios2-linux.c: Regenerated.
1053 * features/nios2.c: Regenerated.
1055 2014-03-25 Pedro Alves <palves@redhat.com>
1057 * cli/cli-script.c (script_from_file): Force the interpreter to
1060 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
1062 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
1063 small stack allocation.
1065 2014-03-24 Tristan Gingold <gingold@adacore.com>
1067 * darwin-nat.c (exc_server): Remove unused prototype.
1068 (darwin_dump_message): Correctly display data on x86_64.
1069 (darwin_encode_reply): Fix style.
1070 Add comments and fix indentation.
1072 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
1074 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
1076 2014-03-22 Doug Evans <xdje42@gmail.com>
1078 * infcmd.c: Whitespace fixes.
1079 (interrupt_command): Merge two function comments into one.
1081 2014-03-22 Doug Evans <xdje42@gmail.com>
1083 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
1086 2014-03-22 Yao Qi <yao@codesourcery.com>
1088 * remote.c (target_read_live_memory): Remove.
1089 (memory_xfer_live_readonly_partial): Rename it to
1090 remote_xfer_live_readonly_partial. Remove argument 'object'.
1091 All callers updated. Call remote_read_bytes_1
1092 instead of target_read_live_memory.
1093 * tracepoint.c (set_traceframe_number): Remove.
1094 (make_cleanup_restore_traceframe_number): Likewise .
1095 * tracepoint.h (set_traceframe_number): Remove declaration.
1096 (make_cleanup_restore_traceframe_number): Likewise.
1098 2014-03-22 Yao Qi <yao@codesourcery.com>
1100 * remote.c (remote_read_bytes): Move code on reading from the
1102 (remote_read_bytes_1): ... here. New function.
1104 2014-03-22 Yao Qi <yao@codesourcery.com>
1106 * ctf.c (ctf_xfer_partial): Check the return value of
1107 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
1108 return TARGET_XFER_UNAVAILABLE.
1109 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
1110 * target.c (target_read_live_memory): Move it to remote.c.
1111 (memory_xfer_live_readonly_partial): Likewise.
1112 (memory_xfer_partial_1): Move some code to remote_read_bytes.
1113 * remote.c (target_read_live_memory): Moved from target.c.
1114 (memory_xfer_live_readonly_partial): Likewise.
1115 (remote_read_bytes): Factored out from
1116 memory_xfer_partial_1.
1118 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
1120 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
1123 2014-03-21 Pedro Alves <palves@redhat.com>
1125 * infrun.c (normal_stop): Extend comment.
1127 2014-03-21 Hui Zhu <hui@codesourcery.com>
1128 Pedro Alves <palves@redhat.com>
1130 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
1132 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
1133 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
1134 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
1136 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
1138 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
1139 `z' formatted output modifier.
1141 2014-03-20 Tom Tromey <tromey@redhat.com>
1142 Sergio Durigan Junior <sergiodj@redhat.com>
1144 * probe.c (parse_probes): Turn assert into an ordinary error.
1145 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
1146 exceptions when parsing probes. Rearrange the code for clarity.
1148 2014-03-20 Tom Tromey <tromey@redhat.com>
1151 * top.c (execute_command): Only dispatch events if the command
1154 2014-03-20 Tom Tromey <tromey@redhat.com>
1157 * infcall.c: Include event-top.h.
1158 (run_inferior_call): Call async_disable_stdin if needed.
1160 2014-03-20 Pedro Alves <palves@redhat.com>
1162 * infrun.c (prepare_to_proceed): Delete.
1163 (thread_still_needs_step_over): New function.
1164 (find_thread_needs_step_over): New function.
1165 (proceed): If the current thread needs a step-over, set its
1166 steping_over_breakpoint flag. Adjust to use
1167 find_thread_needs_step_over instead of prepare_to_proceed.
1168 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
1169 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
1171 (switch_back_to_stepped_thread): Step over breakpoints of all
1172 threads not the stepping thread, before switching back to the
1175 2014-03-20 Pedro Alves <palves@redhat.com>
1177 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
1179 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
1180 * infrun.c (saved_singlestep_ptid)
1181 (stepping_past_singlestep_breakpoint): Delete.
1182 (resume): Remove stepping_past_singlestep_breakpoint handling.
1183 (proceed): Store the prev_pc of the stepping thread too.
1184 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
1186 (enum infwait_states): Delete infwait_thread_hop_state.
1187 (struct execution_control_state) <hit_singlestep_breakpoint>: New
1189 (handle_inferior_event): Adjust.
1190 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
1191 handling and the thread-hop code. Before removing single-step
1192 breakpoints, check whether the thread hit a single-step breakpoint
1193 of another thread. If it did, the trap is not a random signal.
1194 (switch_back_to_stepped_thread): If the event thread hit a
1195 single-step breakpoint, unblock it before switching to the
1196 stepping thread. Handle the case of the stepped thread having
1198 (keep_going): Handle the case of the current thread moving past a
1199 single-step breakpoint.
1201 2014-03-20 Pedro Alves <palves@redhat.com>
1204 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
1205 are being stepped over.
1206 (breakpoint_address_match): Make extern.
1207 * breakpoint.h (breakpoint_address_match): New declaration.
1208 * inferior.h (stepping_past_instruction_at): New declaration.
1209 * infrun.c (struct step_over_info): New type.
1210 (step_over_info): New global.
1211 (set_step_over_info, clear_step_over_info)
1212 (stepping_past_instruction_at): New functions.
1213 (handle_inferior_event): Clear the step-over info when
1214 trap_expected is cleared.
1215 (resume): Remove now stale comment.
1216 (clear_proceed_status): Clear step-over info.
1217 (proceed): Adjust step-over handling to set or clear the step-over
1218 info instead of removing all breakpoints.
1219 (handle_signal_stop): When setting up a thread-hop, don't remove
1221 (stop_stepping): Clear step-over info.
1222 (keep_going): Adjust step-over handling to set or clear step-over
1223 info and then always inserting breakpoints, instead of removing
1224 all breakpoints when stepping over one.
1226 2014-03-20 Pedro Alves <palves@redhat.com>
1228 * infrun.c (previous_inferior_ptid): Adjust comment.
1229 (deferred_step_ptid): Delete.
1230 (infrun_thread_ptid_changed, prepare_to_proceed)
1231 (init_wait_for_inferior): Adjust.
1232 (handle_signal_stop): Delete deferred_step_ptid handling.
1234 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1237 * defs.h (sync_quit_force_run): New declaration.
1238 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
1239 * event-top.c (async_sigterm_handler): New declaration.
1240 (async_sigterm_token): New variable.
1241 (async_init_signals): Create also async_sigterm_token.
1242 (async_sigterm_handler): New function.
1243 (sync_quit_force_run): New variable.
1244 (handle_sigterm): Replace quit_force call by other calls.
1245 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
1247 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
1249 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
1250 offset into SPE pseudo registers.
1252 2014-03-18 Pedro Alves <palves@redhat.com>
1255 * inferior.h (print_stop_event): Declare.
1256 * infrun.c (print_stop_event): New, factored out from ...
1257 (normal_stop): ... this.
1258 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
1259 of bpstat_print/print_stack_frame.
1261 2014-03-17 Tom Tromey <tromey@redhat.com>
1263 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
1265 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
1267 * ada-lang.c (decode_constrained_packed_array): Perform a
1268 minimal coercion for reference with coerce_ref instead of
1271 2014-03-17 Tristan Gingold <gingold@adacore.com>
1273 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
1274 (darwin_solib_create_inferior_hook): Emit a warning if version
1277 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
1279 * python/py-value.c (get_field_flag): Cast flag_name argument to
1280 PyObject_GetAttrString to support Python 2.4.
1282 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1284 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
1285 (Global Maintainers): Remove Jan Kratochvil.
1287 2014-03-14 Pedro Alves <palves@redhat.com>
1289 * inferior.h (terminal_ours_for_output): Rename to ...
1290 (child_terminal_ours_for_output): ... this.
1291 (terminal_save_ours): Rename to ...
1292 (child_terminal_save_ours): ... this.
1293 (terminal_ours): Rename to ...
1294 (child_terminal_ours): ... this.
1295 (terminal_inferior): Rename to ...
1296 (child_terminal_inferior): ... this.
1297 (terminal_init_inferior): Rename to ...
1298 (child_terminal_init_inferior): ... this.
1299 (terminal_init_inferior_with_pgrp): Rename to ...
1300 (child_terminal_init_inferior_with_pgrp): ... this.
1301 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
1302 (child_terminal_init_with_pgrp): ... this.
1303 (terminal_save_ours): Rename to ...
1304 (child_terminal_save_ours): ... this.
1305 (terminal_init_inferior): Rename to ...
1306 (child_terminal_init): ... this. Adjust.
1307 (terminal_inferior): Rename to ...
1308 (child_terminal_inferior): ... this.
1309 (terminal_ours_for_output): Rename to ...
1310 (child_terminal_ours_for_output): ... this. Adjust.
1311 (terminal_ours): Rename to ...
1312 (child_terminal_ours): ... this.
1313 (terminal_ours_1): Rename to ...
1314 (child_terminal_ours_1): ... this. Adjust.
1315 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
1316 * windows-nat.c (do_initial_windows_stuff): Adjust.
1317 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
1318 (gnu_terminal_init): ... this. Adjust.
1319 (gnu_target): Adjust.
1320 * inf-child.c (inf_child_target): Adjust.
1322 2014-03-13 Doug Evans <xdje42@gmail.com>
1325 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
1328 2014-03-13 Doug Evans <xdje42@gmail.com>
1330 * value.c (record_latest_value): Call release_value_or_incref
1331 instead of release_value.
1333 2014-03-13 Pedro Alves <palves@redhat.com>
1335 * procfs.c (procfs_target): Don't override to_shortname,
1336 to_longname or to_doc.
1338 2014-03-13 Pedro Alves <palves@redhat.com>
1340 * inf-child.c (inf_child_open, inf_child_target): Don't mention
1341 Unix in user visible strings.
1343 2014-03-12 Stan Shebs <stan@codesourcery.com>
1345 * gdbtypes.h: Annotate comments for Doxygen, add a page
1346 block comment with some general info.
1348 2014-03-12 Pedro Alves <palves@redhat.com>
1350 * infcmd.c (prepare_execution_command): New function, factored out
1351 from several execution commands.
1352 (run_command_1, continue_command, step_1, jump_command)
1353 (signal_command, until_command, advance_command, finish_command)
1354 (attach_command): Use prepare_execution_command.
1356 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
1358 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
1361 (struct arm_linux_thread_points): Removed.
1362 (struct arm_linux_process_info): New.
1363 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
1364 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
1365 (arm_linux_find_breakpoints_by_tid): Removed.
1366 (struct arch_lwp_info): New.
1367 (arm_linux_find_process_pid): New functions.
1368 (arm_linux_add_process): New functions.
1369 (arm_linux_process_info_get): New functions.
1370 (arm_linux_forget_process): New function.
1371 (arm_linux_get_debug_reg_state): New function.
1372 (struct update_registers_data): New.
1373 (update_registers_callback): New function.
1374 (arm_linux_insert_hw_breakpoint1): Updated.
1375 (arm_linux_remove_hw_breakpoint1): Updated.
1376 (arm_linux_insert_hw_breakpoint): Updated.
1377 (arm_linux_remove_hw_breakpoint): Updated.
1378 (arm_linux_insert_watchpoint): Updated.
1379 (arm_linux_remove_watchpoint): Updated.
1380 (arm_linux_new_thread): Updated.
1381 (arm_linux_prepare_to_resume): New function.
1382 (arm_linux_new_fork): New function.
1383 (_initialize_arm_linux_nat): Updated.
1385 2014-03-12 Pedro Alves <palves@redhat.com>
1387 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
1389 2014-03-12 Tom Tromey <tromey@redhat.com>
1391 * inf-child.c (return_zero): New function.
1392 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
1393 * aix-thread.c (aix_thread_inferior_created): New function.
1394 (aix_thread_attach): Remove.
1395 (init_aix_thread_ops): Don't set to_attach.
1396 (_initialize_aix_thread): Register inferior_created observer.
1397 * corelow.c (init_core_ops): Don't set to_attach or
1399 * exec.c (init_exec_ops): Don't set to_attach or
1401 * infcmd.c (run_command_1): Use find_run_target. Make direct
1403 (attach_command): Use find_attach_target. Make direct target
1405 * record-btrace.c (init_record_btrace_ops): Don't set
1407 * record-full.c (record_full_can_async_p, record_full_is_async_p):
1409 (init_record_full_ops, init_record_full_core_ops): Update. Don't
1410 set to_create_inferior.
1411 * target.c (complete_target_initialization): Add assertion.
1412 (target_create_inferior): Remove.
1413 (find_default_attach, find_default_create_inferior): Remove.
1414 (find_attach_target, find_run_target): New functions.
1415 (find_default_is_async_p, find_default_can_async_p)
1416 (target_supports_non_stop, target_attach): Remove.
1417 (init_dummy_target): Don't set to_create_inferior or
1418 to_supports_non_stop.
1419 * target.h (struct target_ops) <to_attach>: Add comment. Remove
1420 TARGET_DEFAULT_FUNC.
1421 <to_create_inferior>: Add comment.
1422 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
1423 TARGET_DEFAULT_RETURN.
1424 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
1425 (find_attach_target, find_run_target): Declare.
1426 (target_create_inferior): Remove.
1427 (target_has_execution_1): Update comment.
1428 (target_supports_non_stop): Remove.
1429 * target-delegates.c: Rebuild.
1431 2014-03-12 Pedro Alves <palves@redhat.com>
1433 * inf-child.h: Update comment to not mention Unix.
1435 2014-03-12 Pedro Alves <palves@redhat.com>
1437 * inf-child.c: Update top comment to not mention Unix. Add
1438 generic comment describing how this target is meant to be used.
1439 (inf_child_post_attach, inf_child_post_startup_inferior)
1440 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
1443 2014-03-12 Pedro Alves <palves@redhat.com>
1445 * nto-procfs.c: Include inf-child.h.
1446 (procfs_ops): Delete global.
1447 (procfs_can_run): Delete method.
1448 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
1449 target pointer instead of referencing procfs_ops.
1450 (procfs_prepare_to_store): Delete.
1451 (init_procfs_ops): Delete function.
1452 (procfs_target): New function, based on init_procfs_ops, but
1453 inherit inf_child_target.
1454 (_initialize_procfs): Use procfs_target.
1456 2014-03-12 Pedro Alves <palves@redhat.com>
1458 * windows-nat.c: Include inf-child.h.
1459 (windows_ops): Delete global.
1460 (windows_open, windows_prepare_to_store, windows_can_run): Delete
1462 (init_windows_ops): Delete function.
1463 (windows_target): New function, based on init_windows_ops, but
1464 inherit inf_child_target.
1465 (_initialize_windows_nat): Use windows_target. Install x86
1466 specific target methods here.
1468 2014-03-10 Doug Evans <xdje42@gmail.com>
1470 * guile/guile.c (call_initialize_gdb_module): New function.
1471 (initialize_guile): Replace call to scm_init_guile with call to
1474 2014-03-10 Joel Brobecker <brobecker@adacore.com>
1476 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
1477 in call to TYPE_CODE macro.
1479 2014-03-10 Jerome Guitton <guitton@adacore.com>
1481 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
1482 Resolve tagged types to full view.
1484 2014-03-10 Hui Zhu <hui@codesourcery.com>
1486 * target.h (target_insert_breakpoint): Remove "hardware" from its
1489 2014-03-07 Doug Evans <dje@google.com>
1491 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
1493 2014-03-07 Doug Evans <dje@google.com>
1495 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
1496 Remove unused local comp_dir_attr. Assert exactly one of
1497 stub_comp_unit_die, stub_comp_dir is non-NULL.
1499 2014-03-07 Joel Brobecker <brobecker@adacore.com>
1501 * target.h (complete_target_initialization, add_target):
1504 2014-03-07 Pedro Alves <palves@redhat.com>
1506 * go32-nat.c: Include inf-child.h.
1507 (go32_ops): Delete global.
1508 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
1510 (go32_create_inferior): Push the passed in target pointer instead
1511 of referencing go32_ops.
1512 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
1513 (go32_target): New function, based on init_go32_ops, but inherit
1515 (_initialize_go32_nat): Use go32_target. Move parts of
1518 2014-03-06 Joel Brobecker <brobecker@adacore.com>
1520 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
1521 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
1522 SYMBOL_VALUE_ADDRESS.
1523 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
1525 2014-03-06 Yao Qi <yao@codesourcery.com>
1527 * breakpoint.c (get_tracepoint_by_number): Remove argument
1528 optional_p. All callers updated. Adjust comments. Update
1530 * breakpoint.h (get_tracepoint_by_number): Update declaration.
1532 2014-03-06 Yao Qi <yao@codesourcery.com>
1534 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
1535 early if get_number returns zero. Use 'p' instead of 'args'.
1537 2014-03-06 Yao Qi <yao@codesourcery.com>
1539 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
1542 2014-03-06 Yao Qi <yao@codesourcery.com>
1544 PR breakpoints/16508
1545 * tracepoint.c (check_trace_running): New function.
1546 (trace_find_command): Move code to check_trace_running and
1547 call check_trace_running.
1548 (trace_find_pc_command): Likewise.
1549 (trace_find_tracepoint_command): Likewise.
1550 (trace_find_line_command): Likewise.
1551 (trace_find_range_command): Likewise.
1552 * tracepoint.h (check_trace_running): Likewise.
1553 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
1555 2014-03-06 Yao Qi <yao@codesourcery.com>
1557 * target.h (struct target_ops) <to_traceframe_info>: Use
1558 TARGET_DEFAULT_NORETURN (tcomplain ()).
1559 * target-delegates.c: Regenerated.
1561 2014-03-05 Pedro Alves <palves@redhat.com>
1564 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
1565 void. Update comment.
1566 (dcache_xfer_memory): Delete.
1567 (dcache_read_memory_partial): New, based on the read bits of
1569 (dcache_update): Add status parameter. Use ULONGEST for len, and
1570 adjust. Discard cache lines if the reason for the update was
1572 * dcache.h (dcache_xfer_memory): Delete declaration.
1573 (dcache_read_memory_partial): New declaration.
1574 (dcache_update): Update prototype.
1575 * target.c (raw_memory_xfer_partial): Update the dcache here.
1576 (memory_xfer_partial_1): Don't handle dcache writes here.
1578 2014-03-05 Mike Frysinger <vapier@gentoo.org>
1580 * remote-sim.c (gdbsim_load): Add const to prog.
1582 2014-03-03 Tom Tromey <tromey@redhat.com>
1584 * elfread.c (probe_key): Change to bfd_data.
1585 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
1586 now per-BFD, not per-objfile.
1587 * stap-probe.c (stap_probe_destroy): Update comment.
1588 (handle_stap_probe): Allocate on the per-BFD obstack.
1590 2014-03-03 Tom Tromey <tromey@redhat.com>
1592 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
1593 * breakpoint.c (create_longjmp_master_breakpoint): Use
1595 (add_location_to_breakpoint, bkpt_probe_insert_location)
1596 (bkpt_probe_remove_location): Update.
1597 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
1598 * elfread.c (elf_symfile_relocate_probe): Remove.
1599 (elf_probe_fns): Update.
1600 (insert_exception_resume_breakpoint): Change type of "probe"
1601 parameter to bound_probe.
1602 (check_exception_resume): Update.
1603 * objfiles.c (objfile_relocate1): Don't relocate probes.
1604 * probe.c (bound_probe_s): New typedef.
1605 (parse_probes): Use get_probe_address. Set sal's objfile.
1606 (find_probe_by_pc): Return a bound_probe.
1607 (collect_probes): Return a VEC(bound_probe_s).
1608 (compare_probes): Update.
1609 (gen_ui_out_table_header_info): Change type of "probes"
1611 (info_probes_for_ops): Update.
1612 (get_probe_address): New function.
1613 (probe_safe_evaluate_at_pc): Update.
1614 * probe.h (struct probe_ops) <get_probe_address>: New field.
1615 <set_semaphore, clear_semaphore>: Add objfile parameter.
1616 (struct probe) <objfile>: Remove field.
1618 <address>: Update comment.
1619 (struct bound_probe): New.
1620 (find_probe_by_pc): Return a bound_probe.
1621 (get_probe_address): Declare.
1622 * solib-svr4.c (struct probe_and_action) <address>: New field.
1623 (hash_probe_and_action, equal_probe_and_action): Update.
1624 (register_solib_event_probe): Add address parameter.
1625 (solib_event_probe_at): Update.
1626 (svr4_create_probe_breakpoints): Add objfile parameter. Use
1628 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
1629 (stap_get_probe_address): New function.
1630 (stap_can_evaluate_probe_arguments, compute_probe_arg)
1631 (compile_probe_arg): Update.
1632 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
1634 (handle_stap_probe): Don't relocate the probe.
1635 (stap_relocate): Remove.
1636 (stap_gen_info_probes_table_values): Update.
1637 (stap_probe_ops): Remove stap_relocate.
1638 * symfile-debug.c (debug_sym_relocate_probe): Remove.
1639 (debug_sym_probe_fns): Update.
1640 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
1641 * symtab.c (init_sal): Use memset.
1642 * symtab.h (struct symtab_and_line) <objfile>: New field.
1643 * tracepoint.c (start_tracing, stop_tracing): Update.
1645 2014-03-03 Tom Tromey <tromey@redhat.com>
1647 * probe.h (parse_probes, find_probe_by_pc)
1648 (find_probes_in_objfile): Fix comments.
1650 2014-03-02 Doug Evans <xdje42@gmail.com>
1652 * infrun.c (handle_signal_stop): Replace test for
1653 TARGET_WAITKIND_STOPPED with an assert.
1655 2014-03-02 Doug Evans <xdje42@gmail.com>
1657 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
1659 2014-03-02 Doug Evans <xdje42@gmail.com>
1661 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
1663 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1665 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
1667 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1669 * i386obsd-nat.c: Include "obsd-nat.h".
1670 (_initialize_i386obsd_nat): Call obsd_add_target instead of
1672 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
1674 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1676 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
1678 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1680 * mips64obsd-nat.c: Include "obsd-nath".
1681 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
1683 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
1685 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1687 * amd64obsd-nat.c: Include "obsd-nat,h.
1688 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
1690 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
1692 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
1694 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
1695 (find_overload_match): Update call to find_oload_champ.
1696 (find_oload_champ_namespace_loop): Likewise
1698 2014-02-28 Mark Kettenis <kettenis@gnu.org>
1700 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
1702 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
1703 * config/sparc/obsd64.mh: New file.
1704 * sparc64obsd-nat.c: New file.
1706 * obsd-nat.h: New file.
1707 * obsd-nat.c: New file.
1708 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
1709 (ALLDEPFILES): Add obsd-nat.c.
1711 2014-02-28 Tom Tromey <tromey@redhat.com>
1713 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
1714 * cli-out.h (cli_ui_out_impl): Now const.
1715 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
1716 * ui-out.c (struct ui_out) <impl>: Now const.
1717 (default_ui_out_impl): Now const.
1718 (ui_out_new): Make 'impl' parameter const.
1719 * ui-out.h (ui_out_new): Update.
1721 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1723 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
1725 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1727 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
1729 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1731 Additional PR 8882 fix.
1732 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
1734 2014-02-27 Pedro Alves <palves@redhat.com>
1736 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
1739 2014-02-27 Pedro Alves <palves@redhat.com>
1742 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
1743 * nat/linux-waitpid.c: Include string.h.
1744 (status_to_str): Moved here and made extern.
1745 * nat/linux-waitpid.h (status_to_str): New declaration.
1747 2014-02-27 Hui Zhu <hui@codesourcery.com>
1750 * infrun.c (ptid_match): Move ...
1751 * common/ptid.c (ptid_match): ... here.
1752 * inferior.h (ptid_match): Move ...
1753 * common/ptid.h (ptid_match): ... here.
1755 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1757 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
1758 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
1761 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1763 * obsd-tdep.c (obsd_auxv_parse): New function.
1764 (obsd_init_abi): Set auxv_parse.
1766 * gdbarch.sh (auxv_parse): New.
1767 * gdbarch.h: Regenerated.
1768 * gdbarch.c: Regenerated.
1769 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
1771 2014-02-26 Ludovic Courtès <ludo@gnu.org>
1773 * guile/scm-value.c (gdbscm_history_append_x): New function.
1774 (value_functions): Add it.
1776 2014-02-27 Joel Brobecker <brobecker@adacore.com>
1778 * dwarf2read.c (attr_value_as_address): New function.
1779 (dwarf2_find_base_address, read_call_site_scope): Use
1780 attr_value_as_address in place of DW_ADDR.
1781 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
1782 the low and high addresses. Slight rework of the handling
1783 of the high pc being a constant form, and limit it to
1784 DWARF verson 4 or higher.
1785 (dwarf2_record_block_ranges): Likewise.
1786 (read_partial_die): Likewise.
1787 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
1789 2014-02-26 Tom Tromey <tromey@redhat.com>
1791 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
1793 2014-02-26 Tom Tromey <tromey@redhat.com>
1795 * elfread.c (elf_read_minimal_symbols): Return early if
1796 minimal symbols have already been read. Add "ei" parameter.
1797 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
1798 * minsyms.c (prim_record_minimal_symbol_full): Update.
1799 * objfiles.h (struct objstats) <n_minsyms>: Move...
1800 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
1801 * symmisc.c (print_objfile_statistics): Update.
1803 2014-02-26 Tom Tromey <tromey@redhat.com>
1805 * elfread.c (elf_read_minimal_symbols): New function, from
1807 (elf_symfile_read): Call it.
1809 2014-02-26 Tom Tromey <tromey@redhat.com>
1811 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
1812 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
1813 (lookup_minimal_symbol_solib_trampoline)
1814 (lookup_minimal_symbol_by_pc_section_1)
1815 (lookup_minimal_symbol_and_objfile): Update.
1816 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
1817 Don't allocate a minimal symbol if minsyms have already been read.
1818 (build_minimal_symbol_hash_tables): Update.
1819 (install_minimal_symbols): Do nothing if minsyms already read.
1820 Use the per-BFD obstack.
1821 (terminate_minimal_symbol_table): Use the per-BFD obstack.
1822 * objfiles.c (allocate_objfile): Call
1823 terminate_minimal_symbol_table later.
1824 (have_minimal_symbols): Update.
1825 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
1826 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
1827 Move from struct objfile.
1828 <minsyms_read>: New field.
1829 (struct objfile) <msymbols, minimal_symbol_count,
1830 msymbol_hash, msymbol_demangled_hash>: Move.
1831 (ALL_OBJFILE_MSYMBOLS): Update.
1832 * symfile.c (read_symbols): Set minsyms_read.
1833 (reread_symbols): Update.
1834 * symmisc.c (dump_objfile, dump_msymbols): Update.
1836 2014-02-26 Tom Tromey <tromey@redhat.com>
1838 * minsyms.c (msymbols_sort): Remove.
1839 * minsyms.h (msymbols_sort): Remove.
1840 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
1841 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
1842 * elfread.c (elf_symtab_read): Don't add section offsets.
1843 * xcoffread.c (record_minimal_symbol): Don't add section offset
1844 to minimal symbol address.
1845 * somread.c (text_offset, data_offset): Remove.
1846 (som_symtab_read): Don't add section offsets to minimal symbol
1848 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
1849 Don't add section offsets to minimal symbols.
1850 * coffread.c (coff_symtab_read): Don't add section offsets
1851 to minimal symbol addresses.
1852 * machoread.c (macho_symtab_add_minsym): Don't add section offset
1853 to minimal symbol addresses.
1854 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
1855 section offset to minimal symbol addresses.
1856 * mdebugread.c (parse_partial_symbols): Don't add section
1857 offset to minimal symbol addresses.
1858 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
1859 offset to minimal symbol addresses.
1861 2014-02-26 Tom Tromey <tromey@redhat.com>
1863 * ada-lang.c (ada_main_name): Update.
1864 (ada_add_standard_exceptions): Update.
1865 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
1866 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
1867 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
1868 * auxv.c (ld_so_xfer_auxv): Update.
1869 * avr-tdep.c (avr_scan_prologue): Update.
1870 * ax-gdb.c (gen_var_ref): Update.
1871 * blockframe.c (get_pc_function_start)
1872 (find_pc_partial_function_gnu_ifunc): Update.
1873 * breakpoint.c (create_overlay_event_breakpoint)
1874 (create_longjmp_master_breakpoint)
1875 (create_std_terminate_master_breakpoint)
1876 (create_exception_master_breakpoint): Update.
1877 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
1878 * c-valprint.c (c_val_print): Update.
1879 * coff-pe-read.c (add_pe_forwarded_sym): Update.
1880 * common/agent.c (agent_look_up_symbols): Update.
1881 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
1882 * dwarf2loc.c (call_site_to_target_addr): Update.
1883 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
1884 * elfread.c (elf_gnu_ifunc_record_cache)
1885 (elf_gnu_ifunc_resolve_by_got): Update.
1886 * findvar.c (default_read_var_value): Update.
1887 * frame.c (inside_main_func): Update.
1888 * frv-tdep.c (frv_frame_this_id): Update.
1889 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
1890 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
1892 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
1893 (hppa_hpux_find_dummy_bpaddr): Update.
1894 * hppa-tdep.c (hppa_symbol_address): Update.
1895 * infcmd.c (until_next_command): Update.
1896 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
1898 * linespec.c (minsym_found, add_minsym): Update.
1899 * linux-nat.c (get_signo): Update.
1900 * linux-thread-db.c (inferior_has_bug): Update.
1901 * m32c-tdep.c (m32c_return_value)
1902 (m32c_m16c_address_to_pointer): Update.
1903 * m32r-tdep.c (m32r_frame_this_id): Update.
1904 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
1905 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
1906 * maint.c (maintenance_translate_address): Update.
1907 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
1908 (frob_address): New function.
1909 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
1910 frob_address. Rename parameter to "pc_in".
1911 (compare_minimal_symbols, compact_minimal_symbols): Use raw
1913 (find_solib_trampoline_target, minimal_symbol_upper_bound):
1915 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
1916 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
1917 * objc-lang.c (find_objc_msgsend): Update.
1918 * objfiles.c (objfile_relocate1): Update.
1919 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
1920 * p-valprint.c (pascal_val_print): Update.
1921 * parse.c (write_exp_msymbol): Update.
1922 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
1923 (ppc_elfv2_skip_entrypoint): Update.
1924 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1925 * printcmd.c (build_address_symbolic, msym_info)
1926 (address_info): Update.
1927 * proc-service.c (ps_pglobal_lookup): Update.
1928 * psymtab.c (find_pc_sect_psymtab_closer)
1929 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
1930 Change msymbol parameter to bound_minimal_symbol.
1931 * ravenscar-thread.c (get_running_thread_id): Update.
1932 * remote.c (remote_check_symbols): Update.
1933 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
1935 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
1936 * solib-dsbt.c (lm_base): Update.
1937 * solib-frv.c (lm_base, main_got): Update.
1938 * solib-irix.c (locate_base): Update.
1939 * solib-som.c (som_solib_create_inferior_hook)
1940 (link_map_start): Update.
1941 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
1942 * solib-svr4.c (elf_locate_base, enable_break): Update.
1943 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
1944 (flush_ea_cache): Update.
1945 * stabsread.c (define_symbol, scan_file_globals): Update.
1946 * stack.c (find_frame_funname): Update.
1947 * symfile-debug.c (debug_qf_expand_symtabs_matching)
1948 (debug_qf_find_pc_sect_symtab): Update.
1949 * symfile.c (simple_read_overlay_table)
1950 (simple_overlay_update): Update.
1951 * symfile.h (struct quick_symbol_functions)
1952 <find_pc_sect_symtab>: Change type of msymbol to
1953 bound_minimal_symbol.
1954 * symmisc.c (dump_msymbols): Update.
1955 * symtab.c (find_pc_sect_symtab_via_partial)
1956 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
1957 (search_symbols, print_msymbol_info): Update.
1958 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
1959 (MSYMBOL_VALUE_ADDRESS): Redefine.
1960 (BMSYMBOL_VALUE_ADDRESS): New macro.
1961 * tracepoint.c (scope_info): Update.
1962 * tui/tui-disasm.c (tui_find_disassembly_address)
1963 (tui_get_begin_asm_address): Update.
1964 * valops.c (find_function_in_inferior): Update.
1965 * value.c (value_static_field, value_fn_field): Update.
1967 2014-02-26 Tom Tromey <tromey@redhat.com>
1969 * ada-lang.c (ada_update_initial_language): Update.
1970 (ada_main_name, ada_has_this_exception_support): Update.
1971 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
1972 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
1973 * arm-tdep.c (arm_skip_stub): Update.
1974 * auxv.c (ld_so_xfer_auxv): Update.
1975 * avr-tdep.c (avr_scan_prologue): Update.
1976 * ax-gdb.c (gen_var_ref): Update.
1977 * breakpoint.c (struct breakpoint_objfile_data)
1978 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
1979 type to bound_minimal_symbol.
1980 (create_overlay_event_breakpoint)
1981 (create_longjmp_master_breakpoint)
1982 (create_std_terminate_master_breakpoint)
1983 (create_exception_master_breakpoint): Update.
1984 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
1985 * c-exp.y (classify_name): Update.
1986 * coffread.c (coff_symfile_read): Update.
1987 * common/agent.c (agent_look_up_symbols): Update.
1988 * d-lang.c (d_main_name): Update.
1989 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
1990 * dec-thread.c (enable_dec_thread): Update.
1991 * dwarf2loc.c (call_site_to_target_addr): Update.
1992 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
1993 * eval.c (evaluate_subexp_standard): Update.
1994 * findvar.c (struct minsym_lookup_data) <result>: Change type
1995 to bound_minimal_symbol.
1997 (minsym_lookup_iterator_cb, default_read_var_value): Update.
1998 * frame.c (inside_main_func): Update.
1999 * frv-tdep.c (frv_frame_this_id): Update.
2000 * gcore.c (call_target_sbrk): Update.
2001 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2002 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2004 * go-lang.c (go_main_name): Update.
2005 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
2006 (hppa_hpux_find_import_stub_for_addr): Update.
2007 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
2008 Update. Change return type.
2009 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
2011 * jit.c (jit_breakpoint_re_set_internal): Update.
2012 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
2014 * linux-nat.c (get_signo): Update.
2015 * linux-thread-db.c (inferior_has_bug): Update
2016 * m32c-tdep.c (m32c_return_value)
2017 (m32c_m16c_address_to_pointer): Update.
2018 * m32r-tdep.c (m32r_frame_this_id): Update.
2019 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2020 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2021 * minsyms.c (lookup_minimal_symbol_internal): Rename to
2022 lookup_minimal_symbol. Change return type.
2023 (lookup_minimal_symbol): Remove.
2024 (lookup_bound_minimal_symbol): Update.
2025 (lookup_minimal_symbol_text): Change return type.
2026 (lookup_minimal_symbol_solib_trampoline): Change return type.
2027 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
2028 (lookup_minimal_symbol_solib_trampoline): Change return type.
2029 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2030 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2031 (value_nsstring, find_imps): Update.
2032 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2033 * p-lang.c (pascal_main_name): Update.
2034 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
2035 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2036 * proc-service.c (ps_pglobal_lookup): Update.
2037 * ravenscar-thread.c (get_running_thread_msymbol): Change
2039 (has_ravenscar_runtime, get_running_thread_id): Update.
2040 * remote.c (remote_check_symbols): Update.
2041 * sol-thread.c (ps_pglobal_lookup): Update.
2042 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2043 * solib-dsbt.c (lm_base): Update.
2044 * solib-frv.c (lm_base, frv_relocate_section_addresses):
2046 * solib-irix.c (locate_base): Update.
2047 * solib-som.c (som_solib_create_inferior_hook)
2048 (som_solib_desire_dynamic_linker_symbols, link_map_start):
2050 * solib-spu.c (spu_enable_break): Update.
2051 * solib-svr4.c (elf_locate_base, enable_break): Update.
2052 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2053 (flush_ea_cache): Update.
2054 * stabsread.c (define_symbol): Update.
2055 * symfile.c (simple_read_overlay_table): Update.
2056 * symtab.c (find_pc_sect_line): Update.
2057 * tracepoint.c (scope_info): Update.
2058 * tui-disasm.c (tui_get_begin_asm_address): Update.
2059 * value.c (value_static_field): Update.
2061 2014-02-26 Tom Tromey <tromey@redhat.com>
2063 * minsyms.c (prim_record_minimal_symbol_full): Use
2064 SET_MSYMBOL_VALUE_ADDRESS.
2065 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
2066 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
2067 SET_MSYMBOL_VALUE_ADDRESS.
2068 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2069 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
2071 2014-02-26 Tom Tromey <tromey@redhat.com>
2073 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
2074 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
2075 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
2076 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
2077 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
2078 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
2079 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
2080 * ada-lang.c (ada_main_name): Update.
2081 (ada_lookup_simple_minsym): Update.
2082 (ada_make_symbol_completion_list): Update.
2083 (ada_add_standard_exceptions): Update.
2084 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
2085 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2086 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
2087 * arm-tdep.c (skip_prologue_function): Update.
2088 (arm_skip_stack_protector, arm_skip_stub): Update.
2089 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
2090 (arm_wince_skip_main_prologue): Update.
2091 * auxv.c (ld_so_xfer_auxv): Update.
2092 * avr-tdep.c (avr_scan_prologue): Update.
2093 * ax-gdb.c (gen_var_ref): Update.
2094 * block.c (call_site_for_pc): Update.
2095 * blockframe.c (get_pc_function_start): Update.
2096 (find_pc_partial_function_gnu_ifunc): Update.
2097 * breakpoint.c (create_overlay_event_breakpoint): Update.
2098 (create_longjmp_master_breakpoint): Update.
2099 (create_std_terminate_master_breakpoint): Update.
2100 (create_exception_master_breakpoint): Update.
2101 (resolve_sal_pc): Update.
2102 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2103 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
2105 * c-valprint.c (c_val_print): Update.
2106 * coff-pe-read.c (add_pe_forwarded_sym): Update.
2107 * coffread.c (coff_symfile_read): Update.
2108 * common/agent.c (agent_look_up_symbols): Update.
2109 * dbxread.c (find_stab_function_addr): Update.
2110 (end_psymtab): Update.
2111 * dwarf2loc.c (call_site_to_target_addr): Update.
2112 (func_verify_no_selftailcall): Update.
2113 (tailcall_dump): Update.
2114 (call_site_find_chain_1): Update.
2115 (dwarf_expr_reg_to_entry_parameter): Update.
2116 * elfread.c (elf_gnu_ifunc_record_cache): Update.
2117 (elf_gnu_ifunc_resolve_by_got): Update.
2118 * f-valprint.c (info_common_command): Update.
2119 * findvar.c (read_var_value): Update.
2120 * frame.c (get_prev_frame_1): Update.
2121 (inside_main_func): Update.
2122 * frv-tdep.c (frv_skip_main_prologue): Update.
2123 (frv_frame_this_id): Update.
2124 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2125 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
2126 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
2127 (gnuv3_skip_trampoline): Update.
2128 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
2129 (hppa64_hpux_in_solib_call_trampoline): Update.
2130 (hppa_hpux_skip_trampoline_code): Update.
2131 (hppa64_hpux_search_dummy_call_sequence): Update.
2132 (hppa_hpux_find_import_stub_for_addr): Update.
2133 (hppa_hpux_find_dummy_bpaddr): Update.
2134 * hppa-tdep.c (hppa_symbol_address)
2135 (hppa_lookup_stub_minimal_symbol): Update.
2136 * i386-tdep.c (i386_skip_main_prologue): Update.
2137 (i386_pe_skip_trampoline_code): Update.
2138 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
2139 * infcall.c (get_function_name): Update.
2140 * infcmd.c (until_next_command): Update.
2141 * jit.c (jit_breakpoint_re_set_internal): Update.
2142 (jit_inferior_init): Update.
2143 * linespec.c (minsym_found): Update.
2144 (add_minsym): Update.
2145 * linux-fork.c (info_checkpoints_command): Update.
2146 * linux-nat.c (get_signo): Update.
2147 * linux-thread-db.c (inferior_has_bug): Update.
2148 * m32c-tdep.c (m32c_return_value): Update.
2149 (m32c_m16c_address_to_pointer): Update.
2150 (m32c_m16c_pointer_to_address): Update.
2151 * m32r-tdep.c (m32r_frame_this_id): Update.
2152 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2153 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2154 * maint.c (maintenance_translate_address): Update.
2155 * minsyms.c (add_minsym_to_hash_table): Update.
2156 (add_minsym_to_demangled_hash_table): Update.
2157 (msymbol_objfile): Update.
2158 (lookup_minimal_symbol): Update.
2159 (iterate_over_minimal_symbols): Update.
2160 (lookup_minimal_symbol_text): Update.
2161 (lookup_minimal_symbol_by_pc_name): Update.
2162 (lookup_minimal_symbol_solib_trampoline): Update.
2163 (lookup_minimal_symbol_by_pc_section_1): Update.
2164 (lookup_minimal_symbol_and_objfile): Update.
2165 (prim_record_minimal_symbol_full): Update.
2166 (compare_minimal_symbols): Update.
2167 (compact_minimal_symbols): Update.
2168 (build_minimal_symbol_hash_tables): Update.
2169 (install_minimal_symbols): Update.
2170 (terminate_minimal_symbol_table): Update.
2171 (find_solib_trampoline_target): Update.
2172 (minimal_symbol_upper_bound): Update.
2173 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2174 * mips-tdep.c (mips_stub_frame_sniffer): Update.
2175 (mips_skip_pic_trampoline_code): Update.
2176 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
2177 * objc-lang.c (selectors_info): Update.
2178 (classes_info): Update.
2179 (find_methods): Update.
2180 (find_imps): Update.
2181 (find_objc_msgsend): Update.
2182 * objfiles.c (objfile_relocate1): Update.
2183 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
2184 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2185 * p-valprint.c (pascal_val_print): Update.
2186 * parse.c (write_exp_msymbol): Update.
2187 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
2188 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
2189 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2190 * printcmd.c (build_address_symbolic): Update.
2192 (address_info): Update.
2193 * proc-service.c (ps_pglobal_lookup): Update.
2194 * psymtab.c (find_pc_sect_psymtab_closer): Update.
2195 (find_pc_sect_psymtab): Update.
2196 * python/py-framefilter.c (py_print_frame): Update.
2197 * ravenscar-thread.c (get_running_thread_id): Update.
2198 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
2200 * remote.c (remote_check_symbols): Update.
2201 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
2202 (rs6000_skip_trampoline_code): Update.
2203 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
2204 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2205 * solib-dsbt.c (lm_base): Update.
2206 * solib-frv.c (lm_base): Update.
2208 * solib-irix.c (locate_base): Update.
2209 * solib-som.c (som_solib_create_inferior_hook): Update.
2210 (som_solib_desire_dynamic_linker_symbols): Update.
2211 (link_map_start): Update.
2212 * solib-spu.c (spu_enable_break): Update.
2213 (ocl_enable_break): Update.
2214 * solib-svr4.c (elf_locate_base): Update.
2215 (enable_break): Update.
2216 * spu-tdep.c (spu_get_overlay_table): Update.
2217 (spu_catch_start): Update.
2218 (flush_ea_cache): Update.
2219 * stabsread.c (define_symbol): Update.
2220 (scan_file_globals): Update.
2221 * stack.c (find_frame_funname): Update.
2222 (frame_info): Update.
2223 * symfile.c (simple_read_overlay_table): Update.
2224 (simple_overlay_update): Update.
2225 * symmisc.c (dump_msymbols): Update.
2226 * symtab.c (fixup_section): Update.
2227 (find_pc_sect_line): Update.
2228 (skip_prologue_sal): Update.
2229 (search_symbols): Update.
2230 (print_msymbol_info): Update.
2231 (rbreak_command): Update.
2232 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
2233 (completion_list_objc_symbol): Update.
2234 (default_make_symbol_completion_list_break_on): Update.
2235 * tracepoint.c (scope_info): Update.
2236 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
2237 (tui_get_begin_asm_address): Update.
2238 * valops.c (find_function_in_inferior): Update.
2239 * value.c (value_static_field): Update.
2240 (value_fn_field): Update.
2242 2014-02-26 Tom Tromey <tromey@redhat.com>
2244 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
2245 bound minimal symbols. Move code that knows about minsym
2247 * minsyms.c (minimal_symbol_upper_bound): ... here. New
2249 * minsyms.h (minimal_symbol_upper_bound): Declare.
2250 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
2251 minimal_symbol_upper_bound.
2253 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2255 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
2256 Use the type's name if its basic type does not have a tag.
2258 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2260 * dwarf2read.c (read_subrange_type): Add comment.
2262 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2264 * dwarf2read.c (update_enumeration_type_from_children): New
2265 function, mostly extracted from process_structure_scope.
2266 (read_enumeration_type): Call update_enumeration_type_from_children.
2267 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
2268 and flag_flag_enum fields.
2270 2014-02-26 Pedro Alves <palves@redhat.com>
2272 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
2273 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
2274 to_xfer_partial method.
2276 2014-02-26 Pedro Alves <palves@redhat.com>
2278 * target.c (complete_target_initialization): Don't install
2279 default_xfer_partial as to_xfer_partial hook.
2281 (update_current_target): Don't INHERIT nor de_fault
2282 deprecated_xfer_memory. Delete de_fault macro.
2283 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
2284 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
2285 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
2288 2014-02-26 Pedro Alves <palves@redhat.com>
2290 * go32-nat.c (my_write_child): New function.
2291 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
2292 (go32_xfer_partial): New function.
2293 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
2294 Instead install a to_xfer_partial hook.
2296 2014-02-26 Pedro Alves <palves@redhat.com>
2298 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
2299 to_xfer_partial helper. Rewrite.
2300 (procfs_xfer_partial): New function.
2301 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
2302 Install a to_xfer_partial hook.
2304 2014-02-26 Pedro Alves <palves@redhat.com>
2306 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
2307 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
2308 (m32r_xfer_partial): New function.
2309 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
2310 Install a to_xfer_partial hook.
2312 2014-02-26 Pedro Alves <palves@redhat.com>
2314 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
2316 (mips_xfer_partial): New function.
2317 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
2318 hook. Install a to_xfer_partial hook.
2320 2014-02-26 Joel Brobecker <brobecker@adacore.com>
2322 * gdbtypes.h (create_array_type_with_stride): Add declaration.
2323 * gdbtypes.c (create_array_type_with_stride): New function,
2324 renaming create_array_type, but with an added parameter
2325 called "bit_stride".
2326 (create_array_type): Re-implement using
2327 create_array_type_with_stride.
2328 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
2329 and DW_AT_bit_stride attributes.
2331 2014-02-26 Pedro Alves <palves@redhat.com>
2333 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
2334 task-specific breakpoints.
2336 2014-02-25 Pedro Alves <palves@redhat.com>
2338 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
2339 handling of object == TARGET_OBJECT_UNWIND_TABLE.
2341 2014-02-25 Stan Shebs <stan@codesourcery.com>
2343 * defs.h: Annotate comments for Doxygen.
2345 2014-02-25 Tom Tromey <tromey@redhat.com>
2347 * target.h (target_ignore): Don't declare.
2348 * target.c (target_ignore): Remove.
2350 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2353 * auto-load.c (auto_load_objfile_script_1): Change filename to
2356 2014-02-25 Joel Brobecker <brobecker@adacore.com>
2358 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
2359 documentation. Adjust prototype to match the target_ops
2360 to_xfer_partial method. Adjust implementation accordingly.
2362 2014-02-25 Hui Zhu <hui@codesourcery.com>
2364 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
2367 2014-02-25 Kevin Buettner <kevinb@redhat.com>
2369 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
2370 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
2371 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
2372 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
2373 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
2374 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
2375 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
2376 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
2378 (rl78_register_type): Use a data pointer type for SP and
2379 new pseudo registers mentioned above. Use a 16 bit integer
2380 type for all other register pairs.
2381 (rl78_register_name, rl78_g10_register_name): Update for
2382 new pseudo registers.
2383 (rl78_pseudo_register_read): Likewise.
2384 (rl78_pseudo_register_write): Likewise.
2385 (rl78_dwarf_reg_to_regnum): Return register numbers representing
2386 to the newly added pseudo registers.
2388 2014-02-24 Doug Evans <dje@google.com>
2390 * value.c (record_latest_value): Fix comment.
2391 * printcmd.c (print_command_1): Remove code to handle -1 return from
2392 record_latest_value.
2394 2014-02-24 Pedro Alves <palves@redhat.com>
2396 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
2397 deprecated_xfer_memory hook.
2398 (procfs_xfer_partial): Call procfs_xfer_memory instead
2399 of the deprecated_xfer_memory target hook.
2400 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
2403 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
2405 * windows-nat.c (windows_xfer_shared_libraries): Return
2406 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
2407 requested object is TARGET_OBJECT_LIBRARIES.
2409 2014-02-24 Yao Qi <yao@codesourcery.com>
2411 * target.h (enum target_xfer_status)
2412 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
2413 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
2415 * corefile.c (memory_error_message): User updated.
2416 * exec.c (section_table_read_available_memory): Likewise.
2417 * record-btrace.c (record_btrace_xfer_partial): Likewise.
2418 * target.c (target_xfer_status_to_string): Likewise.
2419 (raw_memory_xfer_partial): Likewise.
2420 (memory_xfer_partial_1, target_xfer_partial): Likewise.
2421 * valops.c (read_value_memory): Likewise.
2422 * exec.h: Update comments.
2424 2014-02-24 Yao Qi <yao@codesourcery.com>
2426 * target.c (target_xfer_status_to_string): Rename argument err
2428 * target.h (target_xfer_status_to_string): Update declaration.
2429 Replace target_xfer_error_to_string with
2430 target_xfer_status_to_string in comment.
2432 2014-02-24 Yao Qi <yao@codesourcery.com>
2434 * mips-linux-nat.c (super_close): Update its type.
2435 (mips_linux_close): Pass 'self' to super_close.
2437 2014-02-24 Yao Qi <yao@codesourcery.com>
2439 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
2440 * corefile.c (read_memory): Adjusted.
2441 * target.c (target_write_with_progress): Adjusted.
2443 2014-02-23 Yao Qi <yao@codesourcery.com>
2447 2013-10-25 Yao Qi <yao@codesourcery.com>
2449 * remote.c (remote_traceframe_info): Return early if
2450 traceframe is not selected.
2452 2013-07-19 Yao Qi <yao@codesourcery.com>
2454 * target.c (update_current_target): Change the default action
2455 of 'to_traceframe_info' from tcomplain to return_zero.
2456 * target.h (struct target_ops) <to_traceframe_info>: Add more
2459 2014-02-23 Yao Qi <yao@codesourcery.com>
2461 * valops.c (read_value_memory): Rewrite it. Call
2462 target_xfer_partial in a loop.
2463 * exec.h (section_table_available_memory): Remove declaration.
2464 Move comments to ...
2465 * exec.c (section_table_available_memory): ... here. Make it
2468 2014-02-23 Yao Qi <yao@codesourcery.com>
2470 * exec.c (section_table_read_available_memory): New function.
2471 * exec.h (section_table_read_available_memory): Declare.
2472 * ctf.c (ctf_xfer_partial): Call
2473 section_table_read_available_memory.
2474 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2476 2014-02-23 Yao Qi <yao@codesourcery.com>
2478 * ctf.c (ctf_xfer_partial): Move code to ...
2479 * exec.c (exec_read_partial_read_only): ... it. New function.
2480 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2481 * tracefile.c: Include "exec.h".
2482 * exec.h (exec_read_partial_read_only): Declare.
2484 2014-02-23 Yao Qi <yao@codesourcery.com>
2486 * tracefile-tfile.c (tfile_has_all_memory): Remove.
2487 (tfile_has_memory): Remove.
2488 (init_tfile_ops): Don't set fields to_has_all_memory and
2489 to_has_memory of tfile_ops.
2490 * tracefile.c (tracefile_has_all_memory): New function.
2491 (tracefile_has_memory): New function.
2492 (init_tracefile_ops): Initialize fields to_has_all_memory and
2493 to_has_memory of 'ops'.
2495 2014-02-23 Yao Qi <yao@codesourcery.com>
2497 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
2498 (ctf_thread_alive, ctf_get_trace_status): Remove.
2499 (init_ctf_ops): Don't set some fields of ctf_ops. Call
2501 * tracefile-tfile.c (tfile_get_trace_status): Remove.
2502 (tfile_has_stack, tfile_has_registers): Remove.
2503 (tfile_thread_alive): Remove.
2504 (init_tfile_ops): Don't set some fields of tfile_ops. Call
2506 * tracefile.c (tracefile_has_stack): New function.
2507 (tracefile_has_registers): New function.
2508 (tracefile_thread_alive): New function.
2509 (tracefile_get_trace_status): New function.
2510 (init_tracefile_ops): New function.
2511 * tracefile.h (init_tracefile_ops): Declare.
2513 2014-02-23 Yao Qi <yao@codesourcery.com>
2515 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
2516 (O_LARGEFILE): Likewise.
2517 (tfile_ops): Likewise.
2518 (TRACE_HEADER_SIZE): Likewise.
2519 (trace_fd, trace_frames_offset, cur_offset): Likewise.
2520 (cur_data_size): Likewise.
2521 (tfile_read, tfile_open, tfile_interp_line): Likewise.
2522 (tfile_close, tfile_files_info): Likewise.
2523 (tfile_get_trace_status): Likewise.
2524 (tfile_get_tracepoint_status): Likewise.
2525 (tfile_get_traceframe_address): Likewise.
2526 (tfile_trace_find, match_blocktype): Likewise.
2527 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
2528 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
2529 (tfile_get_trace_state_variable_value): Likewise.
2530 (tfile_has_all_memory, tfile_has_memory): Likewise.
2531 (tfile_has_stack, tfile_has_registers): Likewise.
2532 (tfile_thread_alive, build_traceframe_info): Likewise.
2533 (tfile_traceframe_info, init_tfile_ops): Likewise.
2534 (_initialize_tracepoint): Don't call init_tfile_ops
2535 and add_target_with_completer.
2536 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
2537 exec.h, completer.h and filenames.h.
2538 (_initialize_tracefile_tfile): New function.
2540 2014-02-23 Yao Qi <yao@codesourcery.com>
2542 * Makefile.in (REMOTE_OBS): Append tracefile.o and
2544 (HFILES_NO_SRCDIR): Add tracefile.h.
2545 * ctf.c: Include "tracefile.h".
2546 * tracefile.h: New file.
2547 * tracefile.c: New file
2548 * tracefile-tfile.c: New file.
2549 * tracepoint.c: Include "tracefile.h".
2550 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
2551 (stop_reason_names): Add const.
2552 (trace_file_writer_xfree): Move it to tracefile.c.
2553 (trace_save, trace_save_command, trace_save_tfile): Likewise.
2554 (trace_save_ctf): Likewise.
2555 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
2556 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
2557 (tfile_write_header, tfile_write_regblock_type): Likewise.
2558 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
2559 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
2560 (tfile_write_raw_data, tfile_end): Likewise.
2561 (tfile_trace_file_writer_new): Likewise.
2562 (free_uploaded_tp): Make it extern.
2563 (free_uploaded_tsv): Make it extern.
2564 (_initialize_tracepoint): Move code to register command 'tsave'
2566 * tracepoint.h (stop_reason_names): Declare.
2567 (struct trace_frame_write_ops): Move it to tracefile.h.
2568 (struct trace_file_write_ops): Likewise.
2569 (struct trace_file_writer): Likewise.
2570 (free_uploaded_tsvs, free_uploaded_tps): Declare.
2572 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2575 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
2577 (get_cores_used_by_process): New parameter num_cores, use it.
2578 (linux_xfer_osdata_processes): Pass num_cores to it.
2579 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
2582 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
2584 * target.c (memory_xfer_partial): Fix length arg in call to
2585 breakpoint_xfer_memory.
2587 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
2590 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
2591 number comes after the + or - signs. Adjust length of register
2592 name to be extracted.
2594 2014-02-20 Tom Tromey <tromey@redhat.com>
2596 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
2597 (ada_varobj_ops): Mark "extern".
2599 2014-02-20 Tom Tromey <tromey@redhat.com>
2601 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
2603 2014-02-20 Doug Evans <xdje42@gmail.com>
2605 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
2606 All callers updated.
2607 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
2608 All callers updated.
2609 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
2610 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
2612 2014-02-20 lin zuojian <manjian2006@gmail.com>
2613 Joel Brobecker <brobecker@adacore.com>
2614 Doug Evans <xdje42@gmail.com>
2617 * dwarf2read.c (struct die_info): New member in_process.
2618 (reset_die_in_process): New function.
2619 (process_die): Set it at the start, reset when returning.
2620 (inherit_abstract_dies): Only call process_die if origin_child_die
2621 not already being processed.
2623 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2625 * windows-nat.c (handle_unload_dll): Add function documentation.
2626 (do_initial_windows_stuff): Add comment explaining why we wait
2627 until after inferior initialization has finished before
2628 processing all DLLs.
2630 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2632 * windows-nat.c (get_module_name): Delete.
2633 (windows_get_exec_module_filename): New function, mostly
2634 inspired from get_module_name.
2635 (windows_pid_to_exec_file): Replace call to get_module_name
2636 by call to windows_get_exec_module_filename.
2638 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2640 * windows-nat.c (handle_load_dll): Rewrite this function's
2641 introductory comment. Remove code using get_module_name
2642 to get the DLL's name.
2644 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2646 * windows-nat.c (get_windows_debug_event): Ignore
2647 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
2648 if windows_initialization_done == 0.
2649 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
2650 Adjust implementation to always load all DLLs.
2651 (do_initial_windows_stuff): Replace call to
2652 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
2654 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2656 * windows-nat.c (_initialize_windows_nat): Deprecate the
2657 "dll-symbols" command. Turn the "add-shared-symbol-files"
2658 and "assf" aliases into commands, and deprecate them as well.
2659 * NEWS: Add entry explaining that "dll-symbols" and its two
2660 aliases are now deprecated.
2662 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2664 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
2665 new-line in debug string. Remove trailing spaces.
2667 2014-02-19 Stan Shebs <stan@codesourcery.com>
2669 * darwin-nat.c (darwin_xfer_partial): Fix return type.
2671 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
2673 * NEWS: Add entry for the new feature
2674 * python/py-value.c (valpy_binop): Call value_x_binop for struct
2677 2014-02-19 Stan Shebs <stan@codesourcery.com>
2679 * MAINTAINERS: List Yao Qi as nios2 maintainer.
2681 2014-02-19 Pedro Alves <palves@redhat.com>
2683 * common/ptid.h (struct ptid): Mention that process_stratum
2684 targets should prefer ptid.lwp.
2686 2014-02-19 Pedro Alves <palves@redhat.com>
2688 * remote.c (remote_thread_alive, write_ptid, read_ptid)
2689 (read_ptid, remote_newthread_step, remote_threads_extra_info)
2690 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
2691 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
2692 store remote thread ids rather than ptid.tid.
2693 (_initialize_remote): Adjust.
2695 2014-02-19 Tom Tromey <tromey@redhat.com>
2697 * target.c (target_get_unwinder): Rewrite.
2698 (target_get_tailcall_unwinder): Rewrite.
2699 * record-btrace.c (record_btrace_to_get_unwinder): New function.
2700 (record_btrace_to_get_tailcall_unwinder): New function.
2701 (init_record_btrace_ops): Update.
2702 * target.h (struct target_ops) <to_get_unwinder,
2703 to_get_tailcall_unwinder>: Now function pointers. Use
2704 TARGET_DEFAULT_RETURN.
2706 2014-02-19 Tom Tromey <tromey@redhat.com>
2708 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
2710 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
2712 2014-02-19 Tom Tromey <tromey@redhat.com>
2714 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
2716 * target-delegates.c: Rebuild.
2717 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
2718 TARGET_DEFAULT_FUNC.
2719 * target.c (default_target_decr_pc_after_break): Rename from
2720 forward_target_decr_pc_after_break. Simplify.
2721 (target_decr_pc_after_break): Rely on delegation.
2723 2014-02-19 Tom Tromey <tromey@redhat.com>
2725 * target.c (update_current_target): Do not INHERIT to_doc or
2726 to_magic. Do not de_fault to_open or to_close.
2728 2014-02-19 Tom Tromey <tromey@redhat.com>
2730 * gcore.h (objfile_find_memory_regions): Declare.
2731 * gcore.c (objfile_find_memory_regions): No longer static. Add
2733 (_initialize_gcore): Don't call exec_set_find_memory_regions.
2734 * exec.c: Include gcore.h.
2735 (exec_set_find_memory_regions): Remove.
2736 (exec_find_memory_regions): Remove.
2737 (exec_do_find_memory_regions): Remove.
2738 (init_exec_ops): Update.
2739 * defs.h (exec_set_find_memory_regions): Remove.
2741 2014-02-19 Tom Tromey <tromey@redhat.com>
2743 * target-delegates.c: Rebuild.
2744 * target.h (struct target_ops) <to_extra_thread_info,
2745 to_thread_name, to_pid_to_exec_file, to_get_section_table,
2746 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
2747 not 0, in TARGET_DEFAULT_RETURN.
2749 2014-02-19 Tom Tromey <tromey@redhat.com>
2751 * target.c (complete_target_initialization): Remove casts. Use
2752 return_zero_has_execution.
2753 (return_zero): Add "ignore" argument.
2754 (return_zero_has_execution): New function.
2755 (init_dummy_target): Remove casts. Use
2756 return_zero_has_execution.
2758 2014-02-19 Tom Tromey <tromey@redhat.com>
2760 * target.c (update_current_target): Update comments. Do not
2763 2014-02-19 Tom Tromey <tromey@redhat.com>
2765 * arm-linux-nat.c (arm_linux_read_description): Delegate when
2767 * corelow.c (core_read_description): Delegate when needed.
2768 * remote.c (remote_read_description): Delegate when needed.
2769 * target-delegates.c: Rebuild.
2770 * target.c (target_read_description): Rewrite.
2771 * target.h (struct target_ops) <to_read_description>: Update
2772 comment. Use TARGET_DEFAULT_RETURN.
2774 2014-02-19 Tom Tromey <tromey@redhat.com>
2776 * target-delegates.c: Rebuild.
2777 * target.c (update_current_target): Don't inherit or default
2779 (find_default_run_target): Check against delegate_can_run.
2780 * target.h (struct target_ops) <to_can_run>: Use
2781 TARGET_DEFAULT_RETURN.
2783 2014-02-19 Tom Tromey <tromey@redhat.com>
2785 * target-delegates.c: Rebuild.
2786 * target.c (target_disconnect): Unconditionally delegate.
2787 * target.h (struct target_ops) <to_disconnect>: Use
2788 TARGET_DEFAULT_NORETURN.
2790 2014-02-19 Tom Tromey <tromey@redhat.com>
2792 * record.c (record_stop): Unconditionally delegate.
2793 * target-delegates.c: Rebuild.
2794 * target.c (target_stop_recording): Unconditionally delegate.
2795 * target.h (struct target_ops) <to_stop_recording>: Use
2796 TARGET_DEFAULT_IGNORE.
2798 2014-02-19 Tom Tromey <tromey@redhat.com>
2800 * target-delegates.c: Rebuild.
2801 * target.c (target_enable_btrace): Unconditionally delegate.
2802 * target.h (struct target_ops) <to_enable_btrace>: Use
2803 TARGET_DEFAULT_NORETURN.
2805 2014-02-19 Tom Tromey <tromey@redhat.com>
2807 * target-delegates.c: Rebuild.
2808 * target.c (target_read_btrace): Unconditionally delegate.
2809 * target.h (struct target_ops) <to_read_btrace>: Use
2810 TARGET_DEFAULT_NORETURN.
2812 2014-02-19 Tom Tromey <tromey@redhat.com>
2814 * target-delegates.c: Rebuild.
2815 * target.c (target_teardown_btrace): Unconditionally delegate.
2816 * target.h (struct target_ops) <to_teardown_btrace>: Use
2817 TARGET_DEFAULT_NORETURN.
2819 2014-02-19 Tom Tromey <tromey@redhat.com>
2821 * target-delegates.c: Rebuild.
2822 * target.c (target_disable_btrace): Unconditionally delegate.
2823 * target.h (struct target_ops) <to_disable_btrace>: Use
2824 TARGET_DEFAULT_NORETURN.
2826 2014-02-19 Tom Tromey <tromey@redhat.com>
2828 * target-delegates.c: Rebuild.
2829 * target.c (default_search_memory): New function.
2830 (simple_search_memory): Update comment.
2831 (target_search_memory): Unconditionally delegate.
2832 * target.h (struct target_ops) <to_search_memory>: Use
2833 TARGET_DEFAULT_FUNC.
2835 2014-02-19 Tom Tromey <tromey@redhat.com>
2837 * auxv.c (default_auxv_parse): No longer static.
2838 (target_auxv_parse): Unconditionally delegate.
2839 * auxv.h (default_auxv_parse): Declare.
2840 * target-delegates.c: Rebuild.
2841 * target.c: Include auxv.h.
2842 * target.h (struct target_ops) <to_auxv_parse>: Use
2843 TARGET_DEFAULT_FUNC.
2845 2014-02-19 Tom Tromey <tromey@redhat.com>
2847 * target-delegates.c: Rebuild.
2848 * target.c (target_memory_map): Unconditionally delegate.
2849 * target.h (struct target_ops) <to_memory_map>: Use
2850 TARGET_DEFAULT_RETURN.
2852 2014-02-19 Tom Tromey <tromey@redhat.com>
2854 * target-delegates.c: Rebuild.
2855 * target.c (target_thread_alive): Unconditionally delegate.
2856 * target.h (struct target_ops) <to_thread_alive>: Use
2857 TARGET_DEFAULT_RETURN.
2859 2014-02-19 Tom Tromey <tromey@redhat.com>
2861 * target-delegates.c: Rebuild.
2862 * target.c (target_save_record): Unconditionally delegate.
2863 * target.h (struct target_ops) <to_save_record>: Use
2864 TARGET_DEFAULT_NORETURN.
2866 2014-02-19 Tom Tromey <tromey@redhat.com>
2868 * target-delegates.c: Rebuild.
2869 * target.c (target_delete_record): Unconditionally delegate.
2870 * target.h (struct target_ops) <to_delete_record>: Use
2871 TARGET_DEFAULT_NORETURN.
2873 2014-02-19 Tom Tromey <tromey@redhat.com>
2875 * target-delegates.c: Rebuild.
2876 * target.c (target_record_is_replaying): Unconditionally
2878 * target.h (struct target_ops) <to_record_is_replaying>: Use
2879 TARGET_DEFAULT_RETURN.
2881 2014-02-19 Tom Tromey <tromey@redhat.com>
2883 * target-delegates.c: Rebuild.
2884 * target.c (target_goto_record_begin): Unconditionally delegate.
2885 * target.h (struct target_ops) <to_goto_record_begin>: Use
2886 TARGET_DEFAULT_NORETURN.
2888 2014-02-19 Tom Tromey <tromey@redhat.com>
2890 * target-delegates.c: Rebuild.
2891 * target.c (target_goto_record_end): Unconditionally delegate.
2892 * target.h (struct target_ops) <to_goto_record_end>: Use
2893 TARGET_DEFAULT_NORETURN.
2895 2014-02-19 Tom Tromey <tromey@redhat.com>
2897 * target-delegates.c: Rebuild.
2898 * target.c (target_goto_record): Unconditionally delegate.
2899 * target.h (struct target_ops) <to_goto_record>: Use
2900 TARGET_DEFAULT_NORETURN.
2902 2014-02-19 Tom Tromey <tromey@redhat.com>
2904 * target-delegates.c: Rebuild.
2905 * target.c (target_insn_history): Unconditionally delegate.
2906 * target.h (struct target_ops) <to_insn_history>: Use
2907 TARGET_DEFAULT_NORETURN.
2909 2014-02-19 Tom Tromey <tromey@redhat.com>
2911 * target-delegates.c: Rebuild.
2912 * target.c (target_insn_history_from): Unconditionally delegate.
2913 * target.h (struct target_ops) <to_insn_history_from>: Use
2914 TARGET_DEFAULT_NORETURN.
2916 2014-02-19 Tom Tromey <tromey@redhat.com>
2918 * target-delegates.c: Rebuild.
2919 * target.c (target_insn_history_range): Unconditionally delegate.
2920 * target.h (struct target_ops) <to_insn_history_range>: Use
2921 TARGET_DEFAULT_NORETURN.
2923 2014-02-19 Tom Tromey <tromey@redhat.com>
2925 * target-delegates.c: Rebuild.
2926 * target.c (target_call_history): Unconditionally delegate.
2927 * target.h (struct target_ops) <to_call_history>: Use
2928 TARGET_DEFAULT_NORETURN.
2930 2014-02-19 Tom Tromey <tromey@redhat.com>
2932 * target-delegates.c: Rebuild.
2933 * target.c (target_call_history_from): Unconditionally delegate.
2934 * target.h (struct target_ops) <to_call_history_from>: Use
2935 TARGET_DEFAULT_NORETURN.
2937 2014-02-19 Tom Tromey <tromey@redhat.com>
2939 * target-delegates.c: Rebuild.
2940 * target.c (target_call_history_range): Unconditionally delegate.
2941 * target.h (struct target_ops) <to_call_history_range>: Use
2942 TARGET_DEFAULT_NORETURN.
2944 2014-02-19 Tom Tromey <tromey@redhat.com>
2946 * target-delegates.c: Rebuild.
2947 * target.c (target_verify_memory): Unconditionally delegate.
2948 * target.h (struct target_ops) <to_verify_memory>: Use
2949 TARGET_DEFAULT_NORETURN.
2951 2014-02-19 Tom Tromey <tromey@redhat.com>
2953 * target-delegates.c: Rebuild.
2954 * target.c (target_core_of_thread): Unconditionally delegate.
2955 * target.h (struct target_ops) <to_core_of_thread>: Use
2956 TARGET_DEFAULT_RETURN.
2958 2014-02-19 Tom Tromey <tromey@redhat.com>
2960 * target-delegates.c: Rebuild.
2961 * target.c (target_flash_done): Unconditionally delegate.
2962 * target.h (struct target_ops) <to_flash_done>: Use
2963 TARGET_DEFAULT_NORETURN.
2965 2014-02-19 Tom Tromey <tromey@redhat.com>
2967 * target-delegates.c: Rebuild.
2968 * target.c (target_flash_erase): Unconditionally delegate.
2969 * target.h (struct target_ops) <to_flash_erase>: Use
2970 TARGET_DEFAULT_NORETURN.
2972 2014-02-19 Tom Tromey <tromey@redhat.com>
2974 * target-delegates.c: Rebuild.
2975 * target.c (target_get_section_table): Unconditionally delegate.
2976 * target.h (struct target_ops) <to_get_section_table>: Use
2977 TARGET_DEFAULT_RETURN.
2979 2014-02-19 Tom Tromey <tromey@redhat.com>
2981 * target-delegates.c: Rebuild.
2982 * target.c (target_pid_to_str): Unconditionally delegate.
2983 (init_dummy_target): Don't initialize to_pid_to_str.
2984 (default_pid_to_str): Rename from dummy_pid_to_str.
2985 * target.h (struct target_ops) <to_pid_to_str>: Use
2986 TARGET_DEFAULT_FUNC.
2988 2014-02-19 Tom Tromey <tromey@redhat.com>
2990 * target-delegates.c: Rebuild.
2991 * target.c (target_find_new_threads): Unconditionally delegate.
2992 * target.h (struct target_ops) <to_find_new_threads>: Use
2993 TARGET_DEFAULT_RETURN.
2995 2014-02-19 Tom Tromey <tromey@redhat.com>
2997 * target-delegates.c: Rebuild.
2998 * target.c (target_program_signals): Unconditionally delegate.
2999 * target.h (struct target_ops) <to_program_signals>: Use
3000 TARGET_DEFAULT_IGNORE.
3002 2014-02-19 Tom Tromey <tromey@redhat.com>
3004 * target-delegates.c: Rebuild.
3005 * target.c (target_pass_signals): Unconditionally delegate.
3006 * target.h (struct target_ops) <to_pass_signals>: Use
3007 TARGET_DEFAULT_IGNORE.
3009 2014-02-19 Tom Tromey <tromey@redhat.com>
3011 * target-delegates.c: Rebuild.
3012 * target.c (default_mourn_inferior): New function.
3013 (target_mourn_inferior): Unconditionally delegate.
3014 * target.h (struct target_ops) <to_mourn_inferior>: Use
3015 TARGET_DEFAULT_FUNC.
3017 2014-02-19 Tom Tromey <tromey@redhat.com>
3019 * target-delegates.c: Rebuild.
3020 * target.c (default_follow_fork): New function.
3021 (target_follow_fork): Unconditionally delegate.
3022 * target.h (struct target_ops) <to_follow_fork>: Use
3023 TARGET_DEFAULT_FUNC.
3025 2014-02-19 Tom Tromey <tromey@redhat.com>
3027 * target-delegates.c: Rebuild.
3028 * target.c (target_kill): Unconditionally delegate.
3029 * target.h (struct target_ops) <to_kill>: Use
3030 TARGET_DEFAULT_NORETURN.
3032 2014-02-19 Tom Tromey <tromey@redhat.com>
3034 * target-delegates.c: Rebuild.
3035 * target.c (target_masked_watch_num_registers): Unconditionally
3037 * target.h (struct target_ops) <to_masked_watch_num_registers>:
3038 Use TARGET_DEFAULT_RETURN.
3040 2014-02-19 Tom Tromey <tromey@redhat.com>
3042 * target-delegates.c: Rebuild.
3043 * target.c (target_remove_mask_watchpoint): Unconditionally
3045 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
3046 TARGET_DEFAULT_RETURN.
3048 2014-02-19 Tom Tromey <tromey@redhat.com>
3050 * target-delegates.c: Rebuild.
3051 * target.c (target_insert_mask_watchpoint): Unconditionally
3053 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
3054 TARGET_DEFAULT_RETURN.
3056 2014-02-19 Tom Tromey <tromey@redhat.com>
3058 * target-delegates.c: Rebuild.
3059 * target.c (target_ranged_break_num_registers): Unconditionally
3061 * target.h (struct target_ops) <to_ranged_break_num_registers>:
3062 Use TARGET_DEFAULT_RETURN.
3064 2014-02-19 Tom Tromey <tromey@redhat.com>
3066 * target-delegates.c: Rebuild.
3067 * target.c (target_fetch_registers): Unconditionally delegate.
3068 * target.h (struct target_ops) <to_fetch_registers>: Use
3069 TARGET_DEFAULT_NORETURN.
3071 2014-02-19 Tom Tromey <tromey@redhat.com>
3073 * target-delegates.c: Rebuild.
3074 * target.c (update_current_target): Don't inherit or default
3076 * target.h (struct target_ops) <to_stop>: Use
3077 TARGET_DEFAULT_IGNORE.
3079 2014-02-19 Tom Tromey <tromey@redhat.com>
3081 * target-delegates.c: Rebuild.
3082 * target.c (update_current_target): Don't inherit or default
3083 to_can_run_breakpoint_commands.
3084 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
3085 Use TARGET_DEFAULT_RETURN.
3087 2014-02-19 Tom Tromey <tromey@redhat.com>
3089 * target-delegates.c: Rebuild.
3090 * target.c (update_current_target): Don't inherit or default
3091 to_supports_evaluation_of_breakpoint_conditions.
3092 * target.h (struct target_ops)
3093 <to_supports_evaluation_of_breakpoint_conditions>: Use
3094 TARGET_DEFAULT_RETURN.
3096 2014-02-19 Tom Tromey <tromey@redhat.com>
3098 * target-delegates.c: Rebuild.
3099 * target.c (update_current_target): Don't inherit or default
3100 to_augmented_libraries_svr4_read.
3101 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
3102 Use TARGET_DEFAULT_RETURN.
3104 2014-02-19 Tom Tromey <tromey@redhat.com>
3106 * target-delegates.c: Rebuild.
3107 * target.c (update_current_target): Don't inherit or default
3109 * target.h (struct target_ops) <to_can_use_agent>: Use
3110 TARGET_DEFAULT_RETURN.
3112 2014-02-19 Tom Tromey <tromey@redhat.com>
3114 * target-delegates.c: Rebuild.
3115 * target.c (update_current_target): Don't inherit or default
3117 * target.h (struct target_ops) <to_use_agent>: Use
3118 TARGET_DEFAULT_NORETURN.
3120 2014-02-19 Tom Tromey <tromey@redhat.com>
3122 * target-delegates.c: Rebuild.
3123 * target.c (update_current_target): Don't inherit or default
3125 (return_null): Remove.
3126 * target.h (struct target_ops) <to_traceframe_info>: Use
3127 TARGET_DEFAULT_RETURN.
3129 2014-02-19 Tom Tromey <tromey@redhat.com>
3131 * target-delegates.c: Rebuild.
3132 * target.c (update_current_target): Don't inherit or default
3133 to_static_tracepoint_markers_by_strid.
3134 * target.h (struct target_ops)
3135 <to_static_tracepoint_markers_by_strid>: Use
3136 TARGET_DEFAULT_NORETURN.
3138 2014-02-19 Tom Tromey <tromey@redhat.com>
3140 * target-delegates.c: Rebuild.
3141 * target.c (update_current_target): Don't inherit or default
3142 to_static_tracepoint_marker_at.
3143 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
3144 Use TARGET_DEFAULT_RETURN.
3146 2014-02-19 Tom Tromey <tromey@redhat.com>
3148 * target-delegates.c: Rebuild.
3149 * target.c (update_current_target): Don't inherit or default
3151 * target.h (struct target_ops) <to_set_permissions>: Use
3152 TARGET_DEFAULT_IGNORE.
3154 2014-02-19 Tom Tromey <tromey@redhat.com>
3156 * target-delegates.c: Rebuild.
3157 * target.c (update_current_target): Don't inherit or default
3159 * target.h (struct target_ops) <to_get_tib_address>: Use
3160 TARGET_DEFAULT_NORETURN.
3162 2014-02-19 Tom Tromey <tromey@redhat.com>
3164 * target-delegates.c: Rebuild.
3165 * target.c (update_current_target): Don't inherit or default
3167 * target.h (struct target_ops) <to_set_trace_notes>: Use
3168 TARGET_DEFAULT_RETURN.
3170 2014-02-19 Tom Tromey <tromey@redhat.com>
3172 * target-delegates.c: Rebuild.
3173 * target.c (update_current_target): Don't initialize
3174 to_set_trace_buffer_size.
3175 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
3176 TARGET_DEFAULT_IGNORE.
3178 2014-02-19 Tom Tromey <tromey@redhat.com>
3180 * target-delegates.c: Rebuild.
3181 * target.c (update_current_target): Don't inherit or default
3182 to_set_circular_trace_buffer.
3183 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
3184 TARGET_DEFAULT_IGNORE.
3186 2014-02-19 Tom Tromey <tromey@redhat.com>
3188 * target-delegates.c: Rebuild.
3189 * target.c (update_current_target): Don't inherit or default
3190 to_set_disconnected_tracing.
3191 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
3192 TARGET_DEFAULT_IGNORE.
3194 2014-02-19 Tom Tromey <tromey@redhat.com>
3196 * target-delegates.c: Rebuild.
3197 * target.c (update_current_target): Don't inherit or default
3198 to_get_min_fast_tracepoint_insn_len.
3199 (return_minus_one): Remove.
3200 * target.h (struct target_ops)
3201 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
3203 2014-02-19 Tom Tromey <tromey@redhat.com>
3205 * target-delegates.c: Rebuild.
3206 * target.c (update_current_target): Don't inherit or default
3207 to_get_raw_trace_data.
3208 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
3209 TARGET_DEFAULT_NORETURN.
3211 2014-02-19 Tom Tromey <tromey@redhat.com>
3213 * target-delegates.c: Rebuild.
3214 * target.c (update_current_target): Don't inherit or default
3215 to_upload_trace_state_variables.
3216 * target.h (struct target_ops) <to_upload_trace_state_variables>:
3217 Use TARGET_DEFAULT_RETURN.
3219 2014-02-19 Tom Tromey <tromey@redhat.com>
3221 * target-delegates.c: Rebuild.
3222 * target.c (update_current_target): Don't inherit or default
3223 to_upload_tracepoints.
3224 * target.h (struct target_ops) <to_upload_tracepoints>: Use
3225 TARGET_DEFAULT_RETURN.
3227 2014-02-19 Tom Tromey <tromey@redhat.com>
3229 * target-delegates.c: Rebuild.
3230 * target.c (update_current_target): Don't inherit or default
3232 * target.h (struct target_ops) <to_save_trace_data>: Use
3233 TARGET_DEFAULT_NORETURN.
3235 2014-02-19 Tom Tromey <tromey@redhat.com>
3237 * target-delegates.c: Rebuild.
3238 * target.c (update_current_target): Don't inherit or default
3239 to_get_trace_state_variable_value.
3240 * target.h (struct target_ops)
3241 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
3243 2014-02-19 Tom Tromey <tromey@redhat.com>
3245 * target-delegates.c: Rebuild.
3246 * target.c (update_current_target): Don't inherit or default
3248 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
3250 2014-02-19 Tom Tromey <tromey@redhat.com>
3252 * target-delegates.c: Rebuild.
3253 * target.c (update_current_target): Don't inherit or default
3255 * target.h (struct target_ops) <to_trace_stop>: Use
3256 TARGET_DEFAULT_NORETURN.
3258 2014-02-19 Tom Tromey <tromey@redhat.com>
3260 * target-delegates.c: Rebuild.
3261 * target.c (update_current_target): Don't inherit or default
3262 to_get_tracepoint_status.
3263 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
3264 TARGET_DEFAULT_NORETURN.
3266 2014-02-19 Tom Tromey <tromey@redhat.com>
3268 * target-delegates.c: Rebuild.
3269 * target.c (update_current_target): Don't inherit or default
3270 to_get_trace_status.
3271 * target.h (struct target_ops) <to_get_trace_status>: Use
3272 TARGET_DEFAULT_RETURN.
3274 2014-02-19 Tom Tromey <tromey@redhat.com>
3276 * target-delegates.c: Rebuild.
3277 * target.c (update_current_target): Don't inherit or default
3279 * target.h (struct target_ops) <to_trace_start>: Use
3280 TARGET_DEFAULT_NORETURN.
3282 2014-02-19 Tom Tromey <tromey@redhat.com>
3284 * target-delegates.c: Rebuild.
3285 * target.c (update_current_target): Don't inherit or default
3286 to_trace_set_readonly_regions.
3287 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
3288 Use TARGET_DEFAULT_NORETURN.
3290 2014-02-19 Tom Tromey <tromey@redhat.com>
3292 * target-delegates.c: Rebuild.
3293 * target.c (update_current_target): Don't inherit or default
3294 to_disable_tracepoint.
3295 * target.h (struct target_ops) <to_disable_tracepoint>: Use
3296 TARGET_DEFAULT_NORETURN.
3298 2014-02-19 Tom Tromey <tromey@redhat.com>
3300 * target-delegates.c: Rebuild.
3301 * target.c (update_current_target): Don't inherit or default
3302 to_enable_tracepoint.
3303 * target.h (struct target_ops) <to_enable_tracepoint>: Use
3304 TARGET_DEFAULT_NORETURN.
3306 2014-02-19 Tom Tromey <tromey@redhat.com>
3308 * target-delegates.c: Rebuild.
3309 * target.c (update_current_target): Don't inherit or default
3310 to_download_trace_state_variable.
3311 * target.h (struct target_ops) <to_download_trace_state_variable>:
3312 Use TARGET_DEFAULT_NORETURN.
3314 2014-02-19 Tom Tromey <tromey@redhat.com>
3316 * target-delegates.c: Rebuild.
3317 * target.c (update_current_target): Don't inherit or default
3318 to_can_download_tracepoint.
3319 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
3320 TARGET_DEFAULT_RETURN.
3322 2014-02-19 Tom Tromey <tromey@redhat.com>
3324 * target-delegates.c: Rebuild.
3325 * target.c (update_current_target): Don't inherit or default
3326 to_download_tracepoint.
3327 * target.h (struct target_ops) <to_download_tracepoint>: Use
3328 TARGET_DEFAULT_NORETURN.
3330 2014-02-19 Tom Tromey <tromey@redhat.com>
3332 * target-delegates.c: Rebuild.
3333 * target.c (update_current_target): Don't inherit or default
3335 * target.h (struct target_ops) <to_trace_init>: Use
3336 TARGET_DEFAULT_RETURN.
3338 2014-02-19 Tom Tromey <tromey@redhat.com>
3340 * target-delegates.c: Rebuild.
3341 * target.c (update_current_target): Don't inherit or default
3342 to_supports_string_tracing.
3343 * target.h (struct target_ops) <to_supports_string_tracing>: Use
3344 TARGET_DEFAULT_RETURN.
3346 2014-02-19 Tom Tromey <tromey@redhat.com>
3348 * target-delegates.c: Rebuild.
3349 * target.c (update_current_target): Don't inherit or default
3350 to_supports_enable_disable_tracepoint.
3351 * target.h (struct target_ops)
3352 <to_supports_enable_disable_tracepoint>: Use
3353 TARGET_DEFAULT_RETURN.
3355 2014-02-19 Tom Tromey <tromey@redhat.com>
3357 * target-delegates.c: Rebuild.
3358 * target.c (update_current_target): Don't inherit or default
3359 to_supports_multi_process.
3360 * target.h (struct target_ops) <to_supports_multi_process>: Use
3361 TARGET_DEFAULT_RETURN.
3363 2014-02-19 Tom Tromey <tromey@redhat.com>
3365 * target-delegates.c: Rebuild.
3366 * target.c (update_current_target): Don't inherit or default
3367 to_get_ada_task_ptid.
3368 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
3369 TARGET_DEFAULT_FUNC.
3371 2014-02-19 Tom Tromey <tromey@redhat.com>
3373 * target-delegates.c: Rebuild.
3374 * target.c (update_current_target): Don't inherit or default
3375 to_thread_architecture.
3376 * target.h (struct target_ops) <to_thread_architecture>: Use
3377 TARGET_DEFAULT_FUNC.
3379 2014-02-19 Tom Tromey <tromey@redhat.com>
3381 * target-delegates.c: Rebuild.
3382 * target.c (update_current_target): Don't inherit or default
3383 to_execution_direction.
3384 * target.h (struct target_ops) <to_execution_direction>: Use
3385 TARGET_DEFAULT_FUNC.
3387 2014-02-19 Tom Tromey <tromey@redhat.com>
3389 * target-delegates.c: Rebuild.
3390 * target.c (update_current_target): Don't inherit or default
3391 to_can_execute_reverse.
3392 * target.h (struct target_ops) <to_can_execute_reverse>: Use
3393 TARGET_DEFAULT_RETURN.
3394 (target_can_execute_reverse): Unconditionally delegate.
3396 2014-02-19 Tom Tromey <tromey@redhat.com>
3398 * target-delegates.c: Rebuild.
3399 * target.c (update_current_target): Don't inherit or default
3401 (dummy_goto_bookmark): Remove.
3402 (init_dummy_target): Don't inherit or default to_goto_bookmark.
3403 * target.h (struct target_ops) <to_goto_bookmark>: Use
3404 TARGET_DEFAULT_NORETURN.
3406 2014-02-19 Tom Tromey <tromey@redhat.com>
3408 * target-delegates.c: Rebuild.
3409 * target.c (update_current_target): Don't inherit or default
3411 (dummy_get_bookmark): Remove.
3412 (init_dummy_target): Don't inherit or default to_get_bookmark.
3413 * target.h (struct target_ops) <to_get_bookmark>: Use
3414 TARGET_DEFAULT_NORETURN
3416 2014-02-19 Tom Tromey <tromey@redhat.com>
3418 * target-delegates.c: Rebuild.
3419 * target.c (update_current_target): Don't inherit or default
3420 to_make_corefile_notes.
3421 (init_dummy_target): Don't initialize to_make_corefile_notes.
3422 * target.h (struct target_ops) <to_make_corefile_notes>: Use
3423 TARGET_DEFAULT_FUNC.
3425 2014-02-19 Tom Tromey <tromey@redhat.com>
3427 * target-delegates.c: Rebuild.
3428 * target.c (update_current_target): Don't inherit or default
3429 to_find_memory_regions.
3430 (init_dummy_target): Don't initialize to_find_memory_regions.
3431 * target.h (struct target_ops) <to_find_memory_regions>: Use
3432 TARGET_DEFAULT_FUNC.
3434 2014-02-19 Tom Tromey <tromey@redhat.com>
3436 * target-delegates.c: Rebuild.
3437 * target.c (update_current_target): Don't inherit or default
3439 * target.h (struct target_ops) <to_log_command>: Use
3440 TARGET_DEFAULT_IGNORE.
3441 (target_log_command): Unconditionally delegate.
3443 2014-02-19 Tom Tromey <tromey@redhat.com>
3445 * target-delegates.c: Rebuild.
3446 * target.c (update_current_target): Don't inherit or default
3447 to_pid_to_exec_file.
3448 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
3449 TARGET_DEFAULT_RETURN.
3451 2014-02-19 Tom Tromey <tromey@redhat.com>
3453 * target-delegates.c: Rebuild.
3454 * target.c (update_current_target): Don't inherit or default
3456 (target_thread_name): Unconditionally delegate.
3457 * target.h (struct target_ops) <to_thread_name>: Use
3458 TARGET_DEFAULT_RETURN.
3460 2014-02-19 Tom Tromey <tromey@redhat.com>
3462 * target-delegates.c: Rebuild.
3463 * target.c (update_current_target): Don't inherit or default
3464 to_extra_thread_info.
3465 * target.h (struct target_ops) <to_extra_thread_info>: Use
3466 TARGET_DEFAULT_RETURN.
3468 2014-02-19 Tom Tromey <tromey@redhat.com>
3470 * target-delegates.c: Rebuild.
3471 * target.c (update_current_target): Don't inherit or default
3473 * target.h (struct target_ops) <to_has_exited>: Use
3474 TARGET_DEFAULT_RETURN..
3476 2014-02-19 Tom Tromey <tromey@redhat.com>
3478 * target-delegates.c: Rebuild.
3479 * target.c (update_current_target): Don't inherit or default
3480 to_set_syscall_catchpoint.
3481 (return_one): Remove.
3482 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
3483 TARGET_DEFAULT_RETURN.
3485 2014-02-19 Tom Tromey <tromey@redhat.com>
3487 * target-delegates.c: Rebuild.
3488 * target.c (update_current_target): Don't inherit or default
3489 to_insert_exec_catchpoint.
3490 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
3491 TARGET_DEFAULT_RETURN.
3493 2014-01-08 Tom Tromey <tromey@redhat.com>
3495 * target-delegates.c: Rebuild.
3496 * target.c (update_current_target): Don't inherit or default
3497 to_insert_exec_catchpoint.
3498 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
3499 TARGET_DEFAULT_RETURN.
3501 2014-02-19 Tom Tromey <tromey@redhat.com>
3503 * target-delegates.c: Rebuild.
3504 * target.c (update_current_target): Don't inherit or default
3505 to_remove_vfork_catchpoint.
3506 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
3507 TARGET_DEFAULT_RETURN.
3509 2014-02-19 Tom Tromey <tromey@redhat.com>
3511 * target-delegates.c: Rebuild.
3512 * target.c (update_current_target): Don't inherit or default
3513 to_insert_vfork_catchpoint.
3514 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
3515 TARGET_DEFAULT_RETURN.
3517 2014-02-19 Tom Tromey <tromey@redhat.com>
3519 * target-delegates.c: Rebuild.
3520 * target.c (update_current_target): Don't inherit or default
3521 to_remove_fork_catchpoint.
3522 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
3523 TARGET_DEFAULT_RETURN.
3525 2014-02-19 Tom Tromey <tromey@redhat.com>
3527 * target-delegates.c: Rebuild.
3528 * target.c (update_current_target): Don't inherit or default
3529 to_insert_fork_catchpoint.
3530 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
3531 TARGET_DEFAULT_RETURN.
3533 2014-02-19 Tom Tromey <tromey@redhat.com>
3535 * target-delegates.c: Rebuild.
3536 * target.c (update_current_target): Don't inherit or default
3537 to_post_startup_inferior.
3538 * target.h (struct target_ops) <to_post_startup_inferior>: Use
3539 TARGET_DEFAULT_IGNORE.
3541 2014-02-19 Tom Tromey <tromey@redhat.com>
3543 * target-delegates.c: Rebuild.
3544 * target.c (update_current_target): Don't inherit or default
3546 * target.h (struct target_ops) <to_load>: Use
3547 TARGET_DEFAULT_NORETURN.
3549 2014-02-19 Tom Tromey <tromey@redhat.com>
3551 * target-delegates.c: Rebuild.
3552 * target.c (update_current_target): Don't inherit or default
3554 * target.h (struct target_ops) <to_terminal_info>: Use
3555 TARGET_DEFAULT_FUNC.
3557 2014-02-19 Tom Tromey <tromey@redhat.com>
3559 * target-delegates.c: Rebuild.
3560 * target.c (update_current_target): Don't inherit or default
3561 to_terminal_save_ours.
3562 * target.h (struct target_ops) <to_terminal_save_ours>: Use
3563 TARGET_DEFAULT_IGNORE.
3565 2014-02-19 Tom Tromey <tromey@redhat.com>
3567 * target-delegates.c: Rebuild.
3568 * target.c (update_current_target): Don't inherit or default
3570 * target.h (struct target_ops) <to_terminal_ours>: Use
3571 TARGET_DEFAULT_IGNORE.
3573 2014-02-19 Tom Tromey <tromey@redhat.com>
3575 * target-delegates.c: Rebuild.
3576 * target.c (update_current_target): Don't inherit or default
3577 to_terminal_ours_for_output.
3578 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
3579 TARGET_DEFAULT_IGNORE.
3581 2014-02-19 Tom Tromey <tromey@redhat.com>
3583 * target-delegates.c: Rebuild.
3584 * target.c (update_current_target): Don't inherit or default
3585 to_terminal_inferior.
3586 * target.h (struct target_ops) <to_terminal_inferior>: Use
3587 TARGET_DEFAULT_IGNORE.
3589 2014-02-19 Tom Tromey <tromey@redhat.com>
3591 * target-delegates.c: Rebuild.
3592 * target.c (update_current_target): Don't inherit or default
3594 * target.h (struct target_ops) <to_terminal_init>: Use
3595 TARGET_DEFAULT_IGNORE.
3597 2014-02-19 Tom Tromey <tromey@redhat.com>
3599 * target-delegates.c: Rebuild.
3600 * target.c (update_current_target): Don't inherit or default
3601 to_can_accel_watchpoint_condition.
3602 * target.h (struct target_ops)
3603 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
3605 2014-02-19 Tom Tromey <tromey@redhat.com>
3607 * target-delegates.c: Rebuild.
3608 * target.c (update_current_target): Don't inherit or default
3609 to_region_ok_for_hw_watchpoint.
3610 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
3611 Use TARGET_DEFAULT_FUNC.
3613 2014-02-19 Tom Tromey <tromey@redhat.com>
3615 * target-delegates.c: Rebuild.
3616 * target.c (update_current_target): Don't inherit or default
3617 to_watchpoint_addr_within_range.
3618 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
3619 Use TARGET_DEFAULT_FUNC.
3621 2014-02-19 Tom Tromey <tromey@redhat.com>
3623 * target-delegates.c: Rebuild.
3624 * target.c (update_current_target): Don't inherit or default
3625 to_remove_watchpoint.
3626 * target.h (struct target_ops) <to_remove_watchpoint>: Use
3627 TARGET_DEFAULT_NORETURN.
3629 2014-02-19 Tom Tromey <tromey@redhat.com>
3631 * target-delegates.c: Rebuild.
3632 * target.c (update_current_target): Don't inherit or default
3633 to_insert_watchpoint.
3634 * target.h (struct target_ops) <to_insert_watchpoint>: Use
3635 TARGET_DEFAULT_RETURN.
3637 2014-02-19 Tom Tromey <tromey@redhat.com>
3639 * target-delegates.c: Rebuild.
3640 * target.c (update_current_target): Don't inherit or default
3641 to_remove_hw_breakpoint.
3642 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
3643 TARGET_DEFAULT_RETURN.
3645 2014-02-19 Tom Tromey <tromey@redhat.com>
3647 * target-delegates.c: Rebuild.
3648 * target.c (update_current_target): Don't inherit or default
3649 to_insert_hw_breakpoint.
3650 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
3651 TARGET_DEFAULT_RETURN.
3653 2014-02-19 Tom Tromey <tromey@redhat.com>
3655 * target-delegates.c: Rebuild.
3656 * target.c (update_current_target): Don't inherit or default
3657 to_can_use_hw_breakpoint.
3658 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
3659 TARGET_DEFAULT_RETURN.
3661 2014-02-19 Tom Tromey <tromey@redhat.com>
3663 * target-delegates.c: Rebuild.
3664 * target.c (update_current_target): Don't inherit or default
3666 * target.h (struct target_ops) <to_files_info>: Use
3667 TARGET_DEFAULT_IGNORE.
3669 2014-02-19 Tom Tromey <tromey@redhat.com>
3671 * target-delegates.c: Rebuild.
3672 * target.c (update_current_target): Don't inherit or default
3674 * target.h (struct target_ops) <to_store>: Use
3675 TARGET_DEFAULT_NORETURN.
3677 2014-02-19 Tom Tromey <tromey@redhat.com>
3679 * target-delegates.c: Rebuild.
3680 * target.c (update_current_target): Don't inherit or default
3682 * target.h (struct target_ops) <to_post_attach>: Use
3683 TARGET_DEFAULT_IGNORE.
3685 2014-02-19 Tom Tromey <tromey@redhat.com>
3687 * target-delegates.c: Rebuild.
3688 * target.c (update_current_target): Don't inherit or default
3690 (default_rcmd): New function.
3691 (do_monitor_command): Unconditionally delegate.
3692 * target.h (struct target_ops) <to_rmcd>: Use
3693 TARGET_DEFAULT_FUNC.
3695 2014-02-19 Tom Tromey <tromey@redhat.com>
3697 * target-delegates.c: Rebuild.
3698 * target.c (init_dummy_target): Don't initialize to_attach.
3699 (target_attach): Unconditionally delegate.
3700 * target.h (struct target_ops) <to_attach>: Use
3701 TARGET_DEFAULT_FUNC.
3703 2014-02-19 Tom Tromey <tromey@redhat.com>
3705 * target-delegates.c: Rebuild.
3706 * target.c (target_detach): Unconditionally delegate.
3707 (init_dummy_target): Don't initialize to_detach.
3708 * target.h (struct target_ops) <to_detach>: Use
3709 TARGET_DEFAULT_IGNORE.
3711 2014-02-19 Tom Tromey <tromey@redhat.com>
3713 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
3715 (target_augmented_libraries_svr4_read): Add argument.
3716 * target.c (update_current_target): Update.
3717 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
3720 2014-02-19 Tom Tromey <tromey@redhat.com>
3722 * target.h (struct target_ops) <to_call_history_range>: Add
3724 * target.c (target_call_history_range): Add argument.
3725 * record-btrace.c (record_btrace_call_history_range): Add 'self'
3727 (record_btrace_call_history_from): Update.
3729 2014-02-19 Tom Tromey <tromey@redhat.com>
3731 * target.h (struct target_ops) <to_call_history_from>: Add
3733 * target.c (target_call_history_from): Add argument.
3734 * record-btrace.c (record_btrace_call_history_from): Add 'self'
3737 2014-02-19 Tom Tromey <tromey@redhat.com>
3739 * target.h (struct target_ops) <to_call_history>: Add argument.
3740 * target.c (target_call_history): Add argument.
3741 * record-btrace.c (record_btrace_call_history): Add 'self'
3744 2014-02-19 Tom Tromey <tromey@redhat.com>
3746 * target.h (struct target_ops) <to_insn_history_range>: Add
3748 * target.c (target_insn_history_range): Add argument.
3749 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
3751 (record_btrace_insn_history_from): Update.
3753 2014-02-19 Tom Tromey <tromey@redhat.com>
3755 * target.h (struct target_ops) <to_insn_history_from>: Add
3757 * target.c (target_insn_history_from): Add argument.
3758 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
3761 2014-02-19 Tom Tromey <tromey@redhat.com>
3763 * target.h (struct target_ops) <to_insn_history>: Add argument.
3764 * target.c (target_insn_history): Add argument.
3765 * record-btrace.c (record_btrace_insn_history): Add 'self'
3768 2014-02-19 Tom Tromey <tromey@redhat.com>
3770 * target.h (struct target_ops) <to_goto_record>: Add argument.
3771 * target.c (target_goto_record): Add argument.
3772 * record-full.c (record_full_goto): Add 'self' argument.
3773 * record-btrace.c (record_btrace_goto): Add 'self' argument.
3775 2014-02-19 Tom Tromey <tromey@redhat.com>
3777 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
3778 * target.c (target_goto_record_end): Add argument.
3779 * record-full.c (record_full_goto_end): Add 'self' argument.
3780 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
3782 2014-02-19 Tom Tromey <tromey@redhat.com>
3784 * target.h (struct target_ops) <to_goto_record_begin>: Add
3786 * target.c (target_goto_record_begin): Add argument.
3787 * record-full.c (record_full_goto_begin): Add 'self' argument.
3788 * record-btrace.c (record_btrace_goto_begin): Add 'self'
3791 2014-02-19 Tom Tromey <tromey@redhat.com>
3793 * target.h (struct target_ops) <to_record_is_replaying>: Add
3795 * target.c (target_record_is_replaying): Add argument.
3796 * record-full.c (record_full_is_replaying): Add 'self' argument.
3797 * record-btrace.c (record_btrace_is_replaying): Add 'self'
3799 (record_btrace_xfer_partial, record_btrace_store_registers)
3800 (record_btrace_prepare_to_store, record_btrace_resume)
3801 (record_btrace_wait, record_btrace_decr_pc_after_break)
3802 (record_btrace_find_new_threads, record_btrace_thread_alive):
3805 2014-02-19 Tom Tromey <tromey@redhat.com>
3807 * target.h (struct target_ops) <to_delete_record>: Add argument.
3808 * target.c (target_delete_record): Add argument.
3809 * record-full.c (record_full_delete): Add 'self' argument.
3811 2014-02-19 Tom Tromey <tromey@redhat.com>
3813 * target.h (struct target_ops) <to_save_record>: Add argument.
3814 * target.c (target_save_record): Add argument.
3815 * record-full.c (record_full_save): Add 'self' argument.
3816 (record_full_save): Add 'self' argument.
3818 2014-02-19 Tom Tromey <tromey@redhat.com>
3820 * target.h (struct target_ops) <to_info_record>: Add argument.
3821 * target.c (target_info_record): Add argument.
3822 * record.c (info_record_command): Add argument.
3823 * record-full.c (record_full_info): Add 'self' argument.
3824 * record-btrace.c (record_btrace_info): Add 'self' argument.
3826 2014-02-19 Tom Tromey <tromey@redhat.com>
3828 * target.h (struct target_ops) <to_stop_recording>: Add argument.
3829 * target.c (target_stop_recording): Add argument.
3830 * record.c (record_stop): Add argument.
3831 * record-btrace.c (record_btrace_stop_recording): Add 'self'
3834 2014-02-19 Tom Tromey <tromey@redhat.com>
3836 * target.h (struct target_ops) <to_read_btrace>: Add argument.
3837 * target.c (struct target_ops) <to_read_btrace>: Add argument.
3838 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
3840 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
3841 (_initialize_amd64_linux_nat): Use it.
3842 * i386-linux-nat.c (i386_linux_read_btrace): New function.
3843 (_initialize_i386_linux_nat): Use it.
3845 2014-02-19 Tom Tromey <tromey@redhat.com>
3847 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
3848 * target.c (target_teardown_btrace): Add argument.
3849 * remote.c (remote_teardown_btrace): Add 'self' argument.
3850 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
3852 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
3855 2014-02-19 Tom Tromey <tromey@redhat.com>
3857 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
3858 * target.c (target_disable_btrace): Add argument.
3859 * remote.c (remote_disable_btrace): Add 'self' argument.
3860 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
3862 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
3865 2014-02-19 Tom Tromey <tromey@redhat.com>
3867 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
3868 * target.c (target_enable_btrace): Add argument.
3869 * remote.c (remote_enable_btrace): Add 'self' argument.
3870 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
3872 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
3875 2014-02-19 Tom Tromey <tromey@redhat.com>
3877 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
3878 (target_can_use_agent): Add argument.
3879 * target.c (update_current_target): Update.
3880 * remote.c (remote_can_use_agent): Add 'self' argument.
3881 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
3883 2014-02-19 Tom Tromey <tromey@redhat.com>
3885 * target.h (struct target_ops) <to_use_agent>: Add argument.
3886 (target_use_agent): Add argument.
3887 * target.c (update_current_target): Update.
3888 * remote.c (remote_use_agent): Add 'self' argument.
3889 * inf-child.c (inf_child_use_agent): Add 'self' argument.
3891 2014-02-19 Tom Tromey <tromey@redhat.com>
3893 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
3894 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
3895 (target_traceframe_info): Add argument.
3896 * target.c (update_current_target): Update.
3897 * remote.c (remote_traceframe_info): Add 'self' argument.
3898 * ctf.c (ctf_traceframe_info): Add 'self' argument.
3900 2014-02-19 Tom Tromey <tromey@redhat.com>
3902 * target.h (target_static_tracepoint_markers_by_strid): Add
3904 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
3906 * target.c (update_current_target): Update.
3907 * remote.c (struct target_ops)
3908 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
3909 * linux-nat.c (struct target_ops)
3910 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
3912 2014-02-19 Tom Tromey <tromey@redhat.com>
3914 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
3916 (target_static_tracepoint_marker_at): Add argument.
3917 * target.c (update_current_target): Update.
3918 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
3921 2014-02-19 Tom Tromey <tromey@redhat.com>
3923 * target.h (struct target_ops) <to_set_permissions>: Add argument.
3924 (target_set_permissions): Add argument.
3925 * target.c (update_current_target): Update.
3926 * remote.c (remote_set_permissions): Add 'self' argument.
3927 (remote_start_remote): Update.
3929 2014-02-19 Tom Tromey <tromey@redhat.com>
3931 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
3932 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
3933 (target_get_tib_address): Add argument.
3934 * target.c (update_current_target): Update.
3935 * remote.c (remote_get_tib_address): Add 'self' argument.
3937 2014-02-19 Tom Tromey <tromey@redhat.com>
3939 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
3940 (target_set_trace_notes): Add argument.
3941 * target.c (update_current_target): Update.
3942 * remote.c (remote_set_trace_notes): Add 'self' argument.
3944 2014-02-19 Tom Tromey <tromey@redhat.com>
3946 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
3948 (target_set_trace_buffer_size): Add argument.
3949 * target.c (update_current_target): Update.
3950 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
3952 2014-02-19 Tom Tromey <tromey@redhat.com>
3954 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
3956 (target_set_circular_trace_buffer): Add argument.
3957 * target.c (update_current_target): Update.
3958 * remote.c (remote_set_circular_trace_buffer): Add 'self'
3961 2014-02-19 Tom Tromey <tromey@redhat.com>
3963 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
3965 (target_set_disconnected_tracing): Add argument.
3966 * target.c (update_current_target): Update.
3967 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
3969 2014-02-19 Tom Tromey <tromey@redhat.com>
3971 * target.h (struct target_ops)
3972 <to_get_min_fast_tracepoint_insn_len>: Add argument.
3973 (target_get_min_fast_tracepoint_insn_len): Add argument.
3974 * target.c (update_current_target): Update.
3975 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
3978 2014-02-19 Tom Tromey <tromey@redhat.com>
3980 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
3982 (target_get_raw_trace_data): Add argument.
3983 * target.c (update_current_target): Update.
3984 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
3986 2014-02-19 Tom Tromey <tromey@redhat.com>
3988 * target.h (struct target_ops) <to_upload_trace_state_variables>:
3990 (target_upload_trace_state_variables): Add argument.
3991 * target.c (update_current_target): Update.
3992 * remote.c (remote_upload_trace_state_variables): Add 'self'
3994 (remote_start_remote): Update.
3996 2014-02-19 Tom Tromey <tromey@redhat.com>
3998 * target.h (struct target_ops) <to_upload_tracepoints>: Add
4000 (target_upload_tracepoints): Add argument.
4001 * target.c (update_current_target): Update.
4002 * remote.c (remote_upload_tracepoints): Add 'self' argument.
4003 (remote_start_remote): Update.
4005 2014-02-19 Tom Tromey <tromey@redhat.com>
4007 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
4008 (target_save_trace_data): Add argument.
4009 * target.c (update_current_target): Update.
4010 * remote.c (remote_save_trace_data): Add 'self' argument.
4012 2014-02-19 Tom Tromey <tromey@redhat.com>
4014 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
4016 * target.h (struct target_ops)
4017 <to_get_trace_state_variable_value>: Add argument.
4018 (target_get_trace_state_variable_value): Add argument.
4019 * target.c (update_current_target): Update.
4020 * remote.c (remote_get_trace_state_variable_value): Add 'self'
4022 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
4024 2014-02-19 Tom Tromey <tromey@redhat.com>
4026 * tracepoint.c (tfile_trace_find): Add 'self' argument.
4027 * target.h (struct target_ops) <to_trace_find>: Add argument.
4028 (target_trace_find): Add argument.
4029 * target.c (update_current_target): Update.
4030 * remote.c (remote_trace_find): Add 'self' argument.
4031 * ctf.c (ctf_trace_find): Add 'self' argument.
4033 2014-02-19 Tom Tromey <tromey@redhat.com>
4035 * target.h (struct target_ops) <to_trace_stop>: Add argument.
4036 (target_trace_stop): Add argument.
4037 * target.c (update_current_target): Update.
4038 * remote.c (remote_trace_stop): Add 'self' argument.
4040 2014-02-19 Tom Tromey <tromey@redhat.com>
4042 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
4043 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
4045 (target_get_tracepoint_status): Add argument.
4046 * target.c (update_current_target): Update.
4047 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
4049 2014-02-19 Tom Tromey <tromey@redhat.com>
4051 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
4052 * target.h (struct target_ops) <to_get_trace_status>: Add
4054 (target_get_trace_status): Add argument.
4055 * target.c (update_current_target): Update.
4056 * remote.c (remote_get_trace_status): Add 'self' argument.
4057 (remote_start_remote, remote_can_download_tracepoint): Update.
4058 * ctf.c (ctf_get_trace_status): Add 'self' argument.
4060 2014-02-19 Tom Tromey <tromey@redhat.com>
4062 * target.h (struct target_ops) <to_trace_start>: Add argument.
4063 (target_trace_start): Add argument.
4064 * target.c (update_current_target): Update.
4065 * remote.c (remote_trace_start): Add 'self' argument.
4067 2014-02-19 Tom Tromey <tromey@redhat.com>
4069 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4071 (target_trace_set_readonly_regions): Add argument.
4072 * target.c (update_current_target): Update.
4073 * remote.c (remote_trace_set_readonly_regions): Add 'self'
4076 2014-02-19 Tom Tromey <tromey@redhat.com>
4078 * target.h (struct target_ops) <to_disable_tracepoint>: Add
4080 (target_disable_tracepoint): Add argument.
4081 * target.c (update_current_target): Update.
4082 * remote.c (remote_disable_tracepoint): Add 'self' argument.
4084 2014-02-19 Tom Tromey <tromey@redhat.com>
4086 * target.h (struct target_ops) <to_enable_tracepoint>: Add
4088 (target_enable_tracepoint): Add argument.
4089 * target.c (update_current_target): Update.
4090 * remote.c (remote_enable_tracepoint): Add 'self' argument.
4092 2014-02-19 Tom Tromey <tromey@redhat.com>
4094 * target.h (struct target_ops) <to_download_trace_state_variable>:
4096 (target_download_trace_state_variable): Add argument.
4097 * target.c (update_current_target): Update.
4098 * remote.c (remote_download_trace_state_variable): Add 'self'
4101 2014-02-19 Tom Tromey <tromey@redhat.com>
4103 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
4105 (target_can_download_tracepoint): Add argument.
4106 * target.c (update_current_target): Update.
4107 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
4109 2014-02-19 Tom Tromey <tromey@redhat.com>
4111 * target.h (struct target_ops) <to_download_tracepoint>: Add
4113 (target_download_tracepoint): Add argument.
4114 * target.c (update_current_target): Update.
4115 * remote.c (remote_download_tracepoint): Add 'self' argument.
4117 2014-02-19 Tom Tromey <tromey@redhat.com>
4119 * target.h (struct target_ops) <to_trace_init>: Add argument.
4120 (target_trace_init): Add argument.
4121 * target.c (update_current_target): Update.
4122 * remote.c (remote_trace_init): Add 'self' argument.
4124 2014-02-19 Tom Tromey <tromey@redhat.com>
4126 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
4127 * target.c (target_fileio_readlink): Add argument.
4128 * remote.c (remote_hostio_readlink): Add 'self' argument.
4129 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
4131 2014-02-19 Tom Tromey <tromey@redhat.com>
4133 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
4134 * target.c (target_fileio_unlink): Add argument.
4135 * remote.c (remote_hostio_unlink): Add 'self' argument.
4136 (remote_file_delete): Update.
4137 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
4139 2014-02-19 Tom Tromey <tromey@redhat.com>
4141 * target.h (struct target_ops) <to_fileio_close>: Add argument.
4142 * target.c (target_fileio_close): Add argument.
4143 * remote.c (remote_hostio_close): Add 'self' argument.
4144 (remote_hostio_close_cleanup): Update.
4145 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
4147 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
4149 2014-02-19 Tom Tromey <tromey@redhat.com>
4151 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
4152 * target.c (target_fileio_pread): Add argument.
4153 * remote.c (remote_hostio_pread): Add 'self' argument.
4154 (remote_bfd_iovec_pread, remote_file_get): Update.
4155 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
4157 2014-02-19 Tom Tromey <tromey@redhat.com>
4159 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
4160 * target.c (target_fileio_pwrite): Add argument.
4161 * remote.c (remote_hostio_pwrite): Add 'self' argument.
4162 (remote_file_put): Update.
4163 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
4165 2014-02-19 Tom Tromey <tromey@redhat.com>
4167 * target.h (struct target_ops) <to_fileio_open>: Add argument.
4168 * target.c (target_fileio_open): Add argument.
4169 * remote.c (remote_hostio_open): Add 'self' argument.
4170 (remote_bfd_iovec_open): Add 'self' argument.
4171 (remote_file_put): Add 'self' argument.
4172 (remote_file_get): Add 'self' argument.
4173 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
4175 2014-02-19 Tom Tromey <tromey@redhat.com>
4177 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4179 (target_can_run_breakpoint_commands): Add argument.
4180 * target.c (update_current_target): Update.
4181 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
4183 (remote_insert_breakpoint): Add 'self' argument.
4184 (remote_insert_hw_breakpoint): Add 'self' argument.
4185 (remote_can_run_breakpoint_commands): Add 'self' argument.
4187 2014-02-19 Tom Tromey <tromey@redhat.com>
4189 * target.h (struct target_ops)
4190 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
4191 (target_supports_evaluation_of_breakpoint_conditions): Add
4193 * target.c (update_current_target): Update.
4194 * remote.c (remote_supports_cond_breakpoints): Add 'self'
4196 (remote_insert_breakpoint): Add 'self' argument.
4197 (remote_insert_hw_breakpoint): Add 'self' argument.
4198 (remote_supports_cond_breakpoints): Add 'self' argument.
4200 2014-02-19 Tom Tromey <tromey@redhat.com>
4202 * target.h (struct target_ops) <to_supports_string_tracing>: Add
4204 (target_supports_string_tracing): Add argument.
4205 * target.c (update_current_target): Update.
4206 * remote.c (remote_supports_string_tracing): Add 'self' argument.
4208 2014-02-19 Tom Tromey <tromey@redhat.com>
4210 * target.h (struct target_ops)
4211 <to_supports_disable_randomization>: Add argument.
4212 * target.c (find_default_supports_disable_randomization): Add
4214 (target_supports_disable_randomization): Add argument.
4215 (find_default_supports_disable_randomization): Add 'self'
4217 * remote.c (extended_remote_supports_disable_randomization): Add
4219 (remote_supports_disable_randomization): Add 'self' argument.
4220 (extended_remote_create_inferior): Update.
4221 * linux-nat.c (linux_nat_supports_disable_randomization): Add
4224 2014-02-19 Tom Tromey <tromey@redhat.com>
4226 * target.h (struct target_ops)
4227 <to_supports_enable_disable_tracepoint>: Add argument.
4228 (target_supports_enable_disable_tracepoint): Add argument.
4229 * target.c (update_current_target): Update.
4230 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
4233 2014-02-19 Tom Tromey <tromey@redhat.com>
4235 * target.h (struct target_ops) <to_supports_multi_process>: Add
4237 (target_supports_multi_process): Add argument.
4238 * target.c (update_current_target): Update.
4239 * remote.c (remote_supports_multi_process): Add 'self' argument.
4240 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
4242 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
4245 2014-02-19 Tom Tromey <tromey@redhat.com>
4247 * target.h (struct target_ops) <to_execution_direction>: Add
4249 (target_execution_direction): Add argument.
4250 * target.c (default_execution_direction): Add 'self' argument.
4251 * record-full.c (record_full_execution_direction): Add 'self'
4254 2014-02-19 Tom Tromey <tromey@redhat.com>
4256 * target.h (struct target_ops) <to_can_execute_reverse>: Add
4258 (target_can_execute_reverse): Add argument.
4259 * remote.c (remote_can_execute_reverse): Add 'self' argument.
4260 * record-full.c (record_full_can_execute_reverse): Add 'self'
4262 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
4265 2014-02-19 Tom Tromey <tromey@redhat.com>
4267 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
4268 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
4270 (target_get_ada_task_ptid): Add argument.
4271 * target.c (update_current_target): Update.
4272 (default_get_ada_task_ptid): Add 'self' argument.
4273 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
4274 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
4275 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
4277 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
4279 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
4281 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
4283 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
4284 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
4287 2014-02-19 Tom Tromey <tromey@redhat.com>
4289 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
4290 (target_goto_bookmark): Add argument.
4291 * target.c (dummy_goto_bookmark): Add 'self' argument.
4292 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
4294 2014-02-19 Tom Tromey <tromey@redhat.com>
4296 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
4297 (target_get_bookmark): Add argument.
4298 * target.c (dummy_get_bookmark): Add 'self' argument.
4299 * record-full.c (record_full_get_bookmark): Add 'self' argument.
4301 2014-02-19 Tom Tromey <tromey@redhat.com>
4303 * target.h (struct target_ops) <to_make_corefile_notes>: Add
4305 (target_make_corefile_notes): Add argument.
4306 * target.c (dummy_make_corefile_notes): Add 'self' argument.
4307 * procfs.c (procfs_make_note_section): Add 'self' argument.
4308 (procfs_make_note_section): Add 'self' argument.
4309 (procfs_make_note_section): Add 'self' argument.
4310 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
4312 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
4313 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
4314 * exec.c (exec_make_note_section): Add 'self' argument.
4315 (exec_make_note_section): Add 'self' argument.
4317 2014-02-19 Tom Tromey <tromey@redhat.com>
4319 * target.h (struct target_ops) <to_find_memory_regions>: Add
4321 (target_find_memory_regions): Add argument.
4322 * target.c (dummy_find_memory_regions): Add 'self' argument.
4323 * procfs.c (proc_find_memory_regions): Add 'self' argument.
4324 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
4325 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
4326 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
4327 * exec. (exec_do_find_memory_regions): New global.
4328 (exec_set_find_memory_regions): Rewrite.
4329 (exec_find_memory_regions): New function.
4330 (init_exec_ops): Use exec_find_memory_regions.
4332 2014-02-19 Tom Tromey <tromey@redhat.com>
4334 * target.h (struct target_ops) <to_supports_non_stop>: Add
4336 * target.c (find_default_supports_non_stop): Add argument.
4337 (target_supports_non_stop): Add argument.
4338 (find_default_supports_non_stop): Add 'self' argument.
4339 * remote.c (remote_supports_non_stop): Add 'self' argument.
4340 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
4342 2014-02-19 Tom Tromey <tromey@redhat.com>
4344 * target.h (struct target_ops) <to_log_command>: Add argument.
4345 (target_log_command): Add argument.
4346 * serial.h (serial_log_command): Add 'self' argument.
4347 * serial.c (serial_log_command): Add 'self' argument.
4349 2014-02-19 Tom Tromey <tromey@redhat.com>
4351 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
4352 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
4354 (target_pid_to_exec_file): Add argument.
4355 * target.c (debug_to_pid_to_exec_file): Add argument.
4356 (update_current_target): Update.
4357 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
4358 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
4359 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
4360 (linux_handle_extended_wait): Update.
4361 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
4362 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
4363 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
4364 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
4366 2014-02-19 Tom Tromey <tromey@redhat.com>
4368 * target.h (struct target_ops) <to_rcmd>: Add argument.
4369 (target_rcmd): Add argument.
4370 * target.c (debug_to_rcmd): Add argument.
4371 (update_current_target, do_monitor_command): Update.
4372 * remote.c (remote_rcmd): Add 'self' argument.
4373 * monitor.c (monitor_rcmd): Add 'self' argument.
4375 2014-02-19 Tom Tromey <tromey@redhat.com>
4377 * windows-nat.c (windows_stop): Add 'self' argument.
4378 * target.h (struct target_ops) <to_stop>: Add argument.
4379 * target.c (target_stop): Add argument.
4380 (debug_to_stop): Add argument.
4381 (update_current_target): Update.
4382 * remote.c (remote_stop): Add 'self' argument.
4383 * remote-sim.c (gdbsim_stop): Add 'self' argument.
4384 (gdbsim_cntrl_c): Update.
4385 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
4386 * procfs.c (procfs_stop): Add 'self' argument.
4387 * nto-procfs.c (procfs_stop): Add 'self' argument.
4388 * monitor.c (monitor_stop): Add 'self' argument.
4389 (monitor_open): Update.
4390 * linux-nat.c (linux_nat_stop): Add argument.
4391 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
4392 * gnu-nat.c (gnu_stop): Add 'self' argument.
4393 * darwin-nat.c (darwin_stop): Add 'self' argument.
4395 2014-02-19 Tom Tromey <tromey@redhat.com>
4397 * target.h (struct target_ops) <to_thread_name>: Add argument.
4398 * target.c (target_thread_name): Add argument.
4399 (update_current_target): Update.
4400 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
4402 2014-02-19 Tom Tromey <tromey@redhat.com>
4404 * target.h (struct target_ops) <to_extra_thread_info>: Add
4406 (target_extra_thread_info): Add argument.
4407 * target.c (update_current_target): Update.
4408 * remote.c (remote_threads_extra_info): Add 'self' argument.
4409 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
4411 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
4412 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
4413 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
4415 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
4417 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
4419 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
4422 2014-02-19 Tom Tromey <tromey@redhat.com>
4424 * target.h (struct target_ops) <to_program_signals>: Add argument.
4425 * target.c (target_program_signals): Add argument.
4426 * remote.c (remote_program_signals): Add 'self' argument.
4428 2014-02-19 Tom Tromey <tromey@redhat.com>
4430 * target.h (struct target_ops) <to_pass_signals>: Add argument.
4431 * target.c (target_pass_signals): Add argument.
4432 * remote.c (remote_pass_signals): Add 'self' argument.
4433 (remote_start_remote): Update.
4434 * procfs.c (procfs_pass_signals): Add 'self' argument.
4435 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
4436 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
4437 (linux_nat_create_inferior, linux_nat_attach): Update.
4439 2014-02-19 Tom Tromey <tromey@redhat.com>
4441 * windows-nat.c (windows_can_run): Add 'self' argument.
4442 * target.h (struct target_ops) <to_can_run>: Add argument.
4443 (target_can_run): Add argument.
4444 * target.c (debug_to_can_run): Add argument.
4445 (update_current_target): Update.
4446 * nto-procfs.c (procfs_can_run): Add 'self' argument.
4447 * inf-child.c (inf_child_can_run): Add 'self' argument.
4448 * go32-nat.c (go32_can_run): Add 'self' argument.
4450 2014-02-19 Tom Tromey <tromey@redhat.com>
4452 * target.h (struct target_ops) <to_has_exited>: Add argument.
4453 (target_has_exited): Add argument.
4454 * target.c (debug_to_has_exited): Add argument.
4455 (update_current_target): Update.
4457 2014-02-19 Tom Tromey <tromey@redhat.com>
4459 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
4461 (target_set_syscall_catchpoint): Add argument.
4462 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
4464 * target.c (update_current_target): Update.
4466 2014-02-19 Tom Tromey <tromey@redhat.com>
4468 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
4470 (target_remove_exec_catchpoint): Add argument.
4471 * target.c (debug_to_remove_exec_catchpoint): Add argument.
4472 (update_current_target): Update.
4473 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
4476 2014-02-19 Tom Tromey <tromey@redhat.com>
4478 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
4480 (target_insert_exec_catchpoint): Add argument.
4481 * target.c (debug_to_insert_exec_catchpoint): Add argument.
4482 (update_current_target): Update.
4483 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
4486 2014-02-19 Tom Tromey <tromey@redhat.com>
4488 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
4490 (target_remove_vfork_catchpoint): Add argument.
4491 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
4492 (update_current_target): Update.
4493 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
4496 2014-02-19 Tom Tromey <tromey@redhat.com>
4498 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
4500 (target_insert_vfork_catchpoint): Add argument.
4501 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
4502 (update_current_target): Update.
4503 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
4506 2014-02-19 Tom Tromey <tromey@redhat.com>
4508 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
4510 (target_remove_fork_catchpoint): Add argument.
4511 * target.c (debug_to_remove_fork_catchpoint): Add argument.
4512 (update_current_target): Update.
4513 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
4516 2014-02-19 Tom Tromey <tromey@redhat.com>
4518 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
4520 (target_insert_fork_catchpoint): Add argument.
4521 * target.c (debug_to_insert_fork_catchpoint): Add argument.
4522 (update_current_target): Update.
4523 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
4526 2014-02-19 Tom Tromey <tromey@redhat.com>
4528 * target.h (struct target_ops) <to_post_startup_inferior>: Add
4530 (target_post_startup_inferior): Add argument.
4531 * target.c (debug_to_post_startup_inferior): Add argument.
4532 (update_current_target): Update.
4533 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
4535 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
4537 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
4539 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
4541 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
4543 (super_post_startup_inferior): Likewise.
4544 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
4546 (super_post_startup_inferior): Likewise.
4547 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
4548 Add 'self' argument.
4549 (super_post_startup_inferior): Likewise.
4551 2014-02-19 Tom Tromey <tromey@redhat.com>
4553 * target.h (struct target_ops) <to_load>: Add argument.
4554 * target.c (target_load): Add argument.
4555 (debug_to_load): Add argument.
4556 (update_current_target): Update.
4557 * remote.c (remote_load): Add 'self' argument.
4558 * remote-sim.c (gdbsim_load): Add 'self' argument.
4559 * remote-mips.c (mips_load): Add 'self' argument.
4560 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
4561 * monitor.c (monitor_load): Add 'self' argument.
4562 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
4564 2014-02-19 Tom Tromey <tromey@redhat.com>
4566 * target.h (struct target_ops) <to_terminal_info>: Add argument.
4567 (target_terminal_info): Add argument.
4568 * target.c (debug_to_terminal_info): Add argument.
4569 (default_terminal_info): Likewise.
4570 * inflow.c (child_terminal_info): Add 'self' argument.
4571 * inferior.h (child_terminal_info): Add 'self' argument.
4572 * go32-nat.c (go32_terminal_info): Add 'self' argument.
4574 2014-02-19 Tom Tromey <tromey@redhat.com>
4576 * target.h (struct target_ops) <to_terminal_save_ours>: Add
4578 (target_terminal_save_ours): Add argument.
4579 * target.c (debug_to_terminal_save_ours): Add argument.
4580 (update_current_target): Update.
4581 * inflow.c (terminal_save_ours): Add 'self' argument.
4582 * inferior.h (terminal_save_ours): Add 'self' argument.
4584 2014-02-19 Tom Tromey <tromey@redhat.com>
4586 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
4587 (target_terminal_ours): Add argument.
4588 * target.c (debug_to_terminal_ours): Add argument.
4589 (update_current_target): Update.
4590 * remote.c (remote_terminal_ours): Add 'self' argument.
4591 (remote_close): Update.
4592 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
4593 * inflow.c (terminal_ours): Add 'self' argument.
4594 * inferior.h (terminal_ours): Add 'self' argument.
4595 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
4597 2014-02-19 Pedro Alves <palves@redhat.com>
4598 Tom Tromey <tromey@redhat.com>
4600 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
4602 (target_terminal_ours_for_output): Add argument.
4603 * target.c (debug_to_terminal_ours_for_output): Add argument.
4604 (update_current_target): Update.
4605 * inflow.c (terminal_ours_for_output): Add 'self' argument.
4606 * inferior.h (terminal_ours_for_output): Add 'self' argument.
4607 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
4609 2014-02-19 Tom Tromey <tromey@redhat.com>
4611 * target.h (struct target_ops) <to_terminal_inferior>: Add
4613 * target.c (target_terminal_inferior): Add argument.
4614 (update_current_target): Update.
4615 * remote.c (remote_terminal_inferior): Add 'self' argument.
4616 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
4617 * inflow.c (terminal_inferior): Add 'self' argument.
4618 * inferior.h (terminal_inferior): Add 'self' argument.
4619 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
4620 (go32_terminal_inferior): Add 'self' argument.
4622 2014-02-19 Tom Tromey <tromey@redhat.com>
4624 * target.h (struct target_ops) <to_terminal_init>: Add argument.
4625 (target_terminal_init): Add argument.
4626 * target.c (debug_to_terminal_init): Add argument.
4627 (update_current_target): Update.
4628 * inflow.c (terminal_init_inferior): Add 'self' argument.
4629 * inferior.h (terminal_init_inferior): Add 'self' argument.
4630 * go32-nat.c (go32_terminal_init): Add 'self' argument.
4631 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
4633 2014-02-19 Tom Tromey <tromey@redhat.com>
4635 * target.h (struct target_ops)
4636 <to_can_accel_watchpoint_condition>: Add argument.
4637 (target_can_accel_watchpoint_condition): Add argument.
4638 * target.c (debug_to_can_accel_watchpoint_condition): Add
4640 (update_current_target): Update.
4641 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
4644 2014-02-19 Tom Tromey <tromey@redhat.com>
4646 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4648 (target_region_ok_for_hw_watchpoint): Add argument.
4649 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
4650 (default_region_ok_for_hw_watchpoint): Add argument.
4651 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
4652 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
4654 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
4656 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
4658 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
4660 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
4662 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
4664 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
4665 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
4667 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
4668 Add 'self' argument.
4670 2014-02-19 Tom Tromey <tromey@redhat.com>
4672 * target.h (struct target_ops) <to_insert_watchpoint>: Add
4674 (target_insert_watchpoint): Add argument.
4675 * target.c (debug_to_insert_watchpoint): Add argument.
4676 (update_current_target): Update.
4677 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
4678 * remote.c (remote_insert_watchpoint): Add 'self' argument.
4679 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
4680 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
4681 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
4682 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
4684 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
4685 (procfs_insert_hw_watchpoint): Add 'self' argument.
4686 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
4688 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
4690 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
4692 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
4693 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
4695 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
4698 2014-02-19 Tom Tromey <tromey@redhat.com>
4700 * target.h (struct target_ops) <to_remove_watchpoint>: Add
4702 (target_remove_watchpoint): Add argument.
4703 * target.c (debug_to_remove_watchpoint): Add argument.
4704 (update_current_target): Update.
4705 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
4706 * remote.c (remote_remove_watchpoint): Add 'self' argument.
4707 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
4708 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
4709 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
4710 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
4712 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
4713 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
4715 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
4717 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
4719 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
4720 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
4722 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
4725 2014-02-19 Tom Tromey <tromey@redhat.com>
4727 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
4729 (target_remove_hw_breakpoint): Add argument.
4730 * target.c (debug_to_remove_hw_breakpoint): Add argument.
4731 (update_current_target): Update.
4732 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
4733 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
4735 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
4736 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
4738 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
4741 2014-02-19 Tom Tromey <tromey@redhat.com>
4743 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
4745 (target_insert_hw_breakpoint): Add argument.
4746 * target.c (debug_to_insert_hw_breakpoint): Add argument.
4747 (update_current_target): Update.
4748 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
4749 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
4751 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
4752 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
4753 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
4755 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
4758 2014-02-19 Tom Tromey <tromey@redhat.com>
4760 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
4762 (target_can_use_hardware_watchpoint): Add argument.
4763 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
4764 (update_current_target): Update.
4765 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
4767 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
4769 * remote.c (remote_check_watch_resources): Add 'self' argument.
4770 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
4771 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
4773 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
4774 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
4776 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
4778 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
4780 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
4782 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
4784 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
4786 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
4787 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
4789 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
4792 2014-02-19 Tom Tromey <tromey@redhat.com>
4794 * target.h (struct target_ops) <to_post_attach>: Add argument.
4795 (target_post_attach): Add argument.
4796 * target.c (debug_to_post_attach): Add argument.
4797 (update_current_target): Update.
4798 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
4799 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
4800 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
4801 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
4802 * inf-child.c (inf_child_post_attach): Add 'self' argument.
4804 2014-02-19 Tom Tromey <tromey@redhat.com>
4806 * windows-nat.c (windows_close): Add 'self' argument.
4807 * tracepoint.c (tfile_close): Add 'self' argument.
4808 * target.h (struct target_ops) <to_close>: Add argument.
4809 * target.c (target_close): Add argument.
4810 (update_current_target): Update.
4811 * remote.c (remote_close): Add 'self' argument.
4812 * remote-sim.c (gdbsim_close): Add 'self' argument.
4813 * remote-mips.c (mips_close): Add 'self' argument.
4814 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
4815 * record-full.c (record_full_close): Add 'self' argument.
4816 * record-btrace.c (record_btrace_close): Add 'self' argument.
4817 * monitor.h (monitor_close): Add 'self' argument.
4818 * monitor.c (monitor_close): Add 'self' argument.
4819 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
4820 * linux-nat.c (linux_nat_close): Add argument.
4821 * go32-nat.c (go32_close): Add 'self' argument.
4822 * exec.c (exec_close_1): Add 'self' argument.
4823 * ctf.c (ctf_close): Add 'self' argument.
4824 * corelow.c (core_close): Add 'self' argument.
4825 (core_close_cleanup): Update.
4826 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
4827 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
4829 2014-02-19 Tom Tromey <tromey@redhat.com>
4831 * remote.c (remote_load): New function.
4832 (init_remote_ops): Use it.
4834 2014-02-19 Tom Tromey <tromey@redhat.com>
4836 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
4838 * common/linux-btrace.h (linux_supports_btrace): Update.
4839 * remote.c (remote_supports_btrace): Add "self" argument.
4840 * target-delegates.c: Rebuild.
4841 * target.c (target_supports_btrace): Remove.
4842 * target.h (struct target_ops) <to_supports_btrace>: Add
4843 target_ops argument.
4844 (target_supports_btrace): New define.
4846 2014-02-19 Tom Tromey <tromey@redhat.com>
4848 * record-full.c (record_full_beneath_to_resume_ops)
4849 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
4850 (record_full_beneath_to_wait)
4851 (record_full_beneath_to_store_registers_ops)
4852 (record_full_beneath_to_store_registers)
4853 (record_full_beneath_to_xfer_partial_ops)
4854 (record_full_beneath_to_xfer_partial)
4855 (record_full_beneath_to_insert_breakpoint_ops)
4856 (record_full_beneath_to_insert_breakpoint)
4857 (record_full_beneath_to_remove_breakpoint_ops)
4858 (record_full_beneath_to_remove_breakpoint)
4859 (record_full_beneath_to_stopped_by_watchpoint)
4860 (record_full_beneath_to_stopped_data_address)
4861 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
4862 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
4863 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
4864 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
4865 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
4866 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
4867 (tmp_to_stopped_data_address, tmp_to_async): Remove.
4868 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
4869 (record_full_resume, record_full_wait_1)
4870 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
4871 (record_full_store_registers, record_full_xfer_partial)
4872 (record_full_insert_breakpoint, record_full_remove_breakpoint)
4873 (record_full_async, record_full_core_xfer_partial): Use target
4875 * target-delegates.c: Rebuild.
4876 * target.c (current_xfer_partial): Remove.
4877 (update_current_target): Do not INHERIT or de_fault
4878 to_insert_breakpoint, to_remove_breakpoint,
4879 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
4880 to_is_async_p, to_async. Do not set to_xfer_partial field.
4881 (default_xfer_partial): Simplify.
4882 (current_xfer_partial): Remove.
4883 (target_wait, target_resume): Simplify.
4884 (find_default_can_async_p, find_default_is_async_p): Update.
4885 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
4886 to_xfer_partial, to_stopped_by_watchpoint,
4887 to_stopped_data_address.
4888 (target_store_registers): Simplify.
4889 (forward_target_remove_breakpoint)
4890 (forward_target_insert_breakpoint): Remove.
4891 (target_remove_breakpoint, target_insert_breakpoint)
4892 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
4893 * target.h (struct target_ops) <to_resume, to_wait,
4894 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
4895 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
4896 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
4898 (forward_target_remove_breakpoint)
4899 (forward_target_insert_breakpoint): Remove.
4900 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
4902 (record_btrace_insert_breakpoint): Delegate directly.
4904 2014-02-19 Tom Tromey <tromey@redhat.com>
4907 * target-delegates.c: New file.
4908 * target.c: Include target-delegates.c.
4909 (init_dummy_target): Call install_dummy_methods.
4910 (complete_target_initialization): Call install_delegators.
4911 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
4912 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
4913 * make-target-delegates: New file.
4915 2014-02-19 Tom Tromey <tromey@redhat.com>
4917 * record.c (find_record_target): Use find_target_at.
4918 * target.c (find_target_at): New function.
4919 * target.h (find_target_at): Declare.
4921 2014-02-19 Tom Tromey <tromey@redhat.com>
4923 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
4925 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
4927 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
4928 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
4930 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
4932 * linux-nat.c (save_sigtrap): Update.
4933 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
4934 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
4935 (linux_nat_close): Update.
4936 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
4938 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
4940 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
4941 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
4942 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
4943 (tmp_to_async): Add 'ops' argument.
4944 (record_full_stopped_by_watchpoint, record_full_async)
4945 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
4947 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
4948 (m32r_stopped_by_watchpoint): Add 'ops' argument.
4949 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
4950 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
4951 (remote_is_async_p, remote_async): Add 'ops' argument.
4952 (remote_stopped_data_address): Update.
4953 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
4954 * target.c (update_current_target)
4955 (find_default_can_async_p, find_default_is_async_p): Update.
4956 (init_dummy_target): Update.
4957 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
4958 * target.h (struct target_ops) <to_stopped_by_watchpoint,
4959 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
4960 (target_can_async_p, target_is_async_p, target_async)
4961 (target_stopped_by_watchpoint): Update.
4963 2014-02-19 Yao Qi <yao@codesourcery.com>
4966 * gdbarch.sh: Remove startup_gdbarch.
4967 * gdbarch.c: Regenerated.
4968 * gdbarch.h: Likewise.
4970 2014-02-17 Kevin Buettner <kevinb@redhat.com>
4972 * rl78-tdep.c (rl78_g10_register_name): New function.
4973 (rl78_return_value): Add g10 support.
4974 (rl78_gdbarch_init): Register rl78_g10_register_name for the
4977 2014-02-17 Doug Evans <xdje42@gmail.com>
4979 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
4980 (SUBDIR_GUILE_SRCS): Ditto.
4981 (scm-gsmob.o): Ditto.
4983 2014-02-17 Yao Qi <yao@codesourcery.com>
4985 * gnu-nat.c (ILL_RPC): Declare defined function.
4987 2014-02-17 Yao Qi <yao@codesourcery.com>
4989 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
4990 mach_msg_type_number_t.
4991 (gnu_write_inferior): Likewise.
4993 2014-02-17 Yao Qi <yao@codesourcery.com>
4995 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
4997 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
4998 (inf_validate_procs, inf_signal): Likewise.
4999 (S_exception_raise_request): Likewise.
5000 (do_mach_notify_dead_name): Likewise.
5001 (steal_exc_port): Likewise.
5002 (gnu_read_inferior): Change 'copy_count''s type to
5003 mach_msg_type_number_t.
5004 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
5007 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
5009 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
5010 flag. Adjust all users; in particular...
5011 (gnu_wait): ..., don't decrement its value in here...
5012 (gnu_create_inferior): ..., and instead set the flag in here,
5013 around the startup_inferior call, and call that one with
5014 START_INFERIOR_TRAPS_EXPECTED.
5016 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
5017 (ILL_RPC): ... new macro.
5018 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
5019 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
5020 (do_mach_notify_send_once, S_proc_setmsgport_reply)
5021 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
5022 functions with ILL_RPC macro.
5023 (S_proc_pid2task_reply, S_proc_task2pid_reply)
5024 (S_proc_task2proc_reply, S_proc_proc2task_reply)
5025 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
5026 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
5027 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
5028 (S_proc_getlogin_reply, S_proc_getsid_reply)
5029 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
5030 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
5031 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
5032 (S_proc_getnports_reply, S_proc_is_important_reply)
5033 (S_proc_get_code_reply): New stub functions, generated with
5036 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
5037 collected the type check structures.
5039 * reply_mig_hack.awk: Don't expect to see the auto keyword.
5041 2014-02-14 Doug Evans <dje@google.com>
5043 * target.c (target_write_partial): Fix result type.
5045 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
5047 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
5048 the proper offsets to access fpregset_t.
5050 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
5052 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
5053 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
5054 * h8300-tdep.c (setmachinelist): Remove global.
5055 * hppa-tdep.c (hppa_sigtramp): Remove global.
5056 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
5057 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
5058 * ravenscar-thread.c (update_target_observer): Remove global.
5059 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
5061 2014-02-12 Tom Tromey <tromey@redhat.com>
5063 * common/rsp-low.c: Update comments.
5064 * common/rsp-low.h: Update comments.
5066 2014-02-12 Tom Tromey <tromey@redhat.com>
5068 * common/rsp-low.c (convert_ascii_to_int): Remove.
5069 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
5071 2014-02-12 Tom Tromey <tromey@redhat.com>
5073 * common/rsp-low.h (unhexify): Don't declare.
5074 * common/rsp-low.c (unhexify): Remove.
5076 2014-02-12 Tom Tromey <tromey@redhat.com>
5078 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
5079 * common/rsp-low.c (convert_int_to_ascii): Remove.
5081 2014-02-12 Tom Tromey <tromey@redhat.com>
5083 * common/rsp-low.h (hexify): Don't declare.
5084 * common/rsp-low.c (hexify): Remove.
5086 2014-02-12 Tom Tromey <tromey@redhat.com>
5088 * common/rsp-low.c (hexify): Never take strlen of argument.
5090 2014-02-12 Tom Tromey <tromey@redhat.com>
5092 * common/rsp-low.c (bin2hex): Never take strlen of argument.
5093 * remote.c (extended_remote_run, remote_rcmd)
5094 (remote_download_trace_state_variable, remote_save_trace_data)
5095 (remote_set_trace_notes): Update.
5096 * tracepoint.c (encode_source_string, tfile_write_status)
5097 (tfile_write_uploaded_tsv): Update.
5099 2014-02-12 Tom Tromey <tromey@redhat.com>
5101 * tracepoint.c: Include rsp-low.h.
5102 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
5103 * remote.c: Include rsp-low.h.
5104 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
5105 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
5106 (remote_unescape_input): Move to common/rsp-low.c.
5107 * common/rsp-low.h: New file.
5108 * common/rsp-low.c: New file.
5109 * Makefile.in (SFILES): Add common/rsp-low.c.
5110 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
5111 (COMMON_OBS): Add rsp-low.o.
5112 (rsp-low.o): New target.
5114 2014-02-12 Tom Tromey <tromey@redhat.com>
5116 * utils.h: Include print-utils.h.
5117 (host_address_to_string, plongest, pulongest, phex, phex_nz)
5118 (int_string, core_addr_to_string, core_addr_to_string_nz)
5119 (hex_string, hex_string_custom): Don't declare.
5120 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
5121 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
5122 (hex_string_custom, int_string, core_addr_to_string)
5123 (core_addr_to_string_nz, host_address_to_string): Move to
5124 common/print-utils.c.
5125 * common/print-utils.h: New file.
5126 * common/print-utils.c: New file
5127 * Makefile.in (SFILES): Add common/print-utils.c.
5128 (HFILES_NO_SRCDIR): Add common/print-utils.h.
5129 (COMMON_OBS): Add print-utils.o.
5130 (print-utils.o): New target.
5132 2014-02-12 Tom Tromey <tromey@redhat.com>
5134 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
5136 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5138 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
5140 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5142 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
5143 if a PT_IO ptrace request returns sucessfully but indicates that 0
5144 bytes were transferred.
5146 2014-02-12 Pedro Alves <palves@redhat.com>
5147 Kevin Buettner <kevinb@redhat.com>
5149 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
5150 TYPE_INSTANCE_FLAG_CODE_SPACE.
5152 2014-02-12 Pedro Alves <palves@redhat.com>
5154 * h8300-tdep.c (pseudo_from_raw_register)
5155 (raw_from_pseudo_register): New functions.
5156 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
5159 2014-02-12 Pedro Alves <palves@redhat.com>
5161 * h8300-tdep.c (h8300_register_sim_regno): New function.
5162 (h8300_gdbarch_init): Install h8300_register_sim_regno as
5163 gdbarch_register_sim_regno hook.
5165 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
5167 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
5169 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
5171 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
5173 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5175 * obsd-tdep.h (obsd_init_abi): New prototype.
5176 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
5177 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
5178 (obsd_init_abi): New functions.
5179 * i386obsd-tdep.c: Include "obsd-tdep.h".
5180 (i386obsd_init_abi): Call obsd_init_abi.
5181 * amd64obsd-tdep.c: Include "obsd-tdep.h".
5182 (amd64obsd_init_abi): Call obsd_init_abi.
5183 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
5184 obsd-tdep.c to gdb_target_obs.
5186 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
5188 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
5189 double float arguments to 16-byte in the argument slots.
5191 2014-02-11 Doug Evans <xdje42@gmail.com>
5193 * configure.ac: Don't crash if pkg-config is not found and guile
5194 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
5196 * configure: Regenerate.
5198 2014-02-11 Yao Qi <yao@codesourcery.com>
5200 * aix-thread.c (aix_thread_xfer_partial): Update comments.
5201 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
5202 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
5203 * gnu-nat.c (gnu_xfer_memory): Likewise.
5204 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
5205 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5206 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5207 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
5209 2014-02-11 Yao Qi <yao@codesourcery.com>
5211 * target.h (enum target_xfer_error): Rename to ...
5212 (enum target_xfer_status): ... it. New. All users updated.
5213 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
5215 (TARGET_XFER_STATUS_ERROR_P): New macro.
5216 (target_xfer_error_to_string): Remove declaration.
5217 (target_xfer_status_to_string): Declare.
5218 (target_xfer_partial_ftype): Adjust it.
5219 (struct target_ops) <to_xfer_partial>: Return
5220 target_xfer_status. Add argument xfered_len. Update
5222 * target.c (target_xfer_error_to_string): Rename to ...
5223 (target_xfer_status_to_string): ... it. New. All callers
5225 (target_read_live_memory): Likewise. Call target_xfer_partial
5226 instead of target_read.
5227 (memory_xfer_live_readonly_partial): Return
5228 target_xfer_status. Add argument xfered_len.
5229 (raw_memory_xfer_partial): Likewise.
5230 (memory_xfer_partial_1): Likewise.
5231 (memory_xfer_partial): Likewise.
5232 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
5233 properly. Update debug message.
5234 (default_xfer_partial, current_xfer_partial): Likewise.
5235 (target_write_partial): Likewise.
5236 (target_read_partial): Likewise. All callers updated.
5237 (read_whatever_is_readable): Likewise.
5238 (target_write_with_progress): Likewise.
5239 (target_read_alloc_1): Likewise.
5241 * aix-thread.c (aix_thread_xfer_partial): Likewise.
5242 * auxv.c (procfs_xfer_auxv): Likewise.
5243 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
5244 * bfd-target.c (target_bfd_xfer_partial): Likewise.
5245 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
5246 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
5247 * corefile.c (read_memory): Adjust.
5248 * corelow.c (core_xfer_partial): Likewise.
5249 * ctf.c (ctf_xfer_partial): Likewise.
5250 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
5252 (darwin_xfer_partial): Likewise.
5253 * exec.c (section_table_xfer_memory_partial): Likewise. All
5255 (exec_xfer_partial): Likewise.
5256 * exec.h (section_table_xfer_memory_partial): Update
5258 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
5260 (gnu_xfer_partial): Likewise.
5261 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
5262 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
5263 (ia64_hpux_xfer_solib_got): Likewise.
5264 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
5265 type of 'partial_len' to ULONGEST.
5266 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
5267 * linux-nat.c (linux_xfer_siginfo ): Likewise.
5268 (linux_nat_xfer_partial): Likewise.
5269 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
5270 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
5271 * monitor.c (monitor_xfer_memory): Likewise.
5272 (monitor_xfer_partial): Likewise.
5273 * procfs.c (procfs_xfer_partial): Likewise.
5274 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5275 * record-full.c (record_full_xfer_partial): Likewise.
5276 (record_full_core_xfer_partial): Likewise.
5277 * remote-sim.c (gdbsim_xfer_memory): Likewise.
5278 (gdbsim_xfer_partial): Likewise.
5279 * remote.c (remote_write_bytes_aux): Likewise. All callers
5281 (remote_write_bytes, remote_read_bytes): Likewise. All
5283 (remote_flash_erase): Likewise. All callers updated.
5284 (remote_write_qxfer): Likewise. All callers updated.
5285 (remote_read_qxfer): Likewise. All callers updated.
5286 (remote_xfer_partial): Likewise.
5287 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5288 (rs6000_xfer_shared_libraries): Likewise.
5289 * sol-thread.c (sol_thread_xfer_partial): Likewise.
5290 (sol_thread_xfer_partial): Likewise.
5291 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5292 (sparc_xfer_partial): Likewise.
5293 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
5295 (spu_xfer_partial): Likewise.
5296 * spu-multiarch.c (spu_xfer_partial): Likewise.
5297 * tracepoint.c (tfile_xfer_partial): Likewise.
5298 * windows-nat.c (windows_xfer_memory): Likewise.
5299 (windows_xfer_shared_libraries): Likewise.
5300 (windows_xfer_partial): Likewise.
5301 * valprint.c: Replace 'target_xfer_error' with
5302 'target_xfer_status' in comments.
5304 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
5306 Checked in by Joel Brobecker <brobecker@adacore.com>.
5307 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
5309 2014-02-11 Joel Brobecker <brobecker@adacore.com>
5311 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
5312 function parameters.
5314 2014-02-10 Will Newton <will.newton@linaro.org>
5316 * elfread.c (elf_rel_plt_read): Look for a .got section if
5317 looking up .got.plt fails.
5318 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
5319 on address passed to elf_gnu_ifunc_record_cache.
5320 (elf_gnu_ifunc_resolve_addr): Likewise.
5321 (elf_gnu_ifunc_resolver_return_stop): Likewise.
5323 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
5325 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
5326 (X_RETTURN): New macro.
5327 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
5329 * sparc64-tdep.c (sparc64_init_abi): Hook
5330 sparc_in_function_epilogue_p.
5332 2014-02-10 Gary Benson <gbenson@redhat.com>
5334 * symfile-debug.c (debug_qf_expand_symtabs_matching):
5335 Rename name_matcher to symbol_matcher.
5337 2014-02-10 Gary Benson <gbenson@redhat.com>
5339 * symfile-debug.c (debug_qf_expand_symtabs_matching):
5340 Use expand_symtabs_file_matcher_ftype and
5341 expand_symtabs_symbol_matcher_ftype.
5343 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5345 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
5346 (struct ada_symbol_cache): New.
5347 (ada_free_symbol_cache): Forward declare.
5348 (struct ada_pspace_data): New.
5349 (ada_pspace_data_handle): New static global.
5350 (get_ada_pspace_data, ada_pspace_data_cleanup)
5351 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
5352 (cache_space, cache): Delete, now folded inside struct
5354 (ada_get_symbol_cache): New function.
5355 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
5357 (_initialize_ada_language): Remove initialization of cache_space.
5358 Move call to observer_attach_inferior_exit up, grouping it
5359 with the other observer registrations inside this function.
5360 Rename command to be more general. Add call to
5361 register_program_space_data_with_cleanup.
5363 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5365 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
5366 ada_new_objfile_observer.
5367 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
5368 (_initialize_tasks): Update uses of ada_new_objfile_observer
5369 and ada_tasks_normal_stop_observer.
5371 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5373 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
5374 returned by the 'Length attribute to integer.
5376 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5378 * ada-lang.c (_initialize_ada_language): Initialize
5379 cache_space obstack.
5381 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5383 * ada-lang.c (HASH_SIZE): New macro.
5384 (struct cache_entry): New type.
5385 (cache_space, cache): New static globals.
5386 (ada_clear_symbol_cache, find_entry): New functions.
5387 (lookup_cached_symbol, cache_symbol): Implement.
5388 (ada_new_objfile_observer, ada_free_objfile_observer): New.
5389 (_initialize_ada_language): Attach ada_new_objfile_observer
5390 and ada_free_objfile_observer.
5392 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5394 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
5395 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
5396 struct block * parameter.
5397 (ada_lookup_symbol_list_worker): Constify local variable "block".
5398 Remove cast which is no longer necessary.
5400 2014-02-10 Doug Evans <xdje42@gmail.com>
5402 Add Guile as an extension language.
5403 * NEWS: Mention Guile scripting.
5404 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
5405 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
5406 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
5407 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
5408 (CLIBS): Add GUILE_LIBS.
5409 (install-guile): New rule.
5410 (guile.o): New rule.
5411 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
5412 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
5413 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
5414 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
5415 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
5416 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
5417 (scm-type.o, scm-utils.o, scm-value.o): New rules.
5418 * configure.ac: New option --with-guile.
5419 * configure: Regenerate.
5420 * config.in: Regenerate.
5421 * auto-load.c: Remove #include "python/python.h". Add #include
5422 "gdb/section-scripts.h".
5423 (source_section_scripts): Handle Guile scripts.
5424 (_initialize_auto_load): Add name of Guile objfile script to
5425 scripts-directory help text.
5426 * breakpoint.c (condition_command): Tweak comment to include Scheme.
5427 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
5428 (struct breakpoint): New member scm_bp_object.
5429 * defs.h (enum command_control_type): New value guile_control.
5430 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
5432 (show_user): Update comment.
5433 (_initialize_cli_cmds): Update help text for "show user". Update help
5434 text for max-user-call-depth.
5435 * cli/cli-script.c: Remove #include "python/python.h". Add #include
5437 (multi_line_command_p): Add guile_control.
5438 (print_command_lines): Handle guile_control.
5439 (execute_control_command, recurse_read_control_structure): Ditto.
5440 (process_next_line): Recognize "guile" commands.
5441 * disasm.c (gdb_disassemble_info): Make non-static.
5442 * disasm.h: #include "dis-asm.h".
5443 (struct gdbarch): Add forward decl.
5444 (gdb_disassemble_info): Declare.
5445 * extension.c: #include "guile/guile.h".
5446 (extension_languages): Add guile.
5447 (get_ext_lang_defn): Handle EXT_LANG_GDB.
5448 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
5449 * gdbtypes.c (get_unsigned_type_max): New function.
5450 (get_signed_type_minmax): New function.
5451 * gdbtypes.h (get_unsigned_type_max): Declare.
5452 (get_signed_type_minmax): Declare.
5453 * guile/README: New file.
5454 * guile/guile-internal.h: New file.
5455 * guile/guile.c: New file.
5456 * guile/guile.h: New file.
5457 * guile/scm-arch.c: New file.
5458 * guile/scm-auto-load.c: New file.
5459 * guile/scm-block.c: New file.
5460 * guile/scm-breakpoint.c: New file.
5461 * guile/scm-disasm.c: New file.
5462 * guile/scm-exception.c: New file.
5463 * guile/scm-frame.c: New file.
5464 * guile/scm-gsmob.c: New file.
5465 * guile/scm-iterator.c: New file.
5466 * guile/scm-lazy-string.c: New file.
5467 * guile/scm-math.c: New file.
5468 * guile/scm-objfile.c: New file.
5469 * guile/scm-ports.c: New file.
5470 * guile/scm-pretty-print.c: New file.
5471 * guile/scm-safe-call.c: New file.
5472 * guile/scm-string.c: New file.
5473 * guile/scm-symbol.c: New file.
5474 * guile/scm-symtab.c: New file.
5475 * guile/scm-type.c: New file.
5476 * guile/scm-utils.c: New file.
5477 * guile/scm-value.c: New file.
5478 * guile/lib/gdb.scm: New file.
5479 * guile/lib/gdb/boot.scm: New file.
5480 * guile/lib/gdb/experimental.scm: New file.
5481 * guile/lib/gdb/init.scm: New file.
5482 * guile/lib/gdb/iterator.scm: New file.
5483 * guile/lib/gdb/printing.scm: New file.
5484 * guile/lib/gdb/types.scm: New file.
5485 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
5486 (VPATH): Add $(GUILE_SRCDIR).
5487 (GUILE_DIR): New variable.
5488 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
5489 (all): Add stamp-guile dependency.
5490 (stamp-guile): New rule.
5491 (clean-guile, install-guile, uninstall-guile): New rules.
5492 (install-only): Add install-guile dependency.
5493 (uninstall): Add uninstall-guile dependency.
5494 (clean): Add clean-guile dependency.
5496 2014-02-09 Doug Evans <xdje42@gmail.com>
5498 Revert this patch (which I approved, mea culpa).
5500 2014-02-08 Mark Kettenis <kettenis@gnu.org>
5502 * Makefile.in (all-lib): Remove.
5503 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
5505 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5507 Fix Python stack corruption.
5508 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
5511 2014-02-08 Mark Kettenis <kettenis@gnu.org>
5513 * Makefile.in (all-lib): Remove.
5514 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
5516 2014-02-07 Doug Evans <dje@google.com>
5518 * extension-priv.h (extension_language_script_ops): Add comment.
5519 (extension_language_ops): Add comment.
5520 (active_ext_lang_state): Fix typo in comment.
5522 2014-02-07 Pedro Alves <palves@redhat.com>
5524 PR breakpoints/16292
5525 * infrun.c (handle_signal_stop) <signal arrives while stepping
5526 over a breakpoint>: Switch back to the stepping thread.
5528 2014-02-07 Yao Qi <yao@codesourcery.com>
5530 * target.c (target_xfer_partial): Return zero if LEN is zero.
5532 2014-02-07 Yao Qi <yao@codesourcery.com>
5534 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
5535 (ld_so_xfer_auxv): Likewise.
5536 * bfd-target.c (target_bfd_xfer_partial): Likewise.
5537 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
5538 * corelow.c (core_xfer_partial): Likewise.
5539 * ctf.c (ctf_xfer_partial): Likewise.
5540 * darwin-nat.c (darwin_read_dyld_info): Likewise.
5541 (darwin_xfer_partial): Likewise.
5542 * exec.c (exec_xfer_partial): Likewise.
5543 * gnu-nat.c (gnu_xfer_partial): Likewise.
5544 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
5545 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
5546 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
5547 * linux-nat.c (linux_xfer_siginfo): Likewise.
5548 (linux_proc_xfer_spu): Likewise.
5549 * procfs.c (procfs_xfer_partial): Likewise.
5550 * record-full.c (record_full_xfer_partial): Likewise.
5551 (record_full_core_xfer_partial): Likewise.
5552 * remote-sim.c (gdbsim_xfer_partial): Likewise.
5553 * remote.c (remote_write_qxfer): Likewise.
5554 (remote_write_qxfer, remote_read_qxfer): Likewise.
5555 (remote_xfer_partial): Likewise.
5556 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5557 (rs6000_xfer_shared_libraries): Likewise.
5558 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5559 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
5560 (spu_xfer_partial): Likewise.
5561 * target.c (memory_xfer_partial_1): Likewise.
5562 * tracepoint.c (tfile_xfer_partial): Likewise.
5563 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
5564 (windows_xfer_partial): Likewise.
5566 2014-02-07 Yao Qi <yao@codesourcery.com>
5568 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
5570 (core_xfer_shared_libraries_aix): Likewise.
5571 * gdbarch.c, gdbarch.h: Regenerated.
5572 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
5573 ULONGEST. Change 'len_avail' type to ULONGEST.
5574 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
5575 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
5577 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
5579 2014-02-07 Yao Qi <yao@codesourcery.com>
5581 * corefile.c (memory_error): Get 'exception' from ERR and pass
5582 'exception' to throw_error.
5584 2014-02-06 Doug Evans <xdje42@gmail.com>
5586 * configure.ac (libpython checking): Remove all but python.o from
5587 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
5588 * configure: Regenerate.
5590 * Makefile.in (SFILES): Add extension.c.
5591 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
5592 (COMMON_OBS): Add extension.o.
5593 * extension.h: New file.
5594 * extension-priv.h: New file.
5595 * extension.c: New file.
5597 * python/python-internal.h: #include "extension.h".
5598 (gdbpy_auto_load_enabled): Declare.
5599 (gdbpy_apply_val_pretty_printer): Declare.
5600 (gdbpy_apply_frame_filter): Declare.
5601 (gdbpy_preserve_values): Declare.
5602 (gdbpy_breakpoint_cond_says_stop): Declare.
5603 (gdbpy_breakpoint_has_cond): Declare.
5604 (void source_python_script_for_objfile): Delete.
5605 * python/python.c: #include "extension-priv.h".
5606 Delete inclusion of "observer.h".
5607 (extension_language_python): Moved here and renamed from
5608 script_language_python in py-auto-load.c.
5609 Redefined to be of type extension_language_defn.
5610 (python_extension_script_ops): New global.
5611 (python_extension_ops): New global.
5612 (struct python_env): New member previous_active.
5613 (restore_python_env): Call restore_active_ext_lang.
5614 (ensure_python_env): Call set_active_ext_lang.
5615 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
5617 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
5619 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
5621 (gdbpy_eval_from_control_command): Renamed from
5622 eval_python_from_control_command, made static. New arg extlang.
5623 (gdbpy_source_script) Renamed from source_python_script, made static.
5625 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
5626 result to int. New arg extlang.
5627 (gdbpy_source_objfile_script): Renamed from
5628 source_python_script_for_objfile, made static. New arg extlang.
5629 (gdbpy_start_type_printers): Renamed from start_type_printers, made
5630 static. New args extlang, extlang_printers. Change result type to
5632 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
5633 static. New arg extlang. Rename arg printers to extlang_printers
5634 and change type to ext_lang_type_printers *.
5635 (gdbpy_free_type_printers): Renamed from free_type_printers, made
5636 static. Replace argument arg with extlang, extlang_printers.
5637 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
5638 (!HAVE_PYTHON, source_python_script): Delete.
5639 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
5640 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
5641 (!HAVE_PYTHON, start_type_printers): Delete.
5642 (!HAVE_PYTHON, apply_type_printers): Delete.
5643 (!HAVE_PYTHON, free_type_printers): Delete.
5644 (_initialize_python): Delete call to observer_attach_before_prompt.
5645 (finalize_python): Set/restore active extension language.
5646 (gdbpy_finish_initialization) Renamed from
5647 finish_python_initialization, made static. New arg extlang.
5648 (gdbpy_initialized): New function.
5649 * python/python.h: #include "extension.h". Delete #include
5650 "value.h", "mi/mi-cmds.h".
5651 (extension_language_python): Declare.
5652 (GDBPY_AUTO_FILE_NAME): Delete.
5653 (enum py_bt_status): Moved to extension.h and renamed to
5655 (enum frame_filter_flags): Moved to extension.h.
5656 (enum py_frame_args): Moved to extension.h and renamed to
5657 ext_lang_frame_args.
5658 (finish_python_initialization): Delete.
5659 (eval_python_from_control_command): Delete.
5660 (source_python_script): Delete.
5661 (apply_val_pretty_printer): Delete.
5662 (apply_frame_filter): Delete.
5663 (preserve_python_values): Delete.
5664 (gdbpy_script_language_defn): Delete.
5665 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
5666 (start_type_printers, apply_type_printers, free_type_printers): Delete.
5668 * auto-load.c: #include "extension.h".
5669 (GDB_AUTO_FILE_NAME): Delete.
5670 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
5671 (script_language_gdb): Delete, moved to extension.c and renamed to
5672 extension_language_gdb.
5673 (source_gdb_script_for_objfile): Delete.
5674 (auto_load_pspace_info): New member unsupported_script_warning_printed.
5675 (loaded_script): Change type of language member to
5676 struct extension_language_defn *.
5677 (init_loaded_scripts_info): Initialize
5678 unsupported_script_warning_printed.
5679 (maybe_add_script): Make static. Change type of language arg to
5680 struct extension_language_defn *.
5681 (clear_section_scripts): Reset unsupported_script_warning_printed.
5682 (auto_load_objfile_script_1): Rewrite to use extension language API.
5683 (auto_load_objfile_script): Make public. Remove support-compiled-in
5684 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
5685 (source_section_scripts): Rewrite to use extension language API.
5686 (load_auto_scripts_for_objfile): Rewrite to use
5687 auto_load_scripts_for_objfile.
5688 (collect_matching_scripts_data): Change type of language member to
5689 struct extension_language_defn *.
5690 (auto_load_info_scripts): Change type of language arg to
5691 struct extension_language_defn *.
5692 (unsupported_script_warning_print): New function.
5693 (script_not_found_warning_print): Make static.
5694 (_initialize_auto_load): Rewrite construction of scripts-directory
5696 * auto-load.h (struct objfile): Add forward decl.
5697 (struct script_language): Delete.
5698 (struct auto_load_pspace_info): Add forward decl.
5699 (struct extension_language_defn): Add forward decl.
5700 (maybe_add_script): Delete.
5701 (auto_load_objfile_script): Declare.
5702 (script_not_found_warning_print): Delete.
5703 (auto_load_info_scripts): Update prototype.
5704 (auto_load_gdb_scripts_enabled): Declare.
5705 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
5706 auto_load_python_scripts_enabled and made public.
5707 (script_language_python): Delete, moved to python.c.
5708 (gdbpy_script_language_defn): Delete.
5709 (info_auto_load_python_scripts): Update to use
5710 extension_language_python.
5712 * breakpoint.c (condition_command): Replace call to
5713 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
5714 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
5715 with call to breakpoint_ext_lang_cond_says_stop.
5716 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
5717 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
5718 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
5719 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
5721 (local_setattro): Print name of extension language with existing
5724 * valprint.c (val_print, value_print): Update to call
5725 apply_ext_lang_val_pretty_printer.
5726 * cp-valprint.c (cp_print_value): Update call to
5727 apply_ext_lang_val_pretty_printer.
5728 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
5729 (gdbpy_apply_val_pretty_printer): Renamed from
5730 apply_val_pretty_printer. New arg extlang.
5731 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
5733 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
5734 extension language API.
5735 * cli/cli-script.c (execute_control_command): Update to call
5736 eval_ext_lang_from_control_command.
5738 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
5739 enum ext_lang_bt_status values. Update call to
5740 apply_ext_lang_frame_filter.
5741 (mi_cmd_stack_list_locals): Ditto.
5742 (mi_cmd_stack_list_args): Ditto.
5743 (mi_cmd_stack_list_variables): Ditto.
5744 * mi/mi-main.c: Delete #include "python/python-internal.h".
5745 Add #include "extension.h".
5746 (mi_cmd_list_features): Replace reference to python internal variable
5747 gdb_python_initialized with call to ext_lang_initialized_p.
5749 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
5750 Update to use enum ext_lang_frame_args. Update to call
5751 apply_ext_lang_frame_filter.
5752 * python/py-framefilter.c (extract_sym): Update to use enum
5754 (extract_value, py_print_type, py_print_value): Ditto.
5755 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
5756 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
5757 (py_print_frame): Ditto.
5758 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
5759 New arg extlang. Update to use enum ext_lang_bt_status.
5761 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
5762 finish_python_initialization. Replace with call to
5763 finish_ext_lang_initialization.
5765 * typeprint.c (do_free_global_table): Update to call
5766 free_ext_lang_type_printers.
5767 (create_global_typedef_table): Update to call
5768 start_ext_lang_type_printers.
5769 (find_global_typedef): Update to call apply_ext_lang_type_printers.
5770 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
5771 (type_print_options): Change type of global_printers from "void *"
5772 to "struct ext_lang_type_printers *".
5774 * value.c (preserve_values): Update to call preserve_ext_lang_values.
5775 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
5776 (gdbpy_preserve_values): Renamed from preserve_python_values.
5778 (!HAVE_PYTHON, preserve_python_values): Delete.
5780 * utils.c (quit_flag): Delete, moved to extension.c.
5781 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
5784 * eval.c: Delete #include "python/python.h".
5785 * main.c: Delete #include "python/python.h".
5787 * defs.h: Update comment.
5789 2014-02-06 Joel Brobecker <brobecker@adacore.com>
5793 2014-02-05 Mark Kettenis <kettenis@gnu.org>
5795 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
5798 2014-02-05 Yao Qi <yao@codesourcery.com>
5800 * remote.c (remote_pass_signals): Remove local 'buf' and use
5802 (remote_program_signals): Likewise.
5804 2014-02-05 Yao Qi <yao@codesourcery.com>
5806 * ctf.c: Include "inferior.h" and "gdbthread.h".
5807 (CTF_PID): A new macro.
5808 (ctf_open): Call inferior_appeared and add_thread_silent.
5809 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
5810 (ctf_thread_alive): New function.
5811 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
5813 2014-02-05 Yao Qi <yao@codesourcery.com>
5817 2013-05-24 Yao Qi <yao@codesourcery.com>
5819 * tracepoint.c (TFILE_PID): Remove.
5820 (tfile_open): Don't add thread and inferior.
5821 (tfile_close): Don't set 'inferior_ptid'. Don't call
5822 exit_inferior_silent.
5823 (tfile_thread_alive): Remove.
5824 (init_tfile_ops): Don't set field 'to_thread_alive' of
5827 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
5829 * remote.c (remote_start_remote): Call remote_check_symbols even
5830 if only symbol-file (not file) has been given.
5832 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5834 * gdbarch.sh (skip_entrypoint): New callback.
5835 * gdbarch.c, gdbarch.h: Regenerate.
5836 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
5837 * infrun.c (fill_in_stop_func): Likewise.
5838 * ppc-linux-tdep.c: Include "elf/ppc64.h".
5839 (ppc_elfv2_elf_make_msymbol_special): New function.
5840 (ppc_elfv2_skip_entrypoint): Likewise.
5841 (ppc_linux_init_abi): Install them for ELFv2.
5843 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5845 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
5846 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
5847 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
5848 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
5849 structures returned in GPRs.
5851 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5853 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
5854 offset to the stack parameter list for the ELFv2 ABI.
5856 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5858 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
5859 set_gdbarch_convert_from_func_ptr_addr and
5860 set_gdbarch_elf_make_msymbol_special for ELFv1.
5861 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
5862 function descriptors on ELFv1.
5863 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
5864 set up r12 at function entry.
5866 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5868 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
5869 (struct gdbarch_tdep): New member elf_abi.
5871 * rs6000-tdep.c: Include "elf/ppc64.h".
5872 (rs6000_gdbarch_init): Detect ELF ABI version.
5874 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5876 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
5877 within a register pair holding a DFP 128-bit value on little-endian.
5878 (ppc64_sysv_abi_return_value_base): Likewise.
5879 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
5880 (dfp_pseudo_register_write): Likewise.
5882 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5884 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
5885 offset on little-endian when passing _Decimal32.
5886 (ppc64_sysv_abi_return_value_base): Likewise for return values.
5888 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5890 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
5891 of the overlapped FP register within the VSX register on little-
5893 (efpr_pseudo_register_write): Likewise.
5895 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5897 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
5898 offset on little-endian when passing small structures.
5900 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5902 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
5903 (struct ppc64_sysv_argpos): New data structure.
5904 (ppc64_sysv_abi_push_float): Remove.
5905 (ppc64_sysv_abi_push_val): New function.
5906 (ppc64_sysv_abi_push_integer): Likewise.
5907 (ppc64_sysv_abi_push_freg): Likewise.
5908 (ppc64_sysv_abi_push_vreg): Likewise.
5909 (ppc64_sysv_abi_push_param): Likewise.
5910 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
5911 (ppc64_sysv_abi_return_value_base): New function.
5912 (ppc64_sysv_abi_return_value): Refactor to use it.
5914 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5916 * NEWS: Document new target powerpc64le-*-linux*.
5918 2014-02-04 Mark Kettenis <kettenis@gnu.org>
5920 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
5921 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
5923 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
5924 register set used in ELF core dumps. Add floating-point register set.
5926 2014-02-03 Kevin Buettner <kevinb@redhat.com>
5928 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
5929 dwarf2_to_gdb[] table using symbolic constants. Adjust
5930 penultimate entry from number representing the PC register
5931 to symbolic constant representing the MDR register. Add
5932 constant for the PC register to the end of the table.
5934 2014-02-03 Mark Kettenis <kettenis@gnu.org>
5936 * bsd-kvm.c: Include <sys/param.h>
5938 2014-02-03 Mark Kettenis <kettenis@gnu.org>
5940 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
5942 2014-01-31 Joel Brobecker <brobecker@adacore.com>
5944 * ada-lang.h (clear_ada_sym_cache): Delete.
5946 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
5948 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
5950 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
5952 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
5953 the sigreturn register save area only if the syscall is
5956 2014-01-29 Joel Brobecker <brobecker@adacore.com>
5958 * valops.c (value_slice): Minor reformatting.
5960 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
5962 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
5964 2014-01-28 Joel Brobecker <brobecker@adacore.com>
5966 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
5968 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
5969 (ada_ignore_descriptive_types_p): New static global.
5970 (find_parallel_type_by_descriptive_type): Return immediately
5971 if ada_ignore_descriptive_types_p is set.
5972 (_initialize_ada_language): Register new commands "maintenance
5973 set ada", "maintenance show ada", "maintenance set ada
5974 ignore-descriptive-types" and "maintenance show ada
5975 ignore-descriptive-types".
5976 * NEWS: Add entry for new "maint ada set/show
5977 ignore-descriptive-types" commands.
5979 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
5981 * record-btrace.c (record_btrace_close): Call btrace_teardown
5984 2014-01-27 Joel Brobecker <brobecker@adacore.com>
5986 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
5989 2014-01-27 Joel Brobecker <brobecker@adacore.com>
5991 * ada-typeprint (type_is_full_subrange_of_target_type):
5993 (print_range): Add parameter bounds_prefered_p. If not set,
5994 try printing range types using the name of their base type.
5995 (print_range_type): Add parameter bounds_prefered_p.
5996 Use it in call to print_range.
5997 (print_array_type, ada_print_type): Update calls to print_range
5998 and print_range_type.
6000 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6002 * ada-typeprint.c (print_array_type, print_choices, print_range)
6003 (print_range_bound, print_dynamic_range_bound, print_range_type):
6006 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6008 * ada-typeprint.c (print_range): Add missing empty line
6009 after local declaration.
6011 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6013 * ada-valprint.c (print_optional_low_bound): Get index_type's
6014 target type for as long as it is a TYPE_CODE_RANGE.
6016 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6018 * procfs.c (procfs_make_note_section): Remove assertion and
6021 2014-01-24 Yao Qi <yao@codesourcery.com>
6023 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
6024 * corelow.c (get_core_siginfo): Likewise.
6026 2014-01-24 Yao Qi <yao@codesourcery.com>
6028 * remote.c (remote_write_bytes_aux): Change type of 'len' to
6029 ULONGEST. Don't check 'len' is negative.
6030 (remote_write_bytes): Change type of 'len' to ULONGEST.
6032 2014-01-23 Tom Tromey <tromey@redhat.com>
6035 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
6036 Handle exception from frame.block.
6037 (FrameVars.fetch_frame_locals): Likewise.
6039 2014-01-23 Tom Tromey <tromey@redhat.com>
6042 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
6043 on a NULL pointer. Move "goto error" to correct place.
6045 2014-01-23 Tom Tromey <tromey@redhat.com>
6048 * python/py-framefilter.c (apply_frame_filter): Call
6049 ensure_python_env after computing gdbarch.
6051 2014-01-23 Yao Qi <yao@codesourcery.com>
6053 * target.c (raw_memory_xfer_partial): Change argument type
6054 from void * to gdb_byte *.
6055 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
6057 2014-01-22 Doug Evans <dje@google.com>
6059 New gdbserver option --debug-format=timestamp.
6062 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
6064 * syscalls/s390x-linux.xml: New file.
6065 * syscalls/s390-linux.xml: New file.
6066 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
6067 (XML_SYSCALL_FILENAME_S390X): Likewise.
6068 (op_svc): New enum value for SVC opcode.
6069 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
6070 (s390_linux_get_syscall_number): New function.
6071 (s390_gdbarch_init): Register '*get_syscall_number' and the
6072 syscall xml file name.
6073 * data-directory/Makefile.in (SYSCALLS_FILES): Add
6074 "s390-linux.xml" and "s390x-linux.xml".
6075 * NEWS: Announce new feature.
6077 2014-01-22 Baruch Siach <baruch@tkos.co.il>
6079 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
6081 2014-01-22 Pedro Alves <palves@redhat.com>
6083 * xtensa-config.c: Include defs.h.
6085 2014-01-22 Joel Brobecker <brobecker@adacore.com>
6087 * common/common-utils.h: Add "ARI:" comment beside __func__
6090 2014-01-22 Joel Brobecker <brobecker@adacore.com>
6092 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
6093 documentation a bit.
6095 2014-01-21 Roland McGrath <mcgrathr@google.com>
6097 * configure.ac: Call AM_PROG_INSTALL_STRIP.
6098 * configure: Regenerate.
6099 * aclocal.m4: Regenerate.
6100 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
6101 New substituted variables.
6102 (install-strip): New target.
6103 (INSTALL_SCRIPT): New substituted variable.
6104 (FLAGS_TO_PASS): Add it.
6105 (install-only): Use $(INSTALL_SCRIPT) rather than
6106 $(INSTALL_PROGRAM) for gcore.
6108 2014-01-20 Tom Tromey <tromey@redhat.com>
6110 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
6113 2014-01-20 Tom Tromey <tromey@redhat.com>
6115 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
6116 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
6117 (deprecated_cmd_warning, complete_on_cmdlist): Update.
6118 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
6119 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
6120 (struct cmd_list_element) <flags>: Remove.
6121 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
6122 doc_allocated>: New fields.
6123 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
6125 * maint.c (maintenance_do_deprecate): Update.
6126 * top.c (execute_command): Update.
6128 2014-01-20 Baruch Siach <baruch@tkos.co.il>
6130 * xtensa-linux-nat.c: Include asm/ptrace.h.
6132 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6134 * Makefile.in (SFILES): Add d-support.c.
6135 (COMMON_OBS): Add d-support.o.
6136 * d-lang.h (d_parse_symbol): Add comment, now defined in
6138 * d-lang.c (parse_call_convention)
6139 (parse_attributes, parse_function_types)
6140 (parse_function_args, parse_type, parse_identifier)
6141 (call_convention_p, d_parse_symbol): Move functions to ...
6142 * d-support.c: ... New file.
6144 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6146 * d-lang.h (d_parse_symbol): Add declaration.
6147 * d-lang.c (extract_identifiers)
6148 (extract_type_info): Remove functions.
6149 (parse_call_convention, parse_attributes)
6150 (parse_function_types, parse_function_args)
6151 (parse_type, parse_identifier, call_convention_p)
6152 (d_parse_symbol): New functions.
6153 (d_demangle): Use d_parse_symbol to demangle D symbols.
6155 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6157 * d-lang.h (struct builtin_d_type): New data type.
6158 (builtin_d_type): Add declaration.
6159 * d-lang.c (d_language_arch_info, build_d_types)
6160 (builtin_d_type): New functions.
6161 (enum d_primitive_types): New data type.
6162 (d_language_defn): Change c_language_arch_info to
6163 d_language_arch_info.
6164 (d_type_data): New static variable.
6165 (_initialize_d_language): Initialize d_type_data.
6167 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6169 * d-lang.h (d_main_name): Add declaration.
6170 * d-lang.c (d_main_name): New function.
6171 * symtab.c (find_main_name): Add call to d_main_name.
6173 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6175 * d-lang.c (d_language_defn): Change macro_expansion_c to
6178 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6180 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6182 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
6184 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
6185 gdb_exception" declaration.
6186 * remote.c (getpkt_or_notif_sane): Likewise.
6188 2014-01-17 Doug Evans <dje@google.com>
6190 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
6191 function, contents of dirnames_to_char_ptr_vec_append moved here.
6192 (delim_string_to_char_ptr_vec): New function.
6193 (dirnames_to_char_ptr_vec_append): Rewrite.
6194 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
6196 2014-01-17 Doug Evans <dje@google.com>
6198 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
6200 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
6201 #include "common-utils.h".
6202 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
6203 * common/vec.h (VEC_ASSERT_PASS): Update.
6204 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
6205 (MACH_CHECK_ERROR): Update.
6207 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
6209 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
6211 * gdbarch.h: Regenerate.
6213 2014-01-16 Tom Tromey <tromey@redhat.com>
6215 * value.c (struct value) <regnum>: Move earlier.
6217 2014-01-16 Tom Tromey <tromey@redhat.com>
6219 * remote.c (extended_remote_create_inferior): Rename from
6220 extended_remote_create_inferior_1. Add "ops" argument. Remove
6223 2014-01-16 Pedro Alves <palves@redhat.com>
6225 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
6226 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
6229 2014-01-16 Doug Evans <dje@google.com>
6231 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
6233 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6235 * btrace.h (btrace_thread_flag): New.
6236 (struct btrace_thread_info) <flags>: New.
6237 * record-btrace.c (record_btrace_resume_thread)
6238 (record_btrace_find_thread_to_move, btrace_step_no_history)
6239 (btrace_step_stopped, record_btrace_start_replaying)
6240 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
6241 (record_btrace_find_resume_thread): New.
6242 (record_btrace_resume, record_btrace_wait): Extend.
6243 (record_btrace_can_execute_reverse): New.
6244 (record_btrace_open): Fail in non-stop mode.
6245 (record_btrace_set_replay): Split into this, ...
6246 (record_btrace_stop_replaying): ... this, ...
6247 (record_btrace_clear_histories): ... and this.
6248 (init_record_btrace_ops): Init to_can_execute_reverse.
6249 * NEWS: Announce it.
6251 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6253 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
6254 (forward_target_decr_pc_after_break)
6255 (target_decr_pc_after_break): New.
6256 * target.c (forward_target_decr_pc_after_break)
6257 (target_decr_pc_after_break): New.
6258 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
6259 instead of gdbarch_decr_pc_after_break.
6260 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
6261 instead of gdbarch_decr_pc_after_break.
6262 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
6263 instead of gdbarch_decr_pc_after_break.
6264 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
6265 instead of gdbarch_decr_pc_after_break.
6266 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
6267 instead of gdbarch_decr_pc_after_break.
6268 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
6269 instead of gdbarch_decr_pc_after_break.
6271 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6273 * btrace.c: Include regcache.h.
6274 (btrace_add_pc): New.
6275 (btrace_enable): Call btrace_add_pc.
6276 (btrace_is_empty): New.
6277 * btrace.h (btrace_is_empty): New.
6278 * record-btrace.c (require_btrace, record_btrace_info): Call
6281 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6283 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
6284 Support delta reads.
6285 (linux_disable_btrace): Change return type.
6286 * common/linux-btrace.h (linux_read_btrace): Change parameters
6287 and return type to allow error reporting. Update users.
6288 (linux_disable_btrace): Change return type. Update users.
6289 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
6291 (btrace_error): New.
6292 (btrace_block) <begin>: Comment on BEGIN == 0.
6293 * btrace.c (btrace_compute_ftrace): Start from the end of
6295 (btrace_stitch_trace, btrace_clear_history): New.
6296 (btrace_fetch): Read delta trace, return if replaying.
6297 (btrace_clear): Move clear history code to btrace_clear_history.
6298 (parse_xml_btrace): Throw an error if parsing failed.
6299 * target.h (struct target_ops) <to_read_btrace>: Change parameters
6300 and return type to allow error reporting.
6301 (target_read_btrace): Change parameters and return type to allow
6303 * target.c (target_read_btrace): Update.
6304 * remote.c (remote_read_btrace): Support delta reads. Pass
6306 * NEWS: Announce it.
6308 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6310 * record.h (record_btrace_frame_unwind)
6311 (record_btrace_tailcall_frame_unwind): New declarations.
6312 * dwarf2-frame: Include record.h
6313 (dwarf2_frame_cfa): Throw an error for btrace frames.
6314 * record-btrace.c: Include hashtab.h.
6315 (btrace_get_bfun_name): New.
6316 (btrace_call_history): Call btrace_get_bfun_name.
6317 (struct btrace_frame_cache): New.
6319 (bfcache_hash, bfcache_eq, bfcache_new): New.
6320 (btrace_get_frame_function): New.
6321 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
6322 (record_btrace_frame_this_id): Compute own id.
6323 (record_btrace_frame_prev_register): Provide PC, throw_error
6324 for all other registers.
6325 (record_btrace_frame_sniffer): Detect btrace frames.
6326 (record_btrace_tailcall_frame_sniffer): New.
6327 (record_btrace_frame_dealloc_cache): New.
6328 (record_btrace_frame_unwind): Add new functions.
6329 (record_btrace_tailcall_frame_unwind): New.
6330 (_initialize_record_btrace): Allocate cache.
6331 * btrace.c (btrace_clear): Call reinit_frame_cache.
6332 * NEWS: Announce it.
6334 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6336 * record-btrace.c (record_btrace_set_replay)
6337 (record_btrace_goto_begin, record_btrace_goto_end)
6338 (record_btrace_goto): New.
6339 (init_record_btrace_ops): Initialize them.
6340 * NEWS: Announce it.
6342 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6344 * record-btrace.c (record_btrace_find_new_threads)
6345 (record_btrace_thread_alive): New.
6346 (init_record_btrace_ops): Initialize to_find_new_threads and
6349 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6351 * record-btrace.c (record_btrace_resume): New.
6352 (record_btrace_wait): New.
6353 (init_record_btrace_ops): Initialize to_wait and to_resume.
6355 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6357 * record-btrace.c (record_btrace_xfer_partial)
6358 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
6359 (record_btrace_allow_memory_access): New.
6360 (init_record_btrace_ops): Initialize new methods.
6361 * target.c (raw_memory_xfer_partial): Bail out if target reports
6362 that this memory is not available.
6364 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6366 * target.h (target_ops) <to_insert_breakpoint>
6367 <to_remove_breakpoint>: Add target_ops parameter.
6368 (forward_target_insert_breakpoint): New.
6369 (forward_target_remove_breakpoint): New.
6370 (memory_remove_breakpoint, memory_insert_breakpoint):
6371 Add target_ops parameter.
6372 * target.c (target_insert_breakpoint): Split into this and ...
6373 (forward_target_insert_breakpoint): ... this.
6374 (target_remove_breakpoint): Split into this and ...
6375 (forward_target_remove_breakpoint): ... this.
6376 (debug_to_insert_breakpoint): Add target_ops parameter.
6377 Call forward_target_insert_breakpoint.
6378 (debug_to_remove_breakpoint): Add target_ops parameter.
6379 Call forward_target_remove_breakpoint.
6380 (update_current_target): Do not inherit or default to_insert_breakpoint
6381 and to_remove_breakpoint.
6382 * corelow.c (ignore): Add target_ops parameter.
6383 * exec.c (ignore): Add target_ops parameter.
6384 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
6385 Add target_ops parameter.
6386 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
6387 Add target_ops parameter.
6388 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
6389 Add target_ops parameter.
6390 * record-full.c (record_full_beneath_to_insert_breakpoint)
6391 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
6392 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
6393 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
6394 (record_full_core_remove_breakpoint): Add target_ops parameter.
6396 (record_full_beneath_to_insert_breakpoint_ops)
6397 (record_full_beneath_to_remove_breakpoint_ops)
6398 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
6399 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
6400 tmp_to_remove_breakpoint_ops,
6401 record_full_beneath_to_insert_breakpoint_ops, and
6402 record_full_beneath_to_remove_breakpoint_ops.
6403 * remote-m32r-sdi.c (m32r_insert_breakpoint)
6404 (m32r_remove_breakpoint): Add target_ops parameter.
6405 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
6406 Add target_ops parameter.
6407 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
6408 Add target_ops parameter.
6410 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6411 Markus Metzger <markus.t.metzger@intel.com>
6413 * record-btrace.c: Include frame-unwind.h.
6414 (record_btrace_frame_unwind_stop_reason)
6415 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
6416 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
6418 (init_record_btrace_ops): Install it.
6420 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6422 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
6425 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6427 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
6430 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6432 * frame-unwind.c: Include target.h.
6433 (frame_unwind_try_unwinder): New function with code from ...
6434 (frame_unwind_find_by_frame): ... here. New variable
6435 unwinder_from_target, call also target_get_unwinder)
6436 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
6437 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
6438 * target.h (struct target_ops): New fields to_get_unwinder and
6439 to_get_tailcall_unwinder.
6440 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
6442 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6444 * record-btrace.c (record_btrace_fetch_registers)
6445 (record_btrace_store_registers)
6446 (record_btrace_to_prepare_to_store): New.
6447 (init_record_btrace_ops): Add the above.
6449 2014-01-16 Tom Tromey <tromey@redhat.com>
6451 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
6452 * target.h (struct target_ops) <to_prepare_to_store>: Add
6454 (target_prepare_to_store): Add argument.
6455 * target.c (debug_to_prepare_to_store): Add argument.
6456 (update_current_target): Update.
6457 * remote.c (remote_prepare_to_store): Add 'self' argument.
6458 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
6459 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
6460 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
6461 * record-full.c (record_full_core_prepare_to_store): Add 'self'
6463 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
6464 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
6465 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
6466 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
6467 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
6469 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6471 * btrace.h (replay) <replay>: New.
6472 (btrace_is_replaying): New.
6473 * btrace.c (btrace_clear): Free replay iterator.
6474 (btrace_is_replaying): New.
6475 * record-btrace.c (record_btrace_is_replaying): New.
6476 (record_btrace_info): Print insn number if replaying.
6477 (record_btrace_insn_history): Start at replay position.
6478 (record_btrace_call_history): Start at replay position.
6479 (init_record_btrace_ops): Init to_record_is_replaying.
6481 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6483 * record-btrace.c (record_btrace_insn_history_range): Include
6485 (record_btrace_insn_history_from): Adjust range.
6486 (record_btrace_call_history_range): Include
6488 (record_btrace_call_history_from): Adjust range.
6489 * NEWS: Announce changes.
6491 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6493 * record.h (enum record_print_flag)
6494 <record_print_indent_calls>: New.
6495 * record.c (get_call_history_modifiers): Recognize /c modifier.
6496 (_initialize_record): Document /c modifier.
6497 * record-btrace.c (btrace_call_history): Add btinfo parameter.
6498 Reorder fields. Optionally indent the function name. Update
6500 * NEWS: Announce changes.
6502 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6504 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
6506 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6508 * btrace.c (ftrace_new_function): Start counting at one.
6509 * record-btrace.c (record_btrace_info): Adjust number of calls
6511 * NEWS: Announce it.
6513 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6515 * record-btrace.c (btrace_call_history_insn_range): Print
6516 insn range as [begin, end].
6518 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6520 * btrace.h (struct btrace_func_link): New.
6521 (enum btrace_function_flag): New.
6522 (struct btrace_inst): Rename to ...
6523 (struct btrace_insn): ...this. Update all users.
6524 (struct btrace_func) <ibegin, iend>: Remove.
6525 (struct btrace_func_link): New.
6526 (struct btrace_func): Rename to ...
6527 (struct btrace_function): ...this. Update all users.
6528 (struct btrace_function) <segment, flow, up, insn, insn_offset)
6529 (number, level, flags>: New.
6530 (struct btrace_insn_iterator): Rename to ...
6531 (struct btrace_insn_history): ...this.
6533 (struct btrace_insn_iterator, btrace_call_iterator): New.
6534 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
6535 (struct btrace_target_info) <begin, end, level>
6536 <insn_history, call_history>: New.
6537 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
6538 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
6539 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
6540 (btrace_call_number, btrace_call_begin, btrace_call_end)
6541 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
6542 (btrace_find_function_by_number, btrace_set_insn_history)
6543 (btrace_set_call_history): New.
6544 * btrace.c (btrace_init_insn_iterator)
6545 (btrace_init_func_iterator, compute_itrace): Remove.
6546 (ftrace_print_function_name, ftrace_print_filename)
6547 (ftrace_skip_file): Change
6549 (ftrace_init_func): Remove.
6550 (ftrace_debug): Use new btrace_function fields.
6551 (ftrace_function_switched): Also consider gaining and
6552 losing symbol information).
6553 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
6554 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
6555 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
6557 (ftrace_new_function): Move. Remove debug print.
6558 (ftrace_update_lines, ftrace_update_insns): New.
6559 (ftrace_update_function): Check for call, ret, and jump.
6560 (compute_ftrace): Renamed to ...
6561 (btrace_compute_ftrace): ...this. Rewritten to compute call
6563 (btrace_fetch, btrace_clear): Updated.
6564 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
6565 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
6566 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
6567 (btrace_call_number, btrace_call_begin, btrace_call_end)
6568 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
6569 (btrace_find_function_by_number, btrace_set_insn_history)
6570 (btrace_set_call_history): New.
6571 * record-btrace.c (require_btrace): Use new btrace thread
6573 (record_btrace_info, btrace_insn_history)
6574 (record_btrace_insn_history, record_btrace_insn_history_range):
6575 Use new btrace thread info fields and new iterator.
6576 (btrace_func_history_src_line): Rename to ...
6577 (btrace_call_history_src_line): ...this. Use new btrace
6579 (btrace_func_history): Rename to ...
6580 (btrace_call_history): ...this. Use new btrace thread info
6581 fields and new iterator.
6582 (record_btrace_call_history, record_btrace_call_history_range):
6583 Use new btrace thread info fields and new iterator.
6585 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6587 * frame.h (frame_id_build_unavailable_stack_special): New.
6588 * frame.c (frame_id_build_unavailable_stack_special): New.
6590 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6592 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
6593 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
6594 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
6596 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
6597 (i386_insn_is_jump, i386_jmp_p): New.
6598 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
6599 insn_is_jump to gdbarch.
6600 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
6601 * gdbarch.h: Regenerated.
6602 * gdbarch.c: Regenerated.
6603 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
6604 (default_insn_is_jump): New.
6605 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
6606 (default_insn_is_jump): New.
6608 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6610 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
6612 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
6613 (btrace_read_type) <btrace_read_new>: Change to ...
6614 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
6616 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6618 * common/linux-btrace.c (linux_read_btrace): Free trace from
6621 2014-01-15 Doug Evans <dje@google.com>
6623 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
6626 2014-01-15 Tom Tromey <tromey@redhat.com>
6628 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
6629 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
6630 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
6631 (set_objfile_main_name): New function.
6632 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
6633 language_of_main>: New fields.
6634 (set_objfile_main_name): Declare.
6635 * symtab.c (find_main_name): Loop over objfiles to find the main
6637 (set_main_name): Now static.
6638 (get_main_info): Add comment.
6639 * symtab.h (set_main_name): Don't declare.
6641 2014-01-15 Tom Tromey <tromey@redhat.com>
6643 * symtab.c (main_progspace_key): New global.
6644 (struct main_info): New.
6645 (name_of_main, language_of_main): Remove.
6646 (get_main_info, main_info_cleanup): New function.
6647 (set_main_name, main_name, main_language): Use get_main_info.
6648 (_initialize_symtab): Initialize main_progspace_key.
6650 2014-01-15 Tom Tromey <tromey@redhat.com>
6652 * dbxread.c (process_one_symbol): Update.
6653 * dwarf2read.c (read_partial_die): Update.
6654 * symfile.c (set_initial_language): Call main_language.
6655 * symtab.c (language_of_main): Now static.
6656 (set_main_name): Add 'lang' parameter.
6657 (find_main_name): Update.
6658 (main_language): New function.
6659 (symtab_observer_executable_changed): Update.
6660 * symtab.h (set_main_name): Update.
6661 (language_of_main): Remove.
6662 (main_language): Declare.
6664 2014-01-15 Tom Tromey <tromey@redhat.com>
6666 * symfile.c (init_entry_point_info): Use new "initialized" field.
6668 * objfiles.h (struct entry_point) <initialized>: New field.
6669 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
6670 (struct objfile) <ei>: ...here. Remove.
6671 * objfiles.c (entry_point_address_query): Update.
6673 2014-01-15 Tom Tromey <tromey@redhat.com>
6675 * objfiles.c (entry_point_address_query): Relocate entry point
6677 (objfile_relocate1): Do not relocate entry point address.
6678 * objfiles.h (struct entry_info) <entry_point>: Update comment.
6679 <the_bfd_section_index>: New field.
6680 * symfile.c (init_entry_point_info): Find the entry point's
6683 2014-01-15 Tom Tromey <tromey@redhat.com>
6685 * solib-frv.c (enable_break): Use entry_point_address_query.
6687 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6689 * NEWS: Add note on improved process record-replay on
6690 arm*-linux* targets.
6692 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6694 * arm-tdep.c (enum arm_record_result): New enum.
6695 (arm_record_unsupported_insn): New function.
6696 (arm_record_coproc_data_proc): Removed.
6697 (thumb2_record_ld_st_multiple): New function.
6698 (thumb2_record_ld_st_dual_ex_tbb): New function.
6699 (thumb2_record_data_proc_sreg_mimm): New function.
6700 (thumb2_record_ps_dest_generic): New function.
6701 (thumb2_record_branch_misc_cntrl): New function.
6702 (thumb2_record_str_single_data): New function.
6703 (thumb2_record_ld_mem_hints): New function.
6704 (thumb2_record_ld_word): New function.
6705 (thumb2_record_lmul_lmla_div): New function.
6706 (thumb2_record_decode_insn_handler): New function.
6707 (decode_insn): Add thumb32 instruction handlers.
6709 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6711 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
6712 (struct arm_linux_record_tdep): Declare.
6713 (arm_canonicalize_syscall): New function.
6714 (arm_all_but_pc_registers_record): New function.
6715 (arm_linux_syscall_record): New function.
6716 (arm_linux_init_abi): Add syscall recording constructs.
6717 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
6718 decoding. (arm_record_coproc_data_proc): Update arm syscall
6720 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
6721 <arm_syscall_record>: New field.
6722 * configure.tgt (arm*-*-linux*): Add linux-record.o to
6725 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6727 * arm-tdep.c (thumb_record_misc): Update to use sp as base
6728 register for push instruction recording.
6730 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6732 * arm-tdep.c (thumb_record_misc): Update to correct logical
6733 error while recording ldm, ldmia and pop instructions.
6735 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6737 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
6739 2014-01-15 Pedro Alves <palves@redhat.com>
6741 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
6742 (go32_resume, go32_fetch_registers, store_register)
6743 (go32_store_registers, go32_prepare_to_store)
6744 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
6745 (go32_create_inferior, go32_can_run, go32_terminal_init)
6746 (go32_terminal_inferior, go32_terminal_ours): Delete forward
6749 2014-01-15 Tom Tromey <tromey@redhat.com>
6751 * target.h (async_callback_ftype): New typedef.
6752 (struct target_ops) <to_async>: Use it.
6754 2014-01-15 Joel Brobecker <brobecker@adacore.com>
6756 * python/py-value.c (get_field_type): Remove unnecessary curly
6757 braces for single-statement if block.
6759 2014-01-15 Joel Brobecker <brobecker@adacore.com>
6761 * python/py-type.c (convert_field): Add missing empty line
6764 2014-01-14 Doug Evans <dje@google.com>
6766 * symfile.h (expand_symtabs_matching): Renamed from
6767 expand_partial_symbol_names. Update prototype.
6768 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
6769 * symfile.c (expand_symtabs_matching): Renamed from
6770 expand_partial_symbol_names. New args file_matcher, kind.
6771 Rename arg fun to symbol_matcher.
6772 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
6773 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
6774 ada_expand_partial_symbol_name.
6775 (ada_make_symbol_completion_list): Update to call
6776 expand_symtabs_matching.
6777 (ada_add_global_exceptions): Call expand_symtabs_matching.
6778 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
6779 call map_symbol_filenames.
6780 * symtab.c (sources_info): Update to call map_symbol_filenames.
6781 (search_symbols): Call expand_symtabs_matching.
6782 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
6783 (default_make_symbol_completion_list_break_on): Update to call
6784 expand_symtabs_matching.
6785 (make_source_files_completion_list): Update to call
6786 map_symbol_filenames.
6788 2014-01-14 Doug Evans <dje@google.com>
6790 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
6791 (expand_symtabs_symbol_matcher_ftype): New typedef.
6792 (quick_symbol_functions.expand_symtabs_matching): Update to use.
6793 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
6794 * symfile.c (expand_partial_symbol_names): Update to use
6795 expand_symtabs_symbol_matcher_ftype.
6796 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
6797 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
6798 Arg name_matcher renamed to symbol_matcher.
6799 * psymtab.c (recursively_search_psymtabs): Update to use
6800 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
6802 (expand_symtabs_matching_via_partial): Update to use
6803 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
6804 Arg name_matcher renamed to symbol_matcher.
6806 2014-01-14 Doug Evans <dje@google.com>
6808 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
6809 (map_partial_symbol_filenames): Ditto.
6810 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
6811 (map_partial_symbol_filenames): Ditto.
6812 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
6813 (map_partial_symbol_filenames): Ditto.
6814 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
6815 (map_partial_symbol_filenames): Ditto.
6816 * symtab.c: Delete #include "psymtab.h".
6818 2014-01-14 Pedro Alves <palves@redhat.com>
6819 Tom Tromey <tromey@redhat.com>
6821 * infrun.c (use_displaced_stepping): Use find_record_target
6822 instead of RECORD_IS_USED.
6823 (adjust_pc_after_break): Use record_full_is_used instead of
6825 * record-btrace.c (record_btrace_open): Call record_preopen
6826 instead of checking RECORD_IS_USED.
6827 * record-full.c (record_full_shortname)
6828 (record_full_core_shortname): New globals.
6829 (record_full_is_used): New function.
6830 (find_full_open): Call record_preopen instead of checking
6832 (init_record_full_ops): Set the target's shortname to
6833 record_full_shortname.
6834 (init_record_full_core_ops): Set the target's shortname to
6835 record_full_core_shortname.
6836 * record-full.h (record_full_is_used): Declare.
6837 * record.c (find_record_target): Make extern.
6838 (record_preopen): New function.
6839 * record.h (RECORD_IS_USED): Delete macro.
6840 (find_record_target, record_preopen): Declare functions.
6842 2014-01-14 Yao Qi <yao@codesourcery.com>
6844 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
6845 'len''s type to ULONGEST.
6846 (core_xfer_shared_libraries_aix): Likewise.
6847 * gdbarch.c, gdbarch.h: Regenerated.
6848 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
6849 Change type of 'len' to ULONGEST.
6850 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
6851 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
6853 2014-01-14 Yao Qi <yao@codesourcery.com>
6855 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
6856 type of 'len' to ULONGEST.
6857 (linux_xfer_osdata_processgroups): Likewise.
6858 (linux_xfer_osdata_threads): Likewise.
6859 (linux_xfer_osdata_fds): Likewise.
6860 (linux_xfer_osdata_isockets): Likewise.
6861 (linux_xfer_osdata_shm): Likewise.
6862 (linux_xfer_osdata_sem): Likewise.
6863 (linux_xfer_osdata_msg): Likewise.
6864 (linux_common_xfer_osdata): Likewise.
6865 (struct osdata_type) <getter>: Likewise.
6866 * common/linux-osdata.h (linux_common_xfer_osdata): Update
6869 2014-01-14 Yao Qi <yao@codesourcery.com>
6871 * target.h (target_xfer_partial_ftype): Update.
6872 (struct target_ops) <to_xfer_partial>: Change 'len' type to
6874 * aix-thread.c (aix_thread_xfer_partial): Change type of
6875 argument 'len' to ULONGEST.
6876 * auxv.c (procfs_xfer_auxv): Likewise.
6877 (ld_so_xfer_auxv): Likewise.
6878 (memory_xfer_auxv): Likewise.
6879 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6880 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6881 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
6882 * corelow.c (core_xfer_partial): Likewise.
6883 * ctf.c (ctf_xfer_partial): Likewise.
6884 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
6886 (darwin_read_dyld_info): Likewise.
6887 (darwin_xfer_partial): Likewise.
6888 * exec.c (section_table_xfer_memory_partial): Likewise.
6889 (exec_xfer_partial): Likewise.
6890 * exec.h (section_table_xfer_memory_partial): Update
6892 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
6893 instead of plongest.
6894 (gnu_xfer_partial): Likewise.
6895 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
6896 (ia64_hpux_xfer_solib_got): Likewise.
6897 (ia64_hpux_xfer_partial): Likewise.
6898 * ia64-linux-nat.c (ia64_linux_xfer_partial):
6899 * inf-ptrace.c (inf_ptrace_xfer_partial):
6900 * inf-ttrace.c (inf_ttrace_xfer_partial):
6901 * linux-nat.c (linux_xfer_siginfo): Likewise.
6902 (linux_nat_xfer_partial): Likewise.
6903 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
6904 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
6905 * monitor.c (monitor_xfer_memory): Likewise.
6906 (monitor_xfer_partial): Likewise.
6907 * procfs.c (procfs_xfer_partial): Likewise.
6908 * record-full.c (record_full_xfer_partial): Likewise.
6909 (record_full_core_xfer_partial): Likewise.
6910 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
6911 instead of plongest.
6912 (gdbsim_xfer_partial): Likewise.
6913 * remote.c (remote_xfer_partial): Likewise.
6914 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
6915 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
6917 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6918 (rs6000_xfer_shared_libraries): Likewise.
6919 * sol-thread.c (sol_thread_xfer_partial): Likewise.
6920 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6921 (sparc_xfer_partial): Likewise.
6922 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6923 (spu_xfer_partial): Likewise.
6924 * spu-multiarch.c (spu_xfer_partial): Likewise.
6925 * target.c (target_read_live_memory): Likewise.
6926 (memory_xfer_live_readonly_partial): Likewise.
6927 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
6928 (target_xfer_partial, default_xfer_partial): Likewise.
6929 (current_xfer_partial): Likewise.
6930 * tracepoint.c (tfile_xfer_partial): Likewise.
6931 * windows-nat.c (windows_xfer_memory): Likewise. Call
6932 pulongest instead of plongest.
6933 (windows_xfer_partial): Likewise.
6934 (windows_xfer_shared_libraries): Likewise.
6936 2014-01-14 Yao Qi <yao@codesourcery.com>
6938 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
6939 target_xfer_partial_ftype.
6941 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
6945 * valops.c (value_struct_elt_bitpos): New function
6946 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
6947 object to 'None' if the field name is an empty string ("").
6948 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
6949 attribute to look for a field when 'name' is 'None'.
6950 (get_field_type): New function
6952 2014-01-13 Doug Evans <dje@google.com>
6955 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
6956 (try_open_dwop_file): Ditto.
6957 * gdb_bfd.c: #include "vec.h".
6958 (bfdp): New typedef.
6959 (struct gdb_bfd_data): New member included_bfds.
6960 (gdb_bfd_unref): Unref all included bfds.
6961 (gdb_bfd_record_inclusion): New function.
6962 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
6964 2014-01-13 Tom Tromey <tromey@redhat.com>
6966 * gdbcore.h (deprecated_core_resize_section_table): Remove.
6968 2014-01-13 Tom Tromey <tromey@redhat.com>
6970 * defs.h (use_windows): Remove.
6971 * gdb.c (main): Update.
6972 * main.c (captured_main, gdb_main): Update.
6973 * main.h (struct captured_main_args) <use_windows>: Remove.
6974 * top.c (use_windows): Remove.
6976 2014-01-13 Tom Tromey <tromey@redhat.com>
6978 * defs.h (deprecated_flush_hook): Remove.
6980 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6983 * linux-thread-db.c (try_thread_db_load): Add parameter
6984 check_auto_load_safe. Move here the file_is_auto_load_safe call.
6985 (try_thread_db_load_from_pdir_1): Move it there from here.
6986 (try_thread_db_load_from_sdir): Update caller.
6987 (try_thread_db_load_from_dir): Move it there from here.
6989 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
6991 * regformats/regdat.sh: Always rewrite the register file.
6993 2014-01-13 Pedro Alves <palves@redhat.com>
6995 * Makefile.in (CHECK_HEADERS): New variable.
6996 (check-headers:): New rule.
6998 2014-01-13 Tom Tromey <tromey@redhat.com>
7000 * cli/cli-setshow.c (do_set_command): Update.
7001 * defs.h (deprecated_set_hook): Remove.
7002 * top.c (deprecated_set_hook): Remove.
7004 2014-01-13 Pedro Alves <palves@redhat.com>
7006 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
7007 the tracepoint if the PC is a pseudo-register.
7009 2014-01-13 Tom Tromey <tromey@redhat.com>
7011 * defs.h (XCALLOC): Remove.
7012 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
7013 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
7014 * dwarf2loc.c (allocate_piece_closure): Likewise.
7015 * elfread.c (elf_symfile_segments): Likewise.
7016 (elf_symfile_segments): Likewise.
7017 * gdbtypes.c (copy_type_recursive): Likewise.
7018 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
7019 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
7020 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
7022 * mt-tdep.c (mt_gdbarch_init): Likewise.
7023 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
7025 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
7026 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
7027 * registry.c (registry_alloc_data): Likewise.
7028 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
7029 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7030 * serial.c (serial_fdopen_ops): Likewise.
7031 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
7033 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
7034 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
7037 2014-01-13 Tom Tromey <tromey@redhat.com>
7039 * defs.h (XMALLOC): Remove.
7040 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
7041 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
7042 * cli-out.c (struct ui_out *): Likewise.
7043 * cli/cli-dump.c (add_dump_command): Likewise.
7044 (add_dump_command): Likewise.
7045 * complaints.c (get_complaints): Likewise.
7046 (find_complaint): Likewise.
7047 * dwarf2-frame.c (execute_cfa_program): Likewise.
7048 * dwarf2read.c (abbrev_table_read_table): Likewise.
7049 * gdbarch.sh: Likewise.
7050 * gdbarch.c: Rebuild.
7051 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
7052 * interps.c (interp_new): Likewise.
7053 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
7054 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7055 * mi/mi-console.c (mi_console_file_new): Likewise.
7056 * mi/mi-interp.c (mi_interpreter_init): Likewise.
7057 * mi/mi-out.c (mi_out_new): Likewise.
7058 * mi/mi-parse.c (mi_parse): Likewise.
7059 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
7060 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7061 * observer.c (xalloc_observer_list_node): Likewise.
7062 * regcache.c (regcache_xmalloc_1): Likewise.
7063 * reggroups.c (reggroup_new): Likewise.
7064 (_initialize_reggroup): Likewise.
7065 * registry.c (register_data_with_cleanup): Likewise.
7066 * remote.c (remote_notif_stop_alloc_reply): Likewise.
7067 * ser-base.c (serial_ttystate): Likewise.
7068 * ser-mingw.c (make_pipe_state): Likewise.
7069 * ser-pipe.c (pipe_open): Likewise.
7070 * serial.c (serial_open): Likewise.
7071 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
7072 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
7073 (tui_alloc_win_info): Likewise.
7074 (tui_add_content_elements): Likewise.
7075 * tui/tui-file.c (tui_file_new): Likewise.
7076 * tui/tui-out.c (tui_out_new): Likewise.
7077 * ui-file.c (mem_file_new): Likewise.
7078 * ui-out.c (push_level): Likewise.
7079 (make_cleanup_ui_out_end): Likewise.
7080 (append_header_to_list): Likewise.
7081 (ui_out_new): Likewise.
7082 * user-regs.c (user_reg_add_builtin): Likewise.
7084 2014-01-13 Tom Tromey <tromey@redhat.com>
7086 * defs.h (XZALLOC): Remove.
7087 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
7088 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
7089 (get_ada_tasks_inferior_data): Likewise.
7090 * auto-load.c (get_auto_load_pspace_data): Likewise.
7091 * auxv.c (get_auxv_inferior_data): Likewise.
7092 * bfd-target.c (target_bfd_reopen): Likewise.
7093 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
7094 (deprecated_insert_raw_breakpoint): Likewise.
7095 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
7096 * corelow.c (core_open): Likewise.
7097 * darwin-nat.c (darwin_check_new_threads): Likewise.
7098 (darwin_attach_pid): Likewise.
7099 * dummy-frame.c (dummy_frame_push): Likewise.
7100 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
7101 * dwarf2loc.c (allocate_piece_closure): Likewise.
7102 * elfread.c (elf_symfile_segments): Likewise.
7103 * eval.c (ptrmath_type_p): Likewise.
7104 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
7105 * gdbtypes.c (alloc_type_arch): Likewise.
7106 (alloc_type_instance): Likewise.
7107 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
7108 * inf-child.c (inf_child_can_use_agent): Likewise.
7109 * inflow.c (get_inflow_inferior_data): Likewise.
7110 * infrun.c (save_infcall_suspend_state): Likewise.
7111 * jit.c (jit_reader_load): Likewise.
7112 (get_jit_objfile_data): Likewise.
7113 (get_jit_program_space_data): Likewise.
7114 (jit_object_open_impl): Likewise.
7115 (jit_symtab_open_impl): Likewise.
7116 (jit_block_open_impl): Likewise.
7117 (jit_frame_sniffer): Likewise.
7118 * linux-fork.c (add_fork): Likewise.
7119 * maint.c (make_command_stats_cleanup): Likewise.
7120 * objfiles.c (get_objfile_pspace_data): Likewise.
7121 * opencl-lang.c (struct lval_closure): Likewise.
7122 * osdata.c (osdata_start_osdata): Likewise.
7123 * progspace.c (new_address_space): Likewise.
7124 (add_program_space): Likewise.
7125 * remote-sim.c (get_sim_inferior_data): Likewise.
7126 * sh-tdep.c (sh_gdbarch_init): Likewise.
7127 * skip.c (Ignore): Likewise.
7128 (skip_delete_command): Likewise.
7129 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
7130 (library_list_start_library): Likewise.
7131 (solib_aix_current_sos): Likewise.
7132 * solib-darwin.c (get_darwin_info): Likewise.
7133 (darwin_current_sos): Likewise.
7134 * solib-dsbt.c (get_dsbt_info): Likewise.
7135 * solib-ia64-hpux.c (new_so_list): Likewise.
7136 (ia64_hpux_get_solib_linkage_addr): Likewise.
7137 * solib-spu.c (append_ocl_sos): Likewise.
7138 (spu_current_sos): Likewise.
7139 * solib-svr4.c (get_svr4_info): Likewise.
7140 (svr4_keep_data_in_core): Likewise.
7141 (library_list_start_library): Likewise.
7142 (svr4_default_sos): Likewise.
7143 (svr4_read_so_list): Likewise.
7144 * solib-target.c (library_list_start_library): Likewise.
7145 (solib_target_current_sos): Likewise.
7146 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7147 * symfile-debug.c (install_symfile_debug_logging): Likewise.
7148 * symfile.c (default_symfile_segments): Likewise.
7149 * target-descriptions.c (tdesc_data_init): Likewise.
7150 (tdesc_create_reg): Likewise.
7151 (struct tdesc_type *): Likewise.
7152 (tdesc_create_vector): Likewise.
7153 (tdesc_set_struct_size): Likewise.
7154 (struct tdesc_type *): Likewise.
7155 (tdesc_free_feature): Likewise.
7156 (tdesc_create_feature): Likewise.
7157 * windows-nat.c (windows_add_thread): Likewise.
7158 (windows_make_so): Likewise.
7159 * xml-support.c (gdb_xml_body_text): Likewise.
7160 (gdb_xml_create_parser_and_cleanup): Likewise.
7161 (xml_process_xincludes): Likewise.
7162 * xml-syscall.c (allocate_syscalls_info): Likewise.
7163 (syscall_create_syscall_desc): Likewise.
7165 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
7167 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
7168 function, with code from i386_stap_parse_special_token.
7169 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7170 (i386_stap_parse_special_token): Move code to the two functions
7173 2014-01-09 Pedro Alves <palves@redhat.com>
7174 Hui Zhu <hui@codesourcery.com>
7177 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
7178 bp_err_string. Don't mark the location shlib_disabled if the
7179 error thrown wasn't a generic or memory error. Catch errors
7180 thrown while inserting breakpoints in overlayed code. Output
7181 error message of software breakpoints.
7182 * remote.c (remote_insert_breakpoint): If this breakpoint has
7183 target-side commands but this stub doesn't support Z0 packets,
7184 throw NOT_SUPPORTED_ERROR error.
7185 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
7186 * target.h (target_insert_breakpoint): Extend comment.
7187 (target_insert_hw_breakpoint): Add comment.
7189 2014-01-08 Pedro Alves <palves@redhat.com>
7191 * remote.c (remote_add_thread): Add threads silently if starting
7193 (remote_notice_new_inferior): If in all-stop, and starting up,
7194 don't call notice_new_inferior.
7195 (get_current_thread): New function, factored out from ...
7196 (add_current_inferior_and_thread): ... this. Adjust.
7197 (remote_start_remote) <all-stop>: Fetch the thread list. If we
7198 found any thread, then select the remote's current thread as GDB's
7201 2014-01-08 Joel Brobecker <brobecker@adacore.com>
7203 * NEWS: Create a new section for the next release branch.
7204 Rename the section of the current branch, now that it has
7207 2014-01-08 Joel Brobecker <brobecker@adacore.com>
7209 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
7210 * version.in: Bump version to 7.7.50.DATE-cvs.
7212 2014-01-08 Yao Qi <yao@codesourcery.com>
7214 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
7215 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
7216 (spu_xfer_partial): Cast 'buf' to 'const char *'.
7218 2014-01-08 Yao Qi <yao@codesourcery.com>
7220 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
7221 return value of bfd_get_filename to symbol_file_add_from_bfd.
7223 2014-01-08 Pierre Muller <muller@sourceware.org>
7226 * coff-pe-read.c (struct read_pe_section_data): Add index field.
7227 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
7228 to prim_record_mininal_symbol_and_info.
7229 (add_pe_forwarded_sym): Use known section number of forwarded symbol
7230 in call to prim_record_minimal_symbol_and_info.
7231 (read_pe_exported_syms): Set index field of section_data.
7233 2014-01-07 Andrew Pinski <apinski@cavium.com>
7235 * features/aarch64-core.xml (cpsr): Change to be 64bit.
7236 * features/aarch64.c: Regenerate.
7238 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
7240 * target.c (return_null): Define.
7241 (update_current_target): Use it instead of return_zero for
7242 functions that return a pointer.
7244 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
7246 * source.c (add_path): Fix check for duplicated paths in the previously
7249 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
7251 * ada-lang.c: Remove duplicated include statements.
7252 * alphabsd-nat.c: Ditto.
7253 * amd64-darwin-tdep.c: Ditto.
7254 * amd64fbsd-nat.c: Ditto.
7255 * auto-load.c: Ditto.
7257 * breakpoint.c: Ditto.
7259 * fork-child.c: Ditto.
7260 * gdb_usleep.c: Ditto.
7261 * i386-darwin-tdep.c: Ditto.
7262 * i386fbsd-nat.c: Ditto.
7264 * inferior.c: Ditto.
7266 * linux-nat.c: Ditto.
7267 * linux-tdep.c: Ditto.
7268 * m68kbsd-nat.c: Ditto.
7269 * m68klinux-nat.c: Ditto.
7270 * microblaze-tdep.c: Ditto.
7271 * mips-linux-tdep.c: Ditto.
7272 * mn10300-tdep.c: Ditto.
7273 * nto-tdep.c: Ditto.
7274 * opencl-lang.c: Ditto.
7276 * printcmd.c: Ditto.
7277 * regcache.c: Ditto.
7278 * remote-m32r-sdi.c: Ditto.
7282 * tilegx-linux-nat.c: Ditto.
7283 * tilegx-tdep.c: Ditto.
7284 * tracepoint.c: Ditto.
7286 * vaxbsd-nat.c: Ditto.
7287 * windows-nat.c: Ditto.
7288 * xtensa-tdep.c: Ditto.
7290 2014-01-07 Yao Qi <yao@codesourcery.com>
7292 * spu-linux-nat.c (_initialize_spu_nat): Declare.
7294 2014-01-07 Yao Qi <yao@codesourcery.com>
7295 Joel Brobecker <brobecker@adacore.com>
7297 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
7298 (pdc_write_regs): Likewise.
7299 (fetch_regs_kernel_thread): Likewise.
7300 (store_regs_kernel_thread): Likewise.
7302 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7304 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
7305 tagged type objects to their actual type.
7307 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7309 * ada-valprint.c (print_field_values): Add "language" parameter.
7310 Update calls to print_field_values and print_variant_part.
7311 Pass new parameter "language" in call to val_print instead
7312 of "current_language". Replace call to ada_val_print by call
7314 (print_variant_part): Add "language" parameter.
7315 (ada_val_print_struct_union): Update call to print_field_values.
7317 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7319 * ada-valprint.c (ui_memcpy): Delete.
7320 (ada_print_floating): Update documentation. Add empty line
7321 between between function documentation and implementation.
7322 Delete variable "buffer". Use ui_file_xstrdup in place of
7323 ui_file_put. Minor adjustments following this change.
7325 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7327 * ada-valprint.c (ada_val_print_string): New function,
7328 extracted from ada_val_print_array.
7329 (ada_val_print_array): Replace extracted code by call
7330 to ada_val_print_string followed by a return. Move
7331 "else" branch to the function's top block.
7333 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7335 * ada-valprint.c (ada_val_print_array): Move implementation
7336 down. Rename parameter "offset" and "val" into "offset_aligned"
7337 and "original_value" respectively. Add parameter "offset".
7339 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7341 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
7342 re-organizing the code. Change the "???" message printed
7343 when target type is a TYPE_CODE_UNDEF into
7344 "<ref to undefined type>".
7346 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7348 * ada-valprint.c (print_record): Delete, implementation inlined...
7349 (ada_val_print_struct_union): ... here. Remove call to
7350 ada_check_typedef in inlined implementation.
7352 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7354 * ada-valprint.c (ada_val_print_gnat_array): New function,
7355 extracted from ada_val_print_1;
7356 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
7357 (ada_val_print_flt, ada_val_print_struct_union)
7358 (ada_val_print_ref): Likewise.
7359 (ada_val_print_1): Delete variables i and elttype.
7360 Replace extracted-out code by call to corresponding
7363 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7365 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
7367 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7369 * ada-valprint.c (ada_val_print_1): Replace calls to
7370 ada_val_print_1 by calls to val_print.
7372 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7374 * ada-valprint.c (ada_val_print_1): Add parameter "language".
7375 Update calls to self accordingly. Replace calls to c_val_print
7376 by calls to val_print.
7378 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7380 * ada-valprint.c (print_record): Delete declaration.
7381 (adjust_type_signedness, ada_val_print_1): Likewise.
7382 (ada_val_print): Move function implementation down.
7383 (print_variant_part, print_field_values, print_record):
7384 Move function implementation up.
7386 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7388 * python/py-type.c (typy_get_name): New function.
7389 (type_object_getset): Add entry for attribute "name".
7390 * NEWS: Add entry mentioning this new attribute.
7392 2014-01-07 Yao Qi <yao@codesourcery.com>
7394 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
7397 2014-01-07 Yao Qi <yao@codesourcery.com>
7399 * gnu-nat.c (info_port_rights): Add qualifier const to
7402 2014-01-07 Yao Qi <yao@codesourcery.com>
7404 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
7406 2014-01-07 Yao Qi <yao@codesourcery.com>
7408 * gnu-nat.c (make_inf) Update declaration.
7409 (make_inf): Make it static.
7410 (inf_set_traced): Likewise.
7411 (inf_port_to_thread, inf_task_died_status): Likewise.
7413 2014-01-07 Yao Qi <yao@codesourcery.com>
7415 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
7417 2014-01-07 Yao Qi <yao@codesourcery.com>
7419 * gnu-nat.c (_initialize_gnu_nat): Declare.
7421 2014-01-07 Yao Qi <yao@codesourcery.com>
7423 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
7425 (struct gdbarch_info) <byte_order>: Change type to
7427 <byte_order_for_code>: Likewise.
7428 * gdbarch.c, gdbarch.h: Regenerated.
7430 2014-01-06 Sasha Smundak <asmundak@google.com>
7432 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
7434 2014-01-06 Tom Tromey <tromey@redhat.com>
7436 * doublest.c (convert_doublest_to_floatformat): Use const, not
7438 * somread.c (som_symtab_read): Likewise.
7440 2014-01-07 Hui Zhu <hui@codesourcery.com>
7442 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
7443 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
7444 (gdb_bfd_fopen): Ditto.
7445 (gdb_bfd_openr): Ditto.
7446 (gdb_bfd_openw): Ditto.
7447 (gdb_bfd_openr_iovec): Ditto.
7448 (gdb_bfd_fdopenr): Ditto.
7449 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
7450 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
7452 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
7454 * symfile-mem.c (symbol_file_add_from_memory): Removed
7455 gdb_bfd_stash_filename.
7457 2014-01-03 Doug Evans <dje@google.com>
7459 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
7462 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7464 Update year range in copyright notice of all files.
7466 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7468 * top.c (print_gdb_version): Set copyright year to 2014.
7470 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7472 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
7474 For older changes see ChangeLog-2013.
7480 version-control: never