1 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4 and 16-bit signed and unsigned arguments. Update comment.
5 (stap_parse_probe_arguments): Extend code to handle such
6 arguments. Use warning instead of complaint to notify about
9 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
12 * stap-probe.c (stap_parse_probe_arguments): Simplify
13 check for non-prefixed probes (i.e., probes whose
14 arguments do not start with "N@"). Always set the
15 argument type to a sane value.
17 2014-05-01 David Taylor <dtaylor@emc.com>
19 * remote.c (compare_sections_command): Add -r option to compare
20 all loadable read-only sections.
22 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
24 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
25 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
27 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
28 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
29 Remove unused CORE_ADDR argument. Update all callers.
31 2014-04-29 Pedro Alves <palves@redhat.com>
33 * remote.c (struct packet_config) <detect>: Extend comment.
34 (add_packet_config_cmd): Don't set the config's detect or support
36 (init_all_packet_configs): Also initialize the config's 'detect'
38 (reset_all_packet_configs_support): New function.
39 (remote_open_1): Call reset_all_packet_configs_support instead of
40 init_all_packet_configs.
41 (_initialize_remote): Initialize all packet configs. Assert that
42 all packets have an associated command, except a few known
45 2014-04-28 Joel Brobecker <brobecker@adacore.com>
47 * dwarf2read.c (read_subrange_type): Handle dynamic
48 DW_AT_lower_bound attributes.
50 2014-04-28 Joel Brobecker <brobecker@adacore.com>
52 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
53 dynamic bounds before computing its upper bound.
54 (ada_discrete_type_low_bound): Same as above with the lower bound.
56 2014-04-28 Joel Brobecker <brobecker@adacore.com>
58 * dwarf2read.c (is_dynamic_type): Return true for dynamic
59 range types. Adjust the array handling implementation to
60 take advantage of this change.
61 (resolve_dynamic_range): New function, mostly extracted from
62 resolve_dynamic_bounds.
63 (resolve_dynamic_array): New function, mostly extracted from
64 resolve_dynamic_bounds.
65 (resolve_dynamic_bounds): Delete.
66 (resolve_dynamic_type): Reimplement. Add handling of
67 TYPE_CODE_RANGE types.
69 2014-04-28 Joel Brobecker <brobecker@adacore.com>
71 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
72 handling of parallel ___XA types.
74 2014-04-28 Joel Brobecker <brobecker@adacore.com>
76 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
77 unnecessary second call to static_unwrap_type.
79 2014-04-27 Hui Zhu <hui@codesourcery.com>
81 * stack.c (print_frame_info): Call do_gdb_disassembly with
82 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
84 2014-04-26 Doug Evans <xdje42@gmail.com>
86 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
88 2014-04-25 Pedro Alves <palves@redhat.com>
91 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
92 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
93 and newline from built string.
94 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
95 (linux_ptrace_attach_fail_reason): ... this.
96 * linux-nat.c (linux_nat_attach): Adjust to use
97 linux_ptrace_attach_fail_reason.
99 2014-04-25 Pedro Alves <palves@redhat.com>
101 * remote.c (struct remote_state): Remove multi_process_aware,
102 non_stop_aware, cond_tracepoints, cond_breakpoints,
103 breakpoint_commands, fast_tracepoints, static_tracepoints,
104 install_in_trace, disconnected_tracing,
105 enable_disable_tracepoints, string_tracing, and
106 augmented_libraries_svr4_read fields.
107 (remote_multi_process_p): Move further below in the file.
108 (struct packet_config): Add comments.
109 (update_packet_config): Delete function.
110 (show_packet_config_cmd): Use packet_config_support.
111 (add_packet_config_cmd): Use NULL as set callback.
112 (packet_ok): "set remote foo-packet"-style commands no longer
113 change config->supported -- adjust.
114 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
115 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
116 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
117 (PACKET_QNonStop, PACKET_multiprocess_feature)
118 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
119 (PACKET_DisconnectedTracing_feature)
120 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
121 (set_remote_protocol_packet_cmd): Delete function.
122 (packet_config_support, packet_support): New functions.
123 (set_remote_protocol_Z_packet_cmd): Don't call
124 update_packet_config.
125 (remote_query_attached, remote_pass_signals)
126 (remote_program_signals, remote_threads_info)
127 (remote_threads_extra_info, remote_start_remote): Use
129 (remote_start_remote): Use packet_config_support and
131 (init_all_packet_configs): Set all packets to unknown support,
132 instead of calling update_packet_config.
133 (remote_check_symbols): Use packet_support.
134 (remote_supported_packet): Unconditionally set the packet config's
136 (remote_multi_process_feature, remote_non_stop_feature)
137 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
138 (remote_breakpoint_commands_feature)
139 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
140 (remote_install_in_trace_feature)
141 (remote_disconnected_tracing_feature)
142 (remote_enable_disable_tracepoint_feature)
143 (remote_string_tracing_feature)
144 (remote_augmented_libraries_svr4_read_feature): Delete functions.
145 (remote_protocol_features): Adjust to use remote_supported_packet
146 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
147 "ConditionalTracepoints", "ConditionalBreakpoints",
148 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
149 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
150 "EnableDisableTracepoints", and "tracenz".
151 (remote_query_supported): Use packet_support.
152 (remote_open_1): Adjust.
153 (extended_remote_attach_1): Use packet_support. Switch on the
154 result of packet_ok instead of checking whether the packet ended
156 (remote_vcont_resume): Use packet_support.
157 (remote_resume, remote_stop_ns, fetch_register_using_p)
158 (remote_prepare_to_store, store_register_using_P)
159 (check_binary_download, remote_write_bytes): Use packet_support.
160 (remote_vkill): Use packet_support. Switch on the result of
161 packet_ok instead of checking whether the packet ended up
163 (extended_remote_supports_disable_randomization): Use
165 (extended_remote_run): Switch on the result of packet_ok instead
166 of checking whether the packet ended up disabled.
167 (remote_insert_breakpoint, remote_remove_breakpoint)
168 (remote_insert_watchpoint, remote_remove_watchpoint)
169 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
171 (remote_search_memory): Use packet_config_support.
172 (remote_get_thread_local_address, remote_get_tib_address)
173 (remote_hostio_send_command, remote_can_execute_reverse): Use
175 (remote_supports_cond_tracepoints)
176 (remote_supports_cond_breakpoints)
177 (remote_supports_fast_tracepoints)
178 (remote_supports_static_tracepoints)
179 (remote_supports_install_in_trace)
180 (remote_supports_enable_disable_tracepoint)
181 (remote_supports_string_tracing)
182 (remote_can_run_breakpoint_commands): Rewrite, checking whether
183 the packet config says the feature is enabled or disabled.
184 (remote_download_tracepoint, remote_trace_set_readonly_regions)
185 (remote_get_trace_status): Use packet_support.
186 (remote_set_disconnected_tracing): Adjust to check whether the
187 feature is enabled with packet_support.
188 (remote_set_trace_buffer_size, remote_use_agent)
189 (remote_can_use_agent, remote_supports_btrace): Use
191 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
192 Use packet_config_support.
193 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
194 the packet config says the feature is enabled or disabled.
195 (set_range_stepping): Use packet_support.
197 2014-04-25 Tom Tromey <tromey@redhat.com>
199 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
202 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
204 * NEWS: Mention support for C99 variable length arrays.
206 2014-04-24 Joel Brobecker <brobecker@adacore.com>
208 * ada-lang.c (standard_exc): Expand introductory comment.
210 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
211 Walfred Tedeschi <walfred.tedeschi@intel.com>
213 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
215 (amd64_linux_read_description): Add code to handle AVX512 xstate
216 mask and return respective tdesc.
217 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
218 and features/i386/x32-avx512-linux.c.
219 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
220 (amd64_linux_core_read_description): Add code to handle AVX512
221 xstate mask and return respective tdesc.
222 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
223 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
225 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
226 (tdesc_amd64_avx512_linux): New prototype.
227 (tdesc_x32_avx512_linux): Likewise.
228 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
229 features/i386/x32-avx512.c.
230 (amd64_ymm_avx512_names): New register names for pseudo
232 (amd64_ymmh_avx512_names): New register names for raw registers
234 (amd64_k_names): New register names for K registers.
235 (amd64_zmmh_names): New register names for ZMM raw registers.
236 (amd64_zmm_names): New registers names for ZMM pseudo registers.
237 (amd64_xmm_avx512_names): New register names for XMM16-31
239 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
241 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
242 if feature is present.
243 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
244 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
245 (AMD64_NUM_REGS): Adjust to new number of registers.
246 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
247 registers supplied via XSTATE by AVX512 registers.
248 (i386_linux_read_description): Add case for AVX512.
249 * i386-linux-tdep.c: Include i386-avx512-linux.c.
250 (i386_linux_gregset_reg_offset): Add AVX512 registers.
251 (i386_linux_core_read_description): Add case for AVX512.
252 (i386_linux_init_abi): Install supported register note section
254 (_initialize_i386_linux_tdep): Add call to tdesc init function for
256 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
257 registers to be number of zmm7h + 1.
258 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
259 * i386-tdep.c: Include features/i386/i386-avx512.c.
260 (i386_zmm_names): Add ZMM pseudo register names array.
261 (i386_zmmh_names): Add ZMM raw register names array.
262 (i386_k_names): Add K raw register names array.
263 (num_lower_zmm_regs): Add constant for the number of lower ZMM
264 registers. AVX512 has 16 more ZMM registers than there are YMM
266 (i386_zmmh_regnum_p): Add function to look up register number of
268 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
269 (i386_k_regnum_p): Likewise for K raw registers.
270 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
271 registers added by AVX512.
272 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
273 registers added by AVX512.
274 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
276 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
277 (i386_pseudo_register_name): Add ZMM pseudo registers.
278 (i386_zmm_type): Construct and return vector registers type for ZMM
280 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
281 ZMM0-31 pseudo registers and K registers.
282 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
283 and YMM16-31 registers from register cache.
284 (i386_pseudo_register_write): Add code to write K, ZMM and
286 (i386_register_reggroup_p): Add code to include/exclude AVX512
287 registers in/from respective register groups.
288 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
289 registers if feature is present in xcr0.
290 (i386_gdbarch_init): Add code to initialize AVX512 feature
291 variables in tdep structure, wire in pseudo registers and call
292 initialize_tdesc_i386_avx512.
293 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
295 (i386_regnum): Add AVX512 registers.
296 (I386_SSE_NUM_REGS): New define for number of SSE registers.
297 (I386_AVX_NUM_REGS): Likewise for AVX registers.
298 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
299 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
301 (i386_xmm_avx512_regnum_p): New prototype for register look up.
302 (i386_ymm_avx512_regnum_p): Likewise.
303 (i386_k_regnum_p): Likewise.
304 (i386_zmm_regnum_p): Likewise.
305 (i386_zmmh_regnum_p): Likewise.
306 * i387-tdep.c : Update year in copyright notice.
307 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
309 (XSAVE_YMM_AVX512_ADDR): New macro.
310 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
312 (XSAVE_XMM_AVX512_ADDR): New macro.
313 (xsave_avx512_k_offset): New table for K register offsets in
315 (XSAVE_AVX512_K_ADDR): New macro.
316 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
318 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
319 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
321 (i387_collect_xsave): Add code to collect AVX512 registers from
323 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
324 of XMM16-31 registers.
325 (I387_NUM_K_REGS): New define for number of K registers.
326 (I387_K0_REGNUM): New define for K0 register number.
327 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
328 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
329 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
331 (I387_YMM16H_REGNUM): New define for YMM16H register number.
332 (I387_XMM16_REGNUM): New define for XMM16 register number.
333 (I387_YMM0_REGNUM): New define for YMM0 register number.
334 (I387_KEND_REGNUM): New define for last K register number.
335 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
336 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
338 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
340 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
342 * features/Makefile: Add AVX512 related files.
343 * features/i386/32bit-avx512.xml: New file.
344 * features/i386/64bit-avx512.xml: Likewise.
345 * features/i386/amd64-avx512-linux.c: Likewise.
346 * features/i386/amd64-avx512-linux.xml: Likewise.
347 * features/i386/amd64-avx512.c: Likewise.
348 * features/i386/amd64-avx512.xml: Likewise.
349 * features/i386/i386-avx512-linux.c: Likewise.
350 * features/i386/i386-avx512-linux.xml: Likewise.
351 * features/i386/i386-avx512.c: Likewise.
352 * features/i386/i386-avx512.xml: Likewise.
353 * features/i386/x32-avx512-linux.c: Likewise.
354 * features/i386/x32-avx512-linux.xml: Likewise.
355 * features/i386/x32-avx512.c: Likewise.
356 * features/i386/x32-avx512.xml: Likewise.
357 * regformats/i386/amd64-avx512-linux.dat: New file.
358 * regformats/i386/amd64-avx512.dat: Likewise.
359 * regformats/i386/i386-avx512-linux.dat: Likewise.
360 * regformats/i386/i386-avx512.dat: Likewise.
361 * regformats/i386/x32-avx512-linux.dat: Likewise.
362 * regformats/i386/x32-avx512.dat: Likewise.
363 * NEWS: Add note about new support for AVX512.
366 2014-04-23 Pedro Alves <palves@redhat.com>
368 * breakpoint.c (insert_bp_location): Tolerate errors if the
369 breakpoint is set in a user-loaded objfile.
370 (remove_breakpoint_1): Likewise. Also tolerate errors if the
371 location is marked shlib_disabled. If the breakpoint is set in a
372 user-loaded objfile is a GDB-side memory breakpoint, validate it
373 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
374 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
376 * mem-break.c (memory_validate_breakpoint): New function.
377 * objfiles.c (userloaded_objfile_contains_address_p): New
379 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
380 * target.h (memory_validate_breakpoint): New declaration.
382 2014-04-23 Pedro Alves <palves@redhat.com>
384 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
385 the breakpoint is set in a shared library, only suppress
386 errors for software breakpoints, not hardware breakpoints.
388 2014-04-22 Pedro Alves <palves@redhat.com>
390 * infrun.c (schedlock_applies): New function, factored out from
391 find_thread_needs_step_over.
392 (find_thread_needs_step_over): Use it.
393 (switch_back_to_stepped_thread): Always clear trap_expected if the
394 step over is finished. Return early if scheduler locking applies.
395 Look for the stepping thread and a potential step-over thread with
397 (currently_stepping_or_nexting_callback): Delete.
399 2014-04-22 Nick Clifton <nickc@redhat.com>
401 * NEWS: Mention that ARM sim now supports tracing.
403 2014-04-22 Yao Qi <yao@codesourcery.com>
405 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
407 * tracefile.c (tracefile_fetch_registers): ... it. New
409 * tracefile.h (tracefile_fetch_registers): Declare.
410 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
411 tracefile_fetch_registers.
413 2014-04-19 Eli Zaretskii <eliz@gnu.org>
416 * windows-nat.c (thread_rec): Don't display a warning when
417 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
418 fails for any reason, set th->suspended to -1, so that we don't
419 try to resume such a thread. Also, don't return NULL in these
420 cases, to avoid completely ruin the session due to "PC register is
421 not available" error.
422 (do_windows_fetch_inferior_registers): Check errors in
423 GetThreadContext call.
424 (windows_continue): Accept an additional argument KILLED; if not
425 zero, ignore errors in the SetThreadContext call, since the
426 inferior was killed and is shutting down.
427 (windows_resume, get_windows_debug_event)
428 (windows_create_inferior, windows_mourn_inferior)
429 (windows_kill_inferior): All callers of windows_continue changed
430 to adjust to its new calling sequence.
432 2014-04-19 Yao Qi <yao@codesourcery.com>
434 * ctf.c (ctf_open): Call post_create_inferior.
436 2014-04-19 Yao Qi <yao@codesourcery.com>
438 * ctf.c (handle_id): New static variable.
439 (ctf_open_dir): Get handle_id from bt_context_add_trace return
440 value. Get the declaration of event "register" and get length
443 2014-04-19 Yao Qi <yao@codesourcery.com>
445 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
447 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
449 * valops.c (oload_method_static): Remove unnecessary argument
450 METHOD. Update all callers.
452 2014-04-18 Pedro alves <palves@redhat.com>
453 Tom Tromey <tromey@redhat.com>
456 * frame.c (get_prev_frame_1): Rename to ...
457 (get_prev_frame_always): ... this, and make extern. Adjust.
458 (skip_artificial_frames): Use get_prev_frame_always.
459 (frame_unwind_caller_id, frame_pop, get_prev_frame)
460 (get_frame_unwind_stop_reason): Adjust to rename.
461 * frame.h (get_prev_frame_always): Declare.
462 * inline-frame.c: Include frame.h.
463 (inline_frame_this_id): Use get_prev_frame_always.
465 2014-04-18 Tristan Gingold <gingold@adacore.com>
467 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
468 code by using bfd_mach_o_get_base_address.
470 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
472 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
473 (spu_ax_pseudo_register_collect): New function.
474 (spu_ax_pseudo_register_push_stack): Likewise.
475 (spu_dwarf_reg_to_regnum): Likewise.
476 (spu_gdbarch_init): Install them. Append DWARF unwinders.
478 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
480 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
481 Replace FRAME argument with FRAME_ID.
482 * gdbarch.c, gdbarch.h: Regenerate.
483 * findvar.c (default_value_from_register): Add GDBARCH argument;
484 replace FRAME by FRAME_ID. No longer call get_frame_id.
485 (value_from_register): Update call to gdbarch_value_from_register.
486 * value.h (default_value_from_register): Update prototype.
487 * s390-linux-tdep.c (s390_value_from_register): Update interface
488 and call to default_value_from_register.
489 * spu-tdep.c (spu_value_from_register): Likewise.
491 * findvar.c (address_from_register): Remove TYPE argument.
492 Do not call value_from_register; use gdbarch_value_from_register
493 with null_frame_id instead.
494 * value.h (address_from_register): Update prototype.
495 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
496 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
497 address_from_register interface change.
499 2014-04-17 Yao Qi <yao@codesourcery.com>
501 * gdbtypes.h: Update comments to link to types and macros'
504 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
506 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
508 2014-04-16 Keith Seitz <keiths@redhat.com>
511 * dwarf2read.c (skip_one_die): Check that all relative-offset
512 sibling DIEs fall within range of the current reader's buffer.
513 (read_partial_die): Likewise.
515 2014-04-16 Keith Seitz <keiths@redhat.com>
518 * cp-namespace.c (lookup_symbol_file): If the type name of
519 `this' is NULL, return immediately.
521 2014-04-14 Keith Seitz <keiths@redhat.com>
524 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
525 from symbol_matches_domain in symtab.c. All local callers
526 of symbol_matches_domain updated.
527 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
528 search STRUCT_DOMAIN.
529 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
530 independently. standard_lookup will do that automatically.
531 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
532 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
533 (cp_lookup_symbol_in_namespace): Likewise.
534 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
535 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
536 may return a STRUCT_DOMAIN match.
537 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
538 * cp-support.c: Include language.h.
539 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
541 * psymtab.c (match_partial_symbol): Compare the requested
542 domain with the symbol's domain directly.
543 (lookup_partial_symbol): Likewise.
544 * symtab.c (lookup_symbol_in_language): Explain when/why
545 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
546 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
547 appropriate languages.
548 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
549 and moved to ada-lang.c
550 (lookup_block_symbol): Explain that this function only returns
551 symbol matching the requested DOMAIN.
552 Compare the requested domain with the symbol's domain directly.
553 (iterate_over_symbols): Compare the requested domain with the
554 symbol's domain directly.
555 * symtab.h (symbol_matches_domain): Remove.
557 2014-04-14 Tom Tromey <tromey@redhat.com>
560 * c-exp.y (type_aggregate_p): New function.
561 (qualified_name, classify_inner_name): Use it.
562 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
563 and TYPE_TARGET_TYPE of an enum type.
564 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
566 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
567 handle TYPE_DECLARED_CLASS.
568 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
570 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
571 * valops.c (enum_constant_from_type): New function.
572 (value_aggregate_elt): Use it.
573 * cp-namespace.c (cp_lookup_nested_symbol): Handle
576 2014-04-14 Tom Tromey <tromey@redhat.com>
578 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
579 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
581 * value.h (value_aggregate_elt): Update.
583 2014-04-14 Tom Tromey <tromey@redhat.com>
585 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
587 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
589 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
590 (evaluate_subexp_standard): Pass noside argument.
591 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
592 if noside equals EVAL_NORMAL. If the subscript yields a vla type
593 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
594 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
595 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
597 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
599 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
600 points to a constant blob.
602 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
604 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
605 property and store it as the high bound and flag the range accordingly.
606 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
607 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
608 * gdbtypes.h (enum range_flags): New enum.
609 (struct range_bounds): Add flags member.
611 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
613 * c-typeprint.c (c_type_print_varspec_suffix): Added
614 check for not yet resolved high bound. If unresolved, print
615 "variable length" string to the console instead of random
618 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
620 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
622 (ada_template_to_fixed_record_type_1): Likewise.
623 (ada_to_fixed_type_1): Likewise.
624 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
625 (cp_print_value): Likewise.
626 * d-valprint.c (dynamic_array_type): Likewise.
627 * findvar.c (address_of_variable): Likewise.
628 * jv-valprint.c (java_value_print): Likewise.
629 * valops.c (value_ind): Likewise.
630 * value.c (coerce_ref): Likewise.
632 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
634 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
635 value and retrieve the dynamic type size.
637 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
639 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
640 passed to sizeof is dynamic evaluate the argument to compute the length.
642 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
643 Joel Brobecker <brobecker@adacore.com>
645 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
646 (dwarf2_evaluate_property): New function.
647 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
648 * dwarf2read.c (attr_to_dynamic_prop): New function.
649 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
651 * gdbtypes.c: Include dwarf2loc.h.
652 (is_dynamic_type): New function.
653 (resolve_dynamic_type): New function.
654 (resolve_dynamic_bounds): New function.
655 (get_type_length): New function.
656 (check_typedef): Use get_type_length to compute type length.
657 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
658 (TYPE_LOW_BOUND_KIND): New macro.
659 (is_dynamic_type): New function prototype.
660 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
661 to resolve dynamic properties of the type. Update comment.
662 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
664 2014-04-14 Richard Henderson <rth@redhat.com>
666 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
668 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
669 Doug Evans <xdje42@gmail.com>
671 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
672 dereference TYPE_CODE_REF values.
674 2014-04-11 Joel Brobecker <brobecker@adacore.com>
676 Revert the following changes due to regressions:
678 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
679 (dwarf2_evaluate_property): New function.
680 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
681 * dwarf2read.c (attr_to_dynamic_prop): New function.
682 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
684 * gdbtypes.c: Include dwarf2loc.h.
685 (is_dynamic_type): New function.
686 (resolve_dynamic_type): New function.
687 (resolve_dynamic_bounds): New function.
688 (get_type_length): New function.
689 (check_typedef): Use get_type_length to compute type length.
690 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
691 (TYPE_LOW_BOUND_KIND): New macro.
692 (is_dynamic_type): New function prototype.
693 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
694 to resolve dynamic properties of the type. Update comment.
695 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
697 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
698 passed to sizeof is dynamic evaluate the argument to compute the length.
700 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
701 value and retrieve the dynamic type size.
703 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
704 (ada_template_to_fixed_record_type_1): Likewise.
705 (ada_to_fixed_type_1): Likewise.
706 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
707 (cp_print_value): Likewise.
708 * d-valprint.c (dynamic_array_type): Likewise.
709 * eval.c (evaluate_subexp_with_coercion): Likewise.
710 * findvar.c (address_of_variable): Likewise.
711 * jv-valprint.c (java_value_print): Likewise.
712 * valops.c (value_ind): Likewise.
713 * value.c (coerce_ref): Likewise.
715 * c-typeprint.c (c_type_print_varspec_suffix): Added
716 check for not yet resolved high bound. If unresolved, print
717 "variable length" string to the console instead of random
720 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
721 property and store it as the high bound and flag the range accordingly.
722 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
723 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
724 * gdbtypes.h (enum range_flags): New enum.
725 (struct range_bounds): Add flags member.
727 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
728 points to a constant blob.
730 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
731 (evaluate_subexp_standard): Pass noside argument.
732 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
733 if noside equals EVAL_NORMAL. If the subscript yields a vla type
734 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
735 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
736 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
738 2014-04-11 Keith Seitz <keiths@redhat.com>
741 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
742 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
745 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
747 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
748 (evaluate_subexp_standard): Pass noside argument.
749 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
750 if noside equals EVAL_NORMAL. If the subscript yields a vla type
751 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
752 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
753 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
755 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
757 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
758 points to a constant blob.
760 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
762 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
763 property and store it as the high bound and flag the range accordingly.
764 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
765 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
766 * gdbtypes.h (enum range_flags): New enum.
767 (struct range_bounds): Add flags member.
769 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
771 * c-typeprint.c (c_type_print_varspec_suffix): Added
772 check for not yet resolved high bound. If unresolved, print
773 "variable length" string to the console instead of random
776 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
778 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
779 (ada_template_to_fixed_record_type_1): Likewise.
780 (ada_to_fixed_type_1): Likewise.
781 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
782 (cp_print_value): Likewise.
783 * d-valprint.c (dynamic_array_type): Likewise.
784 * eval.c (evaluate_subexp_with_coercion): Likewise.
785 * findvar.c (address_of_variable): Likewise.
786 * jv-valprint.c (java_value_print): Likewise.
787 * valops.c (value_ind): Likewise.
788 * value.c (coerce_ref): Likewise.
790 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
792 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
793 value and retrieve the dynamic type size.
795 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
797 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
798 passed to sizeof is dynamic evaluate the argument to compute the length.
800 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
802 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
803 (dwarf2_evaluate_property): New function.
804 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
805 * dwarf2read.c (attr_to_dynamic_prop): New function.
806 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
808 * gdbtypes.c: Include dwarf2loc.h.
809 (is_dynamic_type): New function.
810 (resolve_dynamic_type): New function.
811 (resolve_dynamic_bounds): New function.
812 (get_type_length): New function.
813 (check_typedef): Use get_type_length to compute type length.
814 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
815 (TYPE_LOW_BOUND_KIND): New macro.
816 (is_dynamic_type): New function prototype.
817 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
818 to resolve dynamic properties of the type. Update comment.
819 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
821 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
823 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
824 declaring high/low bounds and change uses accordingly. Call
825 create_range_type instead of create_static_range_type.
826 * gdbtypes.c (create_range_type): New function.
827 (create_range_type): Convert bounds into struct bound_prop and pass
828 them to create_range_type.
829 * gdbtypes.h (struct bound_prop): New struct.
830 (create_range_type): New function prototype.
831 (struct range_bounds): Use struct bound_prop instead of LONGEST for
832 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
833 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
835 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
837 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
839 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
840 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
841 * ada-lang.c: All uses of create_range_type updated.
842 * coffread.c: All uses of create_range_type updated.
843 * dwarf2read.c: All uses of create_range_type updated.
844 * f-exp.y: All uses of create_range_type updated.
845 * m2-valprint.c: All uses of create_range_type updated.
846 * mdebugread.c: All uses of create_range_type updated.
847 * stabsread.c: All uses of create_range_type updated.
848 * valops.c: All uses of create_range_type updated.
849 * valprint.c: All uses of create_range_type updated.
851 2014-04-10 Pedro Alves <palves@redhat.com>
853 * breakpoint.c (single_step_breakpoints)
854 (single_step_gdbarch): Move up in the file.
855 (one_breakpoint_xfer_memory): New function, factored out from ...
856 (breakpoint_xfer_memory): ... here. Also process single-step
859 2014-04-09 Tristan Gingold <gingold@adacore.com>
861 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
863 (darwin_decode_exception_message): Free port only after use.
865 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
867 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
868 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
869 when setting the size of call_length.
871 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
873 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
874 dereference TYPE_CODE_REF values.
876 2014-04-07 Joel Brobecker <brobecker@adacore.com>
878 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
879 end of warning message.
881 2014-04-03 Doug Evans <dje@google.com>
883 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
884 of stub_comp_unit_die, stub_comp_dir is non-NULL.
886 2014-04-02 Alan Modra <amodra@gmail.com>
888 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
889 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
890 (struct symbol_file_add_from_memory_args): Add size field.
891 (find_vdso_size): New function.
892 (add_vsyscall_page): Attempt to find vdso size.
894 2014-04-01 Doug Evans <dje@google.com>
896 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
898 2014-04-01 Tristan Gingold <gingold@adacore.com>
900 * darwin-nat.c (darwin_encode_reply): Add prototype.
901 (darwin_decode_exception_message): Reply to unknown inferiors.
902 (darwin_decode_message): Handle message by id. Ignore message
904 (darwin_wait): Discard unknown messages, add debug trace.
906 2014-03-31 Doug Evans <dje@google.com>
908 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
911 2014-03-31 Doug Evans <dje@google.com>
913 New option "set print symbol-loading".
915 * solib.c (solib_read_symbols): Only print symbol loading messages
917 (solib_add): If symbol loading is in "brief" mode, notify user
918 symbols are being loaded.
919 (reload_shared_libraries_1): Ditto.
920 * symfile.c (print_symbol_loading_off): New static global.
921 (print_symbol_loading_brief): New static global.
922 (print_symbol_loading_full): New static global.
923 (print_symbol_loading_enums): New static global.
924 (print_symbol_loading): New static global.
925 (print_symbol_loading_p): New function.
926 (symbol_file_add_with_addrs): Only print symbol loading messages
928 (_initialize_symfile): Register "print symbol-loading" set/show
930 * symfile.h (print_symbol_loading_p): Declare.
932 2014-03-30 Doug Evans <xdje42@gmail.com>
934 * infrun.c (set_last_target_status): New function.
935 (handle_inferior_event): Call it.
937 2014-03-30 Doug Evans <xdje42@gmail.com>
939 * inferior.h (enum stop_kind): Improve comment.
941 2014-03-28 Joel Brobecker <brobecker@adacore.com>
943 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
944 a reference, strip the reference layer before calling
945 the lang_ops value_has_mutated callback.
947 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
949 Remove some globals from our parser.
950 * language.c (unk_lang_parser): Add "struct parser_state"
952 * language.h (struct language_defn) <la_parser>: Likewise.
953 * parse.c (expout, expout_size, expout_ptr): Remove variables.
954 (initialize_expout): Add "struct parser_state" argument.
955 Rewrite function to use the parser state.
956 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
957 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
958 write_exp_elt_longcst, write_exp_elt_dblcst,
959 write_exp_elt_decfloatcst, write_exp_elt_type,
960 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
961 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
962 write_dollar_variable): Likewise.
963 (parse_exp_in_context_1): Use parser state.
964 (insert_type_address_space): Add "struct parser_state" argument.
966 (increase_expout_size): New function.
967 * parser-defs.h: Forward declare "struct language_defn" and
968 "struct parser_state".
969 (expout, expout_size, expout_ptr): Remove extern declarations.
970 (parse_gdbarch, parse_language): Rewrite macro declarations to
971 accept the parser state.
972 (struct parser_state): New struct.
973 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
974 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
975 write_exp_elt_decfloatcst, write_exp_elt_type,
976 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
977 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
978 write_exp_msymbol, write_dollar_variable,
979 mark_struct_expression, insert_type_address_space): Add "struct
980 parser_state" argument.
981 (increase_expout_size): New function.
982 * utils.c (do_clear_parser_state): New function.
983 (make_cleanup_clear_parser_state): Likewise.
984 * utils.h (make_cleanup_clear_parser_state): New function
986 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
987 Update calls to write_exp* in order to pass the parser state.
988 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
989 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
990 (i386_stap_parse_special_token_three_arg_disp): Likewise.
991 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
992 * stap-probe.c (stap_parse_register_operand): Likewise.
993 (stap_parse_single_operand): Likewise.
994 (stap_parse_argument_1): Likewise.
995 (stap_parse_argument): Use parser state.
996 * stap-probe.h: Include "parser-defs.h".
997 (struct stap_parse_info) <pstate>: New field.
998 * c-exp.y (parse_type): Rewrite to use parser state.
999 (yyparse): Redefine to c_parse_internal.
1000 (pstate): New global variable.
1001 (parse_number): Add "struct parser_state" argument.
1002 (write_destructor_name): Likewise.
1003 (type_exp): Update calls to write_exp* and similars in order to
1005 (exp1, exp, variable, qualified_name, space_identifier,
1006 typename, typebase): Likewise.
1007 (write_destructor_name, parse_number, lex_one_token,
1008 classify_name, classify_inner_name, c_parse): Add "struct
1009 parser_state" argument. Update function to use parser state.
1010 * c-lang.h: Forward declare "struct parser_state".
1011 (c_parse): Add "struct parser_state" argument.
1012 * ada-exp.y (parse_type): Rewrite macro to use parser state.
1013 (yyparse): Redefine macro to ada_parse_internal.
1014 (pstate): New variable.
1015 (write_int, write_object_renaming, write_var_or_type,
1016 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
1017 type_int, type_long, type_long_long, type_float, type_double,
1018 type_long_double, type_char, type_boolean, type_system_address):
1019 Add "struct parser_state" argument.
1020 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
1021 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
1022 var_or_type, aggregate, aggregate_component_list,
1023 positional_list, others, component_group,
1024 component_associations): Update calls to write_exp* and similar
1025 functions in order to use parser state.
1026 (ada_parse, write_var_from_sym, write_int,
1027 write_exp_op_with_string, write_object_renaming,
1028 find_primitive_type, write_selectors, write_ambiguous_var,
1029 write_var_or_type, write_name_assoc, type_int, type_long,
1030 type_long_long, type_float, type_double, type_long_double,
1031 type_char, type_boolean, type_system_address): Add "struct
1032 parser_state" argument. Adjust function to use parser state.
1033 * ada-lang.c (parse): Likewise.
1034 * ada-lang.h: Forward declare "struct parser_state".
1035 (ada_parse): Add "struct parser_state" argument.
1036 * ada-lex.l (processInt, processReal): Likewise. Adjust all
1037 calls to both functions.
1038 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
1040 (yyparse): Redefine macro to f_parse_internal.
1041 (pstate): New variable.
1042 (parse_number): Add "struct parser_state" argument.
1043 (type_exp, exp, subrange, typebase): Update calls to write_exp*
1044 and similars in order to use parser state.
1045 (parse_number): Adjust code to use parser state.
1047 (f_parse): New function.
1048 * f-lang.h: Forward declare "struct parser_state".
1049 (f_parse): Add "struct parser_state" argument.
1050 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
1052 (yyparse): Redefine macro for java_parse_internal.
1053 (pstate): New variable.
1054 (push_expression_name, push_expression_name, insert_exp): Add
1055 "struct parser_state" argument.
1056 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
1057 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
1058 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
1059 PostIncrementExpression, PostDecrementExpression,
1060 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
1061 UnaryExpressionNotPlusMinus, CastExpression,
1062 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
1063 RelationalExpression, EqualityExpression, AndExpression,
1064 ExclusiveOrExpression, InclusiveOrExpression,
1065 ConditionalAndExpression, ConditionalOrExpression,
1066 ConditionalExpression, Assignment, LeftHandSide): Update
1067 calls to write_exp* and similars in order to use parser state.
1068 (parse_number): Ajust code to use parser state.
1070 (java_parse): New function.
1071 (push_variable): Add "struct parser_state" argument. Adjust
1072 code to user parser state.
1073 (push_fieldnames, push_qualified_expression_name,
1074 push_expression_name, insert_exp): Likewise.
1075 * jv-lang.h: Forward declare "struct parser_state".
1076 (java_parse): Add "struct parser_state" argument.
1077 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
1079 (yyparse): Redefine macro to m2_parse_internal.
1080 (pstate): New variable.
1081 (type_exp, exp, fblock, variable, type): Update calls to
1082 write_exp* and similars to use parser state.
1084 (m2_parse): New function.
1085 * m2-lang.h: Forward declare "struct parser_state".
1086 (m2_parse): Add "struct parser_state" argument.
1087 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
1088 * objc-lang.h: Forward declare "struct parser_state".
1089 (end_msglist): Add "struct parser_state" argument.
1090 * p-exp.y (parse_type): Rewrite macro to use parser state.
1091 (yyparse): Redefine macro to pascal_parse_internal.
1092 (pstate): New variable.
1093 (parse_number): Add "struct parser_state" argument.
1094 (type_exp, exp1, exp, qualified_name, variable): Update calls to
1095 write_exp* and similars in order to use parser state.
1096 (parse_number, yylex): Adjust code to use parser state.
1097 (pascal_parse): New function.
1098 * p-lang.h: Forward declare "struct parser_state".
1099 (pascal_parse): Add "struct parser_state" argument.
1100 * go-exp.y (parse_type): Rewrite macro to use parser state.
1101 (yyparse): Redefine macro to go_parse_internal.
1102 (pstate): New variable.
1103 (parse_number): Add "struct parser_state" argument.
1104 (type_exp, exp1, exp, variable, type): Update calls to
1105 write_exp* and similars in order to use parser state.
1106 (parse_number, lex_one_token, classify_name, yylex): Adjust code
1107 to use parser state.
1108 (go_parse): Likewise.
1109 * go-lang.h: Forward declare "struct parser_state".
1110 (go_parse): Add "struct parser_state" argument.
1112 2014-03-27 Doug Evans <dje@google.com>
1114 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
1116 2014-03-27 Doug Evans <dje@google.com>
1118 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
1119 Remove argument abbrev_section. All callers updated.
1121 2014-03-27 Doug Evans <dje@google.com>
1123 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
1124 addr_base, ranges_base.
1126 2014-03-26 Keith Seitz <keiths@redhat.com>
1128 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
1129 types, not VAR_DOMAIN.
1131 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
1133 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
1135 * features/nios2-linux.c: Regenerated.
1136 * features/nios2.c: Regenerated.
1138 2014-03-25 Pedro Alves <palves@redhat.com>
1140 * cli/cli-script.c (script_from_file): Force the interpreter to
1143 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
1145 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
1146 small stack allocation.
1148 2014-03-24 Tristan Gingold <gingold@adacore.com>
1150 * darwin-nat.c (exc_server): Remove unused prototype.
1151 (darwin_dump_message): Correctly display data on x86_64.
1152 (darwin_encode_reply): Fix style.
1153 Add comments and fix indentation.
1155 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
1157 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
1159 2014-03-22 Doug Evans <xdje42@gmail.com>
1161 * infcmd.c: Whitespace fixes.
1162 (interrupt_command): Merge two function comments into one.
1164 2014-03-22 Doug Evans <xdje42@gmail.com>
1166 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
1169 2014-03-22 Yao Qi <yao@codesourcery.com>
1171 * remote.c (target_read_live_memory): Remove.
1172 (memory_xfer_live_readonly_partial): Rename it to
1173 remote_xfer_live_readonly_partial. Remove argument 'object'.
1174 All callers updated. Call remote_read_bytes_1
1175 instead of target_read_live_memory.
1176 * tracepoint.c (set_traceframe_number): Remove.
1177 (make_cleanup_restore_traceframe_number): Likewise .
1178 * tracepoint.h (set_traceframe_number): Remove declaration.
1179 (make_cleanup_restore_traceframe_number): Likewise.
1181 2014-03-22 Yao Qi <yao@codesourcery.com>
1183 * remote.c (remote_read_bytes): Move code on reading from the
1185 (remote_read_bytes_1): ... here. New function.
1187 2014-03-22 Yao Qi <yao@codesourcery.com>
1189 * ctf.c (ctf_xfer_partial): Check the return value of
1190 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
1191 return TARGET_XFER_UNAVAILABLE.
1192 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
1193 * target.c (target_read_live_memory): Move it to remote.c.
1194 (memory_xfer_live_readonly_partial): Likewise.
1195 (memory_xfer_partial_1): Move some code to remote_read_bytes.
1196 * remote.c (target_read_live_memory): Moved from target.c.
1197 (memory_xfer_live_readonly_partial): Likewise.
1198 (remote_read_bytes): Factored out from
1199 memory_xfer_partial_1.
1201 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
1203 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
1206 2014-03-21 Pedro Alves <palves@redhat.com>
1208 * infrun.c (normal_stop): Extend comment.
1210 2014-03-21 Hui Zhu <hui@codesourcery.com>
1211 Pedro Alves <palves@redhat.com>
1213 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
1215 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
1216 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
1217 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
1219 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
1221 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
1222 `z' formatted output modifier.
1224 2014-03-20 Tom Tromey <tromey@redhat.com>
1225 Sergio Durigan Junior <sergiodj@redhat.com>
1227 * probe.c (parse_probes): Turn assert into an ordinary error.
1228 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
1229 exceptions when parsing probes. Rearrange the code for clarity.
1231 2014-03-20 Tom Tromey <tromey@redhat.com>
1234 * top.c (execute_command): Only dispatch events if the command
1237 2014-03-20 Tom Tromey <tromey@redhat.com>
1240 * infcall.c: Include event-top.h.
1241 (run_inferior_call): Call async_disable_stdin if needed.
1243 2014-03-20 Pedro Alves <palves@redhat.com>
1245 * infrun.c (prepare_to_proceed): Delete.
1246 (thread_still_needs_step_over): New function.
1247 (find_thread_needs_step_over): New function.
1248 (proceed): If the current thread needs a step-over, set its
1249 steping_over_breakpoint flag. Adjust to use
1250 find_thread_needs_step_over instead of prepare_to_proceed.
1251 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
1252 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
1254 (switch_back_to_stepped_thread): Step over breakpoints of all
1255 threads not the stepping thread, before switching back to the
1258 2014-03-20 Pedro Alves <palves@redhat.com>
1260 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
1262 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
1263 * infrun.c (saved_singlestep_ptid)
1264 (stepping_past_singlestep_breakpoint): Delete.
1265 (resume): Remove stepping_past_singlestep_breakpoint handling.
1266 (proceed): Store the prev_pc of the stepping thread too.
1267 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
1269 (enum infwait_states): Delete infwait_thread_hop_state.
1270 (struct execution_control_state) <hit_singlestep_breakpoint>: New
1272 (handle_inferior_event): Adjust.
1273 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
1274 handling and the thread-hop code. Before removing single-step
1275 breakpoints, check whether the thread hit a single-step breakpoint
1276 of another thread. If it did, the trap is not a random signal.
1277 (switch_back_to_stepped_thread): If the event thread hit a
1278 single-step breakpoint, unblock it before switching to the
1279 stepping thread. Handle the case of the stepped thread having
1281 (keep_going): Handle the case of the current thread moving past a
1282 single-step breakpoint.
1284 2014-03-20 Pedro Alves <palves@redhat.com>
1287 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
1288 are being stepped over.
1289 (breakpoint_address_match): Make extern.
1290 * breakpoint.h (breakpoint_address_match): New declaration.
1291 * inferior.h (stepping_past_instruction_at): New declaration.
1292 * infrun.c (struct step_over_info): New type.
1293 (step_over_info): New global.
1294 (set_step_over_info, clear_step_over_info)
1295 (stepping_past_instruction_at): New functions.
1296 (handle_inferior_event): Clear the step-over info when
1297 trap_expected is cleared.
1298 (resume): Remove now stale comment.
1299 (clear_proceed_status): Clear step-over info.
1300 (proceed): Adjust step-over handling to set or clear the step-over
1301 info instead of removing all breakpoints.
1302 (handle_signal_stop): When setting up a thread-hop, don't remove
1304 (stop_stepping): Clear step-over info.
1305 (keep_going): Adjust step-over handling to set or clear step-over
1306 info and then always inserting breakpoints, instead of removing
1307 all breakpoints when stepping over one.
1309 2014-03-20 Pedro Alves <palves@redhat.com>
1311 * infrun.c (previous_inferior_ptid): Adjust comment.
1312 (deferred_step_ptid): Delete.
1313 (infrun_thread_ptid_changed, prepare_to_proceed)
1314 (init_wait_for_inferior): Adjust.
1315 (handle_signal_stop): Delete deferred_step_ptid handling.
1317 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1320 * defs.h (sync_quit_force_run): New declaration.
1321 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
1322 * event-top.c (async_sigterm_handler): New declaration.
1323 (async_sigterm_token): New variable.
1324 (async_init_signals): Create also async_sigterm_token.
1325 (async_sigterm_handler): New function.
1326 (sync_quit_force_run): New variable.
1327 (handle_sigterm): Replace quit_force call by other calls.
1328 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
1330 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
1332 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
1333 offset into SPE pseudo registers.
1335 2014-03-18 Pedro Alves <palves@redhat.com>
1338 * inferior.h (print_stop_event): Declare.
1339 * infrun.c (print_stop_event): New, factored out from ...
1340 (normal_stop): ... this.
1341 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
1342 of bpstat_print/print_stack_frame.
1344 2014-03-17 Tom Tromey <tromey@redhat.com>
1346 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
1348 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
1350 * ada-lang.c (decode_constrained_packed_array): Perform a
1351 minimal coercion for reference with coerce_ref instead of
1354 2014-03-17 Tristan Gingold <gingold@adacore.com>
1356 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
1357 (darwin_solib_create_inferior_hook): Emit a warning if version
1360 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
1362 * python/py-value.c (get_field_flag): Cast flag_name argument to
1363 PyObject_GetAttrString to support Python 2.4.
1365 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1367 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
1368 (Global Maintainers): Remove Jan Kratochvil.
1370 2014-03-14 Pedro Alves <palves@redhat.com>
1372 * inferior.h (terminal_ours_for_output): Rename to ...
1373 (child_terminal_ours_for_output): ... this.
1374 (terminal_save_ours): Rename to ...
1375 (child_terminal_save_ours): ... this.
1376 (terminal_ours): Rename to ...
1377 (child_terminal_ours): ... this.
1378 (terminal_inferior): Rename to ...
1379 (child_terminal_inferior): ... this.
1380 (terminal_init_inferior): Rename to ...
1381 (child_terminal_init_inferior): ... this.
1382 (terminal_init_inferior_with_pgrp): Rename to ...
1383 (child_terminal_init_inferior_with_pgrp): ... this.
1384 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
1385 (child_terminal_init_with_pgrp): ... this.
1386 (terminal_save_ours): Rename to ...
1387 (child_terminal_save_ours): ... this.
1388 (terminal_init_inferior): Rename to ...
1389 (child_terminal_init): ... this. Adjust.
1390 (terminal_inferior): Rename to ...
1391 (child_terminal_inferior): ... this.
1392 (terminal_ours_for_output): Rename to ...
1393 (child_terminal_ours_for_output): ... this. Adjust.
1394 (terminal_ours): Rename to ...
1395 (child_terminal_ours): ... this.
1396 (terminal_ours_1): Rename to ...
1397 (child_terminal_ours_1): ... this. Adjust.
1398 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
1399 * windows-nat.c (do_initial_windows_stuff): Adjust.
1400 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
1401 (gnu_terminal_init): ... this. Adjust.
1402 (gnu_target): Adjust.
1403 * inf-child.c (inf_child_target): Adjust.
1405 2014-03-13 Doug Evans <xdje42@gmail.com>
1408 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
1411 2014-03-13 Doug Evans <xdje42@gmail.com>
1413 * value.c (record_latest_value): Call release_value_or_incref
1414 instead of release_value.
1416 2014-03-13 Pedro Alves <palves@redhat.com>
1418 * procfs.c (procfs_target): Don't override to_shortname,
1419 to_longname or to_doc.
1421 2014-03-13 Pedro Alves <palves@redhat.com>
1423 * inf-child.c (inf_child_open, inf_child_target): Don't mention
1424 Unix in user visible strings.
1426 2014-03-12 Stan Shebs <stan@codesourcery.com>
1428 * gdbtypes.h: Annotate comments for Doxygen, add a page
1429 block comment with some general info.
1431 2014-03-12 Pedro Alves <palves@redhat.com>
1433 * infcmd.c (prepare_execution_command): New function, factored out
1434 from several execution commands.
1435 (run_command_1, continue_command, step_1, jump_command)
1436 (signal_command, until_command, advance_command, finish_command)
1437 (attach_command): Use prepare_execution_command.
1439 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
1441 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
1444 (struct arm_linux_thread_points): Removed.
1445 (struct arm_linux_process_info): New.
1446 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
1447 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
1448 (arm_linux_find_breakpoints_by_tid): Removed.
1449 (struct arch_lwp_info): New.
1450 (arm_linux_find_process_pid): New functions.
1451 (arm_linux_add_process): New functions.
1452 (arm_linux_process_info_get): New functions.
1453 (arm_linux_forget_process): New function.
1454 (arm_linux_get_debug_reg_state): New function.
1455 (struct update_registers_data): New.
1456 (update_registers_callback): New function.
1457 (arm_linux_insert_hw_breakpoint1): Updated.
1458 (arm_linux_remove_hw_breakpoint1): Updated.
1459 (arm_linux_insert_hw_breakpoint): Updated.
1460 (arm_linux_remove_hw_breakpoint): Updated.
1461 (arm_linux_insert_watchpoint): Updated.
1462 (arm_linux_remove_watchpoint): Updated.
1463 (arm_linux_new_thread): Updated.
1464 (arm_linux_prepare_to_resume): New function.
1465 (arm_linux_new_fork): New function.
1466 (_initialize_arm_linux_nat): Updated.
1468 2014-03-12 Pedro Alves <palves@redhat.com>
1470 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
1472 2014-03-12 Tom Tromey <tromey@redhat.com>
1474 * inf-child.c (return_zero): New function.
1475 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
1476 * aix-thread.c (aix_thread_inferior_created): New function.
1477 (aix_thread_attach): Remove.
1478 (init_aix_thread_ops): Don't set to_attach.
1479 (_initialize_aix_thread): Register inferior_created observer.
1480 * corelow.c (init_core_ops): Don't set to_attach or
1482 * exec.c (init_exec_ops): Don't set to_attach or
1484 * infcmd.c (run_command_1): Use find_run_target. Make direct
1486 (attach_command): Use find_attach_target. Make direct target
1488 * record-btrace.c (init_record_btrace_ops): Don't set
1490 * record-full.c (record_full_can_async_p, record_full_is_async_p):
1492 (init_record_full_ops, init_record_full_core_ops): Update. Don't
1493 set to_create_inferior.
1494 * target.c (complete_target_initialization): Add assertion.
1495 (target_create_inferior): Remove.
1496 (find_default_attach, find_default_create_inferior): Remove.
1497 (find_attach_target, find_run_target): New functions.
1498 (find_default_is_async_p, find_default_can_async_p)
1499 (target_supports_non_stop, target_attach): Remove.
1500 (init_dummy_target): Don't set to_create_inferior or
1501 to_supports_non_stop.
1502 * target.h (struct target_ops) <to_attach>: Add comment. Remove
1503 TARGET_DEFAULT_FUNC.
1504 <to_create_inferior>: Add comment.
1505 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
1506 TARGET_DEFAULT_RETURN.
1507 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
1508 (find_attach_target, find_run_target): Declare.
1509 (target_create_inferior): Remove.
1510 (target_has_execution_1): Update comment.
1511 (target_supports_non_stop): Remove.
1512 * target-delegates.c: Rebuild.
1514 2014-03-12 Pedro Alves <palves@redhat.com>
1516 * inf-child.h: Update comment to not mention Unix.
1518 2014-03-12 Pedro Alves <palves@redhat.com>
1520 * inf-child.c: Update top comment to not mention Unix. Add
1521 generic comment describing how this target is meant to be used.
1522 (inf_child_post_attach, inf_child_post_startup_inferior)
1523 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
1526 2014-03-12 Pedro Alves <palves@redhat.com>
1528 * nto-procfs.c: Include inf-child.h.
1529 (procfs_ops): Delete global.
1530 (procfs_can_run): Delete method.
1531 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
1532 target pointer instead of referencing procfs_ops.
1533 (procfs_prepare_to_store): Delete.
1534 (init_procfs_ops): Delete function.
1535 (procfs_target): New function, based on init_procfs_ops, but
1536 inherit inf_child_target.
1537 (_initialize_procfs): Use procfs_target.
1539 2014-03-12 Pedro Alves <palves@redhat.com>
1541 * windows-nat.c: Include inf-child.h.
1542 (windows_ops): Delete global.
1543 (windows_open, windows_prepare_to_store, windows_can_run): Delete
1545 (init_windows_ops): Delete function.
1546 (windows_target): New function, based on init_windows_ops, but
1547 inherit inf_child_target.
1548 (_initialize_windows_nat): Use windows_target. Install x86
1549 specific target methods here.
1551 2014-03-10 Doug Evans <xdje42@gmail.com>
1553 * guile/guile.c (call_initialize_gdb_module): New function.
1554 (initialize_guile): Replace call to scm_init_guile with call to
1557 2014-03-10 Joel Brobecker <brobecker@adacore.com>
1559 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
1560 in call to TYPE_CODE macro.
1562 2014-03-10 Jerome Guitton <guitton@adacore.com>
1564 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
1565 Resolve tagged types to full view.
1567 2014-03-10 Hui Zhu <hui@codesourcery.com>
1569 * target.h (target_insert_breakpoint): Remove "hardware" from its
1572 2014-03-07 Doug Evans <dje@google.com>
1574 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
1576 2014-03-07 Doug Evans <dje@google.com>
1578 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
1579 Remove unused local comp_dir_attr. Assert exactly one of
1580 stub_comp_unit_die, stub_comp_dir is non-NULL.
1582 2014-03-07 Joel Brobecker <brobecker@adacore.com>
1584 * target.h (complete_target_initialization, add_target):
1587 2014-03-07 Pedro Alves <palves@redhat.com>
1589 * go32-nat.c: Include inf-child.h.
1590 (go32_ops): Delete global.
1591 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
1593 (go32_create_inferior): Push the passed in target pointer instead
1594 of referencing go32_ops.
1595 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
1596 (go32_target): New function, based on init_go32_ops, but inherit
1598 (_initialize_go32_nat): Use go32_target. Move parts of
1601 2014-03-06 Joel Brobecker <brobecker@adacore.com>
1603 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
1604 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
1605 SYMBOL_VALUE_ADDRESS.
1606 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
1608 2014-03-06 Yao Qi <yao@codesourcery.com>
1610 * breakpoint.c (get_tracepoint_by_number): Remove argument
1611 optional_p. All callers updated. Adjust comments. Update
1613 * breakpoint.h (get_tracepoint_by_number): Update declaration.
1615 2014-03-06 Yao Qi <yao@codesourcery.com>
1617 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
1618 early if get_number returns zero. Use 'p' instead of 'args'.
1620 2014-03-06 Yao Qi <yao@codesourcery.com>
1622 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
1625 2014-03-06 Yao Qi <yao@codesourcery.com>
1627 PR breakpoints/16508
1628 * tracepoint.c (check_trace_running): New function.
1629 (trace_find_command): Move code to check_trace_running and
1630 call check_trace_running.
1631 (trace_find_pc_command): Likewise.
1632 (trace_find_tracepoint_command): Likewise.
1633 (trace_find_line_command): Likewise.
1634 (trace_find_range_command): Likewise.
1635 * tracepoint.h (check_trace_running): Likewise.
1636 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
1638 2014-03-06 Yao Qi <yao@codesourcery.com>
1640 * target.h (struct target_ops) <to_traceframe_info>: Use
1641 TARGET_DEFAULT_NORETURN (tcomplain ()).
1642 * target-delegates.c: Regenerated.
1644 2014-03-05 Pedro Alves <palves@redhat.com>
1647 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
1648 void. Update comment.
1649 (dcache_xfer_memory): Delete.
1650 (dcache_read_memory_partial): New, based on the read bits of
1652 (dcache_update): Add status parameter. Use ULONGEST for len, and
1653 adjust. Discard cache lines if the reason for the update was
1655 * dcache.h (dcache_xfer_memory): Delete declaration.
1656 (dcache_read_memory_partial): New declaration.
1657 (dcache_update): Update prototype.
1658 * target.c (raw_memory_xfer_partial): Update the dcache here.
1659 (memory_xfer_partial_1): Don't handle dcache writes here.
1661 2014-03-05 Mike Frysinger <vapier@gentoo.org>
1663 * remote-sim.c (gdbsim_load): Add const to prog.
1665 2014-03-03 Tom Tromey <tromey@redhat.com>
1667 * elfread.c (probe_key): Change to bfd_data.
1668 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
1669 now per-BFD, not per-objfile.
1670 * stap-probe.c (stap_probe_destroy): Update comment.
1671 (handle_stap_probe): Allocate on the per-BFD obstack.
1673 2014-03-03 Tom Tromey <tromey@redhat.com>
1675 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
1676 * breakpoint.c (create_longjmp_master_breakpoint): Use
1678 (add_location_to_breakpoint, bkpt_probe_insert_location)
1679 (bkpt_probe_remove_location): Update.
1680 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
1681 * elfread.c (elf_symfile_relocate_probe): Remove.
1682 (elf_probe_fns): Update.
1683 (insert_exception_resume_breakpoint): Change type of "probe"
1684 parameter to bound_probe.
1685 (check_exception_resume): Update.
1686 * objfiles.c (objfile_relocate1): Don't relocate probes.
1687 * probe.c (bound_probe_s): New typedef.
1688 (parse_probes): Use get_probe_address. Set sal's objfile.
1689 (find_probe_by_pc): Return a bound_probe.
1690 (collect_probes): Return a VEC(bound_probe_s).
1691 (compare_probes): Update.
1692 (gen_ui_out_table_header_info): Change type of "probes"
1694 (info_probes_for_ops): Update.
1695 (get_probe_address): New function.
1696 (probe_safe_evaluate_at_pc): Update.
1697 * probe.h (struct probe_ops) <get_probe_address>: New field.
1698 <set_semaphore, clear_semaphore>: Add objfile parameter.
1699 (struct probe) <objfile>: Remove field.
1701 <address>: Update comment.
1702 (struct bound_probe): New.
1703 (find_probe_by_pc): Return a bound_probe.
1704 (get_probe_address): Declare.
1705 * solib-svr4.c (struct probe_and_action) <address>: New field.
1706 (hash_probe_and_action, equal_probe_and_action): Update.
1707 (register_solib_event_probe): Add address parameter.
1708 (solib_event_probe_at): Update.
1709 (svr4_create_probe_breakpoints): Add objfile parameter. Use
1711 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
1712 (stap_get_probe_address): New function.
1713 (stap_can_evaluate_probe_arguments, compute_probe_arg)
1714 (compile_probe_arg): Update.
1715 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
1717 (handle_stap_probe): Don't relocate the probe.
1718 (stap_relocate): Remove.
1719 (stap_gen_info_probes_table_values): Update.
1720 (stap_probe_ops): Remove stap_relocate.
1721 * symfile-debug.c (debug_sym_relocate_probe): Remove.
1722 (debug_sym_probe_fns): Update.
1723 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
1724 * symtab.c (init_sal): Use memset.
1725 * symtab.h (struct symtab_and_line) <objfile>: New field.
1726 * tracepoint.c (start_tracing, stop_tracing): Update.
1728 2014-03-03 Tom Tromey <tromey@redhat.com>
1730 * probe.h (parse_probes, find_probe_by_pc)
1731 (find_probes_in_objfile): Fix comments.
1733 2014-03-02 Doug Evans <xdje42@gmail.com>
1735 * infrun.c (handle_signal_stop): Replace test for
1736 TARGET_WAITKIND_STOPPED with an assert.
1738 2014-03-02 Doug Evans <xdje42@gmail.com>
1740 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
1742 2014-03-02 Doug Evans <xdje42@gmail.com>
1744 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
1746 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1748 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
1750 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1752 * i386obsd-nat.c: Include "obsd-nat.h".
1753 (_initialize_i386obsd_nat): Call obsd_add_target instead of
1755 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
1757 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1759 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
1761 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1763 * mips64obsd-nat.c: Include "obsd-nath".
1764 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
1766 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
1768 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1770 * amd64obsd-nat.c: Include "obsd-nat,h.
1771 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
1773 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
1775 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
1777 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
1778 (find_overload_match): Update call to find_oload_champ.
1779 (find_oload_champ_namespace_loop): Likewise
1781 2014-02-28 Mark Kettenis <kettenis@gnu.org>
1783 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
1785 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
1786 * config/sparc/obsd64.mh: New file.
1787 * sparc64obsd-nat.c: New file.
1789 * obsd-nat.h: New file.
1790 * obsd-nat.c: New file.
1791 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
1792 (ALLDEPFILES): Add obsd-nat.c.
1794 2014-02-28 Tom Tromey <tromey@redhat.com>
1796 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
1797 * cli-out.h (cli_ui_out_impl): Now const.
1798 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
1799 * ui-out.c (struct ui_out) <impl>: Now const.
1800 (default_ui_out_impl): Now const.
1801 (ui_out_new): Make 'impl' parameter const.
1802 * ui-out.h (ui_out_new): Update.
1804 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1806 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
1808 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1810 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
1812 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1814 Additional PR 8882 fix.
1815 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
1817 2014-02-27 Pedro Alves <palves@redhat.com>
1819 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
1822 2014-02-27 Pedro Alves <palves@redhat.com>
1825 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
1826 * nat/linux-waitpid.c: Include string.h.
1827 (status_to_str): Moved here and made extern.
1828 * nat/linux-waitpid.h (status_to_str): New declaration.
1830 2014-02-27 Hui Zhu <hui@codesourcery.com>
1833 * infrun.c (ptid_match): Move ...
1834 * common/ptid.c (ptid_match): ... here.
1835 * inferior.h (ptid_match): Move ...
1836 * common/ptid.h (ptid_match): ... here.
1838 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1840 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
1841 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
1844 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1846 * obsd-tdep.c (obsd_auxv_parse): New function.
1847 (obsd_init_abi): Set auxv_parse.
1849 * gdbarch.sh (auxv_parse): New.
1850 * gdbarch.h: Regenerated.
1851 * gdbarch.c: Regenerated.
1852 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
1854 2014-02-26 Ludovic Courtès <ludo@gnu.org>
1856 * guile/scm-value.c (gdbscm_history_append_x): New function.
1857 (value_functions): Add it.
1859 2014-02-27 Joel Brobecker <brobecker@adacore.com>
1861 * dwarf2read.c (attr_value_as_address): New function.
1862 (dwarf2_find_base_address, read_call_site_scope): Use
1863 attr_value_as_address in place of DW_ADDR.
1864 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
1865 the low and high addresses. Slight rework of the handling
1866 of the high pc being a constant form, and limit it to
1867 DWARF verson 4 or higher.
1868 (dwarf2_record_block_ranges): Likewise.
1869 (read_partial_die): Likewise.
1870 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
1872 2014-02-26 Tom Tromey <tromey@redhat.com>
1874 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
1876 2014-02-26 Tom Tromey <tromey@redhat.com>
1878 * elfread.c (elf_read_minimal_symbols): Return early if
1879 minimal symbols have already been read. Add "ei" parameter.
1880 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
1881 * minsyms.c (prim_record_minimal_symbol_full): Update.
1882 * objfiles.h (struct objstats) <n_minsyms>: Move...
1883 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
1884 * symmisc.c (print_objfile_statistics): Update.
1886 2014-02-26 Tom Tromey <tromey@redhat.com>
1888 * elfread.c (elf_read_minimal_symbols): New function, from
1890 (elf_symfile_read): Call it.
1892 2014-02-26 Tom Tromey <tromey@redhat.com>
1894 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
1895 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
1896 (lookup_minimal_symbol_solib_trampoline)
1897 (lookup_minimal_symbol_by_pc_section_1)
1898 (lookup_minimal_symbol_and_objfile): Update.
1899 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
1900 Don't allocate a minimal symbol if minsyms have already been read.
1901 (build_minimal_symbol_hash_tables): Update.
1902 (install_minimal_symbols): Do nothing if minsyms already read.
1903 Use the per-BFD obstack.
1904 (terminate_minimal_symbol_table): Use the per-BFD obstack.
1905 * objfiles.c (allocate_objfile): Call
1906 terminate_minimal_symbol_table later.
1907 (have_minimal_symbols): Update.
1908 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
1909 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
1910 Move from struct objfile.
1911 <minsyms_read>: New field.
1912 (struct objfile) <msymbols, minimal_symbol_count,
1913 msymbol_hash, msymbol_demangled_hash>: Move.
1914 (ALL_OBJFILE_MSYMBOLS): Update.
1915 * symfile.c (read_symbols): Set minsyms_read.
1916 (reread_symbols): Update.
1917 * symmisc.c (dump_objfile, dump_msymbols): Update.
1919 2014-02-26 Tom Tromey <tromey@redhat.com>
1921 * minsyms.c (msymbols_sort): Remove.
1922 * minsyms.h (msymbols_sort): Remove.
1923 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
1924 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
1925 * elfread.c (elf_symtab_read): Don't add section offsets.
1926 * xcoffread.c (record_minimal_symbol): Don't add section offset
1927 to minimal symbol address.
1928 * somread.c (text_offset, data_offset): Remove.
1929 (som_symtab_read): Don't add section offsets to minimal symbol
1931 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
1932 Don't add section offsets to minimal symbols.
1933 * coffread.c (coff_symtab_read): Don't add section offsets
1934 to minimal symbol addresses.
1935 * machoread.c (macho_symtab_add_minsym): Don't add section offset
1936 to minimal symbol addresses.
1937 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
1938 section offset to minimal symbol addresses.
1939 * mdebugread.c (parse_partial_symbols): Don't add section
1940 offset to minimal symbol addresses.
1941 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
1942 offset to minimal symbol addresses.
1944 2014-02-26 Tom Tromey <tromey@redhat.com>
1946 * ada-lang.c (ada_main_name): Update.
1947 (ada_add_standard_exceptions): Update.
1948 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
1949 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
1950 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
1951 * auxv.c (ld_so_xfer_auxv): Update.
1952 * avr-tdep.c (avr_scan_prologue): Update.
1953 * ax-gdb.c (gen_var_ref): Update.
1954 * blockframe.c (get_pc_function_start)
1955 (find_pc_partial_function_gnu_ifunc): Update.
1956 * breakpoint.c (create_overlay_event_breakpoint)
1957 (create_longjmp_master_breakpoint)
1958 (create_std_terminate_master_breakpoint)
1959 (create_exception_master_breakpoint): Update.
1960 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
1961 * c-valprint.c (c_val_print): Update.
1962 * coff-pe-read.c (add_pe_forwarded_sym): Update.
1963 * common/agent.c (agent_look_up_symbols): Update.
1964 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
1965 * dwarf2loc.c (call_site_to_target_addr): Update.
1966 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
1967 * elfread.c (elf_gnu_ifunc_record_cache)
1968 (elf_gnu_ifunc_resolve_by_got): Update.
1969 * findvar.c (default_read_var_value): Update.
1970 * frame.c (inside_main_func): Update.
1971 * frv-tdep.c (frv_frame_this_id): Update.
1972 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
1973 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
1975 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
1976 (hppa_hpux_find_dummy_bpaddr): Update.
1977 * hppa-tdep.c (hppa_symbol_address): Update.
1978 * infcmd.c (until_next_command): Update.
1979 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
1981 * linespec.c (minsym_found, add_minsym): Update.
1982 * linux-nat.c (get_signo): Update.
1983 * linux-thread-db.c (inferior_has_bug): Update.
1984 * m32c-tdep.c (m32c_return_value)
1985 (m32c_m16c_address_to_pointer): Update.
1986 * m32r-tdep.c (m32r_frame_this_id): Update.
1987 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
1988 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
1989 * maint.c (maintenance_translate_address): Update.
1990 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
1991 (frob_address): New function.
1992 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
1993 frob_address. Rename parameter to "pc_in".
1994 (compare_minimal_symbols, compact_minimal_symbols): Use raw
1996 (find_solib_trampoline_target, minimal_symbol_upper_bound):
1998 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
1999 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
2000 * objc-lang.c (find_objc_msgsend): Update.
2001 * objfiles.c (objfile_relocate1): Update.
2002 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2003 * p-valprint.c (pascal_val_print): Update.
2004 * parse.c (write_exp_msymbol): Update.
2005 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
2006 (ppc_elfv2_skip_entrypoint): Update.
2007 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2008 * printcmd.c (build_address_symbolic, msym_info)
2009 (address_info): Update.
2010 * proc-service.c (ps_pglobal_lookup): Update.
2011 * psymtab.c (find_pc_sect_psymtab_closer)
2012 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
2013 Change msymbol parameter to bound_minimal_symbol.
2014 * ravenscar-thread.c (get_running_thread_id): Update.
2015 * remote.c (remote_check_symbols): Update.
2016 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
2018 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2019 * solib-dsbt.c (lm_base): Update.
2020 * solib-frv.c (lm_base, main_got): Update.
2021 * solib-irix.c (locate_base): Update.
2022 * solib-som.c (som_solib_create_inferior_hook)
2023 (link_map_start): Update.
2024 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
2025 * solib-svr4.c (elf_locate_base, enable_break): Update.
2026 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2027 (flush_ea_cache): Update.
2028 * stabsread.c (define_symbol, scan_file_globals): Update.
2029 * stack.c (find_frame_funname): Update.
2030 * symfile-debug.c (debug_qf_expand_symtabs_matching)
2031 (debug_qf_find_pc_sect_symtab): Update.
2032 * symfile.c (simple_read_overlay_table)
2033 (simple_overlay_update): Update.
2034 * symfile.h (struct quick_symbol_functions)
2035 <find_pc_sect_symtab>: Change type of msymbol to
2036 bound_minimal_symbol.
2037 * symmisc.c (dump_msymbols): Update.
2038 * symtab.c (find_pc_sect_symtab_via_partial)
2039 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
2040 (search_symbols, print_msymbol_info): Update.
2041 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
2042 (MSYMBOL_VALUE_ADDRESS): Redefine.
2043 (BMSYMBOL_VALUE_ADDRESS): New macro.
2044 * tracepoint.c (scope_info): Update.
2045 * tui/tui-disasm.c (tui_find_disassembly_address)
2046 (tui_get_begin_asm_address): Update.
2047 * valops.c (find_function_in_inferior): Update.
2048 * value.c (value_static_field, value_fn_field): Update.
2050 2014-02-26 Tom Tromey <tromey@redhat.com>
2052 * ada-lang.c (ada_update_initial_language): Update.
2053 (ada_main_name, ada_has_this_exception_support): Update.
2054 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
2055 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2056 * arm-tdep.c (arm_skip_stub): Update.
2057 * auxv.c (ld_so_xfer_auxv): Update.
2058 * avr-tdep.c (avr_scan_prologue): Update.
2059 * ax-gdb.c (gen_var_ref): Update.
2060 * breakpoint.c (struct breakpoint_objfile_data)
2061 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
2062 type to bound_minimal_symbol.
2063 (create_overlay_event_breakpoint)
2064 (create_longjmp_master_breakpoint)
2065 (create_std_terminate_master_breakpoint)
2066 (create_exception_master_breakpoint): Update.
2067 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2068 * c-exp.y (classify_name): Update.
2069 * coffread.c (coff_symfile_read): Update.
2070 * common/agent.c (agent_look_up_symbols): Update.
2071 * d-lang.c (d_main_name): Update.
2072 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
2073 * dec-thread.c (enable_dec_thread): Update.
2074 * dwarf2loc.c (call_site_to_target_addr): Update.
2075 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
2076 * eval.c (evaluate_subexp_standard): Update.
2077 * findvar.c (struct minsym_lookup_data) <result>: Change type
2078 to bound_minimal_symbol.
2080 (minsym_lookup_iterator_cb, default_read_var_value): Update.
2081 * frame.c (inside_main_func): Update.
2082 * frv-tdep.c (frv_frame_this_id): Update.
2083 * gcore.c (call_target_sbrk): Update.
2084 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2085 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2087 * go-lang.c (go_main_name): Update.
2088 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
2089 (hppa_hpux_find_import_stub_for_addr): Update.
2090 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
2091 Update. Change return type.
2092 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
2094 * jit.c (jit_breakpoint_re_set_internal): Update.
2095 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
2097 * linux-nat.c (get_signo): Update.
2098 * linux-thread-db.c (inferior_has_bug): Update
2099 * m32c-tdep.c (m32c_return_value)
2100 (m32c_m16c_address_to_pointer): Update.
2101 * m32r-tdep.c (m32r_frame_this_id): Update.
2102 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2103 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2104 * minsyms.c (lookup_minimal_symbol_internal): Rename to
2105 lookup_minimal_symbol. Change return type.
2106 (lookup_minimal_symbol): Remove.
2107 (lookup_bound_minimal_symbol): Update.
2108 (lookup_minimal_symbol_text): Change return type.
2109 (lookup_minimal_symbol_solib_trampoline): Change return type.
2110 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
2111 (lookup_minimal_symbol_solib_trampoline): Change return type.
2112 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2113 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2114 (value_nsstring, find_imps): Update.
2115 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2116 * p-lang.c (pascal_main_name): Update.
2117 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
2118 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2119 * proc-service.c (ps_pglobal_lookup): Update.
2120 * ravenscar-thread.c (get_running_thread_msymbol): Change
2122 (has_ravenscar_runtime, get_running_thread_id): Update.
2123 * remote.c (remote_check_symbols): Update.
2124 * sol-thread.c (ps_pglobal_lookup): Update.
2125 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2126 * solib-dsbt.c (lm_base): Update.
2127 * solib-frv.c (lm_base, frv_relocate_section_addresses):
2129 * solib-irix.c (locate_base): Update.
2130 * solib-som.c (som_solib_create_inferior_hook)
2131 (som_solib_desire_dynamic_linker_symbols, link_map_start):
2133 * solib-spu.c (spu_enable_break): Update.
2134 * solib-svr4.c (elf_locate_base, enable_break): Update.
2135 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2136 (flush_ea_cache): Update.
2137 * stabsread.c (define_symbol): Update.
2138 * symfile.c (simple_read_overlay_table): Update.
2139 * symtab.c (find_pc_sect_line): Update.
2140 * tracepoint.c (scope_info): Update.
2141 * tui-disasm.c (tui_get_begin_asm_address): Update.
2142 * value.c (value_static_field): Update.
2144 2014-02-26 Tom Tromey <tromey@redhat.com>
2146 * minsyms.c (prim_record_minimal_symbol_full): Use
2147 SET_MSYMBOL_VALUE_ADDRESS.
2148 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
2149 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
2150 SET_MSYMBOL_VALUE_ADDRESS.
2151 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2152 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
2154 2014-02-26 Tom Tromey <tromey@redhat.com>
2156 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
2157 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
2158 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
2159 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
2160 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
2161 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
2162 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
2163 * ada-lang.c (ada_main_name): Update.
2164 (ada_lookup_simple_minsym): Update.
2165 (ada_make_symbol_completion_list): Update.
2166 (ada_add_standard_exceptions): Update.
2167 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
2168 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2169 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
2170 * arm-tdep.c (skip_prologue_function): Update.
2171 (arm_skip_stack_protector, arm_skip_stub): Update.
2172 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
2173 (arm_wince_skip_main_prologue): Update.
2174 * auxv.c (ld_so_xfer_auxv): Update.
2175 * avr-tdep.c (avr_scan_prologue): Update.
2176 * ax-gdb.c (gen_var_ref): Update.
2177 * block.c (call_site_for_pc): Update.
2178 * blockframe.c (get_pc_function_start): Update.
2179 (find_pc_partial_function_gnu_ifunc): Update.
2180 * breakpoint.c (create_overlay_event_breakpoint): Update.
2181 (create_longjmp_master_breakpoint): Update.
2182 (create_std_terminate_master_breakpoint): Update.
2183 (create_exception_master_breakpoint): Update.
2184 (resolve_sal_pc): Update.
2185 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2186 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
2188 * c-valprint.c (c_val_print): Update.
2189 * coff-pe-read.c (add_pe_forwarded_sym): Update.
2190 * coffread.c (coff_symfile_read): Update.
2191 * common/agent.c (agent_look_up_symbols): Update.
2192 * dbxread.c (find_stab_function_addr): Update.
2193 (end_psymtab): Update.
2194 * dwarf2loc.c (call_site_to_target_addr): Update.
2195 (func_verify_no_selftailcall): Update.
2196 (tailcall_dump): Update.
2197 (call_site_find_chain_1): Update.
2198 (dwarf_expr_reg_to_entry_parameter): Update.
2199 * elfread.c (elf_gnu_ifunc_record_cache): Update.
2200 (elf_gnu_ifunc_resolve_by_got): Update.
2201 * f-valprint.c (info_common_command): Update.
2202 * findvar.c (read_var_value): Update.
2203 * frame.c (get_prev_frame_1): Update.
2204 (inside_main_func): Update.
2205 * frv-tdep.c (frv_skip_main_prologue): Update.
2206 (frv_frame_this_id): Update.
2207 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2208 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
2209 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
2210 (gnuv3_skip_trampoline): Update.
2211 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
2212 (hppa64_hpux_in_solib_call_trampoline): Update.
2213 (hppa_hpux_skip_trampoline_code): Update.
2214 (hppa64_hpux_search_dummy_call_sequence): Update.
2215 (hppa_hpux_find_import_stub_for_addr): Update.
2216 (hppa_hpux_find_dummy_bpaddr): Update.
2217 * hppa-tdep.c (hppa_symbol_address)
2218 (hppa_lookup_stub_minimal_symbol): Update.
2219 * i386-tdep.c (i386_skip_main_prologue): Update.
2220 (i386_pe_skip_trampoline_code): Update.
2221 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
2222 * infcall.c (get_function_name): Update.
2223 * infcmd.c (until_next_command): Update.
2224 * jit.c (jit_breakpoint_re_set_internal): Update.
2225 (jit_inferior_init): Update.
2226 * linespec.c (minsym_found): Update.
2227 (add_minsym): Update.
2228 * linux-fork.c (info_checkpoints_command): Update.
2229 * linux-nat.c (get_signo): Update.
2230 * linux-thread-db.c (inferior_has_bug): Update.
2231 * m32c-tdep.c (m32c_return_value): Update.
2232 (m32c_m16c_address_to_pointer): Update.
2233 (m32c_m16c_pointer_to_address): Update.
2234 * m32r-tdep.c (m32r_frame_this_id): Update.
2235 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2236 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2237 * maint.c (maintenance_translate_address): Update.
2238 * minsyms.c (add_minsym_to_hash_table): Update.
2239 (add_minsym_to_demangled_hash_table): Update.
2240 (msymbol_objfile): Update.
2241 (lookup_minimal_symbol): Update.
2242 (iterate_over_minimal_symbols): Update.
2243 (lookup_minimal_symbol_text): Update.
2244 (lookup_minimal_symbol_by_pc_name): Update.
2245 (lookup_minimal_symbol_solib_trampoline): Update.
2246 (lookup_minimal_symbol_by_pc_section_1): Update.
2247 (lookup_minimal_symbol_and_objfile): Update.
2248 (prim_record_minimal_symbol_full): Update.
2249 (compare_minimal_symbols): Update.
2250 (compact_minimal_symbols): Update.
2251 (build_minimal_symbol_hash_tables): Update.
2252 (install_minimal_symbols): Update.
2253 (terminate_minimal_symbol_table): Update.
2254 (find_solib_trampoline_target): Update.
2255 (minimal_symbol_upper_bound): Update.
2256 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2257 * mips-tdep.c (mips_stub_frame_sniffer): Update.
2258 (mips_skip_pic_trampoline_code): Update.
2259 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
2260 * objc-lang.c (selectors_info): Update.
2261 (classes_info): Update.
2262 (find_methods): Update.
2263 (find_imps): Update.
2264 (find_objc_msgsend): Update.
2265 * objfiles.c (objfile_relocate1): Update.
2266 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
2267 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2268 * p-valprint.c (pascal_val_print): Update.
2269 * parse.c (write_exp_msymbol): Update.
2270 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
2271 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
2272 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2273 * printcmd.c (build_address_symbolic): Update.
2275 (address_info): Update.
2276 * proc-service.c (ps_pglobal_lookup): Update.
2277 * psymtab.c (find_pc_sect_psymtab_closer): Update.
2278 (find_pc_sect_psymtab): Update.
2279 * python/py-framefilter.c (py_print_frame): Update.
2280 * ravenscar-thread.c (get_running_thread_id): Update.
2281 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
2283 * remote.c (remote_check_symbols): Update.
2284 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
2285 (rs6000_skip_trampoline_code): Update.
2286 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
2287 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2288 * solib-dsbt.c (lm_base): Update.
2289 * solib-frv.c (lm_base): Update.
2291 * solib-irix.c (locate_base): Update.
2292 * solib-som.c (som_solib_create_inferior_hook): Update.
2293 (som_solib_desire_dynamic_linker_symbols): Update.
2294 (link_map_start): Update.
2295 * solib-spu.c (spu_enable_break): Update.
2296 (ocl_enable_break): Update.
2297 * solib-svr4.c (elf_locate_base): Update.
2298 (enable_break): Update.
2299 * spu-tdep.c (spu_get_overlay_table): Update.
2300 (spu_catch_start): Update.
2301 (flush_ea_cache): Update.
2302 * stabsread.c (define_symbol): Update.
2303 (scan_file_globals): Update.
2304 * stack.c (find_frame_funname): Update.
2305 (frame_info): Update.
2306 * symfile.c (simple_read_overlay_table): Update.
2307 (simple_overlay_update): Update.
2308 * symmisc.c (dump_msymbols): Update.
2309 * symtab.c (fixup_section): Update.
2310 (find_pc_sect_line): Update.
2311 (skip_prologue_sal): Update.
2312 (search_symbols): Update.
2313 (print_msymbol_info): Update.
2314 (rbreak_command): Update.
2315 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
2316 (completion_list_objc_symbol): Update.
2317 (default_make_symbol_completion_list_break_on): Update.
2318 * tracepoint.c (scope_info): Update.
2319 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
2320 (tui_get_begin_asm_address): Update.
2321 * valops.c (find_function_in_inferior): Update.
2322 * value.c (value_static_field): Update.
2323 (value_fn_field): Update.
2325 2014-02-26 Tom Tromey <tromey@redhat.com>
2327 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
2328 bound minimal symbols. Move code that knows about minsym
2330 * minsyms.c (minimal_symbol_upper_bound): ... here. New
2332 * minsyms.h (minimal_symbol_upper_bound): Declare.
2333 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
2334 minimal_symbol_upper_bound.
2336 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2338 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
2339 Use the type's name if its basic type does not have a tag.
2341 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2343 * dwarf2read.c (read_subrange_type): Add comment.
2345 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2347 * dwarf2read.c (update_enumeration_type_from_children): New
2348 function, mostly extracted from process_structure_scope.
2349 (read_enumeration_type): Call update_enumeration_type_from_children.
2350 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
2351 and flag_flag_enum fields.
2353 2014-02-26 Pedro Alves <palves@redhat.com>
2355 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
2356 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
2357 to_xfer_partial method.
2359 2014-02-26 Pedro Alves <palves@redhat.com>
2361 * target.c (complete_target_initialization): Don't install
2362 default_xfer_partial as to_xfer_partial hook.
2364 (update_current_target): Don't INHERIT nor de_fault
2365 deprecated_xfer_memory. Delete de_fault macro.
2366 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
2367 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
2368 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
2371 2014-02-26 Pedro Alves <palves@redhat.com>
2373 * go32-nat.c (my_write_child): New function.
2374 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
2375 (go32_xfer_partial): New function.
2376 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
2377 Instead install a to_xfer_partial hook.
2379 2014-02-26 Pedro Alves <palves@redhat.com>
2381 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
2382 to_xfer_partial helper. Rewrite.
2383 (procfs_xfer_partial): New function.
2384 (init_procfs_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-m32r-sdi.c (send_data): Constify 'buf' parameter.
2390 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
2391 (m32r_xfer_partial): New function.
2392 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
2393 Install a to_xfer_partial hook.
2395 2014-02-26 Pedro Alves <palves@redhat.com>
2397 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
2399 (mips_xfer_partial): New function.
2400 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
2401 hook. Install a to_xfer_partial hook.
2403 2014-02-26 Joel Brobecker <brobecker@adacore.com>
2405 * gdbtypes.h (create_array_type_with_stride): Add declaration.
2406 * gdbtypes.c (create_array_type_with_stride): New function,
2407 renaming create_array_type, but with an added parameter
2408 called "bit_stride".
2409 (create_array_type): Re-implement using
2410 create_array_type_with_stride.
2411 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
2412 and DW_AT_bit_stride attributes.
2414 2014-02-26 Pedro Alves <palves@redhat.com>
2416 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
2417 task-specific breakpoints.
2419 2014-02-25 Pedro Alves <palves@redhat.com>
2421 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
2422 handling of object == TARGET_OBJECT_UNWIND_TABLE.
2424 2014-02-25 Stan Shebs <stan@codesourcery.com>
2426 * defs.h: Annotate comments for Doxygen.
2428 2014-02-25 Tom Tromey <tromey@redhat.com>
2430 * target.h (target_ignore): Don't declare.
2431 * target.c (target_ignore): Remove.
2433 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2436 * auto-load.c (auto_load_objfile_script_1): Change filename to
2439 2014-02-25 Joel Brobecker <brobecker@adacore.com>
2441 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
2442 documentation. Adjust prototype to match the target_ops
2443 to_xfer_partial method. Adjust implementation accordingly.
2445 2014-02-25 Hui Zhu <hui@codesourcery.com>
2447 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
2450 2014-02-25 Kevin Buettner <kevinb@redhat.com>
2452 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
2453 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
2454 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
2455 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
2456 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
2457 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
2458 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
2459 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
2461 (rl78_register_type): Use a data pointer type for SP and
2462 new pseudo registers mentioned above. Use a 16 bit integer
2463 type for all other register pairs.
2464 (rl78_register_name, rl78_g10_register_name): Update for
2465 new pseudo registers.
2466 (rl78_pseudo_register_read): Likewise.
2467 (rl78_pseudo_register_write): Likewise.
2468 (rl78_dwarf_reg_to_regnum): Return register numbers representing
2469 to the newly added pseudo registers.
2471 2014-02-24 Doug Evans <dje@google.com>
2473 * value.c (record_latest_value): Fix comment.
2474 * printcmd.c (print_command_1): Remove code to handle -1 return from
2475 record_latest_value.
2477 2014-02-24 Pedro Alves <palves@redhat.com>
2479 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
2480 deprecated_xfer_memory hook.
2481 (procfs_xfer_partial): Call procfs_xfer_memory instead
2482 of the deprecated_xfer_memory target hook.
2483 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
2486 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
2488 * windows-nat.c (windows_xfer_shared_libraries): Return
2489 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
2490 requested object is TARGET_OBJECT_LIBRARIES.
2492 2014-02-24 Yao Qi <yao@codesourcery.com>
2494 * target.h (enum target_xfer_status)
2495 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
2496 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
2498 * corefile.c (memory_error_message): User updated.
2499 * exec.c (section_table_read_available_memory): Likewise.
2500 * record-btrace.c (record_btrace_xfer_partial): Likewise.
2501 * target.c (target_xfer_status_to_string): Likewise.
2502 (raw_memory_xfer_partial): Likewise.
2503 (memory_xfer_partial_1, target_xfer_partial): Likewise.
2504 * valops.c (read_value_memory): Likewise.
2505 * exec.h: Update comments.
2507 2014-02-24 Yao Qi <yao@codesourcery.com>
2509 * target.c (target_xfer_status_to_string): Rename argument err
2511 * target.h (target_xfer_status_to_string): Update declaration.
2512 Replace target_xfer_error_to_string with
2513 target_xfer_status_to_string in comment.
2515 2014-02-24 Yao Qi <yao@codesourcery.com>
2517 * mips-linux-nat.c (super_close): Update its type.
2518 (mips_linux_close): Pass 'self' to super_close.
2520 2014-02-24 Yao Qi <yao@codesourcery.com>
2522 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
2523 * corefile.c (read_memory): Adjusted.
2524 * target.c (target_write_with_progress): Adjusted.
2526 2014-02-23 Yao Qi <yao@codesourcery.com>
2530 2013-10-25 Yao Qi <yao@codesourcery.com>
2532 * remote.c (remote_traceframe_info): Return early if
2533 traceframe is not selected.
2535 2013-07-19 Yao Qi <yao@codesourcery.com>
2537 * target.c (update_current_target): Change the default action
2538 of 'to_traceframe_info' from tcomplain to return_zero.
2539 * target.h (struct target_ops) <to_traceframe_info>: Add more
2542 2014-02-23 Yao Qi <yao@codesourcery.com>
2544 * valops.c (read_value_memory): Rewrite it. Call
2545 target_xfer_partial in a loop.
2546 * exec.h (section_table_available_memory): Remove declaration.
2547 Move comments to ...
2548 * exec.c (section_table_available_memory): ... here. Make it
2551 2014-02-23 Yao Qi <yao@codesourcery.com>
2553 * exec.c (section_table_read_available_memory): New function.
2554 * exec.h (section_table_read_available_memory): Declare.
2555 * ctf.c (ctf_xfer_partial): Call
2556 section_table_read_available_memory.
2557 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2559 2014-02-23 Yao Qi <yao@codesourcery.com>
2561 * ctf.c (ctf_xfer_partial): Move code to ...
2562 * exec.c (exec_read_partial_read_only): ... it. New function.
2563 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2564 * tracefile.c: Include "exec.h".
2565 * exec.h (exec_read_partial_read_only): Declare.
2567 2014-02-23 Yao Qi <yao@codesourcery.com>
2569 * tracefile-tfile.c (tfile_has_all_memory): Remove.
2570 (tfile_has_memory): Remove.
2571 (init_tfile_ops): Don't set fields to_has_all_memory and
2572 to_has_memory of tfile_ops.
2573 * tracefile.c (tracefile_has_all_memory): New function.
2574 (tracefile_has_memory): New function.
2575 (init_tracefile_ops): Initialize fields to_has_all_memory and
2576 to_has_memory of 'ops'.
2578 2014-02-23 Yao Qi <yao@codesourcery.com>
2580 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
2581 (ctf_thread_alive, ctf_get_trace_status): Remove.
2582 (init_ctf_ops): Don't set some fields of ctf_ops. Call
2584 * tracefile-tfile.c (tfile_get_trace_status): Remove.
2585 (tfile_has_stack, tfile_has_registers): Remove.
2586 (tfile_thread_alive): Remove.
2587 (init_tfile_ops): Don't set some fields of tfile_ops. Call
2589 * tracefile.c (tracefile_has_stack): New function.
2590 (tracefile_has_registers): New function.
2591 (tracefile_thread_alive): New function.
2592 (tracefile_get_trace_status): New function.
2593 (init_tracefile_ops): New function.
2594 * tracefile.h (init_tracefile_ops): Declare.
2596 2014-02-23 Yao Qi <yao@codesourcery.com>
2598 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
2599 (O_LARGEFILE): Likewise.
2600 (tfile_ops): Likewise.
2601 (TRACE_HEADER_SIZE): Likewise.
2602 (trace_fd, trace_frames_offset, cur_offset): Likewise.
2603 (cur_data_size): Likewise.
2604 (tfile_read, tfile_open, tfile_interp_line): Likewise.
2605 (tfile_close, tfile_files_info): Likewise.
2606 (tfile_get_trace_status): Likewise.
2607 (tfile_get_tracepoint_status): Likewise.
2608 (tfile_get_traceframe_address): Likewise.
2609 (tfile_trace_find, match_blocktype): Likewise.
2610 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
2611 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
2612 (tfile_get_trace_state_variable_value): Likewise.
2613 (tfile_has_all_memory, tfile_has_memory): Likewise.
2614 (tfile_has_stack, tfile_has_registers): Likewise.
2615 (tfile_thread_alive, build_traceframe_info): Likewise.
2616 (tfile_traceframe_info, init_tfile_ops): Likewise.
2617 (_initialize_tracepoint): Don't call init_tfile_ops
2618 and add_target_with_completer.
2619 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
2620 exec.h, completer.h and filenames.h.
2621 (_initialize_tracefile_tfile): New function.
2623 2014-02-23 Yao Qi <yao@codesourcery.com>
2625 * Makefile.in (REMOTE_OBS): Append tracefile.o and
2627 (HFILES_NO_SRCDIR): Add tracefile.h.
2628 * ctf.c: Include "tracefile.h".
2629 * tracefile.h: New file.
2630 * tracefile.c: New file
2631 * tracefile-tfile.c: New file.
2632 * tracepoint.c: Include "tracefile.h".
2633 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
2634 (stop_reason_names): Add const.
2635 (trace_file_writer_xfree): Move it to tracefile.c.
2636 (trace_save, trace_save_command, trace_save_tfile): Likewise.
2637 (trace_save_ctf): Likewise.
2638 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
2639 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
2640 (tfile_write_header, tfile_write_regblock_type): Likewise.
2641 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
2642 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
2643 (tfile_write_raw_data, tfile_end): Likewise.
2644 (tfile_trace_file_writer_new): Likewise.
2645 (free_uploaded_tp): Make it extern.
2646 (free_uploaded_tsv): Make it extern.
2647 (_initialize_tracepoint): Move code to register command 'tsave'
2649 * tracepoint.h (stop_reason_names): Declare.
2650 (struct trace_frame_write_ops): Move it to tracefile.h.
2651 (struct trace_file_write_ops): Likewise.
2652 (struct trace_file_writer): Likewise.
2653 (free_uploaded_tsvs, free_uploaded_tps): Declare.
2655 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2658 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
2660 (get_cores_used_by_process): New parameter num_cores, use it.
2661 (linux_xfer_osdata_processes): Pass num_cores to it.
2662 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
2665 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
2667 * target.c (memory_xfer_partial): Fix length arg in call to
2668 breakpoint_xfer_memory.
2670 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
2673 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
2674 number comes after the + or - signs. Adjust length of register
2675 name to be extracted.
2677 2014-02-20 Tom Tromey <tromey@redhat.com>
2679 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
2680 (ada_varobj_ops): Mark "extern".
2682 2014-02-20 Tom Tromey <tromey@redhat.com>
2684 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
2686 2014-02-20 Doug Evans <xdje42@gmail.com>
2688 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
2689 All callers updated.
2690 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
2691 All callers updated.
2692 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
2693 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
2695 2014-02-20 lin zuojian <manjian2006@gmail.com>
2696 Joel Brobecker <brobecker@adacore.com>
2697 Doug Evans <xdje42@gmail.com>
2700 * dwarf2read.c (struct die_info): New member in_process.
2701 (reset_die_in_process): New function.
2702 (process_die): Set it at the start, reset when returning.
2703 (inherit_abstract_dies): Only call process_die if origin_child_die
2704 not already being processed.
2706 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2708 * windows-nat.c (handle_unload_dll): Add function documentation.
2709 (do_initial_windows_stuff): Add comment explaining why we wait
2710 until after inferior initialization has finished before
2711 processing all DLLs.
2713 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2715 * windows-nat.c (get_module_name): Delete.
2716 (windows_get_exec_module_filename): New function, mostly
2717 inspired from get_module_name.
2718 (windows_pid_to_exec_file): Replace call to get_module_name
2719 by call to windows_get_exec_module_filename.
2721 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2723 * windows-nat.c (handle_load_dll): Rewrite this function's
2724 introductory comment. Remove code using get_module_name
2725 to get the DLL's name.
2727 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2729 * windows-nat.c (get_windows_debug_event): Ignore
2730 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
2731 if windows_initialization_done == 0.
2732 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
2733 Adjust implementation to always load all DLLs.
2734 (do_initial_windows_stuff): Replace call to
2735 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
2737 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2739 * windows-nat.c (_initialize_windows_nat): Deprecate the
2740 "dll-symbols" command. Turn the "add-shared-symbol-files"
2741 and "assf" aliases into commands, and deprecate them as well.
2742 * NEWS: Add entry explaining that "dll-symbols" and its two
2743 aliases are now deprecated.
2745 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2747 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
2748 new-line in debug string. Remove trailing spaces.
2750 2014-02-19 Stan Shebs <stan@codesourcery.com>
2752 * darwin-nat.c (darwin_xfer_partial): Fix return type.
2754 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
2756 * NEWS: Add entry for the new feature
2757 * python/py-value.c (valpy_binop): Call value_x_binop for struct
2760 2014-02-19 Stan Shebs <stan@codesourcery.com>
2762 * MAINTAINERS: List Yao Qi as nios2 maintainer.
2764 2014-02-19 Pedro Alves <palves@redhat.com>
2766 * common/ptid.h (struct ptid): Mention that process_stratum
2767 targets should prefer ptid.lwp.
2769 2014-02-19 Pedro Alves <palves@redhat.com>
2771 * remote.c (remote_thread_alive, write_ptid, read_ptid)
2772 (read_ptid, remote_newthread_step, remote_threads_extra_info)
2773 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
2774 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
2775 store remote thread ids rather than ptid.tid.
2776 (_initialize_remote): Adjust.
2778 2014-02-19 Tom Tromey <tromey@redhat.com>
2780 * target.c (target_get_unwinder): Rewrite.
2781 (target_get_tailcall_unwinder): Rewrite.
2782 * record-btrace.c (record_btrace_to_get_unwinder): New function.
2783 (record_btrace_to_get_tailcall_unwinder): New function.
2784 (init_record_btrace_ops): Update.
2785 * target.h (struct target_ops) <to_get_unwinder,
2786 to_get_tailcall_unwinder>: Now function pointers. Use
2787 TARGET_DEFAULT_RETURN.
2789 2014-02-19 Tom Tromey <tromey@redhat.com>
2791 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
2793 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
2795 2014-02-19 Tom Tromey <tromey@redhat.com>
2797 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
2799 * target-delegates.c: Rebuild.
2800 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
2801 TARGET_DEFAULT_FUNC.
2802 * target.c (default_target_decr_pc_after_break): Rename from
2803 forward_target_decr_pc_after_break. Simplify.
2804 (target_decr_pc_after_break): Rely on delegation.
2806 2014-02-19 Tom Tromey <tromey@redhat.com>
2808 * target.c (update_current_target): Do not INHERIT to_doc or
2809 to_magic. Do not de_fault to_open or to_close.
2811 2014-02-19 Tom Tromey <tromey@redhat.com>
2813 * gcore.h (objfile_find_memory_regions): Declare.
2814 * gcore.c (objfile_find_memory_regions): No longer static. Add
2816 (_initialize_gcore): Don't call exec_set_find_memory_regions.
2817 * exec.c: Include gcore.h.
2818 (exec_set_find_memory_regions): Remove.
2819 (exec_find_memory_regions): Remove.
2820 (exec_do_find_memory_regions): Remove.
2821 (init_exec_ops): Update.
2822 * defs.h (exec_set_find_memory_regions): Remove.
2824 2014-02-19 Tom Tromey <tromey@redhat.com>
2826 * target-delegates.c: Rebuild.
2827 * target.h (struct target_ops) <to_extra_thread_info,
2828 to_thread_name, to_pid_to_exec_file, to_get_section_table,
2829 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
2830 not 0, in TARGET_DEFAULT_RETURN.
2832 2014-02-19 Tom Tromey <tromey@redhat.com>
2834 * target.c (complete_target_initialization): Remove casts. Use
2835 return_zero_has_execution.
2836 (return_zero): Add "ignore" argument.
2837 (return_zero_has_execution): New function.
2838 (init_dummy_target): Remove casts. Use
2839 return_zero_has_execution.
2841 2014-02-19 Tom Tromey <tromey@redhat.com>
2843 * target.c (update_current_target): Update comments. Do not
2846 2014-02-19 Tom Tromey <tromey@redhat.com>
2848 * arm-linux-nat.c (arm_linux_read_description): Delegate when
2850 * corelow.c (core_read_description): Delegate when needed.
2851 * remote.c (remote_read_description): Delegate when needed.
2852 * target-delegates.c: Rebuild.
2853 * target.c (target_read_description): Rewrite.
2854 * target.h (struct target_ops) <to_read_description>: Update
2855 comment. Use TARGET_DEFAULT_RETURN.
2857 2014-02-19 Tom Tromey <tromey@redhat.com>
2859 * target-delegates.c: Rebuild.
2860 * target.c (update_current_target): Don't inherit or default
2862 (find_default_run_target): Check against delegate_can_run.
2863 * target.h (struct target_ops) <to_can_run>: Use
2864 TARGET_DEFAULT_RETURN.
2866 2014-02-19 Tom Tromey <tromey@redhat.com>
2868 * target-delegates.c: Rebuild.
2869 * target.c (target_disconnect): Unconditionally delegate.
2870 * target.h (struct target_ops) <to_disconnect>: Use
2871 TARGET_DEFAULT_NORETURN.
2873 2014-02-19 Tom Tromey <tromey@redhat.com>
2875 * record.c (record_stop): Unconditionally delegate.
2876 * target-delegates.c: Rebuild.
2877 * target.c (target_stop_recording): Unconditionally delegate.
2878 * target.h (struct target_ops) <to_stop_recording>: Use
2879 TARGET_DEFAULT_IGNORE.
2881 2014-02-19 Tom Tromey <tromey@redhat.com>
2883 * target-delegates.c: Rebuild.
2884 * target.c (target_enable_btrace): Unconditionally delegate.
2885 * target.h (struct target_ops) <to_enable_btrace>: Use
2886 TARGET_DEFAULT_NORETURN.
2888 2014-02-19 Tom Tromey <tromey@redhat.com>
2890 * target-delegates.c: Rebuild.
2891 * target.c (target_read_btrace): Unconditionally delegate.
2892 * target.h (struct target_ops) <to_read_btrace>: Use
2893 TARGET_DEFAULT_NORETURN.
2895 2014-02-19 Tom Tromey <tromey@redhat.com>
2897 * target-delegates.c: Rebuild.
2898 * target.c (target_teardown_btrace): Unconditionally delegate.
2899 * target.h (struct target_ops) <to_teardown_btrace>: Use
2900 TARGET_DEFAULT_NORETURN.
2902 2014-02-19 Tom Tromey <tromey@redhat.com>
2904 * target-delegates.c: Rebuild.
2905 * target.c (target_disable_btrace): Unconditionally delegate.
2906 * target.h (struct target_ops) <to_disable_btrace>: Use
2907 TARGET_DEFAULT_NORETURN.
2909 2014-02-19 Tom Tromey <tromey@redhat.com>
2911 * target-delegates.c: Rebuild.
2912 * target.c (default_search_memory): New function.
2913 (simple_search_memory): Update comment.
2914 (target_search_memory): Unconditionally delegate.
2915 * target.h (struct target_ops) <to_search_memory>: Use
2916 TARGET_DEFAULT_FUNC.
2918 2014-02-19 Tom Tromey <tromey@redhat.com>
2920 * auxv.c (default_auxv_parse): No longer static.
2921 (target_auxv_parse): Unconditionally delegate.
2922 * auxv.h (default_auxv_parse): Declare.
2923 * target-delegates.c: Rebuild.
2924 * target.c: Include auxv.h.
2925 * target.h (struct target_ops) <to_auxv_parse>: Use
2926 TARGET_DEFAULT_FUNC.
2928 2014-02-19 Tom Tromey <tromey@redhat.com>
2930 * target-delegates.c: Rebuild.
2931 * target.c (target_memory_map): Unconditionally delegate.
2932 * target.h (struct target_ops) <to_memory_map>: Use
2933 TARGET_DEFAULT_RETURN.
2935 2014-02-19 Tom Tromey <tromey@redhat.com>
2937 * target-delegates.c: Rebuild.
2938 * target.c (target_thread_alive): Unconditionally delegate.
2939 * target.h (struct target_ops) <to_thread_alive>: Use
2940 TARGET_DEFAULT_RETURN.
2942 2014-02-19 Tom Tromey <tromey@redhat.com>
2944 * target-delegates.c: Rebuild.
2945 * target.c (target_save_record): Unconditionally delegate.
2946 * target.h (struct target_ops) <to_save_record>: Use
2947 TARGET_DEFAULT_NORETURN.
2949 2014-02-19 Tom Tromey <tromey@redhat.com>
2951 * target-delegates.c: Rebuild.
2952 * target.c (target_delete_record): Unconditionally delegate.
2953 * target.h (struct target_ops) <to_delete_record>: Use
2954 TARGET_DEFAULT_NORETURN.
2956 2014-02-19 Tom Tromey <tromey@redhat.com>
2958 * target-delegates.c: Rebuild.
2959 * target.c (target_record_is_replaying): Unconditionally
2961 * target.h (struct target_ops) <to_record_is_replaying>: Use
2962 TARGET_DEFAULT_RETURN.
2964 2014-02-19 Tom Tromey <tromey@redhat.com>
2966 * target-delegates.c: Rebuild.
2967 * target.c (target_goto_record_begin): Unconditionally delegate.
2968 * target.h (struct target_ops) <to_goto_record_begin>: Use
2969 TARGET_DEFAULT_NORETURN.
2971 2014-02-19 Tom Tromey <tromey@redhat.com>
2973 * target-delegates.c: Rebuild.
2974 * target.c (target_goto_record_end): Unconditionally delegate.
2975 * target.h (struct target_ops) <to_goto_record_end>: Use
2976 TARGET_DEFAULT_NORETURN.
2978 2014-02-19 Tom Tromey <tromey@redhat.com>
2980 * target-delegates.c: Rebuild.
2981 * target.c (target_goto_record): Unconditionally delegate.
2982 * target.h (struct target_ops) <to_goto_record>: Use
2983 TARGET_DEFAULT_NORETURN.
2985 2014-02-19 Tom Tromey <tromey@redhat.com>
2987 * target-delegates.c: Rebuild.
2988 * target.c (target_insn_history): Unconditionally delegate.
2989 * target.h (struct target_ops) <to_insn_history>: Use
2990 TARGET_DEFAULT_NORETURN.
2992 2014-02-19 Tom Tromey <tromey@redhat.com>
2994 * target-delegates.c: Rebuild.
2995 * target.c (target_insn_history_from): Unconditionally delegate.
2996 * target.h (struct target_ops) <to_insn_history_from>: Use
2997 TARGET_DEFAULT_NORETURN.
2999 2014-02-19 Tom Tromey <tromey@redhat.com>
3001 * target-delegates.c: Rebuild.
3002 * target.c (target_insn_history_range): Unconditionally delegate.
3003 * target.h (struct target_ops) <to_insn_history_range>: Use
3004 TARGET_DEFAULT_NORETURN.
3006 2014-02-19 Tom Tromey <tromey@redhat.com>
3008 * target-delegates.c: Rebuild.
3009 * target.c (target_call_history): Unconditionally delegate.
3010 * target.h (struct target_ops) <to_call_history>: Use
3011 TARGET_DEFAULT_NORETURN.
3013 2014-02-19 Tom Tromey <tromey@redhat.com>
3015 * target-delegates.c: Rebuild.
3016 * target.c (target_call_history_from): Unconditionally delegate.
3017 * target.h (struct target_ops) <to_call_history_from>: Use
3018 TARGET_DEFAULT_NORETURN.
3020 2014-02-19 Tom Tromey <tromey@redhat.com>
3022 * target-delegates.c: Rebuild.
3023 * target.c (target_call_history_range): Unconditionally delegate.
3024 * target.h (struct target_ops) <to_call_history_range>: Use
3025 TARGET_DEFAULT_NORETURN.
3027 2014-02-19 Tom Tromey <tromey@redhat.com>
3029 * target-delegates.c: Rebuild.
3030 * target.c (target_verify_memory): Unconditionally delegate.
3031 * target.h (struct target_ops) <to_verify_memory>: Use
3032 TARGET_DEFAULT_NORETURN.
3034 2014-02-19 Tom Tromey <tromey@redhat.com>
3036 * target-delegates.c: Rebuild.
3037 * target.c (target_core_of_thread): Unconditionally delegate.
3038 * target.h (struct target_ops) <to_core_of_thread>: Use
3039 TARGET_DEFAULT_RETURN.
3041 2014-02-19 Tom Tromey <tromey@redhat.com>
3043 * target-delegates.c: Rebuild.
3044 * target.c (target_flash_done): Unconditionally delegate.
3045 * target.h (struct target_ops) <to_flash_done>: Use
3046 TARGET_DEFAULT_NORETURN.
3048 2014-02-19 Tom Tromey <tromey@redhat.com>
3050 * target-delegates.c: Rebuild.
3051 * target.c (target_flash_erase): Unconditionally delegate.
3052 * target.h (struct target_ops) <to_flash_erase>: Use
3053 TARGET_DEFAULT_NORETURN.
3055 2014-02-19 Tom Tromey <tromey@redhat.com>
3057 * target-delegates.c: Rebuild.
3058 * target.c (target_get_section_table): Unconditionally delegate.
3059 * target.h (struct target_ops) <to_get_section_table>: Use
3060 TARGET_DEFAULT_RETURN.
3062 2014-02-19 Tom Tromey <tromey@redhat.com>
3064 * target-delegates.c: Rebuild.
3065 * target.c (target_pid_to_str): Unconditionally delegate.
3066 (init_dummy_target): Don't initialize to_pid_to_str.
3067 (default_pid_to_str): Rename from dummy_pid_to_str.
3068 * target.h (struct target_ops) <to_pid_to_str>: Use
3069 TARGET_DEFAULT_FUNC.
3071 2014-02-19 Tom Tromey <tromey@redhat.com>
3073 * target-delegates.c: Rebuild.
3074 * target.c (target_find_new_threads): Unconditionally delegate.
3075 * target.h (struct target_ops) <to_find_new_threads>: Use
3076 TARGET_DEFAULT_RETURN.
3078 2014-02-19 Tom Tromey <tromey@redhat.com>
3080 * target-delegates.c: Rebuild.
3081 * target.c (target_program_signals): Unconditionally delegate.
3082 * target.h (struct target_ops) <to_program_signals>: Use
3083 TARGET_DEFAULT_IGNORE.
3085 2014-02-19 Tom Tromey <tromey@redhat.com>
3087 * target-delegates.c: Rebuild.
3088 * target.c (target_pass_signals): Unconditionally delegate.
3089 * target.h (struct target_ops) <to_pass_signals>: Use
3090 TARGET_DEFAULT_IGNORE.
3092 2014-02-19 Tom Tromey <tromey@redhat.com>
3094 * target-delegates.c: Rebuild.
3095 * target.c (default_mourn_inferior): New function.
3096 (target_mourn_inferior): Unconditionally delegate.
3097 * target.h (struct target_ops) <to_mourn_inferior>: Use
3098 TARGET_DEFAULT_FUNC.
3100 2014-02-19 Tom Tromey <tromey@redhat.com>
3102 * target-delegates.c: Rebuild.
3103 * target.c (default_follow_fork): New function.
3104 (target_follow_fork): Unconditionally delegate.
3105 * target.h (struct target_ops) <to_follow_fork>: Use
3106 TARGET_DEFAULT_FUNC.
3108 2014-02-19 Tom Tromey <tromey@redhat.com>
3110 * target-delegates.c: Rebuild.
3111 * target.c (target_kill): Unconditionally delegate.
3112 * target.h (struct target_ops) <to_kill>: Use
3113 TARGET_DEFAULT_NORETURN.
3115 2014-02-19 Tom Tromey <tromey@redhat.com>
3117 * target-delegates.c: Rebuild.
3118 * target.c (target_masked_watch_num_registers): Unconditionally
3120 * target.h (struct target_ops) <to_masked_watch_num_registers>:
3121 Use TARGET_DEFAULT_RETURN.
3123 2014-02-19 Tom Tromey <tromey@redhat.com>
3125 * target-delegates.c: Rebuild.
3126 * target.c (target_remove_mask_watchpoint): Unconditionally
3128 * target.h (struct target_ops) <to_remove_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_insert_mask_watchpoint): Unconditionally
3136 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
3137 TARGET_DEFAULT_RETURN.
3139 2014-02-19 Tom Tromey <tromey@redhat.com>
3141 * target-delegates.c: Rebuild.
3142 * target.c (target_ranged_break_num_registers): Unconditionally
3144 * target.h (struct target_ops) <to_ranged_break_num_registers>:
3145 Use TARGET_DEFAULT_RETURN.
3147 2014-02-19 Tom Tromey <tromey@redhat.com>
3149 * target-delegates.c: Rebuild.
3150 * target.c (target_fetch_registers): Unconditionally delegate.
3151 * target.h (struct target_ops) <to_fetch_registers>: Use
3152 TARGET_DEFAULT_NORETURN.
3154 2014-02-19 Tom Tromey <tromey@redhat.com>
3156 * target-delegates.c: Rebuild.
3157 * target.c (update_current_target): Don't inherit or default
3159 * target.h (struct target_ops) <to_stop>: Use
3160 TARGET_DEFAULT_IGNORE.
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_can_run_breakpoint_commands.
3167 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
3168 Use TARGET_DEFAULT_RETURN.
3170 2014-02-19 Tom Tromey <tromey@redhat.com>
3172 * target-delegates.c: Rebuild.
3173 * target.c (update_current_target): Don't inherit or default
3174 to_supports_evaluation_of_breakpoint_conditions.
3175 * target.h (struct target_ops)
3176 <to_supports_evaluation_of_breakpoint_conditions>: Use
3177 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
3183 to_augmented_libraries_svr4_read.
3184 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
3185 Use 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_can_use_agent>: Use
3193 TARGET_DEFAULT_RETURN.
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 * target.h (struct target_ops) <to_use_agent>: Use
3201 TARGET_DEFAULT_NORETURN.
3203 2014-02-19 Tom Tromey <tromey@redhat.com>
3205 * target-delegates.c: Rebuild.
3206 * target.c (update_current_target): Don't inherit or default
3208 (return_null): Remove.
3209 * target.h (struct target_ops) <to_traceframe_info>: Use
3210 TARGET_DEFAULT_RETURN.
3212 2014-02-19 Tom Tromey <tromey@redhat.com>
3214 * target-delegates.c: Rebuild.
3215 * target.c (update_current_target): Don't inherit or default
3216 to_static_tracepoint_markers_by_strid.
3217 * target.h (struct target_ops)
3218 <to_static_tracepoint_markers_by_strid>: Use
3219 TARGET_DEFAULT_NORETURN.
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
3225 to_static_tracepoint_marker_at.
3226 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
3227 Use TARGET_DEFAULT_RETURN.
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_set_permissions>: Use
3235 TARGET_DEFAULT_IGNORE.
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_get_tib_address>: Use
3243 TARGET_DEFAULT_NORETURN.
3245 2014-02-19 Tom Tromey <tromey@redhat.com>
3247 * target-delegates.c: Rebuild.
3248 * target.c (update_current_target): Don't inherit or default
3250 * target.h (struct target_ops) <to_set_trace_notes>: Use
3251 TARGET_DEFAULT_RETURN.
3253 2014-02-19 Tom Tromey <tromey@redhat.com>
3255 * target-delegates.c: Rebuild.
3256 * target.c (update_current_target): Don't initialize
3257 to_set_trace_buffer_size.
3258 * target.h (struct target_ops) <to_set_trace_buffer_size>: 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_circular_trace_buffer.
3266 * target.h (struct target_ops) <to_set_circular_trace_buffer>: 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_set_disconnected_tracing.
3274 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
3275 TARGET_DEFAULT_IGNORE.
3277 2014-02-19 Tom Tromey <tromey@redhat.com>
3279 * target-delegates.c: Rebuild.
3280 * target.c (update_current_target): Don't inherit or default
3281 to_get_min_fast_tracepoint_insn_len.
3282 (return_minus_one): Remove.
3283 * target.h (struct target_ops)
3284 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
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_get_raw_trace_data.
3291 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
3292 TARGET_DEFAULT_NORETURN.
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_trace_state_variables.
3299 * target.h (struct target_ops) <to_upload_trace_state_variables>:
3300 Use 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
3306 to_upload_tracepoints.
3307 * target.h (struct target_ops) <to_upload_tracepoints>: Use
3308 TARGET_DEFAULT_RETURN.
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
3315 * target.h (struct target_ops) <to_save_trace_data>: Use
3316 TARGET_DEFAULT_NORETURN.
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
3322 to_get_trace_state_variable_value.
3323 * target.h (struct target_ops)
3324 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
3326 2014-02-19 Tom Tromey <tromey@redhat.com>
3328 * target-delegates.c: Rebuild.
3329 * target.c (update_current_target): Don't inherit or default
3331 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
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
3338 * target.h (struct target_ops) <to_trace_stop>: 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_tracepoint_status.
3346 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
3347 TARGET_DEFAULT_NORETURN.
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
3353 to_get_trace_status.
3354 * target.h (struct target_ops) <to_get_trace_status>: Use
3355 TARGET_DEFAULT_RETURN.
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
3362 * target.h (struct target_ops) <to_trace_start>: Use
3363 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_trace_set_readonly_regions.
3370 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
3371 Use 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_disable_tracepoint.
3378 * target.h (struct target_ops) <to_disable_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_enable_tracepoint.
3386 * target.h (struct target_ops) <to_enable_tracepoint>: Use
3387 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_download_trace_state_variable.
3394 * target.h (struct target_ops) <to_download_trace_state_variable>:
3395 Use TARGET_DEFAULT_NORETURN.
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_can_download_tracepoint.
3402 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
3403 TARGET_DEFAULT_RETURN.
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
3409 to_download_tracepoint.
3410 * target.h (struct target_ops) <to_download_tracepoint>: Use
3411 TARGET_DEFAULT_NORETURN.
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
3418 * target.h (struct target_ops) <to_trace_init>: 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_string_tracing.
3426 * target.h (struct target_ops) <to_supports_string_tracing>: Use
3427 TARGET_DEFAULT_RETURN.
3429 2014-02-19 Tom Tromey <tromey@redhat.com>
3431 * target-delegates.c: Rebuild.
3432 * target.c (update_current_target): Don't inherit or default
3433 to_supports_enable_disable_tracepoint.
3434 * target.h (struct target_ops)
3435 <to_supports_enable_disable_tracepoint>: 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_supports_multi_process.
3443 * target.h (struct target_ops) <to_supports_multi_process>: Use
3444 TARGET_DEFAULT_RETURN.
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_get_ada_task_ptid.
3451 * target.h (struct target_ops) <to_get_ada_task_ptid>: 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_thread_architecture.
3459 * target.h (struct target_ops) <to_thread_architecture>: 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_execution_direction.
3467 * target.h (struct target_ops) <to_execution_direction>: Use
3468 TARGET_DEFAULT_FUNC.
3470 2014-02-19 Tom Tromey <tromey@redhat.com>
3472 * target-delegates.c: Rebuild.
3473 * target.c (update_current_target): Don't inherit or default
3474 to_can_execute_reverse.
3475 * target.h (struct target_ops) <to_can_execute_reverse>: Use
3476 TARGET_DEFAULT_RETURN.
3477 (target_can_execute_reverse): Unconditionally delegate.
3479 2014-02-19 Tom Tromey <tromey@redhat.com>
3481 * target-delegates.c: Rebuild.
3482 * target.c (update_current_target): Don't inherit or default
3484 (dummy_goto_bookmark): Remove.
3485 (init_dummy_target): Don't inherit or default to_goto_bookmark.
3486 * target.h (struct target_ops) <to_goto_bookmark>: Use
3487 TARGET_DEFAULT_NORETURN.
3489 2014-02-19 Tom Tromey <tromey@redhat.com>
3491 * target-delegates.c: Rebuild.
3492 * target.c (update_current_target): Don't inherit or default
3494 (dummy_get_bookmark): Remove.
3495 (init_dummy_target): Don't inherit or default to_get_bookmark.
3496 * target.h (struct target_ops) <to_get_bookmark>: Use
3497 TARGET_DEFAULT_NORETURN
3499 2014-02-19 Tom Tromey <tromey@redhat.com>
3501 * target-delegates.c: Rebuild.
3502 * target.c (update_current_target): Don't inherit or default
3503 to_make_corefile_notes.
3504 (init_dummy_target): Don't initialize to_make_corefile_notes.
3505 * target.h (struct target_ops) <to_make_corefile_notes>: Use
3506 TARGET_DEFAULT_FUNC.
3508 2014-02-19 Tom Tromey <tromey@redhat.com>
3510 * target-delegates.c: Rebuild.
3511 * target.c (update_current_target): Don't inherit or default
3512 to_find_memory_regions.
3513 (init_dummy_target): Don't initialize to_find_memory_regions.
3514 * target.h (struct target_ops) <to_find_memory_regions>: Use
3515 TARGET_DEFAULT_FUNC.
3517 2014-02-19 Tom Tromey <tromey@redhat.com>
3519 * target-delegates.c: Rebuild.
3520 * target.c (update_current_target): Don't inherit or default
3522 * target.h (struct target_ops) <to_log_command>: Use
3523 TARGET_DEFAULT_IGNORE.
3524 (target_log_command): Unconditionally delegate.
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
3530 to_pid_to_exec_file.
3531 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
3532 TARGET_DEFAULT_RETURN.
3534 2014-02-19 Tom Tromey <tromey@redhat.com>
3536 * target-delegates.c: Rebuild.
3537 * target.c (update_current_target): Don't inherit or default
3539 (target_thread_name): Unconditionally delegate.
3540 * target.h (struct target_ops) <to_thread_name>: 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
3547 to_extra_thread_info.
3548 * target.h (struct target_ops) <to_extra_thread_info>: 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
3556 * target.h (struct target_ops) <to_has_exited>: Use
3557 TARGET_DEFAULT_RETURN..
3559 2014-02-19 Tom Tromey <tromey@redhat.com>
3561 * target-delegates.c: Rebuild.
3562 * target.c (update_current_target): Don't inherit or default
3563 to_set_syscall_catchpoint.
3564 (return_one): Remove.
3565 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
3566 TARGET_DEFAULT_RETURN.
3568 2014-02-19 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-01-08 Tom Tromey <tromey@redhat.com>
3578 * target-delegates.c: Rebuild.
3579 * target.c (update_current_target): Don't inherit or default
3580 to_insert_exec_catchpoint.
3581 * target.h (struct target_ops) <to_insert_exec_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_remove_vfork_catchpoint.
3589 * target.h (struct target_ops) <to_remove_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_insert_vfork_catchpoint.
3597 * target.h (struct target_ops) <to_insert_vfork_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_remove_fork_catchpoint.
3605 * target.h (struct target_ops) <to_remove_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_insert_fork_catchpoint.
3613 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
3614 TARGET_DEFAULT_RETURN.
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
3620 to_post_startup_inferior.
3621 * target.h (struct target_ops) <to_post_startup_inferior>: Use
3622 TARGET_DEFAULT_IGNORE.
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_load>: Use
3630 TARGET_DEFAULT_NORETURN.
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
3637 * target.h (struct target_ops) <to_terminal_info>: Use
3638 TARGET_DEFAULT_FUNC.
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
3644 to_terminal_save_ours.
3645 * target.h (struct target_ops) <to_terminal_save_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
3653 * target.h (struct target_ops) <to_terminal_ours>: 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_ours_for_output.
3661 * target.h (struct target_ops) <to_terminal_ours_for_output>: 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
3668 to_terminal_inferior.
3669 * target.h (struct target_ops) <to_terminal_inferior>: 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
3677 * target.h (struct target_ops) <to_terminal_init>: Use
3678 TARGET_DEFAULT_IGNORE.
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_can_accel_watchpoint_condition.
3685 * target.h (struct target_ops)
3686 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
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_region_ok_for_hw_watchpoint.
3693 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
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_watchpoint_addr_within_range.
3701 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
3702 Use TARGET_DEFAULT_FUNC.
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_remove_watchpoint.
3709 * target.h (struct target_ops) <to_remove_watchpoint>: Use
3710 TARGET_DEFAULT_NORETURN.
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_insert_watchpoint.
3717 * target.h (struct target_ops) <to_insert_watchpoint>: 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_remove_hw_breakpoint.
3725 * target.h (struct target_ops) <to_remove_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_insert_hw_breakpoint.
3733 * target.h (struct target_ops) <to_insert_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
3740 to_can_use_hw_breakpoint.
3741 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
3742 TARGET_DEFAULT_RETURN.
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_files_info>: Use
3750 TARGET_DEFAULT_IGNORE.
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_store>: Use
3758 TARGET_DEFAULT_NORETURN.
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 * target.h (struct target_ops) <to_post_attach>: Use
3766 TARGET_DEFAULT_IGNORE.
3768 2014-02-19 Tom Tromey <tromey@redhat.com>
3770 * target-delegates.c: Rebuild.
3771 * target.c (update_current_target): Don't inherit or default
3773 (default_rcmd): New function.
3774 (do_monitor_command): Unconditionally delegate.
3775 * target.h (struct target_ops) <to_rmcd>: Use
3776 TARGET_DEFAULT_FUNC.
3778 2014-02-19 Tom Tromey <tromey@redhat.com>
3780 * target-delegates.c: Rebuild.
3781 * target.c (init_dummy_target): Don't initialize to_attach.
3782 (target_attach): Unconditionally delegate.
3783 * target.h (struct target_ops) <to_attach>: Use
3784 TARGET_DEFAULT_FUNC.
3786 2014-02-19 Tom Tromey <tromey@redhat.com>
3788 * target-delegates.c: Rebuild.
3789 * target.c (target_detach): Unconditionally delegate.
3790 (init_dummy_target): Don't initialize to_detach.
3791 * target.h (struct target_ops) <to_detach>: Use
3792 TARGET_DEFAULT_IGNORE.
3794 2014-02-19 Tom Tromey <tromey@redhat.com>
3796 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
3798 (target_augmented_libraries_svr4_read): Add argument.
3799 * target.c (update_current_target): Update.
3800 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
3803 2014-02-19 Tom Tromey <tromey@redhat.com>
3805 * target.h (struct target_ops) <to_call_history_range>: Add
3807 * target.c (target_call_history_range): Add argument.
3808 * record-btrace.c (record_btrace_call_history_range): Add 'self'
3810 (record_btrace_call_history_from): Update.
3812 2014-02-19 Tom Tromey <tromey@redhat.com>
3814 * target.h (struct target_ops) <to_call_history_from>: Add
3816 * target.c (target_call_history_from): Add argument.
3817 * record-btrace.c (record_btrace_call_history_from): Add 'self'
3820 2014-02-19 Tom Tromey <tromey@redhat.com>
3822 * target.h (struct target_ops) <to_call_history>: Add argument.
3823 * target.c (target_call_history): Add argument.
3824 * record-btrace.c (record_btrace_call_history): Add 'self'
3827 2014-02-19 Tom Tromey <tromey@redhat.com>
3829 * target.h (struct target_ops) <to_insn_history_range>: Add
3831 * target.c (target_insn_history_range): Add argument.
3832 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
3834 (record_btrace_insn_history_from): Update.
3836 2014-02-19 Tom Tromey <tromey@redhat.com>
3838 * target.h (struct target_ops) <to_insn_history_from>: Add
3840 * target.c (target_insn_history_from): Add argument.
3841 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
3844 2014-02-19 Tom Tromey <tromey@redhat.com>
3846 * target.h (struct target_ops) <to_insn_history>: Add argument.
3847 * target.c (target_insn_history): Add argument.
3848 * record-btrace.c (record_btrace_insn_history): Add 'self'
3851 2014-02-19 Tom Tromey <tromey@redhat.com>
3853 * target.h (struct target_ops) <to_goto_record>: Add argument.
3854 * target.c (target_goto_record): Add argument.
3855 * record-full.c (record_full_goto): Add 'self' argument.
3856 * record-btrace.c (record_btrace_goto): Add 'self' argument.
3858 2014-02-19 Tom Tromey <tromey@redhat.com>
3860 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
3861 * target.c (target_goto_record_end): Add argument.
3862 * record-full.c (record_full_goto_end): Add 'self' argument.
3863 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
3865 2014-02-19 Tom Tromey <tromey@redhat.com>
3867 * target.h (struct target_ops) <to_goto_record_begin>: Add
3869 * target.c (target_goto_record_begin): Add argument.
3870 * record-full.c (record_full_goto_begin): Add 'self' argument.
3871 * record-btrace.c (record_btrace_goto_begin): Add 'self'
3874 2014-02-19 Tom Tromey <tromey@redhat.com>
3876 * target.h (struct target_ops) <to_record_is_replaying>: Add
3878 * target.c (target_record_is_replaying): Add argument.
3879 * record-full.c (record_full_is_replaying): Add 'self' argument.
3880 * record-btrace.c (record_btrace_is_replaying): Add 'self'
3882 (record_btrace_xfer_partial, record_btrace_store_registers)
3883 (record_btrace_prepare_to_store, record_btrace_resume)
3884 (record_btrace_wait, record_btrace_decr_pc_after_break)
3885 (record_btrace_find_new_threads, record_btrace_thread_alive):
3888 2014-02-19 Tom Tromey <tromey@redhat.com>
3890 * target.h (struct target_ops) <to_delete_record>: Add argument.
3891 * target.c (target_delete_record): Add argument.
3892 * record-full.c (record_full_delete): Add 'self' argument.
3894 2014-02-19 Tom Tromey <tromey@redhat.com>
3896 * target.h (struct target_ops) <to_save_record>: Add argument.
3897 * target.c (target_save_record): Add argument.
3898 * record-full.c (record_full_save): Add 'self' argument.
3899 (record_full_save): Add 'self' argument.
3901 2014-02-19 Tom Tromey <tromey@redhat.com>
3903 * target.h (struct target_ops) <to_info_record>: Add argument.
3904 * target.c (target_info_record): Add argument.
3905 * record.c (info_record_command): Add argument.
3906 * record-full.c (record_full_info): Add 'self' argument.
3907 * record-btrace.c (record_btrace_info): Add 'self' argument.
3909 2014-02-19 Tom Tromey <tromey@redhat.com>
3911 * target.h (struct target_ops) <to_stop_recording>: Add argument.
3912 * target.c (target_stop_recording): Add argument.
3913 * record.c (record_stop): Add argument.
3914 * record-btrace.c (record_btrace_stop_recording): Add 'self'
3917 2014-02-19 Tom Tromey <tromey@redhat.com>
3919 * target.h (struct target_ops) <to_read_btrace>: Add argument.
3920 * target.c (struct target_ops) <to_read_btrace>: Add argument.
3921 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
3923 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
3924 (_initialize_amd64_linux_nat): Use it.
3925 * i386-linux-nat.c (i386_linux_read_btrace): New function.
3926 (_initialize_i386_linux_nat): Use it.
3928 2014-02-19 Tom Tromey <tromey@redhat.com>
3930 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
3931 * target.c (target_teardown_btrace): Add argument.
3932 * remote.c (remote_teardown_btrace): Add 'self' argument.
3933 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
3935 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
3938 2014-02-19 Tom Tromey <tromey@redhat.com>
3940 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
3941 * target.c (target_disable_btrace): Add argument.
3942 * remote.c (remote_disable_btrace): Add 'self' argument.
3943 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
3945 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
3948 2014-02-19 Tom Tromey <tromey@redhat.com>
3950 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
3951 * target.c (target_enable_btrace): Add argument.
3952 * remote.c (remote_enable_btrace): Add 'self' argument.
3953 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
3955 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
3958 2014-02-19 Tom Tromey <tromey@redhat.com>
3960 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
3961 (target_can_use_agent): Add argument.
3962 * target.c (update_current_target): Update.
3963 * remote.c (remote_can_use_agent): Add 'self' argument.
3964 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
3966 2014-02-19 Tom Tromey <tromey@redhat.com>
3968 * target.h (struct target_ops) <to_use_agent>: Add argument.
3969 (target_use_agent): Add argument.
3970 * target.c (update_current_target): Update.
3971 * remote.c (remote_use_agent): Add 'self' argument.
3972 * inf-child.c (inf_child_use_agent): Add 'self' argument.
3974 2014-02-19 Tom Tromey <tromey@redhat.com>
3976 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
3977 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
3978 (target_traceframe_info): Add argument.
3979 * target.c (update_current_target): Update.
3980 * remote.c (remote_traceframe_info): Add 'self' argument.
3981 * ctf.c (ctf_traceframe_info): Add 'self' argument.
3983 2014-02-19 Tom Tromey <tromey@redhat.com>
3985 * target.h (target_static_tracepoint_markers_by_strid): Add
3987 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
3989 * target.c (update_current_target): Update.
3990 * remote.c (struct target_ops)
3991 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
3992 * linux-nat.c (struct target_ops)
3993 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
3995 2014-02-19 Tom Tromey <tromey@redhat.com>
3997 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
3999 (target_static_tracepoint_marker_at): Add argument.
4000 * target.c (update_current_target): Update.
4001 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
4004 2014-02-19 Tom Tromey <tromey@redhat.com>
4006 * target.h (struct target_ops) <to_set_permissions>: Add argument.
4007 (target_set_permissions): Add argument.
4008 * target.c (update_current_target): Update.
4009 * remote.c (remote_set_permissions): Add 'self' argument.
4010 (remote_start_remote): Update.
4012 2014-02-19 Tom Tromey <tromey@redhat.com>
4014 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
4015 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
4016 (target_get_tib_address): Add argument.
4017 * target.c (update_current_target): Update.
4018 * remote.c (remote_get_tib_address): Add 'self' argument.
4020 2014-02-19 Tom Tromey <tromey@redhat.com>
4022 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
4023 (target_set_trace_notes): Add argument.
4024 * target.c (update_current_target): Update.
4025 * remote.c (remote_set_trace_notes): Add 'self' argument.
4027 2014-02-19 Tom Tromey <tromey@redhat.com>
4029 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
4031 (target_set_trace_buffer_size): Add argument.
4032 * target.c (update_current_target): Update.
4033 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
4035 2014-02-19 Tom Tromey <tromey@redhat.com>
4037 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
4039 (target_set_circular_trace_buffer): Add argument.
4040 * target.c (update_current_target): Update.
4041 * remote.c (remote_set_circular_trace_buffer): Add 'self'
4044 2014-02-19 Tom Tromey <tromey@redhat.com>
4046 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
4048 (target_set_disconnected_tracing): Add argument.
4049 * target.c (update_current_target): Update.
4050 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
4052 2014-02-19 Tom Tromey <tromey@redhat.com>
4054 * target.h (struct target_ops)
4055 <to_get_min_fast_tracepoint_insn_len>: Add argument.
4056 (target_get_min_fast_tracepoint_insn_len): Add argument.
4057 * target.c (update_current_target): Update.
4058 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
4061 2014-02-19 Tom Tromey <tromey@redhat.com>
4063 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
4065 (target_get_raw_trace_data): Add argument.
4066 * target.c (update_current_target): Update.
4067 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
4069 2014-02-19 Tom Tromey <tromey@redhat.com>
4071 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4073 (target_upload_trace_state_variables): Add argument.
4074 * target.c (update_current_target): Update.
4075 * remote.c (remote_upload_trace_state_variables): Add 'self'
4077 (remote_start_remote): Update.
4079 2014-02-19 Tom Tromey <tromey@redhat.com>
4081 * target.h (struct target_ops) <to_upload_tracepoints>: Add
4083 (target_upload_tracepoints): Add argument.
4084 * target.c (update_current_target): Update.
4085 * remote.c (remote_upload_tracepoints): Add 'self' argument.
4086 (remote_start_remote): Update.
4088 2014-02-19 Tom Tromey <tromey@redhat.com>
4090 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
4091 (target_save_trace_data): Add argument.
4092 * target.c (update_current_target): Update.
4093 * remote.c (remote_save_trace_data): Add 'self' argument.
4095 2014-02-19 Tom Tromey <tromey@redhat.com>
4097 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
4099 * target.h (struct target_ops)
4100 <to_get_trace_state_variable_value>: Add argument.
4101 (target_get_trace_state_variable_value): Add argument.
4102 * target.c (update_current_target): Update.
4103 * remote.c (remote_get_trace_state_variable_value): Add 'self'
4105 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
4107 2014-02-19 Tom Tromey <tromey@redhat.com>
4109 * tracepoint.c (tfile_trace_find): Add 'self' argument.
4110 * target.h (struct target_ops) <to_trace_find>: Add argument.
4111 (target_trace_find): Add argument.
4112 * target.c (update_current_target): Update.
4113 * remote.c (remote_trace_find): Add 'self' argument.
4114 * ctf.c (ctf_trace_find): Add 'self' argument.
4116 2014-02-19 Tom Tromey <tromey@redhat.com>
4118 * target.h (struct target_ops) <to_trace_stop>: Add argument.
4119 (target_trace_stop): Add argument.
4120 * target.c (update_current_target): Update.
4121 * remote.c (remote_trace_stop): Add 'self' argument.
4123 2014-02-19 Tom Tromey <tromey@redhat.com>
4125 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
4126 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
4128 (target_get_tracepoint_status): Add argument.
4129 * target.c (update_current_target): Update.
4130 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
4132 2014-02-19 Tom Tromey <tromey@redhat.com>
4134 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
4135 * target.h (struct target_ops) <to_get_trace_status>: Add
4137 (target_get_trace_status): Add argument.
4138 * target.c (update_current_target): Update.
4139 * remote.c (remote_get_trace_status): Add 'self' argument.
4140 (remote_start_remote, remote_can_download_tracepoint): Update.
4141 * ctf.c (ctf_get_trace_status): Add 'self' argument.
4143 2014-02-19 Tom Tromey <tromey@redhat.com>
4145 * target.h (struct target_ops) <to_trace_start>: Add argument.
4146 (target_trace_start): Add argument.
4147 * target.c (update_current_target): Update.
4148 * remote.c (remote_trace_start): Add 'self' argument.
4150 2014-02-19 Tom Tromey <tromey@redhat.com>
4152 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4154 (target_trace_set_readonly_regions): Add argument.
4155 * target.c (update_current_target): Update.
4156 * remote.c (remote_trace_set_readonly_regions): Add 'self'
4159 2014-02-19 Tom Tromey <tromey@redhat.com>
4161 * target.h (struct target_ops) <to_disable_tracepoint>: Add
4163 (target_disable_tracepoint): Add argument.
4164 * target.c (update_current_target): Update.
4165 * remote.c (remote_disable_tracepoint): Add 'self' argument.
4167 2014-02-19 Tom Tromey <tromey@redhat.com>
4169 * target.h (struct target_ops) <to_enable_tracepoint>: Add
4171 (target_enable_tracepoint): Add argument.
4172 * target.c (update_current_target): Update.
4173 * remote.c (remote_enable_tracepoint): Add 'self' argument.
4175 2014-02-19 Tom Tromey <tromey@redhat.com>
4177 * target.h (struct target_ops) <to_download_trace_state_variable>:
4179 (target_download_trace_state_variable): Add argument.
4180 * target.c (update_current_target): Update.
4181 * remote.c (remote_download_trace_state_variable): Add 'self'
4184 2014-02-19 Tom Tromey <tromey@redhat.com>
4186 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
4188 (target_can_download_tracepoint): Add argument.
4189 * target.c (update_current_target): Update.
4190 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
4192 2014-02-19 Tom Tromey <tromey@redhat.com>
4194 * target.h (struct target_ops) <to_download_tracepoint>: Add
4196 (target_download_tracepoint): Add argument.
4197 * target.c (update_current_target): Update.
4198 * remote.c (remote_download_tracepoint): Add 'self' argument.
4200 2014-02-19 Tom Tromey <tromey@redhat.com>
4202 * target.h (struct target_ops) <to_trace_init>: Add argument.
4203 (target_trace_init): Add argument.
4204 * target.c (update_current_target): Update.
4205 * remote.c (remote_trace_init): Add 'self' argument.
4207 2014-02-19 Tom Tromey <tromey@redhat.com>
4209 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
4210 * target.c (target_fileio_readlink): Add argument.
4211 * remote.c (remote_hostio_readlink): Add 'self' argument.
4212 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
4214 2014-02-19 Tom Tromey <tromey@redhat.com>
4216 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
4217 * target.c (target_fileio_unlink): Add argument.
4218 * remote.c (remote_hostio_unlink): Add 'self' argument.
4219 (remote_file_delete): Update.
4220 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
4222 2014-02-19 Tom Tromey <tromey@redhat.com>
4224 * target.h (struct target_ops) <to_fileio_close>: Add argument.
4225 * target.c (target_fileio_close): Add argument.
4226 * remote.c (remote_hostio_close): Add 'self' argument.
4227 (remote_hostio_close_cleanup): Update.
4228 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
4230 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
4232 2014-02-19 Tom Tromey <tromey@redhat.com>
4234 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
4235 * target.c (target_fileio_pread): Add argument.
4236 * remote.c (remote_hostio_pread): Add 'self' argument.
4237 (remote_bfd_iovec_pread, remote_file_get): Update.
4238 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
4240 2014-02-19 Tom Tromey <tromey@redhat.com>
4242 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
4243 * target.c (target_fileio_pwrite): Add argument.
4244 * remote.c (remote_hostio_pwrite): Add 'self' argument.
4245 (remote_file_put): Update.
4246 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
4248 2014-02-19 Tom Tromey <tromey@redhat.com>
4250 * target.h (struct target_ops) <to_fileio_open>: Add argument.
4251 * target.c (target_fileio_open): Add argument.
4252 * remote.c (remote_hostio_open): Add 'self' argument.
4253 (remote_bfd_iovec_open): Add 'self' argument.
4254 (remote_file_put): Add 'self' argument.
4255 (remote_file_get): Add 'self' argument.
4256 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
4258 2014-02-19 Tom Tromey <tromey@redhat.com>
4260 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4262 (target_can_run_breakpoint_commands): Add argument.
4263 * target.c (update_current_target): Update.
4264 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
4266 (remote_insert_breakpoint): Add 'self' argument.
4267 (remote_insert_hw_breakpoint): Add 'self' argument.
4268 (remote_can_run_breakpoint_commands): Add 'self' argument.
4270 2014-02-19 Tom Tromey <tromey@redhat.com>
4272 * target.h (struct target_ops)
4273 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
4274 (target_supports_evaluation_of_breakpoint_conditions): Add
4276 * target.c (update_current_target): Update.
4277 * remote.c (remote_supports_cond_breakpoints): Add 'self'
4279 (remote_insert_breakpoint): Add 'self' argument.
4280 (remote_insert_hw_breakpoint): Add 'self' argument.
4281 (remote_supports_cond_breakpoints): Add 'self' argument.
4283 2014-02-19 Tom Tromey <tromey@redhat.com>
4285 * target.h (struct target_ops) <to_supports_string_tracing>: Add
4287 (target_supports_string_tracing): Add argument.
4288 * target.c (update_current_target): Update.
4289 * remote.c (remote_supports_string_tracing): Add 'self' argument.
4291 2014-02-19 Tom Tromey <tromey@redhat.com>
4293 * target.h (struct target_ops)
4294 <to_supports_disable_randomization>: Add argument.
4295 * target.c (find_default_supports_disable_randomization): Add
4297 (target_supports_disable_randomization): Add argument.
4298 (find_default_supports_disable_randomization): Add 'self'
4300 * remote.c (extended_remote_supports_disable_randomization): Add
4302 (remote_supports_disable_randomization): Add 'self' argument.
4303 (extended_remote_create_inferior): Update.
4304 * linux-nat.c (linux_nat_supports_disable_randomization): Add
4307 2014-02-19 Tom Tromey <tromey@redhat.com>
4309 * target.h (struct target_ops)
4310 <to_supports_enable_disable_tracepoint>: Add argument.
4311 (target_supports_enable_disable_tracepoint): Add argument.
4312 * target.c (update_current_target): Update.
4313 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
4316 2014-02-19 Tom Tromey <tromey@redhat.com>
4318 * target.h (struct target_ops) <to_supports_multi_process>: Add
4320 (target_supports_multi_process): Add argument.
4321 * target.c (update_current_target): Update.
4322 * remote.c (remote_supports_multi_process): Add 'self' argument.
4323 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
4325 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
4328 2014-02-19 Tom Tromey <tromey@redhat.com>
4330 * target.h (struct target_ops) <to_execution_direction>: Add
4332 (target_execution_direction): Add argument.
4333 * target.c (default_execution_direction): Add 'self' argument.
4334 * record-full.c (record_full_execution_direction): Add 'self'
4337 2014-02-19 Tom Tromey <tromey@redhat.com>
4339 * target.h (struct target_ops) <to_can_execute_reverse>: Add
4341 (target_can_execute_reverse): Add argument.
4342 * remote.c (remote_can_execute_reverse): Add 'self' argument.
4343 * record-full.c (record_full_can_execute_reverse): Add 'self'
4345 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
4348 2014-02-19 Tom Tromey <tromey@redhat.com>
4350 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
4351 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
4353 (target_get_ada_task_ptid): Add argument.
4354 * target.c (update_current_target): Update.
4355 (default_get_ada_task_ptid): Add 'self' argument.
4356 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
4357 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
4358 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
4360 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
4362 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
4364 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
4366 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
4367 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
4370 2014-02-19 Tom Tromey <tromey@redhat.com>
4372 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
4373 (target_goto_bookmark): Add argument.
4374 * target.c (dummy_goto_bookmark): Add 'self' argument.
4375 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
4377 2014-02-19 Tom Tromey <tromey@redhat.com>
4379 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
4380 (target_get_bookmark): Add argument.
4381 * target.c (dummy_get_bookmark): Add 'self' argument.
4382 * record-full.c (record_full_get_bookmark): Add 'self' argument.
4384 2014-02-19 Tom Tromey <tromey@redhat.com>
4386 * target.h (struct target_ops) <to_make_corefile_notes>: Add
4388 (target_make_corefile_notes): Add argument.
4389 * target.c (dummy_make_corefile_notes): Add 'self' argument.
4390 * procfs.c (procfs_make_note_section): Add 'self' argument.
4391 (procfs_make_note_section): Add 'self' argument.
4392 (procfs_make_note_section): Add 'self' argument.
4393 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
4395 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
4396 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
4397 * exec.c (exec_make_note_section): Add 'self' argument.
4398 (exec_make_note_section): Add 'self' argument.
4400 2014-02-19 Tom Tromey <tromey@redhat.com>
4402 * target.h (struct target_ops) <to_find_memory_regions>: Add
4404 (target_find_memory_regions): Add argument.
4405 * target.c (dummy_find_memory_regions): Add 'self' argument.
4406 * procfs.c (proc_find_memory_regions): Add 'self' argument.
4407 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
4408 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
4409 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
4410 * exec. (exec_do_find_memory_regions): New global.
4411 (exec_set_find_memory_regions): Rewrite.
4412 (exec_find_memory_regions): New function.
4413 (init_exec_ops): Use exec_find_memory_regions.
4415 2014-02-19 Tom Tromey <tromey@redhat.com>
4417 * target.h (struct target_ops) <to_supports_non_stop>: Add
4419 * target.c (find_default_supports_non_stop): Add argument.
4420 (target_supports_non_stop): Add argument.
4421 (find_default_supports_non_stop): Add 'self' argument.
4422 * remote.c (remote_supports_non_stop): Add 'self' argument.
4423 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
4425 2014-02-19 Tom Tromey <tromey@redhat.com>
4427 * target.h (struct target_ops) <to_log_command>: Add argument.
4428 (target_log_command): Add argument.
4429 * serial.h (serial_log_command): Add 'self' argument.
4430 * serial.c (serial_log_command): Add 'self' argument.
4432 2014-02-19 Tom Tromey <tromey@redhat.com>
4434 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
4435 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
4437 (target_pid_to_exec_file): Add argument.
4438 * target.c (debug_to_pid_to_exec_file): Add argument.
4439 (update_current_target): Update.
4440 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
4441 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
4442 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
4443 (linux_handle_extended_wait): Update.
4444 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
4445 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
4446 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
4447 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
4449 2014-02-19 Tom Tromey <tromey@redhat.com>
4451 * target.h (struct target_ops) <to_rcmd>: Add argument.
4452 (target_rcmd): Add argument.
4453 * target.c (debug_to_rcmd): Add argument.
4454 (update_current_target, do_monitor_command): Update.
4455 * remote.c (remote_rcmd): Add 'self' argument.
4456 * monitor.c (monitor_rcmd): Add 'self' argument.
4458 2014-02-19 Tom Tromey <tromey@redhat.com>
4460 * windows-nat.c (windows_stop): Add 'self' argument.
4461 * target.h (struct target_ops) <to_stop>: Add argument.
4462 * target.c (target_stop): Add argument.
4463 (debug_to_stop): Add argument.
4464 (update_current_target): Update.
4465 * remote.c (remote_stop): Add 'self' argument.
4466 * remote-sim.c (gdbsim_stop): Add 'self' argument.
4467 (gdbsim_cntrl_c): Update.
4468 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
4469 * procfs.c (procfs_stop): Add 'self' argument.
4470 * nto-procfs.c (procfs_stop): Add 'self' argument.
4471 * monitor.c (monitor_stop): Add 'self' argument.
4472 (monitor_open): Update.
4473 * linux-nat.c (linux_nat_stop): Add argument.
4474 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
4475 * gnu-nat.c (gnu_stop): Add 'self' argument.
4476 * darwin-nat.c (darwin_stop): Add 'self' argument.
4478 2014-02-19 Tom Tromey <tromey@redhat.com>
4480 * target.h (struct target_ops) <to_thread_name>: Add argument.
4481 * target.c (target_thread_name): Add argument.
4482 (update_current_target): Update.
4483 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
4485 2014-02-19 Tom Tromey <tromey@redhat.com>
4487 * target.h (struct target_ops) <to_extra_thread_info>: Add
4489 (target_extra_thread_info): Add argument.
4490 * target.c (update_current_target): Update.
4491 * remote.c (remote_threads_extra_info): Add 'self' argument.
4492 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
4494 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
4495 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
4496 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
4498 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
4500 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
4502 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
4505 2014-02-19 Tom Tromey <tromey@redhat.com>
4507 * target.h (struct target_ops) <to_program_signals>: Add argument.
4508 * target.c (target_program_signals): Add argument.
4509 * remote.c (remote_program_signals): Add 'self' argument.
4511 2014-02-19 Tom Tromey <tromey@redhat.com>
4513 * target.h (struct target_ops) <to_pass_signals>: Add argument.
4514 * target.c (target_pass_signals): Add argument.
4515 * remote.c (remote_pass_signals): Add 'self' argument.
4516 (remote_start_remote): Update.
4517 * procfs.c (procfs_pass_signals): Add 'self' argument.
4518 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
4519 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
4520 (linux_nat_create_inferior, linux_nat_attach): Update.
4522 2014-02-19 Tom Tromey <tromey@redhat.com>
4524 * windows-nat.c (windows_can_run): Add 'self' argument.
4525 * target.h (struct target_ops) <to_can_run>: Add argument.
4526 (target_can_run): Add argument.
4527 * target.c (debug_to_can_run): Add argument.
4528 (update_current_target): Update.
4529 * nto-procfs.c (procfs_can_run): Add 'self' argument.
4530 * inf-child.c (inf_child_can_run): Add 'self' argument.
4531 * go32-nat.c (go32_can_run): Add 'self' argument.
4533 2014-02-19 Tom Tromey <tromey@redhat.com>
4535 * target.h (struct target_ops) <to_has_exited>: Add argument.
4536 (target_has_exited): Add argument.
4537 * target.c (debug_to_has_exited): Add argument.
4538 (update_current_target): Update.
4540 2014-02-19 Tom Tromey <tromey@redhat.com>
4542 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
4544 (target_set_syscall_catchpoint): Add argument.
4545 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
4547 * target.c (update_current_target): Update.
4549 2014-02-19 Tom Tromey <tromey@redhat.com>
4551 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
4553 (target_remove_exec_catchpoint): Add argument.
4554 * target.c (debug_to_remove_exec_catchpoint): Add argument.
4555 (update_current_target): Update.
4556 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
4559 2014-02-19 Tom Tromey <tromey@redhat.com>
4561 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
4563 (target_insert_exec_catchpoint): Add argument.
4564 * target.c (debug_to_insert_exec_catchpoint): Add argument.
4565 (update_current_target): Update.
4566 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
4569 2014-02-19 Tom Tromey <tromey@redhat.com>
4571 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
4573 (target_remove_vfork_catchpoint): Add argument.
4574 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
4575 (update_current_target): Update.
4576 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
4579 2014-02-19 Tom Tromey <tromey@redhat.com>
4581 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
4583 (target_insert_vfork_catchpoint): Add argument.
4584 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
4585 (update_current_target): Update.
4586 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
4589 2014-02-19 Tom Tromey <tromey@redhat.com>
4591 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
4593 (target_remove_fork_catchpoint): Add argument.
4594 * target.c (debug_to_remove_fork_catchpoint): Add argument.
4595 (update_current_target): Update.
4596 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
4599 2014-02-19 Tom Tromey <tromey@redhat.com>
4601 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
4603 (target_insert_fork_catchpoint): Add argument.
4604 * target.c (debug_to_insert_fork_catchpoint): Add argument.
4605 (update_current_target): Update.
4606 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
4609 2014-02-19 Tom Tromey <tromey@redhat.com>
4611 * target.h (struct target_ops) <to_post_startup_inferior>: Add
4613 (target_post_startup_inferior): Add argument.
4614 * target.c (debug_to_post_startup_inferior): Add argument.
4615 (update_current_target): Update.
4616 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
4618 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
4620 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
4622 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
4624 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
4626 (super_post_startup_inferior): Likewise.
4627 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
4629 (super_post_startup_inferior): Likewise.
4630 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
4631 Add 'self' argument.
4632 (super_post_startup_inferior): Likewise.
4634 2014-02-19 Tom Tromey <tromey@redhat.com>
4636 * target.h (struct target_ops) <to_load>: Add argument.
4637 * target.c (target_load): Add argument.
4638 (debug_to_load): Add argument.
4639 (update_current_target): Update.
4640 * remote.c (remote_load): Add 'self' argument.
4641 * remote-sim.c (gdbsim_load): Add 'self' argument.
4642 * remote-mips.c (mips_load): Add 'self' argument.
4643 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
4644 * monitor.c (monitor_load): Add 'self' argument.
4645 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
4647 2014-02-19 Tom Tromey <tromey@redhat.com>
4649 * target.h (struct target_ops) <to_terminal_info>: Add argument.
4650 (target_terminal_info): Add argument.
4651 * target.c (debug_to_terminal_info): Add argument.
4652 (default_terminal_info): Likewise.
4653 * inflow.c (child_terminal_info): Add 'self' argument.
4654 * inferior.h (child_terminal_info): Add 'self' argument.
4655 * go32-nat.c (go32_terminal_info): Add 'self' argument.
4657 2014-02-19 Tom Tromey <tromey@redhat.com>
4659 * target.h (struct target_ops) <to_terminal_save_ours>: Add
4661 (target_terminal_save_ours): Add argument.
4662 * target.c (debug_to_terminal_save_ours): Add argument.
4663 (update_current_target): Update.
4664 * inflow.c (terminal_save_ours): Add 'self' argument.
4665 * inferior.h (terminal_save_ours): Add 'self' argument.
4667 2014-02-19 Tom Tromey <tromey@redhat.com>
4669 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
4670 (target_terminal_ours): Add argument.
4671 * target.c (debug_to_terminal_ours): Add argument.
4672 (update_current_target): Update.
4673 * remote.c (remote_terminal_ours): Add 'self' argument.
4674 (remote_close): Update.
4675 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
4676 * inflow.c (terminal_ours): Add 'self' argument.
4677 * inferior.h (terminal_ours): Add 'self' argument.
4678 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
4680 2014-02-19 Pedro Alves <palves@redhat.com>
4681 Tom Tromey <tromey@redhat.com>
4683 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
4685 (target_terminal_ours_for_output): Add argument.
4686 * target.c (debug_to_terminal_ours_for_output): Add argument.
4687 (update_current_target): Update.
4688 * inflow.c (terminal_ours_for_output): Add 'self' argument.
4689 * inferior.h (terminal_ours_for_output): Add 'self' argument.
4690 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
4692 2014-02-19 Tom Tromey <tromey@redhat.com>
4694 * target.h (struct target_ops) <to_terminal_inferior>: Add
4696 * target.c (target_terminal_inferior): Add argument.
4697 (update_current_target): Update.
4698 * remote.c (remote_terminal_inferior): Add 'self' argument.
4699 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
4700 * inflow.c (terminal_inferior): Add 'self' argument.
4701 * inferior.h (terminal_inferior): Add 'self' argument.
4702 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
4703 (go32_terminal_inferior): Add 'self' argument.
4705 2014-02-19 Tom Tromey <tromey@redhat.com>
4707 * target.h (struct target_ops) <to_terminal_init>: Add argument.
4708 (target_terminal_init): Add argument.
4709 * target.c (debug_to_terminal_init): Add argument.
4710 (update_current_target): Update.
4711 * inflow.c (terminal_init_inferior): Add 'self' argument.
4712 * inferior.h (terminal_init_inferior): Add 'self' argument.
4713 * go32-nat.c (go32_terminal_init): Add 'self' argument.
4714 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
4716 2014-02-19 Tom Tromey <tromey@redhat.com>
4718 * target.h (struct target_ops)
4719 <to_can_accel_watchpoint_condition>: Add argument.
4720 (target_can_accel_watchpoint_condition): Add argument.
4721 * target.c (debug_to_can_accel_watchpoint_condition): Add
4723 (update_current_target): Update.
4724 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
4727 2014-02-19 Tom Tromey <tromey@redhat.com>
4729 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4731 (target_region_ok_for_hw_watchpoint): Add argument.
4732 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
4733 (default_region_ok_for_hw_watchpoint): Add argument.
4734 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
4735 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
4737 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
4739 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
4741 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
4743 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
4745 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
4747 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
4748 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
4750 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
4751 Add 'self' argument.
4753 2014-02-19 Tom Tromey <tromey@redhat.com>
4755 * target.h (struct target_ops) <to_insert_watchpoint>: Add
4757 (target_insert_watchpoint): Add argument.
4758 * target.c (debug_to_insert_watchpoint): Add argument.
4759 (update_current_target): Update.
4760 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
4761 * remote.c (remote_insert_watchpoint): Add 'self' argument.
4762 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
4763 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
4764 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
4765 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
4767 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
4768 (procfs_insert_hw_watchpoint): Add 'self' argument.
4769 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
4771 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
4773 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
4775 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
4776 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
4778 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
4781 2014-02-19 Tom Tromey <tromey@redhat.com>
4783 * target.h (struct target_ops) <to_remove_watchpoint>: Add
4785 (target_remove_watchpoint): Add argument.
4786 * target.c (debug_to_remove_watchpoint): Add argument.
4787 (update_current_target): Update.
4788 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
4789 * remote.c (remote_remove_watchpoint): Add 'self' argument.
4790 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
4791 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
4792 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
4793 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
4795 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
4796 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
4798 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
4800 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
4802 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
4803 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
4805 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
4808 2014-02-19 Tom Tromey <tromey@redhat.com>
4810 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
4812 (target_remove_hw_breakpoint): Add argument.
4813 * target.c (debug_to_remove_hw_breakpoint): Add argument.
4814 (update_current_target): Update.
4815 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
4816 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
4818 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
4819 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
4821 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
4824 2014-02-19 Tom Tromey <tromey@redhat.com>
4826 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
4828 (target_insert_hw_breakpoint): Add argument.
4829 * target.c (debug_to_insert_hw_breakpoint): Add argument.
4830 (update_current_target): Update.
4831 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
4832 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
4834 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
4835 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
4836 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
4838 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
4841 2014-02-19 Tom Tromey <tromey@redhat.com>
4843 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
4845 (target_can_use_hardware_watchpoint): Add argument.
4846 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
4847 (update_current_target): Update.
4848 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
4850 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
4852 * remote.c (remote_check_watch_resources): Add 'self' argument.
4853 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
4854 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
4856 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
4857 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
4859 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
4861 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
4863 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
4865 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
4867 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
4869 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
4870 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
4872 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
4875 2014-02-19 Tom Tromey <tromey@redhat.com>
4877 * target.h (struct target_ops) <to_post_attach>: Add argument.
4878 (target_post_attach): Add argument.
4879 * target.c (debug_to_post_attach): Add argument.
4880 (update_current_target): Update.
4881 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
4882 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
4883 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
4884 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
4885 * inf-child.c (inf_child_post_attach): Add 'self' argument.
4887 2014-02-19 Tom Tromey <tromey@redhat.com>
4889 * windows-nat.c (windows_close): Add 'self' argument.
4890 * tracepoint.c (tfile_close): Add 'self' argument.
4891 * target.h (struct target_ops) <to_close>: Add argument.
4892 * target.c (target_close): Add argument.
4893 (update_current_target): Update.
4894 * remote.c (remote_close): Add 'self' argument.
4895 * remote-sim.c (gdbsim_close): Add 'self' argument.
4896 * remote-mips.c (mips_close): Add 'self' argument.
4897 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
4898 * record-full.c (record_full_close): Add 'self' argument.
4899 * record-btrace.c (record_btrace_close): Add 'self' argument.
4900 * monitor.h (monitor_close): Add 'self' argument.
4901 * monitor.c (monitor_close): Add 'self' argument.
4902 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
4903 * linux-nat.c (linux_nat_close): Add argument.
4904 * go32-nat.c (go32_close): Add 'self' argument.
4905 * exec.c (exec_close_1): Add 'self' argument.
4906 * ctf.c (ctf_close): Add 'self' argument.
4907 * corelow.c (core_close): Add 'self' argument.
4908 (core_close_cleanup): Update.
4909 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
4910 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
4912 2014-02-19 Tom Tromey <tromey@redhat.com>
4914 * remote.c (remote_load): New function.
4915 (init_remote_ops): Use it.
4917 2014-02-19 Tom Tromey <tromey@redhat.com>
4919 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
4921 * common/linux-btrace.h (linux_supports_btrace): Update.
4922 * remote.c (remote_supports_btrace): Add "self" argument.
4923 * target-delegates.c: Rebuild.
4924 * target.c (target_supports_btrace): Remove.
4925 * target.h (struct target_ops) <to_supports_btrace>: Add
4926 target_ops argument.
4927 (target_supports_btrace): New define.
4929 2014-02-19 Tom Tromey <tromey@redhat.com>
4931 * record-full.c (record_full_beneath_to_resume_ops)
4932 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
4933 (record_full_beneath_to_wait)
4934 (record_full_beneath_to_store_registers_ops)
4935 (record_full_beneath_to_store_registers)
4936 (record_full_beneath_to_xfer_partial_ops)
4937 (record_full_beneath_to_xfer_partial)
4938 (record_full_beneath_to_insert_breakpoint_ops)
4939 (record_full_beneath_to_insert_breakpoint)
4940 (record_full_beneath_to_remove_breakpoint_ops)
4941 (record_full_beneath_to_remove_breakpoint)
4942 (record_full_beneath_to_stopped_by_watchpoint)
4943 (record_full_beneath_to_stopped_data_address)
4944 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
4945 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
4946 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
4947 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
4948 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
4949 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
4950 (tmp_to_stopped_data_address, tmp_to_async): Remove.
4951 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
4952 (record_full_resume, record_full_wait_1)
4953 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
4954 (record_full_store_registers, record_full_xfer_partial)
4955 (record_full_insert_breakpoint, record_full_remove_breakpoint)
4956 (record_full_async, record_full_core_xfer_partial): Use target
4958 * target-delegates.c: Rebuild.
4959 * target.c (current_xfer_partial): Remove.
4960 (update_current_target): Do not INHERIT or de_fault
4961 to_insert_breakpoint, to_remove_breakpoint,
4962 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
4963 to_is_async_p, to_async. Do not set to_xfer_partial field.
4964 (default_xfer_partial): Simplify.
4965 (current_xfer_partial): Remove.
4966 (target_wait, target_resume): Simplify.
4967 (find_default_can_async_p, find_default_is_async_p): Update.
4968 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
4969 to_xfer_partial, to_stopped_by_watchpoint,
4970 to_stopped_data_address.
4971 (target_store_registers): Simplify.
4972 (forward_target_remove_breakpoint)
4973 (forward_target_insert_breakpoint): Remove.
4974 (target_remove_breakpoint, target_insert_breakpoint)
4975 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
4976 * target.h (struct target_ops) <to_resume, to_wait,
4977 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
4978 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
4979 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
4981 (forward_target_remove_breakpoint)
4982 (forward_target_insert_breakpoint): Remove.
4983 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
4985 (record_btrace_insert_breakpoint): Delegate directly.
4987 2014-02-19 Tom Tromey <tromey@redhat.com>
4990 * target-delegates.c: New file.
4991 * target.c: Include target-delegates.c.
4992 (init_dummy_target): Call install_dummy_methods.
4993 (complete_target_initialization): Call install_delegators.
4994 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
4995 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
4996 * make-target-delegates: New file.
4998 2014-02-19 Tom Tromey <tromey@redhat.com>
5000 * record.c (find_record_target): Use find_target_at.
5001 * target.c (find_target_at): New function.
5002 * target.h (find_target_at): Declare.
5004 2014-02-19 Tom Tromey <tromey@redhat.com>
5006 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
5008 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
5010 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
5011 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
5013 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
5015 * linux-nat.c (save_sigtrap): Update.
5016 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
5017 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
5018 (linux_nat_close): Update.
5019 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
5021 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
5023 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
5024 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
5025 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
5026 (tmp_to_async): Add 'ops' argument.
5027 (record_full_stopped_by_watchpoint, record_full_async)
5028 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
5030 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
5031 (m32r_stopped_by_watchpoint): Add 'ops' argument.
5032 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
5033 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
5034 (remote_is_async_p, remote_async): Add 'ops' argument.
5035 (remote_stopped_data_address): Update.
5036 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
5037 * target.c (update_current_target)
5038 (find_default_can_async_p, find_default_is_async_p): Update.
5039 (init_dummy_target): Update.
5040 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
5041 * target.h (struct target_ops) <to_stopped_by_watchpoint,
5042 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
5043 (target_can_async_p, target_is_async_p, target_async)
5044 (target_stopped_by_watchpoint): Update.
5046 2014-02-19 Yao Qi <yao@codesourcery.com>
5049 * gdbarch.sh: Remove startup_gdbarch.
5050 * gdbarch.c: Regenerated.
5051 * gdbarch.h: Likewise.
5053 2014-02-17 Kevin Buettner <kevinb@redhat.com>
5055 * rl78-tdep.c (rl78_g10_register_name): New function.
5056 (rl78_return_value): Add g10 support.
5057 (rl78_gdbarch_init): Register rl78_g10_register_name for the
5060 2014-02-17 Doug Evans <xdje42@gmail.com>
5062 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
5063 (SUBDIR_GUILE_SRCS): Ditto.
5064 (scm-gsmob.o): Ditto.
5066 2014-02-17 Yao Qi <yao@codesourcery.com>
5068 * gnu-nat.c (ILL_RPC): Declare defined function.
5070 2014-02-17 Yao Qi <yao@codesourcery.com>
5072 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
5073 mach_msg_type_number_t.
5074 (gnu_write_inferior): Likewise.
5076 2014-02-17 Yao Qi <yao@codesourcery.com>
5078 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
5080 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
5081 (inf_validate_procs, inf_signal): Likewise.
5082 (S_exception_raise_request): Likewise.
5083 (do_mach_notify_dead_name): Likewise.
5084 (steal_exc_port): Likewise.
5085 (gnu_read_inferior): Change 'copy_count''s type to
5086 mach_msg_type_number_t.
5087 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
5090 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
5092 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
5093 flag. Adjust all users; in particular...
5094 (gnu_wait): ..., don't decrement its value in here...
5095 (gnu_create_inferior): ..., and instead set the flag in here,
5096 around the startup_inferior call, and call that one with
5097 START_INFERIOR_TRAPS_EXPECTED.
5099 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
5100 (ILL_RPC): ... new macro.
5101 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
5102 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
5103 (do_mach_notify_send_once, S_proc_setmsgport_reply)
5104 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
5105 functions with ILL_RPC macro.
5106 (S_proc_pid2task_reply, S_proc_task2pid_reply)
5107 (S_proc_task2proc_reply, S_proc_proc2task_reply)
5108 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
5109 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
5110 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
5111 (S_proc_getlogin_reply, S_proc_getsid_reply)
5112 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
5113 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
5114 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
5115 (S_proc_getnports_reply, S_proc_is_important_reply)
5116 (S_proc_get_code_reply): New stub functions, generated with
5119 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
5120 collected the type check structures.
5122 * reply_mig_hack.awk: Don't expect to see the auto keyword.
5124 2014-02-14 Doug Evans <dje@google.com>
5126 * target.c (target_write_partial): Fix result type.
5128 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
5130 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
5131 the proper offsets to access fpregset_t.
5133 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
5135 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
5136 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
5137 * h8300-tdep.c (setmachinelist): Remove global.
5138 * hppa-tdep.c (hppa_sigtramp): Remove global.
5139 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
5140 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
5141 * ravenscar-thread.c (update_target_observer): Remove global.
5142 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
5144 2014-02-12 Tom Tromey <tromey@redhat.com>
5146 * common/rsp-low.c: Update comments.
5147 * common/rsp-low.h: Update comments.
5149 2014-02-12 Tom Tromey <tromey@redhat.com>
5151 * common/rsp-low.c (convert_ascii_to_int): Remove.
5152 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
5154 2014-02-12 Tom Tromey <tromey@redhat.com>
5156 * common/rsp-low.h (unhexify): Don't declare.
5157 * common/rsp-low.c (unhexify): Remove.
5159 2014-02-12 Tom Tromey <tromey@redhat.com>
5161 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
5162 * common/rsp-low.c (convert_int_to_ascii): Remove.
5164 2014-02-12 Tom Tromey <tromey@redhat.com>
5166 * common/rsp-low.h (hexify): Don't declare.
5167 * common/rsp-low.c (hexify): Remove.
5169 2014-02-12 Tom Tromey <tromey@redhat.com>
5171 * common/rsp-low.c (hexify): Never take strlen of argument.
5173 2014-02-12 Tom Tromey <tromey@redhat.com>
5175 * common/rsp-low.c (bin2hex): Never take strlen of argument.
5176 * remote.c (extended_remote_run, remote_rcmd)
5177 (remote_download_trace_state_variable, remote_save_trace_data)
5178 (remote_set_trace_notes): Update.
5179 * tracepoint.c (encode_source_string, tfile_write_status)
5180 (tfile_write_uploaded_tsv): Update.
5182 2014-02-12 Tom Tromey <tromey@redhat.com>
5184 * tracepoint.c: Include rsp-low.h.
5185 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
5186 * remote.c: Include rsp-low.h.
5187 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
5188 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
5189 (remote_unescape_input): Move to common/rsp-low.c.
5190 * common/rsp-low.h: New file.
5191 * common/rsp-low.c: New file.
5192 * Makefile.in (SFILES): Add common/rsp-low.c.
5193 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
5194 (COMMON_OBS): Add rsp-low.o.
5195 (rsp-low.o): New target.
5197 2014-02-12 Tom Tromey <tromey@redhat.com>
5199 * utils.h: Include print-utils.h.
5200 (host_address_to_string, plongest, pulongest, phex, phex_nz)
5201 (int_string, core_addr_to_string, core_addr_to_string_nz)
5202 (hex_string, hex_string_custom): Don't declare.
5203 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
5204 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
5205 (hex_string_custom, int_string, core_addr_to_string)
5206 (core_addr_to_string_nz, host_address_to_string): Move to
5207 common/print-utils.c.
5208 * common/print-utils.h: New file.
5209 * common/print-utils.c: New file
5210 * Makefile.in (SFILES): Add common/print-utils.c.
5211 (HFILES_NO_SRCDIR): Add common/print-utils.h.
5212 (COMMON_OBS): Add print-utils.o.
5213 (print-utils.o): New target.
5215 2014-02-12 Tom Tromey <tromey@redhat.com>
5217 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
5219 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5221 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
5223 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5225 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
5226 if a PT_IO ptrace request returns sucessfully but indicates that 0
5227 bytes were transferred.
5229 2014-02-12 Pedro Alves <palves@redhat.com>
5230 Kevin Buettner <kevinb@redhat.com>
5232 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
5233 TYPE_INSTANCE_FLAG_CODE_SPACE.
5235 2014-02-12 Pedro Alves <palves@redhat.com>
5237 * h8300-tdep.c (pseudo_from_raw_register)
5238 (raw_from_pseudo_register): New functions.
5239 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
5242 2014-02-12 Pedro Alves <palves@redhat.com>
5244 * h8300-tdep.c (h8300_register_sim_regno): New function.
5245 (h8300_gdbarch_init): Install h8300_register_sim_regno as
5246 gdbarch_register_sim_regno hook.
5248 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
5250 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
5252 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
5254 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
5256 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5258 * obsd-tdep.h (obsd_init_abi): New prototype.
5259 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
5260 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
5261 (obsd_init_abi): New functions.
5262 * i386obsd-tdep.c: Include "obsd-tdep.h".
5263 (i386obsd_init_abi): Call obsd_init_abi.
5264 * amd64obsd-tdep.c: Include "obsd-tdep.h".
5265 (amd64obsd_init_abi): Call obsd_init_abi.
5266 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
5267 obsd-tdep.c to gdb_target_obs.
5269 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
5271 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
5272 double float arguments to 16-byte in the argument slots.
5274 2014-02-11 Doug Evans <xdje42@gmail.com>
5276 * configure.ac: Don't crash if pkg-config is not found and guile
5277 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
5279 * configure: Regenerate.
5281 2014-02-11 Yao Qi <yao@codesourcery.com>
5283 * aix-thread.c (aix_thread_xfer_partial): Update comments.
5284 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
5285 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
5286 * gnu-nat.c (gnu_xfer_memory): Likewise.
5287 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
5288 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5289 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5290 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
5292 2014-02-11 Yao Qi <yao@codesourcery.com>
5294 * target.h (enum target_xfer_error): Rename to ...
5295 (enum target_xfer_status): ... it. New. All users updated.
5296 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
5298 (TARGET_XFER_STATUS_ERROR_P): New macro.
5299 (target_xfer_error_to_string): Remove declaration.
5300 (target_xfer_status_to_string): Declare.
5301 (target_xfer_partial_ftype): Adjust it.
5302 (struct target_ops) <to_xfer_partial>: Return
5303 target_xfer_status. Add argument xfered_len. Update
5305 * target.c (target_xfer_error_to_string): Rename to ...
5306 (target_xfer_status_to_string): ... it. New. All callers
5308 (target_read_live_memory): Likewise. Call target_xfer_partial
5309 instead of target_read.
5310 (memory_xfer_live_readonly_partial): Return
5311 target_xfer_status. Add argument xfered_len.
5312 (raw_memory_xfer_partial): Likewise.
5313 (memory_xfer_partial_1): Likewise.
5314 (memory_xfer_partial): Likewise.
5315 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
5316 properly. Update debug message.
5317 (default_xfer_partial, current_xfer_partial): Likewise.
5318 (target_write_partial): Likewise.
5319 (target_read_partial): Likewise. All callers updated.
5320 (read_whatever_is_readable): Likewise.
5321 (target_write_with_progress): Likewise.
5322 (target_read_alloc_1): Likewise.
5324 * aix-thread.c (aix_thread_xfer_partial): Likewise.
5325 * auxv.c (procfs_xfer_auxv): Likewise.
5326 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
5327 * bfd-target.c (target_bfd_xfer_partial): Likewise.
5328 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
5329 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
5330 * corefile.c (read_memory): Adjust.
5331 * corelow.c (core_xfer_partial): Likewise.
5332 * ctf.c (ctf_xfer_partial): Likewise.
5333 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
5335 (darwin_xfer_partial): Likewise.
5336 * exec.c (section_table_xfer_memory_partial): Likewise. All
5338 (exec_xfer_partial): Likewise.
5339 * exec.h (section_table_xfer_memory_partial): Update
5341 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
5343 (gnu_xfer_partial): Likewise.
5344 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
5345 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
5346 (ia64_hpux_xfer_solib_got): Likewise.
5347 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
5348 type of 'partial_len' to ULONGEST.
5349 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
5350 * linux-nat.c (linux_xfer_siginfo ): Likewise.
5351 (linux_nat_xfer_partial): Likewise.
5352 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
5353 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
5354 * monitor.c (monitor_xfer_memory): Likewise.
5355 (monitor_xfer_partial): Likewise.
5356 * procfs.c (procfs_xfer_partial): Likewise.
5357 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5358 * record-full.c (record_full_xfer_partial): Likewise.
5359 (record_full_core_xfer_partial): Likewise.
5360 * remote-sim.c (gdbsim_xfer_memory): Likewise.
5361 (gdbsim_xfer_partial): Likewise.
5362 * remote.c (remote_write_bytes_aux): Likewise. All callers
5364 (remote_write_bytes, remote_read_bytes): Likewise. All
5366 (remote_flash_erase): Likewise. All callers updated.
5367 (remote_write_qxfer): Likewise. All callers updated.
5368 (remote_read_qxfer): Likewise. All callers updated.
5369 (remote_xfer_partial): Likewise.
5370 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5371 (rs6000_xfer_shared_libraries): Likewise.
5372 * sol-thread.c (sol_thread_xfer_partial): Likewise.
5373 (sol_thread_xfer_partial): Likewise.
5374 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5375 (sparc_xfer_partial): Likewise.
5376 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
5378 (spu_xfer_partial): Likewise.
5379 * spu-multiarch.c (spu_xfer_partial): Likewise.
5380 * tracepoint.c (tfile_xfer_partial): Likewise.
5381 * windows-nat.c (windows_xfer_memory): Likewise.
5382 (windows_xfer_shared_libraries): Likewise.
5383 (windows_xfer_partial): Likewise.
5384 * valprint.c: Replace 'target_xfer_error' with
5385 'target_xfer_status' in comments.
5387 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
5389 Checked in by Joel Brobecker <brobecker@adacore.com>.
5390 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
5392 2014-02-11 Joel Brobecker <brobecker@adacore.com>
5394 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
5395 function parameters.
5397 2014-02-10 Will Newton <will.newton@linaro.org>
5399 * elfread.c (elf_rel_plt_read): Look for a .got section if
5400 looking up .got.plt fails.
5401 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
5402 on address passed to elf_gnu_ifunc_record_cache.
5403 (elf_gnu_ifunc_resolve_addr): Likewise.
5404 (elf_gnu_ifunc_resolver_return_stop): Likewise.
5406 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
5408 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
5409 (X_RETTURN): New macro.
5410 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
5412 * sparc64-tdep.c (sparc64_init_abi): Hook
5413 sparc_in_function_epilogue_p.
5415 2014-02-10 Gary Benson <gbenson@redhat.com>
5417 * symfile-debug.c (debug_qf_expand_symtabs_matching):
5418 Rename name_matcher to symbol_matcher.
5420 2014-02-10 Gary Benson <gbenson@redhat.com>
5422 * symfile-debug.c (debug_qf_expand_symtabs_matching):
5423 Use expand_symtabs_file_matcher_ftype and
5424 expand_symtabs_symbol_matcher_ftype.
5426 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5428 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
5429 (struct ada_symbol_cache): New.
5430 (ada_free_symbol_cache): Forward declare.
5431 (struct ada_pspace_data): New.
5432 (ada_pspace_data_handle): New static global.
5433 (get_ada_pspace_data, ada_pspace_data_cleanup)
5434 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
5435 (cache_space, cache): Delete, now folded inside struct
5437 (ada_get_symbol_cache): New function.
5438 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
5440 (_initialize_ada_language): Remove initialization of cache_space.
5441 Move call to observer_attach_inferior_exit up, grouping it
5442 with the other observer registrations inside this function.
5443 Rename command to be more general. Add call to
5444 register_program_space_data_with_cleanup.
5446 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5448 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
5449 ada_new_objfile_observer.
5450 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
5451 (_initialize_tasks): Update uses of ada_new_objfile_observer
5452 and ada_tasks_normal_stop_observer.
5454 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5456 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
5457 returned by the 'Length attribute to integer.
5459 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5461 * ada-lang.c (_initialize_ada_language): Initialize
5462 cache_space obstack.
5464 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5466 * ada-lang.c (HASH_SIZE): New macro.
5467 (struct cache_entry): New type.
5468 (cache_space, cache): New static globals.
5469 (ada_clear_symbol_cache, find_entry): New functions.
5470 (lookup_cached_symbol, cache_symbol): Implement.
5471 (ada_new_objfile_observer, ada_free_objfile_observer): New.
5472 (_initialize_ada_language): Attach ada_new_objfile_observer
5473 and ada_free_objfile_observer.
5475 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5477 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
5478 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
5479 struct block * parameter.
5480 (ada_lookup_symbol_list_worker): Constify local variable "block".
5481 Remove cast which is no longer necessary.
5483 2014-02-10 Doug Evans <xdje42@gmail.com>
5485 Add Guile as an extension language.
5486 * NEWS: Mention Guile scripting.
5487 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
5488 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
5489 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
5490 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
5491 (CLIBS): Add GUILE_LIBS.
5492 (install-guile): New rule.
5493 (guile.o): New rule.
5494 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
5495 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
5496 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
5497 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
5498 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
5499 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
5500 (scm-type.o, scm-utils.o, scm-value.o): New rules.
5501 * configure.ac: New option --with-guile.
5502 * configure: Regenerate.
5503 * config.in: Regenerate.
5504 * auto-load.c: Remove #include "python/python.h". Add #include
5505 "gdb/section-scripts.h".
5506 (source_section_scripts): Handle Guile scripts.
5507 (_initialize_auto_load): Add name of Guile objfile script to
5508 scripts-directory help text.
5509 * breakpoint.c (condition_command): Tweak comment to include Scheme.
5510 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
5511 (struct breakpoint): New member scm_bp_object.
5512 * defs.h (enum command_control_type): New value guile_control.
5513 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
5515 (show_user): Update comment.
5516 (_initialize_cli_cmds): Update help text for "show user". Update help
5517 text for max-user-call-depth.
5518 * cli/cli-script.c: Remove #include "python/python.h". Add #include
5520 (multi_line_command_p): Add guile_control.
5521 (print_command_lines): Handle guile_control.
5522 (execute_control_command, recurse_read_control_structure): Ditto.
5523 (process_next_line): Recognize "guile" commands.
5524 * disasm.c (gdb_disassemble_info): Make non-static.
5525 * disasm.h: #include "dis-asm.h".
5526 (struct gdbarch): Add forward decl.
5527 (gdb_disassemble_info): Declare.
5528 * extension.c: #include "guile/guile.h".
5529 (extension_languages): Add guile.
5530 (get_ext_lang_defn): Handle EXT_LANG_GDB.
5531 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
5532 * gdbtypes.c (get_unsigned_type_max): New function.
5533 (get_signed_type_minmax): New function.
5534 * gdbtypes.h (get_unsigned_type_max): Declare.
5535 (get_signed_type_minmax): Declare.
5536 * guile/README: New file.
5537 * guile/guile-internal.h: New file.
5538 * guile/guile.c: New file.
5539 * guile/guile.h: New file.
5540 * guile/scm-arch.c: New file.
5541 * guile/scm-auto-load.c: New file.
5542 * guile/scm-block.c: New file.
5543 * guile/scm-breakpoint.c: New file.
5544 * guile/scm-disasm.c: New file.
5545 * guile/scm-exception.c: New file.
5546 * guile/scm-frame.c: New file.
5547 * guile/scm-gsmob.c: New file.
5548 * guile/scm-iterator.c: New file.
5549 * guile/scm-lazy-string.c: New file.
5550 * guile/scm-math.c: New file.
5551 * guile/scm-objfile.c: New file.
5552 * guile/scm-ports.c: New file.
5553 * guile/scm-pretty-print.c: New file.
5554 * guile/scm-safe-call.c: New file.
5555 * guile/scm-string.c: New file.
5556 * guile/scm-symbol.c: New file.
5557 * guile/scm-symtab.c: New file.
5558 * guile/scm-type.c: New file.
5559 * guile/scm-utils.c: New file.
5560 * guile/scm-value.c: New file.
5561 * guile/lib/gdb.scm: New file.
5562 * guile/lib/gdb/boot.scm: New file.
5563 * guile/lib/gdb/experimental.scm: New file.
5564 * guile/lib/gdb/init.scm: New file.
5565 * guile/lib/gdb/iterator.scm: New file.
5566 * guile/lib/gdb/printing.scm: New file.
5567 * guile/lib/gdb/types.scm: New file.
5568 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
5569 (VPATH): Add $(GUILE_SRCDIR).
5570 (GUILE_DIR): New variable.
5571 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
5572 (all): Add stamp-guile dependency.
5573 (stamp-guile): New rule.
5574 (clean-guile, install-guile, uninstall-guile): New rules.
5575 (install-only): Add install-guile dependency.
5576 (uninstall): Add uninstall-guile dependency.
5577 (clean): Add clean-guile dependency.
5579 2014-02-09 Doug Evans <xdje42@gmail.com>
5581 Revert this patch (which I approved, mea culpa).
5583 2014-02-08 Mark Kettenis <kettenis@gnu.org>
5585 * Makefile.in (all-lib): Remove.
5586 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
5588 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5590 Fix Python stack corruption.
5591 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
5594 2014-02-08 Mark Kettenis <kettenis@gnu.org>
5596 * Makefile.in (all-lib): Remove.
5597 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
5599 2014-02-07 Doug Evans <dje@google.com>
5601 * extension-priv.h (extension_language_script_ops): Add comment.
5602 (extension_language_ops): Add comment.
5603 (active_ext_lang_state): Fix typo in comment.
5605 2014-02-07 Pedro Alves <palves@redhat.com>
5607 PR breakpoints/16292
5608 * infrun.c (handle_signal_stop) <signal arrives while stepping
5609 over a breakpoint>: Switch back to the stepping thread.
5611 2014-02-07 Yao Qi <yao@codesourcery.com>
5613 * target.c (target_xfer_partial): Return zero if LEN is zero.
5615 2014-02-07 Yao Qi <yao@codesourcery.com>
5617 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
5618 (ld_so_xfer_auxv): Likewise.
5619 * bfd-target.c (target_bfd_xfer_partial): Likewise.
5620 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
5621 * corelow.c (core_xfer_partial): Likewise.
5622 * ctf.c (ctf_xfer_partial): Likewise.
5623 * darwin-nat.c (darwin_read_dyld_info): Likewise.
5624 (darwin_xfer_partial): Likewise.
5625 * exec.c (exec_xfer_partial): Likewise.
5626 * gnu-nat.c (gnu_xfer_partial): Likewise.
5627 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
5628 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
5629 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
5630 * linux-nat.c (linux_xfer_siginfo): Likewise.
5631 (linux_proc_xfer_spu): Likewise.
5632 * procfs.c (procfs_xfer_partial): Likewise.
5633 * record-full.c (record_full_xfer_partial): Likewise.
5634 (record_full_core_xfer_partial): Likewise.
5635 * remote-sim.c (gdbsim_xfer_partial): Likewise.
5636 * remote.c (remote_write_qxfer): Likewise.
5637 (remote_write_qxfer, remote_read_qxfer): Likewise.
5638 (remote_xfer_partial): Likewise.
5639 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5640 (rs6000_xfer_shared_libraries): Likewise.
5641 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5642 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
5643 (spu_xfer_partial): Likewise.
5644 * target.c (memory_xfer_partial_1): Likewise.
5645 * tracepoint.c (tfile_xfer_partial): Likewise.
5646 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
5647 (windows_xfer_partial): Likewise.
5649 2014-02-07 Yao Qi <yao@codesourcery.com>
5651 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
5653 (core_xfer_shared_libraries_aix): Likewise.
5654 * gdbarch.c, gdbarch.h: Regenerated.
5655 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
5656 ULONGEST. Change 'len_avail' type to ULONGEST.
5657 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
5658 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
5660 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
5662 2014-02-07 Yao Qi <yao@codesourcery.com>
5664 * corefile.c (memory_error): Get 'exception' from ERR and pass
5665 'exception' to throw_error.
5667 2014-02-06 Doug Evans <xdje42@gmail.com>
5669 * configure.ac (libpython checking): Remove all but python.o from
5670 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
5671 * configure: Regenerate.
5673 * Makefile.in (SFILES): Add extension.c.
5674 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
5675 (COMMON_OBS): Add extension.o.
5676 * extension.h: New file.
5677 * extension-priv.h: New file.
5678 * extension.c: New file.
5680 * python/python-internal.h: #include "extension.h".
5681 (gdbpy_auto_load_enabled): Declare.
5682 (gdbpy_apply_val_pretty_printer): Declare.
5683 (gdbpy_apply_frame_filter): Declare.
5684 (gdbpy_preserve_values): Declare.
5685 (gdbpy_breakpoint_cond_says_stop): Declare.
5686 (gdbpy_breakpoint_has_cond): Declare.
5687 (void source_python_script_for_objfile): Delete.
5688 * python/python.c: #include "extension-priv.h".
5689 Delete inclusion of "observer.h".
5690 (extension_language_python): Moved here and renamed from
5691 script_language_python in py-auto-load.c.
5692 Redefined to be of type extension_language_defn.
5693 (python_extension_script_ops): New global.
5694 (python_extension_ops): New global.
5695 (struct python_env): New member previous_active.
5696 (restore_python_env): Call restore_active_ext_lang.
5697 (ensure_python_env): Call set_active_ext_lang.
5698 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
5700 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
5702 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
5704 (gdbpy_eval_from_control_command): Renamed from
5705 eval_python_from_control_command, made static. New arg extlang.
5706 (gdbpy_source_script) Renamed from source_python_script, made static.
5708 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
5709 result to int. New arg extlang.
5710 (gdbpy_source_objfile_script): Renamed from
5711 source_python_script_for_objfile, made static. New arg extlang.
5712 (gdbpy_start_type_printers): Renamed from start_type_printers, made
5713 static. New args extlang, extlang_printers. Change result type to
5715 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
5716 static. New arg extlang. Rename arg printers to extlang_printers
5717 and change type to ext_lang_type_printers *.
5718 (gdbpy_free_type_printers): Renamed from free_type_printers, made
5719 static. Replace argument arg with extlang, extlang_printers.
5720 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
5721 (!HAVE_PYTHON, source_python_script): Delete.
5722 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
5723 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
5724 (!HAVE_PYTHON, start_type_printers): Delete.
5725 (!HAVE_PYTHON, apply_type_printers): Delete.
5726 (!HAVE_PYTHON, free_type_printers): Delete.
5727 (_initialize_python): Delete call to observer_attach_before_prompt.
5728 (finalize_python): Set/restore active extension language.
5729 (gdbpy_finish_initialization) Renamed from
5730 finish_python_initialization, made static. New arg extlang.
5731 (gdbpy_initialized): New function.
5732 * python/python.h: #include "extension.h". Delete #include
5733 "value.h", "mi/mi-cmds.h".
5734 (extension_language_python): Declare.
5735 (GDBPY_AUTO_FILE_NAME): Delete.
5736 (enum py_bt_status): Moved to extension.h and renamed to
5738 (enum frame_filter_flags): Moved to extension.h.
5739 (enum py_frame_args): Moved to extension.h and renamed to
5740 ext_lang_frame_args.
5741 (finish_python_initialization): Delete.
5742 (eval_python_from_control_command): Delete.
5743 (source_python_script): Delete.
5744 (apply_val_pretty_printer): Delete.
5745 (apply_frame_filter): Delete.
5746 (preserve_python_values): Delete.
5747 (gdbpy_script_language_defn): Delete.
5748 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
5749 (start_type_printers, apply_type_printers, free_type_printers): Delete.
5751 * auto-load.c: #include "extension.h".
5752 (GDB_AUTO_FILE_NAME): Delete.
5753 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
5754 (script_language_gdb): Delete, moved to extension.c and renamed to
5755 extension_language_gdb.
5756 (source_gdb_script_for_objfile): Delete.
5757 (auto_load_pspace_info): New member unsupported_script_warning_printed.
5758 (loaded_script): Change type of language member to
5759 struct extension_language_defn *.
5760 (init_loaded_scripts_info): Initialize
5761 unsupported_script_warning_printed.
5762 (maybe_add_script): Make static. Change type of language arg to
5763 struct extension_language_defn *.
5764 (clear_section_scripts): Reset unsupported_script_warning_printed.
5765 (auto_load_objfile_script_1): Rewrite to use extension language API.
5766 (auto_load_objfile_script): Make public. Remove support-compiled-in
5767 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
5768 (source_section_scripts): Rewrite to use extension language API.
5769 (load_auto_scripts_for_objfile): Rewrite to use
5770 auto_load_scripts_for_objfile.
5771 (collect_matching_scripts_data): Change type of language member to
5772 struct extension_language_defn *.
5773 (auto_load_info_scripts): Change type of language arg to
5774 struct extension_language_defn *.
5775 (unsupported_script_warning_print): New function.
5776 (script_not_found_warning_print): Make static.
5777 (_initialize_auto_load): Rewrite construction of scripts-directory
5779 * auto-load.h (struct objfile): Add forward decl.
5780 (struct script_language): Delete.
5781 (struct auto_load_pspace_info): Add forward decl.
5782 (struct extension_language_defn): Add forward decl.
5783 (maybe_add_script): Delete.
5784 (auto_load_objfile_script): Declare.
5785 (script_not_found_warning_print): Delete.
5786 (auto_load_info_scripts): Update prototype.
5787 (auto_load_gdb_scripts_enabled): Declare.
5788 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
5789 auto_load_python_scripts_enabled and made public.
5790 (script_language_python): Delete, moved to python.c.
5791 (gdbpy_script_language_defn): Delete.
5792 (info_auto_load_python_scripts): Update to use
5793 extension_language_python.
5795 * breakpoint.c (condition_command): Replace call to
5796 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
5797 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
5798 with call to breakpoint_ext_lang_cond_says_stop.
5799 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
5800 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
5801 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
5802 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
5804 (local_setattro): Print name of extension language with existing
5807 * valprint.c (val_print, value_print): Update to call
5808 apply_ext_lang_val_pretty_printer.
5809 * cp-valprint.c (cp_print_value): Update call to
5810 apply_ext_lang_val_pretty_printer.
5811 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
5812 (gdbpy_apply_val_pretty_printer): Renamed from
5813 apply_val_pretty_printer. New arg extlang.
5814 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
5816 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
5817 extension language API.
5818 * cli/cli-script.c (execute_control_command): Update to call
5819 eval_ext_lang_from_control_command.
5821 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
5822 enum ext_lang_bt_status values. Update call to
5823 apply_ext_lang_frame_filter.
5824 (mi_cmd_stack_list_locals): Ditto.
5825 (mi_cmd_stack_list_args): Ditto.
5826 (mi_cmd_stack_list_variables): Ditto.
5827 * mi/mi-main.c: Delete #include "python/python-internal.h".
5828 Add #include "extension.h".
5829 (mi_cmd_list_features): Replace reference to python internal variable
5830 gdb_python_initialized with call to ext_lang_initialized_p.
5832 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
5833 Update to use enum ext_lang_frame_args. Update to call
5834 apply_ext_lang_frame_filter.
5835 * python/py-framefilter.c (extract_sym): Update to use enum
5837 (extract_value, py_print_type, py_print_value): Ditto.
5838 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
5839 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
5840 (py_print_frame): Ditto.
5841 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
5842 New arg extlang. Update to use enum ext_lang_bt_status.
5844 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
5845 finish_python_initialization. Replace with call to
5846 finish_ext_lang_initialization.
5848 * typeprint.c (do_free_global_table): Update to call
5849 free_ext_lang_type_printers.
5850 (create_global_typedef_table): Update to call
5851 start_ext_lang_type_printers.
5852 (find_global_typedef): Update to call apply_ext_lang_type_printers.
5853 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
5854 (type_print_options): Change type of global_printers from "void *"
5855 to "struct ext_lang_type_printers *".
5857 * value.c (preserve_values): Update to call preserve_ext_lang_values.
5858 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
5859 (gdbpy_preserve_values): Renamed from preserve_python_values.
5861 (!HAVE_PYTHON, preserve_python_values): Delete.
5863 * utils.c (quit_flag): Delete, moved to extension.c.
5864 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
5867 * eval.c: Delete #include "python/python.h".
5868 * main.c: Delete #include "python/python.h".
5870 * defs.h: Update comment.
5872 2014-02-06 Joel Brobecker <brobecker@adacore.com>
5876 2014-02-05 Mark Kettenis <kettenis@gnu.org>
5878 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
5881 2014-02-05 Yao Qi <yao@codesourcery.com>
5883 * remote.c (remote_pass_signals): Remove local 'buf' and use
5885 (remote_program_signals): Likewise.
5887 2014-02-05 Yao Qi <yao@codesourcery.com>
5889 * ctf.c: Include "inferior.h" and "gdbthread.h".
5890 (CTF_PID): A new macro.
5891 (ctf_open): Call inferior_appeared and add_thread_silent.
5892 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
5893 (ctf_thread_alive): New function.
5894 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
5896 2014-02-05 Yao Qi <yao@codesourcery.com>
5900 2013-05-24 Yao Qi <yao@codesourcery.com>
5902 * tracepoint.c (TFILE_PID): Remove.
5903 (tfile_open): Don't add thread and inferior.
5904 (tfile_close): Don't set 'inferior_ptid'. Don't call
5905 exit_inferior_silent.
5906 (tfile_thread_alive): Remove.
5907 (init_tfile_ops): Don't set field 'to_thread_alive' of
5910 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
5912 * remote.c (remote_start_remote): Call remote_check_symbols even
5913 if only symbol-file (not file) has been given.
5915 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5917 * gdbarch.sh (skip_entrypoint): New callback.
5918 * gdbarch.c, gdbarch.h: Regenerate.
5919 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
5920 * infrun.c (fill_in_stop_func): Likewise.
5921 * ppc-linux-tdep.c: Include "elf/ppc64.h".
5922 (ppc_elfv2_elf_make_msymbol_special): New function.
5923 (ppc_elfv2_skip_entrypoint): Likewise.
5924 (ppc_linux_init_abi): Install them for ELFv2.
5926 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5928 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
5929 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
5930 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
5931 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
5932 structures returned in GPRs.
5934 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5936 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
5937 offset to the stack parameter list for the ELFv2 ABI.
5939 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5941 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
5942 set_gdbarch_convert_from_func_ptr_addr and
5943 set_gdbarch_elf_make_msymbol_special for ELFv1.
5944 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
5945 function descriptors on ELFv1.
5946 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
5947 set up r12 at function entry.
5949 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5951 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
5952 (struct gdbarch_tdep): New member elf_abi.
5954 * rs6000-tdep.c: Include "elf/ppc64.h".
5955 (rs6000_gdbarch_init): Detect ELF ABI version.
5957 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5959 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
5960 within a register pair holding a DFP 128-bit value on little-endian.
5961 (ppc64_sysv_abi_return_value_base): Likewise.
5962 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
5963 (dfp_pseudo_register_write): Likewise.
5965 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5967 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
5968 offset on little-endian when passing _Decimal32.
5969 (ppc64_sysv_abi_return_value_base): Likewise for return values.
5971 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5973 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
5974 of the overlapped FP register within the VSX register on little-
5976 (efpr_pseudo_register_write): Likewise.
5978 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5980 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
5981 offset on little-endian when passing small structures.
5983 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5985 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
5986 (struct ppc64_sysv_argpos): New data structure.
5987 (ppc64_sysv_abi_push_float): Remove.
5988 (ppc64_sysv_abi_push_val): New function.
5989 (ppc64_sysv_abi_push_integer): Likewise.
5990 (ppc64_sysv_abi_push_freg): Likewise.
5991 (ppc64_sysv_abi_push_vreg): Likewise.
5992 (ppc64_sysv_abi_push_param): Likewise.
5993 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
5994 (ppc64_sysv_abi_return_value_base): New function.
5995 (ppc64_sysv_abi_return_value): Refactor to use it.
5997 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5999 * NEWS: Document new target powerpc64le-*-linux*.
6001 2014-02-04 Mark Kettenis <kettenis@gnu.org>
6003 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
6004 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
6006 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
6007 register set used in ELF core dumps. Add floating-point register set.
6009 2014-02-03 Kevin Buettner <kevinb@redhat.com>
6011 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
6012 dwarf2_to_gdb[] table using symbolic constants. Adjust
6013 penultimate entry from number representing the PC register
6014 to symbolic constant representing the MDR register. Add
6015 constant for the PC register to the end of the table.
6017 2014-02-03 Mark Kettenis <kettenis@gnu.org>
6019 * bsd-kvm.c: Include <sys/param.h>
6021 2014-02-03 Mark Kettenis <kettenis@gnu.org>
6023 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
6025 2014-01-31 Joel Brobecker <brobecker@adacore.com>
6027 * ada-lang.h (clear_ada_sym_cache): Delete.
6029 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
6031 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
6033 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
6035 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
6036 the sigreturn register save area only if the syscall is
6039 2014-01-29 Joel Brobecker <brobecker@adacore.com>
6041 * valops.c (value_slice): Minor reformatting.
6043 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
6045 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
6047 2014-01-28 Joel Brobecker <brobecker@adacore.com>
6049 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
6051 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
6052 (ada_ignore_descriptive_types_p): New static global.
6053 (find_parallel_type_by_descriptive_type): Return immediately
6054 if ada_ignore_descriptive_types_p is set.
6055 (_initialize_ada_language): Register new commands "maintenance
6056 set ada", "maintenance show ada", "maintenance set ada
6057 ignore-descriptive-types" and "maintenance show ada
6058 ignore-descriptive-types".
6059 * NEWS: Add entry for new "maint ada set/show
6060 ignore-descriptive-types" commands.
6062 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
6064 * record-btrace.c (record_btrace_close): Call btrace_teardown
6067 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6069 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
6072 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6074 * ada-typeprint (type_is_full_subrange_of_target_type):
6076 (print_range): Add parameter bounds_prefered_p. If not set,
6077 try printing range types using the name of their base type.
6078 (print_range_type): Add parameter bounds_prefered_p.
6079 Use it in call to print_range.
6080 (print_array_type, ada_print_type): Update calls to print_range
6081 and print_range_type.
6083 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6085 * ada-typeprint.c (print_array_type, print_choices, print_range)
6086 (print_range_bound, print_dynamic_range_bound, print_range_type):
6089 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6091 * ada-typeprint.c (print_range): Add missing empty line
6092 after local declaration.
6094 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6096 * ada-valprint.c (print_optional_low_bound): Get index_type's
6097 target type for as long as it is a TYPE_CODE_RANGE.
6099 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6101 * procfs.c (procfs_make_note_section): Remove assertion and
6104 2014-01-24 Yao Qi <yao@codesourcery.com>
6106 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
6107 * corelow.c (get_core_siginfo): Likewise.
6109 2014-01-24 Yao Qi <yao@codesourcery.com>
6111 * remote.c (remote_write_bytes_aux): Change type of 'len' to
6112 ULONGEST. Don't check 'len' is negative.
6113 (remote_write_bytes): Change type of 'len' to ULONGEST.
6115 2014-01-23 Tom Tromey <tromey@redhat.com>
6118 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
6119 Handle exception from frame.block.
6120 (FrameVars.fetch_frame_locals): Likewise.
6122 2014-01-23 Tom Tromey <tromey@redhat.com>
6125 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
6126 on a NULL pointer. Move "goto error" to correct place.
6128 2014-01-23 Tom Tromey <tromey@redhat.com>
6131 * python/py-framefilter.c (apply_frame_filter): Call
6132 ensure_python_env after computing gdbarch.
6134 2014-01-23 Yao Qi <yao@codesourcery.com>
6136 * target.c (raw_memory_xfer_partial): Change argument type
6137 from void * to gdb_byte *.
6138 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
6140 2014-01-22 Doug Evans <dje@google.com>
6142 New gdbserver option --debug-format=timestamp.
6145 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
6147 * syscalls/s390x-linux.xml: New file.
6148 * syscalls/s390-linux.xml: New file.
6149 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
6150 (XML_SYSCALL_FILENAME_S390X): Likewise.
6151 (op_svc): New enum value for SVC opcode.
6152 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
6153 (s390_linux_get_syscall_number): New function.
6154 (s390_gdbarch_init): Register '*get_syscall_number' and the
6155 syscall xml file name.
6156 * data-directory/Makefile.in (SYSCALLS_FILES): Add
6157 "s390-linux.xml" and "s390x-linux.xml".
6158 * NEWS: Announce new feature.
6160 2014-01-22 Baruch Siach <baruch@tkos.co.il>
6162 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
6164 2014-01-22 Pedro Alves <palves@redhat.com>
6166 * xtensa-config.c: Include defs.h.
6168 2014-01-22 Joel Brobecker <brobecker@adacore.com>
6170 * common/common-utils.h: Add "ARI:" comment beside __func__
6173 2014-01-22 Joel Brobecker <brobecker@adacore.com>
6175 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
6176 documentation a bit.
6178 2014-01-21 Roland McGrath <mcgrathr@google.com>
6180 * configure.ac: Call AM_PROG_INSTALL_STRIP.
6181 * configure: Regenerate.
6182 * aclocal.m4: Regenerate.
6183 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
6184 New substituted variables.
6185 (install-strip): New target.
6186 (INSTALL_SCRIPT): New substituted variable.
6187 (FLAGS_TO_PASS): Add it.
6188 (install-only): Use $(INSTALL_SCRIPT) rather than
6189 $(INSTALL_PROGRAM) for gcore.
6191 2014-01-20 Tom Tromey <tromey@redhat.com>
6193 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
6196 2014-01-20 Tom Tromey <tromey@redhat.com>
6198 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
6199 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
6200 (deprecated_cmd_warning, complete_on_cmdlist): Update.
6201 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
6202 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
6203 (struct cmd_list_element) <flags>: Remove.
6204 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
6205 doc_allocated>: New fields.
6206 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
6208 * maint.c (maintenance_do_deprecate): Update.
6209 * top.c (execute_command): Update.
6211 2014-01-20 Baruch Siach <baruch@tkos.co.il>
6213 * xtensa-linux-nat.c: Include asm/ptrace.h.
6215 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6217 * Makefile.in (SFILES): Add d-support.c.
6218 (COMMON_OBS): Add d-support.o.
6219 * d-lang.h (d_parse_symbol): Add comment, now defined in
6221 * d-lang.c (parse_call_convention)
6222 (parse_attributes, parse_function_types)
6223 (parse_function_args, parse_type, parse_identifier)
6224 (call_convention_p, d_parse_symbol): Move functions to ...
6225 * d-support.c: ... New file.
6227 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6229 * d-lang.h (d_parse_symbol): Add declaration.
6230 * d-lang.c (extract_identifiers)
6231 (extract_type_info): Remove functions.
6232 (parse_call_convention, parse_attributes)
6233 (parse_function_types, parse_function_args)
6234 (parse_type, parse_identifier, call_convention_p)
6235 (d_parse_symbol): New functions.
6236 (d_demangle): Use d_parse_symbol to demangle D symbols.
6238 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6240 * d-lang.h (struct builtin_d_type): New data type.
6241 (builtin_d_type): Add declaration.
6242 * d-lang.c (d_language_arch_info, build_d_types)
6243 (builtin_d_type): New functions.
6244 (enum d_primitive_types): New data type.
6245 (d_language_defn): Change c_language_arch_info to
6246 d_language_arch_info.
6247 (d_type_data): New static variable.
6248 (_initialize_d_language): Initialize d_type_data.
6250 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6252 * d-lang.h (d_main_name): Add declaration.
6253 * d-lang.c (d_main_name): New function.
6254 * symtab.c (find_main_name): Add call to d_main_name.
6256 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6258 * d-lang.c (d_language_defn): Change macro_expansion_c to
6261 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6263 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6265 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
6267 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
6268 gdb_exception" declaration.
6269 * remote.c (getpkt_or_notif_sane): Likewise.
6271 2014-01-17 Doug Evans <dje@google.com>
6273 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
6274 function, contents of dirnames_to_char_ptr_vec_append moved here.
6275 (delim_string_to_char_ptr_vec): New function.
6276 (dirnames_to_char_ptr_vec_append): Rewrite.
6277 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
6279 2014-01-17 Doug Evans <dje@google.com>
6281 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
6283 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
6284 #include "common-utils.h".
6285 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
6286 * common/vec.h (VEC_ASSERT_PASS): Update.
6287 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
6288 (MACH_CHECK_ERROR): Update.
6290 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
6292 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
6294 * gdbarch.h: Regenerate.
6296 2014-01-16 Tom Tromey <tromey@redhat.com>
6298 * value.c (struct value) <regnum>: Move earlier.
6300 2014-01-16 Tom Tromey <tromey@redhat.com>
6302 * remote.c (extended_remote_create_inferior): Rename from
6303 extended_remote_create_inferior_1. Add "ops" argument. Remove
6306 2014-01-16 Pedro Alves <palves@redhat.com>
6308 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
6309 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
6312 2014-01-16 Doug Evans <dje@google.com>
6314 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
6316 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6318 * btrace.h (btrace_thread_flag): New.
6319 (struct btrace_thread_info) <flags>: New.
6320 * record-btrace.c (record_btrace_resume_thread)
6321 (record_btrace_find_thread_to_move, btrace_step_no_history)
6322 (btrace_step_stopped, record_btrace_start_replaying)
6323 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
6324 (record_btrace_find_resume_thread): New.
6325 (record_btrace_resume, record_btrace_wait): Extend.
6326 (record_btrace_can_execute_reverse): New.
6327 (record_btrace_open): Fail in non-stop mode.
6328 (record_btrace_set_replay): Split into this, ...
6329 (record_btrace_stop_replaying): ... this, ...
6330 (record_btrace_clear_histories): ... and this.
6331 (init_record_btrace_ops): Init to_can_execute_reverse.
6332 * NEWS: Announce it.
6334 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6336 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
6337 (forward_target_decr_pc_after_break)
6338 (target_decr_pc_after_break): New.
6339 * target.c (forward_target_decr_pc_after_break)
6340 (target_decr_pc_after_break): New.
6341 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
6342 instead of gdbarch_decr_pc_after_break.
6343 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
6344 instead of gdbarch_decr_pc_after_break.
6345 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
6346 instead of gdbarch_decr_pc_after_break.
6347 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
6348 instead of gdbarch_decr_pc_after_break.
6349 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
6350 instead of gdbarch_decr_pc_after_break.
6351 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
6352 instead of gdbarch_decr_pc_after_break.
6354 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6356 * btrace.c: Include regcache.h.
6357 (btrace_add_pc): New.
6358 (btrace_enable): Call btrace_add_pc.
6359 (btrace_is_empty): New.
6360 * btrace.h (btrace_is_empty): New.
6361 * record-btrace.c (require_btrace, record_btrace_info): Call
6364 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6366 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
6367 Support delta reads.
6368 (linux_disable_btrace): Change return type.
6369 * common/linux-btrace.h (linux_read_btrace): Change parameters
6370 and return type to allow error reporting. Update users.
6371 (linux_disable_btrace): Change return type. Update users.
6372 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
6374 (btrace_error): New.
6375 (btrace_block) <begin>: Comment on BEGIN == 0.
6376 * btrace.c (btrace_compute_ftrace): Start from the end of
6378 (btrace_stitch_trace, btrace_clear_history): New.
6379 (btrace_fetch): Read delta trace, return if replaying.
6380 (btrace_clear): Move clear history code to btrace_clear_history.
6381 (parse_xml_btrace): Throw an error if parsing failed.
6382 * target.h (struct target_ops) <to_read_btrace>: Change parameters
6383 and return type to allow error reporting.
6384 (target_read_btrace): Change parameters and return type to allow
6386 * target.c (target_read_btrace): Update.
6387 * remote.c (remote_read_btrace): Support delta reads. Pass
6389 * NEWS: Announce it.
6391 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6393 * record.h (record_btrace_frame_unwind)
6394 (record_btrace_tailcall_frame_unwind): New declarations.
6395 * dwarf2-frame: Include record.h
6396 (dwarf2_frame_cfa): Throw an error for btrace frames.
6397 * record-btrace.c: Include hashtab.h.
6398 (btrace_get_bfun_name): New.
6399 (btrace_call_history): Call btrace_get_bfun_name.
6400 (struct btrace_frame_cache): New.
6402 (bfcache_hash, bfcache_eq, bfcache_new): New.
6403 (btrace_get_frame_function): New.
6404 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
6405 (record_btrace_frame_this_id): Compute own id.
6406 (record_btrace_frame_prev_register): Provide PC, throw_error
6407 for all other registers.
6408 (record_btrace_frame_sniffer): Detect btrace frames.
6409 (record_btrace_tailcall_frame_sniffer): New.
6410 (record_btrace_frame_dealloc_cache): New.
6411 (record_btrace_frame_unwind): Add new functions.
6412 (record_btrace_tailcall_frame_unwind): New.
6413 (_initialize_record_btrace): Allocate cache.
6414 * btrace.c (btrace_clear): Call reinit_frame_cache.
6415 * NEWS: Announce it.
6417 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6419 * record-btrace.c (record_btrace_set_replay)
6420 (record_btrace_goto_begin, record_btrace_goto_end)
6421 (record_btrace_goto): New.
6422 (init_record_btrace_ops): Initialize them.
6423 * NEWS: Announce it.
6425 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6427 * record-btrace.c (record_btrace_find_new_threads)
6428 (record_btrace_thread_alive): New.
6429 (init_record_btrace_ops): Initialize to_find_new_threads and
6432 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6434 * record-btrace.c (record_btrace_resume): New.
6435 (record_btrace_wait): New.
6436 (init_record_btrace_ops): Initialize to_wait and to_resume.
6438 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6440 * record-btrace.c (record_btrace_xfer_partial)
6441 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
6442 (record_btrace_allow_memory_access): New.
6443 (init_record_btrace_ops): Initialize new methods.
6444 * target.c (raw_memory_xfer_partial): Bail out if target reports
6445 that this memory is not available.
6447 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6449 * target.h (target_ops) <to_insert_breakpoint>
6450 <to_remove_breakpoint>: Add target_ops parameter.
6451 (forward_target_insert_breakpoint): New.
6452 (forward_target_remove_breakpoint): New.
6453 (memory_remove_breakpoint, memory_insert_breakpoint):
6454 Add target_ops parameter.
6455 * target.c (target_insert_breakpoint): Split into this and ...
6456 (forward_target_insert_breakpoint): ... this.
6457 (target_remove_breakpoint): Split into this and ...
6458 (forward_target_remove_breakpoint): ... this.
6459 (debug_to_insert_breakpoint): Add target_ops parameter.
6460 Call forward_target_insert_breakpoint.
6461 (debug_to_remove_breakpoint): Add target_ops parameter.
6462 Call forward_target_remove_breakpoint.
6463 (update_current_target): Do not inherit or default to_insert_breakpoint
6464 and to_remove_breakpoint.
6465 * corelow.c (ignore): Add target_ops parameter.
6466 * exec.c (ignore): Add target_ops parameter.
6467 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
6468 Add target_ops parameter.
6469 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
6470 Add target_ops parameter.
6471 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
6472 Add target_ops parameter.
6473 * record-full.c (record_full_beneath_to_insert_breakpoint)
6474 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
6475 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
6476 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
6477 (record_full_core_remove_breakpoint): Add target_ops parameter.
6479 (record_full_beneath_to_insert_breakpoint_ops)
6480 (record_full_beneath_to_remove_breakpoint_ops)
6481 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
6482 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
6483 tmp_to_remove_breakpoint_ops,
6484 record_full_beneath_to_insert_breakpoint_ops, and
6485 record_full_beneath_to_remove_breakpoint_ops.
6486 * remote-m32r-sdi.c (m32r_insert_breakpoint)
6487 (m32r_remove_breakpoint): Add target_ops parameter.
6488 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
6489 Add target_ops parameter.
6490 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
6491 Add target_ops parameter.
6493 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6494 Markus Metzger <markus.t.metzger@intel.com>
6496 * record-btrace.c: Include frame-unwind.h.
6497 (record_btrace_frame_unwind_stop_reason)
6498 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
6499 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
6501 (init_record_btrace_ops): Install it.
6503 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6505 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
6508 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6510 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
6513 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6515 * frame-unwind.c: Include target.h.
6516 (frame_unwind_try_unwinder): New function with code from ...
6517 (frame_unwind_find_by_frame): ... here. New variable
6518 unwinder_from_target, call also target_get_unwinder)
6519 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
6520 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
6521 * target.h (struct target_ops): New fields to_get_unwinder and
6522 to_get_tailcall_unwinder.
6523 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
6525 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6527 * record-btrace.c (record_btrace_fetch_registers)
6528 (record_btrace_store_registers)
6529 (record_btrace_to_prepare_to_store): New.
6530 (init_record_btrace_ops): Add the above.
6532 2014-01-16 Tom Tromey <tromey@redhat.com>
6534 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
6535 * target.h (struct target_ops) <to_prepare_to_store>: Add
6537 (target_prepare_to_store): Add argument.
6538 * target.c (debug_to_prepare_to_store): Add argument.
6539 (update_current_target): Update.
6540 * remote.c (remote_prepare_to_store): Add 'self' argument.
6541 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
6542 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
6543 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
6544 * record-full.c (record_full_core_prepare_to_store): Add 'self'
6546 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
6547 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
6548 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
6549 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
6550 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
6552 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6554 * btrace.h (replay) <replay>: New.
6555 (btrace_is_replaying): New.
6556 * btrace.c (btrace_clear): Free replay iterator.
6557 (btrace_is_replaying): New.
6558 * record-btrace.c (record_btrace_is_replaying): New.
6559 (record_btrace_info): Print insn number if replaying.
6560 (record_btrace_insn_history): Start at replay position.
6561 (record_btrace_call_history): Start at replay position.
6562 (init_record_btrace_ops): Init to_record_is_replaying.
6564 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6566 * record-btrace.c (record_btrace_insn_history_range): Include
6568 (record_btrace_insn_history_from): Adjust range.
6569 (record_btrace_call_history_range): Include
6571 (record_btrace_call_history_from): Adjust range.
6572 * NEWS: Announce changes.
6574 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6576 * record.h (enum record_print_flag)
6577 <record_print_indent_calls>: New.
6578 * record.c (get_call_history_modifiers): Recognize /c modifier.
6579 (_initialize_record): Document /c modifier.
6580 * record-btrace.c (btrace_call_history): Add btinfo parameter.
6581 Reorder fields. Optionally indent the function name. Update
6583 * NEWS: Announce changes.
6585 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6587 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
6589 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6591 * btrace.c (ftrace_new_function): Start counting at one.
6592 * record-btrace.c (record_btrace_info): Adjust number of calls
6594 * NEWS: Announce it.
6596 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6598 * record-btrace.c (btrace_call_history_insn_range): Print
6599 insn range as [begin, end].
6601 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6603 * btrace.h (struct btrace_func_link): New.
6604 (enum btrace_function_flag): New.
6605 (struct btrace_inst): Rename to ...
6606 (struct btrace_insn): ...this. Update all users.
6607 (struct btrace_func) <ibegin, iend>: Remove.
6608 (struct btrace_func_link): New.
6609 (struct btrace_func): Rename to ...
6610 (struct btrace_function): ...this. Update all users.
6611 (struct btrace_function) <segment, flow, up, insn, insn_offset)
6612 (number, level, flags>: New.
6613 (struct btrace_insn_iterator): Rename to ...
6614 (struct btrace_insn_history): ...this.
6616 (struct btrace_insn_iterator, btrace_call_iterator): New.
6617 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
6618 (struct btrace_target_info) <begin, end, level>
6619 <insn_history, call_history>: New.
6620 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
6621 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
6622 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
6623 (btrace_call_number, btrace_call_begin, btrace_call_end)
6624 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
6625 (btrace_find_function_by_number, btrace_set_insn_history)
6626 (btrace_set_call_history): New.
6627 * btrace.c (btrace_init_insn_iterator)
6628 (btrace_init_func_iterator, compute_itrace): Remove.
6629 (ftrace_print_function_name, ftrace_print_filename)
6630 (ftrace_skip_file): Change
6632 (ftrace_init_func): Remove.
6633 (ftrace_debug): Use new btrace_function fields.
6634 (ftrace_function_switched): Also consider gaining and
6635 losing symbol information).
6636 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
6637 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
6638 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
6640 (ftrace_new_function): Move. Remove debug print.
6641 (ftrace_update_lines, ftrace_update_insns): New.
6642 (ftrace_update_function): Check for call, ret, and jump.
6643 (compute_ftrace): Renamed to ...
6644 (btrace_compute_ftrace): ...this. Rewritten to compute call
6646 (btrace_fetch, btrace_clear): Updated.
6647 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
6648 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
6649 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
6650 (btrace_call_number, btrace_call_begin, btrace_call_end)
6651 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
6652 (btrace_find_function_by_number, btrace_set_insn_history)
6653 (btrace_set_call_history): New.
6654 * record-btrace.c (require_btrace): Use new btrace thread
6656 (record_btrace_info, btrace_insn_history)
6657 (record_btrace_insn_history, record_btrace_insn_history_range):
6658 Use new btrace thread info fields and new iterator.
6659 (btrace_func_history_src_line): Rename to ...
6660 (btrace_call_history_src_line): ...this. Use new btrace
6662 (btrace_func_history): Rename to ...
6663 (btrace_call_history): ...this. Use new btrace thread info
6664 fields and new iterator.
6665 (record_btrace_call_history, record_btrace_call_history_range):
6666 Use new btrace thread info fields and new iterator.
6668 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6670 * frame.h (frame_id_build_unavailable_stack_special): New.
6671 * frame.c (frame_id_build_unavailable_stack_special): New.
6673 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6675 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
6676 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
6677 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
6679 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
6680 (i386_insn_is_jump, i386_jmp_p): New.
6681 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
6682 insn_is_jump to gdbarch.
6683 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
6684 * gdbarch.h: Regenerated.
6685 * gdbarch.c: Regenerated.
6686 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
6687 (default_insn_is_jump): New.
6688 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
6689 (default_insn_is_jump): New.
6691 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6693 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
6695 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
6696 (btrace_read_type) <btrace_read_new>: Change to ...
6697 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
6699 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6701 * common/linux-btrace.c (linux_read_btrace): Free trace from
6704 2014-01-15 Doug Evans <dje@google.com>
6706 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
6709 2014-01-15 Tom Tromey <tromey@redhat.com>
6711 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
6712 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
6713 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
6714 (set_objfile_main_name): New function.
6715 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
6716 language_of_main>: New fields.
6717 (set_objfile_main_name): Declare.
6718 * symtab.c (find_main_name): Loop over objfiles to find the main
6720 (set_main_name): Now static.
6721 (get_main_info): Add comment.
6722 * symtab.h (set_main_name): Don't declare.
6724 2014-01-15 Tom Tromey <tromey@redhat.com>
6726 * symtab.c (main_progspace_key): New global.
6727 (struct main_info): New.
6728 (name_of_main, language_of_main): Remove.
6729 (get_main_info, main_info_cleanup): New function.
6730 (set_main_name, main_name, main_language): Use get_main_info.
6731 (_initialize_symtab): Initialize main_progspace_key.
6733 2014-01-15 Tom Tromey <tromey@redhat.com>
6735 * dbxread.c (process_one_symbol): Update.
6736 * dwarf2read.c (read_partial_die): Update.
6737 * symfile.c (set_initial_language): Call main_language.
6738 * symtab.c (language_of_main): Now static.
6739 (set_main_name): Add 'lang' parameter.
6740 (find_main_name): Update.
6741 (main_language): New function.
6742 (symtab_observer_executable_changed): Update.
6743 * symtab.h (set_main_name): Update.
6744 (language_of_main): Remove.
6745 (main_language): Declare.
6747 2014-01-15 Tom Tromey <tromey@redhat.com>
6749 * symfile.c (init_entry_point_info): Use new "initialized" field.
6751 * objfiles.h (struct entry_point) <initialized>: New field.
6752 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
6753 (struct objfile) <ei>: ...here. Remove.
6754 * objfiles.c (entry_point_address_query): Update.
6756 2014-01-15 Tom Tromey <tromey@redhat.com>
6758 * objfiles.c (entry_point_address_query): Relocate entry point
6760 (objfile_relocate1): Do not relocate entry point address.
6761 * objfiles.h (struct entry_info) <entry_point>: Update comment.
6762 <the_bfd_section_index>: New field.
6763 * symfile.c (init_entry_point_info): Find the entry point's
6766 2014-01-15 Tom Tromey <tromey@redhat.com>
6768 * solib-frv.c (enable_break): Use entry_point_address_query.
6770 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6772 * NEWS: Add note on improved process record-replay on
6773 arm*-linux* targets.
6775 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6777 * arm-tdep.c (enum arm_record_result): New enum.
6778 (arm_record_unsupported_insn): New function.
6779 (arm_record_coproc_data_proc): Removed.
6780 (thumb2_record_ld_st_multiple): New function.
6781 (thumb2_record_ld_st_dual_ex_tbb): New function.
6782 (thumb2_record_data_proc_sreg_mimm): New function.
6783 (thumb2_record_ps_dest_generic): New function.
6784 (thumb2_record_branch_misc_cntrl): New function.
6785 (thumb2_record_str_single_data): New function.
6786 (thumb2_record_ld_mem_hints): New function.
6787 (thumb2_record_ld_word): New function.
6788 (thumb2_record_lmul_lmla_div): New function.
6789 (thumb2_record_decode_insn_handler): New function.
6790 (decode_insn): Add thumb32 instruction handlers.
6792 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6794 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
6795 (struct arm_linux_record_tdep): Declare.
6796 (arm_canonicalize_syscall): New function.
6797 (arm_all_but_pc_registers_record): New function.
6798 (arm_linux_syscall_record): New function.
6799 (arm_linux_init_abi): Add syscall recording constructs.
6800 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
6801 decoding. (arm_record_coproc_data_proc): Update arm syscall
6803 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
6804 <arm_syscall_record>: New field.
6805 * configure.tgt (arm*-*-linux*): Add linux-record.o to
6808 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6810 * arm-tdep.c (thumb_record_misc): Update to use sp as base
6811 register for push instruction recording.
6813 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6815 * arm-tdep.c (thumb_record_misc): Update to correct logical
6816 error while recording ldm, ldmia and pop instructions.
6818 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6820 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
6822 2014-01-15 Pedro Alves <palves@redhat.com>
6824 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
6825 (go32_resume, go32_fetch_registers, store_register)
6826 (go32_store_registers, go32_prepare_to_store)
6827 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
6828 (go32_create_inferior, go32_can_run, go32_terminal_init)
6829 (go32_terminal_inferior, go32_terminal_ours): Delete forward
6832 2014-01-15 Tom Tromey <tromey@redhat.com>
6834 * target.h (async_callback_ftype): New typedef.
6835 (struct target_ops) <to_async>: Use it.
6837 2014-01-15 Joel Brobecker <brobecker@adacore.com>
6839 * python/py-value.c (get_field_type): Remove unnecessary curly
6840 braces for single-statement if block.
6842 2014-01-15 Joel Brobecker <brobecker@adacore.com>
6844 * python/py-type.c (convert_field): Add missing empty line
6847 2014-01-14 Doug Evans <dje@google.com>
6849 * symfile.h (expand_symtabs_matching): Renamed from
6850 expand_partial_symbol_names. Update prototype.
6851 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
6852 * symfile.c (expand_symtabs_matching): Renamed from
6853 expand_partial_symbol_names. New args file_matcher, kind.
6854 Rename arg fun to symbol_matcher.
6855 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
6856 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
6857 ada_expand_partial_symbol_name.
6858 (ada_make_symbol_completion_list): Update to call
6859 expand_symtabs_matching.
6860 (ada_add_global_exceptions): Call expand_symtabs_matching.
6861 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
6862 call map_symbol_filenames.
6863 * symtab.c (sources_info): Update to call map_symbol_filenames.
6864 (search_symbols): Call expand_symtabs_matching.
6865 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
6866 (default_make_symbol_completion_list_break_on): Update to call
6867 expand_symtabs_matching.
6868 (make_source_files_completion_list): Update to call
6869 map_symbol_filenames.
6871 2014-01-14 Doug Evans <dje@google.com>
6873 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
6874 (expand_symtabs_symbol_matcher_ftype): New typedef.
6875 (quick_symbol_functions.expand_symtabs_matching): Update to use.
6876 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
6877 * symfile.c (expand_partial_symbol_names): Update to use
6878 expand_symtabs_symbol_matcher_ftype.
6879 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
6880 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
6881 Arg name_matcher renamed to symbol_matcher.
6882 * psymtab.c (recursively_search_psymtabs): Update to use
6883 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
6885 (expand_symtabs_matching_via_partial): Update to use
6886 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
6887 Arg name_matcher renamed to symbol_matcher.
6889 2014-01-14 Doug Evans <dje@google.com>
6891 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
6892 (map_partial_symbol_filenames): Ditto.
6893 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
6894 (map_partial_symbol_filenames): Ditto.
6895 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
6896 (map_partial_symbol_filenames): Ditto.
6897 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
6898 (map_partial_symbol_filenames): Ditto.
6899 * symtab.c: Delete #include "psymtab.h".
6901 2014-01-14 Pedro Alves <palves@redhat.com>
6902 Tom Tromey <tromey@redhat.com>
6904 * infrun.c (use_displaced_stepping): Use find_record_target
6905 instead of RECORD_IS_USED.
6906 (adjust_pc_after_break): Use record_full_is_used instead of
6908 * record-btrace.c (record_btrace_open): Call record_preopen
6909 instead of checking RECORD_IS_USED.
6910 * record-full.c (record_full_shortname)
6911 (record_full_core_shortname): New globals.
6912 (record_full_is_used): New function.
6913 (find_full_open): Call record_preopen instead of checking
6915 (init_record_full_ops): Set the target's shortname to
6916 record_full_shortname.
6917 (init_record_full_core_ops): Set the target's shortname to
6918 record_full_core_shortname.
6919 * record-full.h (record_full_is_used): Declare.
6920 * record.c (find_record_target): Make extern.
6921 (record_preopen): New function.
6922 * record.h (RECORD_IS_USED): Delete macro.
6923 (find_record_target, record_preopen): Declare functions.
6925 2014-01-14 Yao Qi <yao@codesourcery.com>
6927 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
6928 'len''s type to ULONGEST.
6929 (core_xfer_shared_libraries_aix): Likewise.
6930 * gdbarch.c, gdbarch.h: Regenerated.
6931 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
6932 Change type of 'len' to ULONGEST.
6933 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
6934 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
6936 2014-01-14 Yao Qi <yao@codesourcery.com>
6938 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
6939 type of 'len' to ULONGEST.
6940 (linux_xfer_osdata_processgroups): Likewise.
6941 (linux_xfer_osdata_threads): Likewise.
6942 (linux_xfer_osdata_fds): Likewise.
6943 (linux_xfer_osdata_isockets): Likewise.
6944 (linux_xfer_osdata_shm): Likewise.
6945 (linux_xfer_osdata_sem): Likewise.
6946 (linux_xfer_osdata_msg): Likewise.
6947 (linux_common_xfer_osdata): Likewise.
6948 (struct osdata_type) <getter>: Likewise.
6949 * common/linux-osdata.h (linux_common_xfer_osdata): Update
6952 2014-01-14 Yao Qi <yao@codesourcery.com>
6954 * target.h (target_xfer_partial_ftype): Update.
6955 (struct target_ops) <to_xfer_partial>: Change 'len' type to
6957 * aix-thread.c (aix_thread_xfer_partial): Change type of
6958 argument 'len' to ULONGEST.
6959 * auxv.c (procfs_xfer_auxv): Likewise.
6960 (ld_so_xfer_auxv): Likewise.
6961 (memory_xfer_auxv): Likewise.
6962 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6963 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6964 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
6965 * corelow.c (core_xfer_partial): Likewise.
6966 * ctf.c (ctf_xfer_partial): Likewise.
6967 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
6969 (darwin_read_dyld_info): Likewise.
6970 (darwin_xfer_partial): Likewise.
6971 * exec.c (section_table_xfer_memory_partial): Likewise.
6972 (exec_xfer_partial): Likewise.
6973 * exec.h (section_table_xfer_memory_partial): Update
6975 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
6976 instead of plongest.
6977 (gnu_xfer_partial): Likewise.
6978 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
6979 (ia64_hpux_xfer_solib_got): Likewise.
6980 (ia64_hpux_xfer_partial): Likewise.
6981 * ia64-linux-nat.c (ia64_linux_xfer_partial):
6982 * inf-ptrace.c (inf_ptrace_xfer_partial):
6983 * inf-ttrace.c (inf_ttrace_xfer_partial):
6984 * linux-nat.c (linux_xfer_siginfo): Likewise.
6985 (linux_nat_xfer_partial): Likewise.
6986 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
6987 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
6988 * monitor.c (monitor_xfer_memory): Likewise.
6989 (monitor_xfer_partial): Likewise.
6990 * procfs.c (procfs_xfer_partial): Likewise.
6991 * record-full.c (record_full_xfer_partial): Likewise.
6992 (record_full_core_xfer_partial): Likewise.
6993 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
6994 instead of plongest.
6995 (gdbsim_xfer_partial): Likewise.
6996 * remote.c (remote_xfer_partial): Likewise.
6997 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
6998 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7000 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7001 (rs6000_xfer_shared_libraries): Likewise.
7002 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7003 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7004 (sparc_xfer_partial): Likewise.
7005 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7006 (spu_xfer_partial): Likewise.
7007 * spu-multiarch.c (spu_xfer_partial): Likewise.
7008 * target.c (target_read_live_memory): Likewise.
7009 (memory_xfer_live_readonly_partial): Likewise.
7010 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
7011 (target_xfer_partial, default_xfer_partial): Likewise.
7012 (current_xfer_partial): Likewise.
7013 * tracepoint.c (tfile_xfer_partial): Likewise.
7014 * windows-nat.c (windows_xfer_memory): Likewise. Call
7015 pulongest instead of plongest.
7016 (windows_xfer_partial): Likewise.
7017 (windows_xfer_shared_libraries): Likewise.
7019 2014-01-14 Yao Qi <yao@codesourcery.com>
7021 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
7022 target_xfer_partial_ftype.
7024 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
7028 * valops.c (value_struct_elt_bitpos): New function
7029 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
7030 object to 'None' if the field name is an empty string ("").
7031 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
7032 attribute to look for a field when 'name' is 'None'.
7033 (get_field_type): New function
7035 2014-01-13 Doug Evans <dje@google.com>
7038 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
7039 (try_open_dwop_file): Ditto.
7040 * gdb_bfd.c: #include "vec.h".
7041 (bfdp): New typedef.
7042 (struct gdb_bfd_data): New member included_bfds.
7043 (gdb_bfd_unref): Unref all included bfds.
7044 (gdb_bfd_record_inclusion): New function.
7045 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
7047 2014-01-13 Tom Tromey <tromey@redhat.com>
7049 * gdbcore.h (deprecated_core_resize_section_table): Remove.
7051 2014-01-13 Tom Tromey <tromey@redhat.com>
7053 * defs.h (use_windows): Remove.
7054 * gdb.c (main): Update.
7055 * main.c (captured_main, gdb_main): Update.
7056 * main.h (struct captured_main_args) <use_windows>: Remove.
7057 * top.c (use_windows): Remove.
7059 2014-01-13 Tom Tromey <tromey@redhat.com>
7061 * defs.h (deprecated_flush_hook): Remove.
7063 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7066 * linux-thread-db.c (try_thread_db_load): Add parameter
7067 check_auto_load_safe. Move here the file_is_auto_load_safe call.
7068 (try_thread_db_load_from_pdir_1): Move it there from here.
7069 (try_thread_db_load_from_sdir): Update caller.
7070 (try_thread_db_load_from_dir): Move it there from here.
7072 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
7074 * regformats/regdat.sh: Always rewrite the register file.
7076 2014-01-13 Pedro Alves <palves@redhat.com>
7078 * Makefile.in (CHECK_HEADERS): New variable.
7079 (check-headers:): New rule.
7081 2014-01-13 Tom Tromey <tromey@redhat.com>
7083 * cli/cli-setshow.c (do_set_command): Update.
7084 * defs.h (deprecated_set_hook): Remove.
7085 * top.c (deprecated_set_hook): Remove.
7087 2014-01-13 Pedro Alves <palves@redhat.com>
7089 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
7090 the tracepoint if the PC is a pseudo-register.
7092 2014-01-13 Tom Tromey <tromey@redhat.com>
7094 * defs.h (XCALLOC): Remove.
7095 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
7096 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
7097 * dwarf2loc.c (allocate_piece_closure): Likewise.
7098 * elfread.c (elf_symfile_segments): Likewise.
7099 (elf_symfile_segments): Likewise.
7100 * gdbtypes.c (copy_type_recursive): Likewise.
7101 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
7102 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
7103 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
7105 * mt-tdep.c (mt_gdbarch_init): Likewise.
7106 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
7108 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
7109 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
7110 * registry.c (registry_alloc_data): Likewise.
7111 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
7112 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7113 * serial.c (serial_fdopen_ops): Likewise.
7114 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
7116 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
7117 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
7120 2014-01-13 Tom Tromey <tromey@redhat.com>
7122 * defs.h (XMALLOC): Remove.
7123 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
7124 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
7125 * cli-out.c (struct ui_out *): Likewise.
7126 * cli/cli-dump.c (add_dump_command): Likewise.
7127 (add_dump_command): Likewise.
7128 * complaints.c (get_complaints): Likewise.
7129 (find_complaint): Likewise.
7130 * dwarf2-frame.c (execute_cfa_program): Likewise.
7131 * dwarf2read.c (abbrev_table_read_table): Likewise.
7132 * gdbarch.sh: Likewise.
7133 * gdbarch.c: Rebuild.
7134 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
7135 * interps.c (interp_new): Likewise.
7136 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
7137 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7138 * mi/mi-console.c (mi_console_file_new): Likewise.
7139 * mi/mi-interp.c (mi_interpreter_init): Likewise.
7140 * mi/mi-out.c (mi_out_new): Likewise.
7141 * mi/mi-parse.c (mi_parse): Likewise.
7142 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
7143 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7144 * observer.c (xalloc_observer_list_node): Likewise.
7145 * regcache.c (regcache_xmalloc_1): Likewise.
7146 * reggroups.c (reggroup_new): Likewise.
7147 (_initialize_reggroup): Likewise.
7148 * registry.c (register_data_with_cleanup): Likewise.
7149 * remote.c (remote_notif_stop_alloc_reply): Likewise.
7150 * ser-base.c (serial_ttystate): Likewise.
7151 * ser-mingw.c (make_pipe_state): Likewise.
7152 * ser-pipe.c (pipe_open): Likewise.
7153 * serial.c (serial_open): Likewise.
7154 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
7155 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
7156 (tui_alloc_win_info): Likewise.
7157 (tui_add_content_elements): Likewise.
7158 * tui/tui-file.c (tui_file_new): Likewise.
7159 * tui/tui-out.c (tui_out_new): Likewise.
7160 * ui-file.c (mem_file_new): Likewise.
7161 * ui-out.c (push_level): Likewise.
7162 (make_cleanup_ui_out_end): Likewise.
7163 (append_header_to_list): Likewise.
7164 (ui_out_new): Likewise.
7165 * user-regs.c (user_reg_add_builtin): Likewise.
7167 2014-01-13 Tom Tromey <tromey@redhat.com>
7169 * defs.h (XZALLOC): Remove.
7170 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
7171 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
7172 (get_ada_tasks_inferior_data): Likewise.
7173 * auto-load.c (get_auto_load_pspace_data): Likewise.
7174 * auxv.c (get_auxv_inferior_data): Likewise.
7175 * bfd-target.c (target_bfd_reopen): Likewise.
7176 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
7177 (deprecated_insert_raw_breakpoint): Likewise.
7178 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
7179 * corelow.c (core_open): Likewise.
7180 * darwin-nat.c (darwin_check_new_threads): Likewise.
7181 (darwin_attach_pid): Likewise.
7182 * dummy-frame.c (dummy_frame_push): Likewise.
7183 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
7184 * dwarf2loc.c (allocate_piece_closure): Likewise.
7185 * elfread.c (elf_symfile_segments): Likewise.
7186 * eval.c (ptrmath_type_p): Likewise.
7187 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
7188 * gdbtypes.c (alloc_type_arch): Likewise.
7189 (alloc_type_instance): Likewise.
7190 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
7191 * inf-child.c (inf_child_can_use_agent): Likewise.
7192 * inflow.c (get_inflow_inferior_data): Likewise.
7193 * infrun.c (save_infcall_suspend_state): Likewise.
7194 * jit.c (jit_reader_load): Likewise.
7195 (get_jit_objfile_data): Likewise.
7196 (get_jit_program_space_data): Likewise.
7197 (jit_object_open_impl): Likewise.
7198 (jit_symtab_open_impl): Likewise.
7199 (jit_block_open_impl): Likewise.
7200 (jit_frame_sniffer): Likewise.
7201 * linux-fork.c (add_fork): Likewise.
7202 * maint.c (make_command_stats_cleanup): Likewise.
7203 * objfiles.c (get_objfile_pspace_data): Likewise.
7204 * opencl-lang.c (struct lval_closure): Likewise.
7205 * osdata.c (osdata_start_osdata): Likewise.
7206 * progspace.c (new_address_space): Likewise.
7207 (add_program_space): Likewise.
7208 * remote-sim.c (get_sim_inferior_data): Likewise.
7209 * sh-tdep.c (sh_gdbarch_init): Likewise.
7210 * skip.c (Ignore): Likewise.
7211 (skip_delete_command): Likewise.
7212 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
7213 (library_list_start_library): Likewise.
7214 (solib_aix_current_sos): Likewise.
7215 * solib-darwin.c (get_darwin_info): Likewise.
7216 (darwin_current_sos): Likewise.
7217 * solib-dsbt.c (get_dsbt_info): Likewise.
7218 * solib-ia64-hpux.c (new_so_list): Likewise.
7219 (ia64_hpux_get_solib_linkage_addr): Likewise.
7220 * solib-spu.c (append_ocl_sos): Likewise.
7221 (spu_current_sos): Likewise.
7222 * solib-svr4.c (get_svr4_info): Likewise.
7223 (svr4_keep_data_in_core): Likewise.
7224 (library_list_start_library): Likewise.
7225 (svr4_default_sos): Likewise.
7226 (svr4_read_so_list): Likewise.
7227 * solib-target.c (library_list_start_library): Likewise.
7228 (solib_target_current_sos): Likewise.
7229 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7230 * symfile-debug.c (install_symfile_debug_logging): Likewise.
7231 * symfile.c (default_symfile_segments): Likewise.
7232 * target-descriptions.c (tdesc_data_init): Likewise.
7233 (tdesc_create_reg): Likewise.
7234 (struct tdesc_type *): Likewise.
7235 (tdesc_create_vector): Likewise.
7236 (tdesc_set_struct_size): Likewise.
7237 (struct tdesc_type *): Likewise.
7238 (tdesc_free_feature): Likewise.
7239 (tdesc_create_feature): Likewise.
7240 * windows-nat.c (windows_add_thread): Likewise.
7241 (windows_make_so): Likewise.
7242 * xml-support.c (gdb_xml_body_text): Likewise.
7243 (gdb_xml_create_parser_and_cleanup): Likewise.
7244 (xml_process_xincludes): Likewise.
7245 * xml-syscall.c (allocate_syscalls_info): Likewise.
7246 (syscall_create_syscall_desc): Likewise.
7248 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
7250 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
7251 function, with code from i386_stap_parse_special_token.
7252 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7253 (i386_stap_parse_special_token): Move code to the two functions
7256 2014-01-09 Pedro Alves <palves@redhat.com>
7257 Hui Zhu <hui@codesourcery.com>
7260 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
7261 bp_err_string. Don't mark the location shlib_disabled if the
7262 error thrown wasn't a generic or memory error. Catch errors
7263 thrown while inserting breakpoints in overlayed code. Output
7264 error message of software breakpoints.
7265 * remote.c (remote_insert_breakpoint): If this breakpoint has
7266 target-side commands but this stub doesn't support Z0 packets,
7267 throw NOT_SUPPORTED_ERROR error.
7268 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
7269 * target.h (target_insert_breakpoint): Extend comment.
7270 (target_insert_hw_breakpoint): Add comment.
7272 2014-01-08 Pedro Alves <palves@redhat.com>
7274 * remote.c (remote_add_thread): Add threads silently if starting
7276 (remote_notice_new_inferior): If in all-stop, and starting up,
7277 don't call notice_new_inferior.
7278 (get_current_thread): New function, factored out from ...
7279 (add_current_inferior_and_thread): ... this. Adjust.
7280 (remote_start_remote) <all-stop>: Fetch the thread list. If we
7281 found any thread, then select the remote's current thread as GDB's
7284 2014-01-08 Joel Brobecker <brobecker@adacore.com>
7286 * NEWS: Create a new section for the next release branch.
7287 Rename the section of the current branch, now that it has
7290 2014-01-08 Joel Brobecker <brobecker@adacore.com>
7292 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
7293 * version.in: Bump version to 7.7.50.DATE-cvs.
7295 2014-01-08 Yao Qi <yao@codesourcery.com>
7297 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
7298 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
7299 (spu_xfer_partial): Cast 'buf' to 'const char *'.
7301 2014-01-08 Yao Qi <yao@codesourcery.com>
7303 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
7304 return value of bfd_get_filename to symbol_file_add_from_bfd.
7306 2014-01-08 Pierre Muller <muller@sourceware.org>
7309 * coff-pe-read.c (struct read_pe_section_data): Add index field.
7310 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
7311 to prim_record_mininal_symbol_and_info.
7312 (add_pe_forwarded_sym): Use known section number of forwarded symbol
7313 in call to prim_record_minimal_symbol_and_info.
7314 (read_pe_exported_syms): Set index field of section_data.
7316 2014-01-07 Andrew Pinski <apinski@cavium.com>
7318 * features/aarch64-core.xml (cpsr): Change to be 64bit.
7319 * features/aarch64.c: Regenerate.
7321 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
7323 * target.c (return_null): Define.
7324 (update_current_target): Use it instead of return_zero for
7325 functions that return a pointer.
7327 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
7329 * source.c (add_path): Fix check for duplicated paths in the previously
7332 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
7334 * ada-lang.c: Remove duplicated include statements.
7335 * alphabsd-nat.c: Ditto.
7336 * amd64-darwin-tdep.c: Ditto.
7337 * amd64fbsd-nat.c: Ditto.
7338 * auto-load.c: Ditto.
7340 * breakpoint.c: Ditto.
7342 * fork-child.c: Ditto.
7343 * gdb_usleep.c: Ditto.
7344 * i386-darwin-tdep.c: Ditto.
7345 * i386fbsd-nat.c: Ditto.
7347 * inferior.c: Ditto.
7349 * linux-nat.c: Ditto.
7350 * linux-tdep.c: Ditto.
7351 * m68kbsd-nat.c: Ditto.
7352 * m68klinux-nat.c: Ditto.
7353 * microblaze-tdep.c: Ditto.
7354 * mips-linux-tdep.c: Ditto.
7355 * mn10300-tdep.c: Ditto.
7356 * nto-tdep.c: Ditto.
7357 * opencl-lang.c: Ditto.
7359 * printcmd.c: Ditto.
7360 * regcache.c: Ditto.
7361 * remote-m32r-sdi.c: Ditto.
7365 * tilegx-linux-nat.c: Ditto.
7366 * tilegx-tdep.c: Ditto.
7367 * tracepoint.c: Ditto.
7369 * vaxbsd-nat.c: Ditto.
7370 * windows-nat.c: Ditto.
7371 * xtensa-tdep.c: Ditto.
7373 2014-01-07 Yao Qi <yao@codesourcery.com>
7375 * spu-linux-nat.c (_initialize_spu_nat): Declare.
7377 2014-01-07 Yao Qi <yao@codesourcery.com>
7378 Joel Brobecker <brobecker@adacore.com>
7380 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
7381 (pdc_write_regs): Likewise.
7382 (fetch_regs_kernel_thread): Likewise.
7383 (store_regs_kernel_thread): Likewise.
7385 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7387 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
7388 tagged type objects to their actual type.
7390 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7392 * ada-valprint.c (print_field_values): Add "language" parameter.
7393 Update calls to print_field_values and print_variant_part.
7394 Pass new parameter "language" in call to val_print instead
7395 of "current_language". Replace call to ada_val_print by call
7397 (print_variant_part): Add "language" parameter.
7398 (ada_val_print_struct_union): Update call to print_field_values.
7400 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7402 * ada-valprint.c (ui_memcpy): Delete.
7403 (ada_print_floating): Update documentation. Add empty line
7404 between between function documentation and implementation.
7405 Delete variable "buffer". Use ui_file_xstrdup in place of
7406 ui_file_put. Minor adjustments following this change.
7408 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7410 * ada-valprint.c (ada_val_print_string): New function,
7411 extracted from ada_val_print_array.
7412 (ada_val_print_array): Replace extracted code by call
7413 to ada_val_print_string followed by a return. Move
7414 "else" branch to the function's top block.
7416 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7418 * ada-valprint.c (ada_val_print_array): Move implementation
7419 down. Rename parameter "offset" and "val" into "offset_aligned"
7420 and "original_value" respectively. Add parameter "offset".
7422 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7424 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
7425 re-organizing the code. Change the "???" message printed
7426 when target type is a TYPE_CODE_UNDEF into
7427 "<ref to undefined type>".
7429 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7431 * ada-valprint.c (print_record): Delete, implementation inlined...
7432 (ada_val_print_struct_union): ... here. Remove call to
7433 ada_check_typedef in inlined implementation.
7435 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7437 * ada-valprint.c (ada_val_print_gnat_array): New function,
7438 extracted from ada_val_print_1;
7439 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
7440 (ada_val_print_flt, ada_val_print_struct_union)
7441 (ada_val_print_ref): Likewise.
7442 (ada_val_print_1): Delete variables i and elttype.
7443 Replace extracted-out code by call to corresponding
7446 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7448 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
7450 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7452 * ada-valprint.c (ada_val_print_1): Replace calls to
7453 ada_val_print_1 by calls to val_print.
7455 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7457 * ada-valprint.c (ada_val_print_1): Add parameter "language".
7458 Update calls to self accordingly. Replace calls to c_val_print
7459 by calls to val_print.
7461 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7463 * ada-valprint.c (print_record): Delete declaration.
7464 (adjust_type_signedness, ada_val_print_1): Likewise.
7465 (ada_val_print): Move function implementation down.
7466 (print_variant_part, print_field_values, print_record):
7467 Move function implementation up.
7469 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7471 * python/py-type.c (typy_get_name): New function.
7472 (type_object_getset): Add entry for attribute "name".
7473 * NEWS: Add entry mentioning this new attribute.
7475 2014-01-07 Yao Qi <yao@codesourcery.com>
7477 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
7480 2014-01-07 Yao Qi <yao@codesourcery.com>
7482 * gnu-nat.c (info_port_rights): Add qualifier const to
7485 2014-01-07 Yao Qi <yao@codesourcery.com>
7487 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
7489 2014-01-07 Yao Qi <yao@codesourcery.com>
7491 * gnu-nat.c (make_inf) Update declaration.
7492 (make_inf): Make it static.
7493 (inf_set_traced): Likewise.
7494 (inf_port_to_thread, inf_task_died_status): Likewise.
7496 2014-01-07 Yao Qi <yao@codesourcery.com>
7498 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
7500 2014-01-07 Yao Qi <yao@codesourcery.com>
7502 * gnu-nat.c (_initialize_gnu_nat): Declare.
7504 2014-01-07 Yao Qi <yao@codesourcery.com>
7506 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
7508 (struct gdbarch_info) <byte_order>: Change type to
7510 <byte_order_for_code>: Likewise.
7511 * gdbarch.c, gdbarch.h: Regenerated.
7513 2014-01-06 Sasha Smundak <asmundak@google.com>
7515 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
7517 2014-01-06 Tom Tromey <tromey@redhat.com>
7519 * doublest.c (convert_doublest_to_floatformat): Use const, not
7521 * somread.c (som_symtab_read): Likewise.
7523 2014-01-07 Hui Zhu <hui@codesourcery.com>
7525 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
7526 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
7527 (gdb_bfd_fopen): Ditto.
7528 (gdb_bfd_openr): Ditto.
7529 (gdb_bfd_openw): Ditto.
7530 (gdb_bfd_openr_iovec): Ditto.
7531 (gdb_bfd_fdopenr): Ditto.
7532 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
7533 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
7535 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
7537 * symfile-mem.c (symbol_file_add_from_memory): Removed
7538 gdb_bfd_stash_filename.
7540 2014-01-03 Doug Evans <dje@google.com>
7542 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
7545 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7547 Update year range in copyright notice of all files.
7549 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7551 * top.c (print_gdb_version): Set copyright year to 2014.
7553 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7555 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
7557 For older changes see ChangeLog-2013.
7563 version-control: never