1 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4 * stap-probe.c (stap_parse_probe_arguments): Simplify
5 check for non-prefixed probes (i.e., probes whose
6 arguments do not start with "N@"). Always set the
7 argument type to a sane value.
9 2014-05-01 David Taylor <dtaylor@emc.com>
11 * remote.c (compare_sections_command): Add -r option to compare
12 all loadable read-only sections.
14 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
16 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
17 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
19 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
20 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
21 Remove unused CORE_ADDR argument. Update all callers.
23 2014-04-29 Pedro Alves <palves@redhat.com>
25 * remote.c (struct packet_config) <detect>: Extend comment.
26 (add_packet_config_cmd): Don't set the config's detect or support
28 (init_all_packet_configs): Also initialize the config's 'detect'
30 (reset_all_packet_configs_support): New function.
31 (remote_open_1): Call reset_all_packet_configs_support instead of
32 init_all_packet_configs.
33 (_initialize_remote): Initialize all packet configs. Assert that
34 all packets have an associated command, except a few known
37 2014-04-28 Joel Brobecker <brobecker@adacore.com>
39 * dwarf2read.c (read_subrange_type): Handle dynamic
40 DW_AT_lower_bound attributes.
42 2014-04-28 Joel Brobecker <brobecker@adacore.com>
44 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
45 dynamic bounds before computing its upper bound.
46 (ada_discrete_type_low_bound): Same as above with the lower bound.
48 2014-04-28 Joel Brobecker <brobecker@adacore.com>
50 * dwarf2read.c (is_dynamic_type): Return true for dynamic
51 range types. Adjust the array handling implementation to
52 take advantage of this change.
53 (resolve_dynamic_range): New function, mostly extracted from
54 resolve_dynamic_bounds.
55 (resolve_dynamic_array): New function, mostly extracted from
56 resolve_dynamic_bounds.
57 (resolve_dynamic_bounds): Delete.
58 (resolve_dynamic_type): Reimplement. Add handling of
59 TYPE_CODE_RANGE types.
61 2014-04-28 Joel Brobecker <brobecker@adacore.com>
63 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
64 handling of parallel ___XA types.
66 2014-04-28 Joel Brobecker <brobecker@adacore.com>
68 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
69 unnecessary second call to static_unwrap_type.
71 2014-04-27 Hui Zhu <hui@codesourcery.com>
73 * stack.c (print_frame_info): Call do_gdb_disassembly with
74 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
76 2014-04-26 Doug Evans <xdje42@gmail.com>
78 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
80 2014-04-25 Pedro Alves <palves@redhat.com>
83 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
84 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
85 and newline from built string.
86 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
87 (linux_ptrace_attach_fail_reason): ... this.
88 * linux-nat.c (linux_nat_attach): Adjust to use
89 linux_ptrace_attach_fail_reason.
91 2014-04-25 Pedro Alves <palves@redhat.com>
93 * remote.c (struct remote_state): Remove multi_process_aware,
94 non_stop_aware, cond_tracepoints, cond_breakpoints,
95 breakpoint_commands, fast_tracepoints, static_tracepoints,
96 install_in_trace, disconnected_tracing,
97 enable_disable_tracepoints, string_tracing, and
98 augmented_libraries_svr4_read fields.
99 (remote_multi_process_p): Move further below in the file.
100 (struct packet_config): Add comments.
101 (update_packet_config): Delete function.
102 (show_packet_config_cmd): Use packet_config_support.
103 (add_packet_config_cmd): Use NULL as set callback.
104 (packet_ok): "set remote foo-packet"-style commands no longer
105 change config->supported -- adjust.
106 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
107 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
108 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
109 (PACKET_QNonStop, PACKET_multiprocess_feature)
110 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
111 (PACKET_DisconnectedTracing_feature)
112 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
113 (set_remote_protocol_packet_cmd): Delete function.
114 (packet_config_support, packet_support): New functions.
115 (set_remote_protocol_Z_packet_cmd): Don't call
116 update_packet_config.
117 (remote_query_attached, remote_pass_signals)
118 (remote_program_signals, remote_threads_info)
119 (remote_threads_extra_info, remote_start_remote): Use
121 (remote_start_remote): Use packet_config_support and
123 (init_all_packet_configs): Set all packets to unknown support,
124 instead of calling update_packet_config.
125 (remote_check_symbols): Use packet_support.
126 (remote_supported_packet): Unconditionally set the packet config's
128 (remote_multi_process_feature, remote_non_stop_feature)
129 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
130 (remote_breakpoint_commands_feature)
131 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
132 (remote_install_in_trace_feature)
133 (remote_disconnected_tracing_feature)
134 (remote_enable_disable_tracepoint_feature)
135 (remote_string_tracing_feature)
136 (remote_augmented_libraries_svr4_read_feature): Delete functions.
137 (remote_protocol_features): Adjust to use remote_supported_packet
138 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
139 "ConditionalTracepoints", "ConditionalBreakpoints",
140 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
141 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
142 "EnableDisableTracepoints", and "tracenz".
143 (remote_query_supported): Use packet_support.
144 (remote_open_1): Adjust.
145 (extended_remote_attach_1): Use packet_support. Switch on the
146 result of packet_ok instead of checking whether the packet ended
148 (remote_vcont_resume): Use packet_support.
149 (remote_resume, remote_stop_ns, fetch_register_using_p)
150 (remote_prepare_to_store, store_register_using_P)
151 (check_binary_download, remote_write_bytes): Use packet_support.
152 (remote_vkill): Use packet_support. Switch on the result of
153 packet_ok instead of checking whether the packet ended up
155 (extended_remote_supports_disable_randomization): Use
157 (extended_remote_run): Switch on the result of packet_ok instead
158 of checking whether the packet ended up disabled.
159 (remote_insert_breakpoint, remote_remove_breakpoint)
160 (remote_insert_watchpoint, remote_remove_watchpoint)
161 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
163 (remote_search_memory): Use packet_config_support.
164 (remote_get_thread_local_address, remote_get_tib_address)
165 (remote_hostio_send_command, remote_can_execute_reverse): Use
167 (remote_supports_cond_tracepoints)
168 (remote_supports_cond_breakpoints)
169 (remote_supports_fast_tracepoints)
170 (remote_supports_static_tracepoints)
171 (remote_supports_install_in_trace)
172 (remote_supports_enable_disable_tracepoint)
173 (remote_supports_string_tracing)
174 (remote_can_run_breakpoint_commands): Rewrite, checking whether
175 the packet config says the feature is enabled or disabled.
176 (remote_download_tracepoint, remote_trace_set_readonly_regions)
177 (remote_get_trace_status): Use packet_support.
178 (remote_set_disconnected_tracing): Adjust to check whether the
179 feature is enabled with packet_support.
180 (remote_set_trace_buffer_size, remote_use_agent)
181 (remote_can_use_agent, remote_supports_btrace): Use
183 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
184 Use packet_config_support.
185 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
186 the packet config says the feature is enabled or disabled.
187 (set_range_stepping): Use packet_support.
189 2014-04-25 Tom Tromey <tromey@redhat.com>
191 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
194 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
196 * NEWS: Mention support for C99 variable length arrays.
198 2014-04-24 Joel Brobecker <brobecker@adacore.com>
200 * ada-lang.c (standard_exc): Expand introductory comment.
202 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
203 Walfred Tedeschi <walfred.tedeschi@intel.com>
205 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
207 (amd64_linux_read_description): Add code to handle AVX512 xstate
208 mask and return respective tdesc.
209 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
210 and features/i386/x32-avx512-linux.c.
211 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
212 (amd64_linux_core_read_description): Add code to handle AVX512
213 xstate mask and return respective tdesc.
214 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
215 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
217 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
218 (tdesc_amd64_avx512_linux): New prototype.
219 (tdesc_x32_avx512_linux): Likewise.
220 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
221 features/i386/x32-avx512.c.
222 (amd64_ymm_avx512_names): New register names for pseudo
224 (amd64_ymmh_avx512_names): New register names for raw registers
226 (amd64_k_names): New register names for K registers.
227 (amd64_zmmh_names): New register names for ZMM raw registers.
228 (amd64_zmm_names): New registers names for ZMM pseudo registers.
229 (amd64_xmm_avx512_names): New register names for XMM16-31
231 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
233 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
234 if feature is present.
235 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
236 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
237 (AMD64_NUM_REGS): Adjust to new number of registers.
238 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
239 registers supplied via XSTATE by AVX512 registers.
240 (i386_linux_read_description): Add case for AVX512.
241 * i386-linux-tdep.c: Include i386-avx512-linux.c.
242 (i386_linux_gregset_reg_offset): Add AVX512 registers.
243 (i386_linux_core_read_description): Add case for AVX512.
244 (i386_linux_init_abi): Install supported register note section
246 (_initialize_i386_linux_tdep): Add call to tdesc init function for
248 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
249 registers to be number of zmm7h + 1.
250 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
251 * i386-tdep.c: Include features/i386/i386-avx512.c.
252 (i386_zmm_names): Add ZMM pseudo register names array.
253 (i386_zmmh_names): Add ZMM raw register names array.
254 (i386_k_names): Add K raw register names array.
255 (num_lower_zmm_regs): Add constant for the number of lower ZMM
256 registers. AVX512 has 16 more ZMM registers than there are YMM
258 (i386_zmmh_regnum_p): Add function to look up register number of
260 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
261 (i386_k_regnum_p): Likewise for K raw registers.
262 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
263 registers added by AVX512.
264 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
265 registers added by AVX512.
266 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
268 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
269 (i386_pseudo_register_name): Add ZMM pseudo registers.
270 (i386_zmm_type): Construct and return vector registers type for ZMM
272 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
273 ZMM0-31 pseudo registers and K registers.
274 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
275 and YMM16-31 registers from register cache.
276 (i386_pseudo_register_write): Add code to write K, ZMM and
278 (i386_register_reggroup_p): Add code to include/exclude AVX512
279 registers in/from respective register groups.
280 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
281 registers if feature is present in xcr0.
282 (i386_gdbarch_init): Add code to initialize AVX512 feature
283 variables in tdep structure, wire in pseudo registers and call
284 initialize_tdesc_i386_avx512.
285 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
287 (i386_regnum): Add AVX512 registers.
288 (I386_SSE_NUM_REGS): New define for number of SSE registers.
289 (I386_AVX_NUM_REGS): Likewise for AVX registers.
290 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
291 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
293 (i386_xmm_avx512_regnum_p): New prototype for register look up.
294 (i386_ymm_avx512_regnum_p): Likewise.
295 (i386_k_regnum_p): Likewise.
296 (i386_zmm_regnum_p): Likewise.
297 (i386_zmmh_regnum_p): Likewise.
298 * i387-tdep.c : Update year in copyright notice.
299 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
301 (XSAVE_YMM_AVX512_ADDR): New macro.
302 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
304 (XSAVE_XMM_AVX512_ADDR): New macro.
305 (xsave_avx512_k_offset): New table for K register offsets in
307 (XSAVE_AVX512_K_ADDR): New macro.
308 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
310 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
311 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
313 (i387_collect_xsave): Add code to collect AVX512 registers from
315 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
316 of XMM16-31 registers.
317 (I387_NUM_K_REGS): New define for number of K registers.
318 (I387_K0_REGNUM): New define for K0 register number.
319 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
320 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
321 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
323 (I387_YMM16H_REGNUM): New define for YMM16H register number.
324 (I387_XMM16_REGNUM): New define for XMM16 register number.
325 (I387_YMM0_REGNUM): New define for YMM0 register number.
326 (I387_KEND_REGNUM): New define for last K register number.
327 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
328 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
330 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
332 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
334 * features/Makefile: Add AVX512 related files.
335 * features/i386/32bit-avx512.xml: New file.
336 * features/i386/64bit-avx512.xml: Likewise.
337 * features/i386/amd64-avx512-linux.c: Likewise.
338 * features/i386/amd64-avx512-linux.xml: Likewise.
339 * features/i386/amd64-avx512.c: Likewise.
340 * features/i386/amd64-avx512.xml: Likewise.
341 * features/i386/i386-avx512-linux.c: Likewise.
342 * features/i386/i386-avx512-linux.xml: Likewise.
343 * features/i386/i386-avx512.c: Likewise.
344 * features/i386/i386-avx512.xml: Likewise.
345 * features/i386/x32-avx512-linux.c: Likewise.
346 * features/i386/x32-avx512-linux.xml: Likewise.
347 * features/i386/x32-avx512.c: Likewise.
348 * features/i386/x32-avx512.xml: Likewise.
349 * regformats/i386/amd64-avx512-linux.dat: New file.
350 * regformats/i386/amd64-avx512.dat: Likewise.
351 * regformats/i386/i386-avx512-linux.dat: Likewise.
352 * regformats/i386/i386-avx512.dat: Likewise.
353 * regformats/i386/x32-avx512-linux.dat: Likewise.
354 * regformats/i386/x32-avx512.dat: Likewise.
355 * NEWS: Add note about new support for AVX512.
358 2014-04-23 Pedro Alves <palves@redhat.com>
360 * breakpoint.c (insert_bp_location): Tolerate errors if the
361 breakpoint is set in a user-loaded objfile.
362 (remove_breakpoint_1): Likewise. Also tolerate errors if the
363 location is marked shlib_disabled. If the breakpoint is set in a
364 user-loaded objfile is a GDB-side memory breakpoint, validate it
365 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
366 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
368 * mem-break.c (memory_validate_breakpoint): New function.
369 * objfiles.c (userloaded_objfile_contains_address_p): New
371 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
372 * target.h (memory_validate_breakpoint): New declaration.
374 2014-04-23 Pedro Alves <palves@redhat.com>
376 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
377 the breakpoint is set in a shared library, only suppress
378 errors for software breakpoints, not hardware breakpoints.
380 2014-04-22 Pedro Alves <palves@redhat.com>
382 * infrun.c (schedlock_applies): New function, factored out from
383 find_thread_needs_step_over.
384 (find_thread_needs_step_over): Use it.
385 (switch_back_to_stepped_thread): Always clear trap_expected if the
386 step over is finished. Return early if scheduler locking applies.
387 Look for the stepping thread and a potential step-over thread with
389 (currently_stepping_or_nexting_callback): Delete.
391 2014-04-22 Nick Clifton <nickc@redhat.com>
393 * NEWS: Mention that ARM sim now supports tracing.
395 2014-04-22 Yao Qi <yao@codesourcery.com>
397 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
399 * tracefile.c (tracefile_fetch_registers): ... it. New
401 * tracefile.h (tracefile_fetch_registers): Declare.
402 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
403 tracefile_fetch_registers.
405 2014-04-19 Eli Zaretskii <eliz@gnu.org>
408 * windows-nat.c (thread_rec): Don't display a warning when
409 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
410 fails for any reason, set th->suspended to -1, so that we don't
411 try to resume such a thread. Also, don't return NULL in these
412 cases, to avoid completely ruin the session due to "PC register is
413 not available" error.
414 (do_windows_fetch_inferior_registers): Check errors in
415 GetThreadContext call.
416 (windows_continue): Accept an additional argument KILLED; if not
417 zero, ignore errors in the SetThreadContext call, since the
418 inferior was killed and is shutting down.
419 (windows_resume, get_windows_debug_event)
420 (windows_create_inferior, windows_mourn_inferior)
421 (windows_kill_inferior): All callers of windows_continue changed
422 to adjust to its new calling sequence.
424 2014-04-19 Yao Qi <yao@codesourcery.com>
426 * ctf.c (ctf_open): Call post_create_inferior.
428 2014-04-19 Yao Qi <yao@codesourcery.com>
430 * ctf.c (handle_id): New static variable.
431 (ctf_open_dir): Get handle_id from bt_context_add_trace return
432 value. Get the declaration of event "register" and get length
435 2014-04-19 Yao Qi <yao@codesourcery.com>
437 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
439 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
441 * valops.c (oload_method_static): Remove unnecessary argument
442 METHOD. Update all callers.
444 2014-04-18 Pedro alves <palves@redhat.com>
445 Tom Tromey <tromey@redhat.com>
448 * frame.c (get_prev_frame_1): Rename to ...
449 (get_prev_frame_always): ... this, and make extern. Adjust.
450 (skip_artificial_frames): Use get_prev_frame_always.
451 (frame_unwind_caller_id, frame_pop, get_prev_frame)
452 (get_frame_unwind_stop_reason): Adjust to rename.
453 * frame.h (get_prev_frame_always): Declare.
454 * inline-frame.c: Include frame.h.
455 (inline_frame_this_id): Use get_prev_frame_always.
457 2014-04-18 Tristan Gingold <gingold@adacore.com>
459 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
460 code by using bfd_mach_o_get_base_address.
462 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
464 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
465 (spu_ax_pseudo_register_collect): New function.
466 (spu_ax_pseudo_register_push_stack): Likewise.
467 (spu_dwarf_reg_to_regnum): Likewise.
468 (spu_gdbarch_init): Install them. Append DWARF unwinders.
470 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
472 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
473 Replace FRAME argument with FRAME_ID.
474 * gdbarch.c, gdbarch.h: Regenerate.
475 * findvar.c (default_value_from_register): Add GDBARCH argument;
476 replace FRAME by FRAME_ID. No longer call get_frame_id.
477 (value_from_register): Update call to gdbarch_value_from_register.
478 * value.h (default_value_from_register): Update prototype.
479 * s390-linux-tdep.c (s390_value_from_register): Update interface
480 and call to default_value_from_register.
481 * spu-tdep.c (spu_value_from_register): Likewise.
483 * findvar.c (address_from_register): Remove TYPE argument.
484 Do not call value_from_register; use gdbarch_value_from_register
485 with null_frame_id instead.
486 * value.h (address_from_register): Update prototype.
487 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
488 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
489 address_from_register interface change.
491 2014-04-17 Yao Qi <yao@codesourcery.com>
493 * gdbtypes.h: Update comments to link to types and macros'
496 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
498 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
500 2014-04-16 Keith Seitz <keiths@redhat.com>
503 * dwarf2read.c (skip_one_die): Check that all relative-offset
504 sibling DIEs fall within range of the current reader's buffer.
505 (read_partial_die): Likewise.
507 2014-04-16 Keith Seitz <keiths@redhat.com>
510 * cp-namespace.c (lookup_symbol_file): If the type name of
511 `this' is NULL, return immediately.
513 2014-04-14 Keith Seitz <keiths@redhat.com>
516 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
517 from symbol_matches_domain in symtab.c. All local callers
518 of symbol_matches_domain updated.
519 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
520 search STRUCT_DOMAIN.
521 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
522 independently. standard_lookup will do that automatically.
523 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
524 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
525 (cp_lookup_symbol_in_namespace): Likewise.
526 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
527 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
528 may return a STRUCT_DOMAIN match.
529 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
530 * cp-support.c: Include language.h.
531 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
533 * psymtab.c (match_partial_symbol): Compare the requested
534 domain with the symbol's domain directly.
535 (lookup_partial_symbol): Likewise.
536 * symtab.c (lookup_symbol_in_language): Explain when/why
537 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
538 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
539 appropriate languages.
540 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
541 and moved to ada-lang.c
542 (lookup_block_symbol): Explain that this function only returns
543 symbol matching the requested DOMAIN.
544 Compare the requested domain with the symbol's domain directly.
545 (iterate_over_symbols): Compare the requested domain with the
546 symbol's domain directly.
547 * symtab.h (symbol_matches_domain): Remove.
549 2014-04-14 Tom Tromey <tromey@redhat.com>
552 * c-exp.y (type_aggregate_p): New function.
553 (qualified_name, classify_inner_name): Use it.
554 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
555 and TYPE_TARGET_TYPE of an enum type.
556 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
558 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
559 handle TYPE_DECLARED_CLASS.
560 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
562 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
563 * valops.c (enum_constant_from_type): New function.
564 (value_aggregate_elt): Use it.
565 * cp-namespace.c (cp_lookup_nested_symbol): Handle
568 2014-04-14 Tom Tromey <tromey@redhat.com>
570 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
571 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
573 * value.h (value_aggregate_elt): Update.
575 2014-04-14 Tom Tromey <tromey@redhat.com>
577 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
579 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
581 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
582 (evaluate_subexp_standard): Pass noside argument.
583 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
584 if noside equals EVAL_NORMAL. If the subscript yields a vla type
585 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
586 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
587 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
589 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
591 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
592 points to a constant blob.
594 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
596 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
597 property and store it as the high bound and flag the range accordingly.
598 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
599 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
600 * gdbtypes.h (enum range_flags): New enum.
601 (struct range_bounds): Add flags member.
603 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
605 * c-typeprint.c (c_type_print_varspec_suffix): Added
606 check for not yet resolved high bound. If unresolved, print
607 "variable length" string to the console instead of random
610 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
612 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
614 (ada_template_to_fixed_record_type_1): Likewise.
615 (ada_to_fixed_type_1): Likewise.
616 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
617 (cp_print_value): Likewise.
618 * d-valprint.c (dynamic_array_type): Likewise.
619 * findvar.c (address_of_variable): Likewise.
620 * jv-valprint.c (java_value_print): Likewise.
621 * valops.c (value_ind): Likewise.
622 * value.c (coerce_ref): Likewise.
624 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
626 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
627 value and retrieve the dynamic type size.
629 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
631 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
632 passed to sizeof is dynamic evaluate the argument to compute the length.
634 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
635 Joel Brobecker <brobecker@adacore.com>
637 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
638 (dwarf2_evaluate_property): New function.
639 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
640 * dwarf2read.c (attr_to_dynamic_prop): New function.
641 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
643 * gdbtypes.c: Include dwarf2loc.h.
644 (is_dynamic_type): New function.
645 (resolve_dynamic_type): New function.
646 (resolve_dynamic_bounds): New function.
647 (get_type_length): New function.
648 (check_typedef): Use get_type_length to compute type length.
649 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
650 (TYPE_LOW_BOUND_KIND): New macro.
651 (is_dynamic_type): New function prototype.
652 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
653 to resolve dynamic properties of the type. Update comment.
654 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
656 2014-04-14 Richard Henderson <rth@redhat.com>
658 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
660 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
661 Doug Evans <xdje42@gmail.com>
663 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
664 dereference TYPE_CODE_REF values.
666 2014-04-11 Joel Brobecker <brobecker@adacore.com>
668 Revert the following changes due to regressions:
670 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
671 (dwarf2_evaluate_property): New function.
672 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
673 * dwarf2read.c (attr_to_dynamic_prop): New function.
674 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
676 * gdbtypes.c: Include dwarf2loc.h.
677 (is_dynamic_type): New function.
678 (resolve_dynamic_type): New function.
679 (resolve_dynamic_bounds): New function.
680 (get_type_length): New function.
681 (check_typedef): Use get_type_length to compute type length.
682 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
683 (TYPE_LOW_BOUND_KIND): New macro.
684 (is_dynamic_type): New function prototype.
685 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
686 to resolve dynamic properties of the type. Update comment.
687 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
689 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
690 passed to sizeof is dynamic evaluate the argument to compute the length.
692 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
693 value and retrieve the dynamic type size.
695 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
696 (ada_template_to_fixed_record_type_1): Likewise.
697 (ada_to_fixed_type_1): Likewise.
698 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
699 (cp_print_value): Likewise.
700 * d-valprint.c (dynamic_array_type): Likewise.
701 * eval.c (evaluate_subexp_with_coercion): Likewise.
702 * findvar.c (address_of_variable): Likewise.
703 * jv-valprint.c (java_value_print): Likewise.
704 * valops.c (value_ind): Likewise.
705 * value.c (coerce_ref): Likewise.
707 * c-typeprint.c (c_type_print_varspec_suffix): Added
708 check for not yet resolved high bound. If unresolved, print
709 "variable length" string to the console instead of random
712 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
713 property and store it as the high bound and flag the range accordingly.
714 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
715 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
716 * gdbtypes.h (enum range_flags): New enum.
717 (struct range_bounds): Add flags member.
719 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
720 points to a constant blob.
722 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
723 (evaluate_subexp_standard): Pass noside argument.
724 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
725 if noside equals EVAL_NORMAL. If the subscript yields a vla type
726 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
727 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
728 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
730 2014-04-11 Keith Seitz <keiths@redhat.com>
733 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
734 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
737 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
739 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
740 (evaluate_subexp_standard): Pass noside argument.
741 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
742 if noside equals EVAL_NORMAL. If the subscript yields a vla type
743 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
744 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
745 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
747 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
749 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
750 points to a constant blob.
752 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
754 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
755 property and store it as the high bound and flag the range accordingly.
756 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
757 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
758 * gdbtypes.h (enum range_flags): New enum.
759 (struct range_bounds): Add flags member.
761 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
763 * c-typeprint.c (c_type_print_varspec_suffix): Added
764 check for not yet resolved high bound. If unresolved, print
765 "variable length" string to the console instead of random
768 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
770 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
771 (ada_template_to_fixed_record_type_1): Likewise.
772 (ada_to_fixed_type_1): Likewise.
773 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
774 (cp_print_value): Likewise.
775 * d-valprint.c (dynamic_array_type): Likewise.
776 * eval.c (evaluate_subexp_with_coercion): Likewise.
777 * findvar.c (address_of_variable): Likewise.
778 * jv-valprint.c (java_value_print): Likewise.
779 * valops.c (value_ind): Likewise.
780 * value.c (coerce_ref): Likewise.
782 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
784 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
785 value and retrieve the dynamic type size.
787 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
789 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
790 passed to sizeof is dynamic evaluate the argument to compute the length.
792 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
794 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
795 (dwarf2_evaluate_property): New function.
796 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
797 * dwarf2read.c (attr_to_dynamic_prop): New function.
798 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
800 * gdbtypes.c: Include dwarf2loc.h.
801 (is_dynamic_type): New function.
802 (resolve_dynamic_type): New function.
803 (resolve_dynamic_bounds): New function.
804 (get_type_length): New function.
805 (check_typedef): Use get_type_length to compute type length.
806 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
807 (TYPE_LOW_BOUND_KIND): New macro.
808 (is_dynamic_type): New function prototype.
809 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
810 to resolve dynamic properties of the type. Update comment.
811 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
813 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
815 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
816 declaring high/low bounds and change uses accordingly. Call
817 create_range_type instead of create_static_range_type.
818 * gdbtypes.c (create_range_type): New function.
819 (create_range_type): Convert bounds into struct bound_prop and pass
820 them to create_range_type.
821 * gdbtypes.h (struct bound_prop): New struct.
822 (create_range_type): New function prototype.
823 (struct range_bounds): Use struct bound_prop instead of LONGEST for
824 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
825 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
827 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
829 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
831 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
832 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
833 * ada-lang.c: All uses of create_range_type updated.
834 * coffread.c: All uses of create_range_type updated.
835 * dwarf2read.c: All uses of create_range_type updated.
836 * f-exp.y: All uses of create_range_type updated.
837 * m2-valprint.c: All uses of create_range_type updated.
838 * mdebugread.c: All uses of create_range_type updated.
839 * stabsread.c: All uses of create_range_type updated.
840 * valops.c: All uses of create_range_type updated.
841 * valprint.c: All uses of create_range_type updated.
843 2014-04-10 Pedro Alves <palves@redhat.com>
845 * breakpoint.c (single_step_breakpoints)
846 (single_step_gdbarch): Move up in the file.
847 (one_breakpoint_xfer_memory): New function, factored out from ...
848 (breakpoint_xfer_memory): ... here. Also process single-step
851 2014-04-09 Tristan Gingold <gingold@adacore.com>
853 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
855 (darwin_decode_exception_message): Free port only after use.
857 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
859 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
860 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
861 when setting the size of call_length.
863 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
865 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
866 dereference TYPE_CODE_REF values.
868 2014-04-07 Joel Brobecker <brobecker@adacore.com>
870 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
871 end of warning message.
873 2014-04-03 Doug Evans <dje@google.com>
875 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
876 of stub_comp_unit_die, stub_comp_dir is non-NULL.
878 2014-04-02 Alan Modra <amodra@gmail.com>
880 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
881 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
882 (struct symbol_file_add_from_memory_args): Add size field.
883 (find_vdso_size): New function.
884 (add_vsyscall_page): Attempt to find vdso size.
886 2014-04-01 Doug Evans <dje@google.com>
888 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
890 2014-04-01 Tristan Gingold <gingold@adacore.com>
892 * darwin-nat.c (darwin_encode_reply): Add prototype.
893 (darwin_decode_exception_message): Reply to unknown inferiors.
894 (darwin_decode_message): Handle message by id. Ignore message
896 (darwin_wait): Discard unknown messages, add debug trace.
898 2014-03-31 Doug Evans <dje@google.com>
900 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
903 2014-03-31 Doug Evans <dje@google.com>
905 New option "set print symbol-loading".
907 * solib.c (solib_read_symbols): Only print symbol loading messages
909 (solib_add): If symbol loading is in "brief" mode, notify user
910 symbols are being loaded.
911 (reload_shared_libraries_1): Ditto.
912 * symfile.c (print_symbol_loading_off): New static global.
913 (print_symbol_loading_brief): New static global.
914 (print_symbol_loading_full): New static global.
915 (print_symbol_loading_enums): New static global.
916 (print_symbol_loading): New static global.
917 (print_symbol_loading_p): New function.
918 (symbol_file_add_with_addrs): Only print symbol loading messages
920 (_initialize_symfile): Register "print symbol-loading" set/show
922 * symfile.h (print_symbol_loading_p): Declare.
924 2014-03-30 Doug Evans <xdje42@gmail.com>
926 * infrun.c (set_last_target_status): New function.
927 (handle_inferior_event): Call it.
929 2014-03-30 Doug Evans <xdje42@gmail.com>
931 * inferior.h (enum stop_kind): Improve comment.
933 2014-03-28 Joel Brobecker <brobecker@adacore.com>
935 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
936 a reference, strip the reference layer before calling
937 the lang_ops value_has_mutated callback.
939 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
941 Remove some globals from our parser.
942 * language.c (unk_lang_parser): Add "struct parser_state"
944 * language.h (struct language_defn) <la_parser>: Likewise.
945 * parse.c (expout, expout_size, expout_ptr): Remove variables.
946 (initialize_expout): Add "struct parser_state" argument.
947 Rewrite function to use the parser state.
948 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
949 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
950 write_exp_elt_longcst, write_exp_elt_dblcst,
951 write_exp_elt_decfloatcst, write_exp_elt_type,
952 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
953 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
954 write_dollar_variable): Likewise.
955 (parse_exp_in_context_1): Use parser state.
956 (insert_type_address_space): Add "struct parser_state" argument.
958 (increase_expout_size): New function.
959 * parser-defs.h: Forward declare "struct language_defn" and
960 "struct parser_state".
961 (expout, expout_size, expout_ptr): Remove extern declarations.
962 (parse_gdbarch, parse_language): Rewrite macro declarations to
963 accept the parser state.
964 (struct parser_state): New struct.
965 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
966 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
967 write_exp_elt_decfloatcst, write_exp_elt_type,
968 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
969 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
970 write_exp_msymbol, write_dollar_variable,
971 mark_struct_expression, insert_type_address_space): Add "struct
972 parser_state" argument.
973 (increase_expout_size): New function.
974 * utils.c (do_clear_parser_state): New function.
975 (make_cleanup_clear_parser_state): Likewise.
976 * utils.h (make_cleanup_clear_parser_state): New function
978 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
979 Update calls to write_exp* in order to pass the parser state.
980 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
981 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
982 (i386_stap_parse_special_token_three_arg_disp): Likewise.
983 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
984 * stap-probe.c (stap_parse_register_operand): Likewise.
985 (stap_parse_single_operand): Likewise.
986 (stap_parse_argument_1): Likewise.
987 (stap_parse_argument): Use parser state.
988 * stap-probe.h: Include "parser-defs.h".
989 (struct stap_parse_info) <pstate>: New field.
990 * c-exp.y (parse_type): Rewrite to use parser state.
991 (yyparse): Redefine to c_parse_internal.
992 (pstate): New global variable.
993 (parse_number): Add "struct parser_state" argument.
994 (write_destructor_name): Likewise.
995 (type_exp): Update calls to write_exp* and similars in order to
997 (exp1, exp, variable, qualified_name, space_identifier,
998 typename, typebase): Likewise.
999 (write_destructor_name, parse_number, lex_one_token,
1000 classify_name, classify_inner_name, c_parse): Add "struct
1001 parser_state" argument. Update function to use parser state.
1002 * c-lang.h: Forward declare "struct parser_state".
1003 (c_parse): Add "struct parser_state" argument.
1004 * ada-exp.y (parse_type): Rewrite macro to use parser state.
1005 (yyparse): Redefine macro to ada_parse_internal.
1006 (pstate): New variable.
1007 (write_int, write_object_renaming, write_var_or_type,
1008 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
1009 type_int, type_long, type_long_long, type_float, type_double,
1010 type_long_double, type_char, type_boolean, type_system_address):
1011 Add "struct parser_state" argument.
1012 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
1013 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
1014 var_or_type, aggregate, aggregate_component_list,
1015 positional_list, others, component_group,
1016 component_associations): Update calls to write_exp* and similar
1017 functions in order to use parser state.
1018 (ada_parse, write_var_from_sym, write_int,
1019 write_exp_op_with_string, write_object_renaming,
1020 find_primitive_type, write_selectors, write_ambiguous_var,
1021 write_var_or_type, write_name_assoc, type_int, type_long,
1022 type_long_long, type_float, type_double, type_long_double,
1023 type_char, type_boolean, type_system_address): Add "struct
1024 parser_state" argument. Adjust function to use parser state.
1025 * ada-lang.c (parse): Likewise.
1026 * ada-lang.h: Forward declare "struct parser_state".
1027 (ada_parse): Add "struct parser_state" argument.
1028 * ada-lex.l (processInt, processReal): Likewise. Adjust all
1029 calls to both functions.
1030 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
1032 (yyparse): Redefine macro to f_parse_internal.
1033 (pstate): New variable.
1034 (parse_number): Add "struct parser_state" argument.
1035 (type_exp, exp, subrange, typebase): Update calls to write_exp*
1036 and similars in order to use parser state.
1037 (parse_number): Adjust code to use parser state.
1039 (f_parse): New function.
1040 * f-lang.h: Forward declare "struct parser_state".
1041 (f_parse): Add "struct parser_state" argument.
1042 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
1044 (yyparse): Redefine macro for java_parse_internal.
1045 (pstate): New variable.
1046 (push_expression_name, push_expression_name, insert_exp): Add
1047 "struct parser_state" argument.
1048 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
1049 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
1050 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
1051 PostIncrementExpression, PostDecrementExpression,
1052 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
1053 UnaryExpressionNotPlusMinus, CastExpression,
1054 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
1055 RelationalExpression, EqualityExpression, AndExpression,
1056 ExclusiveOrExpression, InclusiveOrExpression,
1057 ConditionalAndExpression, ConditionalOrExpression,
1058 ConditionalExpression, Assignment, LeftHandSide): Update
1059 calls to write_exp* and similars in order to use parser state.
1060 (parse_number): Ajust code to use parser state.
1062 (java_parse): New function.
1063 (push_variable): Add "struct parser_state" argument. Adjust
1064 code to user parser state.
1065 (push_fieldnames, push_qualified_expression_name,
1066 push_expression_name, insert_exp): Likewise.
1067 * jv-lang.h: Forward declare "struct parser_state".
1068 (java_parse): Add "struct parser_state" argument.
1069 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
1071 (yyparse): Redefine macro to m2_parse_internal.
1072 (pstate): New variable.
1073 (type_exp, exp, fblock, variable, type): Update calls to
1074 write_exp* and similars to use parser state.
1076 (m2_parse): New function.
1077 * m2-lang.h: Forward declare "struct parser_state".
1078 (m2_parse): Add "struct parser_state" argument.
1079 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
1080 * objc-lang.h: Forward declare "struct parser_state".
1081 (end_msglist): Add "struct parser_state" argument.
1082 * p-exp.y (parse_type): Rewrite macro to use parser state.
1083 (yyparse): Redefine macro to pascal_parse_internal.
1084 (pstate): New variable.
1085 (parse_number): Add "struct parser_state" argument.
1086 (type_exp, exp1, exp, qualified_name, variable): Update calls to
1087 write_exp* and similars in order to use parser state.
1088 (parse_number, yylex): Adjust code to use parser state.
1089 (pascal_parse): New function.
1090 * p-lang.h: Forward declare "struct parser_state".
1091 (pascal_parse): Add "struct parser_state" argument.
1092 * go-exp.y (parse_type): Rewrite macro to use parser state.
1093 (yyparse): Redefine macro to go_parse_internal.
1094 (pstate): New variable.
1095 (parse_number): Add "struct parser_state" argument.
1096 (type_exp, exp1, exp, variable, type): Update calls to
1097 write_exp* and similars in order to use parser state.
1098 (parse_number, lex_one_token, classify_name, yylex): Adjust code
1099 to use parser state.
1100 (go_parse): Likewise.
1101 * go-lang.h: Forward declare "struct parser_state".
1102 (go_parse): Add "struct parser_state" argument.
1104 2014-03-27 Doug Evans <dje@google.com>
1106 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
1108 2014-03-27 Doug Evans <dje@google.com>
1110 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
1111 Remove argument abbrev_section. All callers updated.
1113 2014-03-27 Doug Evans <dje@google.com>
1115 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
1116 addr_base, ranges_base.
1118 2014-03-26 Keith Seitz <keiths@redhat.com>
1120 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
1121 types, not VAR_DOMAIN.
1123 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
1125 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
1127 * features/nios2-linux.c: Regenerated.
1128 * features/nios2.c: Regenerated.
1130 2014-03-25 Pedro Alves <palves@redhat.com>
1132 * cli/cli-script.c (script_from_file): Force the interpreter to
1135 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
1137 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
1138 small stack allocation.
1140 2014-03-24 Tristan Gingold <gingold@adacore.com>
1142 * darwin-nat.c (exc_server): Remove unused prototype.
1143 (darwin_dump_message): Correctly display data on x86_64.
1144 (darwin_encode_reply): Fix style.
1145 Add comments and fix indentation.
1147 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
1149 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
1151 2014-03-22 Doug Evans <xdje42@gmail.com>
1153 * infcmd.c: Whitespace fixes.
1154 (interrupt_command): Merge two function comments into one.
1156 2014-03-22 Doug Evans <xdje42@gmail.com>
1158 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
1161 2014-03-22 Yao Qi <yao@codesourcery.com>
1163 * remote.c (target_read_live_memory): Remove.
1164 (memory_xfer_live_readonly_partial): Rename it to
1165 remote_xfer_live_readonly_partial. Remove argument 'object'.
1166 All callers updated. Call remote_read_bytes_1
1167 instead of target_read_live_memory.
1168 * tracepoint.c (set_traceframe_number): Remove.
1169 (make_cleanup_restore_traceframe_number): Likewise .
1170 * tracepoint.h (set_traceframe_number): Remove declaration.
1171 (make_cleanup_restore_traceframe_number): Likewise.
1173 2014-03-22 Yao Qi <yao@codesourcery.com>
1175 * remote.c (remote_read_bytes): Move code on reading from the
1177 (remote_read_bytes_1): ... here. New function.
1179 2014-03-22 Yao Qi <yao@codesourcery.com>
1181 * ctf.c (ctf_xfer_partial): Check the return value of
1182 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
1183 return TARGET_XFER_UNAVAILABLE.
1184 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
1185 * target.c (target_read_live_memory): Move it to remote.c.
1186 (memory_xfer_live_readonly_partial): Likewise.
1187 (memory_xfer_partial_1): Move some code to remote_read_bytes.
1188 * remote.c (target_read_live_memory): Moved from target.c.
1189 (memory_xfer_live_readonly_partial): Likewise.
1190 (remote_read_bytes): Factored out from
1191 memory_xfer_partial_1.
1193 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
1195 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
1198 2014-03-21 Pedro Alves <palves@redhat.com>
1200 * infrun.c (normal_stop): Extend comment.
1202 2014-03-21 Hui Zhu <hui@codesourcery.com>
1203 Pedro Alves <palves@redhat.com>
1205 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
1207 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
1208 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
1209 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
1211 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
1213 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
1214 `z' formatted output modifier.
1216 2014-03-20 Tom Tromey <tromey@redhat.com>
1217 Sergio Durigan Junior <sergiodj@redhat.com>
1219 * probe.c (parse_probes): Turn assert into an ordinary error.
1220 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
1221 exceptions when parsing probes. Rearrange the code for clarity.
1223 2014-03-20 Tom Tromey <tromey@redhat.com>
1226 * top.c (execute_command): Only dispatch events if the command
1229 2014-03-20 Tom Tromey <tromey@redhat.com>
1232 * infcall.c: Include event-top.h.
1233 (run_inferior_call): Call async_disable_stdin if needed.
1235 2014-03-20 Pedro Alves <palves@redhat.com>
1237 * infrun.c (prepare_to_proceed): Delete.
1238 (thread_still_needs_step_over): New function.
1239 (find_thread_needs_step_over): New function.
1240 (proceed): If the current thread needs a step-over, set its
1241 steping_over_breakpoint flag. Adjust to use
1242 find_thread_needs_step_over instead of prepare_to_proceed.
1243 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
1244 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
1246 (switch_back_to_stepped_thread): Step over breakpoints of all
1247 threads not the stepping thread, before switching back to the
1250 2014-03-20 Pedro Alves <palves@redhat.com>
1252 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
1254 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
1255 * infrun.c (saved_singlestep_ptid)
1256 (stepping_past_singlestep_breakpoint): Delete.
1257 (resume): Remove stepping_past_singlestep_breakpoint handling.
1258 (proceed): Store the prev_pc of the stepping thread too.
1259 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
1261 (enum infwait_states): Delete infwait_thread_hop_state.
1262 (struct execution_control_state) <hit_singlestep_breakpoint>: New
1264 (handle_inferior_event): Adjust.
1265 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
1266 handling and the thread-hop code. Before removing single-step
1267 breakpoints, check whether the thread hit a single-step breakpoint
1268 of another thread. If it did, the trap is not a random signal.
1269 (switch_back_to_stepped_thread): If the event thread hit a
1270 single-step breakpoint, unblock it before switching to the
1271 stepping thread. Handle the case of the stepped thread having
1273 (keep_going): Handle the case of the current thread moving past a
1274 single-step breakpoint.
1276 2014-03-20 Pedro Alves <palves@redhat.com>
1279 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
1280 are being stepped over.
1281 (breakpoint_address_match): Make extern.
1282 * breakpoint.h (breakpoint_address_match): New declaration.
1283 * inferior.h (stepping_past_instruction_at): New declaration.
1284 * infrun.c (struct step_over_info): New type.
1285 (step_over_info): New global.
1286 (set_step_over_info, clear_step_over_info)
1287 (stepping_past_instruction_at): New functions.
1288 (handle_inferior_event): Clear the step-over info when
1289 trap_expected is cleared.
1290 (resume): Remove now stale comment.
1291 (clear_proceed_status): Clear step-over info.
1292 (proceed): Adjust step-over handling to set or clear the step-over
1293 info instead of removing all breakpoints.
1294 (handle_signal_stop): When setting up a thread-hop, don't remove
1296 (stop_stepping): Clear step-over info.
1297 (keep_going): Adjust step-over handling to set or clear step-over
1298 info and then always inserting breakpoints, instead of removing
1299 all breakpoints when stepping over one.
1301 2014-03-20 Pedro Alves <palves@redhat.com>
1303 * infrun.c (previous_inferior_ptid): Adjust comment.
1304 (deferred_step_ptid): Delete.
1305 (infrun_thread_ptid_changed, prepare_to_proceed)
1306 (init_wait_for_inferior): Adjust.
1307 (handle_signal_stop): Delete deferred_step_ptid handling.
1309 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1312 * defs.h (sync_quit_force_run): New declaration.
1313 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
1314 * event-top.c (async_sigterm_handler): New declaration.
1315 (async_sigterm_token): New variable.
1316 (async_init_signals): Create also async_sigterm_token.
1317 (async_sigterm_handler): New function.
1318 (sync_quit_force_run): New variable.
1319 (handle_sigterm): Replace quit_force call by other calls.
1320 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
1322 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
1324 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
1325 offset into SPE pseudo registers.
1327 2014-03-18 Pedro Alves <palves@redhat.com>
1330 * inferior.h (print_stop_event): Declare.
1331 * infrun.c (print_stop_event): New, factored out from ...
1332 (normal_stop): ... this.
1333 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
1334 of bpstat_print/print_stack_frame.
1336 2014-03-17 Tom Tromey <tromey@redhat.com>
1338 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
1340 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
1342 * ada-lang.c (decode_constrained_packed_array): Perform a
1343 minimal coercion for reference with coerce_ref instead of
1346 2014-03-17 Tristan Gingold <gingold@adacore.com>
1348 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
1349 (darwin_solib_create_inferior_hook): Emit a warning if version
1352 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
1354 * python/py-value.c (get_field_flag): Cast flag_name argument to
1355 PyObject_GetAttrString to support Python 2.4.
1357 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1359 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
1360 (Global Maintainers): Remove Jan Kratochvil.
1362 2014-03-14 Pedro Alves <palves@redhat.com>
1364 * inferior.h (terminal_ours_for_output): Rename to ...
1365 (child_terminal_ours_for_output): ... this.
1366 (terminal_save_ours): Rename to ...
1367 (child_terminal_save_ours): ... this.
1368 (terminal_ours): Rename to ...
1369 (child_terminal_ours): ... this.
1370 (terminal_inferior): Rename to ...
1371 (child_terminal_inferior): ... this.
1372 (terminal_init_inferior): Rename to ...
1373 (child_terminal_init_inferior): ... this.
1374 (terminal_init_inferior_with_pgrp): Rename to ...
1375 (child_terminal_init_inferior_with_pgrp): ... this.
1376 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
1377 (child_terminal_init_with_pgrp): ... this.
1378 (terminal_save_ours): Rename to ...
1379 (child_terminal_save_ours): ... this.
1380 (terminal_init_inferior): Rename to ...
1381 (child_terminal_init): ... this. Adjust.
1382 (terminal_inferior): Rename to ...
1383 (child_terminal_inferior): ... this.
1384 (terminal_ours_for_output): Rename to ...
1385 (child_terminal_ours_for_output): ... this. Adjust.
1386 (terminal_ours): Rename to ...
1387 (child_terminal_ours): ... this.
1388 (terminal_ours_1): Rename to ...
1389 (child_terminal_ours_1): ... this. Adjust.
1390 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
1391 * windows-nat.c (do_initial_windows_stuff): Adjust.
1392 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
1393 (gnu_terminal_init): ... this. Adjust.
1394 (gnu_target): Adjust.
1395 * inf-child.c (inf_child_target): Adjust.
1397 2014-03-13 Doug Evans <xdje42@gmail.com>
1400 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
1403 2014-03-13 Doug Evans <xdje42@gmail.com>
1405 * value.c (record_latest_value): Call release_value_or_incref
1406 instead of release_value.
1408 2014-03-13 Pedro Alves <palves@redhat.com>
1410 * procfs.c (procfs_target): Don't override to_shortname,
1411 to_longname or to_doc.
1413 2014-03-13 Pedro Alves <palves@redhat.com>
1415 * inf-child.c (inf_child_open, inf_child_target): Don't mention
1416 Unix in user visible strings.
1418 2014-03-12 Stan Shebs <stan@codesourcery.com>
1420 * gdbtypes.h: Annotate comments for Doxygen, add a page
1421 block comment with some general info.
1423 2014-03-12 Pedro Alves <palves@redhat.com>
1425 * infcmd.c (prepare_execution_command): New function, factored out
1426 from several execution commands.
1427 (run_command_1, continue_command, step_1, jump_command)
1428 (signal_command, until_command, advance_command, finish_command)
1429 (attach_command): Use prepare_execution_command.
1431 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
1433 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
1436 (struct arm_linux_thread_points): Removed.
1437 (struct arm_linux_process_info): New.
1438 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
1439 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
1440 (arm_linux_find_breakpoints_by_tid): Removed.
1441 (struct arch_lwp_info): New.
1442 (arm_linux_find_process_pid): New functions.
1443 (arm_linux_add_process): New functions.
1444 (arm_linux_process_info_get): New functions.
1445 (arm_linux_forget_process): New function.
1446 (arm_linux_get_debug_reg_state): New function.
1447 (struct update_registers_data): New.
1448 (update_registers_callback): New function.
1449 (arm_linux_insert_hw_breakpoint1): Updated.
1450 (arm_linux_remove_hw_breakpoint1): Updated.
1451 (arm_linux_insert_hw_breakpoint): Updated.
1452 (arm_linux_remove_hw_breakpoint): Updated.
1453 (arm_linux_insert_watchpoint): Updated.
1454 (arm_linux_remove_watchpoint): Updated.
1455 (arm_linux_new_thread): Updated.
1456 (arm_linux_prepare_to_resume): New function.
1457 (arm_linux_new_fork): New function.
1458 (_initialize_arm_linux_nat): Updated.
1460 2014-03-12 Pedro Alves <palves@redhat.com>
1462 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
1464 2014-03-12 Tom Tromey <tromey@redhat.com>
1466 * inf-child.c (return_zero): New function.
1467 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
1468 * aix-thread.c (aix_thread_inferior_created): New function.
1469 (aix_thread_attach): Remove.
1470 (init_aix_thread_ops): Don't set to_attach.
1471 (_initialize_aix_thread): Register inferior_created observer.
1472 * corelow.c (init_core_ops): Don't set to_attach or
1474 * exec.c (init_exec_ops): Don't set to_attach or
1476 * infcmd.c (run_command_1): Use find_run_target. Make direct
1478 (attach_command): Use find_attach_target. Make direct target
1480 * record-btrace.c (init_record_btrace_ops): Don't set
1482 * record-full.c (record_full_can_async_p, record_full_is_async_p):
1484 (init_record_full_ops, init_record_full_core_ops): Update. Don't
1485 set to_create_inferior.
1486 * target.c (complete_target_initialization): Add assertion.
1487 (target_create_inferior): Remove.
1488 (find_default_attach, find_default_create_inferior): Remove.
1489 (find_attach_target, find_run_target): New functions.
1490 (find_default_is_async_p, find_default_can_async_p)
1491 (target_supports_non_stop, target_attach): Remove.
1492 (init_dummy_target): Don't set to_create_inferior or
1493 to_supports_non_stop.
1494 * target.h (struct target_ops) <to_attach>: Add comment. Remove
1495 TARGET_DEFAULT_FUNC.
1496 <to_create_inferior>: Add comment.
1497 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
1498 TARGET_DEFAULT_RETURN.
1499 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
1500 (find_attach_target, find_run_target): Declare.
1501 (target_create_inferior): Remove.
1502 (target_has_execution_1): Update comment.
1503 (target_supports_non_stop): Remove.
1504 * target-delegates.c: Rebuild.
1506 2014-03-12 Pedro Alves <palves@redhat.com>
1508 * inf-child.h: Update comment to not mention Unix.
1510 2014-03-12 Pedro Alves <palves@redhat.com>
1512 * inf-child.c: Update top comment to not mention Unix. Add
1513 generic comment describing how this target is meant to be used.
1514 (inf_child_post_attach, inf_child_post_startup_inferior)
1515 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
1518 2014-03-12 Pedro Alves <palves@redhat.com>
1520 * nto-procfs.c: Include inf-child.h.
1521 (procfs_ops): Delete global.
1522 (procfs_can_run): Delete method.
1523 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
1524 target pointer instead of referencing procfs_ops.
1525 (procfs_prepare_to_store): Delete.
1526 (init_procfs_ops): Delete function.
1527 (procfs_target): New function, based on init_procfs_ops, but
1528 inherit inf_child_target.
1529 (_initialize_procfs): Use procfs_target.
1531 2014-03-12 Pedro Alves <palves@redhat.com>
1533 * windows-nat.c: Include inf-child.h.
1534 (windows_ops): Delete global.
1535 (windows_open, windows_prepare_to_store, windows_can_run): Delete
1537 (init_windows_ops): Delete function.
1538 (windows_target): New function, based on init_windows_ops, but
1539 inherit inf_child_target.
1540 (_initialize_windows_nat): Use windows_target. Install x86
1541 specific target methods here.
1543 2014-03-10 Doug Evans <xdje42@gmail.com>
1545 * guile/guile.c (call_initialize_gdb_module): New function.
1546 (initialize_guile): Replace call to scm_init_guile with call to
1549 2014-03-10 Joel Brobecker <brobecker@adacore.com>
1551 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
1552 in call to TYPE_CODE macro.
1554 2014-03-10 Jerome Guitton <guitton@adacore.com>
1556 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
1557 Resolve tagged types to full view.
1559 2014-03-10 Hui Zhu <hui@codesourcery.com>
1561 * target.h (target_insert_breakpoint): Remove "hardware" from its
1564 2014-03-07 Doug Evans <dje@google.com>
1566 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
1568 2014-03-07 Doug Evans <dje@google.com>
1570 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
1571 Remove unused local comp_dir_attr. Assert exactly one of
1572 stub_comp_unit_die, stub_comp_dir is non-NULL.
1574 2014-03-07 Joel Brobecker <brobecker@adacore.com>
1576 * target.h (complete_target_initialization, add_target):
1579 2014-03-07 Pedro Alves <palves@redhat.com>
1581 * go32-nat.c: Include inf-child.h.
1582 (go32_ops): Delete global.
1583 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
1585 (go32_create_inferior): Push the passed in target pointer instead
1586 of referencing go32_ops.
1587 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
1588 (go32_target): New function, based on init_go32_ops, but inherit
1590 (_initialize_go32_nat): Use go32_target. Move parts of
1593 2014-03-06 Joel Brobecker <brobecker@adacore.com>
1595 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
1596 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
1597 SYMBOL_VALUE_ADDRESS.
1598 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
1600 2014-03-06 Yao Qi <yao@codesourcery.com>
1602 * breakpoint.c (get_tracepoint_by_number): Remove argument
1603 optional_p. All callers updated. Adjust comments. Update
1605 * breakpoint.h (get_tracepoint_by_number): Update declaration.
1607 2014-03-06 Yao Qi <yao@codesourcery.com>
1609 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
1610 early if get_number returns zero. Use 'p' instead of 'args'.
1612 2014-03-06 Yao Qi <yao@codesourcery.com>
1614 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
1617 2014-03-06 Yao Qi <yao@codesourcery.com>
1619 PR breakpoints/16508
1620 * tracepoint.c (check_trace_running): New function.
1621 (trace_find_command): Move code to check_trace_running and
1622 call check_trace_running.
1623 (trace_find_pc_command): Likewise.
1624 (trace_find_tracepoint_command): Likewise.
1625 (trace_find_line_command): Likewise.
1626 (trace_find_range_command): Likewise.
1627 * tracepoint.h (check_trace_running): Likewise.
1628 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
1630 2014-03-06 Yao Qi <yao@codesourcery.com>
1632 * target.h (struct target_ops) <to_traceframe_info>: Use
1633 TARGET_DEFAULT_NORETURN (tcomplain ()).
1634 * target-delegates.c: Regenerated.
1636 2014-03-05 Pedro Alves <palves@redhat.com>
1639 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
1640 void. Update comment.
1641 (dcache_xfer_memory): Delete.
1642 (dcache_read_memory_partial): New, based on the read bits of
1644 (dcache_update): Add status parameter. Use ULONGEST for len, and
1645 adjust. Discard cache lines if the reason for the update was
1647 * dcache.h (dcache_xfer_memory): Delete declaration.
1648 (dcache_read_memory_partial): New declaration.
1649 (dcache_update): Update prototype.
1650 * target.c (raw_memory_xfer_partial): Update the dcache here.
1651 (memory_xfer_partial_1): Don't handle dcache writes here.
1653 2014-03-05 Mike Frysinger <vapier@gentoo.org>
1655 * remote-sim.c (gdbsim_load): Add const to prog.
1657 2014-03-03 Tom Tromey <tromey@redhat.com>
1659 * elfread.c (probe_key): Change to bfd_data.
1660 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
1661 now per-BFD, not per-objfile.
1662 * stap-probe.c (stap_probe_destroy): Update comment.
1663 (handle_stap_probe): Allocate on the per-BFD obstack.
1665 2014-03-03 Tom Tromey <tromey@redhat.com>
1667 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
1668 * breakpoint.c (create_longjmp_master_breakpoint): Use
1670 (add_location_to_breakpoint, bkpt_probe_insert_location)
1671 (bkpt_probe_remove_location): Update.
1672 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
1673 * elfread.c (elf_symfile_relocate_probe): Remove.
1674 (elf_probe_fns): Update.
1675 (insert_exception_resume_breakpoint): Change type of "probe"
1676 parameter to bound_probe.
1677 (check_exception_resume): Update.
1678 * objfiles.c (objfile_relocate1): Don't relocate probes.
1679 * probe.c (bound_probe_s): New typedef.
1680 (parse_probes): Use get_probe_address. Set sal's objfile.
1681 (find_probe_by_pc): Return a bound_probe.
1682 (collect_probes): Return a VEC(bound_probe_s).
1683 (compare_probes): Update.
1684 (gen_ui_out_table_header_info): Change type of "probes"
1686 (info_probes_for_ops): Update.
1687 (get_probe_address): New function.
1688 (probe_safe_evaluate_at_pc): Update.
1689 * probe.h (struct probe_ops) <get_probe_address>: New field.
1690 <set_semaphore, clear_semaphore>: Add objfile parameter.
1691 (struct probe) <objfile>: Remove field.
1693 <address>: Update comment.
1694 (struct bound_probe): New.
1695 (find_probe_by_pc): Return a bound_probe.
1696 (get_probe_address): Declare.
1697 * solib-svr4.c (struct probe_and_action) <address>: New field.
1698 (hash_probe_and_action, equal_probe_and_action): Update.
1699 (register_solib_event_probe): Add address parameter.
1700 (solib_event_probe_at): Update.
1701 (svr4_create_probe_breakpoints): Add objfile parameter. Use
1703 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
1704 (stap_get_probe_address): New function.
1705 (stap_can_evaluate_probe_arguments, compute_probe_arg)
1706 (compile_probe_arg): Update.
1707 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
1709 (handle_stap_probe): Don't relocate the probe.
1710 (stap_relocate): Remove.
1711 (stap_gen_info_probes_table_values): Update.
1712 (stap_probe_ops): Remove stap_relocate.
1713 * symfile-debug.c (debug_sym_relocate_probe): Remove.
1714 (debug_sym_probe_fns): Update.
1715 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
1716 * symtab.c (init_sal): Use memset.
1717 * symtab.h (struct symtab_and_line) <objfile>: New field.
1718 * tracepoint.c (start_tracing, stop_tracing): Update.
1720 2014-03-03 Tom Tromey <tromey@redhat.com>
1722 * probe.h (parse_probes, find_probe_by_pc)
1723 (find_probes_in_objfile): Fix comments.
1725 2014-03-02 Doug Evans <xdje42@gmail.com>
1727 * infrun.c (handle_signal_stop): Replace test for
1728 TARGET_WAITKIND_STOPPED with an assert.
1730 2014-03-02 Doug Evans <xdje42@gmail.com>
1732 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
1734 2014-03-02 Doug Evans <xdje42@gmail.com>
1736 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
1738 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1740 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
1742 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1744 * i386obsd-nat.c: Include "obsd-nat.h".
1745 (_initialize_i386obsd_nat): Call obsd_add_target instead of
1747 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
1749 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1751 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
1753 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1755 * mips64obsd-nat.c: Include "obsd-nath".
1756 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
1758 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
1760 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1762 * amd64obsd-nat.c: Include "obsd-nat,h.
1763 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
1765 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
1767 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
1769 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
1770 (find_overload_match): Update call to find_oload_champ.
1771 (find_oload_champ_namespace_loop): Likewise
1773 2014-02-28 Mark Kettenis <kettenis@gnu.org>
1775 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
1777 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
1778 * config/sparc/obsd64.mh: New file.
1779 * sparc64obsd-nat.c: New file.
1781 * obsd-nat.h: New file.
1782 * obsd-nat.c: New file.
1783 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
1784 (ALLDEPFILES): Add obsd-nat.c.
1786 2014-02-28 Tom Tromey <tromey@redhat.com>
1788 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
1789 * cli-out.h (cli_ui_out_impl): Now const.
1790 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
1791 * ui-out.c (struct ui_out) <impl>: Now const.
1792 (default_ui_out_impl): Now const.
1793 (ui_out_new): Make 'impl' parameter const.
1794 * ui-out.h (ui_out_new): Update.
1796 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1798 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
1800 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1802 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
1804 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1806 Additional PR 8882 fix.
1807 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
1809 2014-02-27 Pedro Alves <palves@redhat.com>
1811 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
1814 2014-02-27 Pedro Alves <palves@redhat.com>
1817 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
1818 * nat/linux-waitpid.c: Include string.h.
1819 (status_to_str): Moved here and made extern.
1820 * nat/linux-waitpid.h (status_to_str): New declaration.
1822 2014-02-27 Hui Zhu <hui@codesourcery.com>
1825 * infrun.c (ptid_match): Move ...
1826 * common/ptid.c (ptid_match): ... here.
1827 * inferior.h (ptid_match): Move ...
1828 * common/ptid.h (ptid_match): ... here.
1830 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1832 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
1833 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
1836 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1838 * obsd-tdep.c (obsd_auxv_parse): New function.
1839 (obsd_init_abi): Set auxv_parse.
1841 * gdbarch.sh (auxv_parse): New.
1842 * gdbarch.h: Regenerated.
1843 * gdbarch.c: Regenerated.
1844 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
1846 2014-02-26 Ludovic Courtès <ludo@gnu.org>
1848 * guile/scm-value.c (gdbscm_history_append_x): New function.
1849 (value_functions): Add it.
1851 2014-02-27 Joel Brobecker <brobecker@adacore.com>
1853 * dwarf2read.c (attr_value_as_address): New function.
1854 (dwarf2_find_base_address, read_call_site_scope): Use
1855 attr_value_as_address in place of DW_ADDR.
1856 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
1857 the low and high addresses. Slight rework of the handling
1858 of the high pc being a constant form, and limit it to
1859 DWARF verson 4 or higher.
1860 (dwarf2_record_block_ranges): Likewise.
1861 (read_partial_die): Likewise.
1862 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
1864 2014-02-26 Tom Tromey <tromey@redhat.com>
1866 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
1868 2014-02-26 Tom Tromey <tromey@redhat.com>
1870 * elfread.c (elf_read_minimal_symbols): Return early if
1871 minimal symbols have already been read. Add "ei" parameter.
1872 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
1873 * minsyms.c (prim_record_minimal_symbol_full): Update.
1874 * objfiles.h (struct objstats) <n_minsyms>: Move...
1875 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
1876 * symmisc.c (print_objfile_statistics): Update.
1878 2014-02-26 Tom Tromey <tromey@redhat.com>
1880 * elfread.c (elf_read_minimal_symbols): New function, from
1882 (elf_symfile_read): Call it.
1884 2014-02-26 Tom Tromey <tromey@redhat.com>
1886 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
1887 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
1888 (lookup_minimal_symbol_solib_trampoline)
1889 (lookup_minimal_symbol_by_pc_section_1)
1890 (lookup_minimal_symbol_and_objfile): Update.
1891 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
1892 Don't allocate a minimal symbol if minsyms have already been read.
1893 (build_minimal_symbol_hash_tables): Update.
1894 (install_minimal_symbols): Do nothing if minsyms already read.
1895 Use the per-BFD obstack.
1896 (terminate_minimal_symbol_table): Use the per-BFD obstack.
1897 * objfiles.c (allocate_objfile): Call
1898 terminate_minimal_symbol_table later.
1899 (have_minimal_symbols): Update.
1900 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
1901 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
1902 Move from struct objfile.
1903 <minsyms_read>: New field.
1904 (struct objfile) <msymbols, minimal_symbol_count,
1905 msymbol_hash, msymbol_demangled_hash>: Move.
1906 (ALL_OBJFILE_MSYMBOLS): Update.
1907 * symfile.c (read_symbols): Set minsyms_read.
1908 (reread_symbols): Update.
1909 * symmisc.c (dump_objfile, dump_msymbols): Update.
1911 2014-02-26 Tom Tromey <tromey@redhat.com>
1913 * minsyms.c (msymbols_sort): Remove.
1914 * minsyms.h (msymbols_sort): Remove.
1915 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
1916 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
1917 * elfread.c (elf_symtab_read): Don't add section offsets.
1918 * xcoffread.c (record_minimal_symbol): Don't add section offset
1919 to minimal symbol address.
1920 * somread.c (text_offset, data_offset): Remove.
1921 (som_symtab_read): Don't add section offsets to minimal symbol
1923 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
1924 Don't add section offsets to minimal symbols.
1925 * coffread.c (coff_symtab_read): Don't add section offsets
1926 to minimal symbol addresses.
1927 * machoread.c (macho_symtab_add_minsym): Don't add section offset
1928 to minimal symbol addresses.
1929 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
1930 section offset to minimal symbol addresses.
1931 * mdebugread.c (parse_partial_symbols): Don't add section
1932 offset to minimal symbol addresses.
1933 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
1934 offset to minimal symbol addresses.
1936 2014-02-26 Tom Tromey <tromey@redhat.com>
1938 * ada-lang.c (ada_main_name): Update.
1939 (ada_add_standard_exceptions): Update.
1940 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
1941 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
1942 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
1943 * auxv.c (ld_so_xfer_auxv): Update.
1944 * avr-tdep.c (avr_scan_prologue): Update.
1945 * ax-gdb.c (gen_var_ref): Update.
1946 * blockframe.c (get_pc_function_start)
1947 (find_pc_partial_function_gnu_ifunc): Update.
1948 * breakpoint.c (create_overlay_event_breakpoint)
1949 (create_longjmp_master_breakpoint)
1950 (create_std_terminate_master_breakpoint)
1951 (create_exception_master_breakpoint): Update.
1952 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
1953 * c-valprint.c (c_val_print): Update.
1954 * coff-pe-read.c (add_pe_forwarded_sym): Update.
1955 * common/agent.c (agent_look_up_symbols): Update.
1956 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
1957 * dwarf2loc.c (call_site_to_target_addr): Update.
1958 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
1959 * elfread.c (elf_gnu_ifunc_record_cache)
1960 (elf_gnu_ifunc_resolve_by_got): Update.
1961 * findvar.c (default_read_var_value): Update.
1962 * frame.c (inside_main_func): Update.
1963 * frv-tdep.c (frv_frame_this_id): Update.
1964 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
1965 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
1967 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
1968 (hppa_hpux_find_dummy_bpaddr): Update.
1969 * hppa-tdep.c (hppa_symbol_address): Update.
1970 * infcmd.c (until_next_command): Update.
1971 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
1973 * linespec.c (minsym_found, add_minsym): Update.
1974 * linux-nat.c (get_signo): Update.
1975 * linux-thread-db.c (inferior_has_bug): Update.
1976 * m32c-tdep.c (m32c_return_value)
1977 (m32c_m16c_address_to_pointer): Update.
1978 * m32r-tdep.c (m32r_frame_this_id): Update.
1979 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
1980 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
1981 * maint.c (maintenance_translate_address): Update.
1982 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
1983 (frob_address): New function.
1984 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
1985 frob_address. Rename parameter to "pc_in".
1986 (compare_minimal_symbols, compact_minimal_symbols): Use raw
1988 (find_solib_trampoline_target, minimal_symbol_upper_bound):
1990 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
1991 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
1992 * objc-lang.c (find_objc_msgsend): Update.
1993 * objfiles.c (objfile_relocate1): Update.
1994 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
1995 * p-valprint.c (pascal_val_print): Update.
1996 * parse.c (write_exp_msymbol): Update.
1997 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
1998 (ppc_elfv2_skip_entrypoint): Update.
1999 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2000 * printcmd.c (build_address_symbolic, msym_info)
2001 (address_info): Update.
2002 * proc-service.c (ps_pglobal_lookup): Update.
2003 * psymtab.c (find_pc_sect_psymtab_closer)
2004 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
2005 Change msymbol parameter to bound_minimal_symbol.
2006 * ravenscar-thread.c (get_running_thread_id): Update.
2007 * remote.c (remote_check_symbols): Update.
2008 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
2010 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2011 * solib-dsbt.c (lm_base): Update.
2012 * solib-frv.c (lm_base, main_got): Update.
2013 * solib-irix.c (locate_base): Update.
2014 * solib-som.c (som_solib_create_inferior_hook)
2015 (link_map_start): Update.
2016 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
2017 * solib-svr4.c (elf_locate_base, enable_break): Update.
2018 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2019 (flush_ea_cache): Update.
2020 * stabsread.c (define_symbol, scan_file_globals): Update.
2021 * stack.c (find_frame_funname): Update.
2022 * symfile-debug.c (debug_qf_expand_symtabs_matching)
2023 (debug_qf_find_pc_sect_symtab): Update.
2024 * symfile.c (simple_read_overlay_table)
2025 (simple_overlay_update): Update.
2026 * symfile.h (struct quick_symbol_functions)
2027 <find_pc_sect_symtab>: Change type of msymbol to
2028 bound_minimal_symbol.
2029 * symmisc.c (dump_msymbols): Update.
2030 * symtab.c (find_pc_sect_symtab_via_partial)
2031 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
2032 (search_symbols, print_msymbol_info): Update.
2033 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
2034 (MSYMBOL_VALUE_ADDRESS): Redefine.
2035 (BMSYMBOL_VALUE_ADDRESS): New macro.
2036 * tracepoint.c (scope_info): Update.
2037 * tui/tui-disasm.c (tui_find_disassembly_address)
2038 (tui_get_begin_asm_address): Update.
2039 * valops.c (find_function_in_inferior): Update.
2040 * value.c (value_static_field, value_fn_field): Update.
2042 2014-02-26 Tom Tromey <tromey@redhat.com>
2044 * ada-lang.c (ada_update_initial_language): Update.
2045 (ada_main_name, ada_has_this_exception_support): Update.
2046 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
2047 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2048 * arm-tdep.c (arm_skip_stub): Update.
2049 * auxv.c (ld_so_xfer_auxv): Update.
2050 * avr-tdep.c (avr_scan_prologue): Update.
2051 * ax-gdb.c (gen_var_ref): Update.
2052 * breakpoint.c (struct breakpoint_objfile_data)
2053 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
2054 type to bound_minimal_symbol.
2055 (create_overlay_event_breakpoint)
2056 (create_longjmp_master_breakpoint)
2057 (create_std_terminate_master_breakpoint)
2058 (create_exception_master_breakpoint): Update.
2059 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2060 * c-exp.y (classify_name): Update.
2061 * coffread.c (coff_symfile_read): Update.
2062 * common/agent.c (agent_look_up_symbols): Update.
2063 * d-lang.c (d_main_name): Update.
2064 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
2065 * dec-thread.c (enable_dec_thread): Update.
2066 * dwarf2loc.c (call_site_to_target_addr): Update.
2067 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
2068 * eval.c (evaluate_subexp_standard): Update.
2069 * findvar.c (struct minsym_lookup_data) <result>: Change type
2070 to bound_minimal_symbol.
2072 (minsym_lookup_iterator_cb, default_read_var_value): Update.
2073 * frame.c (inside_main_func): Update.
2074 * frv-tdep.c (frv_frame_this_id): Update.
2075 * gcore.c (call_target_sbrk): Update.
2076 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2077 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2079 * go-lang.c (go_main_name): Update.
2080 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
2081 (hppa_hpux_find_import_stub_for_addr): Update.
2082 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
2083 Update. Change return type.
2084 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
2086 * jit.c (jit_breakpoint_re_set_internal): Update.
2087 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
2089 * linux-nat.c (get_signo): Update.
2090 * linux-thread-db.c (inferior_has_bug): Update
2091 * m32c-tdep.c (m32c_return_value)
2092 (m32c_m16c_address_to_pointer): Update.
2093 * m32r-tdep.c (m32r_frame_this_id): Update.
2094 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2095 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2096 * minsyms.c (lookup_minimal_symbol_internal): Rename to
2097 lookup_minimal_symbol. Change return type.
2098 (lookup_minimal_symbol): Remove.
2099 (lookup_bound_minimal_symbol): Update.
2100 (lookup_minimal_symbol_text): Change return type.
2101 (lookup_minimal_symbol_solib_trampoline): Change return type.
2102 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
2103 (lookup_minimal_symbol_solib_trampoline): Change return type.
2104 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2105 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2106 (value_nsstring, find_imps): Update.
2107 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2108 * p-lang.c (pascal_main_name): Update.
2109 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
2110 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2111 * proc-service.c (ps_pglobal_lookup): Update.
2112 * ravenscar-thread.c (get_running_thread_msymbol): Change
2114 (has_ravenscar_runtime, get_running_thread_id): Update.
2115 * remote.c (remote_check_symbols): Update.
2116 * sol-thread.c (ps_pglobal_lookup): Update.
2117 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2118 * solib-dsbt.c (lm_base): Update.
2119 * solib-frv.c (lm_base, frv_relocate_section_addresses):
2121 * solib-irix.c (locate_base): Update.
2122 * solib-som.c (som_solib_create_inferior_hook)
2123 (som_solib_desire_dynamic_linker_symbols, link_map_start):
2125 * solib-spu.c (spu_enable_break): Update.
2126 * solib-svr4.c (elf_locate_base, enable_break): Update.
2127 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2128 (flush_ea_cache): Update.
2129 * stabsread.c (define_symbol): Update.
2130 * symfile.c (simple_read_overlay_table): Update.
2131 * symtab.c (find_pc_sect_line): Update.
2132 * tracepoint.c (scope_info): Update.
2133 * tui-disasm.c (tui_get_begin_asm_address): Update.
2134 * value.c (value_static_field): Update.
2136 2014-02-26 Tom Tromey <tromey@redhat.com>
2138 * minsyms.c (prim_record_minimal_symbol_full): Use
2139 SET_MSYMBOL_VALUE_ADDRESS.
2140 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
2141 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
2142 SET_MSYMBOL_VALUE_ADDRESS.
2143 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2144 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
2146 2014-02-26 Tom Tromey <tromey@redhat.com>
2148 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
2149 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
2150 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
2151 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
2152 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
2153 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
2154 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
2155 * ada-lang.c (ada_main_name): Update.
2156 (ada_lookup_simple_minsym): Update.
2157 (ada_make_symbol_completion_list): Update.
2158 (ada_add_standard_exceptions): Update.
2159 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
2160 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2161 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
2162 * arm-tdep.c (skip_prologue_function): Update.
2163 (arm_skip_stack_protector, arm_skip_stub): Update.
2164 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
2165 (arm_wince_skip_main_prologue): Update.
2166 * auxv.c (ld_so_xfer_auxv): Update.
2167 * avr-tdep.c (avr_scan_prologue): Update.
2168 * ax-gdb.c (gen_var_ref): Update.
2169 * block.c (call_site_for_pc): Update.
2170 * blockframe.c (get_pc_function_start): Update.
2171 (find_pc_partial_function_gnu_ifunc): Update.
2172 * breakpoint.c (create_overlay_event_breakpoint): Update.
2173 (create_longjmp_master_breakpoint): Update.
2174 (create_std_terminate_master_breakpoint): Update.
2175 (create_exception_master_breakpoint): Update.
2176 (resolve_sal_pc): Update.
2177 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2178 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
2180 * c-valprint.c (c_val_print): Update.
2181 * coff-pe-read.c (add_pe_forwarded_sym): Update.
2182 * coffread.c (coff_symfile_read): Update.
2183 * common/agent.c (agent_look_up_symbols): Update.
2184 * dbxread.c (find_stab_function_addr): Update.
2185 (end_psymtab): Update.
2186 * dwarf2loc.c (call_site_to_target_addr): Update.
2187 (func_verify_no_selftailcall): Update.
2188 (tailcall_dump): Update.
2189 (call_site_find_chain_1): Update.
2190 (dwarf_expr_reg_to_entry_parameter): Update.
2191 * elfread.c (elf_gnu_ifunc_record_cache): Update.
2192 (elf_gnu_ifunc_resolve_by_got): Update.
2193 * f-valprint.c (info_common_command): Update.
2194 * findvar.c (read_var_value): Update.
2195 * frame.c (get_prev_frame_1): Update.
2196 (inside_main_func): Update.
2197 * frv-tdep.c (frv_skip_main_prologue): Update.
2198 (frv_frame_this_id): Update.
2199 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2200 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
2201 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
2202 (gnuv3_skip_trampoline): Update.
2203 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
2204 (hppa64_hpux_in_solib_call_trampoline): Update.
2205 (hppa_hpux_skip_trampoline_code): Update.
2206 (hppa64_hpux_search_dummy_call_sequence): Update.
2207 (hppa_hpux_find_import_stub_for_addr): Update.
2208 (hppa_hpux_find_dummy_bpaddr): Update.
2209 * hppa-tdep.c (hppa_symbol_address)
2210 (hppa_lookup_stub_minimal_symbol): Update.
2211 * i386-tdep.c (i386_skip_main_prologue): Update.
2212 (i386_pe_skip_trampoline_code): Update.
2213 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
2214 * infcall.c (get_function_name): Update.
2215 * infcmd.c (until_next_command): Update.
2216 * jit.c (jit_breakpoint_re_set_internal): Update.
2217 (jit_inferior_init): Update.
2218 * linespec.c (minsym_found): Update.
2219 (add_minsym): Update.
2220 * linux-fork.c (info_checkpoints_command): Update.
2221 * linux-nat.c (get_signo): Update.
2222 * linux-thread-db.c (inferior_has_bug): Update.
2223 * m32c-tdep.c (m32c_return_value): Update.
2224 (m32c_m16c_address_to_pointer): Update.
2225 (m32c_m16c_pointer_to_address): Update.
2226 * m32r-tdep.c (m32r_frame_this_id): Update.
2227 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2228 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2229 * maint.c (maintenance_translate_address): Update.
2230 * minsyms.c (add_minsym_to_hash_table): Update.
2231 (add_minsym_to_demangled_hash_table): Update.
2232 (msymbol_objfile): Update.
2233 (lookup_minimal_symbol): Update.
2234 (iterate_over_minimal_symbols): Update.
2235 (lookup_minimal_symbol_text): Update.
2236 (lookup_minimal_symbol_by_pc_name): Update.
2237 (lookup_minimal_symbol_solib_trampoline): Update.
2238 (lookup_minimal_symbol_by_pc_section_1): Update.
2239 (lookup_minimal_symbol_and_objfile): Update.
2240 (prim_record_minimal_symbol_full): Update.
2241 (compare_minimal_symbols): Update.
2242 (compact_minimal_symbols): Update.
2243 (build_minimal_symbol_hash_tables): Update.
2244 (install_minimal_symbols): Update.
2245 (terminate_minimal_symbol_table): Update.
2246 (find_solib_trampoline_target): Update.
2247 (minimal_symbol_upper_bound): Update.
2248 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2249 * mips-tdep.c (mips_stub_frame_sniffer): Update.
2250 (mips_skip_pic_trampoline_code): Update.
2251 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
2252 * objc-lang.c (selectors_info): Update.
2253 (classes_info): Update.
2254 (find_methods): Update.
2255 (find_imps): Update.
2256 (find_objc_msgsend): Update.
2257 * objfiles.c (objfile_relocate1): Update.
2258 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
2259 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2260 * p-valprint.c (pascal_val_print): Update.
2261 * parse.c (write_exp_msymbol): Update.
2262 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
2263 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
2264 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2265 * printcmd.c (build_address_symbolic): Update.
2267 (address_info): Update.
2268 * proc-service.c (ps_pglobal_lookup): Update.
2269 * psymtab.c (find_pc_sect_psymtab_closer): Update.
2270 (find_pc_sect_psymtab): Update.
2271 * python/py-framefilter.c (py_print_frame): Update.
2272 * ravenscar-thread.c (get_running_thread_id): Update.
2273 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
2275 * remote.c (remote_check_symbols): Update.
2276 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
2277 (rs6000_skip_trampoline_code): Update.
2278 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
2279 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2280 * solib-dsbt.c (lm_base): Update.
2281 * solib-frv.c (lm_base): Update.
2283 * solib-irix.c (locate_base): Update.
2284 * solib-som.c (som_solib_create_inferior_hook): Update.
2285 (som_solib_desire_dynamic_linker_symbols): Update.
2286 (link_map_start): Update.
2287 * solib-spu.c (spu_enable_break): Update.
2288 (ocl_enable_break): Update.
2289 * solib-svr4.c (elf_locate_base): Update.
2290 (enable_break): Update.
2291 * spu-tdep.c (spu_get_overlay_table): Update.
2292 (spu_catch_start): Update.
2293 (flush_ea_cache): Update.
2294 * stabsread.c (define_symbol): Update.
2295 (scan_file_globals): Update.
2296 * stack.c (find_frame_funname): Update.
2297 (frame_info): Update.
2298 * symfile.c (simple_read_overlay_table): Update.
2299 (simple_overlay_update): Update.
2300 * symmisc.c (dump_msymbols): Update.
2301 * symtab.c (fixup_section): Update.
2302 (find_pc_sect_line): Update.
2303 (skip_prologue_sal): Update.
2304 (search_symbols): Update.
2305 (print_msymbol_info): Update.
2306 (rbreak_command): Update.
2307 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
2308 (completion_list_objc_symbol): Update.
2309 (default_make_symbol_completion_list_break_on): Update.
2310 * tracepoint.c (scope_info): Update.
2311 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
2312 (tui_get_begin_asm_address): Update.
2313 * valops.c (find_function_in_inferior): Update.
2314 * value.c (value_static_field): Update.
2315 (value_fn_field): Update.
2317 2014-02-26 Tom Tromey <tromey@redhat.com>
2319 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
2320 bound minimal symbols. Move code that knows about minsym
2322 * minsyms.c (minimal_symbol_upper_bound): ... here. New
2324 * minsyms.h (minimal_symbol_upper_bound): Declare.
2325 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
2326 minimal_symbol_upper_bound.
2328 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2330 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
2331 Use the type's name if its basic type does not have a tag.
2333 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2335 * dwarf2read.c (read_subrange_type): Add comment.
2337 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2339 * dwarf2read.c (update_enumeration_type_from_children): New
2340 function, mostly extracted from process_structure_scope.
2341 (read_enumeration_type): Call update_enumeration_type_from_children.
2342 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
2343 and flag_flag_enum fields.
2345 2014-02-26 Pedro Alves <palves@redhat.com>
2347 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
2348 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
2349 to_xfer_partial method.
2351 2014-02-26 Pedro Alves <palves@redhat.com>
2353 * target.c (complete_target_initialization): Don't install
2354 default_xfer_partial as to_xfer_partial hook.
2356 (update_current_target): Don't INHERIT nor de_fault
2357 deprecated_xfer_memory. Delete de_fault macro.
2358 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
2359 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
2360 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
2363 2014-02-26 Pedro Alves <palves@redhat.com>
2365 * go32-nat.c (my_write_child): New function.
2366 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
2367 (go32_xfer_partial): New function.
2368 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
2369 Instead install a to_xfer_partial hook.
2371 2014-02-26 Pedro Alves <palves@redhat.com>
2373 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
2374 to_xfer_partial helper. Rewrite.
2375 (procfs_xfer_partial): New function.
2376 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
2377 Install a to_xfer_partial hook.
2379 2014-02-26 Pedro Alves <palves@redhat.com>
2381 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
2382 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
2383 (m32r_xfer_partial): New function.
2384 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
2385 Install a to_xfer_partial hook.
2387 2014-02-26 Pedro Alves <palves@redhat.com>
2389 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
2391 (mips_xfer_partial): New function.
2392 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
2393 hook. Install a to_xfer_partial hook.
2395 2014-02-26 Joel Brobecker <brobecker@adacore.com>
2397 * gdbtypes.h (create_array_type_with_stride): Add declaration.
2398 * gdbtypes.c (create_array_type_with_stride): New function,
2399 renaming create_array_type, but with an added parameter
2400 called "bit_stride".
2401 (create_array_type): Re-implement using
2402 create_array_type_with_stride.
2403 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
2404 and DW_AT_bit_stride attributes.
2406 2014-02-26 Pedro Alves <palves@redhat.com>
2408 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
2409 task-specific breakpoints.
2411 2014-02-25 Pedro Alves <palves@redhat.com>
2413 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
2414 handling of object == TARGET_OBJECT_UNWIND_TABLE.
2416 2014-02-25 Stan Shebs <stan@codesourcery.com>
2418 * defs.h: Annotate comments for Doxygen.
2420 2014-02-25 Tom Tromey <tromey@redhat.com>
2422 * target.h (target_ignore): Don't declare.
2423 * target.c (target_ignore): Remove.
2425 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2428 * auto-load.c (auto_load_objfile_script_1): Change filename to
2431 2014-02-25 Joel Brobecker <brobecker@adacore.com>
2433 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
2434 documentation. Adjust prototype to match the target_ops
2435 to_xfer_partial method. Adjust implementation accordingly.
2437 2014-02-25 Hui Zhu <hui@codesourcery.com>
2439 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
2442 2014-02-25 Kevin Buettner <kevinb@redhat.com>
2444 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
2445 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
2446 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
2447 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
2448 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
2449 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
2450 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
2451 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
2453 (rl78_register_type): Use a data pointer type for SP and
2454 new pseudo registers mentioned above. Use a 16 bit integer
2455 type for all other register pairs.
2456 (rl78_register_name, rl78_g10_register_name): Update for
2457 new pseudo registers.
2458 (rl78_pseudo_register_read): Likewise.
2459 (rl78_pseudo_register_write): Likewise.
2460 (rl78_dwarf_reg_to_regnum): Return register numbers representing
2461 to the newly added pseudo registers.
2463 2014-02-24 Doug Evans <dje@google.com>
2465 * value.c (record_latest_value): Fix comment.
2466 * printcmd.c (print_command_1): Remove code to handle -1 return from
2467 record_latest_value.
2469 2014-02-24 Pedro Alves <palves@redhat.com>
2471 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
2472 deprecated_xfer_memory hook.
2473 (procfs_xfer_partial): Call procfs_xfer_memory instead
2474 of the deprecated_xfer_memory target hook.
2475 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
2478 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
2480 * windows-nat.c (windows_xfer_shared_libraries): Return
2481 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
2482 requested object is TARGET_OBJECT_LIBRARIES.
2484 2014-02-24 Yao Qi <yao@codesourcery.com>
2486 * target.h (enum target_xfer_status)
2487 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
2488 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
2490 * corefile.c (memory_error_message): User updated.
2491 * exec.c (section_table_read_available_memory): Likewise.
2492 * record-btrace.c (record_btrace_xfer_partial): Likewise.
2493 * target.c (target_xfer_status_to_string): Likewise.
2494 (raw_memory_xfer_partial): Likewise.
2495 (memory_xfer_partial_1, target_xfer_partial): Likewise.
2496 * valops.c (read_value_memory): Likewise.
2497 * exec.h: Update comments.
2499 2014-02-24 Yao Qi <yao@codesourcery.com>
2501 * target.c (target_xfer_status_to_string): Rename argument err
2503 * target.h (target_xfer_status_to_string): Update declaration.
2504 Replace target_xfer_error_to_string with
2505 target_xfer_status_to_string in comment.
2507 2014-02-24 Yao Qi <yao@codesourcery.com>
2509 * mips-linux-nat.c (super_close): Update its type.
2510 (mips_linux_close): Pass 'self' to super_close.
2512 2014-02-24 Yao Qi <yao@codesourcery.com>
2514 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
2515 * corefile.c (read_memory): Adjusted.
2516 * target.c (target_write_with_progress): Adjusted.
2518 2014-02-23 Yao Qi <yao@codesourcery.com>
2522 2013-10-25 Yao Qi <yao@codesourcery.com>
2524 * remote.c (remote_traceframe_info): Return early if
2525 traceframe is not selected.
2527 2013-07-19 Yao Qi <yao@codesourcery.com>
2529 * target.c (update_current_target): Change the default action
2530 of 'to_traceframe_info' from tcomplain to return_zero.
2531 * target.h (struct target_ops) <to_traceframe_info>: Add more
2534 2014-02-23 Yao Qi <yao@codesourcery.com>
2536 * valops.c (read_value_memory): Rewrite it. Call
2537 target_xfer_partial in a loop.
2538 * exec.h (section_table_available_memory): Remove declaration.
2539 Move comments to ...
2540 * exec.c (section_table_available_memory): ... here. Make it
2543 2014-02-23 Yao Qi <yao@codesourcery.com>
2545 * exec.c (section_table_read_available_memory): New function.
2546 * exec.h (section_table_read_available_memory): Declare.
2547 * ctf.c (ctf_xfer_partial): Call
2548 section_table_read_available_memory.
2549 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2551 2014-02-23 Yao Qi <yao@codesourcery.com>
2553 * ctf.c (ctf_xfer_partial): Move code to ...
2554 * exec.c (exec_read_partial_read_only): ... it. New function.
2555 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2556 * tracefile.c: Include "exec.h".
2557 * exec.h (exec_read_partial_read_only): Declare.
2559 2014-02-23 Yao Qi <yao@codesourcery.com>
2561 * tracefile-tfile.c (tfile_has_all_memory): Remove.
2562 (tfile_has_memory): Remove.
2563 (init_tfile_ops): Don't set fields to_has_all_memory and
2564 to_has_memory of tfile_ops.
2565 * tracefile.c (tracefile_has_all_memory): New function.
2566 (tracefile_has_memory): New function.
2567 (init_tracefile_ops): Initialize fields to_has_all_memory and
2568 to_has_memory of 'ops'.
2570 2014-02-23 Yao Qi <yao@codesourcery.com>
2572 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
2573 (ctf_thread_alive, ctf_get_trace_status): Remove.
2574 (init_ctf_ops): Don't set some fields of ctf_ops. Call
2576 * tracefile-tfile.c (tfile_get_trace_status): Remove.
2577 (tfile_has_stack, tfile_has_registers): Remove.
2578 (tfile_thread_alive): Remove.
2579 (init_tfile_ops): Don't set some fields of tfile_ops. Call
2581 * tracefile.c (tracefile_has_stack): New function.
2582 (tracefile_has_registers): New function.
2583 (tracefile_thread_alive): New function.
2584 (tracefile_get_trace_status): New function.
2585 (init_tracefile_ops): New function.
2586 * tracefile.h (init_tracefile_ops): Declare.
2588 2014-02-23 Yao Qi <yao@codesourcery.com>
2590 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
2591 (O_LARGEFILE): Likewise.
2592 (tfile_ops): Likewise.
2593 (TRACE_HEADER_SIZE): Likewise.
2594 (trace_fd, trace_frames_offset, cur_offset): Likewise.
2595 (cur_data_size): Likewise.
2596 (tfile_read, tfile_open, tfile_interp_line): Likewise.
2597 (tfile_close, tfile_files_info): Likewise.
2598 (tfile_get_trace_status): Likewise.
2599 (tfile_get_tracepoint_status): Likewise.
2600 (tfile_get_traceframe_address): Likewise.
2601 (tfile_trace_find, match_blocktype): Likewise.
2602 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
2603 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
2604 (tfile_get_trace_state_variable_value): Likewise.
2605 (tfile_has_all_memory, tfile_has_memory): Likewise.
2606 (tfile_has_stack, tfile_has_registers): Likewise.
2607 (tfile_thread_alive, build_traceframe_info): Likewise.
2608 (tfile_traceframe_info, init_tfile_ops): Likewise.
2609 (_initialize_tracepoint): Don't call init_tfile_ops
2610 and add_target_with_completer.
2611 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
2612 exec.h, completer.h and filenames.h.
2613 (_initialize_tracefile_tfile): New function.
2615 2014-02-23 Yao Qi <yao@codesourcery.com>
2617 * Makefile.in (REMOTE_OBS): Append tracefile.o and
2619 (HFILES_NO_SRCDIR): Add tracefile.h.
2620 * ctf.c: Include "tracefile.h".
2621 * tracefile.h: New file.
2622 * tracefile.c: New file
2623 * tracefile-tfile.c: New file.
2624 * tracepoint.c: Include "tracefile.h".
2625 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
2626 (stop_reason_names): Add const.
2627 (trace_file_writer_xfree): Move it to tracefile.c.
2628 (trace_save, trace_save_command, trace_save_tfile): Likewise.
2629 (trace_save_ctf): Likewise.
2630 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
2631 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
2632 (tfile_write_header, tfile_write_regblock_type): Likewise.
2633 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
2634 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
2635 (tfile_write_raw_data, tfile_end): Likewise.
2636 (tfile_trace_file_writer_new): Likewise.
2637 (free_uploaded_tp): Make it extern.
2638 (free_uploaded_tsv): Make it extern.
2639 (_initialize_tracepoint): Move code to register command 'tsave'
2641 * tracepoint.h (stop_reason_names): Declare.
2642 (struct trace_frame_write_ops): Move it to tracefile.h.
2643 (struct trace_file_write_ops): Likewise.
2644 (struct trace_file_writer): Likewise.
2645 (free_uploaded_tsvs, free_uploaded_tps): Declare.
2647 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2650 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
2652 (get_cores_used_by_process): New parameter num_cores, use it.
2653 (linux_xfer_osdata_processes): Pass num_cores to it.
2654 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
2657 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
2659 * target.c (memory_xfer_partial): Fix length arg in call to
2660 breakpoint_xfer_memory.
2662 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
2665 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
2666 number comes after the + or - signs. Adjust length of register
2667 name to be extracted.
2669 2014-02-20 Tom Tromey <tromey@redhat.com>
2671 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
2672 (ada_varobj_ops): Mark "extern".
2674 2014-02-20 Tom Tromey <tromey@redhat.com>
2676 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
2678 2014-02-20 Doug Evans <xdje42@gmail.com>
2680 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
2681 All callers updated.
2682 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
2683 All callers updated.
2684 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
2685 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
2687 2014-02-20 lin zuojian <manjian2006@gmail.com>
2688 Joel Brobecker <brobecker@adacore.com>
2689 Doug Evans <xdje42@gmail.com>
2692 * dwarf2read.c (struct die_info): New member in_process.
2693 (reset_die_in_process): New function.
2694 (process_die): Set it at the start, reset when returning.
2695 (inherit_abstract_dies): Only call process_die if origin_child_die
2696 not already being processed.
2698 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2700 * windows-nat.c (handle_unload_dll): Add function documentation.
2701 (do_initial_windows_stuff): Add comment explaining why we wait
2702 until after inferior initialization has finished before
2703 processing all DLLs.
2705 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2707 * windows-nat.c (get_module_name): Delete.
2708 (windows_get_exec_module_filename): New function, mostly
2709 inspired from get_module_name.
2710 (windows_pid_to_exec_file): Replace call to get_module_name
2711 by call to windows_get_exec_module_filename.
2713 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2715 * windows-nat.c (handle_load_dll): Rewrite this function's
2716 introductory comment. Remove code using get_module_name
2717 to get the DLL's name.
2719 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2721 * windows-nat.c (get_windows_debug_event): Ignore
2722 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
2723 if windows_initialization_done == 0.
2724 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
2725 Adjust implementation to always load all DLLs.
2726 (do_initial_windows_stuff): Replace call to
2727 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
2729 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2731 * windows-nat.c (_initialize_windows_nat): Deprecate the
2732 "dll-symbols" command. Turn the "add-shared-symbol-files"
2733 and "assf" aliases into commands, and deprecate them as well.
2734 * NEWS: Add entry explaining that "dll-symbols" and its two
2735 aliases are now deprecated.
2737 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2739 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
2740 new-line in debug string. Remove trailing spaces.
2742 2014-02-19 Stan Shebs <stan@codesourcery.com>
2744 * darwin-nat.c (darwin_xfer_partial): Fix return type.
2746 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
2748 * NEWS: Add entry for the new feature
2749 * python/py-value.c (valpy_binop): Call value_x_binop for struct
2752 2014-02-19 Stan Shebs <stan@codesourcery.com>
2754 * MAINTAINERS: List Yao Qi as nios2 maintainer.
2756 2014-02-19 Pedro Alves <palves@redhat.com>
2758 * common/ptid.h (struct ptid): Mention that process_stratum
2759 targets should prefer ptid.lwp.
2761 2014-02-19 Pedro Alves <palves@redhat.com>
2763 * remote.c (remote_thread_alive, write_ptid, read_ptid)
2764 (read_ptid, remote_newthread_step, remote_threads_extra_info)
2765 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
2766 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
2767 store remote thread ids rather than ptid.tid.
2768 (_initialize_remote): Adjust.
2770 2014-02-19 Tom Tromey <tromey@redhat.com>
2772 * target.c (target_get_unwinder): Rewrite.
2773 (target_get_tailcall_unwinder): Rewrite.
2774 * record-btrace.c (record_btrace_to_get_unwinder): New function.
2775 (record_btrace_to_get_tailcall_unwinder): New function.
2776 (init_record_btrace_ops): Update.
2777 * target.h (struct target_ops) <to_get_unwinder,
2778 to_get_tailcall_unwinder>: Now function pointers. Use
2779 TARGET_DEFAULT_RETURN.
2781 2014-02-19 Tom Tromey <tromey@redhat.com>
2783 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
2785 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
2787 2014-02-19 Tom Tromey <tromey@redhat.com>
2789 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
2791 * target-delegates.c: Rebuild.
2792 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
2793 TARGET_DEFAULT_FUNC.
2794 * target.c (default_target_decr_pc_after_break): Rename from
2795 forward_target_decr_pc_after_break. Simplify.
2796 (target_decr_pc_after_break): Rely on delegation.
2798 2014-02-19 Tom Tromey <tromey@redhat.com>
2800 * target.c (update_current_target): Do not INHERIT to_doc or
2801 to_magic. Do not de_fault to_open or to_close.
2803 2014-02-19 Tom Tromey <tromey@redhat.com>
2805 * gcore.h (objfile_find_memory_regions): Declare.
2806 * gcore.c (objfile_find_memory_regions): No longer static. Add
2808 (_initialize_gcore): Don't call exec_set_find_memory_regions.
2809 * exec.c: Include gcore.h.
2810 (exec_set_find_memory_regions): Remove.
2811 (exec_find_memory_regions): Remove.
2812 (exec_do_find_memory_regions): Remove.
2813 (init_exec_ops): Update.
2814 * defs.h (exec_set_find_memory_regions): Remove.
2816 2014-02-19 Tom Tromey <tromey@redhat.com>
2818 * target-delegates.c: Rebuild.
2819 * target.h (struct target_ops) <to_extra_thread_info,
2820 to_thread_name, to_pid_to_exec_file, to_get_section_table,
2821 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
2822 not 0, in TARGET_DEFAULT_RETURN.
2824 2014-02-19 Tom Tromey <tromey@redhat.com>
2826 * target.c (complete_target_initialization): Remove casts. Use
2827 return_zero_has_execution.
2828 (return_zero): Add "ignore" argument.
2829 (return_zero_has_execution): New function.
2830 (init_dummy_target): Remove casts. Use
2831 return_zero_has_execution.
2833 2014-02-19 Tom Tromey <tromey@redhat.com>
2835 * target.c (update_current_target): Update comments. Do not
2838 2014-02-19 Tom Tromey <tromey@redhat.com>
2840 * arm-linux-nat.c (arm_linux_read_description): Delegate when
2842 * corelow.c (core_read_description): Delegate when needed.
2843 * remote.c (remote_read_description): Delegate when needed.
2844 * target-delegates.c: Rebuild.
2845 * target.c (target_read_description): Rewrite.
2846 * target.h (struct target_ops) <to_read_description>: Update
2847 comment. Use TARGET_DEFAULT_RETURN.
2849 2014-02-19 Tom Tromey <tromey@redhat.com>
2851 * target-delegates.c: Rebuild.
2852 * target.c (update_current_target): Don't inherit or default
2854 (find_default_run_target): Check against delegate_can_run.
2855 * target.h (struct target_ops) <to_can_run>: Use
2856 TARGET_DEFAULT_RETURN.
2858 2014-02-19 Tom Tromey <tromey@redhat.com>
2860 * target-delegates.c: Rebuild.
2861 * target.c (target_disconnect): Unconditionally delegate.
2862 * target.h (struct target_ops) <to_disconnect>: Use
2863 TARGET_DEFAULT_NORETURN.
2865 2014-02-19 Tom Tromey <tromey@redhat.com>
2867 * record.c (record_stop): Unconditionally delegate.
2868 * target-delegates.c: Rebuild.
2869 * target.c (target_stop_recording): Unconditionally delegate.
2870 * target.h (struct target_ops) <to_stop_recording>: Use
2871 TARGET_DEFAULT_IGNORE.
2873 2014-02-19 Tom Tromey <tromey@redhat.com>
2875 * target-delegates.c: Rebuild.
2876 * target.c (target_enable_btrace): Unconditionally delegate.
2877 * target.h (struct target_ops) <to_enable_btrace>: Use
2878 TARGET_DEFAULT_NORETURN.
2880 2014-02-19 Tom Tromey <tromey@redhat.com>
2882 * target-delegates.c: Rebuild.
2883 * target.c (target_read_btrace): Unconditionally delegate.
2884 * target.h (struct target_ops) <to_read_btrace>: Use
2885 TARGET_DEFAULT_NORETURN.
2887 2014-02-19 Tom Tromey <tromey@redhat.com>
2889 * target-delegates.c: Rebuild.
2890 * target.c (target_teardown_btrace): Unconditionally delegate.
2891 * target.h (struct target_ops) <to_teardown_btrace>: Use
2892 TARGET_DEFAULT_NORETURN.
2894 2014-02-19 Tom Tromey <tromey@redhat.com>
2896 * target-delegates.c: Rebuild.
2897 * target.c (target_disable_btrace): Unconditionally delegate.
2898 * target.h (struct target_ops) <to_disable_btrace>: Use
2899 TARGET_DEFAULT_NORETURN.
2901 2014-02-19 Tom Tromey <tromey@redhat.com>
2903 * target-delegates.c: Rebuild.
2904 * target.c (default_search_memory): New function.
2905 (simple_search_memory): Update comment.
2906 (target_search_memory): Unconditionally delegate.
2907 * target.h (struct target_ops) <to_search_memory>: Use
2908 TARGET_DEFAULT_FUNC.
2910 2014-02-19 Tom Tromey <tromey@redhat.com>
2912 * auxv.c (default_auxv_parse): No longer static.
2913 (target_auxv_parse): Unconditionally delegate.
2914 * auxv.h (default_auxv_parse): Declare.
2915 * target-delegates.c: Rebuild.
2916 * target.c: Include auxv.h.
2917 * target.h (struct target_ops) <to_auxv_parse>: Use
2918 TARGET_DEFAULT_FUNC.
2920 2014-02-19 Tom Tromey <tromey@redhat.com>
2922 * target-delegates.c: Rebuild.
2923 * target.c (target_memory_map): Unconditionally delegate.
2924 * target.h (struct target_ops) <to_memory_map>: Use
2925 TARGET_DEFAULT_RETURN.
2927 2014-02-19 Tom Tromey <tromey@redhat.com>
2929 * target-delegates.c: Rebuild.
2930 * target.c (target_thread_alive): Unconditionally delegate.
2931 * target.h (struct target_ops) <to_thread_alive>: Use
2932 TARGET_DEFAULT_RETURN.
2934 2014-02-19 Tom Tromey <tromey@redhat.com>
2936 * target-delegates.c: Rebuild.
2937 * target.c (target_save_record): Unconditionally delegate.
2938 * target.h (struct target_ops) <to_save_record>: Use
2939 TARGET_DEFAULT_NORETURN.
2941 2014-02-19 Tom Tromey <tromey@redhat.com>
2943 * target-delegates.c: Rebuild.
2944 * target.c (target_delete_record): Unconditionally delegate.
2945 * target.h (struct target_ops) <to_delete_record>: Use
2946 TARGET_DEFAULT_NORETURN.
2948 2014-02-19 Tom Tromey <tromey@redhat.com>
2950 * target-delegates.c: Rebuild.
2951 * target.c (target_record_is_replaying): Unconditionally
2953 * target.h (struct target_ops) <to_record_is_replaying>: Use
2954 TARGET_DEFAULT_RETURN.
2956 2014-02-19 Tom Tromey <tromey@redhat.com>
2958 * target-delegates.c: Rebuild.
2959 * target.c (target_goto_record_begin): Unconditionally delegate.
2960 * target.h (struct target_ops) <to_goto_record_begin>: Use
2961 TARGET_DEFAULT_NORETURN.
2963 2014-02-19 Tom Tromey <tromey@redhat.com>
2965 * target-delegates.c: Rebuild.
2966 * target.c (target_goto_record_end): Unconditionally delegate.
2967 * target.h (struct target_ops) <to_goto_record_end>: Use
2968 TARGET_DEFAULT_NORETURN.
2970 2014-02-19 Tom Tromey <tromey@redhat.com>
2972 * target-delegates.c: Rebuild.
2973 * target.c (target_goto_record): Unconditionally delegate.
2974 * target.h (struct target_ops) <to_goto_record>: Use
2975 TARGET_DEFAULT_NORETURN.
2977 2014-02-19 Tom Tromey <tromey@redhat.com>
2979 * target-delegates.c: Rebuild.
2980 * target.c (target_insn_history): Unconditionally delegate.
2981 * target.h (struct target_ops) <to_insn_history>: Use
2982 TARGET_DEFAULT_NORETURN.
2984 2014-02-19 Tom Tromey <tromey@redhat.com>
2986 * target-delegates.c: Rebuild.
2987 * target.c (target_insn_history_from): Unconditionally delegate.
2988 * target.h (struct target_ops) <to_insn_history_from>: Use
2989 TARGET_DEFAULT_NORETURN.
2991 2014-02-19 Tom Tromey <tromey@redhat.com>
2993 * target-delegates.c: Rebuild.
2994 * target.c (target_insn_history_range): Unconditionally delegate.
2995 * target.h (struct target_ops) <to_insn_history_range>: Use
2996 TARGET_DEFAULT_NORETURN.
2998 2014-02-19 Tom Tromey <tromey@redhat.com>
3000 * target-delegates.c: Rebuild.
3001 * target.c (target_call_history): Unconditionally delegate.
3002 * target.h (struct target_ops) <to_call_history>: Use
3003 TARGET_DEFAULT_NORETURN.
3005 2014-02-19 Tom Tromey <tromey@redhat.com>
3007 * target-delegates.c: Rebuild.
3008 * target.c (target_call_history_from): Unconditionally delegate.
3009 * target.h (struct target_ops) <to_call_history_from>: Use
3010 TARGET_DEFAULT_NORETURN.
3012 2014-02-19 Tom Tromey <tromey@redhat.com>
3014 * target-delegates.c: Rebuild.
3015 * target.c (target_call_history_range): Unconditionally delegate.
3016 * target.h (struct target_ops) <to_call_history_range>: Use
3017 TARGET_DEFAULT_NORETURN.
3019 2014-02-19 Tom Tromey <tromey@redhat.com>
3021 * target-delegates.c: Rebuild.
3022 * target.c (target_verify_memory): Unconditionally delegate.
3023 * target.h (struct target_ops) <to_verify_memory>: Use
3024 TARGET_DEFAULT_NORETURN.
3026 2014-02-19 Tom Tromey <tromey@redhat.com>
3028 * target-delegates.c: Rebuild.
3029 * target.c (target_core_of_thread): Unconditionally delegate.
3030 * target.h (struct target_ops) <to_core_of_thread>: Use
3031 TARGET_DEFAULT_RETURN.
3033 2014-02-19 Tom Tromey <tromey@redhat.com>
3035 * target-delegates.c: Rebuild.
3036 * target.c (target_flash_done): Unconditionally delegate.
3037 * target.h (struct target_ops) <to_flash_done>: Use
3038 TARGET_DEFAULT_NORETURN.
3040 2014-02-19 Tom Tromey <tromey@redhat.com>
3042 * target-delegates.c: Rebuild.
3043 * target.c (target_flash_erase): Unconditionally delegate.
3044 * target.h (struct target_ops) <to_flash_erase>: Use
3045 TARGET_DEFAULT_NORETURN.
3047 2014-02-19 Tom Tromey <tromey@redhat.com>
3049 * target-delegates.c: Rebuild.
3050 * target.c (target_get_section_table): Unconditionally delegate.
3051 * target.h (struct target_ops) <to_get_section_table>: Use
3052 TARGET_DEFAULT_RETURN.
3054 2014-02-19 Tom Tromey <tromey@redhat.com>
3056 * target-delegates.c: Rebuild.
3057 * target.c (target_pid_to_str): Unconditionally delegate.
3058 (init_dummy_target): Don't initialize to_pid_to_str.
3059 (default_pid_to_str): Rename from dummy_pid_to_str.
3060 * target.h (struct target_ops) <to_pid_to_str>: Use
3061 TARGET_DEFAULT_FUNC.
3063 2014-02-19 Tom Tromey <tromey@redhat.com>
3065 * target-delegates.c: Rebuild.
3066 * target.c (target_find_new_threads): Unconditionally delegate.
3067 * target.h (struct target_ops) <to_find_new_threads>: Use
3068 TARGET_DEFAULT_RETURN.
3070 2014-02-19 Tom Tromey <tromey@redhat.com>
3072 * target-delegates.c: Rebuild.
3073 * target.c (target_program_signals): Unconditionally delegate.
3074 * target.h (struct target_ops) <to_program_signals>: Use
3075 TARGET_DEFAULT_IGNORE.
3077 2014-02-19 Tom Tromey <tromey@redhat.com>
3079 * target-delegates.c: Rebuild.
3080 * target.c (target_pass_signals): Unconditionally delegate.
3081 * target.h (struct target_ops) <to_pass_signals>: Use
3082 TARGET_DEFAULT_IGNORE.
3084 2014-02-19 Tom Tromey <tromey@redhat.com>
3086 * target-delegates.c: Rebuild.
3087 * target.c (default_mourn_inferior): New function.
3088 (target_mourn_inferior): Unconditionally delegate.
3089 * target.h (struct target_ops) <to_mourn_inferior>: Use
3090 TARGET_DEFAULT_FUNC.
3092 2014-02-19 Tom Tromey <tromey@redhat.com>
3094 * target-delegates.c: Rebuild.
3095 * target.c (default_follow_fork): New function.
3096 (target_follow_fork): Unconditionally delegate.
3097 * target.h (struct target_ops) <to_follow_fork>: Use
3098 TARGET_DEFAULT_FUNC.
3100 2014-02-19 Tom Tromey <tromey@redhat.com>
3102 * target-delegates.c: Rebuild.
3103 * target.c (target_kill): Unconditionally delegate.
3104 * target.h (struct target_ops) <to_kill>: Use
3105 TARGET_DEFAULT_NORETURN.
3107 2014-02-19 Tom Tromey <tromey@redhat.com>
3109 * target-delegates.c: Rebuild.
3110 * target.c (target_masked_watch_num_registers): Unconditionally
3112 * target.h (struct target_ops) <to_masked_watch_num_registers>:
3113 Use TARGET_DEFAULT_RETURN.
3115 2014-02-19 Tom Tromey <tromey@redhat.com>
3117 * target-delegates.c: Rebuild.
3118 * target.c (target_remove_mask_watchpoint): Unconditionally
3120 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
3121 TARGET_DEFAULT_RETURN.
3123 2014-02-19 Tom Tromey <tromey@redhat.com>
3125 * target-delegates.c: Rebuild.
3126 * target.c (target_insert_mask_watchpoint): Unconditionally
3128 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
3129 TARGET_DEFAULT_RETURN.
3131 2014-02-19 Tom Tromey <tromey@redhat.com>
3133 * target-delegates.c: Rebuild.
3134 * target.c (target_ranged_break_num_registers): Unconditionally
3136 * target.h (struct target_ops) <to_ranged_break_num_registers>:
3137 Use TARGET_DEFAULT_RETURN.
3139 2014-02-19 Tom Tromey <tromey@redhat.com>
3141 * target-delegates.c: Rebuild.
3142 * target.c (target_fetch_registers): Unconditionally delegate.
3143 * target.h (struct target_ops) <to_fetch_registers>: Use
3144 TARGET_DEFAULT_NORETURN.
3146 2014-02-19 Tom Tromey <tromey@redhat.com>
3148 * target-delegates.c: Rebuild.
3149 * target.c (update_current_target): Don't inherit or default
3151 * target.h (struct target_ops) <to_stop>: Use
3152 TARGET_DEFAULT_IGNORE.
3154 2014-02-19 Tom Tromey <tromey@redhat.com>
3156 * target-delegates.c: Rebuild.
3157 * target.c (update_current_target): Don't inherit or default
3158 to_can_run_breakpoint_commands.
3159 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
3160 Use TARGET_DEFAULT_RETURN.
3162 2014-02-19 Tom Tromey <tromey@redhat.com>
3164 * target-delegates.c: Rebuild.
3165 * target.c (update_current_target): Don't inherit or default
3166 to_supports_evaluation_of_breakpoint_conditions.
3167 * target.h (struct target_ops)
3168 <to_supports_evaluation_of_breakpoint_conditions>: Use
3169 TARGET_DEFAULT_RETURN.
3171 2014-02-19 Tom Tromey <tromey@redhat.com>
3173 * target-delegates.c: Rebuild.
3174 * target.c (update_current_target): Don't inherit or default
3175 to_augmented_libraries_svr4_read.
3176 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
3177 Use TARGET_DEFAULT_RETURN.
3179 2014-02-19 Tom Tromey <tromey@redhat.com>
3181 * target-delegates.c: Rebuild.
3182 * target.c (update_current_target): Don't inherit or default
3184 * target.h (struct target_ops) <to_can_use_agent>: Use
3185 TARGET_DEFAULT_RETURN.
3187 2014-02-19 Tom Tromey <tromey@redhat.com>
3189 * target-delegates.c: Rebuild.
3190 * target.c (update_current_target): Don't inherit or default
3192 * target.h (struct target_ops) <to_use_agent>: Use
3193 TARGET_DEFAULT_NORETURN.
3195 2014-02-19 Tom Tromey <tromey@redhat.com>
3197 * target-delegates.c: Rebuild.
3198 * target.c (update_current_target): Don't inherit or default
3200 (return_null): Remove.
3201 * target.h (struct target_ops) <to_traceframe_info>: Use
3202 TARGET_DEFAULT_RETURN.
3204 2014-02-19 Tom Tromey <tromey@redhat.com>
3206 * target-delegates.c: Rebuild.
3207 * target.c (update_current_target): Don't inherit or default
3208 to_static_tracepoint_markers_by_strid.
3209 * target.h (struct target_ops)
3210 <to_static_tracepoint_markers_by_strid>: Use
3211 TARGET_DEFAULT_NORETURN.
3213 2014-02-19 Tom Tromey <tromey@redhat.com>
3215 * target-delegates.c: Rebuild.
3216 * target.c (update_current_target): Don't inherit or default
3217 to_static_tracepoint_marker_at.
3218 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
3219 Use TARGET_DEFAULT_RETURN.
3221 2014-02-19 Tom Tromey <tromey@redhat.com>
3223 * target-delegates.c: Rebuild.
3224 * target.c (update_current_target): Don't inherit or default
3226 * target.h (struct target_ops) <to_set_permissions>: Use
3227 TARGET_DEFAULT_IGNORE.
3229 2014-02-19 Tom Tromey <tromey@redhat.com>
3231 * target-delegates.c: Rebuild.
3232 * target.c (update_current_target): Don't inherit or default
3234 * target.h (struct target_ops) <to_get_tib_address>: Use
3235 TARGET_DEFAULT_NORETURN.
3237 2014-02-19 Tom Tromey <tromey@redhat.com>
3239 * target-delegates.c: Rebuild.
3240 * target.c (update_current_target): Don't inherit or default
3242 * target.h (struct target_ops) <to_set_trace_notes>: Use
3243 TARGET_DEFAULT_RETURN.
3245 2014-02-19 Tom Tromey <tromey@redhat.com>
3247 * target-delegates.c: Rebuild.
3248 * target.c (update_current_target): Don't initialize
3249 to_set_trace_buffer_size.
3250 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
3251 TARGET_DEFAULT_IGNORE.
3253 2014-02-19 Tom Tromey <tromey@redhat.com>
3255 * target-delegates.c: Rebuild.
3256 * target.c (update_current_target): Don't inherit or default
3257 to_set_circular_trace_buffer.
3258 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
3259 TARGET_DEFAULT_IGNORE.
3261 2014-02-19 Tom Tromey <tromey@redhat.com>
3263 * target-delegates.c: Rebuild.
3264 * target.c (update_current_target): Don't inherit or default
3265 to_set_disconnected_tracing.
3266 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
3267 TARGET_DEFAULT_IGNORE.
3269 2014-02-19 Tom Tromey <tromey@redhat.com>
3271 * target-delegates.c: Rebuild.
3272 * target.c (update_current_target): Don't inherit or default
3273 to_get_min_fast_tracepoint_insn_len.
3274 (return_minus_one): Remove.
3275 * target.h (struct target_ops)
3276 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
3278 2014-02-19 Tom Tromey <tromey@redhat.com>
3280 * target-delegates.c: Rebuild.
3281 * target.c (update_current_target): Don't inherit or default
3282 to_get_raw_trace_data.
3283 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
3284 TARGET_DEFAULT_NORETURN.
3286 2014-02-19 Tom Tromey <tromey@redhat.com>
3288 * target-delegates.c: Rebuild.
3289 * target.c (update_current_target): Don't inherit or default
3290 to_upload_trace_state_variables.
3291 * target.h (struct target_ops) <to_upload_trace_state_variables>:
3292 Use TARGET_DEFAULT_RETURN.
3294 2014-02-19 Tom Tromey <tromey@redhat.com>
3296 * target-delegates.c: Rebuild.
3297 * target.c (update_current_target): Don't inherit or default
3298 to_upload_tracepoints.
3299 * target.h (struct target_ops) <to_upload_tracepoints>: Use
3300 TARGET_DEFAULT_RETURN.
3302 2014-02-19 Tom Tromey <tromey@redhat.com>
3304 * target-delegates.c: Rebuild.
3305 * target.c (update_current_target): Don't inherit or default
3307 * target.h (struct target_ops) <to_save_trace_data>: Use
3308 TARGET_DEFAULT_NORETURN.
3310 2014-02-19 Tom Tromey <tromey@redhat.com>
3312 * target-delegates.c: Rebuild.
3313 * target.c (update_current_target): Don't inherit or default
3314 to_get_trace_state_variable_value.
3315 * target.h (struct target_ops)
3316 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
3318 2014-02-19 Tom Tromey <tromey@redhat.com>
3320 * target-delegates.c: Rebuild.
3321 * target.c (update_current_target): Don't inherit or default
3323 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
3325 2014-02-19 Tom Tromey <tromey@redhat.com>
3327 * target-delegates.c: Rebuild.
3328 * target.c (update_current_target): Don't inherit or default
3330 * target.h (struct target_ops) <to_trace_stop>: Use
3331 TARGET_DEFAULT_NORETURN.
3333 2014-02-19 Tom Tromey <tromey@redhat.com>
3335 * target-delegates.c: Rebuild.
3336 * target.c (update_current_target): Don't inherit or default
3337 to_get_tracepoint_status.
3338 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
3339 TARGET_DEFAULT_NORETURN.
3341 2014-02-19 Tom Tromey <tromey@redhat.com>
3343 * target-delegates.c: Rebuild.
3344 * target.c (update_current_target): Don't inherit or default
3345 to_get_trace_status.
3346 * target.h (struct target_ops) <to_get_trace_status>: Use
3347 TARGET_DEFAULT_RETURN.
3349 2014-02-19 Tom Tromey <tromey@redhat.com>
3351 * target-delegates.c: Rebuild.
3352 * target.c (update_current_target): Don't inherit or default
3354 * target.h (struct target_ops) <to_trace_start>: Use
3355 TARGET_DEFAULT_NORETURN.
3357 2014-02-19 Tom Tromey <tromey@redhat.com>
3359 * target-delegates.c: Rebuild.
3360 * target.c (update_current_target): Don't inherit or default
3361 to_trace_set_readonly_regions.
3362 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
3363 Use TARGET_DEFAULT_NORETURN.
3365 2014-02-19 Tom Tromey <tromey@redhat.com>
3367 * target-delegates.c: Rebuild.
3368 * target.c (update_current_target): Don't inherit or default
3369 to_disable_tracepoint.
3370 * target.h (struct target_ops) <to_disable_tracepoint>: Use
3371 TARGET_DEFAULT_NORETURN.
3373 2014-02-19 Tom Tromey <tromey@redhat.com>
3375 * target-delegates.c: Rebuild.
3376 * target.c (update_current_target): Don't inherit or default
3377 to_enable_tracepoint.
3378 * target.h (struct target_ops) <to_enable_tracepoint>: Use
3379 TARGET_DEFAULT_NORETURN.
3381 2014-02-19 Tom Tromey <tromey@redhat.com>
3383 * target-delegates.c: Rebuild.
3384 * target.c (update_current_target): Don't inherit or default
3385 to_download_trace_state_variable.
3386 * target.h (struct target_ops) <to_download_trace_state_variable>:
3387 Use TARGET_DEFAULT_NORETURN.
3389 2014-02-19 Tom Tromey <tromey@redhat.com>
3391 * target-delegates.c: Rebuild.
3392 * target.c (update_current_target): Don't inherit or default
3393 to_can_download_tracepoint.
3394 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
3395 TARGET_DEFAULT_RETURN.
3397 2014-02-19 Tom Tromey <tromey@redhat.com>
3399 * target-delegates.c: Rebuild.
3400 * target.c (update_current_target): Don't inherit or default
3401 to_download_tracepoint.
3402 * target.h (struct target_ops) <to_download_tracepoint>: Use
3403 TARGET_DEFAULT_NORETURN.
3405 2014-02-19 Tom Tromey <tromey@redhat.com>
3407 * target-delegates.c: Rebuild.
3408 * target.c (update_current_target): Don't inherit or default
3410 * target.h (struct target_ops) <to_trace_init>: Use
3411 TARGET_DEFAULT_RETURN.
3413 2014-02-19 Tom Tromey <tromey@redhat.com>
3415 * target-delegates.c: Rebuild.
3416 * target.c (update_current_target): Don't inherit or default
3417 to_supports_string_tracing.
3418 * target.h (struct target_ops) <to_supports_string_tracing>: Use
3419 TARGET_DEFAULT_RETURN.
3421 2014-02-19 Tom Tromey <tromey@redhat.com>
3423 * target-delegates.c: Rebuild.
3424 * target.c (update_current_target): Don't inherit or default
3425 to_supports_enable_disable_tracepoint.
3426 * target.h (struct target_ops)
3427 <to_supports_enable_disable_tracepoint>: Use
3428 TARGET_DEFAULT_RETURN.
3430 2014-02-19 Tom Tromey <tromey@redhat.com>
3432 * target-delegates.c: Rebuild.
3433 * target.c (update_current_target): Don't inherit or default
3434 to_supports_multi_process.
3435 * target.h (struct target_ops) <to_supports_multi_process>: Use
3436 TARGET_DEFAULT_RETURN.
3438 2014-02-19 Tom Tromey <tromey@redhat.com>
3440 * target-delegates.c: Rebuild.
3441 * target.c (update_current_target): Don't inherit or default
3442 to_get_ada_task_ptid.
3443 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
3444 TARGET_DEFAULT_FUNC.
3446 2014-02-19 Tom Tromey <tromey@redhat.com>
3448 * target-delegates.c: Rebuild.
3449 * target.c (update_current_target): Don't inherit or default
3450 to_thread_architecture.
3451 * target.h (struct target_ops) <to_thread_architecture>: Use
3452 TARGET_DEFAULT_FUNC.
3454 2014-02-19 Tom Tromey <tromey@redhat.com>
3456 * target-delegates.c: Rebuild.
3457 * target.c (update_current_target): Don't inherit or default
3458 to_execution_direction.
3459 * target.h (struct target_ops) <to_execution_direction>: Use
3460 TARGET_DEFAULT_FUNC.
3462 2014-02-19 Tom Tromey <tromey@redhat.com>
3464 * target-delegates.c: Rebuild.
3465 * target.c (update_current_target): Don't inherit or default
3466 to_can_execute_reverse.
3467 * target.h (struct target_ops) <to_can_execute_reverse>: Use
3468 TARGET_DEFAULT_RETURN.
3469 (target_can_execute_reverse): Unconditionally delegate.
3471 2014-02-19 Tom Tromey <tromey@redhat.com>
3473 * target-delegates.c: Rebuild.
3474 * target.c (update_current_target): Don't inherit or default
3476 (dummy_goto_bookmark): Remove.
3477 (init_dummy_target): Don't inherit or default to_goto_bookmark.
3478 * target.h (struct target_ops) <to_goto_bookmark>: Use
3479 TARGET_DEFAULT_NORETURN.
3481 2014-02-19 Tom Tromey <tromey@redhat.com>
3483 * target-delegates.c: Rebuild.
3484 * target.c (update_current_target): Don't inherit or default
3486 (dummy_get_bookmark): Remove.
3487 (init_dummy_target): Don't inherit or default to_get_bookmark.
3488 * target.h (struct target_ops) <to_get_bookmark>: Use
3489 TARGET_DEFAULT_NORETURN
3491 2014-02-19 Tom Tromey <tromey@redhat.com>
3493 * target-delegates.c: Rebuild.
3494 * target.c (update_current_target): Don't inherit or default
3495 to_make_corefile_notes.
3496 (init_dummy_target): Don't initialize to_make_corefile_notes.
3497 * target.h (struct target_ops) <to_make_corefile_notes>: Use
3498 TARGET_DEFAULT_FUNC.
3500 2014-02-19 Tom Tromey <tromey@redhat.com>
3502 * target-delegates.c: Rebuild.
3503 * target.c (update_current_target): Don't inherit or default
3504 to_find_memory_regions.
3505 (init_dummy_target): Don't initialize to_find_memory_regions.
3506 * target.h (struct target_ops) <to_find_memory_regions>: Use
3507 TARGET_DEFAULT_FUNC.
3509 2014-02-19 Tom Tromey <tromey@redhat.com>
3511 * target-delegates.c: Rebuild.
3512 * target.c (update_current_target): Don't inherit or default
3514 * target.h (struct target_ops) <to_log_command>: Use
3515 TARGET_DEFAULT_IGNORE.
3516 (target_log_command): Unconditionally delegate.
3518 2014-02-19 Tom Tromey <tromey@redhat.com>
3520 * target-delegates.c: Rebuild.
3521 * target.c (update_current_target): Don't inherit or default
3522 to_pid_to_exec_file.
3523 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
3524 TARGET_DEFAULT_RETURN.
3526 2014-02-19 Tom Tromey <tromey@redhat.com>
3528 * target-delegates.c: Rebuild.
3529 * target.c (update_current_target): Don't inherit or default
3531 (target_thread_name): Unconditionally delegate.
3532 * target.h (struct target_ops) <to_thread_name>: Use
3533 TARGET_DEFAULT_RETURN.
3535 2014-02-19 Tom Tromey <tromey@redhat.com>
3537 * target-delegates.c: Rebuild.
3538 * target.c (update_current_target): Don't inherit or default
3539 to_extra_thread_info.
3540 * target.h (struct target_ops) <to_extra_thread_info>: Use
3541 TARGET_DEFAULT_RETURN.
3543 2014-02-19 Tom Tromey <tromey@redhat.com>
3545 * target-delegates.c: Rebuild.
3546 * target.c (update_current_target): Don't inherit or default
3548 * target.h (struct target_ops) <to_has_exited>: Use
3549 TARGET_DEFAULT_RETURN..
3551 2014-02-19 Tom Tromey <tromey@redhat.com>
3553 * target-delegates.c: Rebuild.
3554 * target.c (update_current_target): Don't inherit or default
3555 to_set_syscall_catchpoint.
3556 (return_one): Remove.
3557 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
3558 TARGET_DEFAULT_RETURN.
3560 2014-02-19 Tom Tromey <tromey@redhat.com>
3562 * target-delegates.c: Rebuild.
3563 * target.c (update_current_target): Don't inherit or default
3564 to_insert_exec_catchpoint.
3565 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
3566 TARGET_DEFAULT_RETURN.
3568 2014-01-08 Tom Tromey <tromey@redhat.com>
3570 * target-delegates.c: Rebuild.
3571 * target.c (update_current_target): Don't inherit or default
3572 to_insert_exec_catchpoint.
3573 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
3574 TARGET_DEFAULT_RETURN.
3576 2014-02-19 Tom Tromey <tromey@redhat.com>
3578 * target-delegates.c: Rebuild.
3579 * target.c (update_current_target): Don't inherit or default
3580 to_remove_vfork_catchpoint.
3581 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
3582 TARGET_DEFAULT_RETURN.
3584 2014-02-19 Tom Tromey <tromey@redhat.com>
3586 * target-delegates.c: Rebuild.
3587 * target.c (update_current_target): Don't inherit or default
3588 to_insert_vfork_catchpoint.
3589 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
3590 TARGET_DEFAULT_RETURN.
3592 2014-02-19 Tom Tromey <tromey@redhat.com>
3594 * target-delegates.c: Rebuild.
3595 * target.c (update_current_target): Don't inherit or default
3596 to_remove_fork_catchpoint.
3597 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
3598 TARGET_DEFAULT_RETURN.
3600 2014-02-19 Tom Tromey <tromey@redhat.com>
3602 * target-delegates.c: Rebuild.
3603 * target.c (update_current_target): Don't inherit or default
3604 to_insert_fork_catchpoint.
3605 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
3606 TARGET_DEFAULT_RETURN.
3608 2014-02-19 Tom Tromey <tromey@redhat.com>
3610 * target-delegates.c: Rebuild.
3611 * target.c (update_current_target): Don't inherit or default
3612 to_post_startup_inferior.
3613 * target.h (struct target_ops) <to_post_startup_inferior>: Use
3614 TARGET_DEFAULT_IGNORE.
3616 2014-02-19 Tom Tromey <tromey@redhat.com>
3618 * target-delegates.c: Rebuild.
3619 * target.c (update_current_target): Don't inherit or default
3621 * target.h (struct target_ops) <to_load>: Use
3622 TARGET_DEFAULT_NORETURN.
3624 2014-02-19 Tom Tromey <tromey@redhat.com>
3626 * target-delegates.c: Rebuild.
3627 * target.c (update_current_target): Don't inherit or default
3629 * target.h (struct target_ops) <to_terminal_info>: Use
3630 TARGET_DEFAULT_FUNC.
3632 2014-02-19 Tom Tromey <tromey@redhat.com>
3634 * target-delegates.c: Rebuild.
3635 * target.c (update_current_target): Don't inherit or default
3636 to_terminal_save_ours.
3637 * target.h (struct target_ops) <to_terminal_save_ours>: Use
3638 TARGET_DEFAULT_IGNORE.
3640 2014-02-19 Tom Tromey <tromey@redhat.com>
3642 * target-delegates.c: Rebuild.
3643 * target.c (update_current_target): Don't inherit or default
3645 * target.h (struct target_ops) <to_terminal_ours>: Use
3646 TARGET_DEFAULT_IGNORE.
3648 2014-02-19 Tom Tromey <tromey@redhat.com>
3650 * target-delegates.c: Rebuild.
3651 * target.c (update_current_target): Don't inherit or default
3652 to_terminal_ours_for_output.
3653 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
3654 TARGET_DEFAULT_IGNORE.
3656 2014-02-19 Tom Tromey <tromey@redhat.com>
3658 * target-delegates.c: Rebuild.
3659 * target.c (update_current_target): Don't inherit or default
3660 to_terminal_inferior.
3661 * target.h (struct target_ops) <to_terminal_inferior>: Use
3662 TARGET_DEFAULT_IGNORE.
3664 2014-02-19 Tom Tromey <tromey@redhat.com>
3666 * target-delegates.c: Rebuild.
3667 * target.c (update_current_target): Don't inherit or default
3669 * target.h (struct target_ops) <to_terminal_init>: Use
3670 TARGET_DEFAULT_IGNORE.
3672 2014-02-19 Tom Tromey <tromey@redhat.com>
3674 * target-delegates.c: Rebuild.
3675 * target.c (update_current_target): Don't inherit or default
3676 to_can_accel_watchpoint_condition.
3677 * target.h (struct target_ops)
3678 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
3680 2014-02-19 Tom Tromey <tromey@redhat.com>
3682 * target-delegates.c: Rebuild.
3683 * target.c (update_current_target): Don't inherit or default
3684 to_region_ok_for_hw_watchpoint.
3685 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
3686 Use TARGET_DEFAULT_FUNC.
3688 2014-02-19 Tom Tromey <tromey@redhat.com>
3690 * target-delegates.c: Rebuild.
3691 * target.c (update_current_target): Don't inherit or default
3692 to_watchpoint_addr_within_range.
3693 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
3694 Use TARGET_DEFAULT_FUNC.
3696 2014-02-19 Tom Tromey <tromey@redhat.com>
3698 * target-delegates.c: Rebuild.
3699 * target.c (update_current_target): Don't inherit or default
3700 to_remove_watchpoint.
3701 * target.h (struct target_ops) <to_remove_watchpoint>: Use
3702 TARGET_DEFAULT_NORETURN.
3704 2014-02-19 Tom Tromey <tromey@redhat.com>
3706 * target-delegates.c: Rebuild.
3707 * target.c (update_current_target): Don't inherit or default
3708 to_insert_watchpoint.
3709 * target.h (struct target_ops) <to_insert_watchpoint>: Use
3710 TARGET_DEFAULT_RETURN.
3712 2014-02-19 Tom Tromey <tromey@redhat.com>
3714 * target-delegates.c: Rebuild.
3715 * target.c (update_current_target): Don't inherit or default
3716 to_remove_hw_breakpoint.
3717 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
3718 TARGET_DEFAULT_RETURN.
3720 2014-02-19 Tom Tromey <tromey@redhat.com>
3722 * target-delegates.c: Rebuild.
3723 * target.c (update_current_target): Don't inherit or default
3724 to_insert_hw_breakpoint.
3725 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
3726 TARGET_DEFAULT_RETURN.
3728 2014-02-19 Tom Tromey <tromey@redhat.com>
3730 * target-delegates.c: Rebuild.
3731 * target.c (update_current_target): Don't inherit or default
3732 to_can_use_hw_breakpoint.
3733 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
3734 TARGET_DEFAULT_RETURN.
3736 2014-02-19 Tom Tromey <tromey@redhat.com>
3738 * target-delegates.c: Rebuild.
3739 * target.c (update_current_target): Don't inherit or default
3741 * target.h (struct target_ops) <to_files_info>: Use
3742 TARGET_DEFAULT_IGNORE.
3744 2014-02-19 Tom Tromey <tromey@redhat.com>
3746 * target-delegates.c: Rebuild.
3747 * target.c (update_current_target): Don't inherit or default
3749 * target.h (struct target_ops) <to_store>: Use
3750 TARGET_DEFAULT_NORETURN.
3752 2014-02-19 Tom Tromey <tromey@redhat.com>
3754 * target-delegates.c: Rebuild.
3755 * target.c (update_current_target): Don't inherit or default
3757 * target.h (struct target_ops) <to_post_attach>: Use
3758 TARGET_DEFAULT_IGNORE.
3760 2014-02-19 Tom Tromey <tromey@redhat.com>
3762 * target-delegates.c: Rebuild.
3763 * target.c (update_current_target): Don't inherit or default
3765 (default_rcmd): New function.
3766 (do_monitor_command): Unconditionally delegate.
3767 * target.h (struct target_ops) <to_rmcd>: Use
3768 TARGET_DEFAULT_FUNC.
3770 2014-02-19 Tom Tromey <tromey@redhat.com>
3772 * target-delegates.c: Rebuild.
3773 * target.c (init_dummy_target): Don't initialize to_attach.
3774 (target_attach): Unconditionally delegate.
3775 * target.h (struct target_ops) <to_attach>: Use
3776 TARGET_DEFAULT_FUNC.
3778 2014-02-19 Tom Tromey <tromey@redhat.com>
3780 * target-delegates.c: Rebuild.
3781 * target.c (target_detach): Unconditionally delegate.
3782 (init_dummy_target): Don't initialize to_detach.
3783 * target.h (struct target_ops) <to_detach>: Use
3784 TARGET_DEFAULT_IGNORE.
3786 2014-02-19 Tom Tromey <tromey@redhat.com>
3788 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
3790 (target_augmented_libraries_svr4_read): Add argument.
3791 * target.c (update_current_target): Update.
3792 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
3795 2014-02-19 Tom Tromey <tromey@redhat.com>
3797 * target.h (struct target_ops) <to_call_history_range>: Add
3799 * target.c (target_call_history_range): Add argument.
3800 * record-btrace.c (record_btrace_call_history_range): Add 'self'
3802 (record_btrace_call_history_from): Update.
3804 2014-02-19 Tom Tromey <tromey@redhat.com>
3806 * target.h (struct target_ops) <to_call_history_from>: Add
3808 * target.c (target_call_history_from): Add argument.
3809 * record-btrace.c (record_btrace_call_history_from): Add 'self'
3812 2014-02-19 Tom Tromey <tromey@redhat.com>
3814 * target.h (struct target_ops) <to_call_history>: Add argument.
3815 * target.c (target_call_history): Add argument.
3816 * record-btrace.c (record_btrace_call_history): Add 'self'
3819 2014-02-19 Tom Tromey <tromey@redhat.com>
3821 * target.h (struct target_ops) <to_insn_history_range>: Add
3823 * target.c (target_insn_history_range): Add argument.
3824 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
3826 (record_btrace_insn_history_from): Update.
3828 2014-02-19 Tom Tromey <tromey@redhat.com>
3830 * target.h (struct target_ops) <to_insn_history_from>: Add
3832 * target.c (target_insn_history_from): Add argument.
3833 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
3836 2014-02-19 Tom Tromey <tromey@redhat.com>
3838 * target.h (struct target_ops) <to_insn_history>: Add argument.
3839 * target.c (target_insn_history): Add argument.
3840 * record-btrace.c (record_btrace_insn_history): Add 'self'
3843 2014-02-19 Tom Tromey <tromey@redhat.com>
3845 * target.h (struct target_ops) <to_goto_record>: Add argument.
3846 * target.c (target_goto_record): Add argument.
3847 * record-full.c (record_full_goto): Add 'self' argument.
3848 * record-btrace.c (record_btrace_goto): Add 'self' argument.
3850 2014-02-19 Tom Tromey <tromey@redhat.com>
3852 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
3853 * target.c (target_goto_record_end): Add argument.
3854 * record-full.c (record_full_goto_end): Add 'self' argument.
3855 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
3857 2014-02-19 Tom Tromey <tromey@redhat.com>
3859 * target.h (struct target_ops) <to_goto_record_begin>: Add
3861 * target.c (target_goto_record_begin): Add argument.
3862 * record-full.c (record_full_goto_begin): Add 'self' argument.
3863 * record-btrace.c (record_btrace_goto_begin): Add 'self'
3866 2014-02-19 Tom Tromey <tromey@redhat.com>
3868 * target.h (struct target_ops) <to_record_is_replaying>: Add
3870 * target.c (target_record_is_replaying): Add argument.
3871 * record-full.c (record_full_is_replaying): Add 'self' argument.
3872 * record-btrace.c (record_btrace_is_replaying): Add 'self'
3874 (record_btrace_xfer_partial, record_btrace_store_registers)
3875 (record_btrace_prepare_to_store, record_btrace_resume)
3876 (record_btrace_wait, record_btrace_decr_pc_after_break)
3877 (record_btrace_find_new_threads, record_btrace_thread_alive):
3880 2014-02-19 Tom Tromey <tromey@redhat.com>
3882 * target.h (struct target_ops) <to_delete_record>: Add argument.
3883 * target.c (target_delete_record): Add argument.
3884 * record-full.c (record_full_delete): Add 'self' argument.
3886 2014-02-19 Tom Tromey <tromey@redhat.com>
3888 * target.h (struct target_ops) <to_save_record>: Add argument.
3889 * target.c (target_save_record): Add argument.
3890 * record-full.c (record_full_save): Add 'self' argument.
3891 (record_full_save): Add 'self' argument.
3893 2014-02-19 Tom Tromey <tromey@redhat.com>
3895 * target.h (struct target_ops) <to_info_record>: Add argument.
3896 * target.c (target_info_record): Add argument.
3897 * record.c (info_record_command): Add argument.
3898 * record-full.c (record_full_info): Add 'self' argument.
3899 * record-btrace.c (record_btrace_info): Add 'self' argument.
3901 2014-02-19 Tom Tromey <tromey@redhat.com>
3903 * target.h (struct target_ops) <to_stop_recording>: Add argument.
3904 * target.c (target_stop_recording): Add argument.
3905 * record.c (record_stop): Add argument.
3906 * record-btrace.c (record_btrace_stop_recording): Add 'self'
3909 2014-02-19 Tom Tromey <tromey@redhat.com>
3911 * target.h (struct target_ops) <to_read_btrace>: Add argument.
3912 * target.c (struct target_ops) <to_read_btrace>: Add argument.
3913 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
3915 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
3916 (_initialize_amd64_linux_nat): Use it.
3917 * i386-linux-nat.c (i386_linux_read_btrace): New function.
3918 (_initialize_i386_linux_nat): Use it.
3920 2014-02-19 Tom Tromey <tromey@redhat.com>
3922 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
3923 * target.c (target_teardown_btrace): Add argument.
3924 * remote.c (remote_teardown_btrace): Add 'self' argument.
3925 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
3927 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
3930 2014-02-19 Tom Tromey <tromey@redhat.com>
3932 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
3933 * target.c (target_disable_btrace): Add argument.
3934 * remote.c (remote_disable_btrace): Add 'self' argument.
3935 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
3937 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
3940 2014-02-19 Tom Tromey <tromey@redhat.com>
3942 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
3943 * target.c (target_enable_btrace): Add argument.
3944 * remote.c (remote_enable_btrace): Add 'self' argument.
3945 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
3947 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
3950 2014-02-19 Tom Tromey <tromey@redhat.com>
3952 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
3953 (target_can_use_agent): Add argument.
3954 * target.c (update_current_target): Update.
3955 * remote.c (remote_can_use_agent): Add 'self' argument.
3956 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
3958 2014-02-19 Tom Tromey <tromey@redhat.com>
3960 * target.h (struct target_ops) <to_use_agent>: Add argument.
3961 (target_use_agent): Add argument.
3962 * target.c (update_current_target): Update.
3963 * remote.c (remote_use_agent): Add 'self' argument.
3964 * inf-child.c (inf_child_use_agent): Add 'self' argument.
3966 2014-02-19 Tom Tromey <tromey@redhat.com>
3968 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
3969 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
3970 (target_traceframe_info): Add argument.
3971 * target.c (update_current_target): Update.
3972 * remote.c (remote_traceframe_info): Add 'self' argument.
3973 * ctf.c (ctf_traceframe_info): Add 'self' argument.
3975 2014-02-19 Tom Tromey <tromey@redhat.com>
3977 * target.h (target_static_tracepoint_markers_by_strid): Add
3979 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
3981 * target.c (update_current_target): Update.
3982 * remote.c (struct target_ops)
3983 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
3984 * linux-nat.c (struct target_ops)
3985 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
3987 2014-02-19 Tom Tromey <tromey@redhat.com>
3989 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
3991 (target_static_tracepoint_marker_at): Add argument.
3992 * target.c (update_current_target): Update.
3993 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
3996 2014-02-19 Tom Tromey <tromey@redhat.com>
3998 * target.h (struct target_ops) <to_set_permissions>: Add argument.
3999 (target_set_permissions): Add argument.
4000 * target.c (update_current_target): Update.
4001 * remote.c (remote_set_permissions): Add 'self' argument.
4002 (remote_start_remote): Update.
4004 2014-02-19 Tom Tromey <tromey@redhat.com>
4006 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
4007 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
4008 (target_get_tib_address): Add argument.
4009 * target.c (update_current_target): Update.
4010 * remote.c (remote_get_tib_address): Add 'self' argument.
4012 2014-02-19 Tom Tromey <tromey@redhat.com>
4014 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
4015 (target_set_trace_notes): Add argument.
4016 * target.c (update_current_target): Update.
4017 * remote.c (remote_set_trace_notes): Add 'self' argument.
4019 2014-02-19 Tom Tromey <tromey@redhat.com>
4021 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
4023 (target_set_trace_buffer_size): Add argument.
4024 * target.c (update_current_target): Update.
4025 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
4027 2014-02-19 Tom Tromey <tromey@redhat.com>
4029 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
4031 (target_set_circular_trace_buffer): Add argument.
4032 * target.c (update_current_target): Update.
4033 * remote.c (remote_set_circular_trace_buffer): Add 'self'
4036 2014-02-19 Tom Tromey <tromey@redhat.com>
4038 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
4040 (target_set_disconnected_tracing): Add argument.
4041 * target.c (update_current_target): Update.
4042 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
4044 2014-02-19 Tom Tromey <tromey@redhat.com>
4046 * target.h (struct target_ops)
4047 <to_get_min_fast_tracepoint_insn_len>: Add argument.
4048 (target_get_min_fast_tracepoint_insn_len): Add argument.
4049 * target.c (update_current_target): Update.
4050 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
4053 2014-02-19 Tom Tromey <tromey@redhat.com>
4055 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
4057 (target_get_raw_trace_data): Add argument.
4058 * target.c (update_current_target): Update.
4059 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
4061 2014-02-19 Tom Tromey <tromey@redhat.com>
4063 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4065 (target_upload_trace_state_variables): Add argument.
4066 * target.c (update_current_target): Update.
4067 * remote.c (remote_upload_trace_state_variables): Add 'self'
4069 (remote_start_remote): Update.
4071 2014-02-19 Tom Tromey <tromey@redhat.com>
4073 * target.h (struct target_ops) <to_upload_tracepoints>: Add
4075 (target_upload_tracepoints): Add argument.
4076 * target.c (update_current_target): Update.
4077 * remote.c (remote_upload_tracepoints): Add 'self' argument.
4078 (remote_start_remote): Update.
4080 2014-02-19 Tom Tromey <tromey@redhat.com>
4082 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
4083 (target_save_trace_data): Add argument.
4084 * target.c (update_current_target): Update.
4085 * remote.c (remote_save_trace_data): Add 'self' argument.
4087 2014-02-19 Tom Tromey <tromey@redhat.com>
4089 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
4091 * target.h (struct target_ops)
4092 <to_get_trace_state_variable_value>: Add argument.
4093 (target_get_trace_state_variable_value): Add argument.
4094 * target.c (update_current_target): Update.
4095 * remote.c (remote_get_trace_state_variable_value): Add 'self'
4097 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
4099 2014-02-19 Tom Tromey <tromey@redhat.com>
4101 * tracepoint.c (tfile_trace_find): Add 'self' argument.
4102 * target.h (struct target_ops) <to_trace_find>: Add argument.
4103 (target_trace_find): Add argument.
4104 * target.c (update_current_target): Update.
4105 * remote.c (remote_trace_find): Add 'self' argument.
4106 * ctf.c (ctf_trace_find): Add 'self' argument.
4108 2014-02-19 Tom Tromey <tromey@redhat.com>
4110 * target.h (struct target_ops) <to_trace_stop>: Add argument.
4111 (target_trace_stop): Add argument.
4112 * target.c (update_current_target): Update.
4113 * remote.c (remote_trace_stop): Add 'self' argument.
4115 2014-02-19 Tom Tromey <tromey@redhat.com>
4117 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
4118 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
4120 (target_get_tracepoint_status): Add argument.
4121 * target.c (update_current_target): Update.
4122 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
4124 2014-02-19 Tom Tromey <tromey@redhat.com>
4126 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
4127 * target.h (struct target_ops) <to_get_trace_status>: Add
4129 (target_get_trace_status): Add argument.
4130 * target.c (update_current_target): Update.
4131 * remote.c (remote_get_trace_status): Add 'self' argument.
4132 (remote_start_remote, remote_can_download_tracepoint): Update.
4133 * ctf.c (ctf_get_trace_status): Add 'self' argument.
4135 2014-02-19 Tom Tromey <tromey@redhat.com>
4137 * target.h (struct target_ops) <to_trace_start>: Add argument.
4138 (target_trace_start): Add argument.
4139 * target.c (update_current_target): Update.
4140 * remote.c (remote_trace_start): Add 'self' argument.
4142 2014-02-19 Tom Tromey <tromey@redhat.com>
4144 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4146 (target_trace_set_readonly_regions): Add argument.
4147 * target.c (update_current_target): Update.
4148 * remote.c (remote_trace_set_readonly_regions): Add 'self'
4151 2014-02-19 Tom Tromey <tromey@redhat.com>
4153 * target.h (struct target_ops) <to_disable_tracepoint>: Add
4155 (target_disable_tracepoint): Add argument.
4156 * target.c (update_current_target): Update.
4157 * remote.c (remote_disable_tracepoint): Add 'self' argument.
4159 2014-02-19 Tom Tromey <tromey@redhat.com>
4161 * target.h (struct target_ops) <to_enable_tracepoint>: Add
4163 (target_enable_tracepoint): Add argument.
4164 * target.c (update_current_target): Update.
4165 * remote.c (remote_enable_tracepoint): Add 'self' argument.
4167 2014-02-19 Tom Tromey <tromey@redhat.com>
4169 * target.h (struct target_ops) <to_download_trace_state_variable>:
4171 (target_download_trace_state_variable): Add argument.
4172 * target.c (update_current_target): Update.
4173 * remote.c (remote_download_trace_state_variable): Add 'self'
4176 2014-02-19 Tom Tromey <tromey@redhat.com>
4178 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
4180 (target_can_download_tracepoint): Add argument.
4181 * target.c (update_current_target): Update.
4182 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
4184 2014-02-19 Tom Tromey <tromey@redhat.com>
4186 * target.h (struct target_ops) <to_download_tracepoint>: Add
4188 (target_download_tracepoint): Add argument.
4189 * target.c (update_current_target): Update.
4190 * remote.c (remote_download_tracepoint): Add 'self' argument.
4192 2014-02-19 Tom Tromey <tromey@redhat.com>
4194 * target.h (struct target_ops) <to_trace_init>: Add argument.
4195 (target_trace_init): Add argument.
4196 * target.c (update_current_target): Update.
4197 * remote.c (remote_trace_init): Add 'self' argument.
4199 2014-02-19 Tom Tromey <tromey@redhat.com>
4201 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
4202 * target.c (target_fileio_readlink): Add argument.
4203 * remote.c (remote_hostio_readlink): Add 'self' argument.
4204 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
4206 2014-02-19 Tom Tromey <tromey@redhat.com>
4208 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
4209 * target.c (target_fileio_unlink): Add argument.
4210 * remote.c (remote_hostio_unlink): Add 'self' argument.
4211 (remote_file_delete): Update.
4212 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
4214 2014-02-19 Tom Tromey <tromey@redhat.com>
4216 * target.h (struct target_ops) <to_fileio_close>: Add argument.
4217 * target.c (target_fileio_close): Add argument.
4218 * remote.c (remote_hostio_close): Add 'self' argument.
4219 (remote_hostio_close_cleanup): Update.
4220 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
4222 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
4224 2014-02-19 Tom Tromey <tromey@redhat.com>
4226 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
4227 * target.c (target_fileio_pread): Add argument.
4228 * remote.c (remote_hostio_pread): Add 'self' argument.
4229 (remote_bfd_iovec_pread, remote_file_get): Update.
4230 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
4232 2014-02-19 Tom Tromey <tromey@redhat.com>
4234 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
4235 * target.c (target_fileio_pwrite): Add argument.
4236 * remote.c (remote_hostio_pwrite): Add 'self' argument.
4237 (remote_file_put): Update.
4238 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
4240 2014-02-19 Tom Tromey <tromey@redhat.com>
4242 * target.h (struct target_ops) <to_fileio_open>: Add argument.
4243 * target.c (target_fileio_open): Add argument.
4244 * remote.c (remote_hostio_open): Add 'self' argument.
4245 (remote_bfd_iovec_open): Add 'self' argument.
4246 (remote_file_put): Add 'self' argument.
4247 (remote_file_get): Add 'self' argument.
4248 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
4250 2014-02-19 Tom Tromey <tromey@redhat.com>
4252 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4254 (target_can_run_breakpoint_commands): Add argument.
4255 * target.c (update_current_target): Update.
4256 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
4258 (remote_insert_breakpoint): Add 'self' argument.
4259 (remote_insert_hw_breakpoint): Add 'self' argument.
4260 (remote_can_run_breakpoint_commands): Add 'self' argument.
4262 2014-02-19 Tom Tromey <tromey@redhat.com>
4264 * target.h (struct target_ops)
4265 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
4266 (target_supports_evaluation_of_breakpoint_conditions): Add
4268 * target.c (update_current_target): Update.
4269 * remote.c (remote_supports_cond_breakpoints): Add 'self'
4271 (remote_insert_breakpoint): Add 'self' argument.
4272 (remote_insert_hw_breakpoint): Add 'self' argument.
4273 (remote_supports_cond_breakpoints): Add 'self' argument.
4275 2014-02-19 Tom Tromey <tromey@redhat.com>
4277 * target.h (struct target_ops) <to_supports_string_tracing>: Add
4279 (target_supports_string_tracing): Add argument.
4280 * target.c (update_current_target): Update.
4281 * remote.c (remote_supports_string_tracing): Add 'self' argument.
4283 2014-02-19 Tom Tromey <tromey@redhat.com>
4285 * target.h (struct target_ops)
4286 <to_supports_disable_randomization>: Add argument.
4287 * target.c (find_default_supports_disable_randomization): Add
4289 (target_supports_disable_randomization): Add argument.
4290 (find_default_supports_disable_randomization): Add 'self'
4292 * remote.c (extended_remote_supports_disable_randomization): Add
4294 (remote_supports_disable_randomization): Add 'self' argument.
4295 (extended_remote_create_inferior): Update.
4296 * linux-nat.c (linux_nat_supports_disable_randomization): Add
4299 2014-02-19 Tom Tromey <tromey@redhat.com>
4301 * target.h (struct target_ops)
4302 <to_supports_enable_disable_tracepoint>: Add argument.
4303 (target_supports_enable_disable_tracepoint): Add argument.
4304 * target.c (update_current_target): Update.
4305 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
4308 2014-02-19 Tom Tromey <tromey@redhat.com>
4310 * target.h (struct target_ops) <to_supports_multi_process>: Add
4312 (target_supports_multi_process): Add argument.
4313 * target.c (update_current_target): Update.
4314 * remote.c (remote_supports_multi_process): Add 'self' argument.
4315 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
4317 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
4320 2014-02-19 Tom Tromey <tromey@redhat.com>
4322 * target.h (struct target_ops) <to_execution_direction>: Add
4324 (target_execution_direction): Add argument.
4325 * target.c (default_execution_direction): Add 'self' argument.
4326 * record-full.c (record_full_execution_direction): Add 'self'
4329 2014-02-19 Tom Tromey <tromey@redhat.com>
4331 * target.h (struct target_ops) <to_can_execute_reverse>: Add
4333 (target_can_execute_reverse): Add argument.
4334 * remote.c (remote_can_execute_reverse): Add 'self' argument.
4335 * record-full.c (record_full_can_execute_reverse): Add 'self'
4337 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
4340 2014-02-19 Tom Tromey <tromey@redhat.com>
4342 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
4343 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
4345 (target_get_ada_task_ptid): Add argument.
4346 * target.c (update_current_target): Update.
4347 (default_get_ada_task_ptid): Add 'self' argument.
4348 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
4349 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
4350 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
4352 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
4354 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
4356 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
4358 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
4359 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
4362 2014-02-19 Tom Tromey <tromey@redhat.com>
4364 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
4365 (target_goto_bookmark): Add argument.
4366 * target.c (dummy_goto_bookmark): Add 'self' argument.
4367 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
4369 2014-02-19 Tom Tromey <tromey@redhat.com>
4371 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
4372 (target_get_bookmark): Add argument.
4373 * target.c (dummy_get_bookmark): Add 'self' argument.
4374 * record-full.c (record_full_get_bookmark): Add 'self' argument.
4376 2014-02-19 Tom Tromey <tromey@redhat.com>
4378 * target.h (struct target_ops) <to_make_corefile_notes>: Add
4380 (target_make_corefile_notes): Add argument.
4381 * target.c (dummy_make_corefile_notes): Add 'self' argument.
4382 * procfs.c (procfs_make_note_section): Add 'self' argument.
4383 (procfs_make_note_section): Add 'self' argument.
4384 (procfs_make_note_section): Add 'self' argument.
4385 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
4387 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
4388 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
4389 * exec.c (exec_make_note_section): Add 'self' argument.
4390 (exec_make_note_section): Add 'self' argument.
4392 2014-02-19 Tom Tromey <tromey@redhat.com>
4394 * target.h (struct target_ops) <to_find_memory_regions>: Add
4396 (target_find_memory_regions): Add argument.
4397 * target.c (dummy_find_memory_regions): Add 'self' argument.
4398 * procfs.c (proc_find_memory_regions): Add 'self' argument.
4399 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
4400 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
4401 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
4402 * exec. (exec_do_find_memory_regions): New global.
4403 (exec_set_find_memory_regions): Rewrite.
4404 (exec_find_memory_regions): New function.
4405 (init_exec_ops): Use exec_find_memory_regions.
4407 2014-02-19 Tom Tromey <tromey@redhat.com>
4409 * target.h (struct target_ops) <to_supports_non_stop>: Add
4411 * target.c (find_default_supports_non_stop): Add argument.
4412 (target_supports_non_stop): Add argument.
4413 (find_default_supports_non_stop): Add 'self' argument.
4414 * remote.c (remote_supports_non_stop): Add 'self' argument.
4415 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
4417 2014-02-19 Tom Tromey <tromey@redhat.com>
4419 * target.h (struct target_ops) <to_log_command>: Add argument.
4420 (target_log_command): Add argument.
4421 * serial.h (serial_log_command): Add 'self' argument.
4422 * serial.c (serial_log_command): Add 'self' argument.
4424 2014-02-19 Tom Tromey <tromey@redhat.com>
4426 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
4427 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
4429 (target_pid_to_exec_file): Add argument.
4430 * target.c (debug_to_pid_to_exec_file): Add argument.
4431 (update_current_target): Update.
4432 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
4433 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
4434 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
4435 (linux_handle_extended_wait): Update.
4436 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
4437 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
4438 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
4439 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
4441 2014-02-19 Tom Tromey <tromey@redhat.com>
4443 * target.h (struct target_ops) <to_rcmd>: Add argument.
4444 (target_rcmd): Add argument.
4445 * target.c (debug_to_rcmd): Add argument.
4446 (update_current_target, do_monitor_command): Update.
4447 * remote.c (remote_rcmd): Add 'self' argument.
4448 * monitor.c (monitor_rcmd): Add 'self' argument.
4450 2014-02-19 Tom Tromey <tromey@redhat.com>
4452 * windows-nat.c (windows_stop): Add 'self' argument.
4453 * target.h (struct target_ops) <to_stop>: Add argument.
4454 * target.c (target_stop): Add argument.
4455 (debug_to_stop): Add argument.
4456 (update_current_target): Update.
4457 * remote.c (remote_stop): Add 'self' argument.
4458 * remote-sim.c (gdbsim_stop): Add 'self' argument.
4459 (gdbsim_cntrl_c): Update.
4460 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
4461 * procfs.c (procfs_stop): Add 'self' argument.
4462 * nto-procfs.c (procfs_stop): Add 'self' argument.
4463 * monitor.c (monitor_stop): Add 'self' argument.
4464 (monitor_open): Update.
4465 * linux-nat.c (linux_nat_stop): Add argument.
4466 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
4467 * gnu-nat.c (gnu_stop): Add 'self' argument.
4468 * darwin-nat.c (darwin_stop): Add 'self' argument.
4470 2014-02-19 Tom Tromey <tromey@redhat.com>
4472 * target.h (struct target_ops) <to_thread_name>: Add argument.
4473 * target.c (target_thread_name): Add argument.
4474 (update_current_target): Update.
4475 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
4477 2014-02-19 Tom Tromey <tromey@redhat.com>
4479 * target.h (struct target_ops) <to_extra_thread_info>: Add
4481 (target_extra_thread_info): Add argument.
4482 * target.c (update_current_target): Update.
4483 * remote.c (remote_threads_extra_info): Add 'self' argument.
4484 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
4486 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
4487 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
4488 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
4490 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
4492 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
4494 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
4497 2014-02-19 Tom Tromey <tromey@redhat.com>
4499 * target.h (struct target_ops) <to_program_signals>: Add argument.
4500 * target.c (target_program_signals): Add argument.
4501 * remote.c (remote_program_signals): Add 'self' argument.
4503 2014-02-19 Tom Tromey <tromey@redhat.com>
4505 * target.h (struct target_ops) <to_pass_signals>: Add argument.
4506 * target.c (target_pass_signals): Add argument.
4507 * remote.c (remote_pass_signals): Add 'self' argument.
4508 (remote_start_remote): Update.
4509 * procfs.c (procfs_pass_signals): Add 'self' argument.
4510 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
4511 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
4512 (linux_nat_create_inferior, linux_nat_attach): Update.
4514 2014-02-19 Tom Tromey <tromey@redhat.com>
4516 * windows-nat.c (windows_can_run): Add 'self' argument.
4517 * target.h (struct target_ops) <to_can_run>: Add argument.
4518 (target_can_run): Add argument.
4519 * target.c (debug_to_can_run): Add argument.
4520 (update_current_target): Update.
4521 * nto-procfs.c (procfs_can_run): Add 'self' argument.
4522 * inf-child.c (inf_child_can_run): Add 'self' argument.
4523 * go32-nat.c (go32_can_run): Add 'self' argument.
4525 2014-02-19 Tom Tromey <tromey@redhat.com>
4527 * target.h (struct target_ops) <to_has_exited>: Add argument.
4528 (target_has_exited): Add argument.
4529 * target.c (debug_to_has_exited): Add argument.
4530 (update_current_target): Update.
4532 2014-02-19 Tom Tromey <tromey@redhat.com>
4534 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
4536 (target_set_syscall_catchpoint): Add argument.
4537 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
4539 * target.c (update_current_target): Update.
4541 2014-02-19 Tom Tromey <tromey@redhat.com>
4543 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
4545 (target_remove_exec_catchpoint): Add argument.
4546 * target.c (debug_to_remove_exec_catchpoint): Add argument.
4547 (update_current_target): Update.
4548 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
4551 2014-02-19 Tom Tromey <tromey@redhat.com>
4553 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
4555 (target_insert_exec_catchpoint): Add argument.
4556 * target.c (debug_to_insert_exec_catchpoint): Add argument.
4557 (update_current_target): Update.
4558 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
4561 2014-02-19 Tom Tromey <tromey@redhat.com>
4563 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
4565 (target_remove_vfork_catchpoint): Add argument.
4566 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
4567 (update_current_target): Update.
4568 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
4571 2014-02-19 Tom Tromey <tromey@redhat.com>
4573 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
4575 (target_insert_vfork_catchpoint): Add argument.
4576 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
4577 (update_current_target): Update.
4578 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
4581 2014-02-19 Tom Tromey <tromey@redhat.com>
4583 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
4585 (target_remove_fork_catchpoint): Add argument.
4586 * target.c (debug_to_remove_fork_catchpoint): Add argument.
4587 (update_current_target): Update.
4588 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
4591 2014-02-19 Tom Tromey <tromey@redhat.com>
4593 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
4595 (target_insert_fork_catchpoint): Add argument.
4596 * target.c (debug_to_insert_fork_catchpoint): Add argument.
4597 (update_current_target): Update.
4598 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
4601 2014-02-19 Tom Tromey <tromey@redhat.com>
4603 * target.h (struct target_ops) <to_post_startup_inferior>: Add
4605 (target_post_startup_inferior): Add argument.
4606 * target.c (debug_to_post_startup_inferior): Add argument.
4607 (update_current_target): Update.
4608 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
4610 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
4612 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
4614 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
4616 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
4618 (super_post_startup_inferior): Likewise.
4619 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
4621 (super_post_startup_inferior): Likewise.
4622 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
4623 Add 'self' argument.
4624 (super_post_startup_inferior): Likewise.
4626 2014-02-19 Tom Tromey <tromey@redhat.com>
4628 * target.h (struct target_ops) <to_load>: Add argument.
4629 * target.c (target_load): Add argument.
4630 (debug_to_load): Add argument.
4631 (update_current_target): Update.
4632 * remote.c (remote_load): Add 'self' argument.
4633 * remote-sim.c (gdbsim_load): Add 'self' argument.
4634 * remote-mips.c (mips_load): Add 'self' argument.
4635 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
4636 * monitor.c (monitor_load): Add 'self' argument.
4637 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
4639 2014-02-19 Tom Tromey <tromey@redhat.com>
4641 * target.h (struct target_ops) <to_terminal_info>: Add argument.
4642 (target_terminal_info): Add argument.
4643 * target.c (debug_to_terminal_info): Add argument.
4644 (default_terminal_info): Likewise.
4645 * inflow.c (child_terminal_info): Add 'self' argument.
4646 * inferior.h (child_terminal_info): Add 'self' argument.
4647 * go32-nat.c (go32_terminal_info): Add 'self' argument.
4649 2014-02-19 Tom Tromey <tromey@redhat.com>
4651 * target.h (struct target_ops) <to_terminal_save_ours>: Add
4653 (target_terminal_save_ours): Add argument.
4654 * target.c (debug_to_terminal_save_ours): Add argument.
4655 (update_current_target): Update.
4656 * inflow.c (terminal_save_ours): Add 'self' argument.
4657 * inferior.h (terminal_save_ours): Add 'self' argument.
4659 2014-02-19 Tom Tromey <tromey@redhat.com>
4661 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
4662 (target_terminal_ours): Add argument.
4663 * target.c (debug_to_terminal_ours): Add argument.
4664 (update_current_target): Update.
4665 * remote.c (remote_terminal_ours): Add 'self' argument.
4666 (remote_close): Update.
4667 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
4668 * inflow.c (terminal_ours): Add 'self' argument.
4669 * inferior.h (terminal_ours): Add 'self' argument.
4670 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
4672 2014-02-19 Pedro Alves <palves@redhat.com>
4673 Tom Tromey <tromey@redhat.com>
4675 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
4677 (target_terminal_ours_for_output): Add argument.
4678 * target.c (debug_to_terminal_ours_for_output): Add argument.
4679 (update_current_target): Update.
4680 * inflow.c (terminal_ours_for_output): Add 'self' argument.
4681 * inferior.h (terminal_ours_for_output): Add 'self' argument.
4682 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
4684 2014-02-19 Tom Tromey <tromey@redhat.com>
4686 * target.h (struct target_ops) <to_terminal_inferior>: Add
4688 * target.c (target_terminal_inferior): Add argument.
4689 (update_current_target): Update.
4690 * remote.c (remote_terminal_inferior): Add 'self' argument.
4691 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
4692 * inflow.c (terminal_inferior): Add 'self' argument.
4693 * inferior.h (terminal_inferior): Add 'self' argument.
4694 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
4695 (go32_terminal_inferior): Add 'self' argument.
4697 2014-02-19 Tom Tromey <tromey@redhat.com>
4699 * target.h (struct target_ops) <to_terminal_init>: Add argument.
4700 (target_terminal_init): Add argument.
4701 * target.c (debug_to_terminal_init): Add argument.
4702 (update_current_target): Update.
4703 * inflow.c (terminal_init_inferior): Add 'self' argument.
4704 * inferior.h (terminal_init_inferior): Add 'self' argument.
4705 * go32-nat.c (go32_terminal_init): Add 'self' argument.
4706 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
4708 2014-02-19 Tom Tromey <tromey@redhat.com>
4710 * target.h (struct target_ops)
4711 <to_can_accel_watchpoint_condition>: Add argument.
4712 (target_can_accel_watchpoint_condition): Add argument.
4713 * target.c (debug_to_can_accel_watchpoint_condition): Add
4715 (update_current_target): Update.
4716 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
4719 2014-02-19 Tom Tromey <tromey@redhat.com>
4721 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4723 (target_region_ok_for_hw_watchpoint): Add argument.
4724 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
4725 (default_region_ok_for_hw_watchpoint): Add argument.
4726 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
4727 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
4729 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
4731 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
4733 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
4735 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
4737 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
4739 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
4740 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
4742 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
4743 Add 'self' argument.
4745 2014-02-19 Tom Tromey <tromey@redhat.com>
4747 * target.h (struct target_ops) <to_insert_watchpoint>: Add
4749 (target_insert_watchpoint): Add argument.
4750 * target.c (debug_to_insert_watchpoint): Add argument.
4751 (update_current_target): Update.
4752 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
4753 * remote.c (remote_insert_watchpoint): Add 'self' argument.
4754 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
4755 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
4756 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
4757 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
4759 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
4760 (procfs_insert_hw_watchpoint): Add 'self' argument.
4761 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
4763 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
4765 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
4767 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
4768 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
4770 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
4773 2014-02-19 Tom Tromey <tromey@redhat.com>
4775 * target.h (struct target_ops) <to_remove_watchpoint>: Add
4777 (target_remove_watchpoint): Add argument.
4778 * target.c (debug_to_remove_watchpoint): Add argument.
4779 (update_current_target): Update.
4780 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
4781 * remote.c (remote_remove_watchpoint): Add 'self' argument.
4782 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
4783 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
4784 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
4785 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
4787 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
4788 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
4790 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
4792 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
4794 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
4795 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
4797 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
4800 2014-02-19 Tom Tromey <tromey@redhat.com>
4802 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
4804 (target_remove_hw_breakpoint): Add argument.
4805 * target.c (debug_to_remove_hw_breakpoint): Add argument.
4806 (update_current_target): Update.
4807 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
4808 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
4810 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
4811 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
4813 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
4816 2014-02-19 Tom Tromey <tromey@redhat.com>
4818 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
4820 (target_insert_hw_breakpoint): Add argument.
4821 * target.c (debug_to_insert_hw_breakpoint): Add argument.
4822 (update_current_target): Update.
4823 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
4824 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
4826 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
4827 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
4828 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
4830 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
4833 2014-02-19 Tom Tromey <tromey@redhat.com>
4835 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
4837 (target_can_use_hardware_watchpoint): Add argument.
4838 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
4839 (update_current_target): Update.
4840 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
4842 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
4844 * remote.c (remote_check_watch_resources): Add 'self' argument.
4845 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
4846 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
4848 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
4849 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
4851 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
4853 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
4855 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
4857 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
4859 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
4861 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
4862 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
4864 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
4867 2014-02-19 Tom Tromey <tromey@redhat.com>
4869 * target.h (struct target_ops) <to_post_attach>: Add argument.
4870 (target_post_attach): Add argument.
4871 * target.c (debug_to_post_attach): Add argument.
4872 (update_current_target): Update.
4873 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
4874 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
4875 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
4876 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
4877 * inf-child.c (inf_child_post_attach): Add 'self' argument.
4879 2014-02-19 Tom Tromey <tromey@redhat.com>
4881 * windows-nat.c (windows_close): Add 'self' argument.
4882 * tracepoint.c (tfile_close): Add 'self' argument.
4883 * target.h (struct target_ops) <to_close>: Add argument.
4884 * target.c (target_close): Add argument.
4885 (update_current_target): Update.
4886 * remote.c (remote_close): Add 'self' argument.
4887 * remote-sim.c (gdbsim_close): Add 'self' argument.
4888 * remote-mips.c (mips_close): Add 'self' argument.
4889 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
4890 * record-full.c (record_full_close): Add 'self' argument.
4891 * record-btrace.c (record_btrace_close): Add 'self' argument.
4892 * monitor.h (monitor_close): Add 'self' argument.
4893 * monitor.c (monitor_close): Add 'self' argument.
4894 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
4895 * linux-nat.c (linux_nat_close): Add argument.
4896 * go32-nat.c (go32_close): Add 'self' argument.
4897 * exec.c (exec_close_1): Add 'self' argument.
4898 * ctf.c (ctf_close): Add 'self' argument.
4899 * corelow.c (core_close): Add 'self' argument.
4900 (core_close_cleanup): Update.
4901 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
4902 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
4904 2014-02-19 Tom Tromey <tromey@redhat.com>
4906 * remote.c (remote_load): New function.
4907 (init_remote_ops): Use it.
4909 2014-02-19 Tom Tromey <tromey@redhat.com>
4911 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
4913 * common/linux-btrace.h (linux_supports_btrace): Update.
4914 * remote.c (remote_supports_btrace): Add "self" argument.
4915 * target-delegates.c: Rebuild.
4916 * target.c (target_supports_btrace): Remove.
4917 * target.h (struct target_ops) <to_supports_btrace>: Add
4918 target_ops argument.
4919 (target_supports_btrace): New define.
4921 2014-02-19 Tom Tromey <tromey@redhat.com>
4923 * record-full.c (record_full_beneath_to_resume_ops)
4924 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
4925 (record_full_beneath_to_wait)
4926 (record_full_beneath_to_store_registers_ops)
4927 (record_full_beneath_to_store_registers)
4928 (record_full_beneath_to_xfer_partial_ops)
4929 (record_full_beneath_to_xfer_partial)
4930 (record_full_beneath_to_insert_breakpoint_ops)
4931 (record_full_beneath_to_insert_breakpoint)
4932 (record_full_beneath_to_remove_breakpoint_ops)
4933 (record_full_beneath_to_remove_breakpoint)
4934 (record_full_beneath_to_stopped_by_watchpoint)
4935 (record_full_beneath_to_stopped_data_address)
4936 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
4937 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
4938 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
4939 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
4940 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
4941 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
4942 (tmp_to_stopped_data_address, tmp_to_async): Remove.
4943 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
4944 (record_full_resume, record_full_wait_1)
4945 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
4946 (record_full_store_registers, record_full_xfer_partial)
4947 (record_full_insert_breakpoint, record_full_remove_breakpoint)
4948 (record_full_async, record_full_core_xfer_partial): Use target
4950 * target-delegates.c: Rebuild.
4951 * target.c (current_xfer_partial): Remove.
4952 (update_current_target): Do not INHERIT or de_fault
4953 to_insert_breakpoint, to_remove_breakpoint,
4954 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
4955 to_is_async_p, to_async. Do not set to_xfer_partial field.
4956 (default_xfer_partial): Simplify.
4957 (current_xfer_partial): Remove.
4958 (target_wait, target_resume): Simplify.
4959 (find_default_can_async_p, find_default_is_async_p): Update.
4960 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
4961 to_xfer_partial, to_stopped_by_watchpoint,
4962 to_stopped_data_address.
4963 (target_store_registers): Simplify.
4964 (forward_target_remove_breakpoint)
4965 (forward_target_insert_breakpoint): Remove.
4966 (target_remove_breakpoint, target_insert_breakpoint)
4967 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
4968 * target.h (struct target_ops) <to_resume, to_wait,
4969 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
4970 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
4971 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
4973 (forward_target_remove_breakpoint)
4974 (forward_target_insert_breakpoint): Remove.
4975 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
4977 (record_btrace_insert_breakpoint): Delegate directly.
4979 2014-02-19 Tom Tromey <tromey@redhat.com>
4982 * target-delegates.c: New file.
4983 * target.c: Include target-delegates.c.
4984 (init_dummy_target): Call install_dummy_methods.
4985 (complete_target_initialization): Call install_delegators.
4986 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
4987 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
4988 * make-target-delegates: New file.
4990 2014-02-19 Tom Tromey <tromey@redhat.com>
4992 * record.c (find_record_target): Use find_target_at.
4993 * target.c (find_target_at): New function.
4994 * target.h (find_target_at): Declare.
4996 2014-02-19 Tom Tromey <tromey@redhat.com>
4998 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
5000 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
5002 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
5003 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
5005 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
5007 * linux-nat.c (save_sigtrap): Update.
5008 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
5009 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
5010 (linux_nat_close): Update.
5011 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
5013 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
5015 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
5016 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
5017 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
5018 (tmp_to_async): Add 'ops' argument.
5019 (record_full_stopped_by_watchpoint, record_full_async)
5020 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
5022 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
5023 (m32r_stopped_by_watchpoint): Add 'ops' argument.
5024 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
5025 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
5026 (remote_is_async_p, remote_async): Add 'ops' argument.
5027 (remote_stopped_data_address): Update.
5028 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
5029 * target.c (update_current_target)
5030 (find_default_can_async_p, find_default_is_async_p): Update.
5031 (init_dummy_target): Update.
5032 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
5033 * target.h (struct target_ops) <to_stopped_by_watchpoint,
5034 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
5035 (target_can_async_p, target_is_async_p, target_async)
5036 (target_stopped_by_watchpoint): Update.
5038 2014-02-19 Yao Qi <yao@codesourcery.com>
5041 * gdbarch.sh: Remove startup_gdbarch.
5042 * gdbarch.c: Regenerated.
5043 * gdbarch.h: Likewise.
5045 2014-02-17 Kevin Buettner <kevinb@redhat.com>
5047 * rl78-tdep.c (rl78_g10_register_name): New function.
5048 (rl78_return_value): Add g10 support.
5049 (rl78_gdbarch_init): Register rl78_g10_register_name for the
5052 2014-02-17 Doug Evans <xdje42@gmail.com>
5054 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
5055 (SUBDIR_GUILE_SRCS): Ditto.
5056 (scm-gsmob.o): Ditto.
5058 2014-02-17 Yao Qi <yao@codesourcery.com>
5060 * gnu-nat.c (ILL_RPC): Declare defined function.
5062 2014-02-17 Yao Qi <yao@codesourcery.com>
5064 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
5065 mach_msg_type_number_t.
5066 (gnu_write_inferior): Likewise.
5068 2014-02-17 Yao Qi <yao@codesourcery.com>
5070 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
5072 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
5073 (inf_validate_procs, inf_signal): Likewise.
5074 (S_exception_raise_request): Likewise.
5075 (do_mach_notify_dead_name): Likewise.
5076 (steal_exc_port): Likewise.
5077 (gnu_read_inferior): Change 'copy_count''s type to
5078 mach_msg_type_number_t.
5079 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
5082 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
5084 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
5085 flag. Adjust all users; in particular...
5086 (gnu_wait): ..., don't decrement its value in here...
5087 (gnu_create_inferior): ..., and instead set the flag in here,
5088 around the startup_inferior call, and call that one with
5089 START_INFERIOR_TRAPS_EXPECTED.
5091 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
5092 (ILL_RPC): ... new macro.
5093 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
5094 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
5095 (do_mach_notify_send_once, S_proc_setmsgport_reply)
5096 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
5097 functions with ILL_RPC macro.
5098 (S_proc_pid2task_reply, S_proc_task2pid_reply)
5099 (S_proc_task2proc_reply, S_proc_proc2task_reply)
5100 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
5101 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
5102 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
5103 (S_proc_getlogin_reply, S_proc_getsid_reply)
5104 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
5105 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
5106 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
5107 (S_proc_getnports_reply, S_proc_is_important_reply)
5108 (S_proc_get_code_reply): New stub functions, generated with
5111 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
5112 collected the type check structures.
5114 * reply_mig_hack.awk: Don't expect to see the auto keyword.
5116 2014-02-14 Doug Evans <dje@google.com>
5118 * target.c (target_write_partial): Fix result type.
5120 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
5122 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
5123 the proper offsets to access fpregset_t.
5125 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
5127 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
5128 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
5129 * h8300-tdep.c (setmachinelist): Remove global.
5130 * hppa-tdep.c (hppa_sigtramp): Remove global.
5131 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
5132 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
5133 * ravenscar-thread.c (update_target_observer): Remove global.
5134 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
5136 2014-02-12 Tom Tromey <tromey@redhat.com>
5138 * common/rsp-low.c: Update comments.
5139 * common/rsp-low.h: Update comments.
5141 2014-02-12 Tom Tromey <tromey@redhat.com>
5143 * common/rsp-low.c (convert_ascii_to_int): Remove.
5144 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
5146 2014-02-12 Tom Tromey <tromey@redhat.com>
5148 * common/rsp-low.h (unhexify): Don't declare.
5149 * common/rsp-low.c (unhexify): Remove.
5151 2014-02-12 Tom Tromey <tromey@redhat.com>
5153 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
5154 * common/rsp-low.c (convert_int_to_ascii): Remove.
5156 2014-02-12 Tom Tromey <tromey@redhat.com>
5158 * common/rsp-low.h (hexify): Don't declare.
5159 * common/rsp-low.c (hexify): Remove.
5161 2014-02-12 Tom Tromey <tromey@redhat.com>
5163 * common/rsp-low.c (hexify): Never take strlen of argument.
5165 2014-02-12 Tom Tromey <tromey@redhat.com>
5167 * common/rsp-low.c (bin2hex): Never take strlen of argument.
5168 * remote.c (extended_remote_run, remote_rcmd)
5169 (remote_download_trace_state_variable, remote_save_trace_data)
5170 (remote_set_trace_notes): Update.
5171 * tracepoint.c (encode_source_string, tfile_write_status)
5172 (tfile_write_uploaded_tsv): Update.
5174 2014-02-12 Tom Tromey <tromey@redhat.com>
5176 * tracepoint.c: Include rsp-low.h.
5177 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
5178 * remote.c: Include rsp-low.h.
5179 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
5180 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
5181 (remote_unescape_input): Move to common/rsp-low.c.
5182 * common/rsp-low.h: New file.
5183 * common/rsp-low.c: New file.
5184 * Makefile.in (SFILES): Add common/rsp-low.c.
5185 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
5186 (COMMON_OBS): Add rsp-low.o.
5187 (rsp-low.o): New target.
5189 2014-02-12 Tom Tromey <tromey@redhat.com>
5191 * utils.h: Include print-utils.h.
5192 (host_address_to_string, plongest, pulongest, phex, phex_nz)
5193 (int_string, core_addr_to_string, core_addr_to_string_nz)
5194 (hex_string, hex_string_custom): Don't declare.
5195 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
5196 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
5197 (hex_string_custom, int_string, core_addr_to_string)
5198 (core_addr_to_string_nz, host_address_to_string): Move to
5199 common/print-utils.c.
5200 * common/print-utils.h: New file.
5201 * common/print-utils.c: New file
5202 * Makefile.in (SFILES): Add common/print-utils.c.
5203 (HFILES_NO_SRCDIR): Add common/print-utils.h.
5204 (COMMON_OBS): Add print-utils.o.
5205 (print-utils.o): New target.
5207 2014-02-12 Tom Tromey <tromey@redhat.com>
5209 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
5211 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5213 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
5215 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5217 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
5218 if a PT_IO ptrace request returns sucessfully but indicates that 0
5219 bytes were transferred.
5221 2014-02-12 Pedro Alves <palves@redhat.com>
5222 Kevin Buettner <kevinb@redhat.com>
5224 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
5225 TYPE_INSTANCE_FLAG_CODE_SPACE.
5227 2014-02-12 Pedro Alves <palves@redhat.com>
5229 * h8300-tdep.c (pseudo_from_raw_register)
5230 (raw_from_pseudo_register): New functions.
5231 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
5234 2014-02-12 Pedro Alves <palves@redhat.com>
5236 * h8300-tdep.c (h8300_register_sim_regno): New function.
5237 (h8300_gdbarch_init): Install h8300_register_sim_regno as
5238 gdbarch_register_sim_regno hook.
5240 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
5242 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
5244 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
5246 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
5248 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5250 * obsd-tdep.h (obsd_init_abi): New prototype.
5251 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
5252 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
5253 (obsd_init_abi): New functions.
5254 * i386obsd-tdep.c: Include "obsd-tdep.h".
5255 (i386obsd_init_abi): Call obsd_init_abi.
5256 * amd64obsd-tdep.c: Include "obsd-tdep.h".
5257 (amd64obsd_init_abi): Call obsd_init_abi.
5258 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
5259 obsd-tdep.c to gdb_target_obs.
5261 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
5263 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
5264 double float arguments to 16-byte in the argument slots.
5266 2014-02-11 Doug Evans <xdje42@gmail.com>
5268 * configure.ac: Don't crash if pkg-config is not found and guile
5269 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
5271 * configure: Regenerate.
5273 2014-02-11 Yao Qi <yao@codesourcery.com>
5275 * aix-thread.c (aix_thread_xfer_partial): Update comments.
5276 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
5277 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
5278 * gnu-nat.c (gnu_xfer_memory): Likewise.
5279 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
5280 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5281 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5282 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
5284 2014-02-11 Yao Qi <yao@codesourcery.com>
5286 * target.h (enum target_xfer_error): Rename to ...
5287 (enum target_xfer_status): ... it. New. All users updated.
5288 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
5290 (TARGET_XFER_STATUS_ERROR_P): New macro.
5291 (target_xfer_error_to_string): Remove declaration.
5292 (target_xfer_status_to_string): Declare.
5293 (target_xfer_partial_ftype): Adjust it.
5294 (struct target_ops) <to_xfer_partial>: Return
5295 target_xfer_status. Add argument xfered_len. Update
5297 * target.c (target_xfer_error_to_string): Rename to ...
5298 (target_xfer_status_to_string): ... it. New. All callers
5300 (target_read_live_memory): Likewise. Call target_xfer_partial
5301 instead of target_read.
5302 (memory_xfer_live_readonly_partial): Return
5303 target_xfer_status. Add argument xfered_len.
5304 (raw_memory_xfer_partial): Likewise.
5305 (memory_xfer_partial_1): Likewise.
5306 (memory_xfer_partial): Likewise.
5307 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
5308 properly. Update debug message.
5309 (default_xfer_partial, current_xfer_partial): Likewise.
5310 (target_write_partial): Likewise.
5311 (target_read_partial): Likewise. All callers updated.
5312 (read_whatever_is_readable): Likewise.
5313 (target_write_with_progress): Likewise.
5314 (target_read_alloc_1): Likewise.
5316 * aix-thread.c (aix_thread_xfer_partial): Likewise.
5317 * auxv.c (procfs_xfer_auxv): Likewise.
5318 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
5319 * bfd-target.c (target_bfd_xfer_partial): Likewise.
5320 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
5321 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
5322 * corefile.c (read_memory): Adjust.
5323 * corelow.c (core_xfer_partial): Likewise.
5324 * ctf.c (ctf_xfer_partial): Likewise.
5325 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
5327 (darwin_xfer_partial): Likewise.
5328 * exec.c (section_table_xfer_memory_partial): Likewise. All
5330 (exec_xfer_partial): Likewise.
5331 * exec.h (section_table_xfer_memory_partial): Update
5333 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
5335 (gnu_xfer_partial): Likewise.
5336 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
5337 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
5338 (ia64_hpux_xfer_solib_got): Likewise.
5339 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
5340 type of 'partial_len' to ULONGEST.
5341 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
5342 * linux-nat.c (linux_xfer_siginfo ): Likewise.
5343 (linux_nat_xfer_partial): Likewise.
5344 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
5345 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
5346 * monitor.c (monitor_xfer_memory): Likewise.
5347 (monitor_xfer_partial): Likewise.
5348 * procfs.c (procfs_xfer_partial): Likewise.
5349 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5350 * record-full.c (record_full_xfer_partial): Likewise.
5351 (record_full_core_xfer_partial): Likewise.
5352 * remote-sim.c (gdbsim_xfer_memory): Likewise.
5353 (gdbsim_xfer_partial): Likewise.
5354 * remote.c (remote_write_bytes_aux): Likewise. All callers
5356 (remote_write_bytes, remote_read_bytes): Likewise. All
5358 (remote_flash_erase): Likewise. All callers updated.
5359 (remote_write_qxfer): Likewise. All callers updated.
5360 (remote_read_qxfer): Likewise. All callers updated.
5361 (remote_xfer_partial): Likewise.
5362 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5363 (rs6000_xfer_shared_libraries): Likewise.
5364 * sol-thread.c (sol_thread_xfer_partial): Likewise.
5365 (sol_thread_xfer_partial): Likewise.
5366 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5367 (sparc_xfer_partial): Likewise.
5368 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
5370 (spu_xfer_partial): Likewise.
5371 * spu-multiarch.c (spu_xfer_partial): Likewise.
5372 * tracepoint.c (tfile_xfer_partial): Likewise.
5373 * windows-nat.c (windows_xfer_memory): Likewise.
5374 (windows_xfer_shared_libraries): Likewise.
5375 (windows_xfer_partial): Likewise.
5376 * valprint.c: Replace 'target_xfer_error' with
5377 'target_xfer_status' in comments.
5379 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
5381 Checked in by Joel Brobecker <brobecker@adacore.com>.
5382 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
5384 2014-02-11 Joel Brobecker <brobecker@adacore.com>
5386 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
5387 function parameters.
5389 2014-02-10 Will Newton <will.newton@linaro.org>
5391 * elfread.c (elf_rel_plt_read): Look for a .got section if
5392 looking up .got.plt fails.
5393 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
5394 on address passed to elf_gnu_ifunc_record_cache.
5395 (elf_gnu_ifunc_resolve_addr): Likewise.
5396 (elf_gnu_ifunc_resolver_return_stop): Likewise.
5398 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
5400 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
5401 (X_RETTURN): New macro.
5402 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
5404 * sparc64-tdep.c (sparc64_init_abi): Hook
5405 sparc_in_function_epilogue_p.
5407 2014-02-10 Gary Benson <gbenson@redhat.com>
5409 * symfile-debug.c (debug_qf_expand_symtabs_matching):
5410 Rename name_matcher to symbol_matcher.
5412 2014-02-10 Gary Benson <gbenson@redhat.com>
5414 * symfile-debug.c (debug_qf_expand_symtabs_matching):
5415 Use expand_symtabs_file_matcher_ftype and
5416 expand_symtabs_symbol_matcher_ftype.
5418 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5420 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
5421 (struct ada_symbol_cache): New.
5422 (ada_free_symbol_cache): Forward declare.
5423 (struct ada_pspace_data): New.
5424 (ada_pspace_data_handle): New static global.
5425 (get_ada_pspace_data, ada_pspace_data_cleanup)
5426 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
5427 (cache_space, cache): Delete, now folded inside struct
5429 (ada_get_symbol_cache): New function.
5430 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
5432 (_initialize_ada_language): Remove initialization of cache_space.
5433 Move call to observer_attach_inferior_exit up, grouping it
5434 with the other observer registrations inside this function.
5435 Rename command to be more general. Add call to
5436 register_program_space_data_with_cleanup.
5438 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5440 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
5441 ada_new_objfile_observer.
5442 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
5443 (_initialize_tasks): Update uses of ada_new_objfile_observer
5444 and ada_tasks_normal_stop_observer.
5446 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5448 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
5449 returned by the 'Length attribute to integer.
5451 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5453 * ada-lang.c (_initialize_ada_language): Initialize
5454 cache_space obstack.
5456 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5458 * ada-lang.c (HASH_SIZE): New macro.
5459 (struct cache_entry): New type.
5460 (cache_space, cache): New static globals.
5461 (ada_clear_symbol_cache, find_entry): New functions.
5462 (lookup_cached_symbol, cache_symbol): Implement.
5463 (ada_new_objfile_observer, ada_free_objfile_observer): New.
5464 (_initialize_ada_language): Attach ada_new_objfile_observer
5465 and ada_free_objfile_observer.
5467 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5469 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
5470 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
5471 struct block * parameter.
5472 (ada_lookup_symbol_list_worker): Constify local variable "block".
5473 Remove cast which is no longer necessary.
5475 2014-02-10 Doug Evans <xdje42@gmail.com>
5477 Add Guile as an extension language.
5478 * NEWS: Mention Guile scripting.
5479 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
5480 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
5481 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
5482 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
5483 (CLIBS): Add GUILE_LIBS.
5484 (install-guile): New rule.
5485 (guile.o): New rule.
5486 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
5487 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
5488 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
5489 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
5490 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
5491 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
5492 (scm-type.o, scm-utils.o, scm-value.o): New rules.
5493 * configure.ac: New option --with-guile.
5494 * configure: Regenerate.
5495 * config.in: Regenerate.
5496 * auto-load.c: Remove #include "python/python.h". Add #include
5497 "gdb/section-scripts.h".
5498 (source_section_scripts): Handle Guile scripts.
5499 (_initialize_auto_load): Add name of Guile objfile script to
5500 scripts-directory help text.
5501 * breakpoint.c (condition_command): Tweak comment to include Scheme.
5502 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
5503 (struct breakpoint): New member scm_bp_object.
5504 * defs.h (enum command_control_type): New value guile_control.
5505 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
5507 (show_user): Update comment.
5508 (_initialize_cli_cmds): Update help text for "show user". Update help
5509 text for max-user-call-depth.
5510 * cli/cli-script.c: Remove #include "python/python.h". Add #include
5512 (multi_line_command_p): Add guile_control.
5513 (print_command_lines): Handle guile_control.
5514 (execute_control_command, recurse_read_control_structure): Ditto.
5515 (process_next_line): Recognize "guile" commands.
5516 * disasm.c (gdb_disassemble_info): Make non-static.
5517 * disasm.h: #include "dis-asm.h".
5518 (struct gdbarch): Add forward decl.
5519 (gdb_disassemble_info): Declare.
5520 * extension.c: #include "guile/guile.h".
5521 (extension_languages): Add guile.
5522 (get_ext_lang_defn): Handle EXT_LANG_GDB.
5523 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
5524 * gdbtypes.c (get_unsigned_type_max): New function.
5525 (get_signed_type_minmax): New function.
5526 * gdbtypes.h (get_unsigned_type_max): Declare.
5527 (get_signed_type_minmax): Declare.
5528 * guile/README: New file.
5529 * guile/guile-internal.h: New file.
5530 * guile/guile.c: New file.
5531 * guile/guile.h: New file.
5532 * guile/scm-arch.c: New file.
5533 * guile/scm-auto-load.c: New file.
5534 * guile/scm-block.c: New file.
5535 * guile/scm-breakpoint.c: New file.
5536 * guile/scm-disasm.c: New file.
5537 * guile/scm-exception.c: New file.
5538 * guile/scm-frame.c: New file.
5539 * guile/scm-gsmob.c: New file.
5540 * guile/scm-iterator.c: New file.
5541 * guile/scm-lazy-string.c: New file.
5542 * guile/scm-math.c: New file.
5543 * guile/scm-objfile.c: New file.
5544 * guile/scm-ports.c: New file.
5545 * guile/scm-pretty-print.c: New file.
5546 * guile/scm-safe-call.c: New file.
5547 * guile/scm-string.c: New file.
5548 * guile/scm-symbol.c: New file.
5549 * guile/scm-symtab.c: New file.
5550 * guile/scm-type.c: New file.
5551 * guile/scm-utils.c: New file.
5552 * guile/scm-value.c: New file.
5553 * guile/lib/gdb.scm: New file.
5554 * guile/lib/gdb/boot.scm: New file.
5555 * guile/lib/gdb/experimental.scm: New file.
5556 * guile/lib/gdb/init.scm: New file.
5557 * guile/lib/gdb/iterator.scm: New file.
5558 * guile/lib/gdb/printing.scm: New file.
5559 * guile/lib/gdb/types.scm: New file.
5560 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
5561 (VPATH): Add $(GUILE_SRCDIR).
5562 (GUILE_DIR): New variable.
5563 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
5564 (all): Add stamp-guile dependency.
5565 (stamp-guile): New rule.
5566 (clean-guile, install-guile, uninstall-guile): New rules.
5567 (install-only): Add install-guile dependency.
5568 (uninstall): Add uninstall-guile dependency.
5569 (clean): Add clean-guile dependency.
5571 2014-02-09 Doug Evans <xdje42@gmail.com>
5573 Revert this patch (which I approved, mea culpa).
5575 2014-02-08 Mark Kettenis <kettenis@gnu.org>
5577 * Makefile.in (all-lib): Remove.
5578 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
5580 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5582 Fix Python stack corruption.
5583 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
5586 2014-02-08 Mark Kettenis <kettenis@gnu.org>
5588 * Makefile.in (all-lib): Remove.
5589 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
5591 2014-02-07 Doug Evans <dje@google.com>
5593 * extension-priv.h (extension_language_script_ops): Add comment.
5594 (extension_language_ops): Add comment.
5595 (active_ext_lang_state): Fix typo in comment.
5597 2014-02-07 Pedro Alves <palves@redhat.com>
5599 PR breakpoints/16292
5600 * infrun.c (handle_signal_stop) <signal arrives while stepping
5601 over a breakpoint>: Switch back to the stepping thread.
5603 2014-02-07 Yao Qi <yao@codesourcery.com>
5605 * target.c (target_xfer_partial): Return zero if LEN is zero.
5607 2014-02-07 Yao Qi <yao@codesourcery.com>
5609 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
5610 (ld_so_xfer_auxv): Likewise.
5611 * bfd-target.c (target_bfd_xfer_partial): Likewise.
5612 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
5613 * corelow.c (core_xfer_partial): Likewise.
5614 * ctf.c (ctf_xfer_partial): Likewise.
5615 * darwin-nat.c (darwin_read_dyld_info): Likewise.
5616 (darwin_xfer_partial): Likewise.
5617 * exec.c (exec_xfer_partial): Likewise.
5618 * gnu-nat.c (gnu_xfer_partial): Likewise.
5619 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
5620 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
5621 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
5622 * linux-nat.c (linux_xfer_siginfo): Likewise.
5623 (linux_proc_xfer_spu): Likewise.
5624 * procfs.c (procfs_xfer_partial): Likewise.
5625 * record-full.c (record_full_xfer_partial): Likewise.
5626 (record_full_core_xfer_partial): Likewise.
5627 * remote-sim.c (gdbsim_xfer_partial): Likewise.
5628 * remote.c (remote_write_qxfer): Likewise.
5629 (remote_write_qxfer, remote_read_qxfer): Likewise.
5630 (remote_xfer_partial): Likewise.
5631 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5632 (rs6000_xfer_shared_libraries): Likewise.
5633 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5634 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
5635 (spu_xfer_partial): Likewise.
5636 * target.c (memory_xfer_partial_1): Likewise.
5637 * tracepoint.c (tfile_xfer_partial): Likewise.
5638 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
5639 (windows_xfer_partial): Likewise.
5641 2014-02-07 Yao Qi <yao@codesourcery.com>
5643 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
5645 (core_xfer_shared_libraries_aix): Likewise.
5646 * gdbarch.c, gdbarch.h: Regenerated.
5647 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
5648 ULONGEST. Change 'len_avail' type to ULONGEST.
5649 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
5650 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
5652 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
5654 2014-02-07 Yao Qi <yao@codesourcery.com>
5656 * corefile.c (memory_error): Get 'exception' from ERR and pass
5657 'exception' to throw_error.
5659 2014-02-06 Doug Evans <xdje42@gmail.com>
5661 * configure.ac (libpython checking): Remove all but python.o from
5662 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
5663 * configure: Regenerate.
5665 * Makefile.in (SFILES): Add extension.c.
5666 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
5667 (COMMON_OBS): Add extension.o.
5668 * extension.h: New file.
5669 * extension-priv.h: New file.
5670 * extension.c: New file.
5672 * python/python-internal.h: #include "extension.h".
5673 (gdbpy_auto_load_enabled): Declare.
5674 (gdbpy_apply_val_pretty_printer): Declare.
5675 (gdbpy_apply_frame_filter): Declare.
5676 (gdbpy_preserve_values): Declare.
5677 (gdbpy_breakpoint_cond_says_stop): Declare.
5678 (gdbpy_breakpoint_has_cond): Declare.
5679 (void source_python_script_for_objfile): Delete.
5680 * python/python.c: #include "extension-priv.h".
5681 Delete inclusion of "observer.h".
5682 (extension_language_python): Moved here and renamed from
5683 script_language_python in py-auto-load.c.
5684 Redefined to be of type extension_language_defn.
5685 (python_extension_script_ops): New global.
5686 (python_extension_ops): New global.
5687 (struct python_env): New member previous_active.
5688 (restore_python_env): Call restore_active_ext_lang.
5689 (ensure_python_env): Call set_active_ext_lang.
5690 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
5692 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
5694 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
5696 (gdbpy_eval_from_control_command): Renamed from
5697 eval_python_from_control_command, made static. New arg extlang.
5698 (gdbpy_source_script) Renamed from source_python_script, made static.
5700 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
5701 result to int. New arg extlang.
5702 (gdbpy_source_objfile_script): Renamed from
5703 source_python_script_for_objfile, made static. New arg extlang.
5704 (gdbpy_start_type_printers): Renamed from start_type_printers, made
5705 static. New args extlang, extlang_printers. Change result type to
5707 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
5708 static. New arg extlang. Rename arg printers to extlang_printers
5709 and change type to ext_lang_type_printers *.
5710 (gdbpy_free_type_printers): Renamed from free_type_printers, made
5711 static. Replace argument arg with extlang, extlang_printers.
5712 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
5713 (!HAVE_PYTHON, source_python_script): Delete.
5714 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
5715 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
5716 (!HAVE_PYTHON, start_type_printers): Delete.
5717 (!HAVE_PYTHON, apply_type_printers): Delete.
5718 (!HAVE_PYTHON, free_type_printers): Delete.
5719 (_initialize_python): Delete call to observer_attach_before_prompt.
5720 (finalize_python): Set/restore active extension language.
5721 (gdbpy_finish_initialization) Renamed from
5722 finish_python_initialization, made static. New arg extlang.
5723 (gdbpy_initialized): New function.
5724 * python/python.h: #include "extension.h". Delete #include
5725 "value.h", "mi/mi-cmds.h".
5726 (extension_language_python): Declare.
5727 (GDBPY_AUTO_FILE_NAME): Delete.
5728 (enum py_bt_status): Moved to extension.h and renamed to
5730 (enum frame_filter_flags): Moved to extension.h.
5731 (enum py_frame_args): Moved to extension.h and renamed to
5732 ext_lang_frame_args.
5733 (finish_python_initialization): Delete.
5734 (eval_python_from_control_command): Delete.
5735 (source_python_script): Delete.
5736 (apply_val_pretty_printer): Delete.
5737 (apply_frame_filter): Delete.
5738 (preserve_python_values): Delete.
5739 (gdbpy_script_language_defn): Delete.
5740 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
5741 (start_type_printers, apply_type_printers, free_type_printers): Delete.
5743 * auto-load.c: #include "extension.h".
5744 (GDB_AUTO_FILE_NAME): Delete.
5745 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
5746 (script_language_gdb): Delete, moved to extension.c and renamed to
5747 extension_language_gdb.
5748 (source_gdb_script_for_objfile): Delete.
5749 (auto_load_pspace_info): New member unsupported_script_warning_printed.
5750 (loaded_script): Change type of language member to
5751 struct extension_language_defn *.
5752 (init_loaded_scripts_info): Initialize
5753 unsupported_script_warning_printed.
5754 (maybe_add_script): Make static. Change type of language arg to
5755 struct extension_language_defn *.
5756 (clear_section_scripts): Reset unsupported_script_warning_printed.
5757 (auto_load_objfile_script_1): Rewrite to use extension language API.
5758 (auto_load_objfile_script): Make public. Remove support-compiled-in
5759 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
5760 (source_section_scripts): Rewrite to use extension language API.
5761 (load_auto_scripts_for_objfile): Rewrite to use
5762 auto_load_scripts_for_objfile.
5763 (collect_matching_scripts_data): Change type of language member to
5764 struct extension_language_defn *.
5765 (auto_load_info_scripts): Change type of language arg to
5766 struct extension_language_defn *.
5767 (unsupported_script_warning_print): New function.
5768 (script_not_found_warning_print): Make static.
5769 (_initialize_auto_load): Rewrite construction of scripts-directory
5771 * auto-load.h (struct objfile): Add forward decl.
5772 (struct script_language): Delete.
5773 (struct auto_load_pspace_info): Add forward decl.
5774 (struct extension_language_defn): Add forward decl.
5775 (maybe_add_script): Delete.
5776 (auto_load_objfile_script): Declare.
5777 (script_not_found_warning_print): Delete.
5778 (auto_load_info_scripts): Update prototype.
5779 (auto_load_gdb_scripts_enabled): Declare.
5780 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
5781 auto_load_python_scripts_enabled and made public.
5782 (script_language_python): Delete, moved to python.c.
5783 (gdbpy_script_language_defn): Delete.
5784 (info_auto_load_python_scripts): Update to use
5785 extension_language_python.
5787 * breakpoint.c (condition_command): Replace call to
5788 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
5789 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
5790 with call to breakpoint_ext_lang_cond_says_stop.
5791 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
5792 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
5793 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
5794 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
5796 (local_setattro): Print name of extension language with existing
5799 * valprint.c (val_print, value_print): Update to call
5800 apply_ext_lang_val_pretty_printer.
5801 * cp-valprint.c (cp_print_value): Update call to
5802 apply_ext_lang_val_pretty_printer.
5803 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
5804 (gdbpy_apply_val_pretty_printer): Renamed from
5805 apply_val_pretty_printer. New arg extlang.
5806 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
5808 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
5809 extension language API.
5810 * cli/cli-script.c (execute_control_command): Update to call
5811 eval_ext_lang_from_control_command.
5813 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
5814 enum ext_lang_bt_status values. Update call to
5815 apply_ext_lang_frame_filter.
5816 (mi_cmd_stack_list_locals): Ditto.
5817 (mi_cmd_stack_list_args): Ditto.
5818 (mi_cmd_stack_list_variables): Ditto.
5819 * mi/mi-main.c: Delete #include "python/python-internal.h".
5820 Add #include "extension.h".
5821 (mi_cmd_list_features): Replace reference to python internal variable
5822 gdb_python_initialized with call to ext_lang_initialized_p.
5824 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
5825 Update to use enum ext_lang_frame_args. Update to call
5826 apply_ext_lang_frame_filter.
5827 * python/py-framefilter.c (extract_sym): Update to use enum
5829 (extract_value, py_print_type, py_print_value): Ditto.
5830 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
5831 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
5832 (py_print_frame): Ditto.
5833 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
5834 New arg extlang. Update to use enum ext_lang_bt_status.
5836 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
5837 finish_python_initialization. Replace with call to
5838 finish_ext_lang_initialization.
5840 * typeprint.c (do_free_global_table): Update to call
5841 free_ext_lang_type_printers.
5842 (create_global_typedef_table): Update to call
5843 start_ext_lang_type_printers.
5844 (find_global_typedef): Update to call apply_ext_lang_type_printers.
5845 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
5846 (type_print_options): Change type of global_printers from "void *"
5847 to "struct ext_lang_type_printers *".
5849 * value.c (preserve_values): Update to call preserve_ext_lang_values.
5850 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
5851 (gdbpy_preserve_values): Renamed from preserve_python_values.
5853 (!HAVE_PYTHON, preserve_python_values): Delete.
5855 * utils.c (quit_flag): Delete, moved to extension.c.
5856 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
5859 * eval.c: Delete #include "python/python.h".
5860 * main.c: Delete #include "python/python.h".
5862 * defs.h: Update comment.
5864 2014-02-06 Joel Brobecker <brobecker@adacore.com>
5868 2014-02-05 Mark Kettenis <kettenis@gnu.org>
5870 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
5873 2014-02-05 Yao Qi <yao@codesourcery.com>
5875 * remote.c (remote_pass_signals): Remove local 'buf' and use
5877 (remote_program_signals): Likewise.
5879 2014-02-05 Yao Qi <yao@codesourcery.com>
5881 * ctf.c: Include "inferior.h" and "gdbthread.h".
5882 (CTF_PID): A new macro.
5883 (ctf_open): Call inferior_appeared and add_thread_silent.
5884 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
5885 (ctf_thread_alive): New function.
5886 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
5888 2014-02-05 Yao Qi <yao@codesourcery.com>
5892 2013-05-24 Yao Qi <yao@codesourcery.com>
5894 * tracepoint.c (TFILE_PID): Remove.
5895 (tfile_open): Don't add thread and inferior.
5896 (tfile_close): Don't set 'inferior_ptid'. Don't call
5897 exit_inferior_silent.
5898 (tfile_thread_alive): Remove.
5899 (init_tfile_ops): Don't set field 'to_thread_alive' of
5902 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
5904 * remote.c (remote_start_remote): Call remote_check_symbols even
5905 if only symbol-file (not file) has been given.
5907 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5909 * gdbarch.sh (skip_entrypoint): New callback.
5910 * gdbarch.c, gdbarch.h: Regenerate.
5911 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
5912 * infrun.c (fill_in_stop_func): Likewise.
5913 * ppc-linux-tdep.c: Include "elf/ppc64.h".
5914 (ppc_elfv2_elf_make_msymbol_special): New function.
5915 (ppc_elfv2_skip_entrypoint): Likewise.
5916 (ppc_linux_init_abi): Install them for ELFv2.
5918 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5920 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
5921 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
5922 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
5923 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
5924 structures returned in GPRs.
5926 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5928 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
5929 offset to the stack parameter list for the ELFv2 ABI.
5931 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5933 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
5934 set_gdbarch_convert_from_func_ptr_addr and
5935 set_gdbarch_elf_make_msymbol_special for ELFv1.
5936 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
5937 function descriptors on ELFv1.
5938 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
5939 set up r12 at function entry.
5941 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5943 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
5944 (struct gdbarch_tdep): New member elf_abi.
5946 * rs6000-tdep.c: Include "elf/ppc64.h".
5947 (rs6000_gdbarch_init): Detect ELF ABI version.
5949 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5951 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
5952 within a register pair holding a DFP 128-bit value on little-endian.
5953 (ppc64_sysv_abi_return_value_base): Likewise.
5954 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
5955 (dfp_pseudo_register_write): Likewise.
5957 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5959 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
5960 offset on little-endian when passing _Decimal32.
5961 (ppc64_sysv_abi_return_value_base): Likewise for return values.
5963 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5965 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
5966 of the overlapped FP register within the VSX register on little-
5968 (efpr_pseudo_register_write): Likewise.
5970 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5972 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
5973 offset on little-endian when passing small structures.
5975 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5977 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
5978 (struct ppc64_sysv_argpos): New data structure.
5979 (ppc64_sysv_abi_push_float): Remove.
5980 (ppc64_sysv_abi_push_val): New function.
5981 (ppc64_sysv_abi_push_integer): Likewise.
5982 (ppc64_sysv_abi_push_freg): Likewise.
5983 (ppc64_sysv_abi_push_vreg): Likewise.
5984 (ppc64_sysv_abi_push_param): Likewise.
5985 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
5986 (ppc64_sysv_abi_return_value_base): New function.
5987 (ppc64_sysv_abi_return_value): Refactor to use it.
5989 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5991 * NEWS: Document new target powerpc64le-*-linux*.
5993 2014-02-04 Mark Kettenis <kettenis@gnu.org>
5995 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
5996 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
5998 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
5999 register set used in ELF core dumps. Add floating-point register set.
6001 2014-02-03 Kevin Buettner <kevinb@redhat.com>
6003 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
6004 dwarf2_to_gdb[] table using symbolic constants. Adjust
6005 penultimate entry from number representing the PC register
6006 to symbolic constant representing the MDR register. Add
6007 constant for the PC register to the end of the table.
6009 2014-02-03 Mark Kettenis <kettenis@gnu.org>
6011 * bsd-kvm.c: Include <sys/param.h>
6013 2014-02-03 Mark Kettenis <kettenis@gnu.org>
6015 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
6017 2014-01-31 Joel Brobecker <brobecker@adacore.com>
6019 * ada-lang.h (clear_ada_sym_cache): Delete.
6021 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
6023 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
6025 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
6027 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
6028 the sigreturn register save area only if the syscall is
6031 2014-01-29 Joel Brobecker <brobecker@adacore.com>
6033 * valops.c (value_slice): Minor reformatting.
6035 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
6037 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
6039 2014-01-28 Joel Brobecker <brobecker@adacore.com>
6041 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
6043 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
6044 (ada_ignore_descriptive_types_p): New static global.
6045 (find_parallel_type_by_descriptive_type): Return immediately
6046 if ada_ignore_descriptive_types_p is set.
6047 (_initialize_ada_language): Register new commands "maintenance
6048 set ada", "maintenance show ada", "maintenance set ada
6049 ignore-descriptive-types" and "maintenance show ada
6050 ignore-descriptive-types".
6051 * NEWS: Add entry for new "maint ada set/show
6052 ignore-descriptive-types" commands.
6054 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
6056 * record-btrace.c (record_btrace_close): Call btrace_teardown
6059 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6061 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
6064 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6066 * ada-typeprint (type_is_full_subrange_of_target_type):
6068 (print_range): Add parameter bounds_prefered_p. If not set,
6069 try printing range types using the name of their base type.
6070 (print_range_type): Add parameter bounds_prefered_p.
6071 Use it in call to print_range.
6072 (print_array_type, ada_print_type): Update calls to print_range
6073 and print_range_type.
6075 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6077 * ada-typeprint.c (print_array_type, print_choices, print_range)
6078 (print_range_bound, print_dynamic_range_bound, print_range_type):
6081 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6083 * ada-typeprint.c (print_range): Add missing empty line
6084 after local declaration.
6086 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6088 * ada-valprint.c (print_optional_low_bound): Get index_type's
6089 target type for as long as it is a TYPE_CODE_RANGE.
6091 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6093 * procfs.c (procfs_make_note_section): Remove assertion and
6096 2014-01-24 Yao Qi <yao@codesourcery.com>
6098 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
6099 * corelow.c (get_core_siginfo): Likewise.
6101 2014-01-24 Yao Qi <yao@codesourcery.com>
6103 * remote.c (remote_write_bytes_aux): Change type of 'len' to
6104 ULONGEST. Don't check 'len' is negative.
6105 (remote_write_bytes): Change type of 'len' to ULONGEST.
6107 2014-01-23 Tom Tromey <tromey@redhat.com>
6110 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
6111 Handle exception from frame.block.
6112 (FrameVars.fetch_frame_locals): Likewise.
6114 2014-01-23 Tom Tromey <tromey@redhat.com>
6117 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
6118 on a NULL pointer. Move "goto error" to correct place.
6120 2014-01-23 Tom Tromey <tromey@redhat.com>
6123 * python/py-framefilter.c (apply_frame_filter): Call
6124 ensure_python_env after computing gdbarch.
6126 2014-01-23 Yao Qi <yao@codesourcery.com>
6128 * target.c (raw_memory_xfer_partial): Change argument type
6129 from void * to gdb_byte *.
6130 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
6132 2014-01-22 Doug Evans <dje@google.com>
6134 New gdbserver option --debug-format=timestamp.
6137 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
6139 * syscalls/s390x-linux.xml: New file.
6140 * syscalls/s390-linux.xml: New file.
6141 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
6142 (XML_SYSCALL_FILENAME_S390X): Likewise.
6143 (op_svc): New enum value for SVC opcode.
6144 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
6145 (s390_linux_get_syscall_number): New function.
6146 (s390_gdbarch_init): Register '*get_syscall_number' and the
6147 syscall xml file name.
6148 * data-directory/Makefile.in (SYSCALLS_FILES): Add
6149 "s390-linux.xml" and "s390x-linux.xml".
6150 * NEWS: Announce new feature.
6152 2014-01-22 Baruch Siach <baruch@tkos.co.il>
6154 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
6156 2014-01-22 Pedro Alves <palves@redhat.com>
6158 * xtensa-config.c: Include defs.h.
6160 2014-01-22 Joel Brobecker <brobecker@adacore.com>
6162 * common/common-utils.h: Add "ARI:" comment beside __func__
6165 2014-01-22 Joel Brobecker <brobecker@adacore.com>
6167 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
6168 documentation a bit.
6170 2014-01-21 Roland McGrath <mcgrathr@google.com>
6172 * configure.ac: Call AM_PROG_INSTALL_STRIP.
6173 * configure: Regenerate.
6174 * aclocal.m4: Regenerate.
6175 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
6176 New substituted variables.
6177 (install-strip): New target.
6178 (INSTALL_SCRIPT): New substituted variable.
6179 (FLAGS_TO_PASS): Add it.
6180 (install-only): Use $(INSTALL_SCRIPT) rather than
6181 $(INSTALL_PROGRAM) for gcore.
6183 2014-01-20 Tom Tromey <tromey@redhat.com>
6185 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
6188 2014-01-20 Tom Tromey <tromey@redhat.com>
6190 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
6191 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
6192 (deprecated_cmd_warning, complete_on_cmdlist): Update.
6193 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
6194 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
6195 (struct cmd_list_element) <flags>: Remove.
6196 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
6197 doc_allocated>: New fields.
6198 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
6200 * maint.c (maintenance_do_deprecate): Update.
6201 * top.c (execute_command): Update.
6203 2014-01-20 Baruch Siach <baruch@tkos.co.il>
6205 * xtensa-linux-nat.c: Include asm/ptrace.h.
6207 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6209 * Makefile.in (SFILES): Add d-support.c.
6210 (COMMON_OBS): Add d-support.o.
6211 * d-lang.h (d_parse_symbol): Add comment, now defined in
6213 * d-lang.c (parse_call_convention)
6214 (parse_attributes, parse_function_types)
6215 (parse_function_args, parse_type, parse_identifier)
6216 (call_convention_p, d_parse_symbol): Move functions to ...
6217 * d-support.c: ... New file.
6219 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6221 * d-lang.h (d_parse_symbol): Add declaration.
6222 * d-lang.c (extract_identifiers)
6223 (extract_type_info): Remove functions.
6224 (parse_call_convention, parse_attributes)
6225 (parse_function_types, parse_function_args)
6226 (parse_type, parse_identifier, call_convention_p)
6227 (d_parse_symbol): New functions.
6228 (d_demangle): Use d_parse_symbol to demangle D symbols.
6230 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6232 * d-lang.h (struct builtin_d_type): New data type.
6233 (builtin_d_type): Add declaration.
6234 * d-lang.c (d_language_arch_info, build_d_types)
6235 (builtin_d_type): New functions.
6236 (enum d_primitive_types): New data type.
6237 (d_language_defn): Change c_language_arch_info to
6238 d_language_arch_info.
6239 (d_type_data): New static variable.
6240 (_initialize_d_language): Initialize d_type_data.
6242 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6244 * d-lang.h (d_main_name): Add declaration.
6245 * d-lang.c (d_main_name): New function.
6246 * symtab.c (find_main_name): Add call to d_main_name.
6248 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6250 * d-lang.c (d_language_defn): Change macro_expansion_c to
6253 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6255 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6257 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
6259 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
6260 gdb_exception" declaration.
6261 * remote.c (getpkt_or_notif_sane): Likewise.
6263 2014-01-17 Doug Evans <dje@google.com>
6265 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
6266 function, contents of dirnames_to_char_ptr_vec_append moved here.
6267 (delim_string_to_char_ptr_vec): New function.
6268 (dirnames_to_char_ptr_vec_append): Rewrite.
6269 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
6271 2014-01-17 Doug Evans <dje@google.com>
6273 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
6275 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
6276 #include "common-utils.h".
6277 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
6278 * common/vec.h (VEC_ASSERT_PASS): Update.
6279 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
6280 (MACH_CHECK_ERROR): Update.
6282 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
6284 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
6286 * gdbarch.h: Regenerate.
6288 2014-01-16 Tom Tromey <tromey@redhat.com>
6290 * value.c (struct value) <regnum>: Move earlier.
6292 2014-01-16 Tom Tromey <tromey@redhat.com>
6294 * remote.c (extended_remote_create_inferior): Rename from
6295 extended_remote_create_inferior_1. Add "ops" argument. Remove
6298 2014-01-16 Pedro Alves <palves@redhat.com>
6300 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
6301 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
6304 2014-01-16 Doug Evans <dje@google.com>
6306 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
6308 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6310 * btrace.h (btrace_thread_flag): New.
6311 (struct btrace_thread_info) <flags>: New.
6312 * record-btrace.c (record_btrace_resume_thread)
6313 (record_btrace_find_thread_to_move, btrace_step_no_history)
6314 (btrace_step_stopped, record_btrace_start_replaying)
6315 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
6316 (record_btrace_find_resume_thread): New.
6317 (record_btrace_resume, record_btrace_wait): Extend.
6318 (record_btrace_can_execute_reverse): New.
6319 (record_btrace_open): Fail in non-stop mode.
6320 (record_btrace_set_replay): Split into this, ...
6321 (record_btrace_stop_replaying): ... this, ...
6322 (record_btrace_clear_histories): ... and this.
6323 (init_record_btrace_ops): Init to_can_execute_reverse.
6324 * NEWS: Announce it.
6326 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6328 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
6329 (forward_target_decr_pc_after_break)
6330 (target_decr_pc_after_break): New.
6331 * target.c (forward_target_decr_pc_after_break)
6332 (target_decr_pc_after_break): New.
6333 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
6334 instead of gdbarch_decr_pc_after_break.
6335 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
6336 instead of gdbarch_decr_pc_after_break.
6337 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
6338 instead of gdbarch_decr_pc_after_break.
6339 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
6340 instead of gdbarch_decr_pc_after_break.
6341 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
6342 instead of gdbarch_decr_pc_after_break.
6343 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
6344 instead of gdbarch_decr_pc_after_break.
6346 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6348 * btrace.c: Include regcache.h.
6349 (btrace_add_pc): New.
6350 (btrace_enable): Call btrace_add_pc.
6351 (btrace_is_empty): New.
6352 * btrace.h (btrace_is_empty): New.
6353 * record-btrace.c (require_btrace, record_btrace_info): Call
6356 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6358 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
6359 Support delta reads.
6360 (linux_disable_btrace): Change return type.
6361 * common/linux-btrace.h (linux_read_btrace): Change parameters
6362 and return type to allow error reporting. Update users.
6363 (linux_disable_btrace): Change return type. Update users.
6364 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
6366 (btrace_error): New.
6367 (btrace_block) <begin>: Comment on BEGIN == 0.
6368 * btrace.c (btrace_compute_ftrace): Start from the end of
6370 (btrace_stitch_trace, btrace_clear_history): New.
6371 (btrace_fetch): Read delta trace, return if replaying.
6372 (btrace_clear): Move clear history code to btrace_clear_history.
6373 (parse_xml_btrace): Throw an error if parsing failed.
6374 * target.h (struct target_ops) <to_read_btrace>: Change parameters
6375 and return type to allow error reporting.
6376 (target_read_btrace): Change parameters and return type to allow
6378 * target.c (target_read_btrace): Update.
6379 * remote.c (remote_read_btrace): Support delta reads. Pass
6381 * NEWS: Announce it.
6383 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6385 * record.h (record_btrace_frame_unwind)
6386 (record_btrace_tailcall_frame_unwind): New declarations.
6387 * dwarf2-frame: Include record.h
6388 (dwarf2_frame_cfa): Throw an error for btrace frames.
6389 * record-btrace.c: Include hashtab.h.
6390 (btrace_get_bfun_name): New.
6391 (btrace_call_history): Call btrace_get_bfun_name.
6392 (struct btrace_frame_cache): New.
6394 (bfcache_hash, bfcache_eq, bfcache_new): New.
6395 (btrace_get_frame_function): New.
6396 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
6397 (record_btrace_frame_this_id): Compute own id.
6398 (record_btrace_frame_prev_register): Provide PC, throw_error
6399 for all other registers.
6400 (record_btrace_frame_sniffer): Detect btrace frames.
6401 (record_btrace_tailcall_frame_sniffer): New.
6402 (record_btrace_frame_dealloc_cache): New.
6403 (record_btrace_frame_unwind): Add new functions.
6404 (record_btrace_tailcall_frame_unwind): New.
6405 (_initialize_record_btrace): Allocate cache.
6406 * btrace.c (btrace_clear): Call reinit_frame_cache.
6407 * NEWS: Announce it.
6409 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6411 * record-btrace.c (record_btrace_set_replay)
6412 (record_btrace_goto_begin, record_btrace_goto_end)
6413 (record_btrace_goto): New.
6414 (init_record_btrace_ops): Initialize them.
6415 * NEWS: Announce it.
6417 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6419 * record-btrace.c (record_btrace_find_new_threads)
6420 (record_btrace_thread_alive): New.
6421 (init_record_btrace_ops): Initialize to_find_new_threads and
6424 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6426 * record-btrace.c (record_btrace_resume): New.
6427 (record_btrace_wait): New.
6428 (init_record_btrace_ops): Initialize to_wait and to_resume.
6430 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6432 * record-btrace.c (record_btrace_xfer_partial)
6433 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
6434 (record_btrace_allow_memory_access): New.
6435 (init_record_btrace_ops): Initialize new methods.
6436 * target.c (raw_memory_xfer_partial): Bail out if target reports
6437 that this memory is not available.
6439 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6441 * target.h (target_ops) <to_insert_breakpoint>
6442 <to_remove_breakpoint>: Add target_ops parameter.
6443 (forward_target_insert_breakpoint): New.
6444 (forward_target_remove_breakpoint): New.
6445 (memory_remove_breakpoint, memory_insert_breakpoint):
6446 Add target_ops parameter.
6447 * target.c (target_insert_breakpoint): Split into this and ...
6448 (forward_target_insert_breakpoint): ... this.
6449 (target_remove_breakpoint): Split into this and ...
6450 (forward_target_remove_breakpoint): ... this.
6451 (debug_to_insert_breakpoint): Add target_ops parameter.
6452 Call forward_target_insert_breakpoint.
6453 (debug_to_remove_breakpoint): Add target_ops parameter.
6454 Call forward_target_remove_breakpoint.
6455 (update_current_target): Do not inherit or default to_insert_breakpoint
6456 and to_remove_breakpoint.
6457 * corelow.c (ignore): Add target_ops parameter.
6458 * exec.c (ignore): Add target_ops parameter.
6459 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
6460 Add target_ops parameter.
6461 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
6462 Add target_ops parameter.
6463 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
6464 Add target_ops parameter.
6465 * record-full.c (record_full_beneath_to_insert_breakpoint)
6466 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
6467 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
6468 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
6469 (record_full_core_remove_breakpoint): Add target_ops parameter.
6471 (record_full_beneath_to_insert_breakpoint_ops)
6472 (record_full_beneath_to_remove_breakpoint_ops)
6473 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
6474 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
6475 tmp_to_remove_breakpoint_ops,
6476 record_full_beneath_to_insert_breakpoint_ops, and
6477 record_full_beneath_to_remove_breakpoint_ops.
6478 * remote-m32r-sdi.c (m32r_insert_breakpoint)
6479 (m32r_remove_breakpoint): Add target_ops parameter.
6480 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
6481 Add target_ops parameter.
6482 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
6483 Add target_ops parameter.
6485 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6486 Markus Metzger <markus.t.metzger@intel.com>
6488 * record-btrace.c: Include frame-unwind.h.
6489 (record_btrace_frame_unwind_stop_reason)
6490 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
6491 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
6493 (init_record_btrace_ops): Install it.
6495 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6497 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
6500 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6502 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
6505 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6507 * frame-unwind.c: Include target.h.
6508 (frame_unwind_try_unwinder): New function with code from ...
6509 (frame_unwind_find_by_frame): ... here. New variable
6510 unwinder_from_target, call also target_get_unwinder)
6511 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
6512 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
6513 * target.h (struct target_ops): New fields to_get_unwinder and
6514 to_get_tailcall_unwinder.
6515 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
6517 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6519 * record-btrace.c (record_btrace_fetch_registers)
6520 (record_btrace_store_registers)
6521 (record_btrace_to_prepare_to_store): New.
6522 (init_record_btrace_ops): Add the above.
6524 2014-01-16 Tom Tromey <tromey@redhat.com>
6526 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
6527 * target.h (struct target_ops) <to_prepare_to_store>: Add
6529 (target_prepare_to_store): Add argument.
6530 * target.c (debug_to_prepare_to_store): Add argument.
6531 (update_current_target): Update.
6532 * remote.c (remote_prepare_to_store): Add 'self' argument.
6533 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
6534 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
6535 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
6536 * record-full.c (record_full_core_prepare_to_store): Add 'self'
6538 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
6539 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
6540 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
6541 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
6542 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
6544 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6546 * btrace.h (replay) <replay>: New.
6547 (btrace_is_replaying): New.
6548 * btrace.c (btrace_clear): Free replay iterator.
6549 (btrace_is_replaying): New.
6550 * record-btrace.c (record_btrace_is_replaying): New.
6551 (record_btrace_info): Print insn number if replaying.
6552 (record_btrace_insn_history): Start at replay position.
6553 (record_btrace_call_history): Start at replay position.
6554 (init_record_btrace_ops): Init to_record_is_replaying.
6556 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6558 * record-btrace.c (record_btrace_insn_history_range): Include
6560 (record_btrace_insn_history_from): Adjust range.
6561 (record_btrace_call_history_range): Include
6563 (record_btrace_call_history_from): Adjust range.
6564 * NEWS: Announce changes.
6566 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6568 * record.h (enum record_print_flag)
6569 <record_print_indent_calls>: New.
6570 * record.c (get_call_history_modifiers): Recognize /c modifier.
6571 (_initialize_record): Document /c modifier.
6572 * record-btrace.c (btrace_call_history): Add btinfo parameter.
6573 Reorder fields. Optionally indent the function name. Update
6575 * NEWS: Announce changes.
6577 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6579 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
6581 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6583 * btrace.c (ftrace_new_function): Start counting at one.
6584 * record-btrace.c (record_btrace_info): Adjust number of calls
6586 * NEWS: Announce it.
6588 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6590 * record-btrace.c (btrace_call_history_insn_range): Print
6591 insn range as [begin, end].
6593 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6595 * btrace.h (struct btrace_func_link): New.
6596 (enum btrace_function_flag): New.
6597 (struct btrace_inst): Rename to ...
6598 (struct btrace_insn): ...this. Update all users.
6599 (struct btrace_func) <ibegin, iend>: Remove.
6600 (struct btrace_func_link): New.
6601 (struct btrace_func): Rename to ...
6602 (struct btrace_function): ...this. Update all users.
6603 (struct btrace_function) <segment, flow, up, insn, insn_offset)
6604 (number, level, flags>: New.
6605 (struct btrace_insn_iterator): Rename to ...
6606 (struct btrace_insn_history): ...this.
6608 (struct btrace_insn_iterator, btrace_call_iterator): New.
6609 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
6610 (struct btrace_target_info) <begin, end, level>
6611 <insn_history, call_history>: New.
6612 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
6613 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
6614 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
6615 (btrace_call_number, btrace_call_begin, btrace_call_end)
6616 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
6617 (btrace_find_function_by_number, btrace_set_insn_history)
6618 (btrace_set_call_history): New.
6619 * btrace.c (btrace_init_insn_iterator)
6620 (btrace_init_func_iterator, compute_itrace): Remove.
6621 (ftrace_print_function_name, ftrace_print_filename)
6622 (ftrace_skip_file): Change
6624 (ftrace_init_func): Remove.
6625 (ftrace_debug): Use new btrace_function fields.
6626 (ftrace_function_switched): Also consider gaining and
6627 losing symbol information).
6628 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
6629 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
6630 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
6632 (ftrace_new_function): Move. Remove debug print.
6633 (ftrace_update_lines, ftrace_update_insns): New.
6634 (ftrace_update_function): Check for call, ret, and jump.
6635 (compute_ftrace): Renamed to ...
6636 (btrace_compute_ftrace): ...this. Rewritten to compute call
6638 (btrace_fetch, btrace_clear): Updated.
6639 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
6640 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
6641 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
6642 (btrace_call_number, btrace_call_begin, btrace_call_end)
6643 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
6644 (btrace_find_function_by_number, btrace_set_insn_history)
6645 (btrace_set_call_history): New.
6646 * record-btrace.c (require_btrace): Use new btrace thread
6648 (record_btrace_info, btrace_insn_history)
6649 (record_btrace_insn_history, record_btrace_insn_history_range):
6650 Use new btrace thread info fields and new iterator.
6651 (btrace_func_history_src_line): Rename to ...
6652 (btrace_call_history_src_line): ...this. Use new btrace
6654 (btrace_func_history): Rename to ...
6655 (btrace_call_history): ...this. Use new btrace thread info
6656 fields and new iterator.
6657 (record_btrace_call_history, record_btrace_call_history_range):
6658 Use new btrace thread info fields and new iterator.
6660 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6662 * frame.h (frame_id_build_unavailable_stack_special): New.
6663 * frame.c (frame_id_build_unavailable_stack_special): New.
6665 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6667 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
6668 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
6669 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
6671 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
6672 (i386_insn_is_jump, i386_jmp_p): New.
6673 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
6674 insn_is_jump to gdbarch.
6675 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
6676 * gdbarch.h: Regenerated.
6677 * gdbarch.c: Regenerated.
6678 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
6679 (default_insn_is_jump): New.
6680 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
6681 (default_insn_is_jump): New.
6683 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6685 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
6687 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
6688 (btrace_read_type) <btrace_read_new>: Change to ...
6689 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
6691 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6693 * common/linux-btrace.c (linux_read_btrace): Free trace from
6696 2014-01-15 Doug Evans <dje@google.com>
6698 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
6701 2014-01-15 Tom Tromey <tromey@redhat.com>
6703 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
6704 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
6705 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
6706 (set_objfile_main_name): New function.
6707 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
6708 language_of_main>: New fields.
6709 (set_objfile_main_name): Declare.
6710 * symtab.c (find_main_name): Loop over objfiles to find the main
6712 (set_main_name): Now static.
6713 (get_main_info): Add comment.
6714 * symtab.h (set_main_name): Don't declare.
6716 2014-01-15 Tom Tromey <tromey@redhat.com>
6718 * symtab.c (main_progspace_key): New global.
6719 (struct main_info): New.
6720 (name_of_main, language_of_main): Remove.
6721 (get_main_info, main_info_cleanup): New function.
6722 (set_main_name, main_name, main_language): Use get_main_info.
6723 (_initialize_symtab): Initialize main_progspace_key.
6725 2014-01-15 Tom Tromey <tromey@redhat.com>
6727 * dbxread.c (process_one_symbol): Update.
6728 * dwarf2read.c (read_partial_die): Update.
6729 * symfile.c (set_initial_language): Call main_language.
6730 * symtab.c (language_of_main): Now static.
6731 (set_main_name): Add 'lang' parameter.
6732 (find_main_name): Update.
6733 (main_language): New function.
6734 (symtab_observer_executable_changed): Update.
6735 * symtab.h (set_main_name): Update.
6736 (language_of_main): Remove.
6737 (main_language): Declare.
6739 2014-01-15 Tom Tromey <tromey@redhat.com>
6741 * symfile.c (init_entry_point_info): Use new "initialized" field.
6743 * objfiles.h (struct entry_point) <initialized>: New field.
6744 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
6745 (struct objfile) <ei>: ...here. Remove.
6746 * objfiles.c (entry_point_address_query): Update.
6748 2014-01-15 Tom Tromey <tromey@redhat.com>
6750 * objfiles.c (entry_point_address_query): Relocate entry point
6752 (objfile_relocate1): Do not relocate entry point address.
6753 * objfiles.h (struct entry_info) <entry_point>: Update comment.
6754 <the_bfd_section_index>: New field.
6755 * symfile.c (init_entry_point_info): Find the entry point's
6758 2014-01-15 Tom Tromey <tromey@redhat.com>
6760 * solib-frv.c (enable_break): Use entry_point_address_query.
6762 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6764 * NEWS: Add note on improved process record-replay on
6765 arm*-linux* targets.
6767 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6769 * arm-tdep.c (enum arm_record_result): New enum.
6770 (arm_record_unsupported_insn): New function.
6771 (arm_record_coproc_data_proc): Removed.
6772 (thumb2_record_ld_st_multiple): New function.
6773 (thumb2_record_ld_st_dual_ex_tbb): New function.
6774 (thumb2_record_data_proc_sreg_mimm): New function.
6775 (thumb2_record_ps_dest_generic): New function.
6776 (thumb2_record_branch_misc_cntrl): New function.
6777 (thumb2_record_str_single_data): New function.
6778 (thumb2_record_ld_mem_hints): New function.
6779 (thumb2_record_ld_word): New function.
6780 (thumb2_record_lmul_lmla_div): New function.
6781 (thumb2_record_decode_insn_handler): New function.
6782 (decode_insn): Add thumb32 instruction handlers.
6784 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6786 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
6787 (struct arm_linux_record_tdep): Declare.
6788 (arm_canonicalize_syscall): New function.
6789 (arm_all_but_pc_registers_record): New function.
6790 (arm_linux_syscall_record): New function.
6791 (arm_linux_init_abi): Add syscall recording constructs.
6792 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
6793 decoding. (arm_record_coproc_data_proc): Update arm syscall
6795 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
6796 <arm_syscall_record>: New field.
6797 * configure.tgt (arm*-*-linux*): Add linux-record.o to
6800 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6802 * arm-tdep.c (thumb_record_misc): Update to use sp as base
6803 register for push instruction recording.
6805 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6807 * arm-tdep.c (thumb_record_misc): Update to correct logical
6808 error while recording ldm, ldmia and pop instructions.
6810 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6812 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
6814 2014-01-15 Pedro Alves <palves@redhat.com>
6816 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
6817 (go32_resume, go32_fetch_registers, store_register)
6818 (go32_store_registers, go32_prepare_to_store)
6819 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
6820 (go32_create_inferior, go32_can_run, go32_terminal_init)
6821 (go32_terminal_inferior, go32_terminal_ours): Delete forward
6824 2014-01-15 Tom Tromey <tromey@redhat.com>
6826 * target.h (async_callback_ftype): New typedef.
6827 (struct target_ops) <to_async>: Use it.
6829 2014-01-15 Joel Brobecker <brobecker@adacore.com>
6831 * python/py-value.c (get_field_type): Remove unnecessary curly
6832 braces for single-statement if block.
6834 2014-01-15 Joel Brobecker <brobecker@adacore.com>
6836 * python/py-type.c (convert_field): Add missing empty line
6839 2014-01-14 Doug Evans <dje@google.com>
6841 * symfile.h (expand_symtabs_matching): Renamed from
6842 expand_partial_symbol_names. Update prototype.
6843 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
6844 * symfile.c (expand_symtabs_matching): Renamed from
6845 expand_partial_symbol_names. New args file_matcher, kind.
6846 Rename arg fun to symbol_matcher.
6847 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
6848 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
6849 ada_expand_partial_symbol_name.
6850 (ada_make_symbol_completion_list): Update to call
6851 expand_symtabs_matching.
6852 (ada_add_global_exceptions): Call expand_symtabs_matching.
6853 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
6854 call map_symbol_filenames.
6855 * symtab.c (sources_info): Update to call map_symbol_filenames.
6856 (search_symbols): Call expand_symtabs_matching.
6857 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
6858 (default_make_symbol_completion_list_break_on): Update to call
6859 expand_symtabs_matching.
6860 (make_source_files_completion_list): Update to call
6861 map_symbol_filenames.
6863 2014-01-14 Doug Evans <dje@google.com>
6865 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
6866 (expand_symtabs_symbol_matcher_ftype): New typedef.
6867 (quick_symbol_functions.expand_symtabs_matching): Update to use.
6868 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
6869 * symfile.c (expand_partial_symbol_names): Update to use
6870 expand_symtabs_symbol_matcher_ftype.
6871 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
6872 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
6873 Arg name_matcher renamed to symbol_matcher.
6874 * psymtab.c (recursively_search_psymtabs): Update to use
6875 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
6877 (expand_symtabs_matching_via_partial): Update to use
6878 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
6879 Arg name_matcher renamed to symbol_matcher.
6881 2014-01-14 Doug Evans <dje@google.com>
6883 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
6884 (map_partial_symbol_filenames): Ditto.
6885 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
6886 (map_partial_symbol_filenames): Ditto.
6887 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
6888 (map_partial_symbol_filenames): Ditto.
6889 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
6890 (map_partial_symbol_filenames): Ditto.
6891 * symtab.c: Delete #include "psymtab.h".
6893 2014-01-14 Pedro Alves <palves@redhat.com>
6894 Tom Tromey <tromey@redhat.com>
6896 * infrun.c (use_displaced_stepping): Use find_record_target
6897 instead of RECORD_IS_USED.
6898 (adjust_pc_after_break): Use record_full_is_used instead of
6900 * record-btrace.c (record_btrace_open): Call record_preopen
6901 instead of checking RECORD_IS_USED.
6902 * record-full.c (record_full_shortname)
6903 (record_full_core_shortname): New globals.
6904 (record_full_is_used): New function.
6905 (find_full_open): Call record_preopen instead of checking
6907 (init_record_full_ops): Set the target's shortname to
6908 record_full_shortname.
6909 (init_record_full_core_ops): Set the target's shortname to
6910 record_full_core_shortname.
6911 * record-full.h (record_full_is_used): Declare.
6912 * record.c (find_record_target): Make extern.
6913 (record_preopen): New function.
6914 * record.h (RECORD_IS_USED): Delete macro.
6915 (find_record_target, record_preopen): Declare functions.
6917 2014-01-14 Yao Qi <yao@codesourcery.com>
6919 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
6920 'len''s type to ULONGEST.
6921 (core_xfer_shared_libraries_aix): Likewise.
6922 * gdbarch.c, gdbarch.h: Regenerated.
6923 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
6924 Change type of 'len' to ULONGEST.
6925 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
6926 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
6928 2014-01-14 Yao Qi <yao@codesourcery.com>
6930 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
6931 type of 'len' to ULONGEST.
6932 (linux_xfer_osdata_processgroups): Likewise.
6933 (linux_xfer_osdata_threads): Likewise.
6934 (linux_xfer_osdata_fds): Likewise.
6935 (linux_xfer_osdata_isockets): Likewise.
6936 (linux_xfer_osdata_shm): Likewise.
6937 (linux_xfer_osdata_sem): Likewise.
6938 (linux_xfer_osdata_msg): Likewise.
6939 (linux_common_xfer_osdata): Likewise.
6940 (struct osdata_type) <getter>: Likewise.
6941 * common/linux-osdata.h (linux_common_xfer_osdata): Update
6944 2014-01-14 Yao Qi <yao@codesourcery.com>
6946 * target.h (target_xfer_partial_ftype): Update.
6947 (struct target_ops) <to_xfer_partial>: Change 'len' type to
6949 * aix-thread.c (aix_thread_xfer_partial): Change type of
6950 argument 'len' to ULONGEST.
6951 * auxv.c (procfs_xfer_auxv): Likewise.
6952 (ld_so_xfer_auxv): Likewise.
6953 (memory_xfer_auxv): Likewise.
6954 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6955 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6956 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
6957 * corelow.c (core_xfer_partial): Likewise.
6958 * ctf.c (ctf_xfer_partial): Likewise.
6959 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
6961 (darwin_read_dyld_info): Likewise.
6962 (darwin_xfer_partial): Likewise.
6963 * exec.c (section_table_xfer_memory_partial): Likewise.
6964 (exec_xfer_partial): Likewise.
6965 * exec.h (section_table_xfer_memory_partial): Update
6967 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
6968 instead of plongest.
6969 (gnu_xfer_partial): Likewise.
6970 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
6971 (ia64_hpux_xfer_solib_got): Likewise.
6972 (ia64_hpux_xfer_partial): Likewise.
6973 * ia64-linux-nat.c (ia64_linux_xfer_partial):
6974 * inf-ptrace.c (inf_ptrace_xfer_partial):
6975 * inf-ttrace.c (inf_ttrace_xfer_partial):
6976 * linux-nat.c (linux_xfer_siginfo): Likewise.
6977 (linux_nat_xfer_partial): Likewise.
6978 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
6979 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
6980 * monitor.c (monitor_xfer_memory): Likewise.
6981 (monitor_xfer_partial): Likewise.
6982 * procfs.c (procfs_xfer_partial): Likewise.
6983 * record-full.c (record_full_xfer_partial): Likewise.
6984 (record_full_core_xfer_partial): Likewise.
6985 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
6986 instead of plongest.
6987 (gdbsim_xfer_partial): Likewise.
6988 * remote.c (remote_xfer_partial): Likewise.
6989 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
6990 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
6992 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6993 (rs6000_xfer_shared_libraries): Likewise.
6994 * sol-thread.c (sol_thread_xfer_partial): Likewise.
6995 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6996 (sparc_xfer_partial): Likewise.
6997 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6998 (spu_xfer_partial): Likewise.
6999 * spu-multiarch.c (spu_xfer_partial): Likewise.
7000 * target.c (target_read_live_memory): Likewise.
7001 (memory_xfer_live_readonly_partial): Likewise.
7002 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
7003 (target_xfer_partial, default_xfer_partial): Likewise.
7004 (current_xfer_partial): Likewise.
7005 * tracepoint.c (tfile_xfer_partial): Likewise.
7006 * windows-nat.c (windows_xfer_memory): Likewise. Call
7007 pulongest instead of plongest.
7008 (windows_xfer_partial): Likewise.
7009 (windows_xfer_shared_libraries): Likewise.
7011 2014-01-14 Yao Qi <yao@codesourcery.com>
7013 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
7014 target_xfer_partial_ftype.
7016 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
7020 * valops.c (value_struct_elt_bitpos): New function
7021 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
7022 object to 'None' if the field name is an empty string ("").
7023 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
7024 attribute to look for a field when 'name' is 'None'.
7025 (get_field_type): New function
7027 2014-01-13 Doug Evans <dje@google.com>
7030 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
7031 (try_open_dwop_file): Ditto.
7032 * gdb_bfd.c: #include "vec.h".
7033 (bfdp): New typedef.
7034 (struct gdb_bfd_data): New member included_bfds.
7035 (gdb_bfd_unref): Unref all included bfds.
7036 (gdb_bfd_record_inclusion): New function.
7037 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
7039 2014-01-13 Tom Tromey <tromey@redhat.com>
7041 * gdbcore.h (deprecated_core_resize_section_table): Remove.
7043 2014-01-13 Tom Tromey <tromey@redhat.com>
7045 * defs.h (use_windows): Remove.
7046 * gdb.c (main): Update.
7047 * main.c (captured_main, gdb_main): Update.
7048 * main.h (struct captured_main_args) <use_windows>: Remove.
7049 * top.c (use_windows): Remove.
7051 2014-01-13 Tom Tromey <tromey@redhat.com>
7053 * defs.h (deprecated_flush_hook): Remove.
7055 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7058 * linux-thread-db.c (try_thread_db_load): Add parameter
7059 check_auto_load_safe. Move here the file_is_auto_load_safe call.
7060 (try_thread_db_load_from_pdir_1): Move it there from here.
7061 (try_thread_db_load_from_sdir): Update caller.
7062 (try_thread_db_load_from_dir): Move it there from here.
7064 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
7066 * regformats/regdat.sh: Always rewrite the register file.
7068 2014-01-13 Pedro Alves <palves@redhat.com>
7070 * Makefile.in (CHECK_HEADERS): New variable.
7071 (check-headers:): New rule.
7073 2014-01-13 Tom Tromey <tromey@redhat.com>
7075 * cli/cli-setshow.c (do_set_command): Update.
7076 * defs.h (deprecated_set_hook): Remove.
7077 * top.c (deprecated_set_hook): Remove.
7079 2014-01-13 Pedro Alves <palves@redhat.com>
7081 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
7082 the tracepoint if the PC is a pseudo-register.
7084 2014-01-13 Tom Tromey <tromey@redhat.com>
7086 * defs.h (XCALLOC): Remove.
7087 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
7088 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
7089 * dwarf2loc.c (allocate_piece_closure): Likewise.
7090 * elfread.c (elf_symfile_segments): Likewise.
7091 (elf_symfile_segments): Likewise.
7092 * gdbtypes.c (copy_type_recursive): Likewise.
7093 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
7094 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
7095 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
7097 * mt-tdep.c (mt_gdbarch_init): Likewise.
7098 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
7100 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
7101 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
7102 * registry.c (registry_alloc_data): Likewise.
7103 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
7104 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7105 * serial.c (serial_fdopen_ops): Likewise.
7106 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
7108 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
7109 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
7112 2014-01-13 Tom Tromey <tromey@redhat.com>
7114 * defs.h (XMALLOC): Remove.
7115 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
7116 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
7117 * cli-out.c (struct ui_out *): Likewise.
7118 * cli/cli-dump.c (add_dump_command): Likewise.
7119 (add_dump_command): Likewise.
7120 * complaints.c (get_complaints): Likewise.
7121 (find_complaint): Likewise.
7122 * dwarf2-frame.c (execute_cfa_program): Likewise.
7123 * dwarf2read.c (abbrev_table_read_table): Likewise.
7124 * gdbarch.sh: Likewise.
7125 * gdbarch.c: Rebuild.
7126 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
7127 * interps.c (interp_new): Likewise.
7128 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
7129 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7130 * mi/mi-console.c (mi_console_file_new): Likewise.
7131 * mi/mi-interp.c (mi_interpreter_init): Likewise.
7132 * mi/mi-out.c (mi_out_new): Likewise.
7133 * mi/mi-parse.c (mi_parse): Likewise.
7134 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
7135 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7136 * observer.c (xalloc_observer_list_node): Likewise.
7137 * regcache.c (regcache_xmalloc_1): Likewise.
7138 * reggroups.c (reggroup_new): Likewise.
7139 (_initialize_reggroup): Likewise.
7140 * registry.c (register_data_with_cleanup): Likewise.
7141 * remote.c (remote_notif_stop_alloc_reply): Likewise.
7142 * ser-base.c (serial_ttystate): Likewise.
7143 * ser-mingw.c (make_pipe_state): Likewise.
7144 * ser-pipe.c (pipe_open): Likewise.
7145 * serial.c (serial_open): Likewise.
7146 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
7147 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
7148 (tui_alloc_win_info): Likewise.
7149 (tui_add_content_elements): Likewise.
7150 * tui/tui-file.c (tui_file_new): Likewise.
7151 * tui/tui-out.c (tui_out_new): Likewise.
7152 * ui-file.c (mem_file_new): Likewise.
7153 * ui-out.c (push_level): Likewise.
7154 (make_cleanup_ui_out_end): Likewise.
7155 (append_header_to_list): Likewise.
7156 (ui_out_new): Likewise.
7157 * user-regs.c (user_reg_add_builtin): Likewise.
7159 2014-01-13 Tom Tromey <tromey@redhat.com>
7161 * defs.h (XZALLOC): Remove.
7162 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
7163 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
7164 (get_ada_tasks_inferior_data): Likewise.
7165 * auto-load.c (get_auto_load_pspace_data): Likewise.
7166 * auxv.c (get_auxv_inferior_data): Likewise.
7167 * bfd-target.c (target_bfd_reopen): Likewise.
7168 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
7169 (deprecated_insert_raw_breakpoint): Likewise.
7170 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
7171 * corelow.c (core_open): Likewise.
7172 * darwin-nat.c (darwin_check_new_threads): Likewise.
7173 (darwin_attach_pid): Likewise.
7174 * dummy-frame.c (dummy_frame_push): Likewise.
7175 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
7176 * dwarf2loc.c (allocate_piece_closure): Likewise.
7177 * elfread.c (elf_symfile_segments): Likewise.
7178 * eval.c (ptrmath_type_p): Likewise.
7179 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
7180 * gdbtypes.c (alloc_type_arch): Likewise.
7181 (alloc_type_instance): Likewise.
7182 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
7183 * inf-child.c (inf_child_can_use_agent): Likewise.
7184 * inflow.c (get_inflow_inferior_data): Likewise.
7185 * infrun.c (save_infcall_suspend_state): Likewise.
7186 * jit.c (jit_reader_load): Likewise.
7187 (get_jit_objfile_data): Likewise.
7188 (get_jit_program_space_data): Likewise.
7189 (jit_object_open_impl): Likewise.
7190 (jit_symtab_open_impl): Likewise.
7191 (jit_block_open_impl): Likewise.
7192 (jit_frame_sniffer): Likewise.
7193 * linux-fork.c (add_fork): Likewise.
7194 * maint.c (make_command_stats_cleanup): Likewise.
7195 * objfiles.c (get_objfile_pspace_data): Likewise.
7196 * opencl-lang.c (struct lval_closure): Likewise.
7197 * osdata.c (osdata_start_osdata): Likewise.
7198 * progspace.c (new_address_space): Likewise.
7199 (add_program_space): Likewise.
7200 * remote-sim.c (get_sim_inferior_data): Likewise.
7201 * sh-tdep.c (sh_gdbarch_init): Likewise.
7202 * skip.c (Ignore): Likewise.
7203 (skip_delete_command): Likewise.
7204 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
7205 (library_list_start_library): Likewise.
7206 (solib_aix_current_sos): Likewise.
7207 * solib-darwin.c (get_darwin_info): Likewise.
7208 (darwin_current_sos): Likewise.
7209 * solib-dsbt.c (get_dsbt_info): Likewise.
7210 * solib-ia64-hpux.c (new_so_list): Likewise.
7211 (ia64_hpux_get_solib_linkage_addr): Likewise.
7212 * solib-spu.c (append_ocl_sos): Likewise.
7213 (spu_current_sos): Likewise.
7214 * solib-svr4.c (get_svr4_info): Likewise.
7215 (svr4_keep_data_in_core): Likewise.
7216 (library_list_start_library): Likewise.
7217 (svr4_default_sos): Likewise.
7218 (svr4_read_so_list): Likewise.
7219 * solib-target.c (library_list_start_library): Likewise.
7220 (solib_target_current_sos): Likewise.
7221 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7222 * symfile-debug.c (install_symfile_debug_logging): Likewise.
7223 * symfile.c (default_symfile_segments): Likewise.
7224 * target-descriptions.c (tdesc_data_init): Likewise.
7225 (tdesc_create_reg): Likewise.
7226 (struct tdesc_type *): Likewise.
7227 (tdesc_create_vector): Likewise.
7228 (tdesc_set_struct_size): Likewise.
7229 (struct tdesc_type *): Likewise.
7230 (tdesc_free_feature): Likewise.
7231 (tdesc_create_feature): Likewise.
7232 * windows-nat.c (windows_add_thread): Likewise.
7233 (windows_make_so): Likewise.
7234 * xml-support.c (gdb_xml_body_text): Likewise.
7235 (gdb_xml_create_parser_and_cleanup): Likewise.
7236 (xml_process_xincludes): Likewise.
7237 * xml-syscall.c (allocate_syscalls_info): Likewise.
7238 (syscall_create_syscall_desc): Likewise.
7240 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
7242 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
7243 function, with code from i386_stap_parse_special_token.
7244 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7245 (i386_stap_parse_special_token): Move code to the two functions
7248 2014-01-09 Pedro Alves <palves@redhat.com>
7249 Hui Zhu <hui@codesourcery.com>
7252 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
7253 bp_err_string. Don't mark the location shlib_disabled if the
7254 error thrown wasn't a generic or memory error. Catch errors
7255 thrown while inserting breakpoints in overlayed code. Output
7256 error message of software breakpoints.
7257 * remote.c (remote_insert_breakpoint): If this breakpoint has
7258 target-side commands but this stub doesn't support Z0 packets,
7259 throw NOT_SUPPORTED_ERROR error.
7260 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
7261 * target.h (target_insert_breakpoint): Extend comment.
7262 (target_insert_hw_breakpoint): Add comment.
7264 2014-01-08 Pedro Alves <palves@redhat.com>
7266 * remote.c (remote_add_thread): Add threads silently if starting
7268 (remote_notice_new_inferior): If in all-stop, and starting up,
7269 don't call notice_new_inferior.
7270 (get_current_thread): New function, factored out from ...
7271 (add_current_inferior_and_thread): ... this. Adjust.
7272 (remote_start_remote) <all-stop>: Fetch the thread list. If we
7273 found any thread, then select the remote's current thread as GDB's
7276 2014-01-08 Joel Brobecker <brobecker@adacore.com>
7278 * NEWS: Create a new section for the next release branch.
7279 Rename the section of the current branch, now that it has
7282 2014-01-08 Joel Brobecker <brobecker@adacore.com>
7284 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
7285 * version.in: Bump version to 7.7.50.DATE-cvs.
7287 2014-01-08 Yao Qi <yao@codesourcery.com>
7289 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
7290 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
7291 (spu_xfer_partial): Cast 'buf' to 'const char *'.
7293 2014-01-08 Yao Qi <yao@codesourcery.com>
7295 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
7296 return value of bfd_get_filename to symbol_file_add_from_bfd.
7298 2014-01-08 Pierre Muller <muller@sourceware.org>
7301 * coff-pe-read.c (struct read_pe_section_data): Add index field.
7302 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
7303 to prim_record_mininal_symbol_and_info.
7304 (add_pe_forwarded_sym): Use known section number of forwarded symbol
7305 in call to prim_record_minimal_symbol_and_info.
7306 (read_pe_exported_syms): Set index field of section_data.
7308 2014-01-07 Andrew Pinski <apinski@cavium.com>
7310 * features/aarch64-core.xml (cpsr): Change to be 64bit.
7311 * features/aarch64.c: Regenerate.
7313 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
7315 * target.c (return_null): Define.
7316 (update_current_target): Use it instead of return_zero for
7317 functions that return a pointer.
7319 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
7321 * source.c (add_path): Fix check for duplicated paths in the previously
7324 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
7326 * ada-lang.c: Remove duplicated include statements.
7327 * alphabsd-nat.c: Ditto.
7328 * amd64-darwin-tdep.c: Ditto.
7329 * amd64fbsd-nat.c: Ditto.
7330 * auto-load.c: Ditto.
7332 * breakpoint.c: Ditto.
7334 * fork-child.c: Ditto.
7335 * gdb_usleep.c: Ditto.
7336 * i386-darwin-tdep.c: Ditto.
7337 * i386fbsd-nat.c: Ditto.
7339 * inferior.c: Ditto.
7341 * linux-nat.c: Ditto.
7342 * linux-tdep.c: Ditto.
7343 * m68kbsd-nat.c: Ditto.
7344 * m68klinux-nat.c: Ditto.
7345 * microblaze-tdep.c: Ditto.
7346 * mips-linux-tdep.c: Ditto.
7347 * mn10300-tdep.c: Ditto.
7348 * nto-tdep.c: Ditto.
7349 * opencl-lang.c: Ditto.
7351 * printcmd.c: Ditto.
7352 * regcache.c: Ditto.
7353 * remote-m32r-sdi.c: Ditto.
7357 * tilegx-linux-nat.c: Ditto.
7358 * tilegx-tdep.c: Ditto.
7359 * tracepoint.c: Ditto.
7361 * vaxbsd-nat.c: Ditto.
7362 * windows-nat.c: Ditto.
7363 * xtensa-tdep.c: Ditto.
7365 2014-01-07 Yao Qi <yao@codesourcery.com>
7367 * spu-linux-nat.c (_initialize_spu_nat): Declare.
7369 2014-01-07 Yao Qi <yao@codesourcery.com>
7370 Joel Brobecker <brobecker@adacore.com>
7372 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
7373 (pdc_write_regs): Likewise.
7374 (fetch_regs_kernel_thread): Likewise.
7375 (store_regs_kernel_thread): Likewise.
7377 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7379 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
7380 tagged type objects to their actual type.
7382 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7384 * ada-valprint.c (print_field_values): Add "language" parameter.
7385 Update calls to print_field_values and print_variant_part.
7386 Pass new parameter "language" in call to val_print instead
7387 of "current_language". Replace call to ada_val_print by call
7389 (print_variant_part): Add "language" parameter.
7390 (ada_val_print_struct_union): Update call to print_field_values.
7392 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7394 * ada-valprint.c (ui_memcpy): Delete.
7395 (ada_print_floating): Update documentation. Add empty line
7396 between between function documentation and implementation.
7397 Delete variable "buffer". Use ui_file_xstrdup in place of
7398 ui_file_put. Minor adjustments following this change.
7400 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7402 * ada-valprint.c (ada_val_print_string): New function,
7403 extracted from ada_val_print_array.
7404 (ada_val_print_array): Replace extracted code by call
7405 to ada_val_print_string followed by a return. Move
7406 "else" branch to the function's top block.
7408 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7410 * ada-valprint.c (ada_val_print_array): Move implementation
7411 down. Rename parameter "offset" and "val" into "offset_aligned"
7412 and "original_value" respectively. Add parameter "offset".
7414 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7416 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
7417 re-organizing the code. Change the "???" message printed
7418 when target type is a TYPE_CODE_UNDEF into
7419 "<ref to undefined type>".
7421 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7423 * ada-valprint.c (print_record): Delete, implementation inlined...
7424 (ada_val_print_struct_union): ... here. Remove call to
7425 ada_check_typedef in inlined implementation.
7427 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7429 * ada-valprint.c (ada_val_print_gnat_array): New function,
7430 extracted from ada_val_print_1;
7431 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
7432 (ada_val_print_flt, ada_val_print_struct_union)
7433 (ada_val_print_ref): Likewise.
7434 (ada_val_print_1): Delete variables i and elttype.
7435 Replace extracted-out code by call to corresponding
7438 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7440 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
7442 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7444 * ada-valprint.c (ada_val_print_1): Replace calls to
7445 ada_val_print_1 by calls to val_print.
7447 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7449 * ada-valprint.c (ada_val_print_1): Add parameter "language".
7450 Update calls to self accordingly. Replace calls to c_val_print
7451 by calls to val_print.
7453 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7455 * ada-valprint.c (print_record): Delete declaration.
7456 (adjust_type_signedness, ada_val_print_1): Likewise.
7457 (ada_val_print): Move function implementation down.
7458 (print_variant_part, print_field_values, print_record):
7459 Move function implementation up.
7461 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7463 * python/py-type.c (typy_get_name): New function.
7464 (type_object_getset): Add entry for attribute "name".
7465 * NEWS: Add entry mentioning this new attribute.
7467 2014-01-07 Yao Qi <yao@codesourcery.com>
7469 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
7472 2014-01-07 Yao Qi <yao@codesourcery.com>
7474 * gnu-nat.c (info_port_rights): Add qualifier const to
7477 2014-01-07 Yao Qi <yao@codesourcery.com>
7479 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
7481 2014-01-07 Yao Qi <yao@codesourcery.com>
7483 * gnu-nat.c (make_inf) Update declaration.
7484 (make_inf): Make it static.
7485 (inf_set_traced): Likewise.
7486 (inf_port_to_thread, inf_task_died_status): Likewise.
7488 2014-01-07 Yao Qi <yao@codesourcery.com>
7490 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
7492 2014-01-07 Yao Qi <yao@codesourcery.com>
7494 * gnu-nat.c (_initialize_gnu_nat): Declare.
7496 2014-01-07 Yao Qi <yao@codesourcery.com>
7498 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
7500 (struct gdbarch_info) <byte_order>: Change type to
7502 <byte_order_for_code>: Likewise.
7503 * gdbarch.c, gdbarch.h: Regenerated.
7505 2014-01-06 Sasha Smundak <asmundak@google.com>
7507 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
7509 2014-01-06 Tom Tromey <tromey@redhat.com>
7511 * doublest.c (convert_doublest_to_floatformat): Use const, not
7513 * somread.c (som_symtab_read): Likewise.
7515 2014-01-07 Hui Zhu <hui@codesourcery.com>
7517 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
7518 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
7519 (gdb_bfd_fopen): Ditto.
7520 (gdb_bfd_openr): Ditto.
7521 (gdb_bfd_openw): Ditto.
7522 (gdb_bfd_openr_iovec): Ditto.
7523 (gdb_bfd_fdopenr): Ditto.
7524 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
7525 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
7527 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
7529 * symfile-mem.c (symbol_file_add_from_memory): Removed
7530 gdb_bfd_stash_filename.
7532 2014-01-03 Doug Evans <dje@google.com>
7534 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
7537 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7539 Update year range in copyright notice of all files.
7541 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7543 * top.c (print_gdb_version): Set copyright year to 2014.
7545 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7547 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
7549 For older changes see ChangeLog-2013.
7555 version-control: never