1 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
3 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8 Remove unused CORE_ADDR argument. Update all callers.
10 2014-04-29 Pedro Alves <palves@redhat.com>
12 * remote.c (struct packet_config) <detect>: Extend comment.
13 (add_packet_config_cmd): Don't set the config's detect or support
15 (init_all_packet_configs): Also initialize the config's 'detect'
17 (reset_all_packet_configs_support): New function.
18 (remote_open_1): Call reset_all_packet_configs_support instead of
19 init_all_packet_configs.
20 (_initialize_remote): Initialize all packet configs. Assert that
21 all packets have an associated command, except a few known
24 2014-04-28 Joel Brobecker <brobecker@adacore.com>
26 * dwarf2read.c (read_subrange_type): Handle dynamic
27 DW_AT_lower_bound attributes.
29 2014-04-28 Joel Brobecker <brobecker@adacore.com>
31 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
32 dynamic bounds before computing its upper bound.
33 (ada_discrete_type_low_bound): Same as above with the lower bound.
35 2014-04-28 Joel Brobecker <brobecker@adacore.com>
37 * dwarf2read.c (is_dynamic_type): Return true for dynamic
38 range types. Adjust the array handling implementation to
39 take advantage of this change.
40 (resolve_dynamic_range): New function, mostly extracted from
41 resolve_dynamic_bounds.
42 (resolve_dynamic_array): New function, mostly extracted from
43 resolve_dynamic_bounds.
44 (resolve_dynamic_bounds): Delete.
45 (resolve_dynamic_type): Reimplement. Add handling of
46 TYPE_CODE_RANGE types.
48 2014-04-28 Joel Brobecker <brobecker@adacore.com>
50 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
51 handling of parallel ___XA types.
53 2014-04-28 Joel Brobecker <brobecker@adacore.com>
55 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
56 unnecessary second call to static_unwrap_type.
58 2014-04-27 Hui Zhu <hui@codesourcery.com>
60 * stack.c (print_frame_info): Call do_gdb_disassembly with
61 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
63 2014-04-26 Doug Evans <xdje42@gmail.com>
65 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
67 2014-04-25 Pedro Alves <palves@redhat.com>
70 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
71 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
72 and newline from built string.
73 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
74 (linux_ptrace_attach_fail_reason): ... this.
75 * linux-nat.c (linux_nat_attach): Adjust to use
76 linux_ptrace_attach_fail_reason.
78 2014-04-25 Pedro Alves <palves@redhat.com>
80 * remote.c (struct remote_state): Remove multi_process_aware,
81 non_stop_aware, cond_tracepoints, cond_breakpoints,
82 breakpoint_commands, fast_tracepoints, static_tracepoints,
83 install_in_trace, disconnected_tracing,
84 enable_disable_tracepoints, string_tracing, and
85 augmented_libraries_svr4_read fields.
86 (remote_multi_process_p): Move further below in the file.
87 (struct packet_config): Add comments.
88 (update_packet_config): Delete function.
89 (show_packet_config_cmd): Use packet_config_support.
90 (add_packet_config_cmd): Use NULL as set callback.
91 (packet_ok): "set remote foo-packet"-style commands no longer
92 change config->supported -- adjust.
93 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
94 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
95 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
96 (PACKET_QNonStop, PACKET_multiprocess_feature)
97 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
98 (PACKET_DisconnectedTracing_feature)
99 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
100 (set_remote_protocol_packet_cmd): Delete function.
101 (packet_config_support, packet_support): New functions.
102 (set_remote_protocol_Z_packet_cmd): Don't call
103 update_packet_config.
104 (remote_query_attached, remote_pass_signals)
105 (remote_program_signals, remote_threads_info)
106 (remote_threads_extra_info, remote_start_remote): Use
108 (remote_start_remote): Use packet_config_support and
110 (init_all_packet_configs): Set all packets to unknown support,
111 instead of calling update_packet_config.
112 (remote_check_symbols): Use packet_support.
113 (remote_supported_packet): Unconditionally set the packet config's
115 (remote_multi_process_feature, remote_non_stop_feature)
116 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
117 (remote_breakpoint_commands_feature)
118 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
119 (remote_install_in_trace_feature)
120 (remote_disconnected_tracing_feature)
121 (remote_enable_disable_tracepoint_feature)
122 (remote_string_tracing_feature)
123 (remote_augmented_libraries_svr4_read_feature): Delete functions.
124 (remote_protocol_features): Adjust to use remote_supported_packet
125 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
126 "ConditionalTracepoints", "ConditionalBreakpoints",
127 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
128 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
129 "EnableDisableTracepoints", and "tracenz".
130 (remote_query_supported): Use packet_support.
131 (remote_open_1): Adjust.
132 (extended_remote_attach_1): Use packet_support. Switch on the
133 result of packet_ok instead of checking whether the packet ended
135 (remote_vcont_resume): Use packet_support.
136 (remote_resume, remote_stop_ns, fetch_register_using_p)
137 (remote_prepare_to_store, store_register_using_P)
138 (check_binary_download, remote_write_bytes): Use packet_support.
139 (remote_vkill): Use packet_support. Switch on the result of
140 packet_ok instead of checking whether the packet ended up
142 (extended_remote_supports_disable_randomization): Use
144 (extended_remote_run): Switch on the result of packet_ok instead
145 of checking whether the packet ended up disabled.
146 (remote_insert_breakpoint, remote_remove_breakpoint)
147 (remote_insert_watchpoint, remote_remove_watchpoint)
148 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
150 (remote_search_memory): Use packet_config_support.
151 (remote_get_thread_local_address, remote_get_tib_address)
152 (remote_hostio_send_command, remote_can_execute_reverse): Use
154 (remote_supports_cond_tracepoints)
155 (remote_supports_cond_breakpoints)
156 (remote_supports_fast_tracepoints)
157 (remote_supports_static_tracepoints)
158 (remote_supports_install_in_trace)
159 (remote_supports_enable_disable_tracepoint)
160 (remote_supports_string_tracing)
161 (remote_can_run_breakpoint_commands): Rewrite, checking whether
162 the packet config says the feature is enabled or disabled.
163 (remote_download_tracepoint, remote_trace_set_readonly_regions)
164 (remote_get_trace_status): Use packet_support.
165 (remote_set_disconnected_tracing): Adjust to check whether the
166 feature is enabled with packet_support.
167 (remote_set_trace_buffer_size, remote_use_agent)
168 (remote_can_use_agent, remote_supports_btrace): Use
170 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
171 Use packet_config_support.
172 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
173 the packet config says the feature is enabled or disabled.
174 (set_range_stepping): Use packet_support.
176 2014-04-25 Tom Tromey <tromey@redhat.com>
178 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
181 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
183 * NEWS: Mention support for C99 variable length arrays.
185 2014-04-24 Joel Brobecker <brobecker@adacore.com>
187 * ada-lang.c (standard_exc): Expand introductory comment.
189 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
190 Walfred Tedeschi <walfred.tedeschi@intel.com>
192 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
194 (amd64_linux_read_description): Add code to handle AVX512 xstate
195 mask and return respective tdesc.
196 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
197 and features/i386/x32-avx512-linux.c.
198 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
199 (amd64_linux_core_read_description): Add code to handle AVX512
200 xstate mask and return respective tdesc.
201 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
202 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
204 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
205 (tdesc_amd64_avx512_linux): New prototype.
206 (tdesc_x32_avx512_linux): Likewise.
207 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
208 features/i386/x32-avx512.c.
209 (amd64_ymm_avx512_names): New register names for pseudo
211 (amd64_ymmh_avx512_names): New register names for raw registers
213 (amd64_k_names): New register names for K registers.
214 (amd64_zmmh_names): New register names for ZMM raw registers.
215 (amd64_zmm_names): New registers names for ZMM pseudo registers.
216 (amd64_xmm_avx512_names): New register names for XMM16-31
218 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
220 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
221 if feature is present.
222 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
223 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
224 (AMD64_NUM_REGS): Adjust to new number of registers.
225 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
226 registers supplied via XSTATE by AVX512 registers.
227 (i386_linux_read_description): Add case for AVX512.
228 * i386-linux-tdep.c: Include i386-avx512-linux.c.
229 (i386_linux_gregset_reg_offset): Add AVX512 registers.
230 (i386_linux_core_read_description): Add case for AVX512.
231 (i386_linux_init_abi): Install supported register note section
233 (_initialize_i386_linux_tdep): Add call to tdesc init function for
235 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
236 registers to be number of zmm7h + 1.
237 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
238 * i386-tdep.c: Include features/i386/i386-avx512.c.
239 (i386_zmm_names): Add ZMM pseudo register names array.
240 (i386_zmmh_names): Add ZMM raw register names array.
241 (i386_k_names): Add K raw register names array.
242 (num_lower_zmm_regs): Add constant for the number of lower ZMM
243 registers. AVX512 has 16 more ZMM registers than there are YMM
245 (i386_zmmh_regnum_p): Add function to look up register number of
247 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
248 (i386_k_regnum_p): Likewise for K raw registers.
249 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
250 registers added by AVX512.
251 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
252 registers added by AVX512.
253 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
255 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
256 (i386_pseudo_register_name): Add ZMM pseudo registers.
257 (i386_zmm_type): Construct and return vector registers type for ZMM
259 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
260 ZMM0-31 pseudo registers and K registers.
261 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
262 and YMM16-31 registers from register cache.
263 (i386_pseudo_register_write): Add code to write K, ZMM and
265 (i386_register_reggroup_p): Add code to include/exclude AVX512
266 registers in/from respective register groups.
267 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
268 registers if feature is present in xcr0.
269 (i386_gdbarch_init): Add code to initialize AVX512 feature
270 variables in tdep structure, wire in pseudo registers and call
271 initialize_tdesc_i386_avx512.
272 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
274 (i386_regnum): Add AVX512 registers.
275 (I386_SSE_NUM_REGS): New define for number of SSE registers.
276 (I386_AVX_NUM_REGS): Likewise for AVX registers.
277 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
278 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
280 (i386_xmm_avx512_regnum_p): New prototype for register look up.
281 (i386_ymm_avx512_regnum_p): Likewise.
282 (i386_k_regnum_p): Likewise.
283 (i386_zmm_regnum_p): Likewise.
284 (i386_zmmh_regnum_p): Likewise.
285 * i387-tdep.c : Update year in copyright notice.
286 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
288 (XSAVE_YMM_AVX512_ADDR): New macro.
289 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
291 (XSAVE_XMM_AVX512_ADDR): New macro.
292 (xsave_avx512_k_offset): New table for K register offsets in
294 (XSAVE_AVX512_K_ADDR): New macro.
295 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
297 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
298 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
300 (i387_collect_xsave): Add code to collect AVX512 registers from
302 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
303 of XMM16-31 registers.
304 (I387_NUM_K_REGS): New define for number of K registers.
305 (I387_K0_REGNUM): New define for K0 register number.
306 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
307 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
308 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
310 (I387_YMM16H_REGNUM): New define for YMM16H register number.
311 (I387_XMM16_REGNUM): New define for XMM16 register number.
312 (I387_YMM0_REGNUM): New define for YMM0 register number.
313 (I387_KEND_REGNUM): New define for last K register number.
314 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
315 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
317 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
319 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
321 * features/Makefile: Add AVX512 related files.
322 * features/i386/32bit-avx512.xml: New file.
323 * features/i386/64bit-avx512.xml: Likewise.
324 * features/i386/amd64-avx512-linux.c: Likewise.
325 * features/i386/amd64-avx512-linux.xml: Likewise.
326 * features/i386/amd64-avx512.c: Likewise.
327 * features/i386/amd64-avx512.xml: Likewise.
328 * features/i386/i386-avx512-linux.c: Likewise.
329 * features/i386/i386-avx512-linux.xml: Likewise.
330 * features/i386/i386-avx512.c: Likewise.
331 * features/i386/i386-avx512.xml: Likewise.
332 * features/i386/x32-avx512-linux.c: Likewise.
333 * features/i386/x32-avx512-linux.xml: Likewise.
334 * features/i386/x32-avx512.c: Likewise.
335 * features/i386/x32-avx512.xml: Likewise.
336 * regformats/i386/amd64-avx512-linux.dat: New file.
337 * regformats/i386/amd64-avx512.dat: Likewise.
338 * regformats/i386/i386-avx512-linux.dat: Likewise.
339 * regformats/i386/i386-avx512.dat: Likewise.
340 * regformats/i386/x32-avx512-linux.dat: Likewise.
341 * regformats/i386/x32-avx512.dat: Likewise.
342 * NEWS: Add note about new support for AVX512.
345 2014-04-23 Pedro Alves <palves@redhat.com>
347 * breakpoint.c (insert_bp_location): Tolerate errors if the
348 breakpoint is set in a user-loaded objfile.
349 (remove_breakpoint_1): Likewise. Also tolerate errors if the
350 location is marked shlib_disabled. If the breakpoint is set in a
351 user-loaded objfile is a GDB-side memory breakpoint, validate it
352 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
353 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
355 * mem-break.c (memory_validate_breakpoint): New function.
356 * objfiles.c (userloaded_objfile_contains_address_p): New
358 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
359 * target.h (memory_validate_breakpoint): New declaration.
361 2014-04-23 Pedro Alves <palves@redhat.com>
363 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
364 the breakpoint is set in a shared library, only suppress
365 errors for software breakpoints, not hardware breakpoints.
367 2014-04-22 Pedro Alves <palves@redhat.com>
369 * infrun.c (schedlock_applies): New function, factored out from
370 find_thread_needs_step_over.
371 (find_thread_needs_step_over): Use it.
372 (switch_back_to_stepped_thread): Always clear trap_expected if the
373 step over is finished. Return early if scheduler locking applies.
374 Look for the stepping thread and a potential step-over thread with
376 (currently_stepping_or_nexting_callback): Delete.
378 2014-04-22 Nick Clifton <nickc@redhat.com>
380 * NEWS: Mention that ARM sim now supports tracing.
382 2014-04-22 Yao Qi <yao@codesourcery.com>
384 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
386 * tracefile.c (tracefile_fetch_registers): ... it. New
388 * tracefile.h (tracefile_fetch_registers): Declare.
389 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
390 tracefile_fetch_registers.
392 2014-04-19 Eli Zaretskii <eliz@gnu.org>
395 * windows-nat.c (thread_rec): Don't display a warning when
396 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
397 fails for any reason, set th->suspended to -1, so that we don't
398 try to resume such a thread. Also, don't return NULL in these
399 cases, to avoid completely ruin the session due to "PC register is
400 not available" error.
401 (do_windows_fetch_inferior_registers): Check errors in
402 GetThreadContext call.
403 (windows_continue): Accept an additional argument KILLED; if not
404 zero, ignore errors in the SetThreadContext call, since the
405 inferior was killed and is shutting down.
406 (windows_resume, get_windows_debug_event)
407 (windows_create_inferior, windows_mourn_inferior)
408 (windows_kill_inferior): All callers of windows_continue changed
409 to adjust to its new calling sequence.
411 2014-04-19 Yao Qi <yao@codesourcery.com>
413 * ctf.c (ctf_open): Call post_create_inferior.
415 2014-04-19 Yao Qi <yao@codesourcery.com>
417 * ctf.c (handle_id): New static variable.
418 (ctf_open_dir): Get handle_id from bt_context_add_trace return
419 value. Get the declaration of event "register" and get length
422 2014-04-19 Yao Qi <yao@codesourcery.com>
424 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
426 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
428 * valops.c (oload_method_static): Remove unnecessary argument
429 METHOD. Update all callers.
431 2014-04-18 Pedro alves <palves@redhat.com>
432 Tom Tromey <tromey@redhat.com>
435 * frame.c (get_prev_frame_1): Rename to ...
436 (get_prev_frame_always): ... this, and make extern. Adjust.
437 (skip_artificial_frames): Use get_prev_frame_always.
438 (frame_unwind_caller_id, frame_pop, get_prev_frame)
439 (get_frame_unwind_stop_reason): Adjust to rename.
440 * frame.h (get_prev_frame_always): Declare.
441 * inline-frame.c: Include frame.h.
442 (inline_frame_this_id): Use get_prev_frame_always.
444 2014-04-18 Tristan Gingold <gingold@adacore.com>
446 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
447 code by using bfd_mach_o_get_base_address.
449 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
451 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
452 (spu_ax_pseudo_register_collect): New function.
453 (spu_ax_pseudo_register_push_stack): Likewise.
454 (spu_dwarf_reg_to_regnum): Likewise.
455 (spu_gdbarch_init): Install them. Append DWARF unwinders.
457 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
459 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
460 Replace FRAME argument with FRAME_ID.
461 * gdbarch.c, gdbarch.h: Regenerate.
462 * findvar.c (default_value_from_register): Add GDBARCH argument;
463 replace FRAME by FRAME_ID. No longer call get_frame_id.
464 (value_from_register): Update call to gdbarch_value_from_register.
465 * value.h (default_value_from_register): Update prototype.
466 * s390-linux-tdep.c (s390_value_from_register): Update interface
467 and call to default_value_from_register.
468 * spu-tdep.c (spu_value_from_register): Likewise.
470 * findvar.c (address_from_register): Remove TYPE argument.
471 Do not call value_from_register; use gdbarch_value_from_register
472 with null_frame_id instead.
473 * value.h (address_from_register): Update prototype.
474 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
475 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
476 address_from_register interface change.
478 2014-04-17 Yao Qi <yao@codesourcery.com>
480 * gdbtypes.h: Update comments to link to types and macros'
483 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
485 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
487 2014-04-16 Keith Seitz <keiths@redhat.com>
490 * dwarf2read.c (skip_one_die): Check that all relative-offset
491 sibling DIEs fall within range of the current reader's buffer.
492 (read_partial_die): Likewise.
494 2014-04-16 Keith Seitz <keiths@redhat.com>
497 * cp-namespace.c (lookup_symbol_file): If the type name of
498 `this' is NULL, return immediately.
500 2014-04-14 Keith Seitz <keiths@redhat.com>
503 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
504 from symbol_matches_domain in symtab.c. All local callers
505 of symbol_matches_domain updated.
506 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
507 search STRUCT_DOMAIN.
508 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
509 independently. standard_lookup will do that automatically.
510 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
511 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
512 (cp_lookup_symbol_in_namespace): Likewise.
513 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
514 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
515 may return a STRUCT_DOMAIN match.
516 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
517 * cp-support.c: Include language.h.
518 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
520 * psymtab.c (match_partial_symbol): Compare the requested
521 domain with the symbol's domain directly.
522 (lookup_partial_symbol): Likewise.
523 * symtab.c (lookup_symbol_in_language): Explain when/why
524 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
525 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
526 appropriate languages.
527 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
528 and moved to ada-lang.c
529 (lookup_block_symbol): Explain that this function only returns
530 symbol matching the requested DOMAIN.
531 Compare the requested domain with the symbol's domain directly.
532 (iterate_over_symbols): Compare the requested domain with the
533 symbol's domain directly.
534 * symtab.h (symbol_matches_domain): Remove.
536 2014-04-14 Tom Tromey <tromey@redhat.com>
539 * c-exp.y (type_aggregate_p): New function.
540 (qualified_name, classify_inner_name): Use it.
541 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
542 and TYPE_TARGET_TYPE of an enum type.
543 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
545 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
546 handle TYPE_DECLARED_CLASS.
547 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
549 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
550 * valops.c (enum_constant_from_type): New function.
551 (value_aggregate_elt): Use it.
552 * cp-namespace.c (cp_lookup_nested_symbol): Handle
555 2014-04-14 Tom Tromey <tromey@redhat.com>
557 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
558 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
560 * value.h (value_aggregate_elt): Update.
562 2014-04-14 Tom Tromey <tromey@redhat.com>
564 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
566 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
568 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
569 (evaluate_subexp_standard): Pass noside argument.
570 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
571 if noside equals EVAL_NORMAL. If the subscript yields a vla type
572 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
573 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
574 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
576 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
578 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
579 points to a constant blob.
581 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
583 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
584 property and store it as the high bound and flag the range accordingly.
585 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
586 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
587 * gdbtypes.h (enum range_flags): New enum.
588 (struct range_bounds): Add flags member.
590 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
592 * c-typeprint.c (c_type_print_varspec_suffix): Added
593 check for not yet resolved high bound. If unresolved, print
594 "variable length" string to the console instead of random
597 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
599 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
601 (ada_template_to_fixed_record_type_1): Likewise.
602 (ada_to_fixed_type_1): Likewise.
603 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
604 (cp_print_value): Likewise.
605 * d-valprint.c (dynamic_array_type): Likewise.
606 * findvar.c (address_of_variable): Likewise.
607 * jv-valprint.c (java_value_print): Likewise.
608 * valops.c (value_ind): Likewise.
609 * value.c (coerce_ref): Likewise.
611 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
613 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
614 value and retrieve the dynamic type size.
616 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
618 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
619 passed to sizeof is dynamic evaluate the argument to compute the length.
621 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
622 Joel Brobecker <brobecker@adacore.com>
624 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
625 (dwarf2_evaluate_property): New function.
626 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
627 * dwarf2read.c (attr_to_dynamic_prop): New function.
628 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
630 * gdbtypes.c: Include dwarf2loc.h.
631 (is_dynamic_type): New function.
632 (resolve_dynamic_type): New function.
633 (resolve_dynamic_bounds): New function.
634 (get_type_length): New function.
635 (check_typedef): Use get_type_length to compute type length.
636 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
637 (TYPE_LOW_BOUND_KIND): New macro.
638 (is_dynamic_type): New function prototype.
639 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
640 to resolve dynamic properties of the type. Update comment.
641 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
643 2014-04-14 Richard Henderson <rth@redhat.com>
645 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
647 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
648 Doug Evans <xdje42@gmail.com>
650 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
651 dereference TYPE_CODE_REF values.
653 2014-04-11 Joel Brobecker <brobecker@adacore.com>
655 Revert the following changes due to regressions:
657 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
658 (dwarf2_evaluate_property): New function.
659 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
660 * dwarf2read.c (attr_to_dynamic_prop): New function.
661 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
663 * gdbtypes.c: Include dwarf2loc.h.
664 (is_dynamic_type): New function.
665 (resolve_dynamic_type): New function.
666 (resolve_dynamic_bounds): New function.
667 (get_type_length): New function.
668 (check_typedef): Use get_type_length to compute type length.
669 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
670 (TYPE_LOW_BOUND_KIND): New macro.
671 (is_dynamic_type): New function prototype.
672 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
673 to resolve dynamic properties of the type. Update comment.
674 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
676 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
677 passed to sizeof is dynamic evaluate the argument to compute the length.
679 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
680 value and retrieve the dynamic type size.
682 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
683 (ada_template_to_fixed_record_type_1): Likewise.
684 (ada_to_fixed_type_1): Likewise.
685 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
686 (cp_print_value): Likewise.
687 * d-valprint.c (dynamic_array_type): Likewise.
688 * eval.c (evaluate_subexp_with_coercion): Likewise.
689 * findvar.c (address_of_variable): Likewise.
690 * jv-valprint.c (java_value_print): Likewise.
691 * valops.c (value_ind): Likewise.
692 * value.c (coerce_ref): Likewise.
694 * c-typeprint.c (c_type_print_varspec_suffix): Added
695 check for not yet resolved high bound. If unresolved, print
696 "variable length" string to the console instead of random
699 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
700 property and store it as the high bound and flag the range accordingly.
701 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
702 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
703 * gdbtypes.h (enum range_flags): New enum.
704 (struct range_bounds): Add flags member.
706 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
707 points to a constant blob.
709 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
710 (evaluate_subexp_standard): Pass noside argument.
711 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
712 if noside equals EVAL_NORMAL. If the subscript yields a vla type
713 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
714 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
715 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
717 2014-04-11 Keith Seitz <keiths@redhat.com>
720 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
721 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
724 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
726 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
727 (evaluate_subexp_standard): Pass noside argument.
728 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
729 if noside equals EVAL_NORMAL. If the subscript yields a vla type
730 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
731 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
732 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
734 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
736 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
737 points to a constant blob.
739 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
741 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
742 property and store it as the high bound and flag the range accordingly.
743 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
744 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
745 * gdbtypes.h (enum range_flags): New enum.
746 (struct range_bounds): Add flags member.
748 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
750 * c-typeprint.c (c_type_print_varspec_suffix): Added
751 check for not yet resolved high bound. If unresolved, print
752 "variable length" string to the console instead of random
755 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
757 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
758 (ada_template_to_fixed_record_type_1): Likewise.
759 (ada_to_fixed_type_1): Likewise.
760 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
761 (cp_print_value): Likewise.
762 * d-valprint.c (dynamic_array_type): Likewise.
763 * eval.c (evaluate_subexp_with_coercion): Likewise.
764 * findvar.c (address_of_variable): Likewise.
765 * jv-valprint.c (java_value_print): Likewise.
766 * valops.c (value_ind): Likewise.
767 * value.c (coerce_ref): Likewise.
769 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
771 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
772 value and retrieve the dynamic type size.
774 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
776 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
777 passed to sizeof is dynamic evaluate the argument to compute the length.
779 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
781 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
782 (dwarf2_evaluate_property): New function.
783 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
784 * dwarf2read.c (attr_to_dynamic_prop): New function.
785 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
787 * gdbtypes.c: Include dwarf2loc.h.
788 (is_dynamic_type): New function.
789 (resolve_dynamic_type): New function.
790 (resolve_dynamic_bounds): New function.
791 (get_type_length): New function.
792 (check_typedef): Use get_type_length to compute type length.
793 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
794 (TYPE_LOW_BOUND_KIND): New macro.
795 (is_dynamic_type): New function prototype.
796 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
797 to resolve dynamic properties of the type. Update comment.
798 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
800 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
802 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
803 declaring high/low bounds and change uses accordingly. Call
804 create_range_type instead of create_static_range_type.
805 * gdbtypes.c (create_range_type): New function.
806 (create_range_type): Convert bounds into struct bound_prop and pass
807 them to create_range_type.
808 * gdbtypes.h (struct bound_prop): New struct.
809 (create_range_type): New function prototype.
810 (struct range_bounds): Use struct bound_prop instead of LONGEST for
811 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
812 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
814 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
816 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
818 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
819 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
820 * ada-lang.c: All uses of create_range_type updated.
821 * coffread.c: All uses of create_range_type updated.
822 * dwarf2read.c: All uses of create_range_type updated.
823 * f-exp.y: All uses of create_range_type updated.
824 * m2-valprint.c: All uses of create_range_type updated.
825 * mdebugread.c: All uses of create_range_type updated.
826 * stabsread.c: All uses of create_range_type updated.
827 * valops.c: All uses of create_range_type updated.
828 * valprint.c: All uses of create_range_type updated.
830 2014-04-10 Pedro Alves <palves@redhat.com>
832 * breakpoint.c (single_step_breakpoints)
833 (single_step_gdbarch): Move up in the file.
834 (one_breakpoint_xfer_memory): New function, factored out from ...
835 (breakpoint_xfer_memory): ... here. Also process single-step
838 2014-04-09 Tristan Gingold <gingold@adacore.com>
840 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
842 (darwin_decode_exception_message): Free port only after use.
844 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
846 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
847 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
848 when setting the size of call_length.
850 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
852 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
853 dereference TYPE_CODE_REF values.
855 2014-04-07 Joel Brobecker <brobecker@adacore.com>
857 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
858 end of warning message.
860 2014-04-03 Doug Evans <dje@google.com>
862 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
863 of stub_comp_unit_die, stub_comp_dir is non-NULL.
865 2014-04-02 Alan Modra <amodra@gmail.com>
867 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
868 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
869 (struct symbol_file_add_from_memory_args): Add size field.
870 (find_vdso_size): New function.
871 (add_vsyscall_page): Attempt to find vdso size.
873 2014-04-01 Doug Evans <dje@google.com>
875 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
877 2014-04-01 Tristan Gingold <gingold@adacore.com>
879 * darwin-nat.c (darwin_encode_reply): Add prototype.
880 (darwin_decode_exception_message): Reply to unknown inferiors.
881 (darwin_decode_message): Handle message by id. Ignore message
883 (darwin_wait): Discard unknown messages, add debug trace.
885 2014-03-31 Doug Evans <dje@google.com>
887 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
890 2014-03-31 Doug Evans <dje@google.com>
892 New option "set print symbol-loading".
894 * solib.c (solib_read_symbols): Only print symbol loading messages
896 (solib_add): If symbol loading is in "brief" mode, notify user
897 symbols are being loaded.
898 (reload_shared_libraries_1): Ditto.
899 * symfile.c (print_symbol_loading_off): New static global.
900 (print_symbol_loading_brief): New static global.
901 (print_symbol_loading_full): New static global.
902 (print_symbol_loading_enums): New static global.
903 (print_symbol_loading): New static global.
904 (print_symbol_loading_p): New function.
905 (symbol_file_add_with_addrs): Only print symbol loading messages
907 (_initialize_symfile): Register "print symbol-loading" set/show
909 * symfile.h (print_symbol_loading_p): Declare.
911 2014-03-30 Doug Evans <xdje42@gmail.com>
913 * infrun.c (set_last_target_status): New function.
914 (handle_inferior_event): Call it.
916 2014-03-30 Doug Evans <xdje42@gmail.com>
918 * inferior.h (enum stop_kind): Improve comment.
920 2014-03-28 Joel Brobecker <brobecker@adacore.com>
922 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
923 a reference, strip the reference layer before calling
924 the lang_ops value_has_mutated callback.
926 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
928 Remove some globals from our parser.
929 * language.c (unk_lang_parser): Add "struct parser_state"
931 * language.h (struct language_defn) <la_parser>: Likewise.
932 * parse.c (expout, expout_size, expout_ptr): Remove variables.
933 (initialize_expout): Add "struct parser_state" argument.
934 Rewrite function to use the parser state.
935 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
936 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
937 write_exp_elt_longcst, write_exp_elt_dblcst,
938 write_exp_elt_decfloatcst, write_exp_elt_type,
939 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
940 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
941 write_dollar_variable): Likewise.
942 (parse_exp_in_context_1): Use parser state.
943 (insert_type_address_space): Add "struct parser_state" argument.
945 (increase_expout_size): New function.
946 * parser-defs.h: Forward declare "struct language_defn" and
947 "struct parser_state".
948 (expout, expout_size, expout_ptr): Remove extern declarations.
949 (parse_gdbarch, parse_language): Rewrite macro declarations to
950 accept the parser state.
951 (struct parser_state): New struct.
952 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
953 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
954 write_exp_elt_decfloatcst, write_exp_elt_type,
955 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
956 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
957 write_exp_msymbol, write_dollar_variable,
958 mark_struct_expression, insert_type_address_space): Add "struct
959 parser_state" argument.
960 (increase_expout_size): New function.
961 * utils.c (do_clear_parser_state): New function.
962 (make_cleanup_clear_parser_state): Likewise.
963 * utils.h (make_cleanup_clear_parser_state): New function
965 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
966 Update calls to write_exp* in order to pass the parser state.
967 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
968 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
969 (i386_stap_parse_special_token_three_arg_disp): Likewise.
970 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
971 * stap-probe.c (stap_parse_register_operand): Likewise.
972 (stap_parse_single_operand): Likewise.
973 (stap_parse_argument_1): Likewise.
974 (stap_parse_argument): Use parser state.
975 * stap-probe.h: Include "parser-defs.h".
976 (struct stap_parse_info) <pstate>: New field.
977 * c-exp.y (parse_type): Rewrite to use parser state.
978 (yyparse): Redefine to c_parse_internal.
979 (pstate): New global variable.
980 (parse_number): Add "struct parser_state" argument.
981 (write_destructor_name): Likewise.
982 (type_exp): Update calls to write_exp* and similars in order to
984 (exp1, exp, variable, qualified_name, space_identifier,
985 typename, typebase): Likewise.
986 (write_destructor_name, parse_number, lex_one_token,
987 classify_name, classify_inner_name, c_parse): Add "struct
988 parser_state" argument. Update function to use parser state.
989 * c-lang.h: Forward declare "struct parser_state".
990 (c_parse): Add "struct parser_state" argument.
991 * ada-exp.y (parse_type): Rewrite macro to use parser state.
992 (yyparse): Redefine macro to ada_parse_internal.
993 (pstate): New variable.
994 (write_int, write_object_renaming, write_var_or_type,
995 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
996 type_int, type_long, type_long_long, type_float, type_double,
997 type_long_double, type_char, type_boolean, type_system_address):
998 Add "struct parser_state" argument.
999 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
1000 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
1001 var_or_type, aggregate, aggregate_component_list,
1002 positional_list, others, component_group,
1003 component_associations): Update calls to write_exp* and similar
1004 functions in order to use parser state.
1005 (ada_parse, write_var_from_sym, write_int,
1006 write_exp_op_with_string, write_object_renaming,
1007 find_primitive_type, write_selectors, write_ambiguous_var,
1008 write_var_or_type, write_name_assoc, type_int, type_long,
1009 type_long_long, type_float, type_double, type_long_double,
1010 type_char, type_boolean, type_system_address): Add "struct
1011 parser_state" argument. Adjust function to use parser state.
1012 * ada-lang.c (parse): Likewise.
1013 * ada-lang.h: Forward declare "struct parser_state".
1014 (ada_parse): Add "struct parser_state" argument.
1015 * ada-lex.l (processInt, processReal): Likewise. Adjust all
1016 calls to both functions.
1017 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
1019 (yyparse): Redefine macro to f_parse_internal.
1020 (pstate): New variable.
1021 (parse_number): Add "struct parser_state" argument.
1022 (type_exp, exp, subrange, typebase): Update calls to write_exp*
1023 and similars in order to use parser state.
1024 (parse_number): Adjust code to use parser state.
1026 (f_parse): New function.
1027 * f-lang.h: Forward declare "struct parser_state".
1028 (f_parse): Add "struct parser_state" argument.
1029 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
1031 (yyparse): Redefine macro for java_parse_internal.
1032 (pstate): New variable.
1033 (push_expression_name, push_expression_name, insert_exp): Add
1034 "struct parser_state" argument.
1035 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
1036 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
1037 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
1038 PostIncrementExpression, PostDecrementExpression,
1039 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
1040 UnaryExpressionNotPlusMinus, CastExpression,
1041 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
1042 RelationalExpression, EqualityExpression, AndExpression,
1043 ExclusiveOrExpression, InclusiveOrExpression,
1044 ConditionalAndExpression, ConditionalOrExpression,
1045 ConditionalExpression, Assignment, LeftHandSide): Update
1046 calls to write_exp* and similars in order to use parser state.
1047 (parse_number): Ajust code to use parser state.
1049 (java_parse): New function.
1050 (push_variable): Add "struct parser_state" argument. Adjust
1051 code to user parser state.
1052 (push_fieldnames, push_qualified_expression_name,
1053 push_expression_name, insert_exp): Likewise.
1054 * jv-lang.h: Forward declare "struct parser_state".
1055 (java_parse): Add "struct parser_state" argument.
1056 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
1058 (yyparse): Redefine macro to m2_parse_internal.
1059 (pstate): New variable.
1060 (type_exp, exp, fblock, variable, type): Update calls to
1061 write_exp* and similars to use parser state.
1063 (m2_parse): New function.
1064 * m2-lang.h: Forward declare "struct parser_state".
1065 (m2_parse): Add "struct parser_state" argument.
1066 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
1067 * objc-lang.h: Forward declare "struct parser_state".
1068 (end_msglist): Add "struct parser_state" argument.
1069 * p-exp.y (parse_type): Rewrite macro to use parser state.
1070 (yyparse): Redefine macro to pascal_parse_internal.
1071 (pstate): New variable.
1072 (parse_number): Add "struct parser_state" argument.
1073 (type_exp, exp1, exp, qualified_name, variable): Update calls to
1074 write_exp* and similars in order to use parser state.
1075 (parse_number, yylex): Adjust code to use parser state.
1076 (pascal_parse): New function.
1077 * p-lang.h: Forward declare "struct parser_state".
1078 (pascal_parse): Add "struct parser_state" argument.
1079 * go-exp.y (parse_type): Rewrite macro to use parser state.
1080 (yyparse): Redefine macro to go_parse_internal.
1081 (pstate): New variable.
1082 (parse_number): Add "struct parser_state" argument.
1083 (type_exp, exp1, exp, variable, type): Update calls to
1084 write_exp* and similars in order to use parser state.
1085 (parse_number, lex_one_token, classify_name, yylex): Adjust code
1086 to use parser state.
1087 (go_parse): Likewise.
1088 * go-lang.h: Forward declare "struct parser_state".
1089 (go_parse): Add "struct parser_state" argument.
1091 2014-03-27 Doug Evans <dje@google.com>
1093 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
1095 2014-03-27 Doug Evans <dje@google.com>
1097 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
1098 Remove argument abbrev_section. All callers updated.
1100 2014-03-27 Doug Evans <dje@google.com>
1102 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
1103 addr_base, ranges_base.
1105 2014-03-26 Keith Seitz <keiths@redhat.com>
1107 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
1108 types, not VAR_DOMAIN.
1110 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
1112 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
1114 * features/nios2-linux.c: Regenerated.
1115 * features/nios2.c: Regenerated.
1117 2014-03-25 Pedro Alves <palves@redhat.com>
1119 * cli/cli-script.c (script_from_file): Force the interpreter to
1122 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
1124 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
1125 small stack allocation.
1127 2014-03-24 Tristan Gingold <gingold@adacore.com>
1129 * darwin-nat.c (exc_server): Remove unused prototype.
1130 (darwin_dump_message): Correctly display data on x86_64.
1131 (darwin_encode_reply): Fix style.
1132 Add comments and fix indentation.
1134 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
1136 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
1138 2014-03-22 Doug Evans <xdje42@gmail.com>
1140 * infcmd.c: Whitespace fixes.
1141 (interrupt_command): Merge two function comments into one.
1143 2014-03-22 Doug Evans <xdje42@gmail.com>
1145 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
1148 2014-03-22 Yao Qi <yao@codesourcery.com>
1150 * remote.c (target_read_live_memory): Remove.
1151 (memory_xfer_live_readonly_partial): Rename it to
1152 remote_xfer_live_readonly_partial. Remove argument 'object'.
1153 All callers updated. Call remote_read_bytes_1
1154 instead of target_read_live_memory.
1155 * tracepoint.c (set_traceframe_number): Remove.
1156 (make_cleanup_restore_traceframe_number): Likewise .
1157 * tracepoint.h (set_traceframe_number): Remove declaration.
1158 (make_cleanup_restore_traceframe_number): Likewise.
1160 2014-03-22 Yao Qi <yao@codesourcery.com>
1162 * remote.c (remote_read_bytes): Move code on reading from the
1164 (remote_read_bytes_1): ... here. New function.
1166 2014-03-22 Yao Qi <yao@codesourcery.com>
1168 * ctf.c (ctf_xfer_partial): Check the return value of
1169 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
1170 return TARGET_XFER_UNAVAILABLE.
1171 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
1172 * target.c (target_read_live_memory): Move it to remote.c.
1173 (memory_xfer_live_readonly_partial): Likewise.
1174 (memory_xfer_partial_1): Move some code to remote_read_bytes.
1175 * remote.c (target_read_live_memory): Moved from target.c.
1176 (memory_xfer_live_readonly_partial): Likewise.
1177 (remote_read_bytes): Factored out from
1178 memory_xfer_partial_1.
1180 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
1182 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
1185 2014-03-21 Pedro Alves <palves@redhat.com>
1187 * infrun.c (normal_stop): Extend comment.
1189 2014-03-21 Hui Zhu <hui@codesourcery.com>
1190 Pedro Alves <palves@redhat.com>
1192 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
1194 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
1195 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
1196 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
1198 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
1200 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
1201 `z' formatted output modifier.
1203 2014-03-20 Tom Tromey <tromey@redhat.com>
1204 Sergio Durigan Junior <sergiodj@redhat.com>
1206 * probe.c (parse_probes): Turn assert into an ordinary error.
1207 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
1208 exceptions when parsing probes. Rearrange the code for clarity.
1210 2014-03-20 Tom Tromey <tromey@redhat.com>
1213 * top.c (execute_command): Only dispatch events if the command
1216 2014-03-20 Tom Tromey <tromey@redhat.com>
1219 * infcall.c: Include event-top.h.
1220 (run_inferior_call): Call async_disable_stdin if needed.
1222 2014-03-20 Pedro Alves <palves@redhat.com>
1224 * infrun.c (prepare_to_proceed): Delete.
1225 (thread_still_needs_step_over): New function.
1226 (find_thread_needs_step_over): New function.
1227 (proceed): If the current thread needs a step-over, set its
1228 steping_over_breakpoint flag. Adjust to use
1229 find_thread_needs_step_over instead of prepare_to_proceed.
1230 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
1231 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
1233 (switch_back_to_stepped_thread): Step over breakpoints of all
1234 threads not the stepping thread, before switching back to the
1237 2014-03-20 Pedro Alves <palves@redhat.com>
1239 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
1241 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
1242 * infrun.c (saved_singlestep_ptid)
1243 (stepping_past_singlestep_breakpoint): Delete.
1244 (resume): Remove stepping_past_singlestep_breakpoint handling.
1245 (proceed): Store the prev_pc of the stepping thread too.
1246 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
1248 (enum infwait_states): Delete infwait_thread_hop_state.
1249 (struct execution_control_state) <hit_singlestep_breakpoint>: New
1251 (handle_inferior_event): Adjust.
1252 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
1253 handling and the thread-hop code. Before removing single-step
1254 breakpoints, check whether the thread hit a single-step breakpoint
1255 of another thread. If it did, the trap is not a random signal.
1256 (switch_back_to_stepped_thread): If the event thread hit a
1257 single-step breakpoint, unblock it before switching to the
1258 stepping thread. Handle the case of the stepped thread having
1260 (keep_going): Handle the case of the current thread moving past a
1261 single-step breakpoint.
1263 2014-03-20 Pedro Alves <palves@redhat.com>
1266 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
1267 are being stepped over.
1268 (breakpoint_address_match): Make extern.
1269 * breakpoint.h (breakpoint_address_match): New declaration.
1270 * inferior.h (stepping_past_instruction_at): New declaration.
1271 * infrun.c (struct step_over_info): New type.
1272 (step_over_info): New global.
1273 (set_step_over_info, clear_step_over_info)
1274 (stepping_past_instruction_at): New functions.
1275 (handle_inferior_event): Clear the step-over info when
1276 trap_expected is cleared.
1277 (resume): Remove now stale comment.
1278 (clear_proceed_status): Clear step-over info.
1279 (proceed): Adjust step-over handling to set or clear the step-over
1280 info instead of removing all breakpoints.
1281 (handle_signal_stop): When setting up a thread-hop, don't remove
1283 (stop_stepping): Clear step-over info.
1284 (keep_going): Adjust step-over handling to set or clear step-over
1285 info and then always inserting breakpoints, instead of removing
1286 all breakpoints when stepping over one.
1288 2014-03-20 Pedro Alves <palves@redhat.com>
1290 * infrun.c (previous_inferior_ptid): Adjust comment.
1291 (deferred_step_ptid): Delete.
1292 (infrun_thread_ptid_changed, prepare_to_proceed)
1293 (init_wait_for_inferior): Adjust.
1294 (handle_signal_stop): Delete deferred_step_ptid handling.
1296 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1299 * defs.h (sync_quit_force_run): New declaration.
1300 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
1301 * event-top.c (async_sigterm_handler): New declaration.
1302 (async_sigterm_token): New variable.
1303 (async_init_signals): Create also async_sigterm_token.
1304 (async_sigterm_handler): New function.
1305 (sync_quit_force_run): New variable.
1306 (handle_sigterm): Replace quit_force call by other calls.
1307 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
1309 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
1311 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
1312 offset into SPE pseudo registers.
1314 2014-03-18 Pedro Alves <palves@redhat.com>
1317 * inferior.h (print_stop_event): Declare.
1318 * infrun.c (print_stop_event): New, factored out from ...
1319 (normal_stop): ... this.
1320 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
1321 of bpstat_print/print_stack_frame.
1323 2014-03-17 Tom Tromey <tromey@redhat.com>
1325 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
1327 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
1329 * ada-lang.c (decode_constrained_packed_array): Perform a
1330 minimal coercion for reference with coerce_ref instead of
1333 2014-03-17 Tristan Gingold <gingold@adacore.com>
1335 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
1336 (darwin_solib_create_inferior_hook): Emit a warning if version
1339 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
1341 * python/py-value.c (get_field_flag): Cast flag_name argument to
1342 PyObject_GetAttrString to support Python 2.4.
1344 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1346 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
1347 (Global Maintainers): Remove Jan Kratochvil.
1349 2014-03-14 Pedro Alves <palves@redhat.com>
1351 * inferior.h (terminal_ours_for_output): Rename to ...
1352 (child_terminal_ours_for_output): ... this.
1353 (terminal_save_ours): Rename to ...
1354 (child_terminal_save_ours): ... this.
1355 (terminal_ours): Rename to ...
1356 (child_terminal_ours): ... this.
1357 (terminal_inferior): Rename to ...
1358 (child_terminal_inferior): ... this.
1359 (terminal_init_inferior): Rename to ...
1360 (child_terminal_init_inferior): ... this.
1361 (terminal_init_inferior_with_pgrp): Rename to ...
1362 (child_terminal_init_inferior_with_pgrp): ... this.
1363 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
1364 (child_terminal_init_with_pgrp): ... this.
1365 (terminal_save_ours): Rename to ...
1366 (child_terminal_save_ours): ... this.
1367 (terminal_init_inferior): Rename to ...
1368 (child_terminal_init): ... this. Adjust.
1369 (terminal_inferior): Rename to ...
1370 (child_terminal_inferior): ... this.
1371 (terminal_ours_for_output): Rename to ...
1372 (child_terminal_ours_for_output): ... this. Adjust.
1373 (terminal_ours): Rename to ...
1374 (child_terminal_ours): ... this.
1375 (terminal_ours_1): Rename to ...
1376 (child_terminal_ours_1): ... this. Adjust.
1377 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
1378 * windows-nat.c (do_initial_windows_stuff): Adjust.
1379 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
1380 (gnu_terminal_init): ... this. Adjust.
1381 (gnu_target): Adjust.
1382 * inf-child.c (inf_child_target): Adjust.
1384 2014-03-13 Doug Evans <xdje42@gmail.com>
1387 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
1390 2014-03-13 Doug Evans <xdje42@gmail.com>
1392 * value.c (record_latest_value): Call release_value_or_incref
1393 instead of release_value.
1395 2014-03-13 Pedro Alves <palves@redhat.com>
1397 * procfs.c (procfs_target): Don't override to_shortname,
1398 to_longname or to_doc.
1400 2014-03-13 Pedro Alves <palves@redhat.com>
1402 * inf-child.c (inf_child_open, inf_child_target): Don't mention
1403 Unix in user visible strings.
1405 2014-03-12 Stan Shebs <stan@codesourcery.com>
1407 * gdbtypes.h: Annotate comments for Doxygen, add a page
1408 block comment with some general info.
1410 2014-03-12 Pedro Alves <palves@redhat.com>
1412 * infcmd.c (prepare_execution_command): New function, factored out
1413 from several execution commands.
1414 (run_command_1, continue_command, step_1, jump_command)
1415 (signal_command, until_command, advance_command, finish_command)
1416 (attach_command): Use prepare_execution_command.
1418 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
1420 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
1423 (struct arm_linux_thread_points): Removed.
1424 (struct arm_linux_process_info): New.
1425 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
1426 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
1427 (arm_linux_find_breakpoints_by_tid): Removed.
1428 (struct arch_lwp_info): New.
1429 (arm_linux_find_process_pid): New functions.
1430 (arm_linux_add_process): New functions.
1431 (arm_linux_process_info_get): New functions.
1432 (arm_linux_forget_process): New function.
1433 (arm_linux_get_debug_reg_state): New function.
1434 (struct update_registers_data): New.
1435 (update_registers_callback): New function.
1436 (arm_linux_insert_hw_breakpoint1): Updated.
1437 (arm_linux_remove_hw_breakpoint1): Updated.
1438 (arm_linux_insert_hw_breakpoint): Updated.
1439 (arm_linux_remove_hw_breakpoint): Updated.
1440 (arm_linux_insert_watchpoint): Updated.
1441 (arm_linux_remove_watchpoint): Updated.
1442 (arm_linux_new_thread): Updated.
1443 (arm_linux_prepare_to_resume): New function.
1444 (arm_linux_new_fork): New function.
1445 (_initialize_arm_linux_nat): Updated.
1447 2014-03-12 Pedro Alves <palves@redhat.com>
1449 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
1451 2014-03-12 Tom Tromey <tromey@redhat.com>
1453 * inf-child.c (return_zero): New function.
1454 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
1455 * aix-thread.c (aix_thread_inferior_created): New function.
1456 (aix_thread_attach): Remove.
1457 (init_aix_thread_ops): Don't set to_attach.
1458 (_initialize_aix_thread): Register inferior_created observer.
1459 * corelow.c (init_core_ops): Don't set to_attach or
1461 * exec.c (init_exec_ops): Don't set to_attach or
1463 * infcmd.c (run_command_1): Use find_run_target. Make direct
1465 (attach_command): Use find_attach_target. Make direct target
1467 * record-btrace.c (init_record_btrace_ops): Don't set
1469 * record-full.c (record_full_can_async_p, record_full_is_async_p):
1471 (init_record_full_ops, init_record_full_core_ops): Update. Don't
1472 set to_create_inferior.
1473 * target.c (complete_target_initialization): Add assertion.
1474 (target_create_inferior): Remove.
1475 (find_default_attach, find_default_create_inferior): Remove.
1476 (find_attach_target, find_run_target): New functions.
1477 (find_default_is_async_p, find_default_can_async_p)
1478 (target_supports_non_stop, target_attach): Remove.
1479 (init_dummy_target): Don't set to_create_inferior or
1480 to_supports_non_stop.
1481 * target.h (struct target_ops) <to_attach>: Add comment. Remove
1482 TARGET_DEFAULT_FUNC.
1483 <to_create_inferior>: Add comment.
1484 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
1485 TARGET_DEFAULT_RETURN.
1486 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
1487 (find_attach_target, find_run_target): Declare.
1488 (target_create_inferior): Remove.
1489 (target_has_execution_1): Update comment.
1490 (target_supports_non_stop): Remove.
1491 * target-delegates.c: Rebuild.
1493 2014-03-12 Pedro Alves <palves@redhat.com>
1495 * inf-child.h: Update comment to not mention Unix.
1497 2014-03-12 Pedro Alves <palves@redhat.com>
1499 * inf-child.c: Update top comment to not mention Unix. Add
1500 generic comment describing how this target is meant to be used.
1501 (inf_child_post_attach, inf_child_post_startup_inferior)
1502 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
1505 2014-03-12 Pedro Alves <palves@redhat.com>
1507 * nto-procfs.c: Include inf-child.h.
1508 (procfs_ops): Delete global.
1509 (procfs_can_run): Delete method.
1510 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
1511 target pointer instead of referencing procfs_ops.
1512 (procfs_prepare_to_store): Delete.
1513 (init_procfs_ops): Delete function.
1514 (procfs_target): New function, based on init_procfs_ops, but
1515 inherit inf_child_target.
1516 (_initialize_procfs): Use procfs_target.
1518 2014-03-12 Pedro Alves <palves@redhat.com>
1520 * windows-nat.c: Include inf-child.h.
1521 (windows_ops): Delete global.
1522 (windows_open, windows_prepare_to_store, windows_can_run): Delete
1524 (init_windows_ops): Delete function.
1525 (windows_target): New function, based on init_windows_ops, but
1526 inherit inf_child_target.
1527 (_initialize_windows_nat): Use windows_target. Install x86
1528 specific target methods here.
1530 2014-03-10 Doug Evans <xdje42@gmail.com>
1532 * guile/guile.c (call_initialize_gdb_module): New function.
1533 (initialize_guile): Replace call to scm_init_guile with call to
1536 2014-03-10 Joel Brobecker <brobecker@adacore.com>
1538 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
1539 in call to TYPE_CODE macro.
1541 2014-03-10 Jerome Guitton <guitton@adacore.com>
1543 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
1544 Resolve tagged types to full view.
1546 2014-03-10 Hui Zhu <hui@codesourcery.com>
1548 * target.h (target_insert_breakpoint): Remove "hardware" from its
1551 2014-03-07 Doug Evans <dje@google.com>
1553 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
1555 2014-03-07 Doug Evans <dje@google.com>
1557 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
1558 Remove unused local comp_dir_attr. Assert exactly one of
1559 stub_comp_unit_die, stub_comp_dir is non-NULL.
1561 2014-03-07 Joel Brobecker <brobecker@adacore.com>
1563 * target.h (complete_target_initialization, add_target):
1566 2014-03-07 Pedro Alves <palves@redhat.com>
1568 * go32-nat.c: Include inf-child.h.
1569 (go32_ops): Delete global.
1570 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
1572 (go32_create_inferior): Push the passed in target pointer instead
1573 of referencing go32_ops.
1574 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
1575 (go32_target): New function, based on init_go32_ops, but inherit
1577 (_initialize_go32_nat): Use go32_target. Move parts of
1580 2014-03-06 Joel Brobecker <brobecker@adacore.com>
1582 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
1583 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
1584 SYMBOL_VALUE_ADDRESS.
1585 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
1587 2014-03-06 Yao Qi <yao@codesourcery.com>
1589 * breakpoint.c (get_tracepoint_by_number): Remove argument
1590 optional_p. All callers updated. Adjust comments. Update
1592 * breakpoint.h (get_tracepoint_by_number): Update declaration.
1594 2014-03-06 Yao Qi <yao@codesourcery.com>
1596 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
1597 early if get_number returns zero. Use 'p' instead of 'args'.
1599 2014-03-06 Yao Qi <yao@codesourcery.com>
1601 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
1604 2014-03-06 Yao Qi <yao@codesourcery.com>
1606 PR breakpoints/16508
1607 * tracepoint.c (check_trace_running): New function.
1608 (trace_find_command): Move code to check_trace_running and
1609 call check_trace_running.
1610 (trace_find_pc_command): Likewise.
1611 (trace_find_tracepoint_command): Likewise.
1612 (trace_find_line_command): Likewise.
1613 (trace_find_range_command): Likewise.
1614 * tracepoint.h (check_trace_running): Likewise.
1615 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
1617 2014-03-06 Yao Qi <yao@codesourcery.com>
1619 * target.h (struct target_ops) <to_traceframe_info>: Use
1620 TARGET_DEFAULT_NORETURN (tcomplain ()).
1621 * target-delegates.c: Regenerated.
1623 2014-03-05 Pedro Alves <palves@redhat.com>
1626 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
1627 void. Update comment.
1628 (dcache_xfer_memory): Delete.
1629 (dcache_read_memory_partial): New, based on the read bits of
1631 (dcache_update): Add status parameter. Use ULONGEST for len, and
1632 adjust. Discard cache lines if the reason for the update was
1634 * dcache.h (dcache_xfer_memory): Delete declaration.
1635 (dcache_read_memory_partial): New declaration.
1636 (dcache_update): Update prototype.
1637 * target.c (raw_memory_xfer_partial): Update the dcache here.
1638 (memory_xfer_partial_1): Don't handle dcache writes here.
1640 2014-03-05 Mike Frysinger <vapier@gentoo.org>
1642 * remote-sim.c (gdbsim_load): Add const to prog.
1644 2014-03-03 Tom Tromey <tromey@redhat.com>
1646 * elfread.c (probe_key): Change to bfd_data.
1647 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
1648 now per-BFD, not per-objfile.
1649 * stap-probe.c (stap_probe_destroy): Update comment.
1650 (handle_stap_probe): Allocate on the per-BFD obstack.
1652 2014-03-03 Tom Tromey <tromey@redhat.com>
1654 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
1655 * breakpoint.c (create_longjmp_master_breakpoint): Use
1657 (add_location_to_breakpoint, bkpt_probe_insert_location)
1658 (bkpt_probe_remove_location): Update.
1659 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
1660 * elfread.c (elf_symfile_relocate_probe): Remove.
1661 (elf_probe_fns): Update.
1662 (insert_exception_resume_breakpoint): Change type of "probe"
1663 parameter to bound_probe.
1664 (check_exception_resume): Update.
1665 * objfiles.c (objfile_relocate1): Don't relocate probes.
1666 * probe.c (bound_probe_s): New typedef.
1667 (parse_probes): Use get_probe_address. Set sal's objfile.
1668 (find_probe_by_pc): Return a bound_probe.
1669 (collect_probes): Return a VEC(bound_probe_s).
1670 (compare_probes): Update.
1671 (gen_ui_out_table_header_info): Change type of "probes"
1673 (info_probes_for_ops): Update.
1674 (get_probe_address): New function.
1675 (probe_safe_evaluate_at_pc): Update.
1676 * probe.h (struct probe_ops) <get_probe_address>: New field.
1677 <set_semaphore, clear_semaphore>: Add objfile parameter.
1678 (struct probe) <objfile>: Remove field.
1680 <address>: Update comment.
1681 (struct bound_probe): New.
1682 (find_probe_by_pc): Return a bound_probe.
1683 (get_probe_address): Declare.
1684 * solib-svr4.c (struct probe_and_action) <address>: New field.
1685 (hash_probe_and_action, equal_probe_and_action): Update.
1686 (register_solib_event_probe): Add address parameter.
1687 (solib_event_probe_at): Update.
1688 (svr4_create_probe_breakpoints): Add objfile parameter. Use
1690 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
1691 (stap_get_probe_address): New function.
1692 (stap_can_evaluate_probe_arguments, compute_probe_arg)
1693 (compile_probe_arg): Update.
1694 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
1696 (handle_stap_probe): Don't relocate the probe.
1697 (stap_relocate): Remove.
1698 (stap_gen_info_probes_table_values): Update.
1699 (stap_probe_ops): Remove stap_relocate.
1700 * symfile-debug.c (debug_sym_relocate_probe): Remove.
1701 (debug_sym_probe_fns): Update.
1702 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
1703 * symtab.c (init_sal): Use memset.
1704 * symtab.h (struct symtab_and_line) <objfile>: New field.
1705 * tracepoint.c (start_tracing, stop_tracing): Update.
1707 2014-03-03 Tom Tromey <tromey@redhat.com>
1709 * probe.h (parse_probes, find_probe_by_pc)
1710 (find_probes_in_objfile): Fix comments.
1712 2014-03-02 Doug Evans <xdje42@gmail.com>
1714 * infrun.c (handle_signal_stop): Replace test for
1715 TARGET_WAITKIND_STOPPED with an assert.
1717 2014-03-02 Doug Evans <xdje42@gmail.com>
1719 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
1721 2014-03-02 Doug Evans <xdje42@gmail.com>
1723 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
1725 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1727 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
1729 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1731 * i386obsd-nat.c: Include "obsd-nat.h".
1732 (_initialize_i386obsd_nat): Call obsd_add_target instead of
1734 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
1736 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1738 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
1740 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1742 * mips64obsd-nat.c: Include "obsd-nath".
1743 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
1745 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
1747 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1749 * amd64obsd-nat.c: Include "obsd-nat,h.
1750 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
1752 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
1754 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
1756 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
1757 (find_overload_match): Update call to find_oload_champ.
1758 (find_oload_champ_namespace_loop): Likewise
1760 2014-02-28 Mark Kettenis <kettenis@gnu.org>
1762 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
1764 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
1765 * config/sparc/obsd64.mh: New file.
1766 * sparc64obsd-nat.c: New file.
1768 * obsd-nat.h: New file.
1769 * obsd-nat.c: New file.
1770 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
1771 (ALLDEPFILES): Add obsd-nat.c.
1773 2014-02-28 Tom Tromey <tromey@redhat.com>
1775 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
1776 * cli-out.h (cli_ui_out_impl): Now const.
1777 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
1778 * ui-out.c (struct ui_out) <impl>: Now const.
1779 (default_ui_out_impl): Now const.
1780 (ui_out_new): Make 'impl' parameter const.
1781 * ui-out.h (ui_out_new): Update.
1783 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1785 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
1787 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1789 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
1791 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1793 Additional PR 8882 fix.
1794 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
1796 2014-02-27 Pedro Alves <palves@redhat.com>
1798 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
1801 2014-02-27 Pedro Alves <palves@redhat.com>
1804 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
1805 * nat/linux-waitpid.c: Include string.h.
1806 (status_to_str): Moved here and made extern.
1807 * nat/linux-waitpid.h (status_to_str): New declaration.
1809 2014-02-27 Hui Zhu <hui@codesourcery.com>
1812 * infrun.c (ptid_match): Move ...
1813 * common/ptid.c (ptid_match): ... here.
1814 * inferior.h (ptid_match): Move ...
1815 * common/ptid.h (ptid_match): ... here.
1817 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1819 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
1820 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
1823 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1825 * obsd-tdep.c (obsd_auxv_parse): New function.
1826 (obsd_init_abi): Set auxv_parse.
1828 * gdbarch.sh (auxv_parse): New.
1829 * gdbarch.h: Regenerated.
1830 * gdbarch.c: Regenerated.
1831 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
1833 2014-02-26 Ludovic Courtès <ludo@gnu.org>
1835 * guile/scm-value.c (gdbscm_history_append_x): New function.
1836 (value_functions): Add it.
1838 2014-02-27 Joel Brobecker <brobecker@adacore.com>
1840 * dwarf2read.c (attr_value_as_address): New function.
1841 (dwarf2_find_base_address, read_call_site_scope): Use
1842 attr_value_as_address in place of DW_ADDR.
1843 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
1844 the low and high addresses. Slight rework of the handling
1845 of the high pc being a constant form, and limit it to
1846 DWARF verson 4 or higher.
1847 (dwarf2_record_block_ranges): Likewise.
1848 (read_partial_die): Likewise.
1849 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
1851 2014-02-26 Tom Tromey <tromey@redhat.com>
1853 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
1855 2014-02-26 Tom Tromey <tromey@redhat.com>
1857 * elfread.c (elf_read_minimal_symbols): Return early if
1858 minimal symbols have already been read. Add "ei" parameter.
1859 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
1860 * minsyms.c (prim_record_minimal_symbol_full): Update.
1861 * objfiles.h (struct objstats) <n_minsyms>: Move...
1862 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
1863 * symmisc.c (print_objfile_statistics): Update.
1865 2014-02-26 Tom Tromey <tromey@redhat.com>
1867 * elfread.c (elf_read_minimal_symbols): New function, from
1869 (elf_symfile_read): Call it.
1871 2014-02-26 Tom Tromey <tromey@redhat.com>
1873 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
1874 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
1875 (lookup_minimal_symbol_solib_trampoline)
1876 (lookup_minimal_symbol_by_pc_section_1)
1877 (lookup_minimal_symbol_and_objfile): Update.
1878 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
1879 Don't allocate a minimal symbol if minsyms have already been read.
1880 (build_minimal_symbol_hash_tables): Update.
1881 (install_minimal_symbols): Do nothing if minsyms already read.
1882 Use the per-BFD obstack.
1883 (terminate_minimal_symbol_table): Use the per-BFD obstack.
1884 * objfiles.c (allocate_objfile): Call
1885 terminate_minimal_symbol_table later.
1886 (have_minimal_symbols): Update.
1887 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
1888 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
1889 Move from struct objfile.
1890 <minsyms_read>: New field.
1891 (struct objfile) <msymbols, minimal_symbol_count,
1892 msymbol_hash, msymbol_demangled_hash>: Move.
1893 (ALL_OBJFILE_MSYMBOLS): Update.
1894 * symfile.c (read_symbols): Set minsyms_read.
1895 (reread_symbols): Update.
1896 * symmisc.c (dump_objfile, dump_msymbols): Update.
1898 2014-02-26 Tom Tromey <tromey@redhat.com>
1900 * minsyms.c (msymbols_sort): Remove.
1901 * minsyms.h (msymbols_sort): Remove.
1902 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
1903 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
1904 * elfread.c (elf_symtab_read): Don't add section offsets.
1905 * xcoffread.c (record_minimal_symbol): Don't add section offset
1906 to minimal symbol address.
1907 * somread.c (text_offset, data_offset): Remove.
1908 (som_symtab_read): Don't add section offsets to minimal symbol
1910 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
1911 Don't add section offsets to minimal symbols.
1912 * coffread.c (coff_symtab_read): Don't add section offsets
1913 to minimal symbol addresses.
1914 * machoread.c (macho_symtab_add_minsym): Don't add section offset
1915 to minimal symbol addresses.
1916 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
1917 section offset to minimal symbol addresses.
1918 * mdebugread.c (parse_partial_symbols): Don't add section
1919 offset to minimal symbol addresses.
1920 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
1921 offset to minimal symbol addresses.
1923 2014-02-26 Tom Tromey <tromey@redhat.com>
1925 * ada-lang.c (ada_main_name): Update.
1926 (ada_add_standard_exceptions): Update.
1927 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
1928 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
1929 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
1930 * auxv.c (ld_so_xfer_auxv): Update.
1931 * avr-tdep.c (avr_scan_prologue): Update.
1932 * ax-gdb.c (gen_var_ref): Update.
1933 * blockframe.c (get_pc_function_start)
1934 (find_pc_partial_function_gnu_ifunc): Update.
1935 * breakpoint.c (create_overlay_event_breakpoint)
1936 (create_longjmp_master_breakpoint)
1937 (create_std_terminate_master_breakpoint)
1938 (create_exception_master_breakpoint): Update.
1939 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
1940 * c-valprint.c (c_val_print): Update.
1941 * coff-pe-read.c (add_pe_forwarded_sym): Update.
1942 * common/agent.c (agent_look_up_symbols): Update.
1943 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
1944 * dwarf2loc.c (call_site_to_target_addr): Update.
1945 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
1946 * elfread.c (elf_gnu_ifunc_record_cache)
1947 (elf_gnu_ifunc_resolve_by_got): Update.
1948 * findvar.c (default_read_var_value): Update.
1949 * frame.c (inside_main_func): Update.
1950 * frv-tdep.c (frv_frame_this_id): Update.
1951 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
1952 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
1954 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
1955 (hppa_hpux_find_dummy_bpaddr): Update.
1956 * hppa-tdep.c (hppa_symbol_address): Update.
1957 * infcmd.c (until_next_command): Update.
1958 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
1960 * linespec.c (minsym_found, add_minsym): Update.
1961 * linux-nat.c (get_signo): Update.
1962 * linux-thread-db.c (inferior_has_bug): Update.
1963 * m32c-tdep.c (m32c_return_value)
1964 (m32c_m16c_address_to_pointer): Update.
1965 * m32r-tdep.c (m32r_frame_this_id): Update.
1966 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
1967 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
1968 * maint.c (maintenance_translate_address): Update.
1969 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
1970 (frob_address): New function.
1971 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
1972 frob_address. Rename parameter to "pc_in".
1973 (compare_minimal_symbols, compact_minimal_symbols): Use raw
1975 (find_solib_trampoline_target, minimal_symbol_upper_bound):
1977 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
1978 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
1979 * objc-lang.c (find_objc_msgsend): Update.
1980 * objfiles.c (objfile_relocate1): Update.
1981 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
1982 * p-valprint.c (pascal_val_print): Update.
1983 * parse.c (write_exp_msymbol): Update.
1984 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
1985 (ppc_elfv2_skip_entrypoint): Update.
1986 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1987 * printcmd.c (build_address_symbolic, msym_info)
1988 (address_info): Update.
1989 * proc-service.c (ps_pglobal_lookup): Update.
1990 * psymtab.c (find_pc_sect_psymtab_closer)
1991 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
1992 Change msymbol parameter to bound_minimal_symbol.
1993 * ravenscar-thread.c (get_running_thread_id): Update.
1994 * remote.c (remote_check_symbols): Update.
1995 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
1997 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
1998 * solib-dsbt.c (lm_base): Update.
1999 * solib-frv.c (lm_base, main_got): Update.
2000 * solib-irix.c (locate_base): Update.
2001 * solib-som.c (som_solib_create_inferior_hook)
2002 (link_map_start): Update.
2003 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
2004 * solib-svr4.c (elf_locate_base, enable_break): Update.
2005 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2006 (flush_ea_cache): Update.
2007 * stabsread.c (define_symbol, scan_file_globals): Update.
2008 * stack.c (find_frame_funname): Update.
2009 * symfile-debug.c (debug_qf_expand_symtabs_matching)
2010 (debug_qf_find_pc_sect_symtab): Update.
2011 * symfile.c (simple_read_overlay_table)
2012 (simple_overlay_update): Update.
2013 * symfile.h (struct quick_symbol_functions)
2014 <find_pc_sect_symtab>: Change type of msymbol to
2015 bound_minimal_symbol.
2016 * symmisc.c (dump_msymbols): Update.
2017 * symtab.c (find_pc_sect_symtab_via_partial)
2018 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
2019 (search_symbols, print_msymbol_info): Update.
2020 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
2021 (MSYMBOL_VALUE_ADDRESS): Redefine.
2022 (BMSYMBOL_VALUE_ADDRESS): New macro.
2023 * tracepoint.c (scope_info): Update.
2024 * tui/tui-disasm.c (tui_find_disassembly_address)
2025 (tui_get_begin_asm_address): Update.
2026 * valops.c (find_function_in_inferior): Update.
2027 * value.c (value_static_field, value_fn_field): Update.
2029 2014-02-26 Tom Tromey <tromey@redhat.com>
2031 * ada-lang.c (ada_update_initial_language): Update.
2032 (ada_main_name, ada_has_this_exception_support): Update.
2033 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
2034 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2035 * arm-tdep.c (arm_skip_stub): Update.
2036 * auxv.c (ld_so_xfer_auxv): Update.
2037 * avr-tdep.c (avr_scan_prologue): Update.
2038 * ax-gdb.c (gen_var_ref): Update.
2039 * breakpoint.c (struct breakpoint_objfile_data)
2040 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
2041 type to bound_minimal_symbol.
2042 (create_overlay_event_breakpoint)
2043 (create_longjmp_master_breakpoint)
2044 (create_std_terminate_master_breakpoint)
2045 (create_exception_master_breakpoint): Update.
2046 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2047 * c-exp.y (classify_name): Update.
2048 * coffread.c (coff_symfile_read): Update.
2049 * common/agent.c (agent_look_up_symbols): Update.
2050 * d-lang.c (d_main_name): Update.
2051 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
2052 * dec-thread.c (enable_dec_thread): Update.
2053 * dwarf2loc.c (call_site_to_target_addr): Update.
2054 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
2055 * eval.c (evaluate_subexp_standard): Update.
2056 * findvar.c (struct minsym_lookup_data) <result>: Change type
2057 to bound_minimal_symbol.
2059 (minsym_lookup_iterator_cb, default_read_var_value): Update.
2060 * frame.c (inside_main_func): Update.
2061 * frv-tdep.c (frv_frame_this_id): Update.
2062 * gcore.c (call_target_sbrk): Update.
2063 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2064 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2066 * go-lang.c (go_main_name): Update.
2067 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
2068 (hppa_hpux_find_import_stub_for_addr): Update.
2069 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
2070 Update. Change return type.
2071 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
2073 * jit.c (jit_breakpoint_re_set_internal): Update.
2074 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
2076 * linux-nat.c (get_signo): Update.
2077 * linux-thread-db.c (inferior_has_bug): Update
2078 * m32c-tdep.c (m32c_return_value)
2079 (m32c_m16c_address_to_pointer): Update.
2080 * m32r-tdep.c (m32r_frame_this_id): Update.
2081 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2082 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2083 * minsyms.c (lookup_minimal_symbol_internal): Rename to
2084 lookup_minimal_symbol. Change return type.
2085 (lookup_minimal_symbol): Remove.
2086 (lookup_bound_minimal_symbol): Update.
2087 (lookup_minimal_symbol_text): Change return type.
2088 (lookup_minimal_symbol_solib_trampoline): Change return type.
2089 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
2090 (lookup_minimal_symbol_solib_trampoline): Change return type.
2091 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2092 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2093 (value_nsstring, find_imps): Update.
2094 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2095 * p-lang.c (pascal_main_name): Update.
2096 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
2097 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2098 * proc-service.c (ps_pglobal_lookup): Update.
2099 * ravenscar-thread.c (get_running_thread_msymbol): Change
2101 (has_ravenscar_runtime, get_running_thread_id): Update.
2102 * remote.c (remote_check_symbols): Update.
2103 * sol-thread.c (ps_pglobal_lookup): Update.
2104 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2105 * solib-dsbt.c (lm_base): Update.
2106 * solib-frv.c (lm_base, frv_relocate_section_addresses):
2108 * solib-irix.c (locate_base): Update.
2109 * solib-som.c (som_solib_create_inferior_hook)
2110 (som_solib_desire_dynamic_linker_symbols, link_map_start):
2112 * solib-spu.c (spu_enable_break): Update.
2113 * solib-svr4.c (elf_locate_base, enable_break): Update.
2114 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2115 (flush_ea_cache): Update.
2116 * stabsread.c (define_symbol): Update.
2117 * symfile.c (simple_read_overlay_table): Update.
2118 * symtab.c (find_pc_sect_line): Update.
2119 * tracepoint.c (scope_info): Update.
2120 * tui-disasm.c (tui_get_begin_asm_address): Update.
2121 * value.c (value_static_field): Update.
2123 2014-02-26 Tom Tromey <tromey@redhat.com>
2125 * minsyms.c (prim_record_minimal_symbol_full): Use
2126 SET_MSYMBOL_VALUE_ADDRESS.
2127 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
2128 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
2129 SET_MSYMBOL_VALUE_ADDRESS.
2130 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2131 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
2133 2014-02-26 Tom Tromey <tromey@redhat.com>
2135 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
2136 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
2137 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
2138 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
2139 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
2140 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
2141 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
2142 * ada-lang.c (ada_main_name): Update.
2143 (ada_lookup_simple_minsym): Update.
2144 (ada_make_symbol_completion_list): Update.
2145 (ada_add_standard_exceptions): Update.
2146 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
2147 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2148 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
2149 * arm-tdep.c (skip_prologue_function): Update.
2150 (arm_skip_stack_protector, arm_skip_stub): Update.
2151 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
2152 (arm_wince_skip_main_prologue): Update.
2153 * auxv.c (ld_so_xfer_auxv): Update.
2154 * avr-tdep.c (avr_scan_prologue): Update.
2155 * ax-gdb.c (gen_var_ref): Update.
2156 * block.c (call_site_for_pc): Update.
2157 * blockframe.c (get_pc_function_start): Update.
2158 (find_pc_partial_function_gnu_ifunc): Update.
2159 * breakpoint.c (create_overlay_event_breakpoint): Update.
2160 (create_longjmp_master_breakpoint): Update.
2161 (create_std_terminate_master_breakpoint): Update.
2162 (create_exception_master_breakpoint): Update.
2163 (resolve_sal_pc): Update.
2164 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2165 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
2167 * c-valprint.c (c_val_print): Update.
2168 * coff-pe-read.c (add_pe_forwarded_sym): Update.
2169 * coffread.c (coff_symfile_read): Update.
2170 * common/agent.c (agent_look_up_symbols): Update.
2171 * dbxread.c (find_stab_function_addr): Update.
2172 (end_psymtab): Update.
2173 * dwarf2loc.c (call_site_to_target_addr): Update.
2174 (func_verify_no_selftailcall): Update.
2175 (tailcall_dump): Update.
2176 (call_site_find_chain_1): Update.
2177 (dwarf_expr_reg_to_entry_parameter): Update.
2178 * elfread.c (elf_gnu_ifunc_record_cache): Update.
2179 (elf_gnu_ifunc_resolve_by_got): Update.
2180 * f-valprint.c (info_common_command): Update.
2181 * findvar.c (read_var_value): Update.
2182 * frame.c (get_prev_frame_1): Update.
2183 (inside_main_func): Update.
2184 * frv-tdep.c (frv_skip_main_prologue): Update.
2185 (frv_frame_this_id): Update.
2186 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2187 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
2188 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
2189 (gnuv3_skip_trampoline): Update.
2190 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
2191 (hppa64_hpux_in_solib_call_trampoline): Update.
2192 (hppa_hpux_skip_trampoline_code): Update.
2193 (hppa64_hpux_search_dummy_call_sequence): Update.
2194 (hppa_hpux_find_import_stub_for_addr): Update.
2195 (hppa_hpux_find_dummy_bpaddr): Update.
2196 * hppa-tdep.c (hppa_symbol_address)
2197 (hppa_lookup_stub_minimal_symbol): Update.
2198 * i386-tdep.c (i386_skip_main_prologue): Update.
2199 (i386_pe_skip_trampoline_code): Update.
2200 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
2201 * infcall.c (get_function_name): Update.
2202 * infcmd.c (until_next_command): Update.
2203 * jit.c (jit_breakpoint_re_set_internal): Update.
2204 (jit_inferior_init): Update.
2205 * linespec.c (minsym_found): Update.
2206 (add_minsym): Update.
2207 * linux-fork.c (info_checkpoints_command): Update.
2208 * linux-nat.c (get_signo): Update.
2209 * linux-thread-db.c (inferior_has_bug): Update.
2210 * m32c-tdep.c (m32c_return_value): Update.
2211 (m32c_m16c_address_to_pointer): Update.
2212 (m32c_m16c_pointer_to_address): Update.
2213 * m32r-tdep.c (m32r_frame_this_id): Update.
2214 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2215 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2216 * maint.c (maintenance_translate_address): Update.
2217 * minsyms.c (add_minsym_to_hash_table): Update.
2218 (add_minsym_to_demangled_hash_table): Update.
2219 (msymbol_objfile): Update.
2220 (lookup_minimal_symbol): Update.
2221 (iterate_over_minimal_symbols): Update.
2222 (lookup_minimal_symbol_text): Update.
2223 (lookup_minimal_symbol_by_pc_name): Update.
2224 (lookup_minimal_symbol_solib_trampoline): Update.
2225 (lookup_minimal_symbol_by_pc_section_1): Update.
2226 (lookup_minimal_symbol_and_objfile): Update.
2227 (prim_record_minimal_symbol_full): Update.
2228 (compare_minimal_symbols): Update.
2229 (compact_minimal_symbols): Update.
2230 (build_minimal_symbol_hash_tables): Update.
2231 (install_minimal_symbols): Update.
2232 (terminate_minimal_symbol_table): Update.
2233 (find_solib_trampoline_target): Update.
2234 (minimal_symbol_upper_bound): Update.
2235 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2236 * mips-tdep.c (mips_stub_frame_sniffer): Update.
2237 (mips_skip_pic_trampoline_code): Update.
2238 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
2239 * objc-lang.c (selectors_info): Update.
2240 (classes_info): Update.
2241 (find_methods): Update.
2242 (find_imps): Update.
2243 (find_objc_msgsend): Update.
2244 * objfiles.c (objfile_relocate1): Update.
2245 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
2246 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2247 * p-valprint.c (pascal_val_print): Update.
2248 * parse.c (write_exp_msymbol): Update.
2249 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
2250 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
2251 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2252 * printcmd.c (build_address_symbolic): Update.
2254 (address_info): Update.
2255 * proc-service.c (ps_pglobal_lookup): Update.
2256 * psymtab.c (find_pc_sect_psymtab_closer): Update.
2257 (find_pc_sect_psymtab): Update.
2258 * python/py-framefilter.c (py_print_frame): Update.
2259 * ravenscar-thread.c (get_running_thread_id): Update.
2260 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
2262 * remote.c (remote_check_symbols): Update.
2263 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
2264 (rs6000_skip_trampoline_code): Update.
2265 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
2266 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2267 * solib-dsbt.c (lm_base): Update.
2268 * solib-frv.c (lm_base): Update.
2270 * solib-irix.c (locate_base): Update.
2271 * solib-som.c (som_solib_create_inferior_hook): Update.
2272 (som_solib_desire_dynamic_linker_symbols): Update.
2273 (link_map_start): Update.
2274 * solib-spu.c (spu_enable_break): Update.
2275 (ocl_enable_break): Update.
2276 * solib-svr4.c (elf_locate_base): Update.
2277 (enable_break): Update.
2278 * spu-tdep.c (spu_get_overlay_table): Update.
2279 (spu_catch_start): Update.
2280 (flush_ea_cache): Update.
2281 * stabsread.c (define_symbol): Update.
2282 (scan_file_globals): Update.
2283 * stack.c (find_frame_funname): Update.
2284 (frame_info): Update.
2285 * symfile.c (simple_read_overlay_table): Update.
2286 (simple_overlay_update): Update.
2287 * symmisc.c (dump_msymbols): Update.
2288 * symtab.c (fixup_section): Update.
2289 (find_pc_sect_line): Update.
2290 (skip_prologue_sal): Update.
2291 (search_symbols): Update.
2292 (print_msymbol_info): Update.
2293 (rbreak_command): Update.
2294 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
2295 (completion_list_objc_symbol): Update.
2296 (default_make_symbol_completion_list_break_on): Update.
2297 * tracepoint.c (scope_info): Update.
2298 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
2299 (tui_get_begin_asm_address): Update.
2300 * valops.c (find_function_in_inferior): Update.
2301 * value.c (value_static_field): Update.
2302 (value_fn_field): Update.
2304 2014-02-26 Tom Tromey <tromey@redhat.com>
2306 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
2307 bound minimal symbols. Move code that knows about minsym
2309 * minsyms.c (minimal_symbol_upper_bound): ... here. New
2311 * minsyms.h (minimal_symbol_upper_bound): Declare.
2312 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
2313 minimal_symbol_upper_bound.
2315 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2317 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
2318 Use the type's name if its basic type does not have a tag.
2320 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2322 * dwarf2read.c (read_subrange_type): Add comment.
2324 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2326 * dwarf2read.c (update_enumeration_type_from_children): New
2327 function, mostly extracted from process_structure_scope.
2328 (read_enumeration_type): Call update_enumeration_type_from_children.
2329 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
2330 and flag_flag_enum fields.
2332 2014-02-26 Pedro Alves <palves@redhat.com>
2334 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
2335 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
2336 to_xfer_partial method.
2338 2014-02-26 Pedro Alves <palves@redhat.com>
2340 * target.c (complete_target_initialization): Don't install
2341 default_xfer_partial as to_xfer_partial hook.
2343 (update_current_target): Don't INHERIT nor de_fault
2344 deprecated_xfer_memory. Delete de_fault macro.
2345 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
2346 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
2347 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
2350 2014-02-26 Pedro Alves <palves@redhat.com>
2352 * go32-nat.c (my_write_child): New function.
2353 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
2354 (go32_xfer_partial): New function.
2355 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
2356 Instead install a to_xfer_partial hook.
2358 2014-02-26 Pedro Alves <palves@redhat.com>
2360 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
2361 to_xfer_partial helper. Rewrite.
2362 (procfs_xfer_partial): New function.
2363 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
2364 Install a to_xfer_partial hook.
2366 2014-02-26 Pedro Alves <palves@redhat.com>
2368 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
2369 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
2370 (m32r_xfer_partial): New function.
2371 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
2372 Install a to_xfer_partial hook.
2374 2014-02-26 Pedro Alves <palves@redhat.com>
2376 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
2378 (mips_xfer_partial): New function.
2379 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
2380 hook. Install a to_xfer_partial hook.
2382 2014-02-26 Joel Brobecker <brobecker@adacore.com>
2384 * gdbtypes.h (create_array_type_with_stride): Add declaration.
2385 * gdbtypes.c (create_array_type_with_stride): New function,
2386 renaming create_array_type, but with an added parameter
2387 called "bit_stride".
2388 (create_array_type): Re-implement using
2389 create_array_type_with_stride.
2390 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
2391 and DW_AT_bit_stride attributes.
2393 2014-02-26 Pedro Alves <palves@redhat.com>
2395 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
2396 task-specific breakpoints.
2398 2014-02-25 Pedro Alves <palves@redhat.com>
2400 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
2401 handling of object == TARGET_OBJECT_UNWIND_TABLE.
2403 2014-02-25 Stan Shebs <stan@codesourcery.com>
2405 * defs.h: Annotate comments for Doxygen.
2407 2014-02-25 Tom Tromey <tromey@redhat.com>
2409 * target.h (target_ignore): Don't declare.
2410 * target.c (target_ignore): Remove.
2412 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2415 * auto-load.c (auto_load_objfile_script_1): Change filename to
2418 2014-02-25 Joel Brobecker <brobecker@adacore.com>
2420 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
2421 documentation. Adjust prototype to match the target_ops
2422 to_xfer_partial method. Adjust implementation accordingly.
2424 2014-02-25 Hui Zhu <hui@codesourcery.com>
2426 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
2429 2014-02-25 Kevin Buettner <kevinb@redhat.com>
2431 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
2432 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
2433 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
2434 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
2435 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
2436 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
2437 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
2438 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
2440 (rl78_register_type): Use a data pointer type for SP and
2441 new pseudo registers mentioned above. Use a 16 bit integer
2442 type for all other register pairs.
2443 (rl78_register_name, rl78_g10_register_name): Update for
2444 new pseudo registers.
2445 (rl78_pseudo_register_read): Likewise.
2446 (rl78_pseudo_register_write): Likewise.
2447 (rl78_dwarf_reg_to_regnum): Return register numbers representing
2448 to the newly added pseudo registers.
2450 2014-02-24 Doug Evans <dje@google.com>
2452 * value.c (record_latest_value): Fix comment.
2453 * printcmd.c (print_command_1): Remove code to handle -1 return from
2454 record_latest_value.
2456 2014-02-24 Pedro Alves <palves@redhat.com>
2458 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
2459 deprecated_xfer_memory hook.
2460 (procfs_xfer_partial): Call procfs_xfer_memory instead
2461 of the deprecated_xfer_memory target hook.
2462 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
2465 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
2467 * windows-nat.c (windows_xfer_shared_libraries): Return
2468 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
2469 requested object is TARGET_OBJECT_LIBRARIES.
2471 2014-02-24 Yao Qi <yao@codesourcery.com>
2473 * target.h (enum target_xfer_status)
2474 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
2475 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
2477 * corefile.c (memory_error_message): User updated.
2478 * exec.c (section_table_read_available_memory): Likewise.
2479 * record-btrace.c (record_btrace_xfer_partial): Likewise.
2480 * target.c (target_xfer_status_to_string): Likewise.
2481 (raw_memory_xfer_partial): Likewise.
2482 (memory_xfer_partial_1, target_xfer_partial): Likewise.
2483 * valops.c (read_value_memory): Likewise.
2484 * exec.h: Update comments.
2486 2014-02-24 Yao Qi <yao@codesourcery.com>
2488 * target.c (target_xfer_status_to_string): Rename argument err
2490 * target.h (target_xfer_status_to_string): Update declaration.
2491 Replace target_xfer_error_to_string with
2492 target_xfer_status_to_string in comment.
2494 2014-02-24 Yao Qi <yao@codesourcery.com>
2496 * mips-linux-nat.c (super_close): Update its type.
2497 (mips_linux_close): Pass 'self' to super_close.
2499 2014-02-24 Yao Qi <yao@codesourcery.com>
2501 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
2502 * corefile.c (read_memory): Adjusted.
2503 * target.c (target_write_with_progress): Adjusted.
2505 2014-02-23 Yao Qi <yao@codesourcery.com>
2509 2013-10-25 Yao Qi <yao@codesourcery.com>
2511 * remote.c (remote_traceframe_info): Return early if
2512 traceframe is not selected.
2514 2013-07-19 Yao Qi <yao@codesourcery.com>
2516 * target.c (update_current_target): Change the default action
2517 of 'to_traceframe_info' from tcomplain to return_zero.
2518 * target.h (struct target_ops) <to_traceframe_info>: Add more
2521 2014-02-23 Yao Qi <yao@codesourcery.com>
2523 * valops.c (read_value_memory): Rewrite it. Call
2524 target_xfer_partial in a loop.
2525 * exec.h (section_table_available_memory): Remove declaration.
2526 Move comments to ...
2527 * exec.c (section_table_available_memory): ... here. Make it
2530 2014-02-23 Yao Qi <yao@codesourcery.com>
2532 * exec.c (section_table_read_available_memory): New function.
2533 * exec.h (section_table_read_available_memory): Declare.
2534 * ctf.c (ctf_xfer_partial): Call
2535 section_table_read_available_memory.
2536 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2538 2014-02-23 Yao Qi <yao@codesourcery.com>
2540 * ctf.c (ctf_xfer_partial): Move code to ...
2541 * exec.c (exec_read_partial_read_only): ... it. New function.
2542 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2543 * tracefile.c: Include "exec.h".
2544 * exec.h (exec_read_partial_read_only): Declare.
2546 2014-02-23 Yao Qi <yao@codesourcery.com>
2548 * tracefile-tfile.c (tfile_has_all_memory): Remove.
2549 (tfile_has_memory): Remove.
2550 (init_tfile_ops): Don't set fields to_has_all_memory and
2551 to_has_memory of tfile_ops.
2552 * tracefile.c (tracefile_has_all_memory): New function.
2553 (tracefile_has_memory): New function.
2554 (init_tracefile_ops): Initialize fields to_has_all_memory and
2555 to_has_memory of 'ops'.
2557 2014-02-23 Yao Qi <yao@codesourcery.com>
2559 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
2560 (ctf_thread_alive, ctf_get_trace_status): Remove.
2561 (init_ctf_ops): Don't set some fields of ctf_ops. Call
2563 * tracefile-tfile.c (tfile_get_trace_status): Remove.
2564 (tfile_has_stack, tfile_has_registers): Remove.
2565 (tfile_thread_alive): Remove.
2566 (init_tfile_ops): Don't set some fields of tfile_ops. Call
2568 * tracefile.c (tracefile_has_stack): New function.
2569 (tracefile_has_registers): New function.
2570 (tracefile_thread_alive): New function.
2571 (tracefile_get_trace_status): New function.
2572 (init_tracefile_ops): New function.
2573 * tracefile.h (init_tracefile_ops): Declare.
2575 2014-02-23 Yao Qi <yao@codesourcery.com>
2577 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
2578 (O_LARGEFILE): Likewise.
2579 (tfile_ops): Likewise.
2580 (TRACE_HEADER_SIZE): Likewise.
2581 (trace_fd, trace_frames_offset, cur_offset): Likewise.
2582 (cur_data_size): Likewise.
2583 (tfile_read, tfile_open, tfile_interp_line): Likewise.
2584 (tfile_close, tfile_files_info): Likewise.
2585 (tfile_get_trace_status): Likewise.
2586 (tfile_get_tracepoint_status): Likewise.
2587 (tfile_get_traceframe_address): Likewise.
2588 (tfile_trace_find, match_blocktype): Likewise.
2589 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
2590 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
2591 (tfile_get_trace_state_variable_value): Likewise.
2592 (tfile_has_all_memory, tfile_has_memory): Likewise.
2593 (tfile_has_stack, tfile_has_registers): Likewise.
2594 (tfile_thread_alive, build_traceframe_info): Likewise.
2595 (tfile_traceframe_info, init_tfile_ops): Likewise.
2596 (_initialize_tracepoint): Don't call init_tfile_ops
2597 and add_target_with_completer.
2598 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
2599 exec.h, completer.h and filenames.h.
2600 (_initialize_tracefile_tfile): New function.
2602 2014-02-23 Yao Qi <yao@codesourcery.com>
2604 * Makefile.in (REMOTE_OBS): Append tracefile.o and
2606 (HFILES_NO_SRCDIR): Add tracefile.h.
2607 * ctf.c: Include "tracefile.h".
2608 * tracefile.h: New file.
2609 * tracefile.c: New file
2610 * tracefile-tfile.c: New file.
2611 * tracepoint.c: Include "tracefile.h".
2612 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
2613 (stop_reason_names): Add const.
2614 (trace_file_writer_xfree): Move it to tracefile.c.
2615 (trace_save, trace_save_command, trace_save_tfile): Likewise.
2616 (trace_save_ctf): Likewise.
2617 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
2618 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
2619 (tfile_write_header, tfile_write_regblock_type): Likewise.
2620 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
2621 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
2622 (tfile_write_raw_data, tfile_end): Likewise.
2623 (tfile_trace_file_writer_new): Likewise.
2624 (free_uploaded_tp): Make it extern.
2625 (free_uploaded_tsv): Make it extern.
2626 (_initialize_tracepoint): Move code to register command 'tsave'
2628 * tracepoint.h (stop_reason_names): Declare.
2629 (struct trace_frame_write_ops): Move it to tracefile.h.
2630 (struct trace_file_write_ops): Likewise.
2631 (struct trace_file_writer): Likewise.
2632 (free_uploaded_tsvs, free_uploaded_tps): Declare.
2634 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2637 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
2639 (get_cores_used_by_process): New parameter num_cores, use it.
2640 (linux_xfer_osdata_processes): Pass num_cores to it.
2641 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
2644 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
2646 * target.c (memory_xfer_partial): Fix length arg in call to
2647 breakpoint_xfer_memory.
2649 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
2652 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
2653 number comes after the + or - signs. Adjust length of register
2654 name to be extracted.
2656 2014-02-20 Tom Tromey <tromey@redhat.com>
2658 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
2659 (ada_varobj_ops): Mark "extern".
2661 2014-02-20 Tom Tromey <tromey@redhat.com>
2663 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
2665 2014-02-20 Doug Evans <xdje42@gmail.com>
2667 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
2668 All callers updated.
2669 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
2670 All callers updated.
2671 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
2672 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
2674 2014-02-20 lin zuojian <manjian2006@gmail.com>
2675 Joel Brobecker <brobecker@adacore.com>
2676 Doug Evans <xdje42@gmail.com>
2679 * dwarf2read.c (struct die_info): New member in_process.
2680 (reset_die_in_process): New function.
2681 (process_die): Set it at the start, reset when returning.
2682 (inherit_abstract_dies): Only call process_die if origin_child_die
2683 not already being processed.
2685 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2687 * windows-nat.c (handle_unload_dll): Add function documentation.
2688 (do_initial_windows_stuff): Add comment explaining why we wait
2689 until after inferior initialization has finished before
2690 processing all DLLs.
2692 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2694 * windows-nat.c (get_module_name): Delete.
2695 (windows_get_exec_module_filename): New function, mostly
2696 inspired from get_module_name.
2697 (windows_pid_to_exec_file): Replace call to get_module_name
2698 by call to windows_get_exec_module_filename.
2700 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2702 * windows-nat.c (handle_load_dll): Rewrite this function's
2703 introductory comment. Remove code using get_module_name
2704 to get the DLL's name.
2706 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2708 * windows-nat.c (get_windows_debug_event): Ignore
2709 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
2710 if windows_initialization_done == 0.
2711 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
2712 Adjust implementation to always load all DLLs.
2713 (do_initial_windows_stuff): Replace call to
2714 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
2716 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2718 * windows-nat.c (_initialize_windows_nat): Deprecate the
2719 "dll-symbols" command. Turn the "add-shared-symbol-files"
2720 and "assf" aliases into commands, and deprecate them as well.
2721 * NEWS: Add entry explaining that "dll-symbols" and its two
2722 aliases are now deprecated.
2724 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2726 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
2727 new-line in debug string. Remove trailing spaces.
2729 2014-02-19 Stan Shebs <stan@codesourcery.com>
2731 * darwin-nat.c (darwin_xfer_partial): Fix return type.
2733 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
2735 * NEWS: Add entry for the new feature
2736 * python/py-value.c (valpy_binop): Call value_x_binop for struct
2739 2014-02-19 Stan Shebs <stan@codesourcery.com>
2741 * MAINTAINERS: List Yao Qi as nios2 maintainer.
2743 2014-02-19 Pedro Alves <palves@redhat.com>
2745 * common/ptid.h (struct ptid): Mention that process_stratum
2746 targets should prefer ptid.lwp.
2748 2014-02-19 Pedro Alves <palves@redhat.com>
2750 * remote.c (remote_thread_alive, write_ptid, read_ptid)
2751 (read_ptid, remote_newthread_step, remote_threads_extra_info)
2752 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
2753 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
2754 store remote thread ids rather than ptid.tid.
2755 (_initialize_remote): Adjust.
2757 2014-02-19 Tom Tromey <tromey@redhat.com>
2759 * target.c (target_get_unwinder): Rewrite.
2760 (target_get_tailcall_unwinder): Rewrite.
2761 * record-btrace.c (record_btrace_to_get_unwinder): New function.
2762 (record_btrace_to_get_tailcall_unwinder): New function.
2763 (init_record_btrace_ops): Update.
2764 * target.h (struct target_ops) <to_get_unwinder,
2765 to_get_tailcall_unwinder>: Now function pointers. Use
2766 TARGET_DEFAULT_RETURN.
2768 2014-02-19 Tom Tromey <tromey@redhat.com>
2770 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
2772 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
2774 2014-02-19 Tom Tromey <tromey@redhat.com>
2776 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
2778 * target-delegates.c: Rebuild.
2779 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
2780 TARGET_DEFAULT_FUNC.
2781 * target.c (default_target_decr_pc_after_break): Rename from
2782 forward_target_decr_pc_after_break. Simplify.
2783 (target_decr_pc_after_break): Rely on delegation.
2785 2014-02-19 Tom Tromey <tromey@redhat.com>
2787 * target.c (update_current_target): Do not INHERIT to_doc or
2788 to_magic. Do not de_fault to_open or to_close.
2790 2014-02-19 Tom Tromey <tromey@redhat.com>
2792 * gcore.h (objfile_find_memory_regions): Declare.
2793 * gcore.c (objfile_find_memory_regions): No longer static. Add
2795 (_initialize_gcore): Don't call exec_set_find_memory_regions.
2796 * exec.c: Include gcore.h.
2797 (exec_set_find_memory_regions): Remove.
2798 (exec_find_memory_regions): Remove.
2799 (exec_do_find_memory_regions): Remove.
2800 (init_exec_ops): Update.
2801 * defs.h (exec_set_find_memory_regions): Remove.
2803 2014-02-19 Tom Tromey <tromey@redhat.com>
2805 * target-delegates.c: Rebuild.
2806 * target.h (struct target_ops) <to_extra_thread_info,
2807 to_thread_name, to_pid_to_exec_file, to_get_section_table,
2808 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
2809 not 0, in TARGET_DEFAULT_RETURN.
2811 2014-02-19 Tom Tromey <tromey@redhat.com>
2813 * target.c (complete_target_initialization): Remove casts. Use
2814 return_zero_has_execution.
2815 (return_zero): Add "ignore" argument.
2816 (return_zero_has_execution): New function.
2817 (init_dummy_target): Remove casts. Use
2818 return_zero_has_execution.
2820 2014-02-19 Tom Tromey <tromey@redhat.com>
2822 * target.c (update_current_target): Update comments. Do not
2825 2014-02-19 Tom Tromey <tromey@redhat.com>
2827 * arm-linux-nat.c (arm_linux_read_description): Delegate when
2829 * corelow.c (core_read_description): Delegate when needed.
2830 * remote.c (remote_read_description): Delegate when needed.
2831 * target-delegates.c: Rebuild.
2832 * target.c (target_read_description): Rewrite.
2833 * target.h (struct target_ops) <to_read_description>: Update
2834 comment. Use TARGET_DEFAULT_RETURN.
2836 2014-02-19 Tom Tromey <tromey@redhat.com>
2838 * target-delegates.c: Rebuild.
2839 * target.c (update_current_target): Don't inherit or default
2841 (find_default_run_target): Check against delegate_can_run.
2842 * target.h (struct target_ops) <to_can_run>: Use
2843 TARGET_DEFAULT_RETURN.
2845 2014-02-19 Tom Tromey <tromey@redhat.com>
2847 * target-delegates.c: Rebuild.
2848 * target.c (target_disconnect): Unconditionally delegate.
2849 * target.h (struct target_ops) <to_disconnect>: Use
2850 TARGET_DEFAULT_NORETURN.
2852 2014-02-19 Tom Tromey <tromey@redhat.com>
2854 * record.c (record_stop): Unconditionally delegate.
2855 * target-delegates.c: Rebuild.
2856 * target.c (target_stop_recording): Unconditionally delegate.
2857 * target.h (struct target_ops) <to_stop_recording>: Use
2858 TARGET_DEFAULT_IGNORE.
2860 2014-02-19 Tom Tromey <tromey@redhat.com>
2862 * target-delegates.c: Rebuild.
2863 * target.c (target_enable_btrace): Unconditionally delegate.
2864 * target.h (struct target_ops) <to_enable_btrace>: Use
2865 TARGET_DEFAULT_NORETURN.
2867 2014-02-19 Tom Tromey <tromey@redhat.com>
2869 * target-delegates.c: Rebuild.
2870 * target.c (target_read_btrace): Unconditionally delegate.
2871 * target.h (struct target_ops) <to_read_btrace>: Use
2872 TARGET_DEFAULT_NORETURN.
2874 2014-02-19 Tom Tromey <tromey@redhat.com>
2876 * target-delegates.c: Rebuild.
2877 * target.c (target_teardown_btrace): Unconditionally delegate.
2878 * target.h (struct target_ops) <to_teardown_btrace>: Use
2879 TARGET_DEFAULT_NORETURN.
2881 2014-02-19 Tom Tromey <tromey@redhat.com>
2883 * target-delegates.c: Rebuild.
2884 * target.c (target_disable_btrace): Unconditionally delegate.
2885 * target.h (struct target_ops) <to_disable_btrace>: Use
2886 TARGET_DEFAULT_NORETURN.
2888 2014-02-19 Tom Tromey <tromey@redhat.com>
2890 * target-delegates.c: Rebuild.
2891 * target.c (default_search_memory): New function.
2892 (simple_search_memory): Update comment.
2893 (target_search_memory): Unconditionally delegate.
2894 * target.h (struct target_ops) <to_search_memory>: Use
2895 TARGET_DEFAULT_FUNC.
2897 2014-02-19 Tom Tromey <tromey@redhat.com>
2899 * auxv.c (default_auxv_parse): No longer static.
2900 (target_auxv_parse): Unconditionally delegate.
2901 * auxv.h (default_auxv_parse): Declare.
2902 * target-delegates.c: Rebuild.
2903 * target.c: Include auxv.h.
2904 * target.h (struct target_ops) <to_auxv_parse>: Use
2905 TARGET_DEFAULT_FUNC.
2907 2014-02-19 Tom Tromey <tromey@redhat.com>
2909 * target-delegates.c: Rebuild.
2910 * target.c (target_memory_map): Unconditionally delegate.
2911 * target.h (struct target_ops) <to_memory_map>: Use
2912 TARGET_DEFAULT_RETURN.
2914 2014-02-19 Tom Tromey <tromey@redhat.com>
2916 * target-delegates.c: Rebuild.
2917 * target.c (target_thread_alive): Unconditionally delegate.
2918 * target.h (struct target_ops) <to_thread_alive>: Use
2919 TARGET_DEFAULT_RETURN.
2921 2014-02-19 Tom Tromey <tromey@redhat.com>
2923 * target-delegates.c: Rebuild.
2924 * target.c (target_save_record): Unconditionally delegate.
2925 * target.h (struct target_ops) <to_save_record>: Use
2926 TARGET_DEFAULT_NORETURN.
2928 2014-02-19 Tom Tromey <tromey@redhat.com>
2930 * target-delegates.c: Rebuild.
2931 * target.c (target_delete_record): Unconditionally delegate.
2932 * target.h (struct target_ops) <to_delete_record>: Use
2933 TARGET_DEFAULT_NORETURN.
2935 2014-02-19 Tom Tromey <tromey@redhat.com>
2937 * target-delegates.c: Rebuild.
2938 * target.c (target_record_is_replaying): Unconditionally
2940 * target.h (struct target_ops) <to_record_is_replaying>: Use
2941 TARGET_DEFAULT_RETURN.
2943 2014-02-19 Tom Tromey <tromey@redhat.com>
2945 * target-delegates.c: Rebuild.
2946 * target.c (target_goto_record_begin): Unconditionally delegate.
2947 * target.h (struct target_ops) <to_goto_record_begin>: Use
2948 TARGET_DEFAULT_NORETURN.
2950 2014-02-19 Tom Tromey <tromey@redhat.com>
2952 * target-delegates.c: Rebuild.
2953 * target.c (target_goto_record_end): Unconditionally delegate.
2954 * target.h (struct target_ops) <to_goto_record_end>: Use
2955 TARGET_DEFAULT_NORETURN.
2957 2014-02-19 Tom Tromey <tromey@redhat.com>
2959 * target-delegates.c: Rebuild.
2960 * target.c (target_goto_record): Unconditionally delegate.
2961 * target.h (struct target_ops) <to_goto_record>: Use
2962 TARGET_DEFAULT_NORETURN.
2964 2014-02-19 Tom Tromey <tromey@redhat.com>
2966 * target-delegates.c: Rebuild.
2967 * target.c (target_insn_history): Unconditionally delegate.
2968 * target.h (struct target_ops) <to_insn_history>: Use
2969 TARGET_DEFAULT_NORETURN.
2971 2014-02-19 Tom Tromey <tromey@redhat.com>
2973 * target-delegates.c: Rebuild.
2974 * target.c (target_insn_history_from): Unconditionally delegate.
2975 * target.h (struct target_ops) <to_insn_history_from>: Use
2976 TARGET_DEFAULT_NORETURN.
2978 2014-02-19 Tom Tromey <tromey@redhat.com>
2980 * target-delegates.c: Rebuild.
2981 * target.c (target_insn_history_range): Unconditionally delegate.
2982 * target.h (struct target_ops) <to_insn_history_range>: Use
2983 TARGET_DEFAULT_NORETURN.
2985 2014-02-19 Tom Tromey <tromey@redhat.com>
2987 * target-delegates.c: Rebuild.
2988 * target.c (target_call_history): Unconditionally delegate.
2989 * target.h (struct target_ops) <to_call_history>: Use
2990 TARGET_DEFAULT_NORETURN.
2992 2014-02-19 Tom Tromey <tromey@redhat.com>
2994 * target-delegates.c: Rebuild.
2995 * target.c (target_call_history_from): Unconditionally delegate.
2996 * target.h (struct target_ops) <to_call_history_from>: Use
2997 TARGET_DEFAULT_NORETURN.
2999 2014-02-19 Tom Tromey <tromey@redhat.com>
3001 * target-delegates.c: Rebuild.
3002 * target.c (target_call_history_range): Unconditionally delegate.
3003 * target.h (struct target_ops) <to_call_history_range>: Use
3004 TARGET_DEFAULT_NORETURN.
3006 2014-02-19 Tom Tromey <tromey@redhat.com>
3008 * target-delegates.c: Rebuild.
3009 * target.c (target_verify_memory): Unconditionally delegate.
3010 * target.h (struct target_ops) <to_verify_memory>: Use
3011 TARGET_DEFAULT_NORETURN.
3013 2014-02-19 Tom Tromey <tromey@redhat.com>
3015 * target-delegates.c: Rebuild.
3016 * target.c (target_core_of_thread): Unconditionally delegate.
3017 * target.h (struct target_ops) <to_core_of_thread>: Use
3018 TARGET_DEFAULT_RETURN.
3020 2014-02-19 Tom Tromey <tromey@redhat.com>
3022 * target-delegates.c: Rebuild.
3023 * target.c (target_flash_done): Unconditionally delegate.
3024 * target.h (struct target_ops) <to_flash_done>: Use
3025 TARGET_DEFAULT_NORETURN.
3027 2014-02-19 Tom Tromey <tromey@redhat.com>
3029 * target-delegates.c: Rebuild.
3030 * target.c (target_flash_erase): Unconditionally delegate.
3031 * target.h (struct target_ops) <to_flash_erase>: Use
3032 TARGET_DEFAULT_NORETURN.
3034 2014-02-19 Tom Tromey <tromey@redhat.com>
3036 * target-delegates.c: Rebuild.
3037 * target.c (target_get_section_table): Unconditionally delegate.
3038 * target.h (struct target_ops) <to_get_section_table>: Use
3039 TARGET_DEFAULT_RETURN.
3041 2014-02-19 Tom Tromey <tromey@redhat.com>
3043 * target-delegates.c: Rebuild.
3044 * target.c (target_pid_to_str): Unconditionally delegate.
3045 (init_dummy_target): Don't initialize to_pid_to_str.
3046 (default_pid_to_str): Rename from dummy_pid_to_str.
3047 * target.h (struct target_ops) <to_pid_to_str>: Use
3048 TARGET_DEFAULT_FUNC.
3050 2014-02-19 Tom Tromey <tromey@redhat.com>
3052 * target-delegates.c: Rebuild.
3053 * target.c (target_find_new_threads): Unconditionally delegate.
3054 * target.h (struct target_ops) <to_find_new_threads>: Use
3055 TARGET_DEFAULT_RETURN.
3057 2014-02-19 Tom Tromey <tromey@redhat.com>
3059 * target-delegates.c: Rebuild.
3060 * target.c (target_program_signals): Unconditionally delegate.
3061 * target.h (struct target_ops) <to_program_signals>: Use
3062 TARGET_DEFAULT_IGNORE.
3064 2014-02-19 Tom Tromey <tromey@redhat.com>
3066 * target-delegates.c: Rebuild.
3067 * target.c (target_pass_signals): Unconditionally delegate.
3068 * target.h (struct target_ops) <to_pass_signals>: Use
3069 TARGET_DEFAULT_IGNORE.
3071 2014-02-19 Tom Tromey <tromey@redhat.com>
3073 * target-delegates.c: Rebuild.
3074 * target.c (default_mourn_inferior): New function.
3075 (target_mourn_inferior): Unconditionally delegate.
3076 * target.h (struct target_ops) <to_mourn_inferior>: Use
3077 TARGET_DEFAULT_FUNC.
3079 2014-02-19 Tom Tromey <tromey@redhat.com>
3081 * target-delegates.c: Rebuild.
3082 * target.c (default_follow_fork): New function.
3083 (target_follow_fork): Unconditionally delegate.
3084 * target.h (struct target_ops) <to_follow_fork>: Use
3085 TARGET_DEFAULT_FUNC.
3087 2014-02-19 Tom Tromey <tromey@redhat.com>
3089 * target-delegates.c: Rebuild.
3090 * target.c (target_kill): Unconditionally delegate.
3091 * target.h (struct target_ops) <to_kill>: Use
3092 TARGET_DEFAULT_NORETURN.
3094 2014-02-19 Tom Tromey <tromey@redhat.com>
3096 * target-delegates.c: Rebuild.
3097 * target.c (target_masked_watch_num_registers): Unconditionally
3099 * target.h (struct target_ops) <to_masked_watch_num_registers>:
3100 Use TARGET_DEFAULT_RETURN.
3102 2014-02-19 Tom Tromey <tromey@redhat.com>
3104 * target-delegates.c: Rebuild.
3105 * target.c (target_remove_mask_watchpoint): Unconditionally
3107 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
3108 TARGET_DEFAULT_RETURN.
3110 2014-02-19 Tom Tromey <tromey@redhat.com>
3112 * target-delegates.c: Rebuild.
3113 * target.c (target_insert_mask_watchpoint): Unconditionally
3115 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
3116 TARGET_DEFAULT_RETURN.
3118 2014-02-19 Tom Tromey <tromey@redhat.com>
3120 * target-delegates.c: Rebuild.
3121 * target.c (target_ranged_break_num_registers): Unconditionally
3123 * target.h (struct target_ops) <to_ranged_break_num_registers>:
3124 Use TARGET_DEFAULT_RETURN.
3126 2014-02-19 Tom Tromey <tromey@redhat.com>
3128 * target-delegates.c: Rebuild.
3129 * target.c (target_fetch_registers): Unconditionally delegate.
3130 * target.h (struct target_ops) <to_fetch_registers>: Use
3131 TARGET_DEFAULT_NORETURN.
3133 2014-02-19 Tom Tromey <tromey@redhat.com>
3135 * target-delegates.c: Rebuild.
3136 * target.c (update_current_target): Don't inherit or default
3138 * target.h (struct target_ops) <to_stop>: Use
3139 TARGET_DEFAULT_IGNORE.
3141 2014-02-19 Tom Tromey <tromey@redhat.com>
3143 * target-delegates.c: Rebuild.
3144 * target.c (update_current_target): Don't inherit or default
3145 to_can_run_breakpoint_commands.
3146 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
3147 Use TARGET_DEFAULT_RETURN.
3149 2014-02-19 Tom Tromey <tromey@redhat.com>
3151 * target-delegates.c: Rebuild.
3152 * target.c (update_current_target): Don't inherit or default
3153 to_supports_evaluation_of_breakpoint_conditions.
3154 * target.h (struct target_ops)
3155 <to_supports_evaluation_of_breakpoint_conditions>: Use
3156 TARGET_DEFAULT_RETURN.
3158 2014-02-19 Tom Tromey <tromey@redhat.com>
3160 * target-delegates.c: Rebuild.
3161 * target.c (update_current_target): Don't inherit or default
3162 to_augmented_libraries_svr4_read.
3163 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
3164 Use TARGET_DEFAULT_RETURN.
3166 2014-02-19 Tom Tromey <tromey@redhat.com>
3168 * target-delegates.c: Rebuild.
3169 * target.c (update_current_target): Don't inherit or default
3171 * target.h (struct target_ops) <to_can_use_agent>: Use
3172 TARGET_DEFAULT_RETURN.
3174 2014-02-19 Tom Tromey <tromey@redhat.com>
3176 * target-delegates.c: Rebuild.
3177 * target.c (update_current_target): Don't inherit or default
3179 * target.h (struct target_ops) <to_use_agent>: Use
3180 TARGET_DEFAULT_NORETURN.
3182 2014-02-19 Tom Tromey <tromey@redhat.com>
3184 * target-delegates.c: Rebuild.
3185 * target.c (update_current_target): Don't inherit or default
3187 (return_null): Remove.
3188 * target.h (struct target_ops) <to_traceframe_info>: Use
3189 TARGET_DEFAULT_RETURN.
3191 2014-02-19 Tom Tromey <tromey@redhat.com>
3193 * target-delegates.c: Rebuild.
3194 * target.c (update_current_target): Don't inherit or default
3195 to_static_tracepoint_markers_by_strid.
3196 * target.h (struct target_ops)
3197 <to_static_tracepoint_markers_by_strid>: Use
3198 TARGET_DEFAULT_NORETURN.
3200 2014-02-19 Tom Tromey <tromey@redhat.com>
3202 * target-delegates.c: Rebuild.
3203 * target.c (update_current_target): Don't inherit or default
3204 to_static_tracepoint_marker_at.
3205 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
3206 Use TARGET_DEFAULT_RETURN.
3208 2014-02-19 Tom Tromey <tromey@redhat.com>
3210 * target-delegates.c: Rebuild.
3211 * target.c (update_current_target): Don't inherit or default
3213 * target.h (struct target_ops) <to_set_permissions>: Use
3214 TARGET_DEFAULT_IGNORE.
3216 2014-02-19 Tom Tromey <tromey@redhat.com>
3218 * target-delegates.c: Rebuild.
3219 * target.c (update_current_target): Don't inherit or default
3221 * target.h (struct target_ops) <to_get_tib_address>: Use
3222 TARGET_DEFAULT_NORETURN.
3224 2014-02-19 Tom Tromey <tromey@redhat.com>
3226 * target-delegates.c: Rebuild.
3227 * target.c (update_current_target): Don't inherit or default
3229 * target.h (struct target_ops) <to_set_trace_notes>: Use
3230 TARGET_DEFAULT_RETURN.
3232 2014-02-19 Tom Tromey <tromey@redhat.com>
3234 * target-delegates.c: Rebuild.
3235 * target.c (update_current_target): Don't initialize
3236 to_set_trace_buffer_size.
3237 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
3238 TARGET_DEFAULT_IGNORE.
3240 2014-02-19 Tom Tromey <tromey@redhat.com>
3242 * target-delegates.c: Rebuild.
3243 * target.c (update_current_target): Don't inherit or default
3244 to_set_circular_trace_buffer.
3245 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
3246 TARGET_DEFAULT_IGNORE.
3248 2014-02-19 Tom Tromey <tromey@redhat.com>
3250 * target-delegates.c: Rebuild.
3251 * target.c (update_current_target): Don't inherit or default
3252 to_set_disconnected_tracing.
3253 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
3254 TARGET_DEFAULT_IGNORE.
3256 2014-02-19 Tom Tromey <tromey@redhat.com>
3258 * target-delegates.c: Rebuild.
3259 * target.c (update_current_target): Don't inherit or default
3260 to_get_min_fast_tracepoint_insn_len.
3261 (return_minus_one): Remove.
3262 * target.h (struct target_ops)
3263 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
3265 2014-02-19 Tom Tromey <tromey@redhat.com>
3267 * target-delegates.c: Rebuild.
3268 * target.c (update_current_target): Don't inherit or default
3269 to_get_raw_trace_data.
3270 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
3271 TARGET_DEFAULT_NORETURN.
3273 2014-02-19 Tom Tromey <tromey@redhat.com>
3275 * target-delegates.c: Rebuild.
3276 * target.c (update_current_target): Don't inherit or default
3277 to_upload_trace_state_variables.
3278 * target.h (struct target_ops) <to_upload_trace_state_variables>:
3279 Use TARGET_DEFAULT_RETURN.
3281 2014-02-19 Tom Tromey <tromey@redhat.com>
3283 * target-delegates.c: Rebuild.
3284 * target.c (update_current_target): Don't inherit or default
3285 to_upload_tracepoints.
3286 * target.h (struct target_ops) <to_upload_tracepoints>: Use
3287 TARGET_DEFAULT_RETURN.
3289 2014-02-19 Tom Tromey <tromey@redhat.com>
3291 * target-delegates.c: Rebuild.
3292 * target.c (update_current_target): Don't inherit or default
3294 * target.h (struct target_ops) <to_save_trace_data>: Use
3295 TARGET_DEFAULT_NORETURN.
3297 2014-02-19 Tom Tromey <tromey@redhat.com>
3299 * target-delegates.c: Rebuild.
3300 * target.c (update_current_target): Don't inherit or default
3301 to_get_trace_state_variable_value.
3302 * target.h (struct target_ops)
3303 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
3305 2014-02-19 Tom Tromey <tromey@redhat.com>
3307 * target-delegates.c: Rebuild.
3308 * target.c (update_current_target): Don't inherit or default
3310 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
3312 2014-02-19 Tom Tromey <tromey@redhat.com>
3314 * target-delegates.c: Rebuild.
3315 * target.c (update_current_target): Don't inherit or default
3317 * target.h (struct target_ops) <to_trace_stop>: Use
3318 TARGET_DEFAULT_NORETURN.
3320 2014-02-19 Tom Tromey <tromey@redhat.com>
3322 * target-delegates.c: Rebuild.
3323 * target.c (update_current_target): Don't inherit or default
3324 to_get_tracepoint_status.
3325 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
3326 TARGET_DEFAULT_NORETURN.
3328 2014-02-19 Tom Tromey <tromey@redhat.com>
3330 * target-delegates.c: Rebuild.
3331 * target.c (update_current_target): Don't inherit or default
3332 to_get_trace_status.
3333 * target.h (struct target_ops) <to_get_trace_status>: Use
3334 TARGET_DEFAULT_RETURN.
3336 2014-02-19 Tom Tromey <tromey@redhat.com>
3338 * target-delegates.c: Rebuild.
3339 * target.c (update_current_target): Don't inherit or default
3341 * target.h (struct target_ops) <to_trace_start>: Use
3342 TARGET_DEFAULT_NORETURN.
3344 2014-02-19 Tom Tromey <tromey@redhat.com>
3346 * target-delegates.c: Rebuild.
3347 * target.c (update_current_target): Don't inherit or default
3348 to_trace_set_readonly_regions.
3349 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
3350 Use TARGET_DEFAULT_NORETURN.
3352 2014-02-19 Tom Tromey <tromey@redhat.com>
3354 * target-delegates.c: Rebuild.
3355 * target.c (update_current_target): Don't inherit or default
3356 to_disable_tracepoint.
3357 * target.h (struct target_ops) <to_disable_tracepoint>: Use
3358 TARGET_DEFAULT_NORETURN.
3360 2014-02-19 Tom Tromey <tromey@redhat.com>
3362 * target-delegates.c: Rebuild.
3363 * target.c (update_current_target): Don't inherit or default
3364 to_enable_tracepoint.
3365 * target.h (struct target_ops) <to_enable_tracepoint>: Use
3366 TARGET_DEFAULT_NORETURN.
3368 2014-02-19 Tom Tromey <tromey@redhat.com>
3370 * target-delegates.c: Rebuild.
3371 * target.c (update_current_target): Don't inherit or default
3372 to_download_trace_state_variable.
3373 * target.h (struct target_ops) <to_download_trace_state_variable>:
3374 Use TARGET_DEFAULT_NORETURN.
3376 2014-02-19 Tom Tromey <tromey@redhat.com>
3378 * target-delegates.c: Rebuild.
3379 * target.c (update_current_target): Don't inherit or default
3380 to_can_download_tracepoint.
3381 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
3382 TARGET_DEFAULT_RETURN.
3384 2014-02-19 Tom Tromey <tromey@redhat.com>
3386 * target-delegates.c: Rebuild.
3387 * target.c (update_current_target): Don't inherit or default
3388 to_download_tracepoint.
3389 * target.h (struct target_ops) <to_download_tracepoint>: Use
3390 TARGET_DEFAULT_NORETURN.
3392 2014-02-19 Tom Tromey <tromey@redhat.com>
3394 * target-delegates.c: Rebuild.
3395 * target.c (update_current_target): Don't inherit or default
3397 * target.h (struct target_ops) <to_trace_init>: Use
3398 TARGET_DEFAULT_RETURN.
3400 2014-02-19 Tom Tromey <tromey@redhat.com>
3402 * target-delegates.c: Rebuild.
3403 * target.c (update_current_target): Don't inherit or default
3404 to_supports_string_tracing.
3405 * target.h (struct target_ops) <to_supports_string_tracing>: Use
3406 TARGET_DEFAULT_RETURN.
3408 2014-02-19 Tom Tromey <tromey@redhat.com>
3410 * target-delegates.c: Rebuild.
3411 * target.c (update_current_target): Don't inherit or default
3412 to_supports_enable_disable_tracepoint.
3413 * target.h (struct target_ops)
3414 <to_supports_enable_disable_tracepoint>: Use
3415 TARGET_DEFAULT_RETURN.
3417 2014-02-19 Tom Tromey <tromey@redhat.com>
3419 * target-delegates.c: Rebuild.
3420 * target.c (update_current_target): Don't inherit or default
3421 to_supports_multi_process.
3422 * target.h (struct target_ops) <to_supports_multi_process>: Use
3423 TARGET_DEFAULT_RETURN.
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_get_ada_task_ptid.
3430 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
3431 TARGET_DEFAULT_FUNC.
3433 2014-02-19 Tom Tromey <tromey@redhat.com>
3435 * target-delegates.c: Rebuild.
3436 * target.c (update_current_target): Don't inherit or default
3437 to_thread_architecture.
3438 * target.h (struct target_ops) <to_thread_architecture>: Use
3439 TARGET_DEFAULT_FUNC.
3441 2014-02-19 Tom Tromey <tromey@redhat.com>
3443 * target-delegates.c: Rebuild.
3444 * target.c (update_current_target): Don't inherit or default
3445 to_execution_direction.
3446 * target.h (struct target_ops) <to_execution_direction>: Use
3447 TARGET_DEFAULT_FUNC.
3449 2014-02-19 Tom Tromey <tromey@redhat.com>
3451 * target-delegates.c: Rebuild.
3452 * target.c (update_current_target): Don't inherit or default
3453 to_can_execute_reverse.
3454 * target.h (struct target_ops) <to_can_execute_reverse>: Use
3455 TARGET_DEFAULT_RETURN.
3456 (target_can_execute_reverse): Unconditionally delegate.
3458 2014-02-19 Tom Tromey <tromey@redhat.com>
3460 * target-delegates.c: Rebuild.
3461 * target.c (update_current_target): Don't inherit or default
3463 (dummy_goto_bookmark): Remove.
3464 (init_dummy_target): Don't inherit or default to_goto_bookmark.
3465 * target.h (struct target_ops) <to_goto_bookmark>: Use
3466 TARGET_DEFAULT_NORETURN.
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 (dummy_get_bookmark): Remove.
3474 (init_dummy_target): Don't inherit or default to_get_bookmark.
3475 * target.h (struct target_ops) <to_get_bookmark>: Use
3476 TARGET_DEFAULT_NORETURN
3478 2014-02-19 Tom Tromey <tromey@redhat.com>
3480 * target-delegates.c: Rebuild.
3481 * target.c (update_current_target): Don't inherit or default
3482 to_make_corefile_notes.
3483 (init_dummy_target): Don't initialize to_make_corefile_notes.
3484 * target.h (struct target_ops) <to_make_corefile_notes>: Use
3485 TARGET_DEFAULT_FUNC.
3487 2014-02-19 Tom Tromey <tromey@redhat.com>
3489 * target-delegates.c: Rebuild.
3490 * target.c (update_current_target): Don't inherit or default
3491 to_find_memory_regions.
3492 (init_dummy_target): Don't initialize to_find_memory_regions.
3493 * target.h (struct target_ops) <to_find_memory_regions>: Use
3494 TARGET_DEFAULT_FUNC.
3496 2014-02-19 Tom Tromey <tromey@redhat.com>
3498 * target-delegates.c: Rebuild.
3499 * target.c (update_current_target): Don't inherit or default
3501 * target.h (struct target_ops) <to_log_command>: Use
3502 TARGET_DEFAULT_IGNORE.
3503 (target_log_command): Unconditionally delegate.
3505 2014-02-19 Tom Tromey <tromey@redhat.com>
3507 * target-delegates.c: Rebuild.
3508 * target.c (update_current_target): Don't inherit or default
3509 to_pid_to_exec_file.
3510 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
3511 TARGET_DEFAULT_RETURN.
3513 2014-02-19 Tom Tromey <tromey@redhat.com>
3515 * target-delegates.c: Rebuild.
3516 * target.c (update_current_target): Don't inherit or default
3518 (target_thread_name): Unconditionally delegate.
3519 * target.h (struct target_ops) <to_thread_name>: Use
3520 TARGET_DEFAULT_RETURN.
3522 2014-02-19 Tom Tromey <tromey@redhat.com>
3524 * target-delegates.c: Rebuild.
3525 * target.c (update_current_target): Don't inherit or default
3526 to_extra_thread_info.
3527 * target.h (struct target_ops) <to_extra_thread_info>: Use
3528 TARGET_DEFAULT_RETURN.
3530 2014-02-19 Tom Tromey <tromey@redhat.com>
3532 * target-delegates.c: Rebuild.
3533 * target.c (update_current_target): Don't inherit or default
3535 * target.h (struct target_ops) <to_has_exited>: Use
3536 TARGET_DEFAULT_RETURN..
3538 2014-02-19 Tom Tromey <tromey@redhat.com>
3540 * target-delegates.c: Rebuild.
3541 * target.c (update_current_target): Don't inherit or default
3542 to_set_syscall_catchpoint.
3543 (return_one): Remove.
3544 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
3545 TARGET_DEFAULT_RETURN.
3547 2014-02-19 Tom Tromey <tromey@redhat.com>
3549 * target-delegates.c: Rebuild.
3550 * target.c (update_current_target): Don't inherit or default
3551 to_insert_exec_catchpoint.
3552 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
3553 TARGET_DEFAULT_RETURN.
3555 2014-01-08 Tom Tromey <tromey@redhat.com>
3557 * target-delegates.c: Rebuild.
3558 * target.c (update_current_target): Don't inherit or default
3559 to_insert_exec_catchpoint.
3560 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
3561 TARGET_DEFAULT_RETURN.
3563 2014-02-19 Tom Tromey <tromey@redhat.com>
3565 * target-delegates.c: Rebuild.
3566 * target.c (update_current_target): Don't inherit or default
3567 to_remove_vfork_catchpoint.
3568 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
3569 TARGET_DEFAULT_RETURN.
3571 2014-02-19 Tom Tromey <tromey@redhat.com>
3573 * target-delegates.c: Rebuild.
3574 * target.c (update_current_target): Don't inherit or default
3575 to_insert_vfork_catchpoint.
3576 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
3577 TARGET_DEFAULT_RETURN.
3579 2014-02-19 Tom Tromey <tromey@redhat.com>
3581 * target-delegates.c: Rebuild.
3582 * target.c (update_current_target): Don't inherit or default
3583 to_remove_fork_catchpoint.
3584 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
3585 TARGET_DEFAULT_RETURN.
3587 2014-02-19 Tom Tromey <tromey@redhat.com>
3589 * target-delegates.c: Rebuild.
3590 * target.c (update_current_target): Don't inherit or default
3591 to_insert_fork_catchpoint.
3592 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
3593 TARGET_DEFAULT_RETURN.
3595 2014-02-19 Tom Tromey <tromey@redhat.com>
3597 * target-delegates.c: Rebuild.
3598 * target.c (update_current_target): Don't inherit or default
3599 to_post_startup_inferior.
3600 * target.h (struct target_ops) <to_post_startup_inferior>: Use
3601 TARGET_DEFAULT_IGNORE.
3603 2014-02-19 Tom Tromey <tromey@redhat.com>
3605 * target-delegates.c: Rebuild.
3606 * target.c (update_current_target): Don't inherit or default
3608 * target.h (struct target_ops) <to_load>: Use
3609 TARGET_DEFAULT_NORETURN.
3611 2014-02-19 Tom Tromey <tromey@redhat.com>
3613 * target-delegates.c: Rebuild.
3614 * target.c (update_current_target): Don't inherit or default
3616 * target.h (struct target_ops) <to_terminal_info>: Use
3617 TARGET_DEFAULT_FUNC.
3619 2014-02-19 Tom Tromey <tromey@redhat.com>
3621 * target-delegates.c: Rebuild.
3622 * target.c (update_current_target): Don't inherit or default
3623 to_terminal_save_ours.
3624 * target.h (struct target_ops) <to_terminal_save_ours>: Use
3625 TARGET_DEFAULT_IGNORE.
3627 2014-02-19 Tom Tromey <tromey@redhat.com>
3629 * target-delegates.c: Rebuild.
3630 * target.c (update_current_target): Don't inherit or default
3632 * target.h (struct target_ops) <to_terminal_ours>: Use
3633 TARGET_DEFAULT_IGNORE.
3635 2014-02-19 Tom Tromey <tromey@redhat.com>
3637 * target-delegates.c: Rebuild.
3638 * target.c (update_current_target): Don't inherit or default
3639 to_terminal_ours_for_output.
3640 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
3641 TARGET_DEFAULT_IGNORE.
3643 2014-02-19 Tom Tromey <tromey@redhat.com>
3645 * target-delegates.c: Rebuild.
3646 * target.c (update_current_target): Don't inherit or default
3647 to_terminal_inferior.
3648 * target.h (struct target_ops) <to_terminal_inferior>: Use
3649 TARGET_DEFAULT_IGNORE.
3651 2014-02-19 Tom Tromey <tromey@redhat.com>
3653 * target-delegates.c: Rebuild.
3654 * target.c (update_current_target): Don't inherit or default
3656 * target.h (struct target_ops) <to_terminal_init>: Use
3657 TARGET_DEFAULT_IGNORE.
3659 2014-02-19 Tom Tromey <tromey@redhat.com>
3661 * target-delegates.c: Rebuild.
3662 * target.c (update_current_target): Don't inherit or default
3663 to_can_accel_watchpoint_condition.
3664 * target.h (struct target_ops)
3665 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
3667 2014-02-19 Tom Tromey <tromey@redhat.com>
3669 * target-delegates.c: Rebuild.
3670 * target.c (update_current_target): Don't inherit or default
3671 to_region_ok_for_hw_watchpoint.
3672 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
3673 Use TARGET_DEFAULT_FUNC.
3675 2014-02-19 Tom Tromey <tromey@redhat.com>
3677 * target-delegates.c: Rebuild.
3678 * target.c (update_current_target): Don't inherit or default
3679 to_watchpoint_addr_within_range.
3680 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
3681 Use TARGET_DEFAULT_FUNC.
3683 2014-02-19 Tom Tromey <tromey@redhat.com>
3685 * target-delegates.c: Rebuild.
3686 * target.c (update_current_target): Don't inherit or default
3687 to_remove_watchpoint.
3688 * target.h (struct target_ops) <to_remove_watchpoint>: Use
3689 TARGET_DEFAULT_NORETURN.
3691 2014-02-19 Tom Tromey <tromey@redhat.com>
3693 * target-delegates.c: Rebuild.
3694 * target.c (update_current_target): Don't inherit or default
3695 to_insert_watchpoint.
3696 * target.h (struct target_ops) <to_insert_watchpoint>: Use
3697 TARGET_DEFAULT_RETURN.
3699 2014-02-19 Tom Tromey <tromey@redhat.com>
3701 * target-delegates.c: Rebuild.
3702 * target.c (update_current_target): Don't inherit or default
3703 to_remove_hw_breakpoint.
3704 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
3705 TARGET_DEFAULT_RETURN.
3707 2014-02-19 Tom Tromey <tromey@redhat.com>
3709 * target-delegates.c: Rebuild.
3710 * target.c (update_current_target): Don't inherit or default
3711 to_insert_hw_breakpoint.
3712 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
3713 TARGET_DEFAULT_RETURN.
3715 2014-02-19 Tom Tromey <tromey@redhat.com>
3717 * target-delegates.c: Rebuild.
3718 * target.c (update_current_target): Don't inherit or default
3719 to_can_use_hw_breakpoint.
3720 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
3721 TARGET_DEFAULT_RETURN.
3723 2014-02-19 Tom Tromey <tromey@redhat.com>
3725 * target-delegates.c: Rebuild.
3726 * target.c (update_current_target): Don't inherit or default
3728 * target.h (struct target_ops) <to_files_info>: Use
3729 TARGET_DEFAULT_IGNORE.
3731 2014-02-19 Tom Tromey <tromey@redhat.com>
3733 * target-delegates.c: Rebuild.
3734 * target.c (update_current_target): Don't inherit or default
3736 * target.h (struct target_ops) <to_store>: Use
3737 TARGET_DEFAULT_NORETURN.
3739 2014-02-19 Tom Tromey <tromey@redhat.com>
3741 * target-delegates.c: Rebuild.
3742 * target.c (update_current_target): Don't inherit or default
3744 * target.h (struct target_ops) <to_post_attach>: Use
3745 TARGET_DEFAULT_IGNORE.
3747 2014-02-19 Tom Tromey <tromey@redhat.com>
3749 * target-delegates.c: Rebuild.
3750 * target.c (update_current_target): Don't inherit or default
3752 (default_rcmd): New function.
3753 (do_monitor_command): Unconditionally delegate.
3754 * target.h (struct target_ops) <to_rmcd>: Use
3755 TARGET_DEFAULT_FUNC.
3757 2014-02-19 Tom Tromey <tromey@redhat.com>
3759 * target-delegates.c: Rebuild.
3760 * target.c (init_dummy_target): Don't initialize to_attach.
3761 (target_attach): Unconditionally delegate.
3762 * target.h (struct target_ops) <to_attach>: Use
3763 TARGET_DEFAULT_FUNC.
3765 2014-02-19 Tom Tromey <tromey@redhat.com>
3767 * target-delegates.c: Rebuild.
3768 * target.c (target_detach): Unconditionally delegate.
3769 (init_dummy_target): Don't initialize to_detach.
3770 * target.h (struct target_ops) <to_detach>: Use
3771 TARGET_DEFAULT_IGNORE.
3773 2014-02-19 Tom Tromey <tromey@redhat.com>
3775 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
3777 (target_augmented_libraries_svr4_read): Add argument.
3778 * target.c (update_current_target): Update.
3779 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
3782 2014-02-19 Tom Tromey <tromey@redhat.com>
3784 * target.h (struct target_ops) <to_call_history_range>: Add
3786 * target.c (target_call_history_range): Add argument.
3787 * record-btrace.c (record_btrace_call_history_range): Add 'self'
3789 (record_btrace_call_history_from): Update.
3791 2014-02-19 Tom Tromey <tromey@redhat.com>
3793 * target.h (struct target_ops) <to_call_history_from>: Add
3795 * target.c (target_call_history_from): Add argument.
3796 * record-btrace.c (record_btrace_call_history_from): Add 'self'
3799 2014-02-19 Tom Tromey <tromey@redhat.com>
3801 * target.h (struct target_ops) <to_call_history>: Add argument.
3802 * target.c (target_call_history): Add argument.
3803 * record-btrace.c (record_btrace_call_history): Add 'self'
3806 2014-02-19 Tom Tromey <tromey@redhat.com>
3808 * target.h (struct target_ops) <to_insn_history_range>: Add
3810 * target.c (target_insn_history_range): Add argument.
3811 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
3813 (record_btrace_insn_history_from): Update.
3815 2014-02-19 Tom Tromey <tromey@redhat.com>
3817 * target.h (struct target_ops) <to_insn_history_from>: Add
3819 * target.c (target_insn_history_from): Add argument.
3820 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
3823 2014-02-19 Tom Tromey <tromey@redhat.com>
3825 * target.h (struct target_ops) <to_insn_history>: Add argument.
3826 * target.c (target_insn_history): Add argument.
3827 * record-btrace.c (record_btrace_insn_history): Add 'self'
3830 2014-02-19 Tom Tromey <tromey@redhat.com>
3832 * target.h (struct target_ops) <to_goto_record>: Add argument.
3833 * target.c (target_goto_record): Add argument.
3834 * record-full.c (record_full_goto): Add 'self' argument.
3835 * record-btrace.c (record_btrace_goto): Add 'self' argument.
3837 2014-02-19 Tom Tromey <tromey@redhat.com>
3839 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
3840 * target.c (target_goto_record_end): Add argument.
3841 * record-full.c (record_full_goto_end): Add 'self' argument.
3842 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
3844 2014-02-19 Tom Tromey <tromey@redhat.com>
3846 * target.h (struct target_ops) <to_goto_record_begin>: Add
3848 * target.c (target_goto_record_begin): Add argument.
3849 * record-full.c (record_full_goto_begin): Add 'self' argument.
3850 * record-btrace.c (record_btrace_goto_begin): Add 'self'
3853 2014-02-19 Tom Tromey <tromey@redhat.com>
3855 * target.h (struct target_ops) <to_record_is_replaying>: Add
3857 * target.c (target_record_is_replaying): Add argument.
3858 * record-full.c (record_full_is_replaying): Add 'self' argument.
3859 * record-btrace.c (record_btrace_is_replaying): Add 'self'
3861 (record_btrace_xfer_partial, record_btrace_store_registers)
3862 (record_btrace_prepare_to_store, record_btrace_resume)
3863 (record_btrace_wait, record_btrace_decr_pc_after_break)
3864 (record_btrace_find_new_threads, record_btrace_thread_alive):
3867 2014-02-19 Tom Tromey <tromey@redhat.com>
3869 * target.h (struct target_ops) <to_delete_record>: Add argument.
3870 * target.c (target_delete_record): Add argument.
3871 * record-full.c (record_full_delete): Add 'self' argument.
3873 2014-02-19 Tom Tromey <tromey@redhat.com>
3875 * target.h (struct target_ops) <to_save_record>: Add argument.
3876 * target.c (target_save_record): Add argument.
3877 * record-full.c (record_full_save): Add 'self' argument.
3878 (record_full_save): Add 'self' argument.
3880 2014-02-19 Tom Tromey <tromey@redhat.com>
3882 * target.h (struct target_ops) <to_info_record>: Add argument.
3883 * target.c (target_info_record): Add argument.
3884 * record.c (info_record_command): Add argument.
3885 * record-full.c (record_full_info): Add 'self' argument.
3886 * record-btrace.c (record_btrace_info): Add 'self' argument.
3888 2014-02-19 Tom Tromey <tromey@redhat.com>
3890 * target.h (struct target_ops) <to_stop_recording>: Add argument.
3891 * target.c (target_stop_recording): Add argument.
3892 * record.c (record_stop): Add argument.
3893 * record-btrace.c (record_btrace_stop_recording): Add 'self'
3896 2014-02-19 Tom Tromey <tromey@redhat.com>
3898 * target.h (struct target_ops) <to_read_btrace>: Add argument.
3899 * target.c (struct target_ops) <to_read_btrace>: Add argument.
3900 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
3902 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
3903 (_initialize_amd64_linux_nat): Use it.
3904 * i386-linux-nat.c (i386_linux_read_btrace): New function.
3905 (_initialize_i386_linux_nat): Use it.
3907 2014-02-19 Tom Tromey <tromey@redhat.com>
3909 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
3910 * target.c (target_teardown_btrace): Add argument.
3911 * remote.c (remote_teardown_btrace): Add 'self' argument.
3912 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
3914 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
3917 2014-02-19 Tom Tromey <tromey@redhat.com>
3919 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
3920 * target.c (target_disable_btrace): Add argument.
3921 * remote.c (remote_disable_btrace): Add 'self' argument.
3922 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
3924 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
3927 2014-02-19 Tom Tromey <tromey@redhat.com>
3929 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
3930 * target.c (target_enable_btrace): Add argument.
3931 * remote.c (remote_enable_btrace): Add 'self' argument.
3932 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
3934 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
3937 2014-02-19 Tom Tromey <tromey@redhat.com>
3939 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
3940 (target_can_use_agent): Add argument.
3941 * target.c (update_current_target): Update.
3942 * remote.c (remote_can_use_agent): Add 'self' argument.
3943 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
3945 2014-02-19 Tom Tromey <tromey@redhat.com>
3947 * target.h (struct target_ops) <to_use_agent>: Add argument.
3948 (target_use_agent): Add argument.
3949 * target.c (update_current_target): Update.
3950 * remote.c (remote_use_agent): Add 'self' argument.
3951 * inf-child.c (inf_child_use_agent): Add 'self' argument.
3953 2014-02-19 Tom Tromey <tromey@redhat.com>
3955 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
3956 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
3957 (target_traceframe_info): Add argument.
3958 * target.c (update_current_target): Update.
3959 * remote.c (remote_traceframe_info): Add 'self' argument.
3960 * ctf.c (ctf_traceframe_info): Add 'self' argument.
3962 2014-02-19 Tom Tromey <tromey@redhat.com>
3964 * target.h (target_static_tracepoint_markers_by_strid): Add
3966 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
3968 * target.c (update_current_target): Update.
3969 * remote.c (struct target_ops)
3970 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
3971 * linux-nat.c (struct target_ops)
3972 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
3974 2014-02-19 Tom Tromey <tromey@redhat.com>
3976 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
3978 (target_static_tracepoint_marker_at): Add argument.
3979 * target.c (update_current_target): Update.
3980 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
3983 2014-02-19 Tom Tromey <tromey@redhat.com>
3985 * target.h (struct target_ops) <to_set_permissions>: Add argument.
3986 (target_set_permissions): Add argument.
3987 * target.c (update_current_target): Update.
3988 * remote.c (remote_set_permissions): Add 'self' argument.
3989 (remote_start_remote): Update.
3991 2014-02-19 Tom Tromey <tromey@redhat.com>
3993 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
3994 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
3995 (target_get_tib_address): Add argument.
3996 * target.c (update_current_target): Update.
3997 * remote.c (remote_get_tib_address): Add 'self' argument.
3999 2014-02-19 Tom Tromey <tromey@redhat.com>
4001 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
4002 (target_set_trace_notes): Add argument.
4003 * target.c (update_current_target): Update.
4004 * remote.c (remote_set_trace_notes): Add 'self' argument.
4006 2014-02-19 Tom Tromey <tromey@redhat.com>
4008 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
4010 (target_set_trace_buffer_size): Add argument.
4011 * target.c (update_current_target): Update.
4012 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
4014 2014-02-19 Tom Tromey <tromey@redhat.com>
4016 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
4018 (target_set_circular_trace_buffer): Add argument.
4019 * target.c (update_current_target): Update.
4020 * remote.c (remote_set_circular_trace_buffer): Add 'self'
4023 2014-02-19 Tom Tromey <tromey@redhat.com>
4025 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
4027 (target_set_disconnected_tracing): Add argument.
4028 * target.c (update_current_target): Update.
4029 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
4031 2014-02-19 Tom Tromey <tromey@redhat.com>
4033 * target.h (struct target_ops)
4034 <to_get_min_fast_tracepoint_insn_len>: Add argument.
4035 (target_get_min_fast_tracepoint_insn_len): Add argument.
4036 * target.c (update_current_target): Update.
4037 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
4040 2014-02-19 Tom Tromey <tromey@redhat.com>
4042 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
4044 (target_get_raw_trace_data): Add argument.
4045 * target.c (update_current_target): Update.
4046 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
4048 2014-02-19 Tom Tromey <tromey@redhat.com>
4050 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4052 (target_upload_trace_state_variables): Add argument.
4053 * target.c (update_current_target): Update.
4054 * remote.c (remote_upload_trace_state_variables): Add 'self'
4056 (remote_start_remote): Update.
4058 2014-02-19 Tom Tromey <tromey@redhat.com>
4060 * target.h (struct target_ops) <to_upload_tracepoints>: Add
4062 (target_upload_tracepoints): Add argument.
4063 * target.c (update_current_target): Update.
4064 * remote.c (remote_upload_tracepoints): Add 'self' argument.
4065 (remote_start_remote): Update.
4067 2014-02-19 Tom Tromey <tromey@redhat.com>
4069 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
4070 (target_save_trace_data): Add argument.
4071 * target.c (update_current_target): Update.
4072 * remote.c (remote_save_trace_data): Add 'self' argument.
4074 2014-02-19 Tom Tromey <tromey@redhat.com>
4076 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
4078 * target.h (struct target_ops)
4079 <to_get_trace_state_variable_value>: Add argument.
4080 (target_get_trace_state_variable_value): Add argument.
4081 * target.c (update_current_target): Update.
4082 * remote.c (remote_get_trace_state_variable_value): Add 'self'
4084 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
4086 2014-02-19 Tom Tromey <tromey@redhat.com>
4088 * tracepoint.c (tfile_trace_find): Add 'self' argument.
4089 * target.h (struct target_ops) <to_trace_find>: Add argument.
4090 (target_trace_find): Add argument.
4091 * target.c (update_current_target): Update.
4092 * remote.c (remote_trace_find): Add 'self' argument.
4093 * ctf.c (ctf_trace_find): Add 'self' argument.
4095 2014-02-19 Tom Tromey <tromey@redhat.com>
4097 * target.h (struct target_ops) <to_trace_stop>: Add argument.
4098 (target_trace_stop): Add argument.
4099 * target.c (update_current_target): Update.
4100 * remote.c (remote_trace_stop): Add 'self' argument.
4102 2014-02-19 Tom Tromey <tromey@redhat.com>
4104 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
4105 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
4107 (target_get_tracepoint_status): Add argument.
4108 * target.c (update_current_target): Update.
4109 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
4111 2014-02-19 Tom Tromey <tromey@redhat.com>
4113 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
4114 * target.h (struct target_ops) <to_get_trace_status>: Add
4116 (target_get_trace_status): Add argument.
4117 * target.c (update_current_target): Update.
4118 * remote.c (remote_get_trace_status): Add 'self' argument.
4119 (remote_start_remote, remote_can_download_tracepoint): Update.
4120 * ctf.c (ctf_get_trace_status): Add 'self' argument.
4122 2014-02-19 Tom Tromey <tromey@redhat.com>
4124 * target.h (struct target_ops) <to_trace_start>: Add argument.
4125 (target_trace_start): Add argument.
4126 * target.c (update_current_target): Update.
4127 * remote.c (remote_trace_start): Add 'self' argument.
4129 2014-02-19 Tom Tromey <tromey@redhat.com>
4131 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4133 (target_trace_set_readonly_regions): Add argument.
4134 * target.c (update_current_target): Update.
4135 * remote.c (remote_trace_set_readonly_regions): Add 'self'
4138 2014-02-19 Tom Tromey <tromey@redhat.com>
4140 * target.h (struct target_ops) <to_disable_tracepoint>: Add
4142 (target_disable_tracepoint): Add argument.
4143 * target.c (update_current_target): Update.
4144 * remote.c (remote_disable_tracepoint): Add 'self' argument.
4146 2014-02-19 Tom Tromey <tromey@redhat.com>
4148 * target.h (struct target_ops) <to_enable_tracepoint>: Add
4150 (target_enable_tracepoint): Add argument.
4151 * target.c (update_current_target): Update.
4152 * remote.c (remote_enable_tracepoint): Add 'self' argument.
4154 2014-02-19 Tom Tromey <tromey@redhat.com>
4156 * target.h (struct target_ops) <to_download_trace_state_variable>:
4158 (target_download_trace_state_variable): Add argument.
4159 * target.c (update_current_target): Update.
4160 * remote.c (remote_download_trace_state_variable): Add 'self'
4163 2014-02-19 Tom Tromey <tromey@redhat.com>
4165 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
4167 (target_can_download_tracepoint): Add argument.
4168 * target.c (update_current_target): Update.
4169 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
4171 2014-02-19 Tom Tromey <tromey@redhat.com>
4173 * target.h (struct target_ops) <to_download_tracepoint>: Add
4175 (target_download_tracepoint): Add argument.
4176 * target.c (update_current_target): Update.
4177 * remote.c (remote_download_tracepoint): Add 'self' argument.
4179 2014-02-19 Tom Tromey <tromey@redhat.com>
4181 * target.h (struct target_ops) <to_trace_init>: Add argument.
4182 (target_trace_init): Add argument.
4183 * target.c (update_current_target): Update.
4184 * remote.c (remote_trace_init): Add 'self' argument.
4186 2014-02-19 Tom Tromey <tromey@redhat.com>
4188 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
4189 * target.c (target_fileio_readlink): Add argument.
4190 * remote.c (remote_hostio_readlink): Add 'self' argument.
4191 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
4193 2014-02-19 Tom Tromey <tromey@redhat.com>
4195 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
4196 * target.c (target_fileio_unlink): Add argument.
4197 * remote.c (remote_hostio_unlink): Add 'self' argument.
4198 (remote_file_delete): Update.
4199 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
4201 2014-02-19 Tom Tromey <tromey@redhat.com>
4203 * target.h (struct target_ops) <to_fileio_close>: Add argument.
4204 * target.c (target_fileio_close): Add argument.
4205 * remote.c (remote_hostio_close): Add 'self' argument.
4206 (remote_hostio_close_cleanup): Update.
4207 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
4209 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
4211 2014-02-19 Tom Tromey <tromey@redhat.com>
4213 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
4214 * target.c (target_fileio_pread): Add argument.
4215 * remote.c (remote_hostio_pread): Add 'self' argument.
4216 (remote_bfd_iovec_pread, remote_file_get): Update.
4217 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
4219 2014-02-19 Tom Tromey <tromey@redhat.com>
4221 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
4222 * target.c (target_fileio_pwrite): Add argument.
4223 * remote.c (remote_hostio_pwrite): Add 'self' argument.
4224 (remote_file_put): Update.
4225 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
4227 2014-02-19 Tom Tromey <tromey@redhat.com>
4229 * target.h (struct target_ops) <to_fileio_open>: Add argument.
4230 * target.c (target_fileio_open): Add argument.
4231 * remote.c (remote_hostio_open): Add 'self' argument.
4232 (remote_bfd_iovec_open): Add 'self' argument.
4233 (remote_file_put): Add 'self' argument.
4234 (remote_file_get): Add 'self' argument.
4235 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
4237 2014-02-19 Tom Tromey <tromey@redhat.com>
4239 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4241 (target_can_run_breakpoint_commands): Add argument.
4242 * target.c (update_current_target): Update.
4243 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
4245 (remote_insert_breakpoint): Add 'self' argument.
4246 (remote_insert_hw_breakpoint): Add 'self' argument.
4247 (remote_can_run_breakpoint_commands): Add 'self' argument.
4249 2014-02-19 Tom Tromey <tromey@redhat.com>
4251 * target.h (struct target_ops)
4252 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
4253 (target_supports_evaluation_of_breakpoint_conditions): Add
4255 * target.c (update_current_target): Update.
4256 * remote.c (remote_supports_cond_breakpoints): Add 'self'
4258 (remote_insert_breakpoint): Add 'self' argument.
4259 (remote_insert_hw_breakpoint): Add 'self' argument.
4260 (remote_supports_cond_breakpoints): Add 'self' argument.
4262 2014-02-19 Tom Tromey <tromey@redhat.com>
4264 * target.h (struct target_ops) <to_supports_string_tracing>: Add
4266 (target_supports_string_tracing): Add argument.
4267 * target.c (update_current_target): Update.
4268 * remote.c (remote_supports_string_tracing): Add 'self' argument.
4270 2014-02-19 Tom Tromey <tromey@redhat.com>
4272 * target.h (struct target_ops)
4273 <to_supports_disable_randomization>: Add argument.
4274 * target.c (find_default_supports_disable_randomization): Add
4276 (target_supports_disable_randomization): Add argument.
4277 (find_default_supports_disable_randomization): Add 'self'
4279 * remote.c (extended_remote_supports_disable_randomization): Add
4281 (remote_supports_disable_randomization): Add 'self' argument.
4282 (extended_remote_create_inferior): Update.
4283 * linux-nat.c (linux_nat_supports_disable_randomization): Add
4286 2014-02-19 Tom Tromey <tromey@redhat.com>
4288 * target.h (struct target_ops)
4289 <to_supports_enable_disable_tracepoint>: Add argument.
4290 (target_supports_enable_disable_tracepoint): Add argument.
4291 * target.c (update_current_target): Update.
4292 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
4295 2014-02-19 Tom Tromey <tromey@redhat.com>
4297 * target.h (struct target_ops) <to_supports_multi_process>: Add
4299 (target_supports_multi_process): Add argument.
4300 * target.c (update_current_target): Update.
4301 * remote.c (remote_supports_multi_process): Add 'self' argument.
4302 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
4304 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
4307 2014-02-19 Tom Tromey <tromey@redhat.com>
4309 * target.h (struct target_ops) <to_execution_direction>: Add
4311 (target_execution_direction): Add argument.
4312 * target.c (default_execution_direction): Add 'self' argument.
4313 * record-full.c (record_full_execution_direction): Add 'self'
4316 2014-02-19 Tom Tromey <tromey@redhat.com>
4318 * target.h (struct target_ops) <to_can_execute_reverse>: Add
4320 (target_can_execute_reverse): Add argument.
4321 * remote.c (remote_can_execute_reverse): Add 'self' argument.
4322 * record-full.c (record_full_can_execute_reverse): Add 'self'
4324 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
4327 2014-02-19 Tom Tromey <tromey@redhat.com>
4329 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
4330 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
4332 (target_get_ada_task_ptid): Add argument.
4333 * target.c (update_current_target): Update.
4334 (default_get_ada_task_ptid): Add 'self' argument.
4335 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
4336 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
4337 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
4339 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
4341 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
4343 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
4345 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
4346 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
4349 2014-02-19 Tom Tromey <tromey@redhat.com>
4351 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
4352 (target_goto_bookmark): Add argument.
4353 * target.c (dummy_goto_bookmark): Add 'self' argument.
4354 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
4356 2014-02-19 Tom Tromey <tromey@redhat.com>
4358 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
4359 (target_get_bookmark): Add argument.
4360 * target.c (dummy_get_bookmark): Add 'self' argument.
4361 * record-full.c (record_full_get_bookmark): Add 'self' argument.
4363 2014-02-19 Tom Tromey <tromey@redhat.com>
4365 * target.h (struct target_ops) <to_make_corefile_notes>: Add
4367 (target_make_corefile_notes): Add argument.
4368 * target.c (dummy_make_corefile_notes): Add 'self' argument.
4369 * procfs.c (procfs_make_note_section): Add 'self' argument.
4370 (procfs_make_note_section): Add 'self' argument.
4371 (procfs_make_note_section): Add 'self' argument.
4372 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
4374 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
4375 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
4376 * exec.c (exec_make_note_section): Add 'self' argument.
4377 (exec_make_note_section): Add 'self' argument.
4379 2014-02-19 Tom Tromey <tromey@redhat.com>
4381 * target.h (struct target_ops) <to_find_memory_regions>: Add
4383 (target_find_memory_regions): Add argument.
4384 * target.c (dummy_find_memory_regions): Add 'self' argument.
4385 * procfs.c (proc_find_memory_regions): Add 'self' argument.
4386 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
4387 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
4388 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
4389 * exec. (exec_do_find_memory_regions): New global.
4390 (exec_set_find_memory_regions): Rewrite.
4391 (exec_find_memory_regions): New function.
4392 (init_exec_ops): Use exec_find_memory_regions.
4394 2014-02-19 Tom Tromey <tromey@redhat.com>
4396 * target.h (struct target_ops) <to_supports_non_stop>: Add
4398 * target.c (find_default_supports_non_stop): Add argument.
4399 (target_supports_non_stop): Add argument.
4400 (find_default_supports_non_stop): Add 'self' argument.
4401 * remote.c (remote_supports_non_stop): Add 'self' argument.
4402 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
4404 2014-02-19 Tom Tromey <tromey@redhat.com>
4406 * target.h (struct target_ops) <to_log_command>: Add argument.
4407 (target_log_command): Add argument.
4408 * serial.h (serial_log_command): Add 'self' argument.
4409 * serial.c (serial_log_command): Add 'self' argument.
4411 2014-02-19 Tom Tromey <tromey@redhat.com>
4413 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
4414 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
4416 (target_pid_to_exec_file): Add argument.
4417 * target.c (debug_to_pid_to_exec_file): Add argument.
4418 (update_current_target): Update.
4419 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
4420 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
4421 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
4422 (linux_handle_extended_wait): Update.
4423 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
4424 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
4425 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
4426 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
4428 2014-02-19 Tom Tromey <tromey@redhat.com>
4430 * target.h (struct target_ops) <to_rcmd>: Add argument.
4431 (target_rcmd): Add argument.
4432 * target.c (debug_to_rcmd): Add argument.
4433 (update_current_target, do_monitor_command): Update.
4434 * remote.c (remote_rcmd): Add 'self' argument.
4435 * monitor.c (monitor_rcmd): Add 'self' argument.
4437 2014-02-19 Tom Tromey <tromey@redhat.com>
4439 * windows-nat.c (windows_stop): Add 'self' argument.
4440 * target.h (struct target_ops) <to_stop>: Add argument.
4441 * target.c (target_stop): Add argument.
4442 (debug_to_stop): Add argument.
4443 (update_current_target): Update.
4444 * remote.c (remote_stop): Add 'self' argument.
4445 * remote-sim.c (gdbsim_stop): Add 'self' argument.
4446 (gdbsim_cntrl_c): Update.
4447 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
4448 * procfs.c (procfs_stop): Add 'self' argument.
4449 * nto-procfs.c (procfs_stop): Add 'self' argument.
4450 * monitor.c (monitor_stop): Add 'self' argument.
4451 (monitor_open): Update.
4452 * linux-nat.c (linux_nat_stop): Add argument.
4453 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
4454 * gnu-nat.c (gnu_stop): Add 'self' argument.
4455 * darwin-nat.c (darwin_stop): Add 'self' argument.
4457 2014-02-19 Tom Tromey <tromey@redhat.com>
4459 * target.h (struct target_ops) <to_thread_name>: Add argument.
4460 * target.c (target_thread_name): Add argument.
4461 (update_current_target): Update.
4462 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
4464 2014-02-19 Tom Tromey <tromey@redhat.com>
4466 * target.h (struct target_ops) <to_extra_thread_info>: Add
4468 (target_extra_thread_info): Add argument.
4469 * target.c (update_current_target): Update.
4470 * remote.c (remote_threads_extra_info): Add 'self' argument.
4471 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
4473 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
4474 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
4475 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
4477 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
4479 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
4481 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
4484 2014-02-19 Tom Tromey <tromey@redhat.com>
4486 * target.h (struct target_ops) <to_program_signals>: Add argument.
4487 * target.c (target_program_signals): Add argument.
4488 * remote.c (remote_program_signals): Add 'self' argument.
4490 2014-02-19 Tom Tromey <tromey@redhat.com>
4492 * target.h (struct target_ops) <to_pass_signals>: Add argument.
4493 * target.c (target_pass_signals): Add argument.
4494 * remote.c (remote_pass_signals): Add 'self' argument.
4495 (remote_start_remote): Update.
4496 * procfs.c (procfs_pass_signals): Add 'self' argument.
4497 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
4498 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
4499 (linux_nat_create_inferior, linux_nat_attach): Update.
4501 2014-02-19 Tom Tromey <tromey@redhat.com>
4503 * windows-nat.c (windows_can_run): Add 'self' argument.
4504 * target.h (struct target_ops) <to_can_run>: Add argument.
4505 (target_can_run): Add argument.
4506 * target.c (debug_to_can_run): Add argument.
4507 (update_current_target): Update.
4508 * nto-procfs.c (procfs_can_run): Add 'self' argument.
4509 * inf-child.c (inf_child_can_run): Add 'self' argument.
4510 * go32-nat.c (go32_can_run): Add 'self' argument.
4512 2014-02-19 Tom Tromey <tromey@redhat.com>
4514 * target.h (struct target_ops) <to_has_exited>: Add argument.
4515 (target_has_exited): Add argument.
4516 * target.c (debug_to_has_exited): Add argument.
4517 (update_current_target): Update.
4519 2014-02-19 Tom Tromey <tromey@redhat.com>
4521 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
4523 (target_set_syscall_catchpoint): Add argument.
4524 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
4526 * target.c (update_current_target): Update.
4528 2014-02-19 Tom Tromey <tromey@redhat.com>
4530 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
4532 (target_remove_exec_catchpoint): Add argument.
4533 * target.c (debug_to_remove_exec_catchpoint): Add argument.
4534 (update_current_target): Update.
4535 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
4538 2014-02-19 Tom Tromey <tromey@redhat.com>
4540 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
4542 (target_insert_exec_catchpoint): Add argument.
4543 * target.c (debug_to_insert_exec_catchpoint): Add argument.
4544 (update_current_target): Update.
4545 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
4548 2014-02-19 Tom Tromey <tromey@redhat.com>
4550 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
4552 (target_remove_vfork_catchpoint): Add argument.
4553 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
4554 (update_current_target): Update.
4555 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
4558 2014-02-19 Tom Tromey <tromey@redhat.com>
4560 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
4562 (target_insert_vfork_catchpoint): Add argument.
4563 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
4564 (update_current_target): Update.
4565 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
4568 2014-02-19 Tom Tromey <tromey@redhat.com>
4570 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
4572 (target_remove_fork_catchpoint): Add argument.
4573 * target.c (debug_to_remove_fork_catchpoint): Add argument.
4574 (update_current_target): Update.
4575 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
4578 2014-02-19 Tom Tromey <tromey@redhat.com>
4580 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
4582 (target_insert_fork_catchpoint): Add argument.
4583 * target.c (debug_to_insert_fork_catchpoint): Add argument.
4584 (update_current_target): Update.
4585 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
4588 2014-02-19 Tom Tromey <tromey@redhat.com>
4590 * target.h (struct target_ops) <to_post_startup_inferior>: Add
4592 (target_post_startup_inferior): Add argument.
4593 * target.c (debug_to_post_startup_inferior): Add argument.
4594 (update_current_target): Update.
4595 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
4597 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
4599 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
4601 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
4603 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
4605 (super_post_startup_inferior): Likewise.
4606 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
4608 (super_post_startup_inferior): Likewise.
4609 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
4610 Add 'self' argument.
4611 (super_post_startup_inferior): Likewise.
4613 2014-02-19 Tom Tromey <tromey@redhat.com>
4615 * target.h (struct target_ops) <to_load>: Add argument.
4616 * target.c (target_load): Add argument.
4617 (debug_to_load): Add argument.
4618 (update_current_target): Update.
4619 * remote.c (remote_load): Add 'self' argument.
4620 * remote-sim.c (gdbsim_load): Add 'self' argument.
4621 * remote-mips.c (mips_load): Add 'self' argument.
4622 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
4623 * monitor.c (monitor_load): Add 'self' argument.
4624 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
4626 2014-02-19 Tom Tromey <tromey@redhat.com>
4628 * target.h (struct target_ops) <to_terminal_info>: Add argument.
4629 (target_terminal_info): Add argument.
4630 * target.c (debug_to_terminal_info): Add argument.
4631 (default_terminal_info): Likewise.
4632 * inflow.c (child_terminal_info): Add 'self' argument.
4633 * inferior.h (child_terminal_info): Add 'self' argument.
4634 * go32-nat.c (go32_terminal_info): Add 'self' argument.
4636 2014-02-19 Tom Tromey <tromey@redhat.com>
4638 * target.h (struct target_ops) <to_terminal_save_ours>: Add
4640 (target_terminal_save_ours): Add argument.
4641 * target.c (debug_to_terminal_save_ours): Add argument.
4642 (update_current_target): Update.
4643 * inflow.c (terminal_save_ours): Add 'self' argument.
4644 * inferior.h (terminal_save_ours): Add 'self' argument.
4646 2014-02-19 Tom Tromey <tromey@redhat.com>
4648 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
4649 (target_terminal_ours): Add argument.
4650 * target.c (debug_to_terminal_ours): Add argument.
4651 (update_current_target): Update.
4652 * remote.c (remote_terminal_ours): Add 'self' argument.
4653 (remote_close): Update.
4654 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
4655 * inflow.c (terminal_ours): Add 'self' argument.
4656 * inferior.h (terminal_ours): Add 'self' argument.
4657 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
4659 2014-02-19 Pedro Alves <palves@redhat.com>
4660 Tom Tromey <tromey@redhat.com>
4662 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
4664 (target_terminal_ours_for_output): Add argument.
4665 * target.c (debug_to_terminal_ours_for_output): Add argument.
4666 (update_current_target): Update.
4667 * inflow.c (terminal_ours_for_output): Add 'self' argument.
4668 * inferior.h (terminal_ours_for_output): Add 'self' argument.
4669 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
4671 2014-02-19 Tom Tromey <tromey@redhat.com>
4673 * target.h (struct target_ops) <to_terminal_inferior>: Add
4675 * target.c (target_terminal_inferior): Add argument.
4676 (update_current_target): Update.
4677 * remote.c (remote_terminal_inferior): Add 'self' argument.
4678 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
4679 * inflow.c (terminal_inferior): Add 'self' argument.
4680 * inferior.h (terminal_inferior): Add 'self' argument.
4681 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
4682 (go32_terminal_inferior): Add 'self' argument.
4684 2014-02-19 Tom Tromey <tromey@redhat.com>
4686 * target.h (struct target_ops) <to_terminal_init>: Add argument.
4687 (target_terminal_init): Add argument.
4688 * target.c (debug_to_terminal_init): Add argument.
4689 (update_current_target): Update.
4690 * inflow.c (terminal_init_inferior): Add 'self' argument.
4691 * inferior.h (terminal_init_inferior): Add 'self' argument.
4692 * go32-nat.c (go32_terminal_init): Add 'self' argument.
4693 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
4695 2014-02-19 Tom Tromey <tromey@redhat.com>
4697 * target.h (struct target_ops)
4698 <to_can_accel_watchpoint_condition>: Add argument.
4699 (target_can_accel_watchpoint_condition): Add argument.
4700 * target.c (debug_to_can_accel_watchpoint_condition): Add
4702 (update_current_target): Update.
4703 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
4706 2014-02-19 Tom Tromey <tromey@redhat.com>
4708 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4710 (target_region_ok_for_hw_watchpoint): Add argument.
4711 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
4712 (default_region_ok_for_hw_watchpoint): Add argument.
4713 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
4714 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
4716 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
4718 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
4720 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
4722 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
4724 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
4726 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
4727 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
4729 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
4730 Add 'self' argument.
4732 2014-02-19 Tom Tromey <tromey@redhat.com>
4734 * target.h (struct target_ops) <to_insert_watchpoint>: Add
4736 (target_insert_watchpoint): Add argument.
4737 * target.c (debug_to_insert_watchpoint): Add argument.
4738 (update_current_target): Update.
4739 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
4740 * remote.c (remote_insert_watchpoint): Add 'self' argument.
4741 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
4742 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
4743 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
4744 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
4746 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
4747 (procfs_insert_hw_watchpoint): Add 'self' argument.
4748 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
4750 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
4752 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
4754 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
4755 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
4757 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
4760 2014-02-19 Tom Tromey <tromey@redhat.com>
4762 * target.h (struct target_ops) <to_remove_watchpoint>: Add
4764 (target_remove_watchpoint): Add argument.
4765 * target.c (debug_to_remove_watchpoint): Add argument.
4766 (update_current_target): Update.
4767 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
4768 * remote.c (remote_remove_watchpoint): Add 'self' argument.
4769 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
4770 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
4771 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
4772 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
4774 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
4775 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
4777 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
4779 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
4781 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
4782 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
4784 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
4787 2014-02-19 Tom Tromey <tromey@redhat.com>
4789 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
4791 (target_remove_hw_breakpoint): Add argument.
4792 * target.c (debug_to_remove_hw_breakpoint): Add argument.
4793 (update_current_target): Update.
4794 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
4795 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
4797 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
4798 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
4800 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
4803 2014-02-19 Tom Tromey <tromey@redhat.com>
4805 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
4807 (target_insert_hw_breakpoint): Add argument.
4808 * target.c (debug_to_insert_hw_breakpoint): Add argument.
4809 (update_current_target): Update.
4810 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
4811 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
4813 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
4814 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
4815 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
4817 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
4820 2014-02-19 Tom Tromey <tromey@redhat.com>
4822 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
4824 (target_can_use_hardware_watchpoint): Add argument.
4825 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
4826 (update_current_target): Update.
4827 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
4829 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
4831 * remote.c (remote_check_watch_resources): Add 'self' argument.
4832 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
4833 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
4835 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
4836 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
4838 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
4840 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
4842 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
4844 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
4846 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
4848 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
4849 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
4851 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
4854 2014-02-19 Tom Tromey <tromey@redhat.com>
4856 * target.h (struct target_ops) <to_post_attach>: Add argument.
4857 (target_post_attach): Add argument.
4858 * target.c (debug_to_post_attach): Add argument.
4859 (update_current_target): Update.
4860 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
4861 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
4862 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
4863 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
4864 * inf-child.c (inf_child_post_attach): Add 'self' argument.
4866 2014-02-19 Tom Tromey <tromey@redhat.com>
4868 * windows-nat.c (windows_close): Add 'self' argument.
4869 * tracepoint.c (tfile_close): Add 'self' argument.
4870 * target.h (struct target_ops) <to_close>: Add argument.
4871 * target.c (target_close): Add argument.
4872 (update_current_target): Update.
4873 * remote.c (remote_close): Add 'self' argument.
4874 * remote-sim.c (gdbsim_close): Add 'self' argument.
4875 * remote-mips.c (mips_close): Add 'self' argument.
4876 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
4877 * record-full.c (record_full_close): Add 'self' argument.
4878 * record-btrace.c (record_btrace_close): Add 'self' argument.
4879 * monitor.h (monitor_close): Add 'self' argument.
4880 * monitor.c (monitor_close): Add 'self' argument.
4881 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
4882 * linux-nat.c (linux_nat_close): Add argument.
4883 * go32-nat.c (go32_close): Add 'self' argument.
4884 * exec.c (exec_close_1): Add 'self' argument.
4885 * ctf.c (ctf_close): Add 'self' argument.
4886 * corelow.c (core_close): Add 'self' argument.
4887 (core_close_cleanup): Update.
4888 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
4889 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
4891 2014-02-19 Tom Tromey <tromey@redhat.com>
4893 * remote.c (remote_load): New function.
4894 (init_remote_ops): Use it.
4896 2014-02-19 Tom Tromey <tromey@redhat.com>
4898 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
4900 * common/linux-btrace.h (linux_supports_btrace): Update.
4901 * remote.c (remote_supports_btrace): Add "self" argument.
4902 * target-delegates.c: Rebuild.
4903 * target.c (target_supports_btrace): Remove.
4904 * target.h (struct target_ops) <to_supports_btrace>: Add
4905 target_ops argument.
4906 (target_supports_btrace): New define.
4908 2014-02-19 Tom Tromey <tromey@redhat.com>
4910 * record-full.c (record_full_beneath_to_resume_ops)
4911 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
4912 (record_full_beneath_to_wait)
4913 (record_full_beneath_to_store_registers_ops)
4914 (record_full_beneath_to_store_registers)
4915 (record_full_beneath_to_xfer_partial_ops)
4916 (record_full_beneath_to_xfer_partial)
4917 (record_full_beneath_to_insert_breakpoint_ops)
4918 (record_full_beneath_to_insert_breakpoint)
4919 (record_full_beneath_to_remove_breakpoint_ops)
4920 (record_full_beneath_to_remove_breakpoint)
4921 (record_full_beneath_to_stopped_by_watchpoint)
4922 (record_full_beneath_to_stopped_data_address)
4923 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
4924 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
4925 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
4926 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
4927 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
4928 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
4929 (tmp_to_stopped_data_address, tmp_to_async): Remove.
4930 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
4931 (record_full_resume, record_full_wait_1)
4932 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
4933 (record_full_store_registers, record_full_xfer_partial)
4934 (record_full_insert_breakpoint, record_full_remove_breakpoint)
4935 (record_full_async, record_full_core_xfer_partial): Use target
4937 * target-delegates.c: Rebuild.
4938 * target.c (current_xfer_partial): Remove.
4939 (update_current_target): Do not INHERIT or de_fault
4940 to_insert_breakpoint, to_remove_breakpoint,
4941 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
4942 to_is_async_p, to_async. Do not set to_xfer_partial field.
4943 (default_xfer_partial): Simplify.
4944 (current_xfer_partial): Remove.
4945 (target_wait, target_resume): Simplify.
4946 (find_default_can_async_p, find_default_is_async_p): Update.
4947 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
4948 to_xfer_partial, to_stopped_by_watchpoint,
4949 to_stopped_data_address.
4950 (target_store_registers): Simplify.
4951 (forward_target_remove_breakpoint)
4952 (forward_target_insert_breakpoint): Remove.
4953 (target_remove_breakpoint, target_insert_breakpoint)
4954 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
4955 * target.h (struct target_ops) <to_resume, to_wait,
4956 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
4957 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
4958 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
4960 (forward_target_remove_breakpoint)
4961 (forward_target_insert_breakpoint): Remove.
4962 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
4964 (record_btrace_insert_breakpoint): Delegate directly.
4966 2014-02-19 Tom Tromey <tromey@redhat.com>
4969 * target-delegates.c: New file.
4970 * target.c: Include target-delegates.c.
4971 (init_dummy_target): Call install_dummy_methods.
4972 (complete_target_initialization): Call install_delegators.
4973 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
4974 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
4975 * make-target-delegates: New file.
4977 2014-02-19 Tom Tromey <tromey@redhat.com>
4979 * record.c (find_record_target): Use find_target_at.
4980 * target.c (find_target_at): New function.
4981 * target.h (find_target_at): Declare.
4983 2014-02-19 Tom Tromey <tromey@redhat.com>
4985 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
4987 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
4989 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
4990 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
4992 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
4994 * linux-nat.c (save_sigtrap): Update.
4995 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
4996 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
4997 (linux_nat_close): Update.
4998 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
5000 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
5002 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
5003 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
5004 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
5005 (tmp_to_async): Add 'ops' argument.
5006 (record_full_stopped_by_watchpoint, record_full_async)
5007 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
5009 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
5010 (m32r_stopped_by_watchpoint): Add 'ops' argument.
5011 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
5012 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
5013 (remote_is_async_p, remote_async): Add 'ops' argument.
5014 (remote_stopped_data_address): Update.
5015 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
5016 * target.c (update_current_target)
5017 (find_default_can_async_p, find_default_is_async_p): Update.
5018 (init_dummy_target): Update.
5019 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
5020 * target.h (struct target_ops) <to_stopped_by_watchpoint,
5021 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
5022 (target_can_async_p, target_is_async_p, target_async)
5023 (target_stopped_by_watchpoint): Update.
5025 2014-02-19 Yao Qi <yao@codesourcery.com>
5028 * gdbarch.sh: Remove startup_gdbarch.
5029 * gdbarch.c: Regenerated.
5030 * gdbarch.h: Likewise.
5032 2014-02-17 Kevin Buettner <kevinb@redhat.com>
5034 * rl78-tdep.c (rl78_g10_register_name): New function.
5035 (rl78_return_value): Add g10 support.
5036 (rl78_gdbarch_init): Register rl78_g10_register_name for the
5039 2014-02-17 Doug Evans <xdje42@gmail.com>
5041 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
5042 (SUBDIR_GUILE_SRCS): Ditto.
5043 (scm-gsmob.o): Ditto.
5045 2014-02-17 Yao Qi <yao@codesourcery.com>
5047 * gnu-nat.c (ILL_RPC): Declare defined function.
5049 2014-02-17 Yao Qi <yao@codesourcery.com>
5051 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
5052 mach_msg_type_number_t.
5053 (gnu_write_inferior): Likewise.
5055 2014-02-17 Yao Qi <yao@codesourcery.com>
5057 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
5059 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
5060 (inf_validate_procs, inf_signal): Likewise.
5061 (S_exception_raise_request): Likewise.
5062 (do_mach_notify_dead_name): Likewise.
5063 (steal_exc_port): Likewise.
5064 (gnu_read_inferior): Change 'copy_count''s type to
5065 mach_msg_type_number_t.
5066 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
5069 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
5071 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
5072 flag. Adjust all users; in particular...
5073 (gnu_wait): ..., don't decrement its value in here...
5074 (gnu_create_inferior): ..., and instead set the flag in here,
5075 around the startup_inferior call, and call that one with
5076 START_INFERIOR_TRAPS_EXPECTED.
5078 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
5079 (ILL_RPC): ... new macro.
5080 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
5081 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
5082 (do_mach_notify_send_once, S_proc_setmsgport_reply)
5083 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
5084 functions with ILL_RPC macro.
5085 (S_proc_pid2task_reply, S_proc_task2pid_reply)
5086 (S_proc_task2proc_reply, S_proc_proc2task_reply)
5087 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
5088 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
5089 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
5090 (S_proc_getlogin_reply, S_proc_getsid_reply)
5091 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
5092 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
5093 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
5094 (S_proc_getnports_reply, S_proc_is_important_reply)
5095 (S_proc_get_code_reply): New stub functions, generated with
5098 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
5099 collected the type check structures.
5101 * reply_mig_hack.awk: Don't expect to see the auto keyword.
5103 2014-02-14 Doug Evans <dje@google.com>
5105 * target.c (target_write_partial): Fix result type.
5107 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
5109 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
5110 the proper offsets to access fpregset_t.
5112 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
5114 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
5115 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
5116 * h8300-tdep.c (setmachinelist): Remove global.
5117 * hppa-tdep.c (hppa_sigtramp): Remove global.
5118 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
5119 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
5120 * ravenscar-thread.c (update_target_observer): Remove global.
5121 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
5123 2014-02-12 Tom Tromey <tromey@redhat.com>
5125 * common/rsp-low.c: Update comments.
5126 * common/rsp-low.h: Update comments.
5128 2014-02-12 Tom Tromey <tromey@redhat.com>
5130 * common/rsp-low.c (convert_ascii_to_int): Remove.
5131 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
5133 2014-02-12 Tom Tromey <tromey@redhat.com>
5135 * common/rsp-low.h (unhexify): Don't declare.
5136 * common/rsp-low.c (unhexify): Remove.
5138 2014-02-12 Tom Tromey <tromey@redhat.com>
5140 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
5141 * common/rsp-low.c (convert_int_to_ascii): Remove.
5143 2014-02-12 Tom Tromey <tromey@redhat.com>
5145 * common/rsp-low.h (hexify): Don't declare.
5146 * common/rsp-low.c (hexify): Remove.
5148 2014-02-12 Tom Tromey <tromey@redhat.com>
5150 * common/rsp-low.c (hexify): Never take strlen of argument.
5152 2014-02-12 Tom Tromey <tromey@redhat.com>
5154 * common/rsp-low.c (bin2hex): Never take strlen of argument.
5155 * remote.c (extended_remote_run, remote_rcmd)
5156 (remote_download_trace_state_variable, remote_save_trace_data)
5157 (remote_set_trace_notes): Update.
5158 * tracepoint.c (encode_source_string, tfile_write_status)
5159 (tfile_write_uploaded_tsv): Update.
5161 2014-02-12 Tom Tromey <tromey@redhat.com>
5163 * tracepoint.c: Include rsp-low.h.
5164 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
5165 * remote.c: Include rsp-low.h.
5166 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
5167 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
5168 (remote_unescape_input): Move to common/rsp-low.c.
5169 * common/rsp-low.h: New file.
5170 * common/rsp-low.c: New file.
5171 * Makefile.in (SFILES): Add common/rsp-low.c.
5172 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
5173 (COMMON_OBS): Add rsp-low.o.
5174 (rsp-low.o): New target.
5176 2014-02-12 Tom Tromey <tromey@redhat.com>
5178 * utils.h: Include print-utils.h.
5179 (host_address_to_string, plongest, pulongest, phex, phex_nz)
5180 (int_string, core_addr_to_string, core_addr_to_string_nz)
5181 (hex_string, hex_string_custom): Don't declare.
5182 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
5183 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
5184 (hex_string_custom, int_string, core_addr_to_string)
5185 (core_addr_to_string_nz, host_address_to_string): Move to
5186 common/print-utils.c.
5187 * common/print-utils.h: New file.
5188 * common/print-utils.c: New file
5189 * Makefile.in (SFILES): Add common/print-utils.c.
5190 (HFILES_NO_SRCDIR): Add common/print-utils.h.
5191 (COMMON_OBS): Add print-utils.o.
5192 (print-utils.o): New target.
5194 2014-02-12 Tom Tromey <tromey@redhat.com>
5196 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
5198 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5200 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
5202 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5204 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
5205 if a PT_IO ptrace request returns sucessfully but indicates that 0
5206 bytes were transferred.
5208 2014-02-12 Pedro Alves <palves@redhat.com>
5209 Kevin Buettner <kevinb@redhat.com>
5211 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
5212 TYPE_INSTANCE_FLAG_CODE_SPACE.
5214 2014-02-12 Pedro Alves <palves@redhat.com>
5216 * h8300-tdep.c (pseudo_from_raw_register)
5217 (raw_from_pseudo_register): New functions.
5218 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
5221 2014-02-12 Pedro Alves <palves@redhat.com>
5223 * h8300-tdep.c (h8300_register_sim_regno): New function.
5224 (h8300_gdbarch_init): Install h8300_register_sim_regno as
5225 gdbarch_register_sim_regno hook.
5227 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
5229 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
5231 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
5233 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
5235 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5237 * obsd-tdep.h (obsd_init_abi): New prototype.
5238 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
5239 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
5240 (obsd_init_abi): New functions.
5241 * i386obsd-tdep.c: Include "obsd-tdep.h".
5242 (i386obsd_init_abi): Call obsd_init_abi.
5243 * amd64obsd-tdep.c: Include "obsd-tdep.h".
5244 (amd64obsd_init_abi): Call obsd_init_abi.
5245 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
5246 obsd-tdep.c to gdb_target_obs.
5248 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
5250 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
5251 double float arguments to 16-byte in the argument slots.
5253 2014-02-11 Doug Evans <xdje42@gmail.com>
5255 * configure.ac: Don't crash if pkg-config is not found and guile
5256 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
5258 * configure: Regenerate.
5260 2014-02-11 Yao Qi <yao@codesourcery.com>
5262 * aix-thread.c (aix_thread_xfer_partial): Update comments.
5263 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
5264 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
5265 * gnu-nat.c (gnu_xfer_memory): Likewise.
5266 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
5267 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5268 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5269 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
5271 2014-02-11 Yao Qi <yao@codesourcery.com>
5273 * target.h (enum target_xfer_error): Rename to ...
5274 (enum target_xfer_status): ... it. New. All users updated.
5275 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
5277 (TARGET_XFER_STATUS_ERROR_P): New macro.
5278 (target_xfer_error_to_string): Remove declaration.
5279 (target_xfer_status_to_string): Declare.
5280 (target_xfer_partial_ftype): Adjust it.
5281 (struct target_ops) <to_xfer_partial>: Return
5282 target_xfer_status. Add argument xfered_len. Update
5284 * target.c (target_xfer_error_to_string): Rename to ...
5285 (target_xfer_status_to_string): ... it. New. All callers
5287 (target_read_live_memory): Likewise. Call target_xfer_partial
5288 instead of target_read.
5289 (memory_xfer_live_readonly_partial): Return
5290 target_xfer_status. Add argument xfered_len.
5291 (raw_memory_xfer_partial): Likewise.
5292 (memory_xfer_partial_1): Likewise.
5293 (memory_xfer_partial): Likewise.
5294 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
5295 properly. Update debug message.
5296 (default_xfer_partial, current_xfer_partial): Likewise.
5297 (target_write_partial): Likewise.
5298 (target_read_partial): Likewise. All callers updated.
5299 (read_whatever_is_readable): Likewise.
5300 (target_write_with_progress): Likewise.
5301 (target_read_alloc_1): Likewise.
5303 * aix-thread.c (aix_thread_xfer_partial): Likewise.
5304 * auxv.c (procfs_xfer_auxv): Likewise.
5305 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
5306 * bfd-target.c (target_bfd_xfer_partial): Likewise.
5307 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
5308 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
5309 * corefile.c (read_memory): Adjust.
5310 * corelow.c (core_xfer_partial): Likewise.
5311 * ctf.c (ctf_xfer_partial): Likewise.
5312 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
5314 (darwin_xfer_partial): Likewise.
5315 * exec.c (section_table_xfer_memory_partial): Likewise. All
5317 (exec_xfer_partial): Likewise.
5318 * exec.h (section_table_xfer_memory_partial): Update
5320 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
5322 (gnu_xfer_partial): Likewise.
5323 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
5324 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
5325 (ia64_hpux_xfer_solib_got): Likewise.
5326 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
5327 type of 'partial_len' to ULONGEST.
5328 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
5329 * linux-nat.c (linux_xfer_siginfo ): Likewise.
5330 (linux_nat_xfer_partial): Likewise.
5331 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
5332 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
5333 * monitor.c (monitor_xfer_memory): Likewise.
5334 (monitor_xfer_partial): Likewise.
5335 * procfs.c (procfs_xfer_partial): Likewise.
5336 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5337 * record-full.c (record_full_xfer_partial): Likewise.
5338 (record_full_core_xfer_partial): Likewise.
5339 * remote-sim.c (gdbsim_xfer_memory): Likewise.
5340 (gdbsim_xfer_partial): Likewise.
5341 * remote.c (remote_write_bytes_aux): Likewise. All callers
5343 (remote_write_bytes, remote_read_bytes): Likewise. All
5345 (remote_flash_erase): Likewise. All callers updated.
5346 (remote_write_qxfer): Likewise. All callers updated.
5347 (remote_read_qxfer): Likewise. All callers updated.
5348 (remote_xfer_partial): Likewise.
5349 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5350 (rs6000_xfer_shared_libraries): Likewise.
5351 * sol-thread.c (sol_thread_xfer_partial): Likewise.
5352 (sol_thread_xfer_partial): Likewise.
5353 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5354 (sparc_xfer_partial): Likewise.
5355 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
5357 (spu_xfer_partial): Likewise.
5358 * spu-multiarch.c (spu_xfer_partial): Likewise.
5359 * tracepoint.c (tfile_xfer_partial): Likewise.
5360 * windows-nat.c (windows_xfer_memory): Likewise.
5361 (windows_xfer_shared_libraries): Likewise.
5362 (windows_xfer_partial): Likewise.
5363 * valprint.c: Replace 'target_xfer_error' with
5364 'target_xfer_status' in comments.
5366 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
5368 Checked in by Joel Brobecker <brobecker@adacore.com>.
5369 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
5371 2014-02-11 Joel Brobecker <brobecker@adacore.com>
5373 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
5374 function parameters.
5376 2014-02-10 Will Newton <will.newton@linaro.org>
5378 * elfread.c (elf_rel_plt_read): Look for a .got section if
5379 looking up .got.plt fails.
5380 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
5381 on address passed to elf_gnu_ifunc_record_cache.
5382 (elf_gnu_ifunc_resolve_addr): Likewise.
5383 (elf_gnu_ifunc_resolver_return_stop): Likewise.
5385 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
5387 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
5388 (X_RETTURN): New macro.
5389 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
5391 * sparc64-tdep.c (sparc64_init_abi): Hook
5392 sparc_in_function_epilogue_p.
5394 2014-02-10 Gary Benson <gbenson@redhat.com>
5396 * symfile-debug.c (debug_qf_expand_symtabs_matching):
5397 Rename name_matcher to symbol_matcher.
5399 2014-02-10 Gary Benson <gbenson@redhat.com>
5401 * symfile-debug.c (debug_qf_expand_symtabs_matching):
5402 Use expand_symtabs_file_matcher_ftype and
5403 expand_symtabs_symbol_matcher_ftype.
5405 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5407 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
5408 (struct ada_symbol_cache): New.
5409 (ada_free_symbol_cache): Forward declare.
5410 (struct ada_pspace_data): New.
5411 (ada_pspace_data_handle): New static global.
5412 (get_ada_pspace_data, ada_pspace_data_cleanup)
5413 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
5414 (cache_space, cache): Delete, now folded inside struct
5416 (ada_get_symbol_cache): New function.
5417 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
5419 (_initialize_ada_language): Remove initialization of cache_space.
5420 Move call to observer_attach_inferior_exit up, grouping it
5421 with the other observer registrations inside this function.
5422 Rename command to be more general. Add call to
5423 register_program_space_data_with_cleanup.
5425 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5427 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
5428 ada_new_objfile_observer.
5429 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
5430 (_initialize_tasks): Update uses of ada_new_objfile_observer
5431 and ada_tasks_normal_stop_observer.
5433 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5435 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
5436 returned by the 'Length attribute to integer.
5438 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5440 * ada-lang.c (_initialize_ada_language): Initialize
5441 cache_space obstack.
5443 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5445 * ada-lang.c (HASH_SIZE): New macro.
5446 (struct cache_entry): New type.
5447 (cache_space, cache): New static globals.
5448 (ada_clear_symbol_cache, find_entry): New functions.
5449 (lookup_cached_symbol, cache_symbol): Implement.
5450 (ada_new_objfile_observer, ada_free_objfile_observer): New.
5451 (_initialize_ada_language): Attach ada_new_objfile_observer
5452 and ada_free_objfile_observer.
5454 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5456 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
5457 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
5458 struct block * parameter.
5459 (ada_lookup_symbol_list_worker): Constify local variable "block".
5460 Remove cast which is no longer necessary.
5462 2014-02-10 Doug Evans <xdje42@gmail.com>
5464 Add Guile as an extension language.
5465 * NEWS: Mention Guile scripting.
5466 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
5467 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
5468 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
5469 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
5470 (CLIBS): Add GUILE_LIBS.
5471 (install-guile): New rule.
5472 (guile.o): New rule.
5473 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
5474 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
5475 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
5476 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
5477 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
5478 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
5479 (scm-type.o, scm-utils.o, scm-value.o): New rules.
5480 * configure.ac: New option --with-guile.
5481 * configure: Regenerate.
5482 * config.in: Regenerate.
5483 * auto-load.c: Remove #include "python/python.h". Add #include
5484 "gdb/section-scripts.h".
5485 (source_section_scripts): Handle Guile scripts.
5486 (_initialize_auto_load): Add name of Guile objfile script to
5487 scripts-directory help text.
5488 * breakpoint.c (condition_command): Tweak comment to include Scheme.
5489 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
5490 (struct breakpoint): New member scm_bp_object.
5491 * defs.h (enum command_control_type): New value guile_control.
5492 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
5494 (show_user): Update comment.
5495 (_initialize_cli_cmds): Update help text for "show user". Update help
5496 text for max-user-call-depth.
5497 * cli/cli-script.c: Remove #include "python/python.h". Add #include
5499 (multi_line_command_p): Add guile_control.
5500 (print_command_lines): Handle guile_control.
5501 (execute_control_command, recurse_read_control_structure): Ditto.
5502 (process_next_line): Recognize "guile" commands.
5503 * disasm.c (gdb_disassemble_info): Make non-static.
5504 * disasm.h: #include "dis-asm.h".
5505 (struct gdbarch): Add forward decl.
5506 (gdb_disassemble_info): Declare.
5507 * extension.c: #include "guile/guile.h".
5508 (extension_languages): Add guile.
5509 (get_ext_lang_defn): Handle EXT_LANG_GDB.
5510 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
5511 * gdbtypes.c (get_unsigned_type_max): New function.
5512 (get_signed_type_minmax): New function.
5513 * gdbtypes.h (get_unsigned_type_max): Declare.
5514 (get_signed_type_minmax): Declare.
5515 * guile/README: New file.
5516 * guile/guile-internal.h: New file.
5517 * guile/guile.c: New file.
5518 * guile/guile.h: New file.
5519 * guile/scm-arch.c: New file.
5520 * guile/scm-auto-load.c: New file.
5521 * guile/scm-block.c: New file.
5522 * guile/scm-breakpoint.c: New file.
5523 * guile/scm-disasm.c: New file.
5524 * guile/scm-exception.c: New file.
5525 * guile/scm-frame.c: New file.
5526 * guile/scm-gsmob.c: New file.
5527 * guile/scm-iterator.c: New file.
5528 * guile/scm-lazy-string.c: New file.
5529 * guile/scm-math.c: New file.
5530 * guile/scm-objfile.c: New file.
5531 * guile/scm-ports.c: New file.
5532 * guile/scm-pretty-print.c: New file.
5533 * guile/scm-safe-call.c: New file.
5534 * guile/scm-string.c: New file.
5535 * guile/scm-symbol.c: New file.
5536 * guile/scm-symtab.c: New file.
5537 * guile/scm-type.c: New file.
5538 * guile/scm-utils.c: New file.
5539 * guile/scm-value.c: New file.
5540 * guile/lib/gdb.scm: New file.
5541 * guile/lib/gdb/boot.scm: New file.
5542 * guile/lib/gdb/experimental.scm: New file.
5543 * guile/lib/gdb/init.scm: New file.
5544 * guile/lib/gdb/iterator.scm: New file.
5545 * guile/lib/gdb/printing.scm: New file.
5546 * guile/lib/gdb/types.scm: New file.
5547 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
5548 (VPATH): Add $(GUILE_SRCDIR).
5549 (GUILE_DIR): New variable.
5550 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
5551 (all): Add stamp-guile dependency.
5552 (stamp-guile): New rule.
5553 (clean-guile, install-guile, uninstall-guile): New rules.
5554 (install-only): Add install-guile dependency.
5555 (uninstall): Add uninstall-guile dependency.
5556 (clean): Add clean-guile dependency.
5558 2014-02-09 Doug Evans <xdje42@gmail.com>
5560 Revert this patch (which I approved, mea culpa).
5562 2014-02-08 Mark Kettenis <kettenis@gnu.org>
5564 * Makefile.in (all-lib): Remove.
5565 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
5567 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5569 Fix Python stack corruption.
5570 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
5573 2014-02-08 Mark Kettenis <kettenis@gnu.org>
5575 * Makefile.in (all-lib): Remove.
5576 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
5578 2014-02-07 Doug Evans <dje@google.com>
5580 * extension-priv.h (extension_language_script_ops): Add comment.
5581 (extension_language_ops): Add comment.
5582 (active_ext_lang_state): Fix typo in comment.
5584 2014-02-07 Pedro Alves <palves@redhat.com>
5586 PR breakpoints/16292
5587 * infrun.c (handle_signal_stop) <signal arrives while stepping
5588 over a breakpoint>: Switch back to the stepping thread.
5590 2014-02-07 Yao Qi <yao@codesourcery.com>
5592 * target.c (target_xfer_partial): Return zero if LEN is zero.
5594 2014-02-07 Yao Qi <yao@codesourcery.com>
5596 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
5597 (ld_so_xfer_auxv): Likewise.
5598 * bfd-target.c (target_bfd_xfer_partial): Likewise.
5599 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
5600 * corelow.c (core_xfer_partial): Likewise.
5601 * ctf.c (ctf_xfer_partial): Likewise.
5602 * darwin-nat.c (darwin_read_dyld_info): Likewise.
5603 (darwin_xfer_partial): Likewise.
5604 * exec.c (exec_xfer_partial): Likewise.
5605 * gnu-nat.c (gnu_xfer_partial): Likewise.
5606 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
5607 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
5608 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
5609 * linux-nat.c (linux_xfer_siginfo): Likewise.
5610 (linux_proc_xfer_spu): Likewise.
5611 * procfs.c (procfs_xfer_partial): Likewise.
5612 * record-full.c (record_full_xfer_partial): Likewise.
5613 (record_full_core_xfer_partial): Likewise.
5614 * remote-sim.c (gdbsim_xfer_partial): Likewise.
5615 * remote.c (remote_write_qxfer): Likewise.
5616 (remote_write_qxfer, remote_read_qxfer): Likewise.
5617 (remote_xfer_partial): Likewise.
5618 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5619 (rs6000_xfer_shared_libraries): Likewise.
5620 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5621 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
5622 (spu_xfer_partial): Likewise.
5623 * target.c (memory_xfer_partial_1): Likewise.
5624 * tracepoint.c (tfile_xfer_partial): Likewise.
5625 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
5626 (windows_xfer_partial): Likewise.
5628 2014-02-07 Yao Qi <yao@codesourcery.com>
5630 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
5632 (core_xfer_shared_libraries_aix): Likewise.
5633 * gdbarch.c, gdbarch.h: Regenerated.
5634 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
5635 ULONGEST. Change 'len_avail' type to ULONGEST.
5636 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
5637 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
5639 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
5641 2014-02-07 Yao Qi <yao@codesourcery.com>
5643 * corefile.c (memory_error): Get 'exception' from ERR and pass
5644 'exception' to throw_error.
5646 2014-02-06 Doug Evans <xdje42@gmail.com>
5648 * configure.ac (libpython checking): Remove all but python.o from
5649 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
5650 * configure: Regenerate.
5652 * Makefile.in (SFILES): Add extension.c.
5653 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
5654 (COMMON_OBS): Add extension.o.
5655 * extension.h: New file.
5656 * extension-priv.h: New file.
5657 * extension.c: New file.
5659 * python/python-internal.h: #include "extension.h".
5660 (gdbpy_auto_load_enabled): Declare.
5661 (gdbpy_apply_val_pretty_printer): Declare.
5662 (gdbpy_apply_frame_filter): Declare.
5663 (gdbpy_preserve_values): Declare.
5664 (gdbpy_breakpoint_cond_says_stop): Declare.
5665 (gdbpy_breakpoint_has_cond): Declare.
5666 (void source_python_script_for_objfile): Delete.
5667 * python/python.c: #include "extension-priv.h".
5668 Delete inclusion of "observer.h".
5669 (extension_language_python): Moved here and renamed from
5670 script_language_python in py-auto-load.c.
5671 Redefined to be of type extension_language_defn.
5672 (python_extension_script_ops): New global.
5673 (python_extension_ops): New global.
5674 (struct python_env): New member previous_active.
5675 (restore_python_env): Call restore_active_ext_lang.
5676 (ensure_python_env): Call set_active_ext_lang.
5677 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
5679 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
5681 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
5683 (gdbpy_eval_from_control_command): Renamed from
5684 eval_python_from_control_command, made static. New arg extlang.
5685 (gdbpy_source_script) Renamed from source_python_script, made static.
5687 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
5688 result to int. New arg extlang.
5689 (gdbpy_source_objfile_script): Renamed from
5690 source_python_script_for_objfile, made static. New arg extlang.
5691 (gdbpy_start_type_printers): Renamed from start_type_printers, made
5692 static. New args extlang, extlang_printers. Change result type to
5694 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
5695 static. New arg extlang. Rename arg printers to extlang_printers
5696 and change type to ext_lang_type_printers *.
5697 (gdbpy_free_type_printers): Renamed from free_type_printers, made
5698 static. Replace argument arg with extlang, extlang_printers.
5699 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
5700 (!HAVE_PYTHON, source_python_script): Delete.
5701 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
5702 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
5703 (!HAVE_PYTHON, start_type_printers): Delete.
5704 (!HAVE_PYTHON, apply_type_printers): Delete.
5705 (!HAVE_PYTHON, free_type_printers): Delete.
5706 (_initialize_python): Delete call to observer_attach_before_prompt.
5707 (finalize_python): Set/restore active extension language.
5708 (gdbpy_finish_initialization) Renamed from
5709 finish_python_initialization, made static. New arg extlang.
5710 (gdbpy_initialized): New function.
5711 * python/python.h: #include "extension.h". Delete #include
5712 "value.h", "mi/mi-cmds.h".
5713 (extension_language_python): Declare.
5714 (GDBPY_AUTO_FILE_NAME): Delete.
5715 (enum py_bt_status): Moved to extension.h and renamed to
5717 (enum frame_filter_flags): Moved to extension.h.
5718 (enum py_frame_args): Moved to extension.h and renamed to
5719 ext_lang_frame_args.
5720 (finish_python_initialization): Delete.
5721 (eval_python_from_control_command): Delete.
5722 (source_python_script): Delete.
5723 (apply_val_pretty_printer): Delete.
5724 (apply_frame_filter): Delete.
5725 (preserve_python_values): Delete.
5726 (gdbpy_script_language_defn): Delete.
5727 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
5728 (start_type_printers, apply_type_printers, free_type_printers): Delete.
5730 * auto-load.c: #include "extension.h".
5731 (GDB_AUTO_FILE_NAME): Delete.
5732 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
5733 (script_language_gdb): Delete, moved to extension.c and renamed to
5734 extension_language_gdb.
5735 (source_gdb_script_for_objfile): Delete.
5736 (auto_load_pspace_info): New member unsupported_script_warning_printed.
5737 (loaded_script): Change type of language member to
5738 struct extension_language_defn *.
5739 (init_loaded_scripts_info): Initialize
5740 unsupported_script_warning_printed.
5741 (maybe_add_script): Make static. Change type of language arg to
5742 struct extension_language_defn *.
5743 (clear_section_scripts): Reset unsupported_script_warning_printed.
5744 (auto_load_objfile_script_1): Rewrite to use extension language API.
5745 (auto_load_objfile_script): Make public. Remove support-compiled-in
5746 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
5747 (source_section_scripts): Rewrite to use extension language API.
5748 (load_auto_scripts_for_objfile): Rewrite to use
5749 auto_load_scripts_for_objfile.
5750 (collect_matching_scripts_data): Change type of language member to
5751 struct extension_language_defn *.
5752 (auto_load_info_scripts): Change type of language arg to
5753 struct extension_language_defn *.
5754 (unsupported_script_warning_print): New function.
5755 (script_not_found_warning_print): Make static.
5756 (_initialize_auto_load): Rewrite construction of scripts-directory
5758 * auto-load.h (struct objfile): Add forward decl.
5759 (struct script_language): Delete.
5760 (struct auto_load_pspace_info): Add forward decl.
5761 (struct extension_language_defn): Add forward decl.
5762 (maybe_add_script): Delete.
5763 (auto_load_objfile_script): Declare.
5764 (script_not_found_warning_print): Delete.
5765 (auto_load_info_scripts): Update prototype.
5766 (auto_load_gdb_scripts_enabled): Declare.
5767 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
5768 auto_load_python_scripts_enabled and made public.
5769 (script_language_python): Delete, moved to python.c.
5770 (gdbpy_script_language_defn): Delete.
5771 (info_auto_load_python_scripts): Update to use
5772 extension_language_python.
5774 * breakpoint.c (condition_command): Replace call to
5775 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
5776 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
5777 with call to breakpoint_ext_lang_cond_says_stop.
5778 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
5779 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
5780 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
5781 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
5783 (local_setattro): Print name of extension language with existing
5786 * valprint.c (val_print, value_print): Update to call
5787 apply_ext_lang_val_pretty_printer.
5788 * cp-valprint.c (cp_print_value): Update call to
5789 apply_ext_lang_val_pretty_printer.
5790 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
5791 (gdbpy_apply_val_pretty_printer): Renamed from
5792 apply_val_pretty_printer. New arg extlang.
5793 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
5795 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
5796 extension language API.
5797 * cli/cli-script.c (execute_control_command): Update to call
5798 eval_ext_lang_from_control_command.
5800 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
5801 enum ext_lang_bt_status values. Update call to
5802 apply_ext_lang_frame_filter.
5803 (mi_cmd_stack_list_locals): Ditto.
5804 (mi_cmd_stack_list_args): Ditto.
5805 (mi_cmd_stack_list_variables): Ditto.
5806 * mi/mi-main.c: Delete #include "python/python-internal.h".
5807 Add #include "extension.h".
5808 (mi_cmd_list_features): Replace reference to python internal variable
5809 gdb_python_initialized with call to ext_lang_initialized_p.
5811 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
5812 Update to use enum ext_lang_frame_args. Update to call
5813 apply_ext_lang_frame_filter.
5814 * python/py-framefilter.c (extract_sym): Update to use enum
5816 (extract_value, py_print_type, py_print_value): Ditto.
5817 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
5818 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
5819 (py_print_frame): Ditto.
5820 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
5821 New arg extlang. Update to use enum ext_lang_bt_status.
5823 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
5824 finish_python_initialization. Replace with call to
5825 finish_ext_lang_initialization.
5827 * typeprint.c (do_free_global_table): Update to call
5828 free_ext_lang_type_printers.
5829 (create_global_typedef_table): Update to call
5830 start_ext_lang_type_printers.
5831 (find_global_typedef): Update to call apply_ext_lang_type_printers.
5832 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
5833 (type_print_options): Change type of global_printers from "void *"
5834 to "struct ext_lang_type_printers *".
5836 * value.c (preserve_values): Update to call preserve_ext_lang_values.
5837 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
5838 (gdbpy_preserve_values): Renamed from preserve_python_values.
5840 (!HAVE_PYTHON, preserve_python_values): Delete.
5842 * utils.c (quit_flag): Delete, moved to extension.c.
5843 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
5846 * eval.c: Delete #include "python/python.h".
5847 * main.c: Delete #include "python/python.h".
5849 * defs.h: Update comment.
5851 2014-02-06 Joel Brobecker <brobecker@adacore.com>
5855 2014-02-05 Mark Kettenis <kettenis@gnu.org>
5857 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
5860 2014-02-05 Yao Qi <yao@codesourcery.com>
5862 * remote.c (remote_pass_signals): Remove local 'buf' and use
5864 (remote_program_signals): Likewise.
5866 2014-02-05 Yao Qi <yao@codesourcery.com>
5868 * ctf.c: Include "inferior.h" and "gdbthread.h".
5869 (CTF_PID): A new macro.
5870 (ctf_open): Call inferior_appeared and add_thread_silent.
5871 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
5872 (ctf_thread_alive): New function.
5873 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
5875 2014-02-05 Yao Qi <yao@codesourcery.com>
5879 2013-05-24 Yao Qi <yao@codesourcery.com>
5881 * tracepoint.c (TFILE_PID): Remove.
5882 (tfile_open): Don't add thread and inferior.
5883 (tfile_close): Don't set 'inferior_ptid'. Don't call
5884 exit_inferior_silent.
5885 (tfile_thread_alive): Remove.
5886 (init_tfile_ops): Don't set field 'to_thread_alive' of
5889 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
5891 * remote.c (remote_start_remote): Call remote_check_symbols even
5892 if only symbol-file (not file) has been given.
5894 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5896 * gdbarch.sh (skip_entrypoint): New callback.
5897 * gdbarch.c, gdbarch.h: Regenerate.
5898 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
5899 * infrun.c (fill_in_stop_func): Likewise.
5900 * ppc-linux-tdep.c: Include "elf/ppc64.h".
5901 (ppc_elfv2_elf_make_msymbol_special): New function.
5902 (ppc_elfv2_skip_entrypoint): Likewise.
5903 (ppc_linux_init_abi): Install them for ELFv2.
5905 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5907 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
5908 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
5909 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
5910 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
5911 structures returned in GPRs.
5913 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5915 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
5916 offset to the stack parameter list for the ELFv2 ABI.
5918 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5920 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
5921 set_gdbarch_convert_from_func_ptr_addr and
5922 set_gdbarch_elf_make_msymbol_special for ELFv1.
5923 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
5924 function descriptors on ELFv1.
5925 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
5926 set up r12 at function entry.
5928 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5930 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
5931 (struct gdbarch_tdep): New member elf_abi.
5933 * rs6000-tdep.c: Include "elf/ppc64.h".
5934 (rs6000_gdbarch_init): Detect ELF ABI version.
5936 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5938 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
5939 within a register pair holding a DFP 128-bit value on little-endian.
5940 (ppc64_sysv_abi_return_value_base): Likewise.
5941 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
5942 (dfp_pseudo_register_write): Likewise.
5944 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5946 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
5947 offset on little-endian when passing _Decimal32.
5948 (ppc64_sysv_abi_return_value_base): Likewise for return values.
5950 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5952 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
5953 of the overlapped FP register within the VSX register on little-
5955 (efpr_pseudo_register_write): Likewise.
5957 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5959 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
5960 offset on little-endian when passing small structures.
5962 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5964 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
5965 (struct ppc64_sysv_argpos): New data structure.
5966 (ppc64_sysv_abi_push_float): Remove.
5967 (ppc64_sysv_abi_push_val): New function.
5968 (ppc64_sysv_abi_push_integer): Likewise.
5969 (ppc64_sysv_abi_push_freg): Likewise.
5970 (ppc64_sysv_abi_push_vreg): Likewise.
5971 (ppc64_sysv_abi_push_param): Likewise.
5972 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
5973 (ppc64_sysv_abi_return_value_base): New function.
5974 (ppc64_sysv_abi_return_value): Refactor to use it.
5976 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5978 * NEWS: Document new target powerpc64le-*-linux*.
5980 2014-02-04 Mark Kettenis <kettenis@gnu.org>
5982 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
5983 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
5985 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
5986 register set used in ELF core dumps. Add floating-point register set.
5988 2014-02-03 Kevin Buettner <kevinb@redhat.com>
5990 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
5991 dwarf2_to_gdb[] table using symbolic constants. Adjust
5992 penultimate entry from number representing the PC register
5993 to symbolic constant representing the MDR register. Add
5994 constant for the PC register to the end of the table.
5996 2014-02-03 Mark Kettenis <kettenis@gnu.org>
5998 * bsd-kvm.c: Include <sys/param.h>
6000 2014-02-03 Mark Kettenis <kettenis@gnu.org>
6002 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
6004 2014-01-31 Joel Brobecker <brobecker@adacore.com>
6006 * ada-lang.h (clear_ada_sym_cache): Delete.
6008 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
6010 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
6012 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
6014 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
6015 the sigreturn register save area only if the syscall is
6018 2014-01-29 Joel Brobecker <brobecker@adacore.com>
6020 * valops.c (value_slice): Minor reformatting.
6022 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
6024 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
6026 2014-01-28 Joel Brobecker <brobecker@adacore.com>
6028 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
6030 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
6031 (ada_ignore_descriptive_types_p): New static global.
6032 (find_parallel_type_by_descriptive_type): Return immediately
6033 if ada_ignore_descriptive_types_p is set.
6034 (_initialize_ada_language): Register new commands "maintenance
6035 set ada", "maintenance show ada", "maintenance set ada
6036 ignore-descriptive-types" and "maintenance show ada
6037 ignore-descriptive-types".
6038 * NEWS: Add entry for new "maint ada set/show
6039 ignore-descriptive-types" commands.
6041 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
6043 * record-btrace.c (record_btrace_close): Call btrace_teardown
6046 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6048 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
6051 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6053 * ada-typeprint (type_is_full_subrange_of_target_type):
6055 (print_range): Add parameter bounds_prefered_p. If not set,
6056 try printing range types using the name of their base type.
6057 (print_range_type): Add parameter bounds_prefered_p.
6058 Use it in call to print_range.
6059 (print_array_type, ada_print_type): Update calls to print_range
6060 and print_range_type.
6062 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6064 * ada-typeprint.c (print_array_type, print_choices, print_range)
6065 (print_range_bound, print_dynamic_range_bound, print_range_type):
6068 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6070 * ada-typeprint.c (print_range): Add missing empty line
6071 after local declaration.
6073 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6075 * ada-valprint.c (print_optional_low_bound): Get index_type's
6076 target type for as long as it is a TYPE_CODE_RANGE.
6078 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6080 * procfs.c (procfs_make_note_section): Remove assertion and
6083 2014-01-24 Yao Qi <yao@codesourcery.com>
6085 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
6086 * corelow.c (get_core_siginfo): Likewise.
6088 2014-01-24 Yao Qi <yao@codesourcery.com>
6090 * remote.c (remote_write_bytes_aux): Change type of 'len' to
6091 ULONGEST. Don't check 'len' is negative.
6092 (remote_write_bytes): Change type of 'len' to ULONGEST.
6094 2014-01-23 Tom Tromey <tromey@redhat.com>
6097 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
6098 Handle exception from frame.block.
6099 (FrameVars.fetch_frame_locals): Likewise.
6101 2014-01-23 Tom Tromey <tromey@redhat.com>
6104 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
6105 on a NULL pointer. Move "goto error" to correct place.
6107 2014-01-23 Tom Tromey <tromey@redhat.com>
6110 * python/py-framefilter.c (apply_frame_filter): Call
6111 ensure_python_env after computing gdbarch.
6113 2014-01-23 Yao Qi <yao@codesourcery.com>
6115 * target.c (raw_memory_xfer_partial): Change argument type
6116 from void * to gdb_byte *.
6117 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
6119 2014-01-22 Doug Evans <dje@google.com>
6121 New gdbserver option --debug-format=timestamp.
6124 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
6126 * syscalls/s390x-linux.xml: New file.
6127 * syscalls/s390-linux.xml: New file.
6128 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
6129 (XML_SYSCALL_FILENAME_S390X): Likewise.
6130 (op_svc): New enum value for SVC opcode.
6131 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
6132 (s390_linux_get_syscall_number): New function.
6133 (s390_gdbarch_init): Register '*get_syscall_number' and the
6134 syscall xml file name.
6135 * data-directory/Makefile.in (SYSCALLS_FILES): Add
6136 "s390-linux.xml" and "s390x-linux.xml".
6137 * NEWS: Announce new feature.
6139 2014-01-22 Baruch Siach <baruch@tkos.co.il>
6141 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
6143 2014-01-22 Pedro Alves <palves@redhat.com>
6145 * xtensa-config.c: Include defs.h.
6147 2014-01-22 Joel Brobecker <brobecker@adacore.com>
6149 * common/common-utils.h: Add "ARI:" comment beside __func__
6152 2014-01-22 Joel Brobecker <brobecker@adacore.com>
6154 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
6155 documentation a bit.
6157 2014-01-21 Roland McGrath <mcgrathr@google.com>
6159 * configure.ac: Call AM_PROG_INSTALL_STRIP.
6160 * configure: Regenerate.
6161 * aclocal.m4: Regenerate.
6162 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
6163 New substituted variables.
6164 (install-strip): New target.
6165 (INSTALL_SCRIPT): New substituted variable.
6166 (FLAGS_TO_PASS): Add it.
6167 (install-only): Use $(INSTALL_SCRIPT) rather than
6168 $(INSTALL_PROGRAM) for gcore.
6170 2014-01-20 Tom Tromey <tromey@redhat.com>
6172 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
6175 2014-01-20 Tom Tromey <tromey@redhat.com>
6177 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
6178 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
6179 (deprecated_cmd_warning, complete_on_cmdlist): Update.
6180 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
6181 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
6182 (struct cmd_list_element) <flags>: Remove.
6183 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
6184 doc_allocated>: New fields.
6185 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
6187 * maint.c (maintenance_do_deprecate): Update.
6188 * top.c (execute_command): Update.
6190 2014-01-20 Baruch Siach <baruch@tkos.co.il>
6192 * xtensa-linux-nat.c: Include asm/ptrace.h.
6194 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6196 * Makefile.in (SFILES): Add d-support.c.
6197 (COMMON_OBS): Add d-support.o.
6198 * d-lang.h (d_parse_symbol): Add comment, now defined in
6200 * d-lang.c (parse_call_convention)
6201 (parse_attributes, parse_function_types)
6202 (parse_function_args, parse_type, parse_identifier)
6203 (call_convention_p, d_parse_symbol): Move functions to ...
6204 * d-support.c: ... New file.
6206 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6208 * d-lang.h (d_parse_symbol): Add declaration.
6209 * d-lang.c (extract_identifiers)
6210 (extract_type_info): Remove functions.
6211 (parse_call_convention, parse_attributes)
6212 (parse_function_types, parse_function_args)
6213 (parse_type, parse_identifier, call_convention_p)
6214 (d_parse_symbol): New functions.
6215 (d_demangle): Use d_parse_symbol to demangle D symbols.
6217 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6219 * d-lang.h (struct builtin_d_type): New data type.
6220 (builtin_d_type): Add declaration.
6221 * d-lang.c (d_language_arch_info, build_d_types)
6222 (builtin_d_type): New functions.
6223 (enum d_primitive_types): New data type.
6224 (d_language_defn): Change c_language_arch_info to
6225 d_language_arch_info.
6226 (d_type_data): New static variable.
6227 (_initialize_d_language): Initialize d_type_data.
6229 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6231 * d-lang.h (d_main_name): Add declaration.
6232 * d-lang.c (d_main_name): New function.
6233 * symtab.c (find_main_name): Add call to d_main_name.
6235 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6237 * d-lang.c (d_language_defn): Change macro_expansion_c to
6240 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6242 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6244 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
6246 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
6247 gdb_exception" declaration.
6248 * remote.c (getpkt_or_notif_sane): Likewise.
6250 2014-01-17 Doug Evans <dje@google.com>
6252 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
6253 function, contents of dirnames_to_char_ptr_vec_append moved here.
6254 (delim_string_to_char_ptr_vec): New function.
6255 (dirnames_to_char_ptr_vec_append): Rewrite.
6256 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
6258 2014-01-17 Doug Evans <dje@google.com>
6260 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
6262 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
6263 #include "common-utils.h".
6264 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
6265 * common/vec.h (VEC_ASSERT_PASS): Update.
6266 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
6267 (MACH_CHECK_ERROR): Update.
6269 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
6271 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
6273 * gdbarch.h: Regenerate.
6275 2014-01-16 Tom Tromey <tromey@redhat.com>
6277 * value.c (struct value) <regnum>: Move earlier.
6279 2014-01-16 Tom Tromey <tromey@redhat.com>
6281 * remote.c (extended_remote_create_inferior): Rename from
6282 extended_remote_create_inferior_1. Add "ops" argument. Remove
6285 2014-01-16 Pedro Alves <palves@redhat.com>
6287 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
6288 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
6291 2014-01-16 Doug Evans <dje@google.com>
6293 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
6295 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6297 * btrace.h (btrace_thread_flag): New.
6298 (struct btrace_thread_info) <flags>: New.
6299 * record-btrace.c (record_btrace_resume_thread)
6300 (record_btrace_find_thread_to_move, btrace_step_no_history)
6301 (btrace_step_stopped, record_btrace_start_replaying)
6302 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
6303 (record_btrace_find_resume_thread): New.
6304 (record_btrace_resume, record_btrace_wait): Extend.
6305 (record_btrace_can_execute_reverse): New.
6306 (record_btrace_open): Fail in non-stop mode.
6307 (record_btrace_set_replay): Split into this, ...
6308 (record_btrace_stop_replaying): ... this, ...
6309 (record_btrace_clear_histories): ... and this.
6310 (init_record_btrace_ops): Init to_can_execute_reverse.
6311 * NEWS: Announce it.
6313 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6315 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
6316 (forward_target_decr_pc_after_break)
6317 (target_decr_pc_after_break): New.
6318 * target.c (forward_target_decr_pc_after_break)
6319 (target_decr_pc_after_break): New.
6320 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
6321 instead of gdbarch_decr_pc_after_break.
6322 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
6323 instead of gdbarch_decr_pc_after_break.
6324 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
6325 instead of gdbarch_decr_pc_after_break.
6326 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
6327 instead of gdbarch_decr_pc_after_break.
6328 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
6329 instead of gdbarch_decr_pc_after_break.
6330 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
6331 instead of gdbarch_decr_pc_after_break.
6333 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6335 * btrace.c: Include regcache.h.
6336 (btrace_add_pc): New.
6337 (btrace_enable): Call btrace_add_pc.
6338 (btrace_is_empty): New.
6339 * btrace.h (btrace_is_empty): New.
6340 * record-btrace.c (require_btrace, record_btrace_info): Call
6343 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6345 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
6346 Support delta reads.
6347 (linux_disable_btrace): Change return type.
6348 * common/linux-btrace.h (linux_read_btrace): Change parameters
6349 and return type to allow error reporting. Update users.
6350 (linux_disable_btrace): Change return type. Update users.
6351 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
6353 (btrace_error): New.
6354 (btrace_block) <begin>: Comment on BEGIN == 0.
6355 * btrace.c (btrace_compute_ftrace): Start from the end of
6357 (btrace_stitch_trace, btrace_clear_history): New.
6358 (btrace_fetch): Read delta trace, return if replaying.
6359 (btrace_clear): Move clear history code to btrace_clear_history.
6360 (parse_xml_btrace): Throw an error if parsing failed.
6361 * target.h (struct target_ops) <to_read_btrace>: Change parameters
6362 and return type to allow error reporting.
6363 (target_read_btrace): Change parameters and return type to allow
6365 * target.c (target_read_btrace): Update.
6366 * remote.c (remote_read_btrace): Support delta reads. Pass
6368 * NEWS: Announce it.
6370 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6372 * record.h (record_btrace_frame_unwind)
6373 (record_btrace_tailcall_frame_unwind): New declarations.
6374 * dwarf2-frame: Include record.h
6375 (dwarf2_frame_cfa): Throw an error for btrace frames.
6376 * record-btrace.c: Include hashtab.h.
6377 (btrace_get_bfun_name): New.
6378 (btrace_call_history): Call btrace_get_bfun_name.
6379 (struct btrace_frame_cache): New.
6381 (bfcache_hash, bfcache_eq, bfcache_new): New.
6382 (btrace_get_frame_function): New.
6383 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
6384 (record_btrace_frame_this_id): Compute own id.
6385 (record_btrace_frame_prev_register): Provide PC, throw_error
6386 for all other registers.
6387 (record_btrace_frame_sniffer): Detect btrace frames.
6388 (record_btrace_tailcall_frame_sniffer): New.
6389 (record_btrace_frame_dealloc_cache): New.
6390 (record_btrace_frame_unwind): Add new functions.
6391 (record_btrace_tailcall_frame_unwind): New.
6392 (_initialize_record_btrace): Allocate cache.
6393 * btrace.c (btrace_clear): Call reinit_frame_cache.
6394 * NEWS: Announce it.
6396 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6398 * record-btrace.c (record_btrace_set_replay)
6399 (record_btrace_goto_begin, record_btrace_goto_end)
6400 (record_btrace_goto): New.
6401 (init_record_btrace_ops): Initialize them.
6402 * NEWS: Announce it.
6404 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6406 * record-btrace.c (record_btrace_find_new_threads)
6407 (record_btrace_thread_alive): New.
6408 (init_record_btrace_ops): Initialize to_find_new_threads and
6411 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6413 * record-btrace.c (record_btrace_resume): New.
6414 (record_btrace_wait): New.
6415 (init_record_btrace_ops): Initialize to_wait and to_resume.
6417 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6419 * record-btrace.c (record_btrace_xfer_partial)
6420 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
6421 (record_btrace_allow_memory_access): New.
6422 (init_record_btrace_ops): Initialize new methods.
6423 * target.c (raw_memory_xfer_partial): Bail out if target reports
6424 that this memory is not available.
6426 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6428 * target.h (target_ops) <to_insert_breakpoint>
6429 <to_remove_breakpoint>: Add target_ops parameter.
6430 (forward_target_insert_breakpoint): New.
6431 (forward_target_remove_breakpoint): New.
6432 (memory_remove_breakpoint, memory_insert_breakpoint):
6433 Add target_ops parameter.
6434 * target.c (target_insert_breakpoint): Split into this and ...
6435 (forward_target_insert_breakpoint): ... this.
6436 (target_remove_breakpoint): Split into this and ...
6437 (forward_target_remove_breakpoint): ... this.
6438 (debug_to_insert_breakpoint): Add target_ops parameter.
6439 Call forward_target_insert_breakpoint.
6440 (debug_to_remove_breakpoint): Add target_ops parameter.
6441 Call forward_target_remove_breakpoint.
6442 (update_current_target): Do not inherit or default to_insert_breakpoint
6443 and to_remove_breakpoint.
6444 * corelow.c (ignore): Add target_ops parameter.
6445 * exec.c (ignore): Add target_ops parameter.
6446 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
6447 Add target_ops parameter.
6448 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
6449 Add target_ops parameter.
6450 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
6451 Add target_ops parameter.
6452 * record-full.c (record_full_beneath_to_insert_breakpoint)
6453 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
6454 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
6455 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
6456 (record_full_core_remove_breakpoint): Add target_ops parameter.
6458 (record_full_beneath_to_insert_breakpoint_ops)
6459 (record_full_beneath_to_remove_breakpoint_ops)
6460 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
6461 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
6462 tmp_to_remove_breakpoint_ops,
6463 record_full_beneath_to_insert_breakpoint_ops, and
6464 record_full_beneath_to_remove_breakpoint_ops.
6465 * remote-m32r-sdi.c (m32r_insert_breakpoint)
6466 (m32r_remove_breakpoint): Add target_ops parameter.
6467 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
6468 Add target_ops parameter.
6469 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
6470 Add target_ops parameter.
6472 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6473 Markus Metzger <markus.t.metzger@intel.com>
6475 * record-btrace.c: Include frame-unwind.h.
6476 (record_btrace_frame_unwind_stop_reason)
6477 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
6478 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
6480 (init_record_btrace_ops): Install it.
6482 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6484 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
6487 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6489 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
6492 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6494 * frame-unwind.c: Include target.h.
6495 (frame_unwind_try_unwinder): New function with code from ...
6496 (frame_unwind_find_by_frame): ... here. New variable
6497 unwinder_from_target, call also target_get_unwinder)
6498 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
6499 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
6500 * target.h (struct target_ops): New fields to_get_unwinder and
6501 to_get_tailcall_unwinder.
6502 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
6504 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6506 * record-btrace.c (record_btrace_fetch_registers)
6507 (record_btrace_store_registers)
6508 (record_btrace_to_prepare_to_store): New.
6509 (init_record_btrace_ops): Add the above.
6511 2014-01-16 Tom Tromey <tromey@redhat.com>
6513 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
6514 * target.h (struct target_ops) <to_prepare_to_store>: Add
6516 (target_prepare_to_store): Add argument.
6517 * target.c (debug_to_prepare_to_store): Add argument.
6518 (update_current_target): Update.
6519 * remote.c (remote_prepare_to_store): Add 'self' argument.
6520 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
6521 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
6522 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
6523 * record-full.c (record_full_core_prepare_to_store): Add 'self'
6525 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
6526 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
6527 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
6528 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
6529 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
6531 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6533 * btrace.h (replay) <replay>: New.
6534 (btrace_is_replaying): New.
6535 * btrace.c (btrace_clear): Free replay iterator.
6536 (btrace_is_replaying): New.
6537 * record-btrace.c (record_btrace_is_replaying): New.
6538 (record_btrace_info): Print insn number if replaying.
6539 (record_btrace_insn_history): Start at replay position.
6540 (record_btrace_call_history): Start at replay position.
6541 (init_record_btrace_ops): Init to_record_is_replaying.
6543 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6545 * record-btrace.c (record_btrace_insn_history_range): Include
6547 (record_btrace_insn_history_from): Adjust range.
6548 (record_btrace_call_history_range): Include
6550 (record_btrace_call_history_from): Adjust range.
6551 * NEWS: Announce changes.
6553 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6555 * record.h (enum record_print_flag)
6556 <record_print_indent_calls>: New.
6557 * record.c (get_call_history_modifiers): Recognize /c modifier.
6558 (_initialize_record): Document /c modifier.
6559 * record-btrace.c (btrace_call_history): Add btinfo parameter.
6560 Reorder fields. Optionally indent the function name. Update
6562 * NEWS: Announce changes.
6564 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6566 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
6568 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6570 * btrace.c (ftrace_new_function): Start counting at one.
6571 * record-btrace.c (record_btrace_info): Adjust number of calls
6573 * NEWS: Announce it.
6575 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6577 * record-btrace.c (btrace_call_history_insn_range): Print
6578 insn range as [begin, end].
6580 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6582 * btrace.h (struct btrace_func_link): New.
6583 (enum btrace_function_flag): New.
6584 (struct btrace_inst): Rename to ...
6585 (struct btrace_insn): ...this. Update all users.
6586 (struct btrace_func) <ibegin, iend>: Remove.
6587 (struct btrace_func_link): New.
6588 (struct btrace_func): Rename to ...
6589 (struct btrace_function): ...this. Update all users.
6590 (struct btrace_function) <segment, flow, up, insn, insn_offset)
6591 (number, level, flags>: New.
6592 (struct btrace_insn_iterator): Rename to ...
6593 (struct btrace_insn_history): ...this.
6595 (struct btrace_insn_iterator, btrace_call_iterator): New.
6596 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
6597 (struct btrace_target_info) <begin, end, level>
6598 <insn_history, call_history>: New.
6599 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
6600 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
6601 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
6602 (btrace_call_number, btrace_call_begin, btrace_call_end)
6603 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
6604 (btrace_find_function_by_number, btrace_set_insn_history)
6605 (btrace_set_call_history): New.
6606 * btrace.c (btrace_init_insn_iterator)
6607 (btrace_init_func_iterator, compute_itrace): Remove.
6608 (ftrace_print_function_name, ftrace_print_filename)
6609 (ftrace_skip_file): Change
6611 (ftrace_init_func): Remove.
6612 (ftrace_debug): Use new btrace_function fields.
6613 (ftrace_function_switched): Also consider gaining and
6614 losing symbol information).
6615 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
6616 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
6617 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
6619 (ftrace_new_function): Move. Remove debug print.
6620 (ftrace_update_lines, ftrace_update_insns): New.
6621 (ftrace_update_function): Check for call, ret, and jump.
6622 (compute_ftrace): Renamed to ...
6623 (btrace_compute_ftrace): ...this. Rewritten to compute call
6625 (btrace_fetch, btrace_clear): Updated.
6626 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
6627 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
6628 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
6629 (btrace_call_number, btrace_call_begin, btrace_call_end)
6630 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
6631 (btrace_find_function_by_number, btrace_set_insn_history)
6632 (btrace_set_call_history): New.
6633 * record-btrace.c (require_btrace): Use new btrace thread
6635 (record_btrace_info, btrace_insn_history)
6636 (record_btrace_insn_history, record_btrace_insn_history_range):
6637 Use new btrace thread info fields and new iterator.
6638 (btrace_func_history_src_line): Rename to ...
6639 (btrace_call_history_src_line): ...this. Use new btrace
6641 (btrace_func_history): Rename to ...
6642 (btrace_call_history): ...this. Use new btrace thread info
6643 fields and new iterator.
6644 (record_btrace_call_history, record_btrace_call_history_range):
6645 Use new btrace thread info fields and new iterator.
6647 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6649 * frame.h (frame_id_build_unavailable_stack_special): New.
6650 * frame.c (frame_id_build_unavailable_stack_special): New.
6652 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6654 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
6655 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
6656 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
6658 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
6659 (i386_insn_is_jump, i386_jmp_p): New.
6660 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
6661 insn_is_jump to gdbarch.
6662 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
6663 * gdbarch.h: Regenerated.
6664 * gdbarch.c: Regenerated.
6665 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
6666 (default_insn_is_jump): New.
6667 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
6668 (default_insn_is_jump): New.
6670 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6672 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
6674 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
6675 (btrace_read_type) <btrace_read_new>: Change to ...
6676 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
6678 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6680 * common/linux-btrace.c (linux_read_btrace): Free trace from
6683 2014-01-15 Doug Evans <dje@google.com>
6685 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
6688 2014-01-15 Tom Tromey <tromey@redhat.com>
6690 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
6691 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
6692 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
6693 (set_objfile_main_name): New function.
6694 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
6695 language_of_main>: New fields.
6696 (set_objfile_main_name): Declare.
6697 * symtab.c (find_main_name): Loop over objfiles to find the main
6699 (set_main_name): Now static.
6700 (get_main_info): Add comment.
6701 * symtab.h (set_main_name): Don't declare.
6703 2014-01-15 Tom Tromey <tromey@redhat.com>
6705 * symtab.c (main_progspace_key): New global.
6706 (struct main_info): New.
6707 (name_of_main, language_of_main): Remove.
6708 (get_main_info, main_info_cleanup): New function.
6709 (set_main_name, main_name, main_language): Use get_main_info.
6710 (_initialize_symtab): Initialize main_progspace_key.
6712 2014-01-15 Tom Tromey <tromey@redhat.com>
6714 * dbxread.c (process_one_symbol): Update.
6715 * dwarf2read.c (read_partial_die): Update.
6716 * symfile.c (set_initial_language): Call main_language.
6717 * symtab.c (language_of_main): Now static.
6718 (set_main_name): Add 'lang' parameter.
6719 (find_main_name): Update.
6720 (main_language): New function.
6721 (symtab_observer_executable_changed): Update.
6722 * symtab.h (set_main_name): Update.
6723 (language_of_main): Remove.
6724 (main_language): Declare.
6726 2014-01-15 Tom Tromey <tromey@redhat.com>
6728 * symfile.c (init_entry_point_info): Use new "initialized" field.
6730 * objfiles.h (struct entry_point) <initialized>: New field.
6731 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
6732 (struct objfile) <ei>: ...here. Remove.
6733 * objfiles.c (entry_point_address_query): Update.
6735 2014-01-15 Tom Tromey <tromey@redhat.com>
6737 * objfiles.c (entry_point_address_query): Relocate entry point
6739 (objfile_relocate1): Do not relocate entry point address.
6740 * objfiles.h (struct entry_info) <entry_point>: Update comment.
6741 <the_bfd_section_index>: New field.
6742 * symfile.c (init_entry_point_info): Find the entry point's
6745 2014-01-15 Tom Tromey <tromey@redhat.com>
6747 * solib-frv.c (enable_break): Use entry_point_address_query.
6749 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6751 * NEWS: Add note on improved process record-replay on
6752 arm*-linux* targets.
6754 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6756 * arm-tdep.c (enum arm_record_result): New enum.
6757 (arm_record_unsupported_insn): New function.
6758 (arm_record_coproc_data_proc): Removed.
6759 (thumb2_record_ld_st_multiple): New function.
6760 (thumb2_record_ld_st_dual_ex_tbb): New function.
6761 (thumb2_record_data_proc_sreg_mimm): New function.
6762 (thumb2_record_ps_dest_generic): New function.
6763 (thumb2_record_branch_misc_cntrl): New function.
6764 (thumb2_record_str_single_data): New function.
6765 (thumb2_record_ld_mem_hints): New function.
6766 (thumb2_record_ld_word): New function.
6767 (thumb2_record_lmul_lmla_div): New function.
6768 (thumb2_record_decode_insn_handler): New function.
6769 (decode_insn): Add thumb32 instruction handlers.
6771 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6773 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
6774 (struct arm_linux_record_tdep): Declare.
6775 (arm_canonicalize_syscall): New function.
6776 (arm_all_but_pc_registers_record): New function.
6777 (arm_linux_syscall_record): New function.
6778 (arm_linux_init_abi): Add syscall recording constructs.
6779 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
6780 decoding. (arm_record_coproc_data_proc): Update arm syscall
6782 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
6783 <arm_syscall_record>: New field.
6784 * configure.tgt (arm*-*-linux*): Add linux-record.o to
6787 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6789 * arm-tdep.c (thumb_record_misc): Update to use sp as base
6790 register for push instruction recording.
6792 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6794 * arm-tdep.c (thumb_record_misc): Update to correct logical
6795 error while recording ldm, ldmia and pop instructions.
6797 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6799 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
6801 2014-01-15 Pedro Alves <palves@redhat.com>
6803 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
6804 (go32_resume, go32_fetch_registers, store_register)
6805 (go32_store_registers, go32_prepare_to_store)
6806 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
6807 (go32_create_inferior, go32_can_run, go32_terminal_init)
6808 (go32_terminal_inferior, go32_terminal_ours): Delete forward
6811 2014-01-15 Tom Tromey <tromey@redhat.com>
6813 * target.h (async_callback_ftype): New typedef.
6814 (struct target_ops) <to_async>: Use it.
6816 2014-01-15 Joel Brobecker <brobecker@adacore.com>
6818 * python/py-value.c (get_field_type): Remove unnecessary curly
6819 braces for single-statement if block.
6821 2014-01-15 Joel Brobecker <brobecker@adacore.com>
6823 * python/py-type.c (convert_field): Add missing empty line
6826 2014-01-14 Doug Evans <dje@google.com>
6828 * symfile.h (expand_symtabs_matching): Renamed from
6829 expand_partial_symbol_names. Update prototype.
6830 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
6831 * symfile.c (expand_symtabs_matching): Renamed from
6832 expand_partial_symbol_names. New args file_matcher, kind.
6833 Rename arg fun to symbol_matcher.
6834 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
6835 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
6836 ada_expand_partial_symbol_name.
6837 (ada_make_symbol_completion_list): Update to call
6838 expand_symtabs_matching.
6839 (ada_add_global_exceptions): Call expand_symtabs_matching.
6840 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
6841 call map_symbol_filenames.
6842 * symtab.c (sources_info): Update to call map_symbol_filenames.
6843 (search_symbols): Call expand_symtabs_matching.
6844 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
6845 (default_make_symbol_completion_list_break_on): Update to call
6846 expand_symtabs_matching.
6847 (make_source_files_completion_list): Update to call
6848 map_symbol_filenames.
6850 2014-01-14 Doug Evans <dje@google.com>
6852 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
6853 (expand_symtabs_symbol_matcher_ftype): New typedef.
6854 (quick_symbol_functions.expand_symtabs_matching): Update to use.
6855 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
6856 * symfile.c (expand_partial_symbol_names): Update to use
6857 expand_symtabs_symbol_matcher_ftype.
6858 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
6859 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
6860 Arg name_matcher renamed to symbol_matcher.
6861 * psymtab.c (recursively_search_psymtabs): Update to use
6862 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
6864 (expand_symtabs_matching_via_partial): Update to use
6865 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
6866 Arg name_matcher renamed to symbol_matcher.
6868 2014-01-14 Doug Evans <dje@google.com>
6870 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
6871 (map_partial_symbol_filenames): Ditto.
6872 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
6873 (map_partial_symbol_filenames): Ditto.
6874 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
6875 (map_partial_symbol_filenames): Ditto.
6876 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
6877 (map_partial_symbol_filenames): Ditto.
6878 * symtab.c: Delete #include "psymtab.h".
6880 2014-01-14 Pedro Alves <palves@redhat.com>
6881 Tom Tromey <tromey@redhat.com>
6883 * infrun.c (use_displaced_stepping): Use find_record_target
6884 instead of RECORD_IS_USED.
6885 (adjust_pc_after_break): Use record_full_is_used instead of
6887 * record-btrace.c (record_btrace_open): Call record_preopen
6888 instead of checking RECORD_IS_USED.
6889 * record-full.c (record_full_shortname)
6890 (record_full_core_shortname): New globals.
6891 (record_full_is_used): New function.
6892 (find_full_open): Call record_preopen instead of checking
6894 (init_record_full_ops): Set the target's shortname to
6895 record_full_shortname.
6896 (init_record_full_core_ops): Set the target's shortname to
6897 record_full_core_shortname.
6898 * record-full.h (record_full_is_used): Declare.
6899 * record.c (find_record_target): Make extern.
6900 (record_preopen): New function.
6901 * record.h (RECORD_IS_USED): Delete macro.
6902 (find_record_target, record_preopen): Declare functions.
6904 2014-01-14 Yao Qi <yao@codesourcery.com>
6906 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
6907 'len''s type to ULONGEST.
6908 (core_xfer_shared_libraries_aix): Likewise.
6909 * gdbarch.c, gdbarch.h: Regenerated.
6910 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
6911 Change type of 'len' to ULONGEST.
6912 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
6913 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
6915 2014-01-14 Yao Qi <yao@codesourcery.com>
6917 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
6918 type of 'len' to ULONGEST.
6919 (linux_xfer_osdata_processgroups): Likewise.
6920 (linux_xfer_osdata_threads): Likewise.
6921 (linux_xfer_osdata_fds): Likewise.
6922 (linux_xfer_osdata_isockets): Likewise.
6923 (linux_xfer_osdata_shm): Likewise.
6924 (linux_xfer_osdata_sem): Likewise.
6925 (linux_xfer_osdata_msg): Likewise.
6926 (linux_common_xfer_osdata): Likewise.
6927 (struct osdata_type) <getter>: Likewise.
6928 * common/linux-osdata.h (linux_common_xfer_osdata): Update
6931 2014-01-14 Yao Qi <yao@codesourcery.com>
6933 * target.h (target_xfer_partial_ftype): Update.
6934 (struct target_ops) <to_xfer_partial>: Change 'len' type to
6936 * aix-thread.c (aix_thread_xfer_partial): Change type of
6937 argument 'len' to ULONGEST.
6938 * auxv.c (procfs_xfer_auxv): Likewise.
6939 (ld_so_xfer_auxv): Likewise.
6940 (memory_xfer_auxv): Likewise.
6941 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6942 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6943 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
6944 * corelow.c (core_xfer_partial): Likewise.
6945 * ctf.c (ctf_xfer_partial): Likewise.
6946 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
6948 (darwin_read_dyld_info): Likewise.
6949 (darwin_xfer_partial): Likewise.
6950 * exec.c (section_table_xfer_memory_partial): Likewise.
6951 (exec_xfer_partial): Likewise.
6952 * exec.h (section_table_xfer_memory_partial): Update
6954 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
6955 instead of plongest.
6956 (gnu_xfer_partial): Likewise.
6957 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
6958 (ia64_hpux_xfer_solib_got): Likewise.
6959 (ia64_hpux_xfer_partial): Likewise.
6960 * ia64-linux-nat.c (ia64_linux_xfer_partial):
6961 * inf-ptrace.c (inf_ptrace_xfer_partial):
6962 * inf-ttrace.c (inf_ttrace_xfer_partial):
6963 * linux-nat.c (linux_xfer_siginfo): Likewise.
6964 (linux_nat_xfer_partial): Likewise.
6965 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
6966 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
6967 * monitor.c (monitor_xfer_memory): Likewise.
6968 (monitor_xfer_partial): Likewise.
6969 * procfs.c (procfs_xfer_partial): Likewise.
6970 * record-full.c (record_full_xfer_partial): Likewise.
6971 (record_full_core_xfer_partial): Likewise.
6972 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
6973 instead of plongest.
6974 (gdbsim_xfer_partial): Likewise.
6975 * remote.c (remote_xfer_partial): Likewise.
6976 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
6977 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
6979 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6980 (rs6000_xfer_shared_libraries): Likewise.
6981 * sol-thread.c (sol_thread_xfer_partial): Likewise.
6982 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6983 (sparc_xfer_partial): Likewise.
6984 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6985 (spu_xfer_partial): Likewise.
6986 * spu-multiarch.c (spu_xfer_partial): Likewise.
6987 * target.c (target_read_live_memory): Likewise.
6988 (memory_xfer_live_readonly_partial): Likewise.
6989 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
6990 (target_xfer_partial, default_xfer_partial): Likewise.
6991 (current_xfer_partial): Likewise.
6992 * tracepoint.c (tfile_xfer_partial): Likewise.
6993 * windows-nat.c (windows_xfer_memory): Likewise. Call
6994 pulongest instead of plongest.
6995 (windows_xfer_partial): Likewise.
6996 (windows_xfer_shared_libraries): Likewise.
6998 2014-01-14 Yao Qi <yao@codesourcery.com>
7000 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
7001 target_xfer_partial_ftype.
7003 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
7007 * valops.c (value_struct_elt_bitpos): New function
7008 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
7009 object to 'None' if the field name is an empty string ("").
7010 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
7011 attribute to look for a field when 'name' is 'None'.
7012 (get_field_type): New function
7014 2014-01-13 Doug Evans <dje@google.com>
7017 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
7018 (try_open_dwop_file): Ditto.
7019 * gdb_bfd.c: #include "vec.h".
7020 (bfdp): New typedef.
7021 (struct gdb_bfd_data): New member included_bfds.
7022 (gdb_bfd_unref): Unref all included bfds.
7023 (gdb_bfd_record_inclusion): New function.
7024 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
7026 2014-01-13 Tom Tromey <tromey@redhat.com>
7028 * gdbcore.h (deprecated_core_resize_section_table): Remove.
7030 2014-01-13 Tom Tromey <tromey@redhat.com>
7032 * defs.h (use_windows): Remove.
7033 * gdb.c (main): Update.
7034 * main.c (captured_main, gdb_main): Update.
7035 * main.h (struct captured_main_args) <use_windows>: Remove.
7036 * top.c (use_windows): Remove.
7038 2014-01-13 Tom Tromey <tromey@redhat.com>
7040 * defs.h (deprecated_flush_hook): Remove.
7042 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7045 * linux-thread-db.c (try_thread_db_load): Add parameter
7046 check_auto_load_safe. Move here the file_is_auto_load_safe call.
7047 (try_thread_db_load_from_pdir_1): Move it there from here.
7048 (try_thread_db_load_from_sdir): Update caller.
7049 (try_thread_db_load_from_dir): Move it there from here.
7051 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
7053 * regformats/regdat.sh: Always rewrite the register file.
7055 2014-01-13 Pedro Alves <palves@redhat.com>
7057 * Makefile.in (CHECK_HEADERS): New variable.
7058 (check-headers:): New rule.
7060 2014-01-13 Tom Tromey <tromey@redhat.com>
7062 * cli/cli-setshow.c (do_set_command): Update.
7063 * defs.h (deprecated_set_hook): Remove.
7064 * top.c (deprecated_set_hook): Remove.
7066 2014-01-13 Pedro Alves <palves@redhat.com>
7068 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
7069 the tracepoint if the PC is a pseudo-register.
7071 2014-01-13 Tom Tromey <tromey@redhat.com>
7073 * defs.h (XCALLOC): Remove.
7074 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
7075 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
7076 * dwarf2loc.c (allocate_piece_closure): Likewise.
7077 * elfread.c (elf_symfile_segments): Likewise.
7078 (elf_symfile_segments): Likewise.
7079 * gdbtypes.c (copy_type_recursive): Likewise.
7080 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
7081 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
7082 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
7084 * mt-tdep.c (mt_gdbarch_init): Likewise.
7085 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
7087 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
7088 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
7089 * registry.c (registry_alloc_data): Likewise.
7090 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
7091 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7092 * serial.c (serial_fdopen_ops): Likewise.
7093 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
7095 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
7096 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
7099 2014-01-13 Tom Tromey <tromey@redhat.com>
7101 * defs.h (XMALLOC): Remove.
7102 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
7103 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
7104 * cli-out.c (struct ui_out *): Likewise.
7105 * cli/cli-dump.c (add_dump_command): Likewise.
7106 (add_dump_command): Likewise.
7107 * complaints.c (get_complaints): Likewise.
7108 (find_complaint): Likewise.
7109 * dwarf2-frame.c (execute_cfa_program): Likewise.
7110 * dwarf2read.c (abbrev_table_read_table): Likewise.
7111 * gdbarch.sh: Likewise.
7112 * gdbarch.c: Rebuild.
7113 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
7114 * interps.c (interp_new): Likewise.
7115 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
7116 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7117 * mi/mi-console.c (mi_console_file_new): Likewise.
7118 * mi/mi-interp.c (mi_interpreter_init): Likewise.
7119 * mi/mi-out.c (mi_out_new): Likewise.
7120 * mi/mi-parse.c (mi_parse): Likewise.
7121 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
7122 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7123 * observer.c (xalloc_observer_list_node): Likewise.
7124 * regcache.c (regcache_xmalloc_1): Likewise.
7125 * reggroups.c (reggroup_new): Likewise.
7126 (_initialize_reggroup): Likewise.
7127 * registry.c (register_data_with_cleanup): Likewise.
7128 * remote.c (remote_notif_stop_alloc_reply): Likewise.
7129 * ser-base.c (serial_ttystate): Likewise.
7130 * ser-mingw.c (make_pipe_state): Likewise.
7131 * ser-pipe.c (pipe_open): Likewise.
7132 * serial.c (serial_open): Likewise.
7133 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
7134 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
7135 (tui_alloc_win_info): Likewise.
7136 (tui_add_content_elements): Likewise.
7137 * tui/tui-file.c (tui_file_new): Likewise.
7138 * tui/tui-out.c (tui_out_new): Likewise.
7139 * ui-file.c (mem_file_new): Likewise.
7140 * ui-out.c (push_level): Likewise.
7141 (make_cleanup_ui_out_end): Likewise.
7142 (append_header_to_list): Likewise.
7143 (ui_out_new): Likewise.
7144 * user-regs.c (user_reg_add_builtin): Likewise.
7146 2014-01-13 Tom Tromey <tromey@redhat.com>
7148 * defs.h (XZALLOC): Remove.
7149 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
7150 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
7151 (get_ada_tasks_inferior_data): Likewise.
7152 * auto-load.c (get_auto_load_pspace_data): Likewise.
7153 * auxv.c (get_auxv_inferior_data): Likewise.
7154 * bfd-target.c (target_bfd_reopen): Likewise.
7155 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
7156 (deprecated_insert_raw_breakpoint): Likewise.
7157 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
7158 * corelow.c (core_open): Likewise.
7159 * darwin-nat.c (darwin_check_new_threads): Likewise.
7160 (darwin_attach_pid): Likewise.
7161 * dummy-frame.c (dummy_frame_push): Likewise.
7162 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
7163 * dwarf2loc.c (allocate_piece_closure): Likewise.
7164 * elfread.c (elf_symfile_segments): Likewise.
7165 * eval.c (ptrmath_type_p): Likewise.
7166 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
7167 * gdbtypes.c (alloc_type_arch): Likewise.
7168 (alloc_type_instance): Likewise.
7169 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
7170 * inf-child.c (inf_child_can_use_agent): Likewise.
7171 * inflow.c (get_inflow_inferior_data): Likewise.
7172 * infrun.c (save_infcall_suspend_state): Likewise.
7173 * jit.c (jit_reader_load): Likewise.
7174 (get_jit_objfile_data): Likewise.
7175 (get_jit_program_space_data): Likewise.
7176 (jit_object_open_impl): Likewise.
7177 (jit_symtab_open_impl): Likewise.
7178 (jit_block_open_impl): Likewise.
7179 (jit_frame_sniffer): Likewise.
7180 * linux-fork.c (add_fork): Likewise.
7181 * maint.c (make_command_stats_cleanup): Likewise.
7182 * objfiles.c (get_objfile_pspace_data): Likewise.
7183 * opencl-lang.c (struct lval_closure): Likewise.
7184 * osdata.c (osdata_start_osdata): Likewise.
7185 * progspace.c (new_address_space): Likewise.
7186 (add_program_space): Likewise.
7187 * remote-sim.c (get_sim_inferior_data): Likewise.
7188 * sh-tdep.c (sh_gdbarch_init): Likewise.
7189 * skip.c (Ignore): Likewise.
7190 (skip_delete_command): Likewise.
7191 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
7192 (library_list_start_library): Likewise.
7193 (solib_aix_current_sos): Likewise.
7194 * solib-darwin.c (get_darwin_info): Likewise.
7195 (darwin_current_sos): Likewise.
7196 * solib-dsbt.c (get_dsbt_info): Likewise.
7197 * solib-ia64-hpux.c (new_so_list): Likewise.
7198 (ia64_hpux_get_solib_linkage_addr): Likewise.
7199 * solib-spu.c (append_ocl_sos): Likewise.
7200 (spu_current_sos): Likewise.
7201 * solib-svr4.c (get_svr4_info): Likewise.
7202 (svr4_keep_data_in_core): Likewise.
7203 (library_list_start_library): Likewise.
7204 (svr4_default_sos): Likewise.
7205 (svr4_read_so_list): Likewise.
7206 * solib-target.c (library_list_start_library): Likewise.
7207 (solib_target_current_sos): Likewise.
7208 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7209 * symfile-debug.c (install_symfile_debug_logging): Likewise.
7210 * symfile.c (default_symfile_segments): Likewise.
7211 * target-descriptions.c (tdesc_data_init): Likewise.
7212 (tdesc_create_reg): Likewise.
7213 (struct tdesc_type *): Likewise.
7214 (tdesc_create_vector): Likewise.
7215 (tdesc_set_struct_size): Likewise.
7216 (struct tdesc_type *): Likewise.
7217 (tdesc_free_feature): Likewise.
7218 (tdesc_create_feature): Likewise.
7219 * windows-nat.c (windows_add_thread): Likewise.
7220 (windows_make_so): Likewise.
7221 * xml-support.c (gdb_xml_body_text): Likewise.
7222 (gdb_xml_create_parser_and_cleanup): Likewise.
7223 (xml_process_xincludes): Likewise.
7224 * xml-syscall.c (allocate_syscalls_info): Likewise.
7225 (syscall_create_syscall_desc): Likewise.
7227 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
7229 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
7230 function, with code from i386_stap_parse_special_token.
7231 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7232 (i386_stap_parse_special_token): Move code to the two functions
7235 2014-01-09 Pedro Alves <palves@redhat.com>
7236 Hui Zhu <hui@codesourcery.com>
7239 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
7240 bp_err_string. Don't mark the location shlib_disabled if the
7241 error thrown wasn't a generic or memory error. Catch errors
7242 thrown while inserting breakpoints in overlayed code. Output
7243 error message of software breakpoints.
7244 * remote.c (remote_insert_breakpoint): If this breakpoint has
7245 target-side commands but this stub doesn't support Z0 packets,
7246 throw NOT_SUPPORTED_ERROR error.
7247 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
7248 * target.h (target_insert_breakpoint): Extend comment.
7249 (target_insert_hw_breakpoint): Add comment.
7251 2014-01-08 Pedro Alves <palves@redhat.com>
7253 * remote.c (remote_add_thread): Add threads silently if starting
7255 (remote_notice_new_inferior): If in all-stop, and starting up,
7256 don't call notice_new_inferior.
7257 (get_current_thread): New function, factored out from ...
7258 (add_current_inferior_and_thread): ... this. Adjust.
7259 (remote_start_remote) <all-stop>: Fetch the thread list. If we
7260 found any thread, then select the remote's current thread as GDB's
7263 2014-01-08 Joel Brobecker <brobecker@adacore.com>
7265 * NEWS: Create a new section for the next release branch.
7266 Rename the section of the current branch, now that it has
7269 2014-01-08 Joel Brobecker <brobecker@adacore.com>
7271 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
7272 * version.in: Bump version to 7.7.50.DATE-cvs.
7274 2014-01-08 Yao Qi <yao@codesourcery.com>
7276 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
7277 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
7278 (spu_xfer_partial): Cast 'buf' to 'const char *'.
7280 2014-01-08 Yao Qi <yao@codesourcery.com>
7282 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
7283 return value of bfd_get_filename to symbol_file_add_from_bfd.
7285 2014-01-08 Pierre Muller <muller@sourceware.org>
7288 * coff-pe-read.c (struct read_pe_section_data): Add index field.
7289 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
7290 to prim_record_mininal_symbol_and_info.
7291 (add_pe_forwarded_sym): Use known section number of forwarded symbol
7292 in call to prim_record_minimal_symbol_and_info.
7293 (read_pe_exported_syms): Set index field of section_data.
7295 2014-01-07 Andrew Pinski <apinski@cavium.com>
7297 * features/aarch64-core.xml (cpsr): Change to be 64bit.
7298 * features/aarch64.c: Regenerate.
7300 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
7302 * target.c (return_null): Define.
7303 (update_current_target): Use it instead of return_zero for
7304 functions that return a pointer.
7306 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
7308 * source.c (add_path): Fix check for duplicated paths in the previously
7311 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
7313 * ada-lang.c: Remove duplicated include statements.
7314 * alphabsd-nat.c: Ditto.
7315 * amd64-darwin-tdep.c: Ditto.
7316 * amd64fbsd-nat.c: Ditto.
7317 * auto-load.c: Ditto.
7319 * breakpoint.c: Ditto.
7321 * fork-child.c: Ditto.
7322 * gdb_usleep.c: Ditto.
7323 * i386-darwin-tdep.c: Ditto.
7324 * i386fbsd-nat.c: Ditto.
7326 * inferior.c: Ditto.
7328 * linux-nat.c: Ditto.
7329 * linux-tdep.c: Ditto.
7330 * m68kbsd-nat.c: Ditto.
7331 * m68klinux-nat.c: Ditto.
7332 * microblaze-tdep.c: Ditto.
7333 * mips-linux-tdep.c: Ditto.
7334 * mn10300-tdep.c: Ditto.
7335 * nto-tdep.c: Ditto.
7336 * opencl-lang.c: Ditto.
7338 * printcmd.c: Ditto.
7339 * regcache.c: Ditto.
7340 * remote-m32r-sdi.c: Ditto.
7344 * tilegx-linux-nat.c: Ditto.
7345 * tilegx-tdep.c: Ditto.
7346 * tracepoint.c: Ditto.
7348 * vaxbsd-nat.c: Ditto.
7349 * windows-nat.c: Ditto.
7350 * xtensa-tdep.c: Ditto.
7352 2014-01-07 Yao Qi <yao@codesourcery.com>
7354 * spu-linux-nat.c (_initialize_spu_nat): Declare.
7356 2014-01-07 Yao Qi <yao@codesourcery.com>
7357 Joel Brobecker <brobecker@adacore.com>
7359 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
7360 (pdc_write_regs): Likewise.
7361 (fetch_regs_kernel_thread): Likewise.
7362 (store_regs_kernel_thread): Likewise.
7364 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7366 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
7367 tagged type objects to their actual type.
7369 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7371 * ada-valprint.c (print_field_values): Add "language" parameter.
7372 Update calls to print_field_values and print_variant_part.
7373 Pass new parameter "language" in call to val_print instead
7374 of "current_language". Replace call to ada_val_print by call
7376 (print_variant_part): Add "language" parameter.
7377 (ada_val_print_struct_union): Update call to print_field_values.
7379 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7381 * ada-valprint.c (ui_memcpy): Delete.
7382 (ada_print_floating): Update documentation. Add empty line
7383 between between function documentation and implementation.
7384 Delete variable "buffer". Use ui_file_xstrdup in place of
7385 ui_file_put. Minor adjustments following this change.
7387 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7389 * ada-valprint.c (ada_val_print_string): New function,
7390 extracted from ada_val_print_array.
7391 (ada_val_print_array): Replace extracted code by call
7392 to ada_val_print_string followed by a return. Move
7393 "else" branch to the function's top block.
7395 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7397 * ada-valprint.c (ada_val_print_array): Move implementation
7398 down. Rename parameter "offset" and "val" into "offset_aligned"
7399 and "original_value" respectively. Add parameter "offset".
7401 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7403 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
7404 re-organizing the code. Change the "???" message printed
7405 when target type is a TYPE_CODE_UNDEF into
7406 "<ref to undefined type>".
7408 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7410 * ada-valprint.c (print_record): Delete, implementation inlined...
7411 (ada_val_print_struct_union): ... here. Remove call to
7412 ada_check_typedef in inlined implementation.
7414 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7416 * ada-valprint.c (ada_val_print_gnat_array): New function,
7417 extracted from ada_val_print_1;
7418 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
7419 (ada_val_print_flt, ada_val_print_struct_union)
7420 (ada_val_print_ref): Likewise.
7421 (ada_val_print_1): Delete variables i and elttype.
7422 Replace extracted-out code by call to corresponding
7425 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7427 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
7429 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7431 * ada-valprint.c (ada_val_print_1): Replace calls to
7432 ada_val_print_1 by calls to val_print.
7434 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7436 * ada-valprint.c (ada_val_print_1): Add parameter "language".
7437 Update calls to self accordingly. Replace calls to c_val_print
7438 by calls to val_print.
7440 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7442 * ada-valprint.c (print_record): Delete declaration.
7443 (adjust_type_signedness, ada_val_print_1): Likewise.
7444 (ada_val_print): Move function implementation down.
7445 (print_variant_part, print_field_values, print_record):
7446 Move function implementation up.
7448 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7450 * python/py-type.c (typy_get_name): New function.
7451 (type_object_getset): Add entry for attribute "name".
7452 * NEWS: Add entry mentioning this new attribute.
7454 2014-01-07 Yao Qi <yao@codesourcery.com>
7456 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
7459 2014-01-07 Yao Qi <yao@codesourcery.com>
7461 * gnu-nat.c (info_port_rights): Add qualifier const to
7464 2014-01-07 Yao Qi <yao@codesourcery.com>
7466 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
7468 2014-01-07 Yao Qi <yao@codesourcery.com>
7470 * gnu-nat.c (make_inf) Update declaration.
7471 (make_inf): Make it static.
7472 (inf_set_traced): Likewise.
7473 (inf_port_to_thread, inf_task_died_status): Likewise.
7475 2014-01-07 Yao Qi <yao@codesourcery.com>
7477 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
7479 2014-01-07 Yao Qi <yao@codesourcery.com>
7481 * gnu-nat.c (_initialize_gnu_nat): Declare.
7483 2014-01-07 Yao Qi <yao@codesourcery.com>
7485 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
7487 (struct gdbarch_info) <byte_order>: Change type to
7489 <byte_order_for_code>: Likewise.
7490 * gdbarch.c, gdbarch.h: Regenerated.
7492 2014-01-06 Sasha Smundak <asmundak@google.com>
7494 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
7496 2014-01-06 Tom Tromey <tromey@redhat.com>
7498 * doublest.c (convert_doublest_to_floatformat): Use const, not
7500 * somread.c (som_symtab_read): Likewise.
7502 2014-01-07 Hui Zhu <hui@codesourcery.com>
7504 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
7505 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
7506 (gdb_bfd_fopen): Ditto.
7507 (gdb_bfd_openr): Ditto.
7508 (gdb_bfd_openw): Ditto.
7509 (gdb_bfd_openr_iovec): Ditto.
7510 (gdb_bfd_fdopenr): Ditto.
7511 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
7512 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
7514 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
7516 * symfile-mem.c (symbol_file_add_from_memory): Removed
7517 gdb_bfd_stash_filename.
7519 2014-01-03 Doug Evans <dje@google.com>
7521 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
7524 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7526 Update year range in copyright notice of all files.
7528 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7530 * top.c (print_gdb_version): Set copyright year to 2014.
7532 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7534 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
7536 For older changes see ChangeLog-2013.
7542 version-control: never