1 2014-05-05 Keith Seitz <keiths@redhat.com>
3 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4 variable or history value is successfully parsed.
6 2014-05-05 Yao Qi <yao@codesourcery.com>
7 Pedro Alves <palves@redhat.com>
9 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
10 address of blocks that intersects the requested range. Trim
11 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
13 * ctf.c (ctf_xfer_partial): Likewise.
15 2014-05-05 Yao Qi <yao@codesourcery.com>
17 * printcmd.c (display_command): Remove the check to
20 2014-05-03 Mark Kettenis <kettenis@gnu.org>
22 * ppcobsd-nat.c: Include "obsd-nat.h".
23 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
25 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
27 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
29 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
30 and 16-bit signed and unsigned arguments. Update comment.
31 (stap_parse_probe_arguments): Extend code to handle such
32 arguments. Use warning instead of complaint to notify about
35 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
38 * stap-probe.c (stap_parse_probe_arguments): Simplify
39 check for non-prefixed probes (i.e., probes whose
40 arguments do not start with "N@"). Always set the
41 argument type to a sane value.
43 2014-05-01 David Taylor <dtaylor@emc.com>
45 * remote.c (compare_sections_command): Add -r option to compare
46 all loadable read-only sections.
48 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
50 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
51 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
53 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
54 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
55 Remove unused CORE_ADDR argument. Update all callers.
57 2014-04-29 Pedro Alves <palves@redhat.com>
59 * remote.c (struct packet_config) <detect>: Extend comment.
60 (add_packet_config_cmd): Don't set the config's detect or support
62 (init_all_packet_configs): Also initialize the config's 'detect'
64 (reset_all_packet_configs_support): New function.
65 (remote_open_1): Call reset_all_packet_configs_support instead of
66 init_all_packet_configs.
67 (_initialize_remote): Initialize all packet configs. Assert that
68 all packets have an associated command, except a few known
71 2014-04-28 Joel Brobecker <brobecker@adacore.com>
73 * dwarf2read.c (read_subrange_type): Handle dynamic
74 DW_AT_lower_bound attributes.
76 2014-04-28 Joel Brobecker <brobecker@adacore.com>
78 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
79 dynamic bounds before computing its upper bound.
80 (ada_discrete_type_low_bound): Same as above with the lower bound.
82 2014-04-28 Joel Brobecker <brobecker@adacore.com>
84 * dwarf2read.c (is_dynamic_type): Return true for dynamic
85 range types. Adjust the array handling implementation to
86 take advantage of this change.
87 (resolve_dynamic_range): New function, mostly extracted from
88 resolve_dynamic_bounds.
89 (resolve_dynamic_array): New function, mostly extracted from
90 resolve_dynamic_bounds.
91 (resolve_dynamic_bounds): Delete.
92 (resolve_dynamic_type): Reimplement. Add handling of
93 TYPE_CODE_RANGE types.
95 2014-04-28 Joel Brobecker <brobecker@adacore.com>
97 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
98 handling of parallel ___XA types.
100 2014-04-28 Joel Brobecker <brobecker@adacore.com>
102 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
103 unnecessary second call to static_unwrap_type.
105 2014-04-27 Hui Zhu <hui@codesourcery.com>
107 * stack.c (print_frame_info): Call do_gdb_disassembly with
108 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
110 2014-04-26 Doug Evans <xdje42@gmail.com>
112 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
114 2014-04-25 Pedro Alves <palves@redhat.com>
117 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
118 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
119 and newline from built string.
120 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
121 (linux_ptrace_attach_fail_reason): ... this.
122 * linux-nat.c (linux_nat_attach): Adjust to use
123 linux_ptrace_attach_fail_reason.
125 2014-04-25 Pedro Alves <palves@redhat.com>
127 * remote.c (struct remote_state): Remove multi_process_aware,
128 non_stop_aware, cond_tracepoints, cond_breakpoints,
129 breakpoint_commands, fast_tracepoints, static_tracepoints,
130 install_in_trace, disconnected_tracing,
131 enable_disable_tracepoints, string_tracing, and
132 augmented_libraries_svr4_read fields.
133 (remote_multi_process_p): Move further below in the file.
134 (struct packet_config): Add comments.
135 (update_packet_config): Delete function.
136 (show_packet_config_cmd): Use packet_config_support.
137 (add_packet_config_cmd): Use NULL as set callback.
138 (packet_ok): "set remote foo-packet"-style commands no longer
139 change config->supported -- adjust.
140 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
141 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
142 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
143 (PACKET_QNonStop, PACKET_multiprocess_feature)
144 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
145 (PACKET_DisconnectedTracing_feature)
146 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
147 (set_remote_protocol_packet_cmd): Delete function.
148 (packet_config_support, packet_support): New functions.
149 (set_remote_protocol_Z_packet_cmd): Don't call
150 update_packet_config.
151 (remote_query_attached, remote_pass_signals)
152 (remote_program_signals, remote_threads_info)
153 (remote_threads_extra_info, remote_start_remote): Use
155 (remote_start_remote): Use packet_config_support and
157 (init_all_packet_configs): Set all packets to unknown support,
158 instead of calling update_packet_config.
159 (remote_check_symbols): Use packet_support.
160 (remote_supported_packet): Unconditionally set the packet config's
162 (remote_multi_process_feature, remote_non_stop_feature)
163 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
164 (remote_breakpoint_commands_feature)
165 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
166 (remote_install_in_trace_feature)
167 (remote_disconnected_tracing_feature)
168 (remote_enable_disable_tracepoint_feature)
169 (remote_string_tracing_feature)
170 (remote_augmented_libraries_svr4_read_feature): Delete functions.
171 (remote_protocol_features): Adjust to use remote_supported_packet
172 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
173 "ConditionalTracepoints", "ConditionalBreakpoints",
174 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
175 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
176 "EnableDisableTracepoints", and "tracenz".
177 (remote_query_supported): Use packet_support.
178 (remote_open_1): Adjust.
179 (extended_remote_attach_1): Use packet_support. Switch on the
180 result of packet_ok instead of checking whether the packet ended
182 (remote_vcont_resume): Use packet_support.
183 (remote_resume, remote_stop_ns, fetch_register_using_p)
184 (remote_prepare_to_store, store_register_using_P)
185 (check_binary_download, remote_write_bytes): Use packet_support.
186 (remote_vkill): Use packet_support. Switch on the result of
187 packet_ok instead of checking whether the packet ended up
189 (extended_remote_supports_disable_randomization): Use
191 (extended_remote_run): Switch on the result of packet_ok instead
192 of checking whether the packet ended up disabled.
193 (remote_insert_breakpoint, remote_remove_breakpoint)
194 (remote_insert_watchpoint, remote_remove_watchpoint)
195 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
197 (remote_search_memory): Use packet_config_support.
198 (remote_get_thread_local_address, remote_get_tib_address)
199 (remote_hostio_send_command, remote_can_execute_reverse): Use
201 (remote_supports_cond_tracepoints)
202 (remote_supports_cond_breakpoints)
203 (remote_supports_fast_tracepoints)
204 (remote_supports_static_tracepoints)
205 (remote_supports_install_in_trace)
206 (remote_supports_enable_disable_tracepoint)
207 (remote_supports_string_tracing)
208 (remote_can_run_breakpoint_commands): Rewrite, checking whether
209 the packet config says the feature is enabled or disabled.
210 (remote_download_tracepoint, remote_trace_set_readonly_regions)
211 (remote_get_trace_status): Use packet_support.
212 (remote_set_disconnected_tracing): Adjust to check whether the
213 feature is enabled with packet_support.
214 (remote_set_trace_buffer_size, remote_use_agent)
215 (remote_can_use_agent, remote_supports_btrace): Use
217 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
218 Use packet_config_support.
219 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
220 the packet config says the feature is enabled or disabled.
221 (set_range_stepping): Use packet_support.
223 2014-04-25 Tom Tromey <tromey@redhat.com>
225 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
228 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
230 * NEWS: Mention support for C99 variable length arrays.
232 2014-04-24 Joel Brobecker <brobecker@adacore.com>
234 * ada-lang.c (standard_exc): Expand introductory comment.
236 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
237 Walfred Tedeschi <walfred.tedeschi@intel.com>
239 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
241 (amd64_linux_read_description): Add code to handle AVX512 xstate
242 mask and return respective tdesc.
243 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
244 and features/i386/x32-avx512-linux.c.
245 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
246 (amd64_linux_core_read_description): Add code to handle AVX512
247 xstate mask and return respective tdesc.
248 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
249 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
251 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
252 (tdesc_amd64_avx512_linux): New prototype.
253 (tdesc_x32_avx512_linux): Likewise.
254 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
255 features/i386/x32-avx512.c.
256 (amd64_ymm_avx512_names): New register names for pseudo
258 (amd64_ymmh_avx512_names): New register names for raw registers
260 (amd64_k_names): New register names for K registers.
261 (amd64_zmmh_names): New register names for ZMM raw registers.
262 (amd64_zmm_names): New registers names for ZMM pseudo registers.
263 (amd64_xmm_avx512_names): New register names for XMM16-31
265 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
267 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
268 if feature is present.
269 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
270 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
271 (AMD64_NUM_REGS): Adjust to new number of registers.
272 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
273 registers supplied via XSTATE by AVX512 registers.
274 (i386_linux_read_description): Add case for AVX512.
275 * i386-linux-tdep.c: Include i386-avx512-linux.c.
276 (i386_linux_gregset_reg_offset): Add AVX512 registers.
277 (i386_linux_core_read_description): Add case for AVX512.
278 (i386_linux_init_abi): Install supported register note section
280 (_initialize_i386_linux_tdep): Add call to tdesc init function for
282 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
283 registers to be number of zmm7h + 1.
284 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
285 * i386-tdep.c: Include features/i386/i386-avx512.c.
286 (i386_zmm_names): Add ZMM pseudo register names array.
287 (i386_zmmh_names): Add ZMM raw register names array.
288 (i386_k_names): Add K raw register names array.
289 (num_lower_zmm_regs): Add constant for the number of lower ZMM
290 registers. AVX512 has 16 more ZMM registers than there are YMM
292 (i386_zmmh_regnum_p): Add function to look up register number of
294 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
295 (i386_k_regnum_p): Likewise for K raw registers.
296 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
297 registers added by AVX512.
298 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
299 registers added by AVX512.
300 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
302 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
303 (i386_pseudo_register_name): Add ZMM pseudo registers.
304 (i386_zmm_type): Construct and return vector registers type for ZMM
306 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
307 ZMM0-31 pseudo registers and K registers.
308 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
309 and YMM16-31 registers from register cache.
310 (i386_pseudo_register_write): Add code to write K, ZMM and
312 (i386_register_reggroup_p): Add code to include/exclude AVX512
313 registers in/from respective register groups.
314 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
315 registers if feature is present in xcr0.
316 (i386_gdbarch_init): Add code to initialize AVX512 feature
317 variables in tdep structure, wire in pseudo registers and call
318 initialize_tdesc_i386_avx512.
319 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
321 (i386_regnum): Add AVX512 registers.
322 (I386_SSE_NUM_REGS): New define for number of SSE registers.
323 (I386_AVX_NUM_REGS): Likewise for AVX registers.
324 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
325 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
327 (i386_xmm_avx512_regnum_p): New prototype for register look up.
328 (i386_ymm_avx512_regnum_p): Likewise.
329 (i386_k_regnum_p): Likewise.
330 (i386_zmm_regnum_p): Likewise.
331 (i386_zmmh_regnum_p): Likewise.
332 * i387-tdep.c : Update year in copyright notice.
333 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
335 (XSAVE_YMM_AVX512_ADDR): New macro.
336 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
338 (XSAVE_XMM_AVX512_ADDR): New macro.
339 (xsave_avx512_k_offset): New table for K register offsets in
341 (XSAVE_AVX512_K_ADDR): New macro.
342 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
344 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
345 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
347 (i387_collect_xsave): Add code to collect AVX512 registers from
349 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
350 of XMM16-31 registers.
351 (I387_NUM_K_REGS): New define for number of K registers.
352 (I387_K0_REGNUM): New define for K0 register number.
353 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
354 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
355 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
357 (I387_YMM16H_REGNUM): New define for YMM16H register number.
358 (I387_XMM16_REGNUM): New define for XMM16 register number.
359 (I387_YMM0_REGNUM): New define for YMM0 register number.
360 (I387_KEND_REGNUM): New define for last K register number.
361 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
362 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
364 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
366 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
368 * features/Makefile: Add AVX512 related files.
369 * features/i386/32bit-avx512.xml: New file.
370 * features/i386/64bit-avx512.xml: Likewise.
371 * features/i386/amd64-avx512-linux.c: Likewise.
372 * features/i386/amd64-avx512-linux.xml: Likewise.
373 * features/i386/amd64-avx512.c: Likewise.
374 * features/i386/amd64-avx512.xml: Likewise.
375 * features/i386/i386-avx512-linux.c: Likewise.
376 * features/i386/i386-avx512-linux.xml: Likewise.
377 * features/i386/i386-avx512.c: Likewise.
378 * features/i386/i386-avx512.xml: Likewise.
379 * features/i386/x32-avx512-linux.c: Likewise.
380 * features/i386/x32-avx512-linux.xml: Likewise.
381 * features/i386/x32-avx512.c: Likewise.
382 * features/i386/x32-avx512.xml: Likewise.
383 * regformats/i386/amd64-avx512-linux.dat: New file.
384 * regformats/i386/amd64-avx512.dat: Likewise.
385 * regformats/i386/i386-avx512-linux.dat: Likewise.
386 * regformats/i386/i386-avx512.dat: Likewise.
387 * regformats/i386/x32-avx512-linux.dat: Likewise.
388 * regformats/i386/x32-avx512.dat: Likewise.
389 * NEWS: Add note about new support for AVX512.
392 2014-04-23 Pedro Alves <palves@redhat.com>
394 * breakpoint.c (insert_bp_location): Tolerate errors if the
395 breakpoint is set in a user-loaded objfile.
396 (remove_breakpoint_1): Likewise. Also tolerate errors if the
397 location is marked shlib_disabled. If the breakpoint is set in a
398 user-loaded objfile is a GDB-side memory breakpoint, validate it
399 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
400 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
402 * mem-break.c (memory_validate_breakpoint): New function.
403 * objfiles.c (userloaded_objfile_contains_address_p): New
405 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
406 * target.h (memory_validate_breakpoint): New declaration.
408 2014-04-23 Pedro Alves <palves@redhat.com>
410 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
411 the breakpoint is set in a shared library, only suppress
412 errors for software breakpoints, not hardware breakpoints.
414 2014-04-22 Pedro Alves <palves@redhat.com>
416 * infrun.c (schedlock_applies): New function, factored out from
417 find_thread_needs_step_over.
418 (find_thread_needs_step_over): Use it.
419 (switch_back_to_stepped_thread): Always clear trap_expected if the
420 step over is finished. Return early if scheduler locking applies.
421 Look for the stepping thread and a potential step-over thread with
423 (currently_stepping_or_nexting_callback): Delete.
425 2014-04-22 Nick Clifton <nickc@redhat.com>
427 * NEWS: Mention that ARM sim now supports tracing.
429 2014-04-22 Yao Qi <yao@codesourcery.com>
431 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
433 * tracefile.c (tracefile_fetch_registers): ... it. New
435 * tracefile.h (tracefile_fetch_registers): Declare.
436 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
437 tracefile_fetch_registers.
439 2014-04-19 Eli Zaretskii <eliz@gnu.org>
442 * windows-nat.c (thread_rec): Don't display a warning when
443 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
444 fails for any reason, set th->suspended to -1, so that we don't
445 try to resume such a thread. Also, don't return NULL in these
446 cases, to avoid completely ruin the session due to "PC register is
447 not available" error.
448 (do_windows_fetch_inferior_registers): Check errors in
449 GetThreadContext call.
450 (windows_continue): Accept an additional argument KILLED; if not
451 zero, ignore errors in the SetThreadContext call, since the
452 inferior was killed and is shutting down.
453 (windows_resume, get_windows_debug_event)
454 (windows_create_inferior, windows_mourn_inferior)
455 (windows_kill_inferior): All callers of windows_continue changed
456 to adjust to its new calling sequence.
458 2014-04-19 Yao Qi <yao@codesourcery.com>
460 * ctf.c (ctf_open): Call post_create_inferior.
462 2014-04-19 Yao Qi <yao@codesourcery.com>
464 * ctf.c (handle_id): New static variable.
465 (ctf_open_dir): Get handle_id from bt_context_add_trace return
466 value. Get the declaration of event "register" and get length
469 2014-04-19 Yao Qi <yao@codesourcery.com>
471 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
473 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
475 * valops.c (oload_method_static): Remove unnecessary argument
476 METHOD. Update all callers.
478 2014-04-18 Pedro alves <palves@redhat.com>
479 Tom Tromey <tromey@redhat.com>
482 * frame.c (get_prev_frame_1): Rename to ...
483 (get_prev_frame_always): ... this, and make extern. Adjust.
484 (skip_artificial_frames): Use get_prev_frame_always.
485 (frame_unwind_caller_id, frame_pop, get_prev_frame)
486 (get_frame_unwind_stop_reason): Adjust to rename.
487 * frame.h (get_prev_frame_always): Declare.
488 * inline-frame.c: Include frame.h.
489 (inline_frame_this_id): Use get_prev_frame_always.
491 2014-04-18 Tristan Gingold <gingold@adacore.com>
493 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
494 code by using bfd_mach_o_get_base_address.
496 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
498 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
499 (spu_ax_pseudo_register_collect): New function.
500 (spu_ax_pseudo_register_push_stack): Likewise.
501 (spu_dwarf_reg_to_regnum): Likewise.
502 (spu_gdbarch_init): Install them. Append DWARF unwinders.
504 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
506 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
507 Replace FRAME argument with FRAME_ID.
508 * gdbarch.c, gdbarch.h: Regenerate.
509 * findvar.c (default_value_from_register): Add GDBARCH argument;
510 replace FRAME by FRAME_ID. No longer call get_frame_id.
511 (value_from_register): Update call to gdbarch_value_from_register.
512 * value.h (default_value_from_register): Update prototype.
513 * s390-linux-tdep.c (s390_value_from_register): Update interface
514 and call to default_value_from_register.
515 * spu-tdep.c (spu_value_from_register): Likewise.
517 * findvar.c (address_from_register): Remove TYPE argument.
518 Do not call value_from_register; use gdbarch_value_from_register
519 with null_frame_id instead.
520 * value.h (address_from_register): Update prototype.
521 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
522 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
523 address_from_register interface change.
525 2014-04-17 Yao Qi <yao@codesourcery.com>
527 * gdbtypes.h: Update comments to link to types and macros'
530 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
532 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
534 2014-04-16 Keith Seitz <keiths@redhat.com>
537 * dwarf2read.c (skip_one_die): Check that all relative-offset
538 sibling DIEs fall within range of the current reader's buffer.
539 (read_partial_die): Likewise.
541 2014-04-16 Keith Seitz <keiths@redhat.com>
544 * cp-namespace.c (lookup_symbol_file): If the type name of
545 `this' is NULL, return immediately.
547 2014-04-14 Keith Seitz <keiths@redhat.com>
550 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
551 from symbol_matches_domain in symtab.c. All local callers
552 of symbol_matches_domain updated.
553 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
554 search STRUCT_DOMAIN.
555 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
556 independently. standard_lookup will do that automatically.
557 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
558 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
559 (cp_lookup_symbol_in_namespace): Likewise.
560 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
561 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
562 may return a STRUCT_DOMAIN match.
563 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
564 * cp-support.c: Include language.h.
565 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
567 * psymtab.c (match_partial_symbol): Compare the requested
568 domain with the symbol's domain directly.
569 (lookup_partial_symbol): Likewise.
570 * symtab.c (lookup_symbol_in_language): Explain when/why
571 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
572 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
573 appropriate languages.
574 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
575 and moved to ada-lang.c
576 (lookup_block_symbol): Explain that this function only returns
577 symbol matching the requested DOMAIN.
578 Compare the requested domain with the symbol's domain directly.
579 (iterate_over_symbols): Compare the requested domain with the
580 symbol's domain directly.
581 * symtab.h (symbol_matches_domain): Remove.
583 2014-04-14 Tom Tromey <tromey@redhat.com>
586 * c-exp.y (type_aggregate_p): New function.
587 (qualified_name, classify_inner_name): Use it.
588 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
589 and TYPE_TARGET_TYPE of an enum type.
590 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
592 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
593 handle TYPE_DECLARED_CLASS.
594 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
596 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
597 * valops.c (enum_constant_from_type): New function.
598 (value_aggregate_elt): Use it.
599 * cp-namespace.c (cp_lookup_nested_symbol): Handle
602 2014-04-14 Tom Tromey <tromey@redhat.com>
604 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
605 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
607 * value.h (value_aggregate_elt): Update.
609 2014-04-14 Tom Tromey <tromey@redhat.com>
611 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
613 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
615 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
616 (evaluate_subexp_standard): Pass noside argument.
617 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
618 if noside equals EVAL_NORMAL. If the subscript yields a vla type
619 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
620 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
621 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
623 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
625 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
626 points to a constant blob.
628 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
630 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
631 property and store it as the high bound and flag the range accordingly.
632 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
633 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
634 * gdbtypes.h (enum range_flags): New enum.
635 (struct range_bounds): Add flags member.
637 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
639 * c-typeprint.c (c_type_print_varspec_suffix): Added
640 check for not yet resolved high bound. If unresolved, print
641 "variable length" string to the console instead of random
644 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
646 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
648 (ada_template_to_fixed_record_type_1): Likewise.
649 (ada_to_fixed_type_1): Likewise.
650 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
651 (cp_print_value): Likewise.
652 * d-valprint.c (dynamic_array_type): Likewise.
653 * findvar.c (address_of_variable): Likewise.
654 * jv-valprint.c (java_value_print): Likewise.
655 * valops.c (value_ind): Likewise.
656 * value.c (coerce_ref): Likewise.
658 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
660 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
661 value and retrieve the dynamic type size.
663 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
665 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
666 passed to sizeof is dynamic evaluate the argument to compute the length.
668 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
669 Joel Brobecker <brobecker@adacore.com>
671 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
672 (dwarf2_evaluate_property): New function.
673 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
674 * dwarf2read.c (attr_to_dynamic_prop): New function.
675 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
677 * gdbtypes.c: Include dwarf2loc.h.
678 (is_dynamic_type): New function.
679 (resolve_dynamic_type): New function.
680 (resolve_dynamic_bounds): New function.
681 (get_type_length): New function.
682 (check_typedef): Use get_type_length to compute type length.
683 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
684 (TYPE_LOW_BOUND_KIND): New macro.
685 (is_dynamic_type): New function prototype.
686 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
687 to resolve dynamic properties of the type. Update comment.
688 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
690 2014-04-14 Richard Henderson <rth@redhat.com>
692 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
694 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
695 Doug Evans <xdje42@gmail.com>
697 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
698 dereference TYPE_CODE_REF values.
700 2014-04-11 Joel Brobecker <brobecker@adacore.com>
702 Revert the following changes due to regressions:
704 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
705 (dwarf2_evaluate_property): New function.
706 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
707 * dwarf2read.c (attr_to_dynamic_prop): New function.
708 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
710 * gdbtypes.c: Include dwarf2loc.h.
711 (is_dynamic_type): New function.
712 (resolve_dynamic_type): New function.
713 (resolve_dynamic_bounds): New function.
714 (get_type_length): New function.
715 (check_typedef): Use get_type_length to compute type length.
716 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
717 (TYPE_LOW_BOUND_KIND): New macro.
718 (is_dynamic_type): New function prototype.
719 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
720 to resolve dynamic properties of the type. Update comment.
721 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
723 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
724 passed to sizeof is dynamic evaluate the argument to compute the length.
726 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
727 value and retrieve the dynamic type size.
729 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
730 (ada_template_to_fixed_record_type_1): Likewise.
731 (ada_to_fixed_type_1): Likewise.
732 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
733 (cp_print_value): Likewise.
734 * d-valprint.c (dynamic_array_type): Likewise.
735 * eval.c (evaluate_subexp_with_coercion): Likewise.
736 * findvar.c (address_of_variable): Likewise.
737 * jv-valprint.c (java_value_print): Likewise.
738 * valops.c (value_ind): Likewise.
739 * value.c (coerce_ref): Likewise.
741 * c-typeprint.c (c_type_print_varspec_suffix): Added
742 check for not yet resolved high bound. If unresolved, print
743 "variable length" string to the console instead of random
746 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
747 property and store it as the high bound and flag the range accordingly.
748 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
749 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
750 * gdbtypes.h (enum range_flags): New enum.
751 (struct range_bounds): Add flags member.
753 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
754 points to a constant blob.
756 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
757 (evaluate_subexp_standard): Pass noside argument.
758 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
759 if noside equals EVAL_NORMAL. If the subscript yields a vla type
760 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
761 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
762 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
764 2014-04-11 Keith Seitz <keiths@redhat.com>
767 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
768 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
771 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
773 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
774 (evaluate_subexp_standard): Pass noside argument.
775 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
776 if noside equals EVAL_NORMAL. If the subscript yields a vla type
777 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
778 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
779 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
781 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
783 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
784 points to a constant blob.
786 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
788 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
789 property and store it as the high bound and flag the range accordingly.
790 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
791 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
792 * gdbtypes.h (enum range_flags): New enum.
793 (struct range_bounds): Add flags member.
795 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
797 * c-typeprint.c (c_type_print_varspec_suffix): Added
798 check for not yet resolved high bound. If unresolved, print
799 "variable length" string to the console instead of random
802 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
804 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
805 (ada_template_to_fixed_record_type_1): Likewise.
806 (ada_to_fixed_type_1): Likewise.
807 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
808 (cp_print_value): Likewise.
809 * d-valprint.c (dynamic_array_type): Likewise.
810 * eval.c (evaluate_subexp_with_coercion): Likewise.
811 * findvar.c (address_of_variable): Likewise.
812 * jv-valprint.c (java_value_print): Likewise.
813 * valops.c (value_ind): Likewise.
814 * value.c (coerce_ref): Likewise.
816 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
818 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
819 value and retrieve the dynamic type size.
821 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
823 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
824 passed to sizeof is dynamic evaluate the argument to compute the length.
826 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
828 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
829 (dwarf2_evaluate_property): New function.
830 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
831 * dwarf2read.c (attr_to_dynamic_prop): New function.
832 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
834 * gdbtypes.c: Include dwarf2loc.h.
835 (is_dynamic_type): New function.
836 (resolve_dynamic_type): New function.
837 (resolve_dynamic_bounds): New function.
838 (get_type_length): New function.
839 (check_typedef): Use get_type_length to compute type length.
840 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
841 (TYPE_LOW_BOUND_KIND): New macro.
842 (is_dynamic_type): New function prototype.
843 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
844 to resolve dynamic properties of the type. Update comment.
845 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
847 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
849 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
850 declaring high/low bounds and change uses accordingly. Call
851 create_range_type instead of create_static_range_type.
852 * gdbtypes.c (create_range_type): New function.
853 (create_range_type): Convert bounds into struct bound_prop and pass
854 them to create_range_type.
855 * gdbtypes.h (struct bound_prop): New struct.
856 (create_range_type): New function prototype.
857 (struct range_bounds): Use struct bound_prop instead of LONGEST for
858 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
859 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
861 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
863 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
865 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
866 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
867 * ada-lang.c: All uses of create_range_type updated.
868 * coffread.c: All uses of create_range_type updated.
869 * dwarf2read.c: All uses of create_range_type updated.
870 * f-exp.y: All uses of create_range_type updated.
871 * m2-valprint.c: All uses of create_range_type updated.
872 * mdebugread.c: All uses of create_range_type updated.
873 * stabsread.c: All uses of create_range_type updated.
874 * valops.c: All uses of create_range_type updated.
875 * valprint.c: All uses of create_range_type updated.
877 2014-04-10 Pedro Alves <palves@redhat.com>
879 * breakpoint.c (single_step_breakpoints)
880 (single_step_gdbarch): Move up in the file.
881 (one_breakpoint_xfer_memory): New function, factored out from ...
882 (breakpoint_xfer_memory): ... here. Also process single-step
885 2014-04-09 Tristan Gingold <gingold@adacore.com>
887 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
889 (darwin_decode_exception_message): Free port only after use.
891 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
893 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
894 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
895 when setting the size of call_length.
897 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
899 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
900 dereference TYPE_CODE_REF values.
902 2014-04-07 Joel Brobecker <brobecker@adacore.com>
904 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
905 end of warning message.
907 2014-04-03 Doug Evans <dje@google.com>
909 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
910 of stub_comp_unit_die, stub_comp_dir is non-NULL.
912 2014-04-02 Alan Modra <amodra@gmail.com>
914 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
915 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
916 (struct symbol_file_add_from_memory_args): Add size field.
917 (find_vdso_size): New function.
918 (add_vsyscall_page): Attempt to find vdso size.
920 2014-04-01 Doug Evans <dje@google.com>
922 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
924 2014-04-01 Tristan Gingold <gingold@adacore.com>
926 * darwin-nat.c (darwin_encode_reply): Add prototype.
927 (darwin_decode_exception_message): Reply to unknown inferiors.
928 (darwin_decode_message): Handle message by id. Ignore message
930 (darwin_wait): Discard unknown messages, add debug trace.
932 2014-03-31 Doug Evans <dje@google.com>
934 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
937 2014-03-31 Doug Evans <dje@google.com>
939 New option "set print symbol-loading".
941 * solib.c (solib_read_symbols): Only print symbol loading messages
943 (solib_add): If symbol loading is in "brief" mode, notify user
944 symbols are being loaded.
945 (reload_shared_libraries_1): Ditto.
946 * symfile.c (print_symbol_loading_off): New static global.
947 (print_symbol_loading_brief): New static global.
948 (print_symbol_loading_full): New static global.
949 (print_symbol_loading_enums): New static global.
950 (print_symbol_loading): New static global.
951 (print_symbol_loading_p): New function.
952 (symbol_file_add_with_addrs): Only print symbol loading messages
954 (_initialize_symfile): Register "print symbol-loading" set/show
956 * symfile.h (print_symbol_loading_p): Declare.
958 2014-03-30 Doug Evans <xdje42@gmail.com>
960 * infrun.c (set_last_target_status): New function.
961 (handle_inferior_event): Call it.
963 2014-03-30 Doug Evans <xdje42@gmail.com>
965 * inferior.h (enum stop_kind): Improve comment.
967 2014-03-28 Joel Brobecker <brobecker@adacore.com>
969 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
970 a reference, strip the reference layer before calling
971 the lang_ops value_has_mutated callback.
973 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
975 Remove some globals from our parser.
976 * language.c (unk_lang_parser): Add "struct parser_state"
978 * language.h (struct language_defn) <la_parser>: Likewise.
979 * parse.c (expout, expout_size, expout_ptr): Remove variables.
980 (initialize_expout): Add "struct parser_state" argument.
981 Rewrite function to use the parser state.
982 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
983 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
984 write_exp_elt_longcst, write_exp_elt_dblcst,
985 write_exp_elt_decfloatcst, write_exp_elt_type,
986 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
987 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
988 write_dollar_variable): Likewise.
989 (parse_exp_in_context_1): Use parser state.
990 (insert_type_address_space): Add "struct parser_state" argument.
992 (increase_expout_size): New function.
993 * parser-defs.h: Forward declare "struct language_defn" and
994 "struct parser_state".
995 (expout, expout_size, expout_ptr): Remove extern declarations.
996 (parse_gdbarch, parse_language): Rewrite macro declarations to
997 accept the parser state.
998 (struct parser_state): New struct.
999 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
1000 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
1001 write_exp_elt_decfloatcst, write_exp_elt_type,
1002 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
1003 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
1004 write_exp_msymbol, write_dollar_variable,
1005 mark_struct_expression, insert_type_address_space): Add "struct
1006 parser_state" argument.
1007 (increase_expout_size): New function.
1008 * utils.c (do_clear_parser_state): New function.
1009 (make_cleanup_clear_parser_state): Likewise.
1010 * utils.h (make_cleanup_clear_parser_state): New function
1012 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
1013 Update calls to write_exp* in order to pass the parser state.
1014 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1015 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
1016 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1017 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1018 * stap-probe.c (stap_parse_register_operand): Likewise.
1019 (stap_parse_single_operand): Likewise.
1020 (stap_parse_argument_1): Likewise.
1021 (stap_parse_argument): Use parser state.
1022 * stap-probe.h: Include "parser-defs.h".
1023 (struct stap_parse_info) <pstate>: New field.
1024 * c-exp.y (parse_type): Rewrite to use parser state.
1025 (yyparse): Redefine to c_parse_internal.
1026 (pstate): New global variable.
1027 (parse_number): Add "struct parser_state" argument.
1028 (write_destructor_name): Likewise.
1029 (type_exp): Update calls to write_exp* and similars in order to
1031 (exp1, exp, variable, qualified_name, space_identifier,
1032 typename, typebase): Likewise.
1033 (write_destructor_name, parse_number, lex_one_token,
1034 classify_name, classify_inner_name, c_parse): Add "struct
1035 parser_state" argument. Update function to use parser state.
1036 * c-lang.h: Forward declare "struct parser_state".
1037 (c_parse): Add "struct parser_state" argument.
1038 * ada-exp.y (parse_type): Rewrite macro to use parser state.
1039 (yyparse): Redefine macro to ada_parse_internal.
1040 (pstate): New variable.
1041 (write_int, write_object_renaming, write_var_or_type,
1042 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
1043 type_int, type_long, type_long_long, type_float, type_double,
1044 type_long_double, type_char, type_boolean, type_system_address):
1045 Add "struct parser_state" argument.
1046 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
1047 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
1048 var_or_type, aggregate, aggregate_component_list,
1049 positional_list, others, component_group,
1050 component_associations): Update calls to write_exp* and similar
1051 functions in order to use parser state.
1052 (ada_parse, write_var_from_sym, write_int,
1053 write_exp_op_with_string, write_object_renaming,
1054 find_primitive_type, write_selectors, write_ambiguous_var,
1055 write_var_or_type, write_name_assoc, type_int, type_long,
1056 type_long_long, type_float, type_double, type_long_double,
1057 type_char, type_boolean, type_system_address): Add "struct
1058 parser_state" argument. Adjust function to use parser state.
1059 * ada-lang.c (parse): Likewise.
1060 * ada-lang.h: Forward declare "struct parser_state".
1061 (ada_parse): Add "struct parser_state" argument.
1062 * ada-lex.l (processInt, processReal): Likewise. Adjust all
1063 calls to both functions.
1064 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
1066 (yyparse): Redefine macro to f_parse_internal.
1067 (pstate): New variable.
1068 (parse_number): Add "struct parser_state" argument.
1069 (type_exp, exp, subrange, typebase): Update calls to write_exp*
1070 and similars in order to use parser state.
1071 (parse_number): Adjust code to use parser state.
1073 (f_parse): New function.
1074 * f-lang.h: Forward declare "struct parser_state".
1075 (f_parse): Add "struct parser_state" argument.
1076 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
1078 (yyparse): Redefine macro for java_parse_internal.
1079 (pstate): New variable.
1080 (push_expression_name, push_expression_name, insert_exp): Add
1081 "struct parser_state" argument.
1082 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
1083 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
1084 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
1085 PostIncrementExpression, PostDecrementExpression,
1086 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
1087 UnaryExpressionNotPlusMinus, CastExpression,
1088 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
1089 RelationalExpression, EqualityExpression, AndExpression,
1090 ExclusiveOrExpression, InclusiveOrExpression,
1091 ConditionalAndExpression, ConditionalOrExpression,
1092 ConditionalExpression, Assignment, LeftHandSide): Update
1093 calls to write_exp* and similars in order to use parser state.
1094 (parse_number): Ajust code to use parser state.
1096 (java_parse): New function.
1097 (push_variable): Add "struct parser_state" argument. Adjust
1098 code to user parser state.
1099 (push_fieldnames, push_qualified_expression_name,
1100 push_expression_name, insert_exp): Likewise.
1101 * jv-lang.h: Forward declare "struct parser_state".
1102 (java_parse): Add "struct parser_state" argument.
1103 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
1105 (yyparse): Redefine macro to m2_parse_internal.
1106 (pstate): New variable.
1107 (type_exp, exp, fblock, variable, type): Update calls to
1108 write_exp* and similars to use parser state.
1110 (m2_parse): New function.
1111 * m2-lang.h: Forward declare "struct parser_state".
1112 (m2_parse): Add "struct parser_state" argument.
1113 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
1114 * objc-lang.h: Forward declare "struct parser_state".
1115 (end_msglist): Add "struct parser_state" argument.
1116 * p-exp.y (parse_type): Rewrite macro to use parser state.
1117 (yyparse): Redefine macro to pascal_parse_internal.
1118 (pstate): New variable.
1119 (parse_number): Add "struct parser_state" argument.
1120 (type_exp, exp1, exp, qualified_name, variable): Update calls to
1121 write_exp* and similars in order to use parser state.
1122 (parse_number, yylex): Adjust code to use parser state.
1123 (pascal_parse): New function.
1124 * p-lang.h: Forward declare "struct parser_state".
1125 (pascal_parse): Add "struct parser_state" argument.
1126 * go-exp.y (parse_type): Rewrite macro to use parser state.
1127 (yyparse): Redefine macro to go_parse_internal.
1128 (pstate): New variable.
1129 (parse_number): Add "struct parser_state" argument.
1130 (type_exp, exp1, exp, variable, type): Update calls to
1131 write_exp* and similars in order to use parser state.
1132 (parse_number, lex_one_token, classify_name, yylex): Adjust code
1133 to use parser state.
1134 (go_parse): Likewise.
1135 * go-lang.h: Forward declare "struct parser_state".
1136 (go_parse): Add "struct parser_state" argument.
1138 2014-03-27 Doug Evans <dje@google.com>
1140 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
1142 2014-03-27 Doug Evans <dje@google.com>
1144 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
1145 Remove argument abbrev_section. All callers updated.
1147 2014-03-27 Doug Evans <dje@google.com>
1149 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
1150 addr_base, ranges_base.
1152 2014-03-26 Keith Seitz <keiths@redhat.com>
1154 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
1155 types, not VAR_DOMAIN.
1157 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
1159 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
1161 * features/nios2-linux.c: Regenerated.
1162 * features/nios2.c: Regenerated.
1164 2014-03-25 Pedro Alves <palves@redhat.com>
1166 * cli/cli-script.c (script_from_file): Force the interpreter to
1169 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
1171 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
1172 small stack allocation.
1174 2014-03-24 Tristan Gingold <gingold@adacore.com>
1176 * darwin-nat.c (exc_server): Remove unused prototype.
1177 (darwin_dump_message): Correctly display data on x86_64.
1178 (darwin_encode_reply): Fix style.
1179 Add comments and fix indentation.
1181 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
1183 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
1185 2014-03-22 Doug Evans <xdje42@gmail.com>
1187 * infcmd.c: Whitespace fixes.
1188 (interrupt_command): Merge two function comments into one.
1190 2014-03-22 Doug Evans <xdje42@gmail.com>
1192 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
1195 2014-03-22 Yao Qi <yao@codesourcery.com>
1197 * remote.c (target_read_live_memory): Remove.
1198 (memory_xfer_live_readonly_partial): Rename it to
1199 remote_xfer_live_readonly_partial. Remove argument 'object'.
1200 All callers updated. Call remote_read_bytes_1
1201 instead of target_read_live_memory.
1202 * tracepoint.c (set_traceframe_number): Remove.
1203 (make_cleanup_restore_traceframe_number): Likewise .
1204 * tracepoint.h (set_traceframe_number): Remove declaration.
1205 (make_cleanup_restore_traceframe_number): Likewise.
1207 2014-03-22 Yao Qi <yao@codesourcery.com>
1209 * remote.c (remote_read_bytes): Move code on reading from the
1211 (remote_read_bytes_1): ... here. New function.
1213 2014-03-22 Yao Qi <yao@codesourcery.com>
1215 * ctf.c (ctf_xfer_partial): Check the return value of
1216 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
1217 return TARGET_XFER_UNAVAILABLE.
1218 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
1219 * target.c (target_read_live_memory): Move it to remote.c.
1220 (memory_xfer_live_readonly_partial): Likewise.
1221 (memory_xfer_partial_1): Move some code to remote_read_bytes.
1222 * remote.c (target_read_live_memory): Moved from target.c.
1223 (memory_xfer_live_readonly_partial): Likewise.
1224 (remote_read_bytes): Factored out from
1225 memory_xfer_partial_1.
1227 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
1229 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
1232 2014-03-21 Pedro Alves <palves@redhat.com>
1234 * infrun.c (normal_stop): Extend comment.
1236 2014-03-21 Hui Zhu <hui@codesourcery.com>
1237 Pedro Alves <palves@redhat.com>
1239 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
1241 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
1242 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
1243 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
1245 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
1247 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
1248 `z' formatted output modifier.
1250 2014-03-20 Tom Tromey <tromey@redhat.com>
1251 Sergio Durigan Junior <sergiodj@redhat.com>
1253 * probe.c (parse_probes): Turn assert into an ordinary error.
1254 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
1255 exceptions when parsing probes. Rearrange the code for clarity.
1257 2014-03-20 Tom Tromey <tromey@redhat.com>
1260 * top.c (execute_command): Only dispatch events if the command
1263 2014-03-20 Tom Tromey <tromey@redhat.com>
1266 * infcall.c: Include event-top.h.
1267 (run_inferior_call): Call async_disable_stdin if needed.
1269 2014-03-20 Pedro Alves <palves@redhat.com>
1271 * infrun.c (prepare_to_proceed): Delete.
1272 (thread_still_needs_step_over): New function.
1273 (find_thread_needs_step_over): New function.
1274 (proceed): If the current thread needs a step-over, set its
1275 steping_over_breakpoint flag. Adjust to use
1276 find_thread_needs_step_over instead of prepare_to_proceed.
1277 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
1278 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
1280 (switch_back_to_stepped_thread): Step over breakpoints of all
1281 threads not the stepping thread, before switching back to the
1284 2014-03-20 Pedro Alves <palves@redhat.com>
1286 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
1288 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
1289 * infrun.c (saved_singlestep_ptid)
1290 (stepping_past_singlestep_breakpoint): Delete.
1291 (resume): Remove stepping_past_singlestep_breakpoint handling.
1292 (proceed): Store the prev_pc of the stepping thread too.
1293 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
1295 (enum infwait_states): Delete infwait_thread_hop_state.
1296 (struct execution_control_state) <hit_singlestep_breakpoint>: New
1298 (handle_inferior_event): Adjust.
1299 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
1300 handling and the thread-hop code. Before removing single-step
1301 breakpoints, check whether the thread hit a single-step breakpoint
1302 of another thread. If it did, the trap is not a random signal.
1303 (switch_back_to_stepped_thread): If the event thread hit a
1304 single-step breakpoint, unblock it before switching to the
1305 stepping thread. Handle the case of the stepped thread having
1307 (keep_going): Handle the case of the current thread moving past a
1308 single-step breakpoint.
1310 2014-03-20 Pedro Alves <palves@redhat.com>
1313 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
1314 are being stepped over.
1315 (breakpoint_address_match): Make extern.
1316 * breakpoint.h (breakpoint_address_match): New declaration.
1317 * inferior.h (stepping_past_instruction_at): New declaration.
1318 * infrun.c (struct step_over_info): New type.
1319 (step_over_info): New global.
1320 (set_step_over_info, clear_step_over_info)
1321 (stepping_past_instruction_at): New functions.
1322 (handle_inferior_event): Clear the step-over info when
1323 trap_expected is cleared.
1324 (resume): Remove now stale comment.
1325 (clear_proceed_status): Clear step-over info.
1326 (proceed): Adjust step-over handling to set or clear the step-over
1327 info instead of removing all breakpoints.
1328 (handle_signal_stop): When setting up a thread-hop, don't remove
1330 (stop_stepping): Clear step-over info.
1331 (keep_going): Adjust step-over handling to set or clear step-over
1332 info and then always inserting breakpoints, instead of removing
1333 all breakpoints when stepping over one.
1335 2014-03-20 Pedro Alves <palves@redhat.com>
1337 * infrun.c (previous_inferior_ptid): Adjust comment.
1338 (deferred_step_ptid): Delete.
1339 (infrun_thread_ptid_changed, prepare_to_proceed)
1340 (init_wait_for_inferior): Adjust.
1341 (handle_signal_stop): Delete deferred_step_ptid handling.
1343 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1346 * defs.h (sync_quit_force_run): New declaration.
1347 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
1348 * event-top.c (async_sigterm_handler): New declaration.
1349 (async_sigterm_token): New variable.
1350 (async_init_signals): Create also async_sigterm_token.
1351 (async_sigterm_handler): New function.
1352 (sync_quit_force_run): New variable.
1353 (handle_sigterm): Replace quit_force call by other calls.
1354 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
1356 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
1358 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
1359 offset into SPE pseudo registers.
1361 2014-03-18 Pedro Alves <palves@redhat.com>
1364 * inferior.h (print_stop_event): Declare.
1365 * infrun.c (print_stop_event): New, factored out from ...
1366 (normal_stop): ... this.
1367 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
1368 of bpstat_print/print_stack_frame.
1370 2014-03-17 Tom Tromey <tromey@redhat.com>
1372 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
1374 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
1376 * ada-lang.c (decode_constrained_packed_array): Perform a
1377 minimal coercion for reference with coerce_ref instead of
1380 2014-03-17 Tristan Gingold <gingold@adacore.com>
1382 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
1383 (darwin_solib_create_inferior_hook): Emit a warning if version
1386 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
1388 * python/py-value.c (get_field_flag): Cast flag_name argument to
1389 PyObject_GetAttrString to support Python 2.4.
1391 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1393 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
1394 (Global Maintainers): Remove Jan Kratochvil.
1396 2014-03-14 Pedro Alves <palves@redhat.com>
1398 * inferior.h (terminal_ours_for_output): Rename to ...
1399 (child_terminal_ours_for_output): ... this.
1400 (terminal_save_ours): Rename to ...
1401 (child_terminal_save_ours): ... this.
1402 (terminal_ours): Rename to ...
1403 (child_terminal_ours): ... this.
1404 (terminal_inferior): Rename to ...
1405 (child_terminal_inferior): ... this.
1406 (terminal_init_inferior): Rename to ...
1407 (child_terminal_init_inferior): ... this.
1408 (terminal_init_inferior_with_pgrp): Rename to ...
1409 (child_terminal_init_inferior_with_pgrp): ... this.
1410 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
1411 (child_terminal_init_with_pgrp): ... this.
1412 (terminal_save_ours): Rename to ...
1413 (child_terminal_save_ours): ... this.
1414 (terminal_init_inferior): Rename to ...
1415 (child_terminal_init): ... this. Adjust.
1416 (terminal_inferior): Rename to ...
1417 (child_terminal_inferior): ... this.
1418 (terminal_ours_for_output): Rename to ...
1419 (child_terminal_ours_for_output): ... this. Adjust.
1420 (terminal_ours): Rename to ...
1421 (child_terminal_ours): ... this.
1422 (terminal_ours_1): Rename to ...
1423 (child_terminal_ours_1): ... this. Adjust.
1424 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
1425 * windows-nat.c (do_initial_windows_stuff): Adjust.
1426 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
1427 (gnu_terminal_init): ... this. Adjust.
1428 (gnu_target): Adjust.
1429 * inf-child.c (inf_child_target): Adjust.
1431 2014-03-13 Doug Evans <xdje42@gmail.com>
1434 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
1437 2014-03-13 Doug Evans <xdje42@gmail.com>
1439 * value.c (record_latest_value): Call release_value_or_incref
1440 instead of release_value.
1442 2014-03-13 Pedro Alves <palves@redhat.com>
1444 * procfs.c (procfs_target): Don't override to_shortname,
1445 to_longname or to_doc.
1447 2014-03-13 Pedro Alves <palves@redhat.com>
1449 * inf-child.c (inf_child_open, inf_child_target): Don't mention
1450 Unix in user visible strings.
1452 2014-03-12 Stan Shebs <stan@codesourcery.com>
1454 * gdbtypes.h: Annotate comments for Doxygen, add a page
1455 block comment with some general info.
1457 2014-03-12 Pedro Alves <palves@redhat.com>
1459 * infcmd.c (prepare_execution_command): New function, factored out
1460 from several execution commands.
1461 (run_command_1, continue_command, step_1, jump_command)
1462 (signal_command, until_command, advance_command, finish_command)
1463 (attach_command): Use prepare_execution_command.
1465 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
1467 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
1470 (struct arm_linux_thread_points): Removed.
1471 (struct arm_linux_process_info): New.
1472 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
1473 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
1474 (arm_linux_find_breakpoints_by_tid): Removed.
1475 (struct arch_lwp_info): New.
1476 (arm_linux_find_process_pid): New functions.
1477 (arm_linux_add_process): New functions.
1478 (arm_linux_process_info_get): New functions.
1479 (arm_linux_forget_process): New function.
1480 (arm_linux_get_debug_reg_state): New function.
1481 (struct update_registers_data): New.
1482 (update_registers_callback): New function.
1483 (arm_linux_insert_hw_breakpoint1): Updated.
1484 (arm_linux_remove_hw_breakpoint1): Updated.
1485 (arm_linux_insert_hw_breakpoint): Updated.
1486 (arm_linux_remove_hw_breakpoint): Updated.
1487 (arm_linux_insert_watchpoint): Updated.
1488 (arm_linux_remove_watchpoint): Updated.
1489 (arm_linux_new_thread): Updated.
1490 (arm_linux_prepare_to_resume): New function.
1491 (arm_linux_new_fork): New function.
1492 (_initialize_arm_linux_nat): Updated.
1494 2014-03-12 Pedro Alves <palves@redhat.com>
1496 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
1498 2014-03-12 Tom Tromey <tromey@redhat.com>
1500 * inf-child.c (return_zero): New function.
1501 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
1502 * aix-thread.c (aix_thread_inferior_created): New function.
1503 (aix_thread_attach): Remove.
1504 (init_aix_thread_ops): Don't set to_attach.
1505 (_initialize_aix_thread): Register inferior_created observer.
1506 * corelow.c (init_core_ops): Don't set to_attach or
1508 * exec.c (init_exec_ops): Don't set to_attach or
1510 * infcmd.c (run_command_1): Use find_run_target. Make direct
1512 (attach_command): Use find_attach_target. Make direct target
1514 * record-btrace.c (init_record_btrace_ops): Don't set
1516 * record-full.c (record_full_can_async_p, record_full_is_async_p):
1518 (init_record_full_ops, init_record_full_core_ops): Update. Don't
1519 set to_create_inferior.
1520 * target.c (complete_target_initialization): Add assertion.
1521 (target_create_inferior): Remove.
1522 (find_default_attach, find_default_create_inferior): Remove.
1523 (find_attach_target, find_run_target): New functions.
1524 (find_default_is_async_p, find_default_can_async_p)
1525 (target_supports_non_stop, target_attach): Remove.
1526 (init_dummy_target): Don't set to_create_inferior or
1527 to_supports_non_stop.
1528 * target.h (struct target_ops) <to_attach>: Add comment. Remove
1529 TARGET_DEFAULT_FUNC.
1530 <to_create_inferior>: Add comment.
1531 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
1532 TARGET_DEFAULT_RETURN.
1533 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
1534 (find_attach_target, find_run_target): Declare.
1535 (target_create_inferior): Remove.
1536 (target_has_execution_1): Update comment.
1537 (target_supports_non_stop): Remove.
1538 * target-delegates.c: Rebuild.
1540 2014-03-12 Pedro Alves <palves@redhat.com>
1542 * inf-child.h: Update comment to not mention Unix.
1544 2014-03-12 Pedro Alves <palves@redhat.com>
1546 * inf-child.c: Update top comment to not mention Unix. Add
1547 generic comment describing how this target is meant to be used.
1548 (inf_child_post_attach, inf_child_post_startup_inferior)
1549 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
1552 2014-03-12 Pedro Alves <palves@redhat.com>
1554 * nto-procfs.c: Include inf-child.h.
1555 (procfs_ops): Delete global.
1556 (procfs_can_run): Delete method.
1557 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
1558 target pointer instead of referencing procfs_ops.
1559 (procfs_prepare_to_store): Delete.
1560 (init_procfs_ops): Delete function.
1561 (procfs_target): New function, based on init_procfs_ops, but
1562 inherit inf_child_target.
1563 (_initialize_procfs): Use procfs_target.
1565 2014-03-12 Pedro Alves <palves@redhat.com>
1567 * windows-nat.c: Include inf-child.h.
1568 (windows_ops): Delete global.
1569 (windows_open, windows_prepare_to_store, windows_can_run): Delete
1571 (init_windows_ops): Delete function.
1572 (windows_target): New function, based on init_windows_ops, but
1573 inherit inf_child_target.
1574 (_initialize_windows_nat): Use windows_target. Install x86
1575 specific target methods here.
1577 2014-03-10 Doug Evans <xdje42@gmail.com>
1579 * guile/guile.c (call_initialize_gdb_module): New function.
1580 (initialize_guile): Replace call to scm_init_guile with call to
1583 2014-03-10 Joel Brobecker <brobecker@adacore.com>
1585 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
1586 in call to TYPE_CODE macro.
1588 2014-03-10 Jerome Guitton <guitton@adacore.com>
1590 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
1591 Resolve tagged types to full view.
1593 2014-03-10 Hui Zhu <hui@codesourcery.com>
1595 * target.h (target_insert_breakpoint): Remove "hardware" from its
1598 2014-03-07 Doug Evans <dje@google.com>
1600 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
1602 2014-03-07 Doug Evans <dje@google.com>
1604 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
1605 Remove unused local comp_dir_attr. Assert exactly one of
1606 stub_comp_unit_die, stub_comp_dir is non-NULL.
1608 2014-03-07 Joel Brobecker <brobecker@adacore.com>
1610 * target.h (complete_target_initialization, add_target):
1613 2014-03-07 Pedro Alves <palves@redhat.com>
1615 * go32-nat.c: Include inf-child.h.
1616 (go32_ops): Delete global.
1617 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
1619 (go32_create_inferior): Push the passed in target pointer instead
1620 of referencing go32_ops.
1621 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
1622 (go32_target): New function, based on init_go32_ops, but inherit
1624 (_initialize_go32_nat): Use go32_target. Move parts of
1627 2014-03-06 Joel Brobecker <brobecker@adacore.com>
1629 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
1630 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
1631 SYMBOL_VALUE_ADDRESS.
1632 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
1634 2014-03-06 Yao Qi <yao@codesourcery.com>
1636 * breakpoint.c (get_tracepoint_by_number): Remove argument
1637 optional_p. All callers updated. Adjust comments. Update
1639 * breakpoint.h (get_tracepoint_by_number): Update declaration.
1641 2014-03-06 Yao Qi <yao@codesourcery.com>
1643 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
1644 early if get_number returns zero. Use 'p' instead of 'args'.
1646 2014-03-06 Yao Qi <yao@codesourcery.com>
1648 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
1651 2014-03-06 Yao Qi <yao@codesourcery.com>
1653 PR breakpoints/16508
1654 * tracepoint.c (check_trace_running): New function.
1655 (trace_find_command): Move code to check_trace_running and
1656 call check_trace_running.
1657 (trace_find_pc_command): Likewise.
1658 (trace_find_tracepoint_command): Likewise.
1659 (trace_find_line_command): Likewise.
1660 (trace_find_range_command): Likewise.
1661 * tracepoint.h (check_trace_running): Likewise.
1662 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
1664 2014-03-06 Yao Qi <yao@codesourcery.com>
1666 * target.h (struct target_ops) <to_traceframe_info>: Use
1667 TARGET_DEFAULT_NORETURN (tcomplain ()).
1668 * target-delegates.c: Regenerated.
1670 2014-03-05 Pedro Alves <palves@redhat.com>
1673 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
1674 void. Update comment.
1675 (dcache_xfer_memory): Delete.
1676 (dcache_read_memory_partial): New, based on the read bits of
1678 (dcache_update): Add status parameter. Use ULONGEST for len, and
1679 adjust. Discard cache lines if the reason for the update was
1681 * dcache.h (dcache_xfer_memory): Delete declaration.
1682 (dcache_read_memory_partial): New declaration.
1683 (dcache_update): Update prototype.
1684 * target.c (raw_memory_xfer_partial): Update the dcache here.
1685 (memory_xfer_partial_1): Don't handle dcache writes here.
1687 2014-03-05 Mike Frysinger <vapier@gentoo.org>
1689 * remote-sim.c (gdbsim_load): Add const to prog.
1691 2014-03-03 Tom Tromey <tromey@redhat.com>
1693 * elfread.c (probe_key): Change to bfd_data.
1694 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
1695 now per-BFD, not per-objfile.
1696 * stap-probe.c (stap_probe_destroy): Update comment.
1697 (handle_stap_probe): Allocate on the per-BFD obstack.
1699 2014-03-03 Tom Tromey <tromey@redhat.com>
1701 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
1702 * breakpoint.c (create_longjmp_master_breakpoint): Use
1704 (add_location_to_breakpoint, bkpt_probe_insert_location)
1705 (bkpt_probe_remove_location): Update.
1706 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
1707 * elfread.c (elf_symfile_relocate_probe): Remove.
1708 (elf_probe_fns): Update.
1709 (insert_exception_resume_breakpoint): Change type of "probe"
1710 parameter to bound_probe.
1711 (check_exception_resume): Update.
1712 * objfiles.c (objfile_relocate1): Don't relocate probes.
1713 * probe.c (bound_probe_s): New typedef.
1714 (parse_probes): Use get_probe_address. Set sal's objfile.
1715 (find_probe_by_pc): Return a bound_probe.
1716 (collect_probes): Return a VEC(bound_probe_s).
1717 (compare_probes): Update.
1718 (gen_ui_out_table_header_info): Change type of "probes"
1720 (info_probes_for_ops): Update.
1721 (get_probe_address): New function.
1722 (probe_safe_evaluate_at_pc): Update.
1723 * probe.h (struct probe_ops) <get_probe_address>: New field.
1724 <set_semaphore, clear_semaphore>: Add objfile parameter.
1725 (struct probe) <objfile>: Remove field.
1727 <address>: Update comment.
1728 (struct bound_probe): New.
1729 (find_probe_by_pc): Return a bound_probe.
1730 (get_probe_address): Declare.
1731 * solib-svr4.c (struct probe_and_action) <address>: New field.
1732 (hash_probe_and_action, equal_probe_and_action): Update.
1733 (register_solib_event_probe): Add address parameter.
1734 (solib_event_probe_at): Update.
1735 (svr4_create_probe_breakpoints): Add objfile parameter. Use
1737 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
1738 (stap_get_probe_address): New function.
1739 (stap_can_evaluate_probe_arguments, compute_probe_arg)
1740 (compile_probe_arg): Update.
1741 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
1743 (handle_stap_probe): Don't relocate the probe.
1744 (stap_relocate): Remove.
1745 (stap_gen_info_probes_table_values): Update.
1746 (stap_probe_ops): Remove stap_relocate.
1747 * symfile-debug.c (debug_sym_relocate_probe): Remove.
1748 (debug_sym_probe_fns): Update.
1749 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
1750 * symtab.c (init_sal): Use memset.
1751 * symtab.h (struct symtab_and_line) <objfile>: New field.
1752 * tracepoint.c (start_tracing, stop_tracing): Update.
1754 2014-03-03 Tom Tromey <tromey@redhat.com>
1756 * probe.h (parse_probes, find_probe_by_pc)
1757 (find_probes_in_objfile): Fix comments.
1759 2014-03-02 Doug Evans <xdje42@gmail.com>
1761 * infrun.c (handle_signal_stop): Replace test for
1762 TARGET_WAITKIND_STOPPED with an assert.
1764 2014-03-02 Doug Evans <xdje42@gmail.com>
1766 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
1768 2014-03-02 Doug Evans <xdje42@gmail.com>
1770 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
1772 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1774 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
1776 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1778 * i386obsd-nat.c: Include "obsd-nat.h".
1779 (_initialize_i386obsd_nat): Call obsd_add_target instead of
1781 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
1783 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1785 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
1787 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1789 * mips64obsd-nat.c: Include "obsd-nath".
1790 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
1792 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
1794 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1796 * amd64obsd-nat.c: Include "obsd-nat,h.
1797 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
1799 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
1801 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
1803 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
1804 (find_overload_match): Update call to find_oload_champ.
1805 (find_oload_champ_namespace_loop): Likewise
1807 2014-02-28 Mark Kettenis <kettenis@gnu.org>
1809 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
1811 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
1812 * config/sparc/obsd64.mh: New file.
1813 * sparc64obsd-nat.c: New file.
1815 * obsd-nat.h: New file.
1816 * obsd-nat.c: New file.
1817 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
1818 (ALLDEPFILES): Add obsd-nat.c.
1820 2014-02-28 Tom Tromey <tromey@redhat.com>
1822 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
1823 * cli-out.h (cli_ui_out_impl): Now const.
1824 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
1825 * ui-out.c (struct ui_out) <impl>: Now const.
1826 (default_ui_out_impl): Now const.
1827 (ui_out_new): Make 'impl' parameter const.
1828 * ui-out.h (ui_out_new): Update.
1830 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1832 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
1834 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1836 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
1838 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1840 Additional PR 8882 fix.
1841 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
1843 2014-02-27 Pedro Alves <palves@redhat.com>
1845 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
1848 2014-02-27 Pedro Alves <palves@redhat.com>
1851 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
1852 * nat/linux-waitpid.c: Include string.h.
1853 (status_to_str): Moved here and made extern.
1854 * nat/linux-waitpid.h (status_to_str): New declaration.
1856 2014-02-27 Hui Zhu <hui@codesourcery.com>
1859 * infrun.c (ptid_match): Move ...
1860 * common/ptid.c (ptid_match): ... here.
1861 * inferior.h (ptid_match): Move ...
1862 * common/ptid.h (ptid_match): ... here.
1864 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1866 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
1867 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
1870 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1872 * obsd-tdep.c (obsd_auxv_parse): New function.
1873 (obsd_init_abi): Set auxv_parse.
1875 * gdbarch.sh (auxv_parse): New.
1876 * gdbarch.h: Regenerated.
1877 * gdbarch.c: Regenerated.
1878 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
1880 2014-02-26 Ludovic Courtès <ludo@gnu.org>
1882 * guile/scm-value.c (gdbscm_history_append_x): New function.
1883 (value_functions): Add it.
1885 2014-02-27 Joel Brobecker <brobecker@adacore.com>
1887 * dwarf2read.c (attr_value_as_address): New function.
1888 (dwarf2_find_base_address, read_call_site_scope): Use
1889 attr_value_as_address in place of DW_ADDR.
1890 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
1891 the low and high addresses. Slight rework of the handling
1892 of the high pc being a constant form, and limit it to
1893 DWARF verson 4 or higher.
1894 (dwarf2_record_block_ranges): Likewise.
1895 (read_partial_die): Likewise.
1896 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
1898 2014-02-26 Tom Tromey <tromey@redhat.com>
1900 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
1902 2014-02-26 Tom Tromey <tromey@redhat.com>
1904 * elfread.c (elf_read_minimal_symbols): Return early if
1905 minimal symbols have already been read. Add "ei" parameter.
1906 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
1907 * minsyms.c (prim_record_minimal_symbol_full): Update.
1908 * objfiles.h (struct objstats) <n_minsyms>: Move...
1909 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
1910 * symmisc.c (print_objfile_statistics): Update.
1912 2014-02-26 Tom Tromey <tromey@redhat.com>
1914 * elfread.c (elf_read_minimal_symbols): New function, from
1916 (elf_symfile_read): Call it.
1918 2014-02-26 Tom Tromey <tromey@redhat.com>
1920 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
1921 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
1922 (lookup_minimal_symbol_solib_trampoline)
1923 (lookup_minimal_symbol_by_pc_section_1)
1924 (lookup_minimal_symbol_and_objfile): Update.
1925 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
1926 Don't allocate a minimal symbol if minsyms have already been read.
1927 (build_minimal_symbol_hash_tables): Update.
1928 (install_minimal_symbols): Do nothing if minsyms already read.
1929 Use the per-BFD obstack.
1930 (terminate_minimal_symbol_table): Use the per-BFD obstack.
1931 * objfiles.c (allocate_objfile): Call
1932 terminate_minimal_symbol_table later.
1933 (have_minimal_symbols): Update.
1934 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
1935 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
1936 Move from struct objfile.
1937 <minsyms_read>: New field.
1938 (struct objfile) <msymbols, minimal_symbol_count,
1939 msymbol_hash, msymbol_demangled_hash>: Move.
1940 (ALL_OBJFILE_MSYMBOLS): Update.
1941 * symfile.c (read_symbols): Set minsyms_read.
1942 (reread_symbols): Update.
1943 * symmisc.c (dump_objfile, dump_msymbols): Update.
1945 2014-02-26 Tom Tromey <tromey@redhat.com>
1947 * minsyms.c (msymbols_sort): Remove.
1948 * minsyms.h (msymbols_sort): Remove.
1949 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
1950 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
1951 * elfread.c (elf_symtab_read): Don't add section offsets.
1952 * xcoffread.c (record_minimal_symbol): Don't add section offset
1953 to minimal symbol address.
1954 * somread.c (text_offset, data_offset): Remove.
1955 (som_symtab_read): Don't add section offsets to minimal symbol
1957 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
1958 Don't add section offsets to minimal symbols.
1959 * coffread.c (coff_symtab_read): Don't add section offsets
1960 to minimal symbol addresses.
1961 * machoread.c (macho_symtab_add_minsym): Don't add section offset
1962 to minimal symbol addresses.
1963 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
1964 section offset to minimal symbol addresses.
1965 * mdebugread.c (parse_partial_symbols): Don't add section
1966 offset to minimal symbol addresses.
1967 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
1968 offset to minimal symbol addresses.
1970 2014-02-26 Tom Tromey <tromey@redhat.com>
1972 * ada-lang.c (ada_main_name): Update.
1973 (ada_add_standard_exceptions): Update.
1974 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
1975 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
1976 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
1977 * auxv.c (ld_so_xfer_auxv): Update.
1978 * avr-tdep.c (avr_scan_prologue): Update.
1979 * ax-gdb.c (gen_var_ref): Update.
1980 * blockframe.c (get_pc_function_start)
1981 (find_pc_partial_function_gnu_ifunc): Update.
1982 * breakpoint.c (create_overlay_event_breakpoint)
1983 (create_longjmp_master_breakpoint)
1984 (create_std_terminate_master_breakpoint)
1985 (create_exception_master_breakpoint): Update.
1986 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
1987 * c-valprint.c (c_val_print): Update.
1988 * coff-pe-read.c (add_pe_forwarded_sym): Update.
1989 * common/agent.c (agent_look_up_symbols): Update.
1990 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
1991 * dwarf2loc.c (call_site_to_target_addr): Update.
1992 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
1993 * elfread.c (elf_gnu_ifunc_record_cache)
1994 (elf_gnu_ifunc_resolve_by_got): Update.
1995 * findvar.c (default_read_var_value): Update.
1996 * frame.c (inside_main_func): Update.
1997 * frv-tdep.c (frv_frame_this_id): Update.
1998 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
1999 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2001 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
2002 (hppa_hpux_find_dummy_bpaddr): Update.
2003 * hppa-tdep.c (hppa_symbol_address): Update.
2004 * infcmd.c (until_next_command): Update.
2005 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
2007 * linespec.c (minsym_found, add_minsym): Update.
2008 * linux-nat.c (get_signo): Update.
2009 * linux-thread-db.c (inferior_has_bug): Update.
2010 * m32c-tdep.c (m32c_return_value)
2011 (m32c_m16c_address_to_pointer): Update.
2012 * m32r-tdep.c (m32r_frame_this_id): Update.
2013 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2014 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2015 * maint.c (maintenance_translate_address): Update.
2016 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
2017 (frob_address): New function.
2018 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
2019 frob_address. Rename parameter to "pc_in".
2020 (compare_minimal_symbols, compact_minimal_symbols): Use raw
2022 (find_solib_trampoline_target, minimal_symbol_upper_bound):
2024 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2025 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
2026 * objc-lang.c (find_objc_msgsend): Update.
2027 * objfiles.c (objfile_relocate1): Update.
2028 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2029 * p-valprint.c (pascal_val_print): Update.
2030 * parse.c (write_exp_msymbol): Update.
2031 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
2032 (ppc_elfv2_skip_entrypoint): Update.
2033 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2034 * printcmd.c (build_address_symbolic, msym_info)
2035 (address_info): Update.
2036 * proc-service.c (ps_pglobal_lookup): Update.
2037 * psymtab.c (find_pc_sect_psymtab_closer)
2038 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
2039 Change msymbol parameter to bound_minimal_symbol.
2040 * ravenscar-thread.c (get_running_thread_id): Update.
2041 * remote.c (remote_check_symbols): Update.
2042 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
2044 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2045 * solib-dsbt.c (lm_base): Update.
2046 * solib-frv.c (lm_base, main_got): Update.
2047 * solib-irix.c (locate_base): Update.
2048 * solib-som.c (som_solib_create_inferior_hook)
2049 (link_map_start): Update.
2050 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
2051 * solib-svr4.c (elf_locate_base, enable_break): Update.
2052 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2053 (flush_ea_cache): Update.
2054 * stabsread.c (define_symbol, scan_file_globals): Update.
2055 * stack.c (find_frame_funname): Update.
2056 * symfile-debug.c (debug_qf_expand_symtabs_matching)
2057 (debug_qf_find_pc_sect_symtab): Update.
2058 * symfile.c (simple_read_overlay_table)
2059 (simple_overlay_update): Update.
2060 * symfile.h (struct quick_symbol_functions)
2061 <find_pc_sect_symtab>: Change type of msymbol to
2062 bound_minimal_symbol.
2063 * symmisc.c (dump_msymbols): Update.
2064 * symtab.c (find_pc_sect_symtab_via_partial)
2065 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
2066 (search_symbols, print_msymbol_info): Update.
2067 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
2068 (MSYMBOL_VALUE_ADDRESS): Redefine.
2069 (BMSYMBOL_VALUE_ADDRESS): New macro.
2070 * tracepoint.c (scope_info): Update.
2071 * tui/tui-disasm.c (tui_find_disassembly_address)
2072 (tui_get_begin_asm_address): Update.
2073 * valops.c (find_function_in_inferior): Update.
2074 * value.c (value_static_field, value_fn_field): Update.
2076 2014-02-26 Tom Tromey <tromey@redhat.com>
2078 * ada-lang.c (ada_update_initial_language): Update.
2079 (ada_main_name, ada_has_this_exception_support): Update.
2080 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
2081 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2082 * arm-tdep.c (arm_skip_stub): Update.
2083 * auxv.c (ld_so_xfer_auxv): Update.
2084 * avr-tdep.c (avr_scan_prologue): Update.
2085 * ax-gdb.c (gen_var_ref): Update.
2086 * breakpoint.c (struct breakpoint_objfile_data)
2087 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
2088 type to bound_minimal_symbol.
2089 (create_overlay_event_breakpoint)
2090 (create_longjmp_master_breakpoint)
2091 (create_std_terminate_master_breakpoint)
2092 (create_exception_master_breakpoint): Update.
2093 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2094 * c-exp.y (classify_name): Update.
2095 * coffread.c (coff_symfile_read): Update.
2096 * common/agent.c (agent_look_up_symbols): Update.
2097 * d-lang.c (d_main_name): Update.
2098 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
2099 * dec-thread.c (enable_dec_thread): Update.
2100 * dwarf2loc.c (call_site_to_target_addr): Update.
2101 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
2102 * eval.c (evaluate_subexp_standard): Update.
2103 * findvar.c (struct minsym_lookup_data) <result>: Change type
2104 to bound_minimal_symbol.
2106 (minsym_lookup_iterator_cb, default_read_var_value): Update.
2107 * frame.c (inside_main_func): Update.
2108 * frv-tdep.c (frv_frame_this_id): Update.
2109 * gcore.c (call_target_sbrk): Update.
2110 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2111 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2113 * go-lang.c (go_main_name): Update.
2114 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
2115 (hppa_hpux_find_import_stub_for_addr): Update.
2116 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
2117 Update. Change return type.
2118 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
2120 * jit.c (jit_breakpoint_re_set_internal): Update.
2121 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
2123 * linux-nat.c (get_signo): Update.
2124 * linux-thread-db.c (inferior_has_bug): Update
2125 * m32c-tdep.c (m32c_return_value)
2126 (m32c_m16c_address_to_pointer): Update.
2127 * m32r-tdep.c (m32r_frame_this_id): Update.
2128 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2129 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2130 * minsyms.c (lookup_minimal_symbol_internal): Rename to
2131 lookup_minimal_symbol. Change return type.
2132 (lookup_minimal_symbol): Remove.
2133 (lookup_bound_minimal_symbol): Update.
2134 (lookup_minimal_symbol_text): Change return type.
2135 (lookup_minimal_symbol_solib_trampoline): Change return type.
2136 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
2137 (lookup_minimal_symbol_solib_trampoline): Change return type.
2138 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2139 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2140 (value_nsstring, find_imps): Update.
2141 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2142 * p-lang.c (pascal_main_name): Update.
2143 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
2144 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2145 * proc-service.c (ps_pglobal_lookup): Update.
2146 * ravenscar-thread.c (get_running_thread_msymbol): Change
2148 (has_ravenscar_runtime, get_running_thread_id): Update.
2149 * remote.c (remote_check_symbols): Update.
2150 * sol-thread.c (ps_pglobal_lookup): Update.
2151 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2152 * solib-dsbt.c (lm_base): Update.
2153 * solib-frv.c (lm_base, frv_relocate_section_addresses):
2155 * solib-irix.c (locate_base): Update.
2156 * solib-som.c (som_solib_create_inferior_hook)
2157 (som_solib_desire_dynamic_linker_symbols, link_map_start):
2159 * solib-spu.c (spu_enable_break): Update.
2160 * solib-svr4.c (elf_locate_base, enable_break): Update.
2161 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2162 (flush_ea_cache): Update.
2163 * stabsread.c (define_symbol): Update.
2164 * symfile.c (simple_read_overlay_table): Update.
2165 * symtab.c (find_pc_sect_line): Update.
2166 * tracepoint.c (scope_info): Update.
2167 * tui-disasm.c (tui_get_begin_asm_address): Update.
2168 * value.c (value_static_field): Update.
2170 2014-02-26 Tom Tromey <tromey@redhat.com>
2172 * minsyms.c (prim_record_minimal_symbol_full): Use
2173 SET_MSYMBOL_VALUE_ADDRESS.
2174 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
2175 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
2176 SET_MSYMBOL_VALUE_ADDRESS.
2177 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2178 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
2180 2014-02-26 Tom Tromey <tromey@redhat.com>
2182 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
2183 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
2184 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
2185 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
2186 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
2187 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
2188 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
2189 * ada-lang.c (ada_main_name): Update.
2190 (ada_lookup_simple_minsym): Update.
2191 (ada_make_symbol_completion_list): Update.
2192 (ada_add_standard_exceptions): Update.
2193 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
2194 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2195 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
2196 * arm-tdep.c (skip_prologue_function): Update.
2197 (arm_skip_stack_protector, arm_skip_stub): Update.
2198 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
2199 (arm_wince_skip_main_prologue): Update.
2200 * auxv.c (ld_so_xfer_auxv): Update.
2201 * avr-tdep.c (avr_scan_prologue): Update.
2202 * ax-gdb.c (gen_var_ref): Update.
2203 * block.c (call_site_for_pc): Update.
2204 * blockframe.c (get_pc_function_start): Update.
2205 (find_pc_partial_function_gnu_ifunc): Update.
2206 * breakpoint.c (create_overlay_event_breakpoint): Update.
2207 (create_longjmp_master_breakpoint): Update.
2208 (create_std_terminate_master_breakpoint): Update.
2209 (create_exception_master_breakpoint): Update.
2210 (resolve_sal_pc): Update.
2211 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2212 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
2214 * c-valprint.c (c_val_print): Update.
2215 * coff-pe-read.c (add_pe_forwarded_sym): Update.
2216 * coffread.c (coff_symfile_read): Update.
2217 * common/agent.c (agent_look_up_symbols): Update.
2218 * dbxread.c (find_stab_function_addr): Update.
2219 (end_psymtab): Update.
2220 * dwarf2loc.c (call_site_to_target_addr): Update.
2221 (func_verify_no_selftailcall): Update.
2222 (tailcall_dump): Update.
2223 (call_site_find_chain_1): Update.
2224 (dwarf_expr_reg_to_entry_parameter): Update.
2225 * elfread.c (elf_gnu_ifunc_record_cache): Update.
2226 (elf_gnu_ifunc_resolve_by_got): Update.
2227 * f-valprint.c (info_common_command): Update.
2228 * findvar.c (read_var_value): Update.
2229 * frame.c (get_prev_frame_1): Update.
2230 (inside_main_func): Update.
2231 * frv-tdep.c (frv_skip_main_prologue): Update.
2232 (frv_frame_this_id): Update.
2233 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2234 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
2235 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
2236 (gnuv3_skip_trampoline): Update.
2237 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
2238 (hppa64_hpux_in_solib_call_trampoline): Update.
2239 (hppa_hpux_skip_trampoline_code): Update.
2240 (hppa64_hpux_search_dummy_call_sequence): Update.
2241 (hppa_hpux_find_import_stub_for_addr): Update.
2242 (hppa_hpux_find_dummy_bpaddr): Update.
2243 * hppa-tdep.c (hppa_symbol_address)
2244 (hppa_lookup_stub_minimal_symbol): Update.
2245 * i386-tdep.c (i386_skip_main_prologue): Update.
2246 (i386_pe_skip_trampoline_code): Update.
2247 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
2248 * infcall.c (get_function_name): Update.
2249 * infcmd.c (until_next_command): Update.
2250 * jit.c (jit_breakpoint_re_set_internal): Update.
2251 (jit_inferior_init): Update.
2252 * linespec.c (minsym_found): Update.
2253 (add_minsym): Update.
2254 * linux-fork.c (info_checkpoints_command): Update.
2255 * linux-nat.c (get_signo): Update.
2256 * linux-thread-db.c (inferior_has_bug): Update.
2257 * m32c-tdep.c (m32c_return_value): Update.
2258 (m32c_m16c_address_to_pointer): Update.
2259 (m32c_m16c_pointer_to_address): Update.
2260 * m32r-tdep.c (m32r_frame_this_id): Update.
2261 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2262 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2263 * maint.c (maintenance_translate_address): Update.
2264 * minsyms.c (add_minsym_to_hash_table): Update.
2265 (add_minsym_to_demangled_hash_table): Update.
2266 (msymbol_objfile): Update.
2267 (lookup_minimal_symbol): Update.
2268 (iterate_over_minimal_symbols): Update.
2269 (lookup_minimal_symbol_text): Update.
2270 (lookup_minimal_symbol_by_pc_name): Update.
2271 (lookup_minimal_symbol_solib_trampoline): Update.
2272 (lookup_minimal_symbol_by_pc_section_1): Update.
2273 (lookup_minimal_symbol_and_objfile): Update.
2274 (prim_record_minimal_symbol_full): Update.
2275 (compare_minimal_symbols): Update.
2276 (compact_minimal_symbols): Update.
2277 (build_minimal_symbol_hash_tables): Update.
2278 (install_minimal_symbols): Update.
2279 (terminate_minimal_symbol_table): Update.
2280 (find_solib_trampoline_target): Update.
2281 (minimal_symbol_upper_bound): Update.
2282 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2283 * mips-tdep.c (mips_stub_frame_sniffer): Update.
2284 (mips_skip_pic_trampoline_code): Update.
2285 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
2286 * objc-lang.c (selectors_info): Update.
2287 (classes_info): Update.
2288 (find_methods): Update.
2289 (find_imps): Update.
2290 (find_objc_msgsend): Update.
2291 * objfiles.c (objfile_relocate1): Update.
2292 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
2293 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2294 * p-valprint.c (pascal_val_print): Update.
2295 * parse.c (write_exp_msymbol): Update.
2296 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
2297 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
2298 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2299 * printcmd.c (build_address_symbolic): Update.
2301 (address_info): Update.
2302 * proc-service.c (ps_pglobal_lookup): Update.
2303 * psymtab.c (find_pc_sect_psymtab_closer): Update.
2304 (find_pc_sect_psymtab): Update.
2305 * python/py-framefilter.c (py_print_frame): Update.
2306 * ravenscar-thread.c (get_running_thread_id): Update.
2307 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
2309 * remote.c (remote_check_symbols): Update.
2310 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
2311 (rs6000_skip_trampoline_code): Update.
2312 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
2313 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2314 * solib-dsbt.c (lm_base): Update.
2315 * solib-frv.c (lm_base): Update.
2317 * solib-irix.c (locate_base): Update.
2318 * solib-som.c (som_solib_create_inferior_hook): Update.
2319 (som_solib_desire_dynamic_linker_symbols): Update.
2320 (link_map_start): Update.
2321 * solib-spu.c (spu_enable_break): Update.
2322 (ocl_enable_break): Update.
2323 * solib-svr4.c (elf_locate_base): Update.
2324 (enable_break): Update.
2325 * spu-tdep.c (spu_get_overlay_table): Update.
2326 (spu_catch_start): Update.
2327 (flush_ea_cache): Update.
2328 * stabsread.c (define_symbol): Update.
2329 (scan_file_globals): Update.
2330 * stack.c (find_frame_funname): Update.
2331 (frame_info): Update.
2332 * symfile.c (simple_read_overlay_table): Update.
2333 (simple_overlay_update): Update.
2334 * symmisc.c (dump_msymbols): Update.
2335 * symtab.c (fixup_section): Update.
2336 (find_pc_sect_line): Update.
2337 (skip_prologue_sal): Update.
2338 (search_symbols): Update.
2339 (print_msymbol_info): Update.
2340 (rbreak_command): Update.
2341 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
2342 (completion_list_objc_symbol): Update.
2343 (default_make_symbol_completion_list_break_on): Update.
2344 * tracepoint.c (scope_info): Update.
2345 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
2346 (tui_get_begin_asm_address): Update.
2347 * valops.c (find_function_in_inferior): Update.
2348 * value.c (value_static_field): Update.
2349 (value_fn_field): Update.
2351 2014-02-26 Tom Tromey <tromey@redhat.com>
2353 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
2354 bound minimal symbols. Move code that knows about minsym
2356 * minsyms.c (minimal_symbol_upper_bound): ... here. New
2358 * minsyms.h (minimal_symbol_upper_bound): Declare.
2359 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
2360 minimal_symbol_upper_bound.
2362 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2364 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
2365 Use the type's name if its basic type does not have a tag.
2367 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2369 * dwarf2read.c (read_subrange_type): Add comment.
2371 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2373 * dwarf2read.c (update_enumeration_type_from_children): New
2374 function, mostly extracted from process_structure_scope.
2375 (read_enumeration_type): Call update_enumeration_type_from_children.
2376 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
2377 and flag_flag_enum fields.
2379 2014-02-26 Pedro Alves <palves@redhat.com>
2381 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
2382 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
2383 to_xfer_partial method.
2385 2014-02-26 Pedro Alves <palves@redhat.com>
2387 * target.c (complete_target_initialization): Don't install
2388 default_xfer_partial as to_xfer_partial hook.
2390 (update_current_target): Don't INHERIT nor de_fault
2391 deprecated_xfer_memory. Delete de_fault macro.
2392 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
2393 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
2394 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
2397 2014-02-26 Pedro Alves <palves@redhat.com>
2399 * go32-nat.c (my_write_child): New function.
2400 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
2401 (go32_xfer_partial): New function.
2402 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
2403 Instead install a to_xfer_partial hook.
2405 2014-02-26 Pedro Alves <palves@redhat.com>
2407 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
2408 to_xfer_partial helper. Rewrite.
2409 (procfs_xfer_partial): New function.
2410 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
2411 Install a to_xfer_partial hook.
2413 2014-02-26 Pedro Alves <palves@redhat.com>
2415 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
2416 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
2417 (m32r_xfer_partial): New function.
2418 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
2419 Install a to_xfer_partial hook.
2421 2014-02-26 Pedro Alves <palves@redhat.com>
2423 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
2425 (mips_xfer_partial): New function.
2426 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
2427 hook. Install a to_xfer_partial hook.
2429 2014-02-26 Joel Brobecker <brobecker@adacore.com>
2431 * gdbtypes.h (create_array_type_with_stride): Add declaration.
2432 * gdbtypes.c (create_array_type_with_stride): New function,
2433 renaming create_array_type, but with an added parameter
2434 called "bit_stride".
2435 (create_array_type): Re-implement using
2436 create_array_type_with_stride.
2437 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
2438 and DW_AT_bit_stride attributes.
2440 2014-02-26 Pedro Alves <palves@redhat.com>
2442 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
2443 task-specific breakpoints.
2445 2014-02-25 Pedro Alves <palves@redhat.com>
2447 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
2448 handling of object == TARGET_OBJECT_UNWIND_TABLE.
2450 2014-02-25 Stan Shebs <stan@codesourcery.com>
2452 * defs.h: Annotate comments for Doxygen.
2454 2014-02-25 Tom Tromey <tromey@redhat.com>
2456 * target.h (target_ignore): Don't declare.
2457 * target.c (target_ignore): Remove.
2459 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2462 * auto-load.c (auto_load_objfile_script_1): Change filename to
2465 2014-02-25 Joel Brobecker <brobecker@adacore.com>
2467 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
2468 documentation. Adjust prototype to match the target_ops
2469 to_xfer_partial method. Adjust implementation accordingly.
2471 2014-02-25 Hui Zhu <hui@codesourcery.com>
2473 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
2476 2014-02-25 Kevin Buettner <kevinb@redhat.com>
2478 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
2479 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
2480 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
2481 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
2482 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
2483 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
2484 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
2485 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
2487 (rl78_register_type): Use a data pointer type for SP and
2488 new pseudo registers mentioned above. Use a 16 bit integer
2489 type for all other register pairs.
2490 (rl78_register_name, rl78_g10_register_name): Update for
2491 new pseudo registers.
2492 (rl78_pseudo_register_read): Likewise.
2493 (rl78_pseudo_register_write): Likewise.
2494 (rl78_dwarf_reg_to_regnum): Return register numbers representing
2495 to the newly added pseudo registers.
2497 2014-02-24 Doug Evans <dje@google.com>
2499 * value.c (record_latest_value): Fix comment.
2500 * printcmd.c (print_command_1): Remove code to handle -1 return from
2501 record_latest_value.
2503 2014-02-24 Pedro Alves <palves@redhat.com>
2505 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
2506 deprecated_xfer_memory hook.
2507 (procfs_xfer_partial): Call procfs_xfer_memory instead
2508 of the deprecated_xfer_memory target hook.
2509 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
2512 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
2514 * windows-nat.c (windows_xfer_shared_libraries): Return
2515 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
2516 requested object is TARGET_OBJECT_LIBRARIES.
2518 2014-02-24 Yao Qi <yao@codesourcery.com>
2520 * target.h (enum target_xfer_status)
2521 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
2522 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
2524 * corefile.c (memory_error_message): User updated.
2525 * exec.c (section_table_read_available_memory): Likewise.
2526 * record-btrace.c (record_btrace_xfer_partial): Likewise.
2527 * target.c (target_xfer_status_to_string): Likewise.
2528 (raw_memory_xfer_partial): Likewise.
2529 (memory_xfer_partial_1, target_xfer_partial): Likewise.
2530 * valops.c (read_value_memory): Likewise.
2531 * exec.h: Update comments.
2533 2014-02-24 Yao Qi <yao@codesourcery.com>
2535 * target.c (target_xfer_status_to_string): Rename argument err
2537 * target.h (target_xfer_status_to_string): Update declaration.
2538 Replace target_xfer_error_to_string with
2539 target_xfer_status_to_string in comment.
2541 2014-02-24 Yao Qi <yao@codesourcery.com>
2543 * mips-linux-nat.c (super_close): Update its type.
2544 (mips_linux_close): Pass 'self' to super_close.
2546 2014-02-24 Yao Qi <yao@codesourcery.com>
2548 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
2549 * corefile.c (read_memory): Adjusted.
2550 * target.c (target_write_with_progress): Adjusted.
2552 2014-02-23 Yao Qi <yao@codesourcery.com>
2556 2013-10-25 Yao Qi <yao@codesourcery.com>
2558 * remote.c (remote_traceframe_info): Return early if
2559 traceframe is not selected.
2561 2013-07-19 Yao Qi <yao@codesourcery.com>
2563 * target.c (update_current_target): Change the default action
2564 of 'to_traceframe_info' from tcomplain to return_zero.
2565 * target.h (struct target_ops) <to_traceframe_info>: Add more
2568 2014-02-23 Yao Qi <yao@codesourcery.com>
2570 * valops.c (read_value_memory): Rewrite it. Call
2571 target_xfer_partial in a loop.
2572 * exec.h (section_table_available_memory): Remove declaration.
2573 Move comments to ...
2574 * exec.c (section_table_available_memory): ... here. Make it
2577 2014-02-23 Yao Qi <yao@codesourcery.com>
2579 * exec.c (section_table_read_available_memory): New function.
2580 * exec.h (section_table_read_available_memory): Declare.
2581 * ctf.c (ctf_xfer_partial): Call
2582 section_table_read_available_memory.
2583 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2585 2014-02-23 Yao Qi <yao@codesourcery.com>
2587 * ctf.c (ctf_xfer_partial): Move code to ...
2588 * exec.c (exec_read_partial_read_only): ... it. New function.
2589 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2590 * tracefile.c: Include "exec.h".
2591 * exec.h (exec_read_partial_read_only): Declare.
2593 2014-02-23 Yao Qi <yao@codesourcery.com>
2595 * tracefile-tfile.c (tfile_has_all_memory): Remove.
2596 (tfile_has_memory): Remove.
2597 (init_tfile_ops): Don't set fields to_has_all_memory and
2598 to_has_memory of tfile_ops.
2599 * tracefile.c (tracefile_has_all_memory): New function.
2600 (tracefile_has_memory): New function.
2601 (init_tracefile_ops): Initialize fields to_has_all_memory and
2602 to_has_memory of 'ops'.
2604 2014-02-23 Yao Qi <yao@codesourcery.com>
2606 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
2607 (ctf_thread_alive, ctf_get_trace_status): Remove.
2608 (init_ctf_ops): Don't set some fields of ctf_ops. Call
2610 * tracefile-tfile.c (tfile_get_trace_status): Remove.
2611 (tfile_has_stack, tfile_has_registers): Remove.
2612 (tfile_thread_alive): Remove.
2613 (init_tfile_ops): Don't set some fields of tfile_ops. Call
2615 * tracefile.c (tracefile_has_stack): New function.
2616 (tracefile_has_registers): New function.
2617 (tracefile_thread_alive): New function.
2618 (tracefile_get_trace_status): New function.
2619 (init_tracefile_ops): New function.
2620 * tracefile.h (init_tracefile_ops): Declare.
2622 2014-02-23 Yao Qi <yao@codesourcery.com>
2624 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
2625 (O_LARGEFILE): Likewise.
2626 (tfile_ops): Likewise.
2627 (TRACE_HEADER_SIZE): Likewise.
2628 (trace_fd, trace_frames_offset, cur_offset): Likewise.
2629 (cur_data_size): Likewise.
2630 (tfile_read, tfile_open, tfile_interp_line): Likewise.
2631 (tfile_close, tfile_files_info): Likewise.
2632 (tfile_get_trace_status): Likewise.
2633 (tfile_get_tracepoint_status): Likewise.
2634 (tfile_get_traceframe_address): Likewise.
2635 (tfile_trace_find, match_blocktype): Likewise.
2636 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
2637 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
2638 (tfile_get_trace_state_variable_value): Likewise.
2639 (tfile_has_all_memory, tfile_has_memory): Likewise.
2640 (tfile_has_stack, tfile_has_registers): Likewise.
2641 (tfile_thread_alive, build_traceframe_info): Likewise.
2642 (tfile_traceframe_info, init_tfile_ops): Likewise.
2643 (_initialize_tracepoint): Don't call init_tfile_ops
2644 and add_target_with_completer.
2645 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
2646 exec.h, completer.h and filenames.h.
2647 (_initialize_tracefile_tfile): New function.
2649 2014-02-23 Yao Qi <yao@codesourcery.com>
2651 * Makefile.in (REMOTE_OBS): Append tracefile.o and
2653 (HFILES_NO_SRCDIR): Add tracefile.h.
2654 * ctf.c: Include "tracefile.h".
2655 * tracefile.h: New file.
2656 * tracefile.c: New file
2657 * tracefile-tfile.c: New file.
2658 * tracepoint.c: Include "tracefile.h".
2659 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
2660 (stop_reason_names): Add const.
2661 (trace_file_writer_xfree): Move it to tracefile.c.
2662 (trace_save, trace_save_command, trace_save_tfile): Likewise.
2663 (trace_save_ctf): Likewise.
2664 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
2665 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
2666 (tfile_write_header, tfile_write_regblock_type): Likewise.
2667 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
2668 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
2669 (tfile_write_raw_data, tfile_end): Likewise.
2670 (tfile_trace_file_writer_new): Likewise.
2671 (free_uploaded_tp): Make it extern.
2672 (free_uploaded_tsv): Make it extern.
2673 (_initialize_tracepoint): Move code to register command 'tsave'
2675 * tracepoint.h (stop_reason_names): Declare.
2676 (struct trace_frame_write_ops): Move it to tracefile.h.
2677 (struct trace_file_write_ops): Likewise.
2678 (struct trace_file_writer): Likewise.
2679 (free_uploaded_tsvs, free_uploaded_tps): Declare.
2681 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2684 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
2686 (get_cores_used_by_process): New parameter num_cores, use it.
2687 (linux_xfer_osdata_processes): Pass num_cores to it.
2688 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
2691 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
2693 * target.c (memory_xfer_partial): Fix length arg in call to
2694 breakpoint_xfer_memory.
2696 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
2699 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
2700 number comes after the + or - signs. Adjust length of register
2701 name to be extracted.
2703 2014-02-20 Tom Tromey <tromey@redhat.com>
2705 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
2706 (ada_varobj_ops): Mark "extern".
2708 2014-02-20 Tom Tromey <tromey@redhat.com>
2710 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
2712 2014-02-20 Doug Evans <xdje42@gmail.com>
2714 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
2715 All callers updated.
2716 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
2717 All callers updated.
2718 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
2719 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
2721 2014-02-20 lin zuojian <manjian2006@gmail.com>
2722 Joel Brobecker <brobecker@adacore.com>
2723 Doug Evans <xdje42@gmail.com>
2726 * dwarf2read.c (struct die_info): New member in_process.
2727 (reset_die_in_process): New function.
2728 (process_die): Set it at the start, reset when returning.
2729 (inherit_abstract_dies): Only call process_die if origin_child_die
2730 not already being processed.
2732 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2734 * windows-nat.c (handle_unload_dll): Add function documentation.
2735 (do_initial_windows_stuff): Add comment explaining why we wait
2736 until after inferior initialization has finished before
2737 processing all DLLs.
2739 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2741 * windows-nat.c (get_module_name): Delete.
2742 (windows_get_exec_module_filename): New function, mostly
2743 inspired from get_module_name.
2744 (windows_pid_to_exec_file): Replace call to get_module_name
2745 by call to windows_get_exec_module_filename.
2747 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2749 * windows-nat.c (handle_load_dll): Rewrite this function's
2750 introductory comment. Remove code using get_module_name
2751 to get the DLL's name.
2753 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2755 * windows-nat.c (get_windows_debug_event): Ignore
2756 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
2757 if windows_initialization_done == 0.
2758 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
2759 Adjust implementation to always load all DLLs.
2760 (do_initial_windows_stuff): Replace call to
2761 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
2763 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2765 * windows-nat.c (_initialize_windows_nat): Deprecate the
2766 "dll-symbols" command. Turn the "add-shared-symbol-files"
2767 and "assf" aliases into commands, and deprecate them as well.
2768 * NEWS: Add entry explaining that "dll-symbols" and its two
2769 aliases are now deprecated.
2771 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2773 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
2774 new-line in debug string. Remove trailing spaces.
2776 2014-02-19 Stan Shebs <stan@codesourcery.com>
2778 * darwin-nat.c (darwin_xfer_partial): Fix return type.
2780 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
2782 * NEWS: Add entry for the new feature
2783 * python/py-value.c (valpy_binop): Call value_x_binop for struct
2786 2014-02-19 Stan Shebs <stan@codesourcery.com>
2788 * MAINTAINERS: List Yao Qi as nios2 maintainer.
2790 2014-02-19 Pedro Alves <palves@redhat.com>
2792 * common/ptid.h (struct ptid): Mention that process_stratum
2793 targets should prefer ptid.lwp.
2795 2014-02-19 Pedro Alves <palves@redhat.com>
2797 * remote.c (remote_thread_alive, write_ptid, read_ptid)
2798 (read_ptid, remote_newthread_step, remote_threads_extra_info)
2799 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
2800 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
2801 store remote thread ids rather than ptid.tid.
2802 (_initialize_remote): Adjust.
2804 2014-02-19 Tom Tromey <tromey@redhat.com>
2806 * target.c (target_get_unwinder): Rewrite.
2807 (target_get_tailcall_unwinder): Rewrite.
2808 * record-btrace.c (record_btrace_to_get_unwinder): New function.
2809 (record_btrace_to_get_tailcall_unwinder): New function.
2810 (init_record_btrace_ops): Update.
2811 * target.h (struct target_ops) <to_get_unwinder,
2812 to_get_tailcall_unwinder>: Now function pointers. Use
2813 TARGET_DEFAULT_RETURN.
2815 2014-02-19 Tom Tromey <tromey@redhat.com>
2817 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
2819 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
2821 2014-02-19 Tom Tromey <tromey@redhat.com>
2823 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
2825 * target-delegates.c: Rebuild.
2826 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
2827 TARGET_DEFAULT_FUNC.
2828 * target.c (default_target_decr_pc_after_break): Rename from
2829 forward_target_decr_pc_after_break. Simplify.
2830 (target_decr_pc_after_break): Rely on delegation.
2832 2014-02-19 Tom Tromey <tromey@redhat.com>
2834 * target.c (update_current_target): Do not INHERIT to_doc or
2835 to_magic. Do not de_fault to_open or to_close.
2837 2014-02-19 Tom Tromey <tromey@redhat.com>
2839 * gcore.h (objfile_find_memory_regions): Declare.
2840 * gcore.c (objfile_find_memory_regions): No longer static. Add
2842 (_initialize_gcore): Don't call exec_set_find_memory_regions.
2843 * exec.c: Include gcore.h.
2844 (exec_set_find_memory_regions): Remove.
2845 (exec_find_memory_regions): Remove.
2846 (exec_do_find_memory_regions): Remove.
2847 (init_exec_ops): Update.
2848 * defs.h (exec_set_find_memory_regions): Remove.
2850 2014-02-19 Tom Tromey <tromey@redhat.com>
2852 * target-delegates.c: Rebuild.
2853 * target.h (struct target_ops) <to_extra_thread_info,
2854 to_thread_name, to_pid_to_exec_file, to_get_section_table,
2855 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
2856 not 0, in TARGET_DEFAULT_RETURN.
2858 2014-02-19 Tom Tromey <tromey@redhat.com>
2860 * target.c (complete_target_initialization): Remove casts. Use
2861 return_zero_has_execution.
2862 (return_zero): Add "ignore" argument.
2863 (return_zero_has_execution): New function.
2864 (init_dummy_target): Remove casts. Use
2865 return_zero_has_execution.
2867 2014-02-19 Tom Tromey <tromey@redhat.com>
2869 * target.c (update_current_target): Update comments. Do not
2872 2014-02-19 Tom Tromey <tromey@redhat.com>
2874 * arm-linux-nat.c (arm_linux_read_description): Delegate when
2876 * corelow.c (core_read_description): Delegate when needed.
2877 * remote.c (remote_read_description): Delegate when needed.
2878 * target-delegates.c: Rebuild.
2879 * target.c (target_read_description): Rewrite.
2880 * target.h (struct target_ops) <to_read_description>: Update
2881 comment. Use TARGET_DEFAULT_RETURN.
2883 2014-02-19 Tom Tromey <tromey@redhat.com>
2885 * target-delegates.c: Rebuild.
2886 * target.c (update_current_target): Don't inherit or default
2888 (find_default_run_target): Check against delegate_can_run.
2889 * target.h (struct target_ops) <to_can_run>: Use
2890 TARGET_DEFAULT_RETURN.
2892 2014-02-19 Tom Tromey <tromey@redhat.com>
2894 * target-delegates.c: Rebuild.
2895 * target.c (target_disconnect): Unconditionally delegate.
2896 * target.h (struct target_ops) <to_disconnect>: Use
2897 TARGET_DEFAULT_NORETURN.
2899 2014-02-19 Tom Tromey <tromey@redhat.com>
2901 * record.c (record_stop): Unconditionally delegate.
2902 * target-delegates.c: Rebuild.
2903 * target.c (target_stop_recording): Unconditionally delegate.
2904 * target.h (struct target_ops) <to_stop_recording>: Use
2905 TARGET_DEFAULT_IGNORE.
2907 2014-02-19 Tom Tromey <tromey@redhat.com>
2909 * target-delegates.c: Rebuild.
2910 * target.c (target_enable_btrace): Unconditionally delegate.
2911 * target.h (struct target_ops) <to_enable_btrace>: Use
2912 TARGET_DEFAULT_NORETURN.
2914 2014-02-19 Tom Tromey <tromey@redhat.com>
2916 * target-delegates.c: Rebuild.
2917 * target.c (target_read_btrace): Unconditionally delegate.
2918 * target.h (struct target_ops) <to_read_btrace>: Use
2919 TARGET_DEFAULT_NORETURN.
2921 2014-02-19 Tom Tromey <tromey@redhat.com>
2923 * target-delegates.c: Rebuild.
2924 * target.c (target_teardown_btrace): Unconditionally delegate.
2925 * target.h (struct target_ops) <to_teardown_btrace>: Use
2926 TARGET_DEFAULT_NORETURN.
2928 2014-02-19 Tom Tromey <tromey@redhat.com>
2930 * target-delegates.c: Rebuild.
2931 * target.c (target_disable_btrace): Unconditionally delegate.
2932 * target.h (struct target_ops) <to_disable_btrace>: Use
2933 TARGET_DEFAULT_NORETURN.
2935 2014-02-19 Tom Tromey <tromey@redhat.com>
2937 * target-delegates.c: Rebuild.
2938 * target.c (default_search_memory): New function.
2939 (simple_search_memory): Update comment.
2940 (target_search_memory): Unconditionally delegate.
2941 * target.h (struct target_ops) <to_search_memory>: Use
2942 TARGET_DEFAULT_FUNC.
2944 2014-02-19 Tom Tromey <tromey@redhat.com>
2946 * auxv.c (default_auxv_parse): No longer static.
2947 (target_auxv_parse): Unconditionally delegate.
2948 * auxv.h (default_auxv_parse): Declare.
2949 * target-delegates.c: Rebuild.
2950 * target.c: Include auxv.h.
2951 * target.h (struct target_ops) <to_auxv_parse>: Use
2952 TARGET_DEFAULT_FUNC.
2954 2014-02-19 Tom Tromey <tromey@redhat.com>
2956 * target-delegates.c: Rebuild.
2957 * target.c (target_memory_map): Unconditionally delegate.
2958 * target.h (struct target_ops) <to_memory_map>: Use
2959 TARGET_DEFAULT_RETURN.
2961 2014-02-19 Tom Tromey <tromey@redhat.com>
2963 * target-delegates.c: Rebuild.
2964 * target.c (target_thread_alive): Unconditionally delegate.
2965 * target.h (struct target_ops) <to_thread_alive>: Use
2966 TARGET_DEFAULT_RETURN.
2968 2014-02-19 Tom Tromey <tromey@redhat.com>
2970 * target-delegates.c: Rebuild.
2971 * target.c (target_save_record): Unconditionally delegate.
2972 * target.h (struct target_ops) <to_save_record>: Use
2973 TARGET_DEFAULT_NORETURN.
2975 2014-02-19 Tom Tromey <tromey@redhat.com>
2977 * target-delegates.c: Rebuild.
2978 * target.c (target_delete_record): Unconditionally delegate.
2979 * target.h (struct target_ops) <to_delete_record>: Use
2980 TARGET_DEFAULT_NORETURN.
2982 2014-02-19 Tom Tromey <tromey@redhat.com>
2984 * target-delegates.c: Rebuild.
2985 * target.c (target_record_is_replaying): Unconditionally
2987 * target.h (struct target_ops) <to_record_is_replaying>: Use
2988 TARGET_DEFAULT_RETURN.
2990 2014-02-19 Tom Tromey <tromey@redhat.com>
2992 * target-delegates.c: Rebuild.
2993 * target.c (target_goto_record_begin): Unconditionally delegate.
2994 * target.h (struct target_ops) <to_goto_record_begin>: Use
2995 TARGET_DEFAULT_NORETURN.
2997 2014-02-19 Tom Tromey <tromey@redhat.com>
2999 * target-delegates.c: Rebuild.
3000 * target.c (target_goto_record_end): Unconditionally delegate.
3001 * target.h (struct target_ops) <to_goto_record_end>: Use
3002 TARGET_DEFAULT_NORETURN.
3004 2014-02-19 Tom Tromey <tromey@redhat.com>
3006 * target-delegates.c: Rebuild.
3007 * target.c (target_goto_record): Unconditionally delegate.
3008 * target.h (struct target_ops) <to_goto_record>: Use
3009 TARGET_DEFAULT_NORETURN.
3011 2014-02-19 Tom Tromey <tromey@redhat.com>
3013 * target-delegates.c: Rebuild.
3014 * target.c (target_insn_history): Unconditionally delegate.
3015 * target.h (struct target_ops) <to_insn_history>: Use
3016 TARGET_DEFAULT_NORETURN.
3018 2014-02-19 Tom Tromey <tromey@redhat.com>
3020 * target-delegates.c: Rebuild.
3021 * target.c (target_insn_history_from): Unconditionally delegate.
3022 * target.h (struct target_ops) <to_insn_history_from>: Use
3023 TARGET_DEFAULT_NORETURN.
3025 2014-02-19 Tom Tromey <tromey@redhat.com>
3027 * target-delegates.c: Rebuild.
3028 * target.c (target_insn_history_range): Unconditionally delegate.
3029 * target.h (struct target_ops) <to_insn_history_range>: Use
3030 TARGET_DEFAULT_NORETURN.
3032 2014-02-19 Tom Tromey <tromey@redhat.com>
3034 * target-delegates.c: Rebuild.
3035 * target.c (target_call_history): Unconditionally delegate.
3036 * target.h (struct target_ops) <to_call_history>: Use
3037 TARGET_DEFAULT_NORETURN.
3039 2014-02-19 Tom Tromey <tromey@redhat.com>
3041 * target-delegates.c: Rebuild.
3042 * target.c (target_call_history_from): Unconditionally delegate.
3043 * target.h (struct target_ops) <to_call_history_from>: Use
3044 TARGET_DEFAULT_NORETURN.
3046 2014-02-19 Tom Tromey <tromey@redhat.com>
3048 * target-delegates.c: Rebuild.
3049 * target.c (target_call_history_range): Unconditionally delegate.
3050 * target.h (struct target_ops) <to_call_history_range>: Use
3051 TARGET_DEFAULT_NORETURN.
3053 2014-02-19 Tom Tromey <tromey@redhat.com>
3055 * target-delegates.c: Rebuild.
3056 * target.c (target_verify_memory): Unconditionally delegate.
3057 * target.h (struct target_ops) <to_verify_memory>: Use
3058 TARGET_DEFAULT_NORETURN.
3060 2014-02-19 Tom Tromey <tromey@redhat.com>
3062 * target-delegates.c: Rebuild.
3063 * target.c (target_core_of_thread): Unconditionally delegate.
3064 * target.h (struct target_ops) <to_core_of_thread>: Use
3065 TARGET_DEFAULT_RETURN.
3067 2014-02-19 Tom Tromey <tromey@redhat.com>
3069 * target-delegates.c: Rebuild.
3070 * target.c (target_flash_done): Unconditionally delegate.
3071 * target.h (struct target_ops) <to_flash_done>: Use
3072 TARGET_DEFAULT_NORETURN.
3074 2014-02-19 Tom Tromey <tromey@redhat.com>
3076 * target-delegates.c: Rebuild.
3077 * target.c (target_flash_erase): Unconditionally delegate.
3078 * target.h (struct target_ops) <to_flash_erase>: Use
3079 TARGET_DEFAULT_NORETURN.
3081 2014-02-19 Tom Tromey <tromey@redhat.com>
3083 * target-delegates.c: Rebuild.
3084 * target.c (target_get_section_table): Unconditionally delegate.
3085 * target.h (struct target_ops) <to_get_section_table>: Use
3086 TARGET_DEFAULT_RETURN.
3088 2014-02-19 Tom Tromey <tromey@redhat.com>
3090 * target-delegates.c: Rebuild.
3091 * target.c (target_pid_to_str): Unconditionally delegate.
3092 (init_dummy_target): Don't initialize to_pid_to_str.
3093 (default_pid_to_str): Rename from dummy_pid_to_str.
3094 * target.h (struct target_ops) <to_pid_to_str>: Use
3095 TARGET_DEFAULT_FUNC.
3097 2014-02-19 Tom Tromey <tromey@redhat.com>
3099 * target-delegates.c: Rebuild.
3100 * target.c (target_find_new_threads): Unconditionally delegate.
3101 * target.h (struct target_ops) <to_find_new_threads>: Use
3102 TARGET_DEFAULT_RETURN.
3104 2014-02-19 Tom Tromey <tromey@redhat.com>
3106 * target-delegates.c: Rebuild.
3107 * target.c (target_program_signals): Unconditionally delegate.
3108 * target.h (struct target_ops) <to_program_signals>: Use
3109 TARGET_DEFAULT_IGNORE.
3111 2014-02-19 Tom Tromey <tromey@redhat.com>
3113 * target-delegates.c: Rebuild.
3114 * target.c (target_pass_signals): Unconditionally delegate.
3115 * target.h (struct target_ops) <to_pass_signals>: Use
3116 TARGET_DEFAULT_IGNORE.
3118 2014-02-19 Tom Tromey <tromey@redhat.com>
3120 * target-delegates.c: Rebuild.
3121 * target.c (default_mourn_inferior): New function.
3122 (target_mourn_inferior): Unconditionally delegate.
3123 * target.h (struct target_ops) <to_mourn_inferior>: Use
3124 TARGET_DEFAULT_FUNC.
3126 2014-02-19 Tom Tromey <tromey@redhat.com>
3128 * target-delegates.c: Rebuild.
3129 * target.c (default_follow_fork): New function.
3130 (target_follow_fork): Unconditionally delegate.
3131 * target.h (struct target_ops) <to_follow_fork>: Use
3132 TARGET_DEFAULT_FUNC.
3134 2014-02-19 Tom Tromey <tromey@redhat.com>
3136 * target-delegates.c: Rebuild.
3137 * target.c (target_kill): Unconditionally delegate.
3138 * target.h (struct target_ops) <to_kill>: Use
3139 TARGET_DEFAULT_NORETURN.
3141 2014-02-19 Tom Tromey <tromey@redhat.com>
3143 * target-delegates.c: Rebuild.
3144 * target.c (target_masked_watch_num_registers): Unconditionally
3146 * target.h (struct target_ops) <to_masked_watch_num_registers>:
3147 Use TARGET_DEFAULT_RETURN.
3149 2014-02-19 Tom Tromey <tromey@redhat.com>
3151 * target-delegates.c: Rebuild.
3152 * target.c (target_remove_mask_watchpoint): Unconditionally
3154 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
3155 TARGET_DEFAULT_RETURN.
3157 2014-02-19 Tom Tromey <tromey@redhat.com>
3159 * target-delegates.c: Rebuild.
3160 * target.c (target_insert_mask_watchpoint): Unconditionally
3162 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
3163 TARGET_DEFAULT_RETURN.
3165 2014-02-19 Tom Tromey <tromey@redhat.com>
3167 * target-delegates.c: Rebuild.
3168 * target.c (target_ranged_break_num_registers): Unconditionally
3170 * target.h (struct target_ops) <to_ranged_break_num_registers>:
3171 Use TARGET_DEFAULT_RETURN.
3173 2014-02-19 Tom Tromey <tromey@redhat.com>
3175 * target-delegates.c: Rebuild.
3176 * target.c (target_fetch_registers): Unconditionally delegate.
3177 * target.h (struct target_ops) <to_fetch_registers>: Use
3178 TARGET_DEFAULT_NORETURN.
3180 2014-02-19 Tom Tromey <tromey@redhat.com>
3182 * target-delegates.c: Rebuild.
3183 * target.c (update_current_target): Don't inherit or default
3185 * target.h (struct target_ops) <to_stop>: Use
3186 TARGET_DEFAULT_IGNORE.
3188 2014-02-19 Tom Tromey <tromey@redhat.com>
3190 * target-delegates.c: Rebuild.
3191 * target.c (update_current_target): Don't inherit or default
3192 to_can_run_breakpoint_commands.
3193 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
3194 Use TARGET_DEFAULT_RETURN.
3196 2014-02-19 Tom Tromey <tromey@redhat.com>
3198 * target-delegates.c: Rebuild.
3199 * target.c (update_current_target): Don't inherit or default
3200 to_supports_evaluation_of_breakpoint_conditions.
3201 * target.h (struct target_ops)
3202 <to_supports_evaluation_of_breakpoint_conditions>: Use
3203 TARGET_DEFAULT_RETURN.
3205 2014-02-19 Tom Tromey <tromey@redhat.com>
3207 * target-delegates.c: Rebuild.
3208 * target.c (update_current_target): Don't inherit or default
3209 to_augmented_libraries_svr4_read.
3210 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
3211 Use TARGET_DEFAULT_RETURN.
3213 2014-02-19 Tom Tromey <tromey@redhat.com>
3215 * target-delegates.c: Rebuild.
3216 * target.c (update_current_target): Don't inherit or default
3218 * target.h (struct target_ops) <to_can_use_agent>: Use
3219 TARGET_DEFAULT_RETURN.
3221 2014-02-19 Tom Tromey <tromey@redhat.com>
3223 * target-delegates.c: Rebuild.
3224 * target.c (update_current_target): Don't inherit or default
3226 * target.h (struct target_ops) <to_use_agent>: Use
3227 TARGET_DEFAULT_NORETURN.
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 (return_null): Remove.
3235 * target.h (struct target_ops) <to_traceframe_info>: Use
3236 TARGET_DEFAULT_RETURN.
3238 2014-02-19 Tom Tromey <tromey@redhat.com>
3240 * target-delegates.c: Rebuild.
3241 * target.c (update_current_target): Don't inherit or default
3242 to_static_tracepoint_markers_by_strid.
3243 * target.h (struct target_ops)
3244 <to_static_tracepoint_markers_by_strid>: Use
3245 TARGET_DEFAULT_NORETURN.
3247 2014-02-19 Tom Tromey <tromey@redhat.com>
3249 * target-delegates.c: Rebuild.
3250 * target.c (update_current_target): Don't inherit or default
3251 to_static_tracepoint_marker_at.
3252 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
3253 Use TARGET_DEFAULT_RETURN.
3255 2014-02-19 Tom Tromey <tromey@redhat.com>
3257 * target-delegates.c: Rebuild.
3258 * target.c (update_current_target): Don't inherit or default
3260 * target.h (struct target_ops) <to_set_permissions>: Use
3261 TARGET_DEFAULT_IGNORE.
3263 2014-02-19 Tom Tromey <tromey@redhat.com>
3265 * target-delegates.c: Rebuild.
3266 * target.c (update_current_target): Don't inherit or default
3268 * target.h (struct target_ops) <to_get_tib_address>: Use
3269 TARGET_DEFAULT_NORETURN.
3271 2014-02-19 Tom Tromey <tromey@redhat.com>
3273 * target-delegates.c: Rebuild.
3274 * target.c (update_current_target): Don't inherit or default
3276 * target.h (struct target_ops) <to_set_trace_notes>: Use
3277 TARGET_DEFAULT_RETURN.
3279 2014-02-19 Tom Tromey <tromey@redhat.com>
3281 * target-delegates.c: Rebuild.
3282 * target.c (update_current_target): Don't initialize
3283 to_set_trace_buffer_size.
3284 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
3285 TARGET_DEFAULT_IGNORE.
3287 2014-02-19 Tom Tromey <tromey@redhat.com>
3289 * target-delegates.c: Rebuild.
3290 * target.c (update_current_target): Don't inherit or default
3291 to_set_circular_trace_buffer.
3292 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
3293 TARGET_DEFAULT_IGNORE.
3295 2014-02-19 Tom Tromey <tromey@redhat.com>
3297 * target-delegates.c: Rebuild.
3298 * target.c (update_current_target): Don't inherit or default
3299 to_set_disconnected_tracing.
3300 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
3301 TARGET_DEFAULT_IGNORE.
3303 2014-02-19 Tom Tromey <tromey@redhat.com>
3305 * target-delegates.c: Rebuild.
3306 * target.c (update_current_target): Don't inherit or default
3307 to_get_min_fast_tracepoint_insn_len.
3308 (return_minus_one): Remove.
3309 * target.h (struct target_ops)
3310 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
3312 2014-02-19 Tom Tromey <tromey@redhat.com>
3314 * target-delegates.c: Rebuild.
3315 * target.c (update_current_target): Don't inherit or default
3316 to_get_raw_trace_data.
3317 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
3318 TARGET_DEFAULT_NORETURN.
3320 2014-02-19 Tom Tromey <tromey@redhat.com>
3322 * target-delegates.c: Rebuild.
3323 * target.c (update_current_target): Don't inherit or default
3324 to_upload_trace_state_variables.
3325 * target.h (struct target_ops) <to_upload_trace_state_variables>:
3326 Use TARGET_DEFAULT_RETURN.
3328 2014-02-19 Tom Tromey <tromey@redhat.com>
3330 * target-delegates.c: Rebuild.
3331 * target.c (update_current_target): Don't inherit or default
3332 to_upload_tracepoints.
3333 * target.h (struct target_ops) <to_upload_tracepoints>: Use
3334 TARGET_DEFAULT_RETURN.
3336 2014-02-19 Tom Tromey <tromey@redhat.com>
3338 * target-delegates.c: Rebuild.
3339 * target.c (update_current_target): Don't inherit or default
3341 * target.h (struct target_ops) <to_save_trace_data>: Use
3342 TARGET_DEFAULT_NORETURN.
3344 2014-02-19 Tom Tromey <tromey@redhat.com>
3346 * target-delegates.c: Rebuild.
3347 * target.c (update_current_target): Don't inherit or default
3348 to_get_trace_state_variable_value.
3349 * target.h (struct target_ops)
3350 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
3352 2014-02-19 Tom Tromey <tromey@redhat.com>
3354 * target-delegates.c: Rebuild.
3355 * target.c (update_current_target): Don't inherit or default
3357 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
3359 2014-02-19 Tom Tromey <tromey@redhat.com>
3361 * target-delegates.c: Rebuild.
3362 * target.c (update_current_target): Don't inherit or default
3364 * target.h (struct target_ops) <to_trace_stop>: Use
3365 TARGET_DEFAULT_NORETURN.
3367 2014-02-19 Tom Tromey <tromey@redhat.com>
3369 * target-delegates.c: Rebuild.
3370 * target.c (update_current_target): Don't inherit or default
3371 to_get_tracepoint_status.
3372 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
3373 TARGET_DEFAULT_NORETURN.
3375 2014-02-19 Tom Tromey <tromey@redhat.com>
3377 * target-delegates.c: Rebuild.
3378 * target.c (update_current_target): Don't inherit or default
3379 to_get_trace_status.
3380 * target.h (struct target_ops) <to_get_trace_status>: Use
3381 TARGET_DEFAULT_RETURN.
3383 2014-02-19 Tom Tromey <tromey@redhat.com>
3385 * target-delegates.c: Rebuild.
3386 * target.c (update_current_target): Don't inherit or default
3388 * target.h (struct target_ops) <to_trace_start>: Use
3389 TARGET_DEFAULT_NORETURN.
3391 2014-02-19 Tom Tromey <tromey@redhat.com>
3393 * target-delegates.c: Rebuild.
3394 * target.c (update_current_target): Don't inherit or default
3395 to_trace_set_readonly_regions.
3396 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
3397 Use TARGET_DEFAULT_NORETURN.
3399 2014-02-19 Tom Tromey <tromey@redhat.com>
3401 * target-delegates.c: Rebuild.
3402 * target.c (update_current_target): Don't inherit or default
3403 to_disable_tracepoint.
3404 * target.h (struct target_ops) <to_disable_tracepoint>: Use
3405 TARGET_DEFAULT_NORETURN.
3407 2014-02-19 Tom Tromey <tromey@redhat.com>
3409 * target-delegates.c: Rebuild.
3410 * target.c (update_current_target): Don't inherit or default
3411 to_enable_tracepoint.
3412 * target.h (struct target_ops) <to_enable_tracepoint>: Use
3413 TARGET_DEFAULT_NORETURN.
3415 2014-02-19 Tom Tromey <tromey@redhat.com>
3417 * target-delegates.c: Rebuild.
3418 * target.c (update_current_target): Don't inherit or default
3419 to_download_trace_state_variable.
3420 * target.h (struct target_ops) <to_download_trace_state_variable>:
3421 Use TARGET_DEFAULT_NORETURN.
3423 2014-02-19 Tom Tromey <tromey@redhat.com>
3425 * target-delegates.c: Rebuild.
3426 * target.c (update_current_target): Don't inherit or default
3427 to_can_download_tracepoint.
3428 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
3429 TARGET_DEFAULT_RETURN.
3431 2014-02-19 Tom Tromey <tromey@redhat.com>
3433 * target-delegates.c: Rebuild.
3434 * target.c (update_current_target): Don't inherit or default
3435 to_download_tracepoint.
3436 * target.h (struct target_ops) <to_download_tracepoint>: Use
3437 TARGET_DEFAULT_NORETURN.
3439 2014-02-19 Tom Tromey <tromey@redhat.com>
3441 * target-delegates.c: Rebuild.
3442 * target.c (update_current_target): Don't inherit or default
3444 * target.h (struct target_ops) <to_trace_init>: Use
3445 TARGET_DEFAULT_RETURN.
3447 2014-02-19 Tom Tromey <tromey@redhat.com>
3449 * target-delegates.c: Rebuild.
3450 * target.c (update_current_target): Don't inherit or default
3451 to_supports_string_tracing.
3452 * target.h (struct target_ops) <to_supports_string_tracing>: Use
3453 TARGET_DEFAULT_RETURN.
3455 2014-02-19 Tom Tromey <tromey@redhat.com>
3457 * target-delegates.c: Rebuild.
3458 * target.c (update_current_target): Don't inherit or default
3459 to_supports_enable_disable_tracepoint.
3460 * target.h (struct target_ops)
3461 <to_supports_enable_disable_tracepoint>: Use
3462 TARGET_DEFAULT_RETURN.
3464 2014-02-19 Tom Tromey <tromey@redhat.com>
3466 * target-delegates.c: Rebuild.
3467 * target.c (update_current_target): Don't inherit or default
3468 to_supports_multi_process.
3469 * target.h (struct target_ops) <to_supports_multi_process>: Use
3470 TARGET_DEFAULT_RETURN.
3472 2014-02-19 Tom Tromey <tromey@redhat.com>
3474 * target-delegates.c: Rebuild.
3475 * target.c (update_current_target): Don't inherit or default
3476 to_get_ada_task_ptid.
3477 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
3478 TARGET_DEFAULT_FUNC.
3480 2014-02-19 Tom Tromey <tromey@redhat.com>
3482 * target-delegates.c: Rebuild.
3483 * target.c (update_current_target): Don't inherit or default
3484 to_thread_architecture.
3485 * target.h (struct target_ops) <to_thread_architecture>: Use
3486 TARGET_DEFAULT_FUNC.
3488 2014-02-19 Tom Tromey <tromey@redhat.com>
3490 * target-delegates.c: Rebuild.
3491 * target.c (update_current_target): Don't inherit or default
3492 to_execution_direction.
3493 * target.h (struct target_ops) <to_execution_direction>: Use
3494 TARGET_DEFAULT_FUNC.
3496 2014-02-19 Tom Tromey <tromey@redhat.com>
3498 * target-delegates.c: Rebuild.
3499 * target.c (update_current_target): Don't inherit or default
3500 to_can_execute_reverse.
3501 * target.h (struct target_ops) <to_can_execute_reverse>: Use
3502 TARGET_DEFAULT_RETURN.
3503 (target_can_execute_reverse): Unconditionally delegate.
3505 2014-02-19 Tom Tromey <tromey@redhat.com>
3507 * target-delegates.c: Rebuild.
3508 * target.c (update_current_target): Don't inherit or default
3510 (dummy_goto_bookmark): Remove.
3511 (init_dummy_target): Don't inherit or default to_goto_bookmark.
3512 * target.h (struct target_ops) <to_goto_bookmark>: Use
3513 TARGET_DEFAULT_NORETURN.
3515 2014-02-19 Tom Tromey <tromey@redhat.com>
3517 * target-delegates.c: Rebuild.
3518 * target.c (update_current_target): Don't inherit or default
3520 (dummy_get_bookmark): Remove.
3521 (init_dummy_target): Don't inherit or default to_get_bookmark.
3522 * target.h (struct target_ops) <to_get_bookmark>: Use
3523 TARGET_DEFAULT_NORETURN
3525 2014-02-19 Tom Tromey <tromey@redhat.com>
3527 * target-delegates.c: Rebuild.
3528 * target.c (update_current_target): Don't inherit or default
3529 to_make_corefile_notes.
3530 (init_dummy_target): Don't initialize to_make_corefile_notes.
3531 * target.h (struct target_ops) <to_make_corefile_notes>: Use
3532 TARGET_DEFAULT_FUNC.
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
3538 to_find_memory_regions.
3539 (init_dummy_target): Don't initialize to_find_memory_regions.
3540 * target.h (struct target_ops) <to_find_memory_regions>: Use
3541 TARGET_DEFAULT_FUNC.
3543 2014-02-19 Tom Tromey <tromey@redhat.com>
3545 * target-delegates.c: Rebuild.
3546 * target.c (update_current_target): Don't inherit or default
3548 * target.h (struct target_ops) <to_log_command>: Use
3549 TARGET_DEFAULT_IGNORE.
3550 (target_log_command): Unconditionally delegate.
3552 2014-02-19 Tom Tromey <tromey@redhat.com>
3554 * target-delegates.c: Rebuild.
3555 * target.c (update_current_target): Don't inherit or default
3556 to_pid_to_exec_file.
3557 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
3558 TARGET_DEFAULT_RETURN.
3560 2014-02-19 Tom Tromey <tromey@redhat.com>
3562 * target-delegates.c: Rebuild.
3563 * target.c (update_current_target): Don't inherit or default
3565 (target_thread_name): Unconditionally delegate.
3566 * target.h (struct target_ops) <to_thread_name>: Use
3567 TARGET_DEFAULT_RETURN.
3569 2014-02-19 Tom Tromey <tromey@redhat.com>
3571 * target-delegates.c: Rebuild.
3572 * target.c (update_current_target): Don't inherit or default
3573 to_extra_thread_info.
3574 * target.h (struct target_ops) <to_extra_thread_info>: Use
3575 TARGET_DEFAULT_RETURN.
3577 2014-02-19 Tom Tromey <tromey@redhat.com>
3579 * target-delegates.c: Rebuild.
3580 * target.c (update_current_target): Don't inherit or default
3582 * target.h (struct target_ops) <to_has_exited>: Use
3583 TARGET_DEFAULT_RETURN..
3585 2014-02-19 Tom Tromey <tromey@redhat.com>
3587 * target-delegates.c: Rebuild.
3588 * target.c (update_current_target): Don't inherit or default
3589 to_set_syscall_catchpoint.
3590 (return_one): Remove.
3591 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
3592 TARGET_DEFAULT_RETURN.
3594 2014-02-19 Tom Tromey <tromey@redhat.com>
3596 * target-delegates.c: Rebuild.
3597 * target.c (update_current_target): Don't inherit or default
3598 to_insert_exec_catchpoint.
3599 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
3600 TARGET_DEFAULT_RETURN.
3602 2014-01-08 Tom Tromey <tromey@redhat.com>
3604 * target-delegates.c: Rebuild.
3605 * target.c (update_current_target): Don't inherit or default
3606 to_insert_exec_catchpoint.
3607 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
3608 TARGET_DEFAULT_RETURN.
3610 2014-02-19 Tom Tromey <tromey@redhat.com>
3612 * target-delegates.c: Rebuild.
3613 * target.c (update_current_target): Don't inherit or default
3614 to_remove_vfork_catchpoint.
3615 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
3616 TARGET_DEFAULT_RETURN.
3618 2014-02-19 Tom Tromey <tromey@redhat.com>
3620 * target-delegates.c: Rebuild.
3621 * target.c (update_current_target): Don't inherit or default
3622 to_insert_vfork_catchpoint.
3623 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
3624 TARGET_DEFAULT_RETURN.
3626 2014-02-19 Tom Tromey <tromey@redhat.com>
3628 * target-delegates.c: Rebuild.
3629 * target.c (update_current_target): Don't inherit or default
3630 to_remove_fork_catchpoint.
3631 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
3632 TARGET_DEFAULT_RETURN.
3634 2014-02-19 Tom Tromey <tromey@redhat.com>
3636 * target-delegates.c: Rebuild.
3637 * target.c (update_current_target): Don't inherit or default
3638 to_insert_fork_catchpoint.
3639 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
3640 TARGET_DEFAULT_RETURN.
3642 2014-02-19 Tom Tromey <tromey@redhat.com>
3644 * target-delegates.c: Rebuild.
3645 * target.c (update_current_target): Don't inherit or default
3646 to_post_startup_inferior.
3647 * target.h (struct target_ops) <to_post_startup_inferior>: Use
3648 TARGET_DEFAULT_IGNORE.
3650 2014-02-19 Tom Tromey <tromey@redhat.com>
3652 * target-delegates.c: Rebuild.
3653 * target.c (update_current_target): Don't inherit or default
3655 * target.h (struct target_ops) <to_load>: Use
3656 TARGET_DEFAULT_NORETURN.
3658 2014-02-19 Tom Tromey <tromey@redhat.com>
3660 * target-delegates.c: Rebuild.
3661 * target.c (update_current_target): Don't inherit or default
3663 * target.h (struct target_ops) <to_terminal_info>: Use
3664 TARGET_DEFAULT_FUNC.
3666 2014-02-19 Tom Tromey <tromey@redhat.com>
3668 * target-delegates.c: Rebuild.
3669 * target.c (update_current_target): Don't inherit or default
3670 to_terminal_save_ours.
3671 * target.h (struct target_ops) <to_terminal_save_ours>: Use
3672 TARGET_DEFAULT_IGNORE.
3674 2014-02-19 Tom Tromey <tromey@redhat.com>
3676 * target-delegates.c: Rebuild.
3677 * target.c (update_current_target): Don't inherit or default
3679 * target.h (struct target_ops) <to_terminal_ours>: Use
3680 TARGET_DEFAULT_IGNORE.
3682 2014-02-19 Tom Tromey <tromey@redhat.com>
3684 * target-delegates.c: Rebuild.
3685 * target.c (update_current_target): Don't inherit or default
3686 to_terminal_ours_for_output.
3687 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
3688 TARGET_DEFAULT_IGNORE.
3690 2014-02-19 Tom Tromey <tromey@redhat.com>
3692 * target-delegates.c: Rebuild.
3693 * target.c (update_current_target): Don't inherit or default
3694 to_terminal_inferior.
3695 * target.h (struct target_ops) <to_terminal_inferior>: Use
3696 TARGET_DEFAULT_IGNORE.
3698 2014-02-19 Tom Tromey <tromey@redhat.com>
3700 * target-delegates.c: Rebuild.
3701 * target.c (update_current_target): Don't inherit or default
3703 * target.h (struct target_ops) <to_terminal_init>: Use
3704 TARGET_DEFAULT_IGNORE.
3706 2014-02-19 Tom Tromey <tromey@redhat.com>
3708 * target-delegates.c: Rebuild.
3709 * target.c (update_current_target): Don't inherit or default
3710 to_can_accel_watchpoint_condition.
3711 * target.h (struct target_ops)
3712 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
3714 2014-02-19 Tom Tromey <tromey@redhat.com>
3716 * target-delegates.c: Rebuild.
3717 * target.c (update_current_target): Don't inherit or default
3718 to_region_ok_for_hw_watchpoint.
3719 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
3720 Use TARGET_DEFAULT_FUNC.
3722 2014-02-19 Tom Tromey <tromey@redhat.com>
3724 * target-delegates.c: Rebuild.
3725 * target.c (update_current_target): Don't inherit or default
3726 to_watchpoint_addr_within_range.
3727 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
3728 Use TARGET_DEFAULT_FUNC.
3730 2014-02-19 Tom Tromey <tromey@redhat.com>
3732 * target-delegates.c: Rebuild.
3733 * target.c (update_current_target): Don't inherit or default
3734 to_remove_watchpoint.
3735 * target.h (struct target_ops) <to_remove_watchpoint>: Use
3736 TARGET_DEFAULT_NORETURN.
3738 2014-02-19 Tom Tromey <tromey@redhat.com>
3740 * target-delegates.c: Rebuild.
3741 * target.c (update_current_target): Don't inherit or default
3742 to_insert_watchpoint.
3743 * target.h (struct target_ops) <to_insert_watchpoint>: Use
3744 TARGET_DEFAULT_RETURN.
3746 2014-02-19 Tom Tromey <tromey@redhat.com>
3748 * target-delegates.c: Rebuild.
3749 * target.c (update_current_target): Don't inherit or default
3750 to_remove_hw_breakpoint.
3751 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
3752 TARGET_DEFAULT_RETURN.
3754 2014-02-19 Tom Tromey <tromey@redhat.com>
3756 * target-delegates.c: Rebuild.
3757 * target.c (update_current_target): Don't inherit or default
3758 to_insert_hw_breakpoint.
3759 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
3760 TARGET_DEFAULT_RETURN.
3762 2014-02-19 Tom Tromey <tromey@redhat.com>
3764 * target-delegates.c: Rebuild.
3765 * target.c (update_current_target): Don't inherit or default
3766 to_can_use_hw_breakpoint.
3767 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
3768 TARGET_DEFAULT_RETURN.
3770 2014-02-19 Tom Tromey <tromey@redhat.com>
3772 * target-delegates.c: Rebuild.
3773 * target.c (update_current_target): Don't inherit or default
3775 * target.h (struct target_ops) <to_files_info>: Use
3776 TARGET_DEFAULT_IGNORE.
3778 2014-02-19 Tom Tromey <tromey@redhat.com>
3780 * target-delegates.c: Rebuild.
3781 * target.c (update_current_target): Don't inherit or default
3783 * target.h (struct target_ops) <to_store>: Use
3784 TARGET_DEFAULT_NORETURN.
3786 2014-02-19 Tom Tromey <tromey@redhat.com>
3788 * target-delegates.c: Rebuild.
3789 * target.c (update_current_target): Don't inherit or default
3791 * target.h (struct target_ops) <to_post_attach>: Use
3792 TARGET_DEFAULT_IGNORE.
3794 2014-02-19 Tom Tromey <tromey@redhat.com>
3796 * target-delegates.c: Rebuild.
3797 * target.c (update_current_target): Don't inherit or default
3799 (default_rcmd): New function.
3800 (do_monitor_command): Unconditionally delegate.
3801 * target.h (struct target_ops) <to_rmcd>: Use
3802 TARGET_DEFAULT_FUNC.
3804 2014-02-19 Tom Tromey <tromey@redhat.com>
3806 * target-delegates.c: Rebuild.
3807 * target.c (init_dummy_target): Don't initialize to_attach.
3808 (target_attach): Unconditionally delegate.
3809 * target.h (struct target_ops) <to_attach>: Use
3810 TARGET_DEFAULT_FUNC.
3812 2014-02-19 Tom Tromey <tromey@redhat.com>
3814 * target-delegates.c: Rebuild.
3815 * target.c (target_detach): Unconditionally delegate.
3816 (init_dummy_target): Don't initialize to_detach.
3817 * target.h (struct target_ops) <to_detach>: Use
3818 TARGET_DEFAULT_IGNORE.
3820 2014-02-19 Tom Tromey <tromey@redhat.com>
3822 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
3824 (target_augmented_libraries_svr4_read): Add argument.
3825 * target.c (update_current_target): Update.
3826 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
3829 2014-02-19 Tom Tromey <tromey@redhat.com>
3831 * target.h (struct target_ops) <to_call_history_range>: Add
3833 * target.c (target_call_history_range): Add argument.
3834 * record-btrace.c (record_btrace_call_history_range): Add 'self'
3836 (record_btrace_call_history_from): Update.
3838 2014-02-19 Tom Tromey <tromey@redhat.com>
3840 * target.h (struct target_ops) <to_call_history_from>: Add
3842 * target.c (target_call_history_from): Add argument.
3843 * record-btrace.c (record_btrace_call_history_from): Add 'self'
3846 2014-02-19 Tom Tromey <tromey@redhat.com>
3848 * target.h (struct target_ops) <to_call_history>: Add argument.
3849 * target.c (target_call_history): Add argument.
3850 * record-btrace.c (record_btrace_call_history): Add 'self'
3853 2014-02-19 Tom Tromey <tromey@redhat.com>
3855 * target.h (struct target_ops) <to_insn_history_range>: Add
3857 * target.c (target_insn_history_range): Add argument.
3858 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
3860 (record_btrace_insn_history_from): Update.
3862 2014-02-19 Tom Tromey <tromey@redhat.com>
3864 * target.h (struct target_ops) <to_insn_history_from>: Add
3866 * target.c (target_insn_history_from): Add argument.
3867 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
3870 2014-02-19 Tom Tromey <tromey@redhat.com>
3872 * target.h (struct target_ops) <to_insn_history>: Add argument.
3873 * target.c (target_insn_history): Add argument.
3874 * record-btrace.c (record_btrace_insn_history): Add 'self'
3877 2014-02-19 Tom Tromey <tromey@redhat.com>
3879 * target.h (struct target_ops) <to_goto_record>: Add argument.
3880 * target.c (target_goto_record): Add argument.
3881 * record-full.c (record_full_goto): Add 'self' argument.
3882 * record-btrace.c (record_btrace_goto): Add 'self' argument.
3884 2014-02-19 Tom Tromey <tromey@redhat.com>
3886 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
3887 * target.c (target_goto_record_end): Add argument.
3888 * record-full.c (record_full_goto_end): Add 'self' argument.
3889 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
3891 2014-02-19 Tom Tromey <tromey@redhat.com>
3893 * target.h (struct target_ops) <to_goto_record_begin>: Add
3895 * target.c (target_goto_record_begin): Add argument.
3896 * record-full.c (record_full_goto_begin): Add 'self' argument.
3897 * record-btrace.c (record_btrace_goto_begin): Add 'self'
3900 2014-02-19 Tom Tromey <tromey@redhat.com>
3902 * target.h (struct target_ops) <to_record_is_replaying>: Add
3904 * target.c (target_record_is_replaying): Add argument.
3905 * record-full.c (record_full_is_replaying): Add 'self' argument.
3906 * record-btrace.c (record_btrace_is_replaying): Add 'self'
3908 (record_btrace_xfer_partial, record_btrace_store_registers)
3909 (record_btrace_prepare_to_store, record_btrace_resume)
3910 (record_btrace_wait, record_btrace_decr_pc_after_break)
3911 (record_btrace_find_new_threads, record_btrace_thread_alive):
3914 2014-02-19 Tom Tromey <tromey@redhat.com>
3916 * target.h (struct target_ops) <to_delete_record>: Add argument.
3917 * target.c (target_delete_record): Add argument.
3918 * record-full.c (record_full_delete): Add 'self' argument.
3920 2014-02-19 Tom Tromey <tromey@redhat.com>
3922 * target.h (struct target_ops) <to_save_record>: Add argument.
3923 * target.c (target_save_record): Add argument.
3924 * record-full.c (record_full_save): Add 'self' argument.
3925 (record_full_save): Add 'self' argument.
3927 2014-02-19 Tom Tromey <tromey@redhat.com>
3929 * target.h (struct target_ops) <to_info_record>: Add argument.
3930 * target.c (target_info_record): Add argument.
3931 * record.c (info_record_command): Add argument.
3932 * record-full.c (record_full_info): Add 'self' argument.
3933 * record-btrace.c (record_btrace_info): Add 'self' argument.
3935 2014-02-19 Tom Tromey <tromey@redhat.com>
3937 * target.h (struct target_ops) <to_stop_recording>: Add argument.
3938 * target.c (target_stop_recording): Add argument.
3939 * record.c (record_stop): Add argument.
3940 * record-btrace.c (record_btrace_stop_recording): Add 'self'
3943 2014-02-19 Tom Tromey <tromey@redhat.com>
3945 * target.h (struct target_ops) <to_read_btrace>: Add argument.
3946 * target.c (struct target_ops) <to_read_btrace>: Add argument.
3947 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
3949 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
3950 (_initialize_amd64_linux_nat): Use it.
3951 * i386-linux-nat.c (i386_linux_read_btrace): New function.
3952 (_initialize_i386_linux_nat): Use it.
3954 2014-02-19 Tom Tromey <tromey@redhat.com>
3956 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
3957 * target.c (target_teardown_btrace): Add argument.
3958 * remote.c (remote_teardown_btrace): Add 'self' argument.
3959 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
3961 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
3964 2014-02-19 Tom Tromey <tromey@redhat.com>
3966 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
3967 * target.c (target_disable_btrace): Add argument.
3968 * remote.c (remote_disable_btrace): Add 'self' argument.
3969 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
3971 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
3974 2014-02-19 Tom Tromey <tromey@redhat.com>
3976 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
3977 * target.c (target_enable_btrace): Add argument.
3978 * remote.c (remote_enable_btrace): Add 'self' argument.
3979 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
3981 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
3984 2014-02-19 Tom Tromey <tromey@redhat.com>
3986 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
3987 (target_can_use_agent): Add argument.
3988 * target.c (update_current_target): Update.
3989 * remote.c (remote_can_use_agent): Add 'self' argument.
3990 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
3992 2014-02-19 Tom Tromey <tromey@redhat.com>
3994 * target.h (struct target_ops) <to_use_agent>: Add argument.
3995 (target_use_agent): Add argument.
3996 * target.c (update_current_target): Update.
3997 * remote.c (remote_use_agent): Add 'self' argument.
3998 * inf-child.c (inf_child_use_agent): Add 'self' argument.
4000 2014-02-19 Tom Tromey <tromey@redhat.com>
4002 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
4003 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
4004 (target_traceframe_info): Add argument.
4005 * target.c (update_current_target): Update.
4006 * remote.c (remote_traceframe_info): Add 'self' argument.
4007 * ctf.c (ctf_traceframe_info): Add 'self' argument.
4009 2014-02-19 Tom Tromey <tromey@redhat.com>
4011 * target.h (target_static_tracepoint_markers_by_strid): Add
4013 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
4015 * target.c (update_current_target): Update.
4016 * remote.c (struct target_ops)
4017 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
4018 * linux-nat.c (struct target_ops)
4019 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
4021 2014-02-19 Tom Tromey <tromey@redhat.com>
4023 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4025 (target_static_tracepoint_marker_at): Add argument.
4026 * target.c (update_current_target): Update.
4027 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
4030 2014-02-19 Tom Tromey <tromey@redhat.com>
4032 * target.h (struct target_ops) <to_set_permissions>: Add argument.
4033 (target_set_permissions): Add argument.
4034 * target.c (update_current_target): Update.
4035 * remote.c (remote_set_permissions): Add 'self' argument.
4036 (remote_start_remote): Update.
4038 2014-02-19 Tom Tromey <tromey@redhat.com>
4040 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
4041 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
4042 (target_get_tib_address): Add argument.
4043 * target.c (update_current_target): Update.
4044 * remote.c (remote_get_tib_address): Add 'self' argument.
4046 2014-02-19 Tom Tromey <tromey@redhat.com>
4048 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
4049 (target_set_trace_notes): Add argument.
4050 * target.c (update_current_target): Update.
4051 * remote.c (remote_set_trace_notes): Add 'self' argument.
4053 2014-02-19 Tom Tromey <tromey@redhat.com>
4055 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
4057 (target_set_trace_buffer_size): Add argument.
4058 * target.c (update_current_target): Update.
4059 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
4061 2014-02-19 Tom Tromey <tromey@redhat.com>
4063 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
4065 (target_set_circular_trace_buffer): Add argument.
4066 * target.c (update_current_target): Update.
4067 * remote.c (remote_set_circular_trace_buffer): Add 'self'
4070 2014-02-19 Tom Tromey <tromey@redhat.com>
4072 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
4074 (target_set_disconnected_tracing): Add argument.
4075 * target.c (update_current_target): Update.
4076 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
4078 2014-02-19 Tom Tromey <tromey@redhat.com>
4080 * target.h (struct target_ops)
4081 <to_get_min_fast_tracepoint_insn_len>: Add argument.
4082 (target_get_min_fast_tracepoint_insn_len): Add argument.
4083 * target.c (update_current_target): Update.
4084 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
4087 2014-02-19 Tom Tromey <tromey@redhat.com>
4089 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
4091 (target_get_raw_trace_data): Add argument.
4092 * target.c (update_current_target): Update.
4093 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
4095 2014-02-19 Tom Tromey <tromey@redhat.com>
4097 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4099 (target_upload_trace_state_variables): Add argument.
4100 * target.c (update_current_target): Update.
4101 * remote.c (remote_upload_trace_state_variables): Add 'self'
4103 (remote_start_remote): Update.
4105 2014-02-19 Tom Tromey <tromey@redhat.com>
4107 * target.h (struct target_ops) <to_upload_tracepoints>: Add
4109 (target_upload_tracepoints): Add argument.
4110 * target.c (update_current_target): Update.
4111 * remote.c (remote_upload_tracepoints): Add 'self' argument.
4112 (remote_start_remote): Update.
4114 2014-02-19 Tom Tromey <tromey@redhat.com>
4116 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
4117 (target_save_trace_data): Add argument.
4118 * target.c (update_current_target): Update.
4119 * remote.c (remote_save_trace_data): Add 'self' argument.
4121 2014-02-19 Tom Tromey <tromey@redhat.com>
4123 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
4125 * target.h (struct target_ops)
4126 <to_get_trace_state_variable_value>: Add argument.
4127 (target_get_trace_state_variable_value): Add argument.
4128 * target.c (update_current_target): Update.
4129 * remote.c (remote_get_trace_state_variable_value): Add 'self'
4131 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
4133 2014-02-19 Tom Tromey <tromey@redhat.com>
4135 * tracepoint.c (tfile_trace_find): Add 'self' argument.
4136 * target.h (struct target_ops) <to_trace_find>: Add argument.
4137 (target_trace_find): Add argument.
4138 * target.c (update_current_target): Update.
4139 * remote.c (remote_trace_find): Add 'self' argument.
4140 * ctf.c (ctf_trace_find): Add 'self' argument.
4142 2014-02-19 Tom Tromey <tromey@redhat.com>
4144 * target.h (struct target_ops) <to_trace_stop>: Add argument.
4145 (target_trace_stop): Add argument.
4146 * target.c (update_current_target): Update.
4147 * remote.c (remote_trace_stop): Add 'self' argument.
4149 2014-02-19 Tom Tromey <tromey@redhat.com>
4151 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
4152 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
4154 (target_get_tracepoint_status): Add argument.
4155 * target.c (update_current_target): Update.
4156 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
4158 2014-02-19 Tom Tromey <tromey@redhat.com>
4160 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
4161 * target.h (struct target_ops) <to_get_trace_status>: Add
4163 (target_get_trace_status): Add argument.
4164 * target.c (update_current_target): Update.
4165 * remote.c (remote_get_trace_status): Add 'self' argument.
4166 (remote_start_remote, remote_can_download_tracepoint): Update.
4167 * ctf.c (ctf_get_trace_status): Add 'self' argument.
4169 2014-02-19 Tom Tromey <tromey@redhat.com>
4171 * target.h (struct target_ops) <to_trace_start>: Add argument.
4172 (target_trace_start): Add argument.
4173 * target.c (update_current_target): Update.
4174 * remote.c (remote_trace_start): Add 'self' argument.
4176 2014-02-19 Tom Tromey <tromey@redhat.com>
4178 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4180 (target_trace_set_readonly_regions): Add argument.
4181 * target.c (update_current_target): Update.
4182 * remote.c (remote_trace_set_readonly_regions): Add 'self'
4185 2014-02-19 Tom Tromey <tromey@redhat.com>
4187 * target.h (struct target_ops) <to_disable_tracepoint>: Add
4189 (target_disable_tracepoint): Add argument.
4190 * target.c (update_current_target): Update.
4191 * remote.c (remote_disable_tracepoint): Add 'self' argument.
4193 2014-02-19 Tom Tromey <tromey@redhat.com>
4195 * target.h (struct target_ops) <to_enable_tracepoint>: Add
4197 (target_enable_tracepoint): Add argument.
4198 * target.c (update_current_target): Update.
4199 * remote.c (remote_enable_tracepoint): Add 'self' argument.
4201 2014-02-19 Tom Tromey <tromey@redhat.com>
4203 * target.h (struct target_ops) <to_download_trace_state_variable>:
4205 (target_download_trace_state_variable): Add argument.
4206 * target.c (update_current_target): Update.
4207 * remote.c (remote_download_trace_state_variable): Add 'self'
4210 2014-02-19 Tom Tromey <tromey@redhat.com>
4212 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
4214 (target_can_download_tracepoint): Add argument.
4215 * target.c (update_current_target): Update.
4216 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
4218 2014-02-19 Tom Tromey <tromey@redhat.com>
4220 * target.h (struct target_ops) <to_download_tracepoint>: Add
4222 (target_download_tracepoint): Add argument.
4223 * target.c (update_current_target): Update.
4224 * remote.c (remote_download_tracepoint): Add 'self' argument.
4226 2014-02-19 Tom Tromey <tromey@redhat.com>
4228 * target.h (struct target_ops) <to_trace_init>: Add argument.
4229 (target_trace_init): Add argument.
4230 * target.c (update_current_target): Update.
4231 * remote.c (remote_trace_init): Add 'self' argument.
4233 2014-02-19 Tom Tromey <tromey@redhat.com>
4235 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
4236 * target.c (target_fileio_readlink): Add argument.
4237 * remote.c (remote_hostio_readlink): Add 'self' argument.
4238 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
4240 2014-02-19 Tom Tromey <tromey@redhat.com>
4242 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
4243 * target.c (target_fileio_unlink): Add argument.
4244 * remote.c (remote_hostio_unlink): Add 'self' argument.
4245 (remote_file_delete): Update.
4246 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
4248 2014-02-19 Tom Tromey <tromey@redhat.com>
4250 * target.h (struct target_ops) <to_fileio_close>: Add argument.
4251 * target.c (target_fileio_close): Add argument.
4252 * remote.c (remote_hostio_close): Add 'self' argument.
4253 (remote_hostio_close_cleanup): Update.
4254 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
4256 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
4258 2014-02-19 Tom Tromey <tromey@redhat.com>
4260 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
4261 * target.c (target_fileio_pread): Add argument.
4262 * remote.c (remote_hostio_pread): Add 'self' argument.
4263 (remote_bfd_iovec_pread, remote_file_get): Update.
4264 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
4266 2014-02-19 Tom Tromey <tromey@redhat.com>
4268 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
4269 * target.c (target_fileio_pwrite): Add argument.
4270 * remote.c (remote_hostio_pwrite): Add 'self' argument.
4271 (remote_file_put): Update.
4272 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
4274 2014-02-19 Tom Tromey <tromey@redhat.com>
4276 * target.h (struct target_ops) <to_fileio_open>: Add argument.
4277 * target.c (target_fileio_open): Add argument.
4278 * remote.c (remote_hostio_open): Add 'self' argument.
4279 (remote_bfd_iovec_open): Add 'self' argument.
4280 (remote_file_put): Add 'self' argument.
4281 (remote_file_get): Add 'self' argument.
4282 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
4284 2014-02-19 Tom Tromey <tromey@redhat.com>
4286 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4288 (target_can_run_breakpoint_commands): Add argument.
4289 * target.c (update_current_target): Update.
4290 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
4292 (remote_insert_breakpoint): Add 'self' argument.
4293 (remote_insert_hw_breakpoint): Add 'self' argument.
4294 (remote_can_run_breakpoint_commands): Add 'self' argument.
4296 2014-02-19 Tom Tromey <tromey@redhat.com>
4298 * target.h (struct target_ops)
4299 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
4300 (target_supports_evaluation_of_breakpoint_conditions): Add
4302 * target.c (update_current_target): Update.
4303 * remote.c (remote_supports_cond_breakpoints): Add 'self'
4305 (remote_insert_breakpoint): Add 'self' argument.
4306 (remote_insert_hw_breakpoint): Add 'self' argument.
4307 (remote_supports_cond_breakpoints): Add 'self' argument.
4309 2014-02-19 Tom Tromey <tromey@redhat.com>
4311 * target.h (struct target_ops) <to_supports_string_tracing>: Add
4313 (target_supports_string_tracing): Add argument.
4314 * target.c (update_current_target): Update.
4315 * remote.c (remote_supports_string_tracing): Add 'self' argument.
4317 2014-02-19 Tom Tromey <tromey@redhat.com>
4319 * target.h (struct target_ops)
4320 <to_supports_disable_randomization>: Add argument.
4321 * target.c (find_default_supports_disable_randomization): Add
4323 (target_supports_disable_randomization): Add argument.
4324 (find_default_supports_disable_randomization): Add 'self'
4326 * remote.c (extended_remote_supports_disable_randomization): Add
4328 (remote_supports_disable_randomization): Add 'self' argument.
4329 (extended_remote_create_inferior): Update.
4330 * linux-nat.c (linux_nat_supports_disable_randomization): Add
4333 2014-02-19 Tom Tromey <tromey@redhat.com>
4335 * target.h (struct target_ops)
4336 <to_supports_enable_disable_tracepoint>: Add argument.
4337 (target_supports_enable_disable_tracepoint): Add argument.
4338 * target.c (update_current_target): Update.
4339 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
4342 2014-02-19 Tom Tromey <tromey@redhat.com>
4344 * target.h (struct target_ops) <to_supports_multi_process>: Add
4346 (target_supports_multi_process): Add argument.
4347 * target.c (update_current_target): Update.
4348 * remote.c (remote_supports_multi_process): Add 'self' argument.
4349 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
4351 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
4354 2014-02-19 Tom Tromey <tromey@redhat.com>
4356 * target.h (struct target_ops) <to_execution_direction>: Add
4358 (target_execution_direction): Add argument.
4359 * target.c (default_execution_direction): Add 'self' argument.
4360 * record-full.c (record_full_execution_direction): Add 'self'
4363 2014-02-19 Tom Tromey <tromey@redhat.com>
4365 * target.h (struct target_ops) <to_can_execute_reverse>: Add
4367 (target_can_execute_reverse): Add argument.
4368 * remote.c (remote_can_execute_reverse): Add 'self' argument.
4369 * record-full.c (record_full_can_execute_reverse): Add 'self'
4371 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
4374 2014-02-19 Tom Tromey <tromey@redhat.com>
4376 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
4377 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
4379 (target_get_ada_task_ptid): Add argument.
4380 * target.c (update_current_target): Update.
4381 (default_get_ada_task_ptid): Add 'self' argument.
4382 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
4383 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
4384 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
4386 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
4388 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
4390 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
4392 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
4393 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
4396 2014-02-19 Tom Tromey <tromey@redhat.com>
4398 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
4399 (target_goto_bookmark): Add argument.
4400 * target.c (dummy_goto_bookmark): Add 'self' argument.
4401 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
4403 2014-02-19 Tom Tromey <tromey@redhat.com>
4405 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
4406 (target_get_bookmark): Add argument.
4407 * target.c (dummy_get_bookmark): Add 'self' argument.
4408 * record-full.c (record_full_get_bookmark): Add 'self' argument.
4410 2014-02-19 Tom Tromey <tromey@redhat.com>
4412 * target.h (struct target_ops) <to_make_corefile_notes>: Add
4414 (target_make_corefile_notes): Add argument.
4415 * target.c (dummy_make_corefile_notes): Add 'self' argument.
4416 * procfs.c (procfs_make_note_section): Add 'self' argument.
4417 (procfs_make_note_section): Add 'self' argument.
4418 (procfs_make_note_section): Add 'self' argument.
4419 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
4421 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
4422 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
4423 * exec.c (exec_make_note_section): Add 'self' argument.
4424 (exec_make_note_section): Add 'self' argument.
4426 2014-02-19 Tom Tromey <tromey@redhat.com>
4428 * target.h (struct target_ops) <to_find_memory_regions>: Add
4430 (target_find_memory_regions): Add argument.
4431 * target.c (dummy_find_memory_regions): Add 'self' argument.
4432 * procfs.c (proc_find_memory_regions): Add 'self' argument.
4433 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
4434 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
4435 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
4436 * exec. (exec_do_find_memory_regions): New global.
4437 (exec_set_find_memory_regions): Rewrite.
4438 (exec_find_memory_regions): New function.
4439 (init_exec_ops): Use exec_find_memory_regions.
4441 2014-02-19 Tom Tromey <tromey@redhat.com>
4443 * target.h (struct target_ops) <to_supports_non_stop>: Add
4445 * target.c (find_default_supports_non_stop): Add argument.
4446 (target_supports_non_stop): Add argument.
4447 (find_default_supports_non_stop): Add 'self' argument.
4448 * remote.c (remote_supports_non_stop): Add 'self' argument.
4449 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
4451 2014-02-19 Tom Tromey <tromey@redhat.com>
4453 * target.h (struct target_ops) <to_log_command>: Add argument.
4454 (target_log_command): Add argument.
4455 * serial.h (serial_log_command): Add 'self' argument.
4456 * serial.c (serial_log_command): Add 'self' argument.
4458 2014-02-19 Tom Tromey <tromey@redhat.com>
4460 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
4461 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
4463 (target_pid_to_exec_file): Add argument.
4464 * target.c (debug_to_pid_to_exec_file): Add argument.
4465 (update_current_target): Update.
4466 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
4467 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
4468 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
4469 (linux_handle_extended_wait): Update.
4470 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
4471 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
4472 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
4473 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
4475 2014-02-19 Tom Tromey <tromey@redhat.com>
4477 * target.h (struct target_ops) <to_rcmd>: Add argument.
4478 (target_rcmd): Add argument.
4479 * target.c (debug_to_rcmd): Add argument.
4480 (update_current_target, do_monitor_command): Update.
4481 * remote.c (remote_rcmd): Add 'self' argument.
4482 * monitor.c (monitor_rcmd): Add 'self' argument.
4484 2014-02-19 Tom Tromey <tromey@redhat.com>
4486 * windows-nat.c (windows_stop): Add 'self' argument.
4487 * target.h (struct target_ops) <to_stop>: Add argument.
4488 * target.c (target_stop): Add argument.
4489 (debug_to_stop): Add argument.
4490 (update_current_target): Update.
4491 * remote.c (remote_stop): Add 'self' argument.
4492 * remote-sim.c (gdbsim_stop): Add 'self' argument.
4493 (gdbsim_cntrl_c): Update.
4494 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
4495 * procfs.c (procfs_stop): Add 'self' argument.
4496 * nto-procfs.c (procfs_stop): Add 'self' argument.
4497 * monitor.c (monitor_stop): Add 'self' argument.
4498 (monitor_open): Update.
4499 * linux-nat.c (linux_nat_stop): Add argument.
4500 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
4501 * gnu-nat.c (gnu_stop): Add 'self' argument.
4502 * darwin-nat.c (darwin_stop): Add 'self' argument.
4504 2014-02-19 Tom Tromey <tromey@redhat.com>
4506 * target.h (struct target_ops) <to_thread_name>: Add argument.
4507 * target.c (target_thread_name): Add argument.
4508 (update_current_target): Update.
4509 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
4511 2014-02-19 Tom Tromey <tromey@redhat.com>
4513 * target.h (struct target_ops) <to_extra_thread_info>: Add
4515 (target_extra_thread_info): Add argument.
4516 * target.c (update_current_target): Update.
4517 * remote.c (remote_threads_extra_info): Add 'self' argument.
4518 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
4520 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
4521 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
4522 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
4524 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
4526 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
4528 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
4531 2014-02-19 Tom Tromey <tromey@redhat.com>
4533 * target.h (struct target_ops) <to_program_signals>: Add argument.
4534 * target.c (target_program_signals): Add argument.
4535 * remote.c (remote_program_signals): Add 'self' argument.
4537 2014-02-19 Tom Tromey <tromey@redhat.com>
4539 * target.h (struct target_ops) <to_pass_signals>: Add argument.
4540 * target.c (target_pass_signals): Add argument.
4541 * remote.c (remote_pass_signals): Add 'self' argument.
4542 (remote_start_remote): Update.
4543 * procfs.c (procfs_pass_signals): Add 'self' argument.
4544 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
4545 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
4546 (linux_nat_create_inferior, linux_nat_attach): Update.
4548 2014-02-19 Tom Tromey <tromey@redhat.com>
4550 * windows-nat.c (windows_can_run): Add 'self' argument.
4551 * target.h (struct target_ops) <to_can_run>: Add argument.
4552 (target_can_run): Add argument.
4553 * target.c (debug_to_can_run): Add argument.
4554 (update_current_target): Update.
4555 * nto-procfs.c (procfs_can_run): Add 'self' argument.
4556 * inf-child.c (inf_child_can_run): Add 'self' argument.
4557 * go32-nat.c (go32_can_run): Add 'self' argument.
4559 2014-02-19 Tom Tromey <tromey@redhat.com>
4561 * target.h (struct target_ops) <to_has_exited>: Add argument.
4562 (target_has_exited): Add argument.
4563 * target.c (debug_to_has_exited): Add argument.
4564 (update_current_target): Update.
4566 2014-02-19 Tom Tromey <tromey@redhat.com>
4568 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
4570 (target_set_syscall_catchpoint): Add argument.
4571 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
4573 * target.c (update_current_target): Update.
4575 2014-02-19 Tom Tromey <tromey@redhat.com>
4577 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
4579 (target_remove_exec_catchpoint): Add argument.
4580 * target.c (debug_to_remove_exec_catchpoint): Add argument.
4581 (update_current_target): Update.
4582 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
4585 2014-02-19 Tom Tromey <tromey@redhat.com>
4587 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
4589 (target_insert_exec_catchpoint): Add argument.
4590 * target.c (debug_to_insert_exec_catchpoint): Add argument.
4591 (update_current_target): Update.
4592 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
4595 2014-02-19 Tom Tromey <tromey@redhat.com>
4597 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
4599 (target_remove_vfork_catchpoint): Add argument.
4600 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
4601 (update_current_target): Update.
4602 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
4605 2014-02-19 Tom Tromey <tromey@redhat.com>
4607 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
4609 (target_insert_vfork_catchpoint): Add argument.
4610 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
4611 (update_current_target): Update.
4612 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
4615 2014-02-19 Tom Tromey <tromey@redhat.com>
4617 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
4619 (target_remove_fork_catchpoint): Add argument.
4620 * target.c (debug_to_remove_fork_catchpoint): Add argument.
4621 (update_current_target): Update.
4622 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
4625 2014-02-19 Tom Tromey <tromey@redhat.com>
4627 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
4629 (target_insert_fork_catchpoint): Add argument.
4630 * target.c (debug_to_insert_fork_catchpoint): Add argument.
4631 (update_current_target): Update.
4632 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
4635 2014-02-19 Tom Tromey <tromey@redhat.com>
4637 * target.h (struct target_ops) <to_post_startup_inferior>: Add
4639 (target_post_startup_inferior): Add argument.
4640 * target.c (debug_to_post_startup_inferior): Add argument.
4641 (update_current_target): Update.
4642 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
4644 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
4646 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
4648 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
4650 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
4652 (super_post_startup_inferior): Likewise.
4653 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
4655 (super_post_startup_inferior): Likewise.
4656 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
4657 Add 'self' argument.
4658 (super_post_startup_inferior): Likewise.
4660 2014-02-19 Tom Tromey <tromey@redhat.com>
4662 * target.h (struct target_ops) <to_load>: Add argument.
4663 * target.c (target_load): Add argument.
4664 (debug_to_load): Add argument.
4665 (update_current_target): Update.
4666 * remote.c (remote_load): Add 'self' argument.
4667 * remote-sim.c (gdbsim_load): Add 'self' argument.
4668 * remote-mips.c (mips_load): Add 'self' argument.
4669 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
4670 * monitor.c (monitor_load): Add 'self' argument.
4671 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
4673 2014-02-19 Tom Tromey <tromey@redhat.com>
4675 * target.h (struct target_ops) <to_terminal_info>: Add argument.
4676 (target_terminal_info): Add argument.
4677 * target.c (debug_to_terminal_info): Add argument.
4678 (default_terminal_info): Likewise.
4679 * inflow.c (child_terminal_info): Add 'self' argument.
4680 * inferior.h (child_terminal_info): Add 'self' argument.
4681 * go32-nat.c (go32_terminal_info): Add 'self' argument.
4683 2014-02-19 Tom Tromey <tromey@redhat.com>
4685 * target.h (struct target_ops) <to_terminal_save_ours>: Add
4687 (target_terminal_save_ours): Add argument.
4688 * target.c (debug_to_terminal_save_ours): Add argument.
4689 (update_current_target): Update.
4690 * inflow.c (terminal_save_ours): Add 'self' argument.
4691 * inferior.h (terminal_save_ours): Add 'self' argument.
4693 2014-02-19 Tom Tromey <tromey@redhat.com>
4695 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
4696 (target_terminal_ours): Add argument.
4697 * target.c (debug_to_terminal_ours): Add argument.
4698 (update_current_target): Update.
4699 * remote.c (remote_terminal_ours): Add 'self' argument.
4700 (remote_close): Update.
4701 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
4702 * inflow.c (terminal_ours): Add 'self' argument.
4703 * inferior.h (terminal_ours): Add 'self' argument.
4704 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
4706 2014-02-19 Pedro Alves <palves@redhat.com>
4707 Tom Tromey <tromey@redhat.com>
4709 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
4711 (target_terminal_ours_for_output): Add argument.
4712 * target.c (debug_to_terminal_ours_for_output): Add argument.
4713 (update_current_target): Update.
4714 * inflow.c (terminal_ours_for_output): Add 'self' argument.
4715 * inferior.h (terminal_ours_for_output): Add 'self' argument.
4716 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
4718 2014-02-19 Tom Tromey <tromey@redhat.com>
4720 * target.h (struct target_ops) <to_terminal_inferior>: Add
4722 * target.c (target_terminal_inferior): Add argument.
4723 (update_current_target): Update.
4724 * remote.c (remote_terminal_inferior): Add 'self' argument.
4725 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
4726 * inflow.c (terminal_inferior): Add 'self' argument.
4727 * inferior.h (terminal_inferior): Add 'self' argument.
4728 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
4729 (go32_terminal_inferior): Add 'self' argument.
4731 2014-02-19 Tom Tromey <tromey@redhat.com>
4733 * target.h (struct target_ops) <to_terminal_init>: Add argument.
4734 (target_terminal_init): Add argument.
4735 * target.c (debug_to_terminal_init): Add argument.
4736 (update_current_target): Update.
4737 * inflow.c (terminal_init_inferior): Add 'self' argument.
4738 * inferior.h (terminal_init_inferior): Add 'self' argument.
4739 * go32-nat.c (go32_terminal_init): Add 'self' argument.
4740 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
4742 2014-02-19 Tom Tromey <tromey@redhat.com>
4744 * target.h (struct target_ops)
4745 <to_can_accel_watchpoint_condition>: Add argument.
4746 (target_can_accel_watchpoint_condition): Add argument.
4747 * target.c (debug_to_can_accel_watchpoint_condition): Add
4749 (update_current_target): Update.
4750 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
4753 2014-02-19 Tom Tromey <tromey@redhat.com>
4755 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4757 (target_region_ok_for_hw_watchpoint): Add argument.
4758 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
4759 (default_region_ok_for_hw_watchpoint): Add argument.
4760 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
4761 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
4763 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
4765 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
4767 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
4769 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
4771 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
4773 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
4774 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
4776 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
4777 Add 'self' argument.
4779 2014-02-19 Tom Tromey <tromey@redhat.com>
4781 * target.h (struct target_ops) <to_insert_watchpoint>: Add
4783 (target_insert_watchpoint): Add argument.
4784 * target.c (debug_to_insert_watchpoint): Add argument.
4785 (update_current_target): Update.
4786 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
4787 * remote.c (remote_insert_watchpoint): Add 'self' argument.
4788 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
4789 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
4790 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
4791 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
4793 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
4794 (procfs_insert_hw_watchpoint): Add 'self' argument.
4795 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
4797 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
4799 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
4801 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
4802 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
4804 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
4807 2014-02-19 Tom Tromey <tromey@redhat.com>
4809 * target.h (struct target_ops) <to_remove_watchpoint>: Add
4811 (target_remove_watchpoint): Add argument.
4812 * target.c (debug_to_remove_watchpoint): Add argument.
4813 (update_current_target): Update.
4814 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
4815 * remote.c (remote_remove_watchpoint): Add 'self' argument.
4816 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
4817 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
4818 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
4819 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
4821 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
4822 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
4824 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
4826 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
4828 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
4829 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
4831 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
4834 2014-02-19 Tom Tromey <tromey@redhat.com>
4836 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
4838 (target_remove_hw_breakpoint): Add argument.
4839 * target.c (debug_to_remove_hw_breakpoint): Add argument.
4840 (update_current_target): Update.
4841 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
4842 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
4844 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
4845 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
4847 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
4850 2014-02-19 Tom Tromey <tromey@redhat.com>
4852 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
4854 (target_insert_hw_breakpoint): Add argument.
4855 * target.c (debug_to_insert_hw_breakpoint): Add argument.
4856 (update_current_target): Update.
4857 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
4858 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
4860 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
4861 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
4862 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
4864 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
4867 2014-02-19 Tom Tromey <tromey@redhat.com>
4869 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
4871 (target_can_use_hardware_watchpoint): Add argument.
4872 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
4873 (update_current_target): Update.
4874 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
4876 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
4878 * remote.c (remote_check_watch_resources): Add 'self' argument.
4879 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
4880 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
4882 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
4883 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
4885 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
4887 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
4889 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
4891 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
4893 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
4895 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
4896 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
4898 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
4901 2014-02-19 Tom Tromey <tromey@redhat.com>
4903 * target.h (struct target_ops) <to_post_attach>: Add argument.
4904 (target_post_attach): Add argument.
4905 * target.c (debug_to_post_attach): Add argument.
4906 (update_current_target): Update.
4907 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
4908 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
4909 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
4910 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
4911 * inf-child.c (inf_child_post_attach): Add 'self' argument.
4913 2014-02-19 Tom Tromey <tromey@redhat.com>
4915 * windows-nat.c (windows_close): Add 'self' argument.
4916 * tracepoint.c (tfile_close): Add 'self' argument.
4917 * target.h (struct target_ops) <to_close>: Add argument.
4918 * target.c (target_close): Add argument.
4919 (update_current_target): Update.
4920 * remote.c (remote_close): Add 'self' argument.
4921 * remote-sim.c (gdbsim_close): Add 'self' argument.
4922 * remote-mips.c (mips_close): Add 'self' argument.
4923 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
4924 * record-full.c (record_full_close): Add 'self' argument.
4925 * record-btrace.c (record_btrace_close): Add 'self' argument.
4926 * monitor.h (monitor_close): Add 'self' argument.
4927 * monitor.c (monitor_close): Add 'self' argument.
4928 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
4929 * linux-nat.c (linux_nat_close): Add argument.
4930 * go32-nat.c (go32_close): Add 'self' argument.
4931 * exec.c (exec_close_1): Add 'self' argument.
4932 * ctf.c (ctf_close): Add 'self' argument.
4933 * corelow.c (core_close): Add 'self' argument.
4934 (core_close_cleanup): Update.
4935 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
4936 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
4938 2014-02-19 Tom Tromey <tromey@redhat.com>
4940 * remote.c (remote_load): New function.
4941 (init_remote_ops): Use it.
4943 2014-02-19 Tom Tromey <tromey@redhat.com>
4945 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
4947 * common/linux-btrace.h (linux_supports_btrace): Update.
4948 * remote.c (remote_supports_btrace): Add "self" argument.
4949 * target-delegates.c: Rebuild.
4950 * target.c (target_supports_btrace): Remove.
4951 * target.h (struct target_ops) <to_supports_btrace>: Add
4952 target_ops argument.
4953 (target_supports_btrace): New define.
4955 2014-02-19 Tom Tromey <tromey@redhat.com>
4957 * record-full.c (record_full_beneath_to_resume_ops)
4958 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
4959 (record_full_beneath_to_wait)
4960 (record_full_beneath_to_store_registers_ops)
4961 (record_full_beneath_to_store_registers)
4962 (record_full_beneath_to_xfer_partial_ops)
4963 (record_full_beneath_to_xfer_partial)
4964 (record_full_beneath_to_insert_breakpoint_ops)
4965 (record_full_beneath_to_insert_breakpoint)
4966 (record_full_beneath_to_remove_breakpoint_ops)
4967 (record_full_beneath_to_remove_breakpoint)
4968 (record_full_beneath_to_stopped_by_watchpoint)
4969 (record_full_beneath_to_stopped_data_address)
4970 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
4971 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
4972 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
4973 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
4974 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
4975 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
4976 (tmp_to_stopped_data_address, tmp_to_async): Remove.
4977 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
4978 (record_full_resume, record_full_wait_1)
4979 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
4980 (record_full_store_registers, record_full_xfer_partial)
4981 (record_full_insert_breakpoint, record_full_remove_breakpoint)
4982 (record_full_async, record_full_core_xfer_partial): Use target
4984 * target-delegates.c: Rebuild.
4985 * target.c (current_xfer_partial): Remove.
4986 (update_current_target): Do not INHERIT or de_fault
4987 to_insert_breakpoint, to_remove_breakpoint,
4988 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
4989 to_is_async_p, to_async. Do not set to_xfer_partial field.
4990 (default_xfer_partial): Simplify.
4991 (current_xfer_partial): Remove.
4992 (target_wait, target_resume): Simplify.
4993 (find_default_can_async_p, find_default_is_async_p): Update.
4994 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
4995 to_xfer_partial, to_stopped_by_watchpoint,
4996 to_stopped_data_address.
4997 (target_store_registers): Simplify.
4998 (forward_target_remove_breakpoint)
4999 (forward_target_insert_breakpoint): Remove.
5000 (target_remove_breakpoint, target_insert_breakpoint)
5001 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
5002 * target.h (struct target_ops) <to_resume, to_wait,
5003 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
5004 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
5005 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
5007 (forward_target_remove_breakpoint)
5008 (forward_target_insert_breakpoint): Remove.
5009 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
5011 (record_btrace_insert_breakpoint): Delegate directly.
5013 2014-02-19 Tom Tromey <tromey@redhat.com>
5016 * target-delegates.c: New file.
5017 * target.c: Include target-delegates.c.
5018 (init_dummy_target): Call install_dummy_methods.
5019 (complete_target_initialization): Call install_delegators.
5020 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
5021 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
5022 * make-target-delegates: New file.
5024 2014-02-19 Tom Tromey <tromey@redhat.com>
5026 * record.c (find_record_target): Use find_target_at.
5027 * target.c (find_target_at): New function.
5028 * target.h (find_target_at): Declare.
5030 2014-02-19 Tom Tromey <tromey@redhat.com>
5032 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
5034 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
5036 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
5037 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
5039 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
5041 * linux-nat.c (save_sigtrap): Update.
5042 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
5043 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
5044 (linux_nat_close): Update.
5045 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
5047 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
5049 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
5050 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
5051 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
5052 (tmp_to_async): Add 'ops' argument.
5053 (record_full_stopped_by_watchpoint, record_full_async)
5054 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
5056 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
5057 (m32r_stopped_by_watchpoint): Add 'ops' argument.
5058 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
5059 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
5060 (remote_is_async_p, remote_async): Add 'ops' argument.
5061 (remote_stopped_data_address): Update.
5062 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
5063 * target.c (update_current_target)
5064 (find_default_can_async_p, find_default_is_async_p): Update.
5065 (init_dummy_target): Update.
5066 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
5067 * target.h (struct target_ops) <to_stopped_by_watchpoint,
5068 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
5069 (target_can_async_p, target_is_async_p, target_async)
5070 (target_stopped_by_watchpoint): Update.
5072 2014-02-19 Yao Qi <yao@codesourcery.com>
5075 * gdbarch.sh: Remove startup_gdbarch.
5076 * gdbarch.c: Regenerated.
5077 * gdbarch.h: Likewise.
5079 2014-02-17 Kevin Buettner <kevinb@redhat.com>
5081 * rl78-tdep.c (rl78_g10_register_name): New function.
5082 (rl78_return_value): Add g10 support.
5083 (rl78_gdbarch_init): Register rl78_g10_register_name for the
5086 2014-02-17 Doug Evans <xdje42@gmail.com>
5088 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
5089 (SUBDIR_GUILE_SRCS): Ditto.
5090 (scm-gsmob.o): Ditto.
5092 2014-02-17 Yao Qi <yao@codesourcery.com>
5094 * gnu-nat.c (ILL_RPC): Declare defined function.
5096 2014-02-17 Yao Qi <yao@codesourcery.com>
5098 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
5099 mach_msg_type_number_t.
5100 (gnu_write_inferior): Likewise.
5102 2014-02-17 Yao Qi <yao@codesourcery.com>
5104 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
5106 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
5107 (inf_validate_procs, inf_signal): Likewise.
5108 (S_exception_raise_request): Likewise.
5109 (do_mach_notify_dead_name): Likewise.
5110 (steal_exc_port): Likewise.
5111 (gnu_read_inferior): Change 'copy_count''s type to
5112 mach_msg_type_number_t.
5113 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
5116 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
5118 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
5119 flag. Adjust all users; in particular...
5120 (gnu_wait): ..., don't decrement its value in here...
5121 (gnu_create_inferior): ..., and instead set the flag in here,
5122 around the startup_inferior call, and call that one with
5123 START_INFERIOR_TRAPS_EXPECTED.
5125 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
5126 (ILL_RPC): ... new macro.
5127 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
5128 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
5129 (do_mach_notify_send_once, S_proc_setmsgport_reply)
5130 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
5131 functions with ILL_RPC macro.
5132 (S_proc_pid2task_reply, S_proc_task2pid_reply)
5133 (S_proc_task2proc_reply, S_proc_proc2task_reply)
5134 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
5135 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
5136 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
5137 (S_proc_getlogin_reply, S_proc_getsid_reply)
5138 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
5139 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
5140 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
5141 (S_proc_getnports_reply, S_proc_is_important_reply)
5142 (S_proc_get_code_reply): New stub functions, generated with
5145 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
5146 collected the type check structures.
5148 * reply_mig_hack.awk: Don't expect to see the auto keyword.
5150 2014-02-14 Doug Evans <dje@google.com>
5152 * target.c (target_write_partial): Fix result type.
5154 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
5156 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
5157 the proper offsets to access fpregset_t.
5159 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
5161 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
5162 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
5163 * h8300-tdep.c (setmachinelist): Remove global.
5164 * hppa-tdep.c (hppa_sigtramp): Remove global.
5165 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
5166 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
5167 * ravenscar-thread.c (update_target_observer): Remove global.
5168 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
5170 2014-02-12 Tom Tromey <tromey@redhat.com>
5172 * common/rsp-low.c: Update comments.
5173 * common/rsp-low.h: Update comments.
5175 2014-02-12 Tom Tromey <tromey@redhat.com>
5177 * common/rsp-low.c (convert_ascii_to_int): Remove.
5178 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
5180 2014-02-12 Tom Tromey <tromey@redhat.com>
5182 * common/rsp-low.h (unhexify): Don't declare.
5183 * common/rsp-low.c (unhexify): Remove.
5185 2014-02-12 Tom Tromey <tromey@redhat.com>
5187 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
5188 * common/rsp-low.c (convert_int_to_ascii): Remove.
5190 2014-02-12 Tom Tromey <tromey@redhat.com>
5192 * common/rsp-low.h (hexify): Don't declare.
5193 * common/rsp-low.c (hexify): Remove.
5195 2014-02-12 Tom Tromey <tromey@redhat.com>
5197 * common/rsp-low.c (hexify): Never take strlen of argument.
5199 2014-02-12 Tom Tromey <tromey@redhat.com>
5201 * common/rsp-low.c (bin2hex): Never take strlen of argument.
5202 * remote.c (extended_remote_run, remote_rcmd)
5203 (remote_download_trace_state_variable, remote_save_trace_data)
5204 (remote_set_trace_notes): Update.
5205 * tracepoint.c (encode_source_string, tfile_write_status)
5206 (tfile_write_uploaded_tsv): Update.
5208 2014-02-12 Tom Tromey <tromey@redhat.com>
5210 * tracepoint.c: Include rsp-low.h.
5211 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
5212 * remote.c: Include rsp-low.h.
5213 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
5214 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
5215 (remote_unescape_input): Move to common/rsp-low.c.
5216 * common/rsp-low.h: New file.
5217 * common/rsp-low.c: New file.
5218 * Makefile.in (SFILES): Add common/rsp-low.c.
5219 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
5220 (COMMON_OBS): Add rsp-low.o.
5221 (rsp-low.o): New target.
5223 2014-02-12 Tom Tromey <tromey@redhat.com>
5225 * utils.h: Include print-utils.h.
5226 (host_address_to_string, plongest, pulongest, phex, phex_nz)
5227 (int_string, core_addr_to_string, core_addr_to_string_nz)
5228 (hex_string, hex_string_custom): Don't declare.
5229 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
5230 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
5231 (hex_string_custom, int_string, core_addr_to_string)
5232 (core_addr_to_string_nz, host_address_to_string): Move to
5233 common/print-utils.c.
5234 * common/print-utils.h: New file.
5235 * common/print-utils.c: New file
5236 * Makefile.in (SFILES): Add common/print-utils.c.
5237 (HFILES_NO_SRCDIR): Add common/print-utils.h.
5238 (COMMON_OBS): Add print-utils.o.
5239 (print-utils.o): New target.
5241 2014-02-12 Tom Tromey <tromey@redhat.com>
5243 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
5245 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5247 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
5249 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5251 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
5252 if a PT_IO ptrace request returns sucessfully but indicates that 0
5253 bytes were transferred.
5255 2014-02-12 Pedro Alves <palves@redhat.com>
5256 Kevin Buettner <kevinb@redhat.com>
5258 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
5259 TYPE_INSTANCE_FLAG_CODE_SPACE.
5261 2014-02-12 Pedro Alves <palves@redhat.com>
5263 * h8300-tdep.c (pseudo_from_raw_register)
5264 (raw_from_pseudo_register): New functions.
5265 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
5268 2014-02-12 Pedro Alves <palves@redhat.com>
5270 * h8300-tdep.c (h8300_register_sim_regno): New function.
5271 (h8300_gdbarch_init): Install h8300_register_sim_regno as
5272 gdbarch_register_sim_regno hook.
5274 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
5276 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
5278 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
5280 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
5282 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5284 * obsd-tdep.h (obsd_init_abi): New prototype.
5285 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
5286 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
5287 (obsd_init_abi): New functions.
5288 * i386obsd-tdep.c: Include "obsd-tdep.h".
5289 (i386obsd_init_abi): Call obsd_init_abi.
5290 * amd64obsd-tdep.c: Include "obsd-tdep.h".
5291 (amd64obsd_init_abi): Call obsd_init_abi.
5292 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
5293 obsd-tdep.c to gdb_target_obs.
5295 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
5297 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
5298 double float arguments to 16-byte in the argument slots.
5300 2014-02-11 Doug Evans <xdje42@gmail.com>
5302 * configure.ac: Don't crash if pkg-config is not found and guile
5303 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
5305 * configure: Regenerate.
5307 2014-02-11 Yao Qi <yao@codesourcery.com>
5309 * aix-thread.c (aix_thread_xfer_partial): Update comments.
5310 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
5311 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
5312 * gnu-nat.c (gnu_xfer_memory): Likewise.
5313 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
5314 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5315 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5316 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
5318 2014-02-11 Yao Qi <yao@codesourcery.com>
5320 * target.h (enum target_xfer_error): Rename to ...
5321 (enum target_xfer_status): ... it. New. All users updated.
5322 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
5324 (TARGET_XFER_STATUS_ERROR_P): New macro.
5325 (target_xfer_error_to_string): Remove declaration.
5326 (target_xfer_status_to_string): Declare.
5327 (target_xfer_partial_ftype): Adjust it.
5328 (struct target_ops) <to_xfer_partial>: Return
5329 target_xfer_status. Add argument xfered_len. Update
5331 * target.c (target_xfer_error_to_string): Rename to ...
5332 (target_xfer_status_to_string): ... it. New. All callers
5334 (target_read_live_memory): Likewise. Call target_xfer_partial
5335 instead of target_read.
5336 (memory_xfer_live_readonly_partial): Return
5337 target_xfer_status. Add argument xfered_len.
5338 (raw_memory_xfer_partial): Likewise.
5339 (memory_xfer_partial_1): Likewise.
5340 (memory_xfer_partial): Likewise.
5341 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
5342 properly. Update debug message.
5343 (default_xfer_partial, current_xfer_partial): Likewise.
5344 (target_write_partial): Likewise.
5345 (target_read_partial): Likewise. All callers updated.
5346 (read_whatever_is_readable): Likewise.
5347 (target_write_with_progress): Likewise.
5348 (target_read_alloc_1): Likewise.
5350 * aix-thread.c (aix_thread_xfer_partial): Likewise.
5351 * auxv.c (procfs_xfer_auxv): Likewise.
5352 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
5353 * bfd-target.c (target_bfd_xfer_partial): Likewise.
5354 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
5355 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
5356 * corefile.c (read_memory): Adjust.
5357 * corelow.c (core_xfer_partial): Likewise.
5358 * ctf.c (ctf_xfer_partial): Likewise.
5359 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
5361 (darwin_xfer_partial): Likewise.
5362 * exec.c (section_table_xfer_memory_partial): Likewise. All
5364 (exec_xfer_partial): Likewise.
5365 * exec.h (section_table_xfer_memory_partial): Update
5367 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
5369 (gnu_xfer_partial): Likewise.
5370 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
5371 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
5372 (ia64_hpux_xfer_solib_got): Likewise.
5373 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
5374 type of 'partial_len' to ULONGEST.
5375 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
5376 * linux-nat.c (linux_xfer_siginfo ): Likewise.
5377 (linux_nat_xfer_partial): Likewise.
5378 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
5379 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
5380 * monitor.c (monitor_xfer_memory): Likewise.
5381 (monitor_xfer_partial): Likewise.
5382 * procfs.c (procfs_xfer_partial): Likewise.
5383 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5384 * record-full.c (record_full_xfer_partial): Likewise.
5385 (record_full_core_xfer_partial): Likewise.
5386 * remote-sim.c (gdbsim_xfer_memory): Likewise.
5387 (gdbsim_xfer_partial): Likewise.
5388 * remote.c (remote_write_bytes_aux): Likewise. All callers
5390 (remote_write_bytes, remote_read_bytes): Likewise. All
5392 (remote_flash_erase): Likewise. All callers updated.
5393 (remote_write_qxfer): Likewise. All callers updated.
5394 (remote_read_qxfer): Likewise. All callers updated.
5395 (remote_xfer_partial): Likewise.
5396 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5397 (rs6000_xfer_shared_libraries): Likewise.
5398 * sol-thread.c (sol_thread_xfer_partial): Likewise.
5399 (sol_thread_xfer_partial): Likewise.
5400 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5401 (sparc_xfer_partial): Likewise.
5402 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
5404 (spu_xfer_partial): Likewise.
5405 * spu-multiarch.c (spu_xfer_partial): Likewise.
5406 * tracepoint.c (tfile_xfer_partial): Likewise.
5407 * windows-nat.c (windows_xfer_memory): Likewise.
5408 (windows_xfer_shared_libraries): Likewise.
5409 (windows_xfer_partial): Likewise.
5410 * valprint.c: Replace 'target_xfer_error' with
5411 'target_xfer_status' in comments.
5413 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
5415 Checked in by Joel Brobecker <brobecker@adacore.com>.
5416 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
5418 2014-02-11 Joel Brobecker <brobecker@adacore.com>
5420 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
5421 function parameters.
5423 2014-02-10 Will Newton <will.newton@linaro.org>
5425 * elfread.c (elf_rel_plt_read): Look for a .got section if
5426 looking up .got.plt fails.
5427 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
5428 on address passed to elf_gnu_ifunc_record_cache.
5429 (elf_gnu_ifunc_resolve_addr): Likewise.
5430 (elf_gnu_ifunc_resolver_return_stop): Likewise.
5432 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
5434 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
5435 (X_RETTURN): New macro.
5436 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
5438 * sparc64-tdep.c (sparc64_init_abi): Hook
5439 sparc_in_function_epilogue_p.
5441 2014-02-10 Gary Benson <gbenson@redhat.com>
5443 * symfile-debug.c (debug_qf_expand_symtabs_matching):
5444 Rename name_matcher to symbol_matcher.
5446 2014-02-10 Gary Benson <gbenson@redhat.com>
5448 * symfile-debug.c (debug_qf_expand_symtabs_matching):
5449 Use expand_symtabs_file_matcher_ftype and
5450 expand_symtabs_symbol_matcher_ftype.
5452 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5454 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
5455 (struct ada_symbol_cache): New.
5456 (ada_free_symbol_cache): Forward declare.
5457 (struct ada_pspace_data): New.
5458 (ada_pspace_data_handle): New static global.
5459 (get_ada_pspace_data, ada_pspace_data_cleanup)
5460 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
5461 (cache_space, cache): Delete, now folded inside struct
5463 (ada_get_symbol_cache): New function.
5464 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
5466 (_initialize_ada_language): Remove initialization of cache_space.
5467 Move call to observer_attach_inferior_exit up, grouping it
5468 with the other observer registrations inside this function.
5469 Rename command to be more general. Add call to
5470 register_program_space_data_with_cleanup.
5472 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5474 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
5475 ada_new_objfile_observer.
5476 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
5477 (_initialize_tasks): Update uses of ada_new_objfile_observer
5478 and ada_tasks_normal_stop_observer.
5480 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5482 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
5483 returned by the 'Length attribute to integer.
5485 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5487 * ada-lang.c (_initialize_ada_language): Initialize
5488 cache_space obstack.
5490 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5492 * ada-lang.c (HASH_SIZE): New macro.
5493 (struct cache_entry): New type.
5494 (cache_space, cache): New static globals.
5495 (ada_clear_symbol_cache, find_entry): New functions.
5496 (lookup_cached_symbol, cache_symbol): Implement.
5497 (ada_new_objfile_observer, ada_free_objfile_observer): New.
5498 (_initialize_ada_language): Attach ada_new_objfile_observer
5499 and ada_free_objfile_observer.
5501 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5503 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
5504 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
5505 struct block * parameter.
5506 (ada_lookup_symbol_list_worker): Constify local variable "block".
5507 Remove cast which is no longer necessary.
5509 2014-02-10 Doug Evans <xdje42@gmail.com>
5511 Add Guile as an extension language.
5512 * NEWS: Mention Guile scripting.
5513 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
5514 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
5515 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
5516 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
5517 (CLIBS): Add GUILE_LIBS.
5518 (install-guile): New rule.
5519 (guile.o): New rule.
5520 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
5521 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
5522 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
5523 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
5524 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
5525 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
5526 (scm-type.o, scm-utils.o, scm-value.o): New rules.
5527 * configure.ac: New option --with-guile.
5528 * configure: Regenerate.
5529 * config.in: Regenerate.
5530 * auto-load.c: Remove #include "python/python.h". Add #include
5531 "gdb/section-scripts.h".
5532 (source_section_scripts): Handle Guile scripts.
5533 (_initialize_auto_load): Add name of Guile objfile script to
5534 scripts-directory help text.
5535 * breakpoint.c (condition_command): Tweak comment to include Scheme.
5536 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
5537 (struct breakpoint): New member scm_bp_object.
5538 * defs.h (enum command_control_type): New value guile_control.
5539 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
5541 (show_user): Update comment.
5542 (_initialize_cli_cmds): Update help text for "show user". Update help
5543 text for max-user-call-depth.
5544 * cli/cli-script.c: Remove #include "python/python.h". Add #include
5546 (multi_line_command_p): Add guile_control.
5547 (print_command_lines): Handle guile_control.
5548 (execute_control_command, recurse_read_control_structure): Ditto.
5549 (process_next_line): Recognize "guile" commands.
5550 * disasm.c (gdb_disassemble_info): Make non-static.
5551 * disasm.h: #include "dis-asm.h".
5552 (struct gdbarch): Add forward decl.
5553 (gdb_disassemble_info): Declare.
5554 * extension.c: #include "guile/guile.h".
5555 (extension_languages): Add guile.
5556 (get_ext_lang_defn): Handle EXT_LANG_GDB.
5557 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
5558 * gdbtypes.c (get_unsigned_type_max): New function.
5559 (get_signed_type_minmax): New function.
5560 * gdbtypes.h (get_unsigned_type_max): Declare.
5561 (get_signed_type_minmax): Declare.
5562 * guile/README: New file.
5563 * guile/guile-internal.h: New file.
5564 * guile/guile.c: New file.
5565 * guile/guile.h: New file.
5566 * guile/scm-arch.c: New file.
5567 * guile/scm-auto-load.c: New file.
5568 * guile/scm-block.c: New file.
5569 * guile/scm-breakpoint.c: New file.
5570 * guile/scm-disasm.c: New file.
5571 * guile/scm-exception.c: New file.
5572 * guile/scm-frame.c: New file.
5573 * guile/scm-gsmob.c: New file.
5574 * guile/scm-iterator.c: New file.
5575 * guile/scm-lazy-string.c: New file.
5576 * guile/scm-math.c: New file.
5577 * guile/scm-objfile.c: New file.
5578 * guile/scm-ports.c: New file.
5579 * guile/scm-pretty-print.c: New file.
5580 * guile/scm-safe-call.c: New file.
5581 * guile/scm-string.c: New file.
5582 * guile/scm-symbol.c: New file.
5583 * guile/scm-symtab.c: New file.
5584 * guile/scm-type.c: New file.
5585 * guile/scm-utils.c: New file.
5586 * guile/scm-value.c: New file.
5587 * guile/lib/gdb.scm: New file.
5588 * guile/lib/gdb/boot.scm: New file.
5589 * guile/lib/gdb/experimental.scm: New file.
5590 * guile/lib/gdb/init.scm: New file.
5591 * guile/lib/gdb/iterator.scm: New file.
5592 * guile/lib/gdb/printing.scm: New file.
5593 * guile/lib/gdb/types.scm: New file.
5594 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
5595 (VPATH): Add $(GUILE_SRCDIR).
5596 (GUILE_DIR): New variable.
5597 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
5598 (all): Add stamp-guile dependency.
5599 (stamp-guile): New rule.
5600 (clean-guile, install-guile, uninstall-guile): New rules.
5601 (install-only): Add install-guile dependency.
5602 (uninstall): Add uninstall-guile dependency.
5603 (clean): Add clean-guile dependency.
5605 2014-02-09 Doug Evans <xdje42@gmail.com>
5607 Revert this patch (which I approved, mea culpa).
5609 2014-02-08 Mark Kettenis <kettenis@gnu.org>
5611 * Makefile.in (all-lib): Remove.
5612 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
5614 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5616 Fix Python stack corruption.
5617 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
5620 2014-02-08 Mark Kettenis <kettenis@gnu.org>
5622 * Makefile.in (all-lib): Remove.
5623 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
5625 2014-02-07 Doug Evans <dje@google.com>
5627 * extension-priv.h (extension_language_script_ops): Add comment.
5628 (extension_language_ops): Add comment.
5629 (active_ext_lang_state): Fix typo in comment.
5631 2014-02-07 Pedro Alves <palves@redhat.com>
5633 PR breakpoints/16292
5634 * infrun.c (handle_signal_stop) <signal arrives while stepping
5635 over a breakpoint>: Switch back to the stepping thread.
5637 2014-02-07 Yao Qi <yao@codesourcery.com>
5639 * target.c (target_xfer_partial): Return zero if LEN is zero.
5641 2014-02-07 Yao Qi <yao@codesourcery.com>
5643 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
5644 (ld_so_xfer_auxv): Likewise.
5645 * bfd-target.c (target_bfd_xfer_partial): Likewise.
5646 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
5647 * corelow.c (core_xfer_partial): Likewise.
5648 * ctf.c (ctf_xfer_partial): Likewise.
5649 * darwin-nat.c (darwin_read_dyld_info): Likewise.
5650 (darwin_xfer_partial): Likewise.
5651 * exec.c (exec_xfer_partial): Likewise.
5652 * gnu-nat.c (gnu_xfer_partial): Likewise.
5653 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
5654 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
5655 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
5656 * linux-nat.c (linux_xfer_siginfo): Likewise.
5657 (linux_proc_xfer_spu): Likewise.
5658 * procfs.c (procfs_xfer_partial): Likewise.
5659 * record-full.c (record_full_xfer_partial): Likewise.
5660 (record_full_core_xfer_partial): Likewise.
5661 * remote-sim.c (gdbsim_xfer_partial): Likewise.
5662 * remote.c (remote_write_qxfer): Likewise.
5663 (remote_write_qxfer, remote_read_qxfer): Likewise.
5664 (remote_xfer_partial): Likewise.
5665 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5666 (rs6000_xfer_shared_libraries): Likewise.
5667 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5668 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
5669 (spu_xfer_partial): Likewise.
5670 * target.c (memory_xfer_partial_1): Likewise.
5671 * tracepoint.c (tfile_xfer_partial): Likewise.
5672 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
5673 (windows_xfer_partial): Likewise.
5675 2014-02-07 Yao Qi <yao@codesourcery.com>
5677 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
5679 (core_xfer_shared_libraries_aix): Likewise.
5680 * gdbarch.c, gdbarch.h: Regenerated.
5681 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
5682 ULONGEST. Change 'len_avail' type to ULONGEST.
5683 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
5684 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
5686 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
5688 2014-02-07 Yao Qi <yao@codesourcery.com>
5690 * corefile.c (memory_error): Get 'exception' from ERR and pass
5691 'exception' to throw_error.
5693 2014-02-06 Doug Evans <xdje42@gmail.com>
5695 * configure.ac (libpython checking): Remove all but python.o from
5696 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
5697 * configure: Regenerate.
5699 * Makefile.in (SFILES): Add extension.c.
5700 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
5701 (COMMON_OBS): Add extension.o.
5702 * extension.h: New file.
5703 * extension-priv.h: New file.
5704 * extension.c: New file.
5706 * python/python-internal.h: #include "extension.h".
5707 (gdbpy_auto_load_enabled): Declare.
5708 (gdbpy_apply_val_pretty_printer): Declare.
5709 (gdbpy_apply_frame_filter): Declare.
5710 (gdbpy_preserve_values): Declare.
5711 (gdbpy_breakpoint_cond_says_stop): Declare.
5712 (gdbpy_breakpoint_has_cond): Declare.
5713 (void source_python_script_for_objfile): Delete.
5714 * python/python.c: #include "extension-priv.h".
5715 Delete inclusion of "observer.h".
5716 (extension_language_python): Moved here and renamed from
5717 script_language_python in py-auto-load.c.
5718 Redefined to be of type extension_language_defn.
5719 (python_extension_script_ops): New global.
5720 (python_extension_ops): New global.
5721 (struct python_env): New member previous_active.
5722 (restore_python_env): Call restore_active_ext_lang.
5723 (ensure_python_env): Call set_active_ext_lang.
5724 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
5726 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
5728 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
5730 (gdbpy_eval_from_control_command): Renamed from
5731 eval_python_from_control_command, made static. New arg extlang.
5732 (gdbpy_source_script) Renamed from source_python_script, made static.
5734 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
5735 result to int. New arg extlang.
5736 (gdbpy_source_objfile_script): Renamed from
5737 source_python_script_for_objfile, made static. New arg extlang.
5738 (gdbpy_start_type_printers): Renamed from start_type_printers, made
5739 static. New args extlang, extlang_printers. Change result type to
5741 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
5742 static. New arg extlang. Rename arg printers to extlang_printers
5743 and change type to ext_lang_type_printers *.
5744 (gdbpy_free_type_printers): Renamed from free_type_printers, made
5745 static. Replace argument arg with extlang, extlang_printers.
5746 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
5747 (!HAVE_PYTHON, source_python_script): Delete.
5748 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
5749 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
5750 (!HAVE_PYTHON, start_type_printers): Delete.
5751 (!HAVE_PYTHON, apply_type_printers): Delete.
5752 (!HAVE_PYTHON, free_type_printers): Delete.
5753 (_initialize_python): Delete call to observer_attach_before_prompt.
5754 (finalize_python): Set/restore active extension language.
5755 (gdbpy_finish_initialization) Renamed from
5756 finish_python_initialization, made static. New arg extlang.
5757 (gdbpy_initialized): New function.
5758 * python/python.h: #include "extension.h". Delete #include
5759 "value.h", "mi/mi-cmds.h".
5760 (extension_language_python): Declare.
5761 (GDBPY_AUTO_FILE_NAME): Delete.
5762 (enum py_bt_status): Moved to extension.h and renamed to
5764 (enum frame_filter_flags): Moved to extension.h.
5765 (enum py_frame_args): Moved to extension.h and renamed to
5766 ext_lang_frame_args.
5767 (finish_python_initialization): Delete.
5768 (eval_python_from_control_command): Delete.
5769 (source_python_script): Delete.
5770 (apply_val_pretty_printer): Delete.
5771 (apply_frame_filter): Delete.
5772 (preserve_python_values): Delete.
5773 (gdbpy_script_language_defn): Delete.
5774 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
5775 (start_type_printers, apply_type_printers, free_type_printers): Delete.
5777 * auto-load.c: #include "extension.h".
5778 (GDB_AUTO_FILE_NAME): Delete.
5779 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
5780 (script_language_gdb): Delete, moved to extension.c and renamed to
5781 extension_language_gdb.
5782 (source_gdb_script_for_objfile): Delete.
5783 (auto_load_pspace_info): New member unsupported_script_warning_printed.
5784 (loaded_script): Change type of language member to
5785 struct extension_language_defn *.
5786 (init_loaded_scripts_info): Initialize
5787 unsupported_script_warning_printed.
5788 (maybe_add_script): Make static. Change type of language arg to
5789 struct extension_language_defn *.
5790 (clear_section_scripts): Reset unsupported_script_warning_printed.
5791 (auto_load_objfile_script_1): Rewrite to use extension language API.
5792 (auto_load_objfile_script): Make public. Remove support-compiled-in
5793 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
5794 (source_section_scripts): Rewrite to use extension language API.
5795 (load_auto_scripts_for_objfile): Rewrite to use
5796 auto_load_scripts_for_objfile.
5797 (collect_matching_scripts_data): Change type of language member to
5798 struct extension_language_defn *.
5799 (auto_load_info_scripts): Change type of language arg to
5800 struct extension_language_defn *.
5801 (unsupported_script_warning_print): New function.
5802 (script_not_found_warning_print): Make static.
5803 (_initialize_auto_load): Rewrite construction of scripts-directory
5805 * auto-load.h (struct objfile): Add forward decl.
5806 (struct script_language): Delete.
5807 (struct auto_load_pspace_info): Add forward decl.
5808 (struct extension_language_defn): Add forward decl.
5809 (maybe_add_script): Delete.
5810 (auto_load_objfile_script): Declare.
5811 (script_not_found_warning_print): Delete.
5812 (auto_load_info_scripts): Update prototype.
5813 (auto_load_gdb_scripts_enabled): Declare.
5814 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
5815 auto_load_python_scripts_enabled and made public.
5816 (script_language_python): Delete, moved to python.c.
5817 (gdbpy_script_language_defn): Delete.
5818 (info_auto_load_python_scripts): Update to use
5819 extension_language_python.
5821 * breakpoint.c (condition_command): Replace call to
5822 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
5823 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
5824 with call to breakpoint_ext_lang_cond_says_stop.
5825 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
5826 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
5827 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
5828 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
5830 (local_setattro): Print name of extension language with existing
5833 * valprint.c (val_print, value_print): Update to call
5834 apply_ext_lang_val_pretty_printer.
5835 * cp-valprint.c (cp_print_value): Update call to
5836 apply_ext_lang_val_pretty_printer.
5837 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
5838 (gdbpy_apply_val_pretty_printer): Renamed from
5839 apply_val_pretty_printer. New arg extlang.
5840 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
5842 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
5843 extension language API.
5844 * cli/cli-script.c (execute_control_command): Update to call
5845 eval_ext_lang_from_control_command.
5847 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
5848 enum ext_lang_bt_status values. Update call to
5849 apply_ext_lang_frame_filter.
5850 (mi_cmd_stack_list_locals): Ditto.
5851 (mi_cmd_stack_list_args): Ditto.
5852 (mi_cmd_stack_list_variables): Ditto.
5853 * mi/mi-main.c: Delete #include "python/python-internal.h".
5854 Add #include "extension.h".
5855 (mi_cmd_list_features): Replace reference to python internal variable
5856 gdb_python_initialized with call to ext_lang_initialized_p.
5858 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
5859 Update to use enum ext_lang_frame_args. Update to call
5860 apply_ext_lang_frame_filter.
5861 * python/py-framefilter.c (extract_sym): Update to use enum
5863 (extract_value, py_print_type, py_print_value): Ditto.
5864 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
5865 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
5866 (py_print_frame): Ditto.
5867 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
5868 New arg extlang. Update to use enum ext_lang_bt_status.
5870 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
5871 finish_python_initialization. Replace with call to
5872 finish_ext_lang_initialization.
5874 * typeprint.c (do_free_global_table): Update to call
5875 free_ext_lang_type_printers.
5876 (create_global_typedef_table): Update to call
5877 start_ext_lang_type_printers.
5878 (find_global_typedef): Update to call apply_ext_lang_type_printers.
5879 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
5880 (type_print_options): Change type of global_printers from "void *"
5881 to "struct ext_lang_type_printers *".
5883 * value.c (preserve_values): Update to call preserve_ext_lang_values.
5884 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
5885 (gdbpy_preserve_values): Renamed from preserve_python_values.
5887 (!HAVE_PYTHON, preserve_python_values): Delete.
5889 * utils.c (quit_flag): Delete, moved to extension.c.
5890 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
5893 * eval.c: Delete #include "python/python.h".
5894 * main.c: Delete #include "python/python.h".
5896 * defs.h: Update comment.
5898 2014-02-06 Joel Brobecker <brobecker@adacore.com>
5902 2014-02-05 Mark Kettenis <kettenis@gnu.org>
5904 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
5907 2014-02-05 Yao Qi <yao@codesourcery.com>
5909 * remote.c (remote_pass_signals): Remove local 'buf' and use
5911 (remote_program_signals): Likewise.
5913 2014-02-05 Yao Qi <yao@codesourcery.com>
5915 * ctf.c: Include "inferior.h" and "gdbthread.h".
5916 (CTF_PID): A new macro.
5917 (ctf_open): Call inferior_appeared and add_thread_silent.
5918 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
5919 (ctf_thread_alive): New function.
5920 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
5922 2014-02-05 Yao Qi <yao@codesourcery.com>
5926 2013-05-24 Yao Qi <yao@codesourcery.com>
5928 * tracepoint.c (TFILE_PID): Remove.
5929 (tfile_open): Don't add thread and inferior.
5930 (tfile_close): Don't set 'inferior_ptid'. Don't call
5931 exit_inferior_silent.
5932 (tfile_thread_alive): Remove.
5933 (init_tfile_ops): Don't set field 'to_thread_alive' of
5936 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
5938 * remote.c (remote_start_remote): Call remote_check_symbols even
5939 if only symbol-file (not file) has been given.
5941 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5943 * gdbarch.sh (skip_entrypoint): New callback.
5944 * gdbarch.c, gdbarch.h: Regenerate.
5945 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
5946 * infrun.c (fill_in_stop_func): Likewise.
5947 * ppc-linux-tdep.c: Include "elf/ppc64.h".
5948 (ppc_elfv2_elf_make_msymbol_special): New function.
5949 (ppc_elfv2_skip_entrypoint): Likewise.
5950 (ppc_linux_init_abi): Install them for ELFv2.
5952 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5954 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
5955 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
5956 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
5957 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
5958 structures returned in GPRs.
5960 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5962 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
5963 offset to the stack parameter list for the ELFv2 ABI.
5965 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5967 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
5968 set_gdbarch_convert_from_func_ptr_addr and
5969 set_gdbarch_elf_make_msymbol_special for ELFv1.
5970 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
5971 function descriptors on ELFv1.
5972 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
5973 set up r12 at function entry.
5975 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5977 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
5978 (struct gdbarch_tdep): New member elf_abi.
5980 * rs6000-tdep.c: Include "elf/ppc64.h".
5981 (rs6000_gdbarch_init): Detect ELF ABI version.
5983 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5985 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
5986 within a register pair holding a DFP 128-bit value on little-endian.
5987 (ppc64_sysv_abi_return_value_base): Likewise.
5988 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
5989 (dfp_pseudo_register_write): Likewise.
5991 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5993 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
5994 offset on little-endian when passing _Decimal32.
5995 (ppc64_sysv_abi_return_value_base): Likewise for return values.
5997 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5999 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
6000 of the overlapped FP register within the VSX register on little-
6002 (efpr_pseudo_register_write): Likewise.
6004 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6006 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
6007 offset on little-endian when passing small structures.
6009 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6011 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
6012 (struct ppc64_sysv_argpos): New data structure.
6013 (ppc64_sysv_abi_push_float): Remove.
6014 (ppc64_sysv_abi_push_val): New function.
6015 (ppc64_sysv_abi_push_integer): Likewise.
6016 (ppc64_sysv_abi_push_freg): Likewise.
6017 (ppc64_sysv_abi_push_vreg): Likewise.
6018 (ppc64_sysv_abi_push_param): Likewise.
6019 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
6020 (ppc64_sysv_abi_return_value_base): New function.
6021 (ppc64_sysv_abi_return_value): Refactor to use it.
6023 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6025 * NEWS: Document new target powerpc64le-*-linux*.
6027 2014-02-04 Mark Kettenis <kettenis@gnu.org>
6029 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
6030 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
6032 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
6033 register set used in ELF core dumps. Add floating-point register set.
6035 2014-02-03 Kevin Buettner <kevinb@redhat.com>
6037 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
6038 dwarf2_to_gdb[] table using symbolic constants. Adjust
6039 penultimate entry from number representing the PC register
6040 to symbolic constant representing the MDR register. Add
6041 constant for the PC register to the end of the table.
6043 2014-02-03 Mark Kettenis <kettenis@gnu.org>
6045 * bsd-kvm.c: Include <sys/param.h>
6047 2014-02-03 Mark Kettenis <kettenis@gnu.org>
6049 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
6051 2014-01-31 Joel Brobecker <brobecker@adacore.com>
6053 * ada-lang.h (clear_ada_sym_cache): Delete.
6055 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
6057 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
6059 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
6061 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
6062 the sigreturn register save area only if the syscall is
6065 2014-01-29 Joel Brobecker <brobecker@adacore.com>
6067 * valops.c (value_slice): Minor reformatting.
6069 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
6071 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
6073 2014-01-28 Joel Brobecker <brobecker@adacore.com>
6075 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
6077 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
6078 (ada_ignore_descriptive_types_p): New static global.
6079 (find_parallel_type_by_descriptive_type): Return immediately
6080 if ada_ignore_descriptive_types_p is set.
6081 (_initialize_ada_language): Register new commands "maintenance
6082 set ada", "maintenance show ada", "maintenance set ada
6083 ignore-descriptive-types" and "maintenance show ada
6084 ignore-descriptive-types".
6085 * NEWS: Add entry for new "maint ada set/show
6086 ignore-descriptive-types" commands.
6088 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
6090 * record-btrace.c (record_btrace_close): Call btrace_teardown
6093 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6095 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
6098 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6100 * ada-typeprint (type_is_full_subrange_of_target_type):
6102 (print_range): Add parameter bounds_prefered_p. If not set,
6103 try printing range types using the name of their base type.
6104 (print_range_type): Add parameter bounds_prefered_p.
6105 Use it in call to print_range.
6106 (print_array_type, ada_print_type): Update calls to print_range
6107 and print_range_type.
6109 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6111 * ada-typeprint.c (print_array_type, print_choices, print_range)
6112 (print_range_bound, print_dynamic_range_bound, print_range_type):
6115 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6117 * ada-typeprint.c (print_range): Add missing empty line
6118 after local declaration.
6120 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6122 * ada-valprint.c (print_optional_low_bound): Get index_type's
6123 target type for as long as it is a TYPE_CODE_RANGE.
6125 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6127 * procfs.c (procfs_make_note_section): Remove assertion and
6130 2014-01-24 Yao Qi <yao@codesourcery.com>
6132 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
6133 * corelow.c (get_core_siginfo): Likewise.
6135 2014-01-24 Yao Qi <yao@codesourcery.com>
6137 * remote.c (remote_write_bytes_aux): Change type of 'len' to
6138 ULONGEST. Don't check 'len' is negative.
6139 (remote_write_bytes): Change type of 'len' to ULONGEST.
6141 2014-01-23 Tom Tromey <tromey@redhat.com>
6144 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
6145 Handle exception from frame.block.
6146 (FrameVars.fetch_frame_locals): Likewise.
6148 2014-01-23 Tom Tromey <tromey@redhat.com>
6151 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
6152 on a NULL pointer. Move "goto error" to correct place.
6154 2014-01-23 Tom Tromey <tromey@redhat.com>
6157 * python/py-framefilter.c (apply_frame_filter): Call
6158 ensure_python_env after computing gdbarch.
6160 2014-01-23 Yao Qi <yao@codesourcery.com>
6162 * target.c (raw_memory_xfer_partial): Change argument type
6163 from void * to gdb_byte *.
6164 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
6166 2014-01-22 Doug Evans <dje@google.com>
6168 New gdbserver option --debug-format=timestamp.
6171 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
6173 * syscalls/s390x-linux.xml: New file.
6174 * syscalls/s390-linux.xml: New file.
6175 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
6176 (XML_SYSCALL_FILENAME_S390X): Likewise.
6177 (op_svc): New enum value for SVC opcode.
6178 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
6179 (s390_linux_get_syscall_number): New function.
6180 (s390_gdbarch_init): Register '*get_syscall_number' and the
6181 syscall xml file name.
6182 * data-directory/Makefile.in (SYSCALLS_FILES): Add
6183 "s390-linux.xml" and "s390x-linux.xml".
6184 * NEWS: Announce new feature.
6186 2014-01-22 Baruch Siach <baruch@tkos.co.il>
6188 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
6190 2014-01-22 Pedro Alves <palves@redhat.com>
6192 * xtensa-config.c: Include defs.h.
6194 2014-01-22 Joel Brobecker <brobecker@adacore.com>
6196 * common/common-utils.h: Add "ARI:" comment beside __func__
6199 2014-01-22 Joel Brobecker <brobecker@adacore.com>
6201 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
6202 documentation a bit.
6204 2014-01-21 Roland McGrath <mcgrathr@google.com>
6206 * configure.ac: Call AM_PROG_INSTALL_STRIP.
6207 * configure: Regenerate.
6208 * aclocal.m4: Regenerate.
6209 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
6210 New substituted variables.
6211 (install-strip): New target.
6212 (INSTALL_SCRIPT): New substituted variable.
6213 (FLAGS_TO_PASS): Add it.
6214 (install-only): Use $(INSTALL_SCRIPT) rather than
6215 $(INSTALL_PROGRAM) for gcore.
6217 2014-01-20 Tom Tromey <tromey@redhat.com>
6219 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
6222 2014-01-20 Tom Tromey <tromey@redhat.com>
6224 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
6225 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
6226 (deprecated_cmd_warning, complete_on_cmdlist): Update.
6227 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
6228 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
6229 (struct cmd_list_element) <flags>: Remove.
6230 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
6231 doc_allocated>: New fields.
6232 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
6234 * maint.c (maintenance_do_deprecate): Update.
6235 * top.c (execute_command): Update.
6237 2014-01-20 Baruch Siach <baruch@tkos.co.il>
6239 * xtensa-linux-nat.c: Include asm/ptrace.h.
6241 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6243 * Makefile.in (SFILES): Add d-support.c.
6244 (COMMON_OBS): Add d-support.o.
6245 * d-lang.h (d_parse_symbol): Add comment, now defined in
6247 * d-lang.c (parse_call_convention)
6248 (parse_attributes, parse_function_types)
6249 (parse_function_args, parse_type, parse_identifier)
6250 (call_convention_p, d_parse_symbol): Move functions to ...
6251 * d-support.c: ... New file.
6253 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6255 * d-lang.h (d_parse_symbol): Add declaration.
6256 * d-lang.c (extract_identifiers)
6257 (extract_type_info): Remove functions.
6258 (parse_call_convention, parse_attributes)
6259 (parse_function_types, parse_function_args)
6260 (parse_type, parse_identifier, call_convention_p)
6261 (d_parse_symbol): New functions.
6262 (d_demangle): Use d_parse_symbol to demangle D symbols.
6264 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6266 * d-lang.h (struct builtin_d_type): New data type.
6267 (builtin_d_type): Add declaration.
6268 * d-lang.c (d_language_arch_info, build_d_types)
6269 (builtin_d_type): New functions.
6270 (enum d_primitive_types): New data type.
6271 (d_language_defn): Change c_language_arch_info to
6272 d_language_arch_info.
6273 (d_type_data): New static variable.
6274 (_initialize_d_language): Initialize d_type_data.
6276 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6278 * d-lang.h (d_main_name): Add declaration.
6279 * d-lang.c (d_main_name): New function.
6280 * symtab.c (find_main_name): Add call to d_main_name.
6282 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6284 * d-lang.c (d_language_defn): Change macro_expansion_c to
6287 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6289 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6291 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
6293 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
6294 gdb_exception" declaration.
6295 * remote.c (getpkt_or_notif_sane): Likewise.
6297 2014-01-17 Doug Evans <dje@google.com>
6299 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
6300 function, contents of dirnames_to_char_ptr_vec_append moved here.
6301 (delim_string_to_char_ptr_vec): New function.
6302 (dirnames_to_char_ptr_vec_append): Rewrite.
6303 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
6305 2014-01-17 Doug Evans <dje@google.com>
6307 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
6309 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
6310 #include "common-utils.h".
6311 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
6312 * common/vec.h (VEC_ASSERT_PASS): Update.
6313 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
6314 (MACH_CHECK_ERROR): Update.
6316 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
6318 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
6320 * gdbarch.h: Regenerate.
6322 2014-01-16 Tom Tromey <tromey@redhat.com>
6324 * value.c (struct value) <regnum>: Move earlier.
6326 2014-01-16 Tom Tromey <tromey@redhat.com>
6328 * remote.c (extended_remote_create_inferior): Rename from
6329 extended_remote_create_inferior_1. Add "ops" argument. Remove
6332 2014-01-16 Pedro Alves <palves@redhat.com>
6334 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
6335 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
6338 2014-01-16 Doug Evans <dje@google.com>
6340 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
6342 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6344 * btrace.h (btrace_thread_flag): New.
6345 (struct btrace_thread_info) <flags>: New.
6346 * record-btrace.c (record_btrace_resume_thread)
6347 (record_btrace_find_thread_to_move, btrace_step_no_history)
6348 (btrace_step_stopped, record_btrace_start_replaying)
6349 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
6350 (record_btrace_find_resume_thread): New.
6351 (record_btrace_resume, record_btrace_wait): Extend.
6352 (record_btrace_can_execute_reverse): New.
6353 (record_btrace_open): Fail in non-stop mode.
6354 (record_btrace_set_replay): Split into this, ...
6355 (record_btrace_stop_replaying): ... this, ...
6356 (record_btrace_clear_histories): ... and this.
6357 (init_record_btrace_ops): Init to_can_execute_reverse.
6358 * NEWS: Announce it.
6360 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6362 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
6363 (forward_target_decr_pc_after_break)
6364 (target_decr_pc_after_break): New.
6365 * target.c (forward_target_decr_pc_after_break)
6366 (target_decr_pc_after_break): New.
6367 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
6368 instead of gdbarch_decr_pc_after_break.
6369 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
6370 instead of gdbarch_decr_pc_after_break.
6371 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
6372 instead of gdbarch_decr_pc_after_break.
6373 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
6374 instead of gdbarch_decr_pc_after_break.
6375 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
6376 instead of gdbarch_decr_pc_after_break.
6377 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
6378 instead of gdbarch_decr_pc_after_break.
6380 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6382 * btrace.c: Include regcache.h.
6383 (btrace_add_pc): New.
6384 (btrace_enable): Call btrace_add_pc.
6385 (btrace_is_empty): New.
6386 * btrace.h (btrace_is_empty): New.
6387 * record-btrace.c (require_btrace, record_btrace_info): Call
6390 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6392 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
6393 Support delta reads.
6394 (linux_disable_btrace): Change return type.
6395 * common/linux-btrace.h (linux_read_btrace): Change parameters
6396 and return type to allow error reporting. Update users.
6397 (linux_disable_btrace): Change return type. Update users.
6398 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
6400 (btrace_error): New.
6401 (btrace_block) <begin>: Comment on BEGIN == 0.
6402 * btrace.c (btrace_compute_ftrace): Start from the end of
6404 (btrace_stitch_trace, btrace_clear_history): New.
6405 (btrace_fetch): Read delta trace, return if replaying.
6406 (btrace_clear): Move clear history code to btrace_clear_history.
6407 (parse_xml_btrace): Throw an error if parsing failed.
6408 * target.h (struct target_ops) <to_read_btrace>: Change parameters
6409 and return type to allow error reporting.
6410 (target_read_btrace): Change parameters and return type to allow
6412 * target.c (target_read_btrace): Update.
6413 * remote.c (remote_read_btrace): Support delta reads. Pass
6415 * NEWS: Announce it.
6417 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6419 * record.h (record_btrace_frame_unwind)
6420 (record_btrace_tailcall_frame_unwind): New declarations.
6421 * dwarf2-frame: Include record.h
6422 (dwarf2_frame_cfa): Throw an error for btrace frames.
6423 * record-btrace.c: Include hashtab.h.
6424 (btrace_get_bfun_name): New.
6425 (btrace_call_history): Call btrace_get_bfun_name.
6426 (struct btrace_frame_cache): New.
6428 (bfcache_hash, bfcache_eq, bfcache_new): New.
6429 (btrace_get_frame_function): New.
6430 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
6431 (record_btrace_frame_this_id): Compute own id.
6432 (record_btrace_frame_prev_register): Provide PC, throw_error
6433 for all other registers.
6434 (record_btrace_frame_sniffer): Detect btrace frames.
6435 (record_btrace_tailcall_frame_sniffer): New.
6436 (record_btrace_frame_dealloc_cache): New.
6437 (record_btrace_frame_unwind): Add new functions.
6438 (record_btrace_tailcall_frame_unwind): New.
6439 (_initialize_record_btrace): Allocate cache.
6440 * btrace.c (btrace_clear): Call reinit_frame_cache.
6441 * NEWS: Announce it.
6443 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6445 * record-btrace.c (record_btrace_set_replay)
6446 (record_btrace_goto_begin, record_btrace_goto_end)
6447 (record_btrace_goto): New.
6448 (init_record_btrace_ops): Initialize them.
6449 * NEWS: Announce it.
6451 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6453 * record-btrace.c (record_btrace_find_new_threads)
6454 (record_btrace_thread_alive): New.
6455 (init_record_btrace_ops): Initialize to_find_new_threads and
6458 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6460 * record-btrace.c (record_btrace_resume): New.
6461 (record_btrace_wait): New.
6462 (init_record_btrace_ops): Initialize to_wait and to_resume.
6464 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6466 * record-btrace.c (record_btrace_xfer_partial)
6467 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
6468 (record_btrace_allow_memory_access): New.
6469 (init_record_btrace_ops): Initialize new methods.
6470 * target.c (raw_memory_xfer_partial): Bail out if target reports
6471 that this memory is not available.
6473 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6475 * target.h (target_ops) <to_insert_breakpoint>
6476 <to_remove_breakpoint>: Add target_ops parameter.
6477 (forward_target_insert_breakpoint): New.
6478 (forward_target_remove_breakpoint): New.
6479 (memory_remove_breakpoint, memory_insert_breakpoint):
6480 Add target_ops parameter.
6481 * target.c (target_insert_breakpoint): Split into this and ...
6482 (forward_target_insert_breakpoint): ... this.
6483 (target_remove_breakpoint): Split into this and ...
6484 (forward_target_remove_breakpoint): ... this.
6485 (debug_to_insert_breakpoint): Add target_ops parameter.
6486 Call forward_target_insert_breakpoint.
6487 (debug_to_remove_breakpoint): Add target_ops parameter.
6488 Call forward_target_remove_breakpoint.
6489 (update_current_target): Do not inherit or default to_insert_breakpoint
6490 and to_remove_breakpoint.
6491 * corelow.c (ignore): Add target_ops parameter.
6492 * exec.c (ignore): Add target_ops parameter.
6493 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
6494 Add target_ops parameter.
6495 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
6496 Add target_ops parameter.
6497 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
6498 Add target_ops parameter.
6499 * record-full.c (record_full_beneath_to_insert_breakpoint)
6500 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
6501 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
6502 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
6503 (record_full_core_remove_breakpoint): Add target_ops parameter.
6505 (record_full_beneath_to_insert_breakpoint_ops)
6506 (record_full_beneath_to_remove_breakpoint_ops)
6507 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
6508 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
6509 tmp_to_remove_breakpoint_ops,
6510 record_full_beneath_to_insert_breakpoint_ops, and
6511 record_full_beneath_to_remove_breakpoint_ops.
6512 * remote-m32r-sdi.c (m32r_insert_breakpoint)
6513 (m32r_remove_breakpoint): Add target_ops parameter.
6514 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
6515 Add target_ops parameter.
6516 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
6517 Add target_ops parameter.
6519 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6520 Markus Metzger <markus.t.metzger@intel.com>
6522 * record-btrace.c: Include frame-unwind.h.
6523 (record_btrace_frame_unwind_stop_reason)
6524 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
6525 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
6527 (init_record_btrace_ops): Install it.
6529 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6531 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
6534 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6536 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
6539 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6541 * frame-unwind.c: Include target.h.
6542 (frame_unwind_try_unwinder): New function with code from ...
6543 (frame_unwind_find_by_frame): ... here. New variable
6544 unwinder_from_target, call also target_get_unwinder)
6545 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
6546 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
6547 * target.h (struct target_ops): New fields to_get_unwinder and
6548 to_get_tailcall_unwinder.
6549 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
6551 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6553 * record-btrace.c (record_btrace_fetch_registers)
6554 (record_btrace_store_registers)
6555 (record_btrace_to_prepare_to_store): New.
6556 (init_record_btrace_ops): Add the above.
6558 2014-01-16 Tom Tromey <tromey@redhat.com>
6560 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
6561 * target.h (struct target_ops) <to_prepare_to_store>: Add
6563 (target_prepare_to_store): Add argument.
6564 * target.c (debug_to_prepare_to_store): Add argument.
6565 (update_current_target): Update.
6566 * remote.c (remote_prepare_to_store): Add 'self' argument.
6567 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
6568 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
6569 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
6570 * record-full.c (record_full_core_prepare_to_store): Add 'self'
6572 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
6573 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
6574 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
6575 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
6576 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
6578 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6580 * btrace.h (replay) <replay>: New.
6581 (btrace_is_replaying): New.
6582 * btrace.c (btrace_clear): Free replay iterator.
6583 (btrace_is_replaying): New.
6584 * record-btrace.c (record_btrace_is_replaying): New.
6585 (record_btrace_info): Print insn number if replaying.
6586 (record_btrace_insn_history): Start at replay position.
6587 (record_btrace_call_history): Start at replay position.
6588 (init_record_btrace_ops): Init to_record_is_replaying.
6590 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6592 * record-btrace.c (record_btrace_insn_history_range): Include
6594 (record_btrace_insn_history_from): Adjust range.
6595 (record_btrace_call_history_range): Include
6597 (record_btrace_call_history_from): Adjust range.
6598 * NEWS: Announce changes.
6600 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6602 * record.h (enum record_print_flag)
6603 <record_print_indent_calls>: New.
6604 * record.c (get_call_history_modifiers): Recognize /c modifier.
6605 (_initialize_record): Document /c modifier.
6606 * record-btrace.c (btrace_call_history): Add btinfo parameter.
6607 Reorder fields. Optionally indent the function name. Update
6609 * NEWS: Announce changes.
6611 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6613 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
6615 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6617 * btrace.c (ftrace_new_function): Start counting at one.
6618 * record-btrace.c (record_btrace_info): Adjust number of calls
6620 * NEWS: Announce it.
6622 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6624 * record-btrace.c (btrace_call_history_insn_range): Print
6625 insn range as [begin, end].
6627 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6629 * btrace.h (struct btrace_func_link): New.
6630 (enum btrace_function_flag): New.
6631 (struct btrace_inst): Rename to ...
6632 (struct btrace_insn): ...this. Update all users.
6633 (struct btrace_func) <ibegin, iend>: Remove.
6634 (struct btrace_func_link): New.
6635 (struct btrace_func): Rename to ...
6636 (struct btrace_function): ...this. Update all users.
6637 (struct btrace_function) <segment, flow, up, insn, insn_offset)
6638 (number, level, flags>: New.
6639 (struct btrace_insn_iterator): Rename to ...
6640 (struct btrace_insn_history): ...this.
6642 (struct btrace_insn_iterator, btrace_call_iterator): New.
6643 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
6644 (struct btrace_target_info) <begin, end, level>
6645 <insn_history, call_history>: New.
6646 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
6647 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
6648 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
6649 (btrace_call_number, btrace_call_begin, btrace_call_end)
6650 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
6651 (btrace_find_function_by_number, btrace_set_insn_history)
6652 (btrace_set_call_history): New.
6653 * btrace.c (btrace_init_insn_iterator)
6654 (btrace_init_func_iterator, compute_itrace): Remove.
6655 (ftrace_print_function_name, ftrace_print_filename)
6656 (ftrace_skip_file): Change
6658 (ftrace_init_func): Remove.
6659 (ftrace_debug): Use new btrace_function fields.
6660 (ftrace_function_switched): Also consider gaining and
6661 losing symbol information).
6662 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
6663 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
6664 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
6666 (ftrace_new_function): Move. Remove debug print.
6667 (ftrace_update_lines, ftrace_update_insns): New.
6668 (ftrace_update_function): Check for call, ret, and jump.
6669 (compute_ftrace): Renamed to ...
6670 (btrace_compute_ftrace): ...this. Rewritten to compute call
6672 (btrace_fetch, btrace_clear): Updated.
6673 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
6674 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
6675 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
6676 (btrace_call_number, btrace_call_begin, btrace_call_end)
6677 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
6678 (btrace_find_function_by_number, btrace_set_insn_history)
6679 (btrace_set_call_history): New.
6680 * record-btrace.c (require_btrace): Use new btrace thread
6682 (record_btrace_info, btrace_insn_history)
6683 (record_btrace_insn_history, record_btrace_insn_history_range):
6684 Use new btrace thread info fields and new iterator.
6685 (btrace_func_history_src_line): Rename to ...
6686 (btrace_call_history_src_line): ...this. Use new btrace
6688 (btrace_func_history): Rename to ...
6689 (btrace_call_history): ...this. Use new btrace thread info
6690 fields and new iterator.
6691 (record_btrace_call_history, record_btrace_call_history_range):
6692 Use new btrace thread info fields and new iterator.
6694 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6696 * frame.h (frame_id_build_unavailable_stack_special): New.
6697 * frame.c (frame_id_build_unavailable_stack_special): New.
6699 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6701 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
6702 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
6703 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
6705 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
6706 (i386_insn_is_jump, i386_jmp_p): New.
6707 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
6708 insn_is_jump to gdbarch.
6709 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
6710 * gdbarch.h: Regenerated.
6711 * gdbarch.c: Regenerated.
6712 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
6713 (default_insn_is_jump): New.
6714 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
6715 (default_insn_is_jump): New.
6717 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6719 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
6721 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
6722 (btrace_read_type) <btrace_read_new>: Change to ...
6723 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
6725 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6727 * common/linux-btrace.c (linux_read_btrace): Free trace from
6730 2014-01-15 Doug Evans <dje@google.com>
6732 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
6735 2014-01-15 Tom Tromey <tromey@redhat.com>
6737 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
6738 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
6739 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
6740 (set_objfile_main_name): New function.
6741 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
6742 language_of_main>: New fields.
6743 (set_objfile_main_name): Declare.
6744 * symtab.c (find_main_name): Loop over objfiles to find the main
6746 (set_main_name): Now static.
6747 (get_main_info): Add comment.
6748 * symtab.h (set_main_name): Don't declare.
6750 2014-01-15 Tom Tromey <tromey@redhat.com>
6752 * symtab.c (main_progspace_key): New global.
6753 (struct main_info): New.
6754 (name_of_main, language_of_main): Remove.
6755 (get_main_info, main_info_cleanup): New function.
6756 (set_main_name, main_name, main_language): Use get_main_info.
6757 (_initialize_symtab): Initialize main_progspace_key.
6759 2014-01-15 Tom Tromey <tromey@redhat.com>
6761 * dbxread.c (process_one_symbol): Update.
6762 * dwarf2read.c (read_partial_die): Update.
6763 * symfile.c (set_initial_language): Call main_language.
6764 * symtab.c (language_of_main): Now static.
6765 (set_main_name): Add 'lang' parameter.
6766 (find_main_name): Update.
6767 (main_language): New function.
6768 (symtab_observer_executable_changed): Update.
6769 * symtab.h (set_main_name): Update.
6770 (language_of_main): Remove.
6771 (main_language): Declare.
6773 2014-01-15 Tom Tromey <tromey@redhat.com>
6775 * symfile.c (init_entry_point_info): Use new "initialized" field.
6777 * objfiles.h (struct entry_point) <initialized>: New field.
6778 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
6779 (struct objfile) <ei>: ...here. Remove.
6780 * objfiles.c (entry_point_address_query): Update.
6782 2014-01-15 Tom Tromey <tromey@redhat.com>
6784 * objfiles.c (entry_point_address_query): Relocate entry point
6786 (objfile_relocate1): Do not relocate entry point address.
6787 * objfiles.h (struct entry_info) <entry_point>: Update comment.
6788 <the_bfd_section_index>: New field.
6789 * symfile.c (init_entry_point_info): Find the entry point's
6792 2014-01-15 Tom Tromey <tromey@redhat.com>
6794 * solib-frv.c (enable_break): Use entry_point_address_query.
6796 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6798 * NEWS: Add note on improved process record-replay on
6799 arm*-linux* targets.
6801 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6803 * arm-tdep.c (enum arm_record_result): New enum.
6804 (arm_record_unsupported_insn): New function.
6805 (arm_record_coproc_data_proc): Removed.
6806 (thumb2_record_ld_st_multiple): New function.
6807 (thumb2_record_ld_st_dual_ex_tbb): New function.
6808 (thumb2_record_data_proc_sreg_mimm): New function.
6809 (thumb2_record_ps_dest_generic): New function.
6810 (thumb2_record_branch_misc_cntrl): New function.
6811 (thumb2_record_str_single_data): New function.
6812 (thumb2_record_ld_mem_hints): New function.
6813 (thumb2_record_ld_word): New function.
6814 (thumb2_record_lmul_lmla_div): New function.
6815 (thumb2_record_decode_insn_handler): New function.
6816 (decode_insn): Add thumb32 instruction handlers.
6818 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6820 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
6821 (struct arm_linux_record_tdep): Declare.
6822 (arm_canonicalize_syscall): New function.
6823 (arm_all_but_pc_registers_record): New function.
6824 (arm_linux_syscall_record): New function.
6825 (arm_linux_init_abi): Add syscall recording constructs.
6826 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
6827 decoding. (arm_record_coproc_data_proc): Update arm syscall
6829 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
6830 <arm_syscall_record>: New field.
6831 * configure.tgt (arm*-*-linux*): Add linux-record.o to
6834 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6836 * arm-tdep.c (thumb_record_misc): Update to use sp as base
6837 register for push instruction recording.
6839 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6841 * arm-tdep.c (thumb_record_misc): Update to correct logical
6842 error while recording ldm, ldmia and pop instructions.
6844 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6846 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
6848 2014-01-15 Pedro Alves <palves@redhat.com>
6850 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
6851 (go32_resume, go32_fetch_registers, store_register)
6852 (go32_store_registers, go32_prepare_to_store)
6853 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
6854 (go32_create_inferior, go32_can_run, go32_terminal_init)
6855 (go32_terminal_inferior, go32_terminal_ours): Delete forward
6858 2014-01-15 Tom Tromey <tromey@redhat.com>
6860 * target.h (async_callback_ftype): New typedef.
6861 (struct target_ops) <to_async>: Use it.
6863 2014-01-15 Joel Brobecker <brobecker@adacore.com>
6865 * python/py-value.c (get_field_type): Remove unnecessary curly
6866 braces for single-statement if block.
6868 2014-01-15 Joel Brobecker <brobecker@adacore.com>
6870 * python/py-type.c (convert_field): Add missing empty line
6873 2014-01-14 Doug Evans <dje@google.com>
6875 * symfile.h (expand_symtabs_matching): Renamed from
6876 expand_partial_symbol_names. Update prototype.
6877 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
6878 * symfile.c (expand_symtabs_matching): Renamed from
6879 expand_partial_symbol_names. New args file_matcher, kind.
6880 Rename arg fun to symbol_matcher.
6881 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
6882 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
6883 ada_expand_partial_symbol_name.
6884 (ada_make_symbol_completion_list): Update to call
6885 expand_symtabs_matching.
6886 (ada_add_global_exceptions): Call expand_symtabs_matching.
6887 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
6888 call map_symbol_filenames.
6889 * symtab.c (sources_info): Update to call map_symbol_filenames.
6890 (search_symbols): Call expand_symtabs_matching.
6891 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
6892 (default_make_symbol_completion_list_break_on): Update to call
6893 expand_symtabs_matching.
6894 (make_source_files_completion_list): Update to call
6895 map_symbol_filenames.
6897 2014-01-14 Doug Evans <dje@google.com>
6899 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
6900 (expand_symtabs_symbol_matcher_ftype): New typedef.
6901 (quick_symbol_functions.expand_symtabs_matching): Update to use.
6902 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
6903 * symfile.c (expand_partial_symbol_names): Update to use
6904 expand_symtabs_symbol_matcher_ftype.
6905 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
6906 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
6907 Arg name_matcher renamed to symbol_matcher.
6908 * psymtab.c (recursively_search_psymtabs): Update to use
6909 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
6911 (expand_symtabs_matching_via_partial): Update to use
6912 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
6913 Arg name_matcher renamed to symbol_matcher.
6915 2014-01-14 Doug Evans <dje@google.com>
6917 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
6918 (map_partial_symbol_filenames): Ditto.
6919 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
6920 (map_partial_symbol_filenames): Ditto.
6921 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
6922 (map_partial_symbol_filenames): Ditto.
6923 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
6924 (map_partial_symbol_filenames): Ditto.
6925 * symtab.c: Delete #include "psymtab.h".
6927 2014-01-14 Pedro Alves <palves@redhat.com>
6928 Tom Tromey <tromey@redhat.com>
6930 * infrun.c (use_displaced_stepping): Use find_record_target
6931 instead of RECORD_IS_USED.
6932 (adjust_pc_after_break): Use record_full_is_used instead of
6934 * record-btrace.c (record_btrace_open): Call record_preopen
6935 instead of checking RECORD_IS_USED.
6936 * record-full.c (record_full_shortname)
6937 (record_full_core_shortname): New globals.
6938 (record_full_is_used): New function.
6939 (find_full_open): Call record_preopen instead of checking
6941 (init_record_full_ops): Set the target's shortname to
6942 record_full_shortname.
6943 (init_record_full_core_ops): Set the target's shortname to
6944 record_full_core_shortname.
6945 * record-full.h (record_full_is_used): Declare.
6946 * record.c (find_record_target): Make extern.
6947 (record_preopen): New function.
6948 * record.h (RECORD_IS_USED): Delete macro.
6949 (find_record_target, record_preopen): Declare functions.
6951 2014-01-14 Yao Qi <yao@codesourcery.com>
6953 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
6954 'len''s type to ULONGEST.
6955 (core_xfer_shared_libraries_aix): Likewise.
6956 * gdbarch.c, gdbarch.h: Regenerated.
6957 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
6958 Change type of 'len' to ULONGEST.
6959 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
6960 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
6962 2014-01-14 Yao Qi <yao@codesourcery.com>
6964 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
6965 type of 'len' to ULONGEST.
6966 (linux_xfer_osdata_processgroups): Likewise.
6967 (linux_xfer_osdata_threads): Likewise.
6968 (linux_xfer_osdata_fds): Likewise.
6969 (linux_xfer_osdata_isockets): Likewise.
6970 (linux_xfer_osdata_shm): Likewise.
6971 (linux_xfer_osdata_sem): Likewise.
6972 (linux_xfer_osdata_msg): Likewise.
6973 (linux_common_xfer_osdata): Likewise.
6974 (struct osdata_type) <getter>: Likewise.
6975 * common/linux-osdata.h (linux_common_xfer_osdata): Update
6978 2014-01-14 Yao Qi <yao@codesourcery.com>
6980 * target.h (target_xfer_partial_ftype): Update.
6981 (struct target_ops) <to_xfer_partial>: Change 'len' type to
6983 * aix-thread.c (aix_thread_xfer_partial): Change type of
6984 argument 'len' to ULONGEST.
6985 * auxv.c (procfs_xfer_auxv): Likewise.
6986 (ld_so_xfer_auxv): Likewise.
6987 (memory_xfer_auxv): Likewise.
6988 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6989 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6990 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
6991 * corelow.c (core_xfer_partial): Likewise.
6992 * ctf.c (ctf_xfer_partial): Likewise.
6993 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
6995 (darwin_read_dyld_info): Likewise.
6996 (darwin_xfer_partial): Likewise.
6997 * exec.c (section_table_xfer_memory_partial): Likewise.
6998 (exec_xfer_partial): Likewise.
6999 * exec.h (section_table_xfer_memory_partial): Update
7001 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
7002 instead of plongest.
7003 (gnu_xfer_partial): Likewise.
7004 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
7005 (ia64_hpux_xfer_solib_got): Likewise.
7006 (ia64_hpux_xfer_partial): Likewise.
7007 * ia64-linux-nat.c (ia64_linux_xfer_partial):
7008 * inf-ptrace.c (inf_ptrace_xfer_partial):
7009 * inf-ttrace.c (inf_ttrace_xfer_partial):
7010 * linux-nat.c (linux_xfer_siginfo): Likewise.
7011 (linux_nat_xfer_partial): Likewise.
7012 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
7013 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
7014 * monitor.c (monitor_xfer_memory): Likewise.
7015 (monitor_xfer_partial): Likewise.
7016 * procfs.c (procfs_xfer_partial): Likewise.
7017 * record-full.c (record_full_xfer_partial): Likewise.
7018 (record_full_core_xfer_partial): Likewise.
7019 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
7020 instead of plongest.
7021 (gdbsim_xfer_partial): Likewise.
7022 * remote.c (remote_xfer_partial): Likewise.
7023 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7024 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7026 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7027 (rs6000_xfer_shared_libraries): Likewise.
7028 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7029 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7030 (sparc_xfer_partial): Likewise.
7031 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7032 (spu_xfer_partial): Likewise.
7033 * spu-multiarch.c (spu_xfer_partial): Likewise.
7034 * target.c (target_read_live_memory): Likewise.
7035 (memory_xfer_live_readonly_partial): Likewise.
7036 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
7037 (target_xfer_partial, default_xfer_partial): Likewise.
7038 (current_xfer_partial): Likewise.
7039 * tracepoint.c (tfile_xfer_partial): Likewise.
7040 * windows-nat.c (windows_xfer_memory): Likewise. Call
7041 pulongest instead of plongest.
7042 (windows_xfer_partial): Likewise.
7043 (windows_xfer_shared_libraries): Likewise.
7045 2014-01-14 Yao Qi <yao@codesourcery.com>
7047 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
7048 target_xfer_partial_ftype.
7050 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
7054 * valops.c (value_struct_elt_bitpos): New function
7055 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
7056 object to 'None' if the field name is an empty string ("").
7057 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
7058 attribute to look for a field when 'name' is 'None'.
7059 (get_field_type): New function
7061 2014-01-13 Doug Evans <dje@google.com>
7064 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
7065 (try_open_dwop_file): Ditto.
7066 * gdb_bfd.c: #include "vec.h".
7067 (bfdp): New typedef.
7068 (struct gdb_bfd_data): New member included_bfds.
7069 (gdb_bfd_unref): Unref all included bfds.
7070 (gdb_bfd_record_inclusion): New function.
7071 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
7073 2014-01-13 Tom Tromey <tromey@redhat.com>
7075 * gdbcore.h (deprecated_core_resize_section_table): Remove.
7077 2014-01-13 Tom Tromey <tromey@redhat.com>
7079 * defs.h (use_windows): Remove.
7080 * gdb.c (main): Update.
7081 * main.c (captured_main, gdb_main): Update.
7082 * main.h (struct captured_main_args) <use_windows>: Remove.
7083 * top.c (use_windows): Remove.
7085 2014-01-13 Tom Tromey <tromey@redhat.com>
7087 * defs.h (deprecated_flush_hook): Remove.
7089 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7092 * linux-thread-db.c (try_thread_db_load): Add parameter
7093 check_auto_load_safe. Move here the file_is_auto_load_safe call.
7094 (try_thread_db_load_from_pdir_1): Move it there from here.
7095 (try_thread_db_load_from_sdir): Update caller.
7096 (try_thread_db_load_from_dir): Move it there from here.
7098 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
7100 * regformats/regdat.sh: Always rewrite the register file.
7102 2014-01-13 Pedro Alves <palves@redhat.com>
7104 * Makefile.in (CHECK_HEADERS): New variable.
7105 (check-headers:): New rule.
7107 2014-01-13 Tom Tromey <tromey@redhat.com>
7109 * cli/cli-setshow.c (do_set_command): Update.
7110 * defs.h (deprecated_set_hook): Remove.
7111 * top.c (deprecated_set_hook): Remove.
7113 2014-01-13 Pedro Alves <palves@redhat.com>
7115 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
7116 the tracepoint if the PC is a pseudo-register.
7118 2014-01-13 Tom Tromey <tromey@redhat.com>
7120 * defs.h (XCALLOC): Remove.
7121 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
7122 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
7123 * dwarf2loc.c (allocate_piece_closure): Likewise.
7124 * elfread.c (elf_symfile_segments): Likewise.
7125 (elf_symfile_segments): Likewise.
7126 * gdbtypes.c (copy_type_recursive): Likewise.
7127 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
7128 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
7129 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
7131 * mt-tdep.c (mt_gdbarch_init): Likewise.
7132 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
7134 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
7135 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
7136 * registry.c (registry_alloc_data): Likewise.
7137 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
7138 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7139 * serial.c (serial_fdopen_ops): Likewise.
7140 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
7142 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
7143 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
7146 2014-01-13 Tom Tromey <tromey@redhat.com>
7148 * defs.h (XMALLOC): Remove.
7149 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
7150 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
7151 * cli-out.c (struct ui_out *): Likewise.
7152 * cli/cli-dump.c (add_dump_command): Likewise.
7153 (add_dump_command): Likewise.
7154 * complaints.c (get_complaints): Likewise.
7155 (find_complaint): Likewise.
7156 * dwarf2-frame.c (execute_cfa_program): Likewise.
7157 * dwarf2read.c (abbrev_table_read_table): Likewise.
7158 * gdbarch.sh: Likewise.
7159 * gdbarch.c: Rebuild.
7160 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
7161 * interps.c (interp_new): Likewise.
7162 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
7163 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7164 * mi/mi-console.c (mi_console_file_new): Likewise.
7165 * mi/mi-interp.c (mi_interpreter_init): Likewise.
7166 * mi/mi-out.c (mi_out_new): Likewise.
7167 * mi/mi-parse.c (mi_parse): Likewise.
7168 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
7169 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7170 * observer.c (xalloc_observer_list_node): Likewise.
7171 * regcache.c (regcache_xmalloc_1): Likewise.
7172 * reggroups.c (reggroup_new): Likewise.
7173 (_initialize_reggroup): Likewise.
7174 * registry.c (register_data_with_cleanup): Likewise.
7175 * remote.c (remote_notif_stop_alloc_reply): Likewise.
7176 * ser-base.c (serial_ttystate): Likewise.
7177 * ser-mingw.c (make_pipe_state): Likewise.
7178 * ser-pipe.c (pipe_open): Likewise.
7179 * serial.c (serial_open): Likewise.
7180 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
7181 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
7182 (tui_alloc_win_info): Likewise.
7183 (tui_add_content_elements): Likewise.
7184 * tui/tui-file.c (tui_file_new): Likewise.
7185 * tui/tui-out.c (tui_out_new): Likewise.
7186 * ui-file.c (mem_file_new): Likewise.
7187 * ui-out.c (push_level): Likewise.
7188 (make_cleanup_ui_out_end): Likewise.
7189 (append_header_to_list): Likewise.
7190 (ui_out_new): Likewise.
7191 * user-regs.c (user_reg_add_builtin): Likewise.
7193 2014-01-13 Tom Tromey <tromey@redhat.com>
7195 * defs.h (XZALLOC): Remove.
7196 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
7197 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
7198 (get_ada_tasks_inferior_data): Likewise.
7199 * auto-load.c (get_auto_load_pspace_data): Likewise.
7200 * auxv.c (get_auxv_inferior_data): Likewise.
7201 * bfd-target.c (target_bfd_reopen): Likewise.
7202 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
7203 (deprecated_insert_raw_breakpoint): Likewise.
7204 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
7205 * corelow.c (core_open): Likewise.
7206 * darwin-nat.c (darwin_check_new_threads): Likewise.
7207 (darwin_attach_pid): Likewise.
7208 * dummy-frame.c (dummy_frame_push): Likewise.
7209 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
7210 * dwarf2loc.c (allocate_piece_closure): Likewise.
7211 * elfread.c (elf_symfile_segments): Likewise.
7212 * eval.c (ptrmath_type_p): Likewise.
7213 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
7214 * gdbtypes.c (alloc_type_arch): Likewise.
7215 (alloc_type_instance): Likewise.
7216 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
7217 * inf-child.c (inf_child_can_use_agent): Likewise.
7218 * inflow.c (get_inflow_inferior_data): Likewise.
7219 * infrun.c (save_infcall_suspend_state): Likewise.
7220 * jit.c (jit_reader_load): Likewise.
7221 (get_jit_objfile_data): Likewise.
7222 (get_jit_program_space_data): Likewise.
7223 (jit_object_open_impl): Likewise.
7224 (jit_symtab_open_impl): Likewise.
7225 (jit_block_open_impl): Likewise.
7226 (jit_frame_sniffer): Likewise.
7227 * linux-fork.c (add_fork): Likewise.
7228 * maint.c (make_command_stats_cleanup): Likewise.
7229 * objfiles.c (get_objfile_pspace_data): Likewise.
7230 * opencl-lang.c (struct lval_closure): Likewise.
7231 * osdata.c (osdata_start_osdata): Likewise.
7232 * progspace.c (new_address_space): Likewise.
7233 (add_program_space): Likewise.
7234 * remote-sim.c (get_sim_inferior_data): Likewise.
7235 * sh-tdep.c (sh_gdbarch_init): Likewise.
7236 * skip.c (Ignore): Likewise.
7237 (skip_delete_command): Likewise.
7238 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
7239 (library_list_start_library): Likewise.
7240 (solib_aix_current_sos): Likewise.
7241 * solib-darwin.c (get_darwin_info): Likewise.
7242 (darwin_current_sos): Likewise.
7243 * solib-dsbt.c (get_dsbt_info): Likewise.
7244 * solib-ia64-hpux.c (new_so_list): Likewise.
7245 (ia64_hpux_get_solib_linkage_addr): Likewise.
7246 * solib-spu.c (append_ocl_sos): Likewise.
7247 (spu_current_sos): Likewise.
7248 * solib-svr4.c (get_svr4_info): Likewise.
7249 (svr4_keep_data_in_core): Likewise.
7250 (library_list_start_library): Likewise.
7251 (svr4_default_sos): Likewise.
7252 (svr4_read_so_list): Likewise.
7253 * solib-target.c (library_list_start_library): Likewise.
7254 (solib_target_current_sos): Likewise.
7255 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7256 * symfile-debug.c (install_symfile_debug_logging): Likewise.
7257 * symfile.c (default_symfile_segments): Likewise.
7258 * target-descriptions.c (tdesc_data_init): Likewise.
7259 (tdesc_create_reg): Likewise.
7260 (struct tdesc_type *): Likewise.
7261 (tdesc_create_vector): Likewise.
7262 (tdesc_set_struct_size): Likewise.
7263 (struct tdesc_type *): Likewise.
7264 (tdesc_free_feature): Likewise.
7265 (tdesc_create_feature): Likewise.
7266 * windows-nat.c (windows_add_thread): Likewise.
7267 (windows_make_so): Likewise.
7268 * xml-support.c (gdb_xml_body_text): Likewise.
7269 (gdb_xml_create_parser_and_cleanup): Likewise.
7270 (xml_process_xincludes): Likewise.
7271 * xml-syscall.c (allocate_syscalls_info): Likewise.
7272 (syscall_create_syscall_desc): Likewise.
7274 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
7276 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
7277 function, with code from i386_stap_parse_special_token.
7278 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7279 (i386_stap_parse_special_token): Move code to the two functions
7282 2014-01-09 Pedro Alves <palves@redhat.com>
7283 Hui Zhu <hui@codesourcery.com>
7286 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
7287 bp_err_string. Don't mark the location shlib_disabled if the
7288 error thrown wasn't a generic or memory error. Catch errors
7289 thrown while inserting breakpoints in overlayed code. Output
7290 error message of software breakpoints.
7291 * remote.c (remote_insert_breakpoint): If this breakpoint has
7292 target-side commands but this stub doesn't support Z0 packets,
7293 throw NOT_SUPPORTED_ERROR error.
7294 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
7295 * target.h (target_insert_breakpoint): Extend comment.
7296 (target_insert_hw_breakpoint): Add comment.
7298 2014-01-08 Pedro Alves <palves@redhat.com>
7300 * remote.c (remote_add_thread): Add threads silently if starting
7302 (remote_notice_new_inferior): If in all-stop, and starting up,
7303 don't call notice_new_inferior.
7304 (get_current_thread): New function, factored out from ...
7305 (add_current_inferior_and_thread): ... this. Adjust.
7306 (remote_start_remote) <all-stop>: Fetch the thread list. If we
7307 found any thread, then select the remote's current thread as GDB's
7310 2014-01-08 Joel Brobecker <brobecker@adacore.com>
7312 * NEWS: Create a new section for the next release branch.
7313 Rename the section of the current branch, now that it has
7316 2014-01-08 Joel Brobecker <brobecker@adacore.com>
7318 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
7319 * version.in: Bump version to 7.7.50.DATE-cvs.
7321 2014-01-08 Yao Qi <yao@codesourcery.com>
7323 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
7324 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
7325 (spu_xfer_partial): Cast 'buf' to 'const char *'.
7327 2014-01-08 Yao Qi <yao@codesourcery.com>
7329 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
7330 return value of bfd_get_filename to symbol_file_add_from_bfd.
7332 2014-01-08 Pierre Muller <muller@sourceware.org>
7335 * coff-pe-read.c (struct read_pe_section_data): Add index field.
7336 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
7337 to prim_record_mininal_symbol_and_info.
7338 (add_pe_forwarded_sym): Use known section number of forwarded symbol
7339 in call to prim_record_minimal_symbol_and_info.
7340 (read_pe_exported_syms): Set index field of section_data.
7342 2014-01-07 Andrew Pinski <apinski@cavium.com>
7344 * features/aarch64-core.xml (cpsr): Change to be 64bit.
7345 * features/aarch64.c: Regenerate.
7347 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
7349 * target.c (return_null): Define.
7350 (update_current_target): Use it instead of return_zero for
7351 functions that return a pointer.
7353 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
7355 * source.c (add_path): Fix check for duplicated paths in the previously
7358 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
7360 * ada-lang.c: Remove duplicated include statements.
7361 * alphabsd-nat.c: Ditto.
7362 * amd64-darwin-tdep.c: Ditto.
7363 * amd64fbsd-nat.c: Ditto.
7364 * auto-load.c: Ditto.
7366 * breakpoint.c: Ditto.
7368 * fork-child.c: Ditto.
7369 * gdb_usleep.c: Ditto.
7370 * i386-darwin-tdep.c: Ditto.
7371 * i386fbsd-nat.c: Ditto.
7373 * inferior.c: Ditto.
7375 * linux-nat.c: Ditto.
7376 * linux-tdep.c: Ditto.
7377 * m68kbsd-nat.c: Ditto.
7378 * m68klinux-nat.c: Ditto.
7379 * microblaze-tdep.c: Ditto.
7380 * mips-linux-tdep.c: Ditto.
7381 * mn10300-tdep.c: Ditto.
7382 * nto-tdep.c: Ditto.
7383 * opencl-lang.c: Ditto.
7385 * printcmd.c: Ditto.
7386 * regcache.c: Ditto.
7387 * remote-m32r-sdi.c: Ditto.
7391 * tilegx-linux-nat.c: Ditto.
7392 * tilegx-tdep.c: Ditto.
7393 * tracepoint.c: Ditto.
7395 * vaxbsd-nat.c: Ditto.
7396 * windows-nat.c: Ditto.
7397 * xtensa-tdep.c: Ditto.
7399 2014-01-07 Yao Qi <yao@codesourcery.com>
7401 * spu-linux-nat.c (_initialize_spu_nat): Declare.
7403 2014-01-07 Yao Qi <yao@codesourcery.com>
7404 Joel Brobecker <brobecker@adacore.com>
7406 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
7407 (pdc_write_regs): Likewise.
7408 (fetch_regs_kernel_thread): Likewise.
7409 (store_regs_kernel_thread): Likewise.
7411 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7413 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
7414 tagged type objects to their actual type.
7416 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7418 * ada-valprint.c (print_field_values): Add "language" parameter.
7419 Update calls to print_field_values and print_variant_part.
7420 Pass new parameter "language" in call to val_print instead
7421 of "current_language". Replace call to ada_val_print by call
7423 (print_variant_part): Add "language" parameter.
7424 (ada_val_print_struct_union): Update call to print_field_values.
7426 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7428 * ada-valprint.c (ui_memcpy): Delete.
7429 (ada_print_floating): Update documentation. Add empty line
7430 between between function documentation and implementation.
7431 Delete variable "buffer". Use ui_file_xstrdup in place of
7432 ui_file_put. Minor adjustments following this change.
7434 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7436 * ada-valprint.c (ada_val_print_string): New function,
7437 extracted from ada_val_print_array.
7438 (ada_val_print_array): Replace extracted code by call
7439 to ada_val_print_string followed by a return. Move
7440 "else" branch to the function's top block.
7442 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7444 * ada-valprint.c (ada_val_print_array): Move implementation
7445 down. Rename parameter "offset" and "val" into "offset_aligned"
7446 and "original_value" respectively. Add parameter "offset".
7448 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7450 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
7451 re-organizing the code. Change the "???" message printed
7452 when target type is a TYPE_CODE_UNDEF into
7453 "<ref to undefined type>".
7455 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7457 * ada-valprint.c (print_record): Delete, implementation inlined...
7458 (ada_val_print_struct_union): ... here. Remove call to
7459 ada_check_typedef in inlined implementation.
7461 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7463 * ada-valprint.c (ada_val_print_gnat_array): New function,
7464 extracted from ada_val_print_1;
7465 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
7466 (ada_val_print_flt, ada_val_print_struct_union)
7467 (ada_val_print_ref): Likewise.
7468 (ada_val_print_1): Delete variables i and elttype.
7469 Replace extracted-out code by call to corresponding
7472 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7474 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
7476 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7478 * ada-valprint.c (ada_val_print_1): Replace calls to
7479 ada_val_print_1 by calls to val_print.
7481 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7483 * ada-valprint.c (ada_val_print_1): Add parameter "language".
7484 Update calls to self accordingly. Replace calls to c_val_print
7485 by calls to val_print.
7487 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7489 * ada-valprint.c (print_record): Delete declaration.
7490 (adjust_type_signedness, ada_val_print_1): Likewise.
7491 (ada_val_print): Move function implementation down.
7492 (print_variant_part, print_field_values, print_record):
7493 Move function implementation up.
7495 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7497 * python/py-type.c (typy_get_name): New function.
7498 (type_object_getset): Add entry for attribute "name".
7499 * NEWS: Add entry mentioning this new attribute.
7501 2014-01-07 Yao Qi <yao@codesourcery.com>
7503 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
7506 2014-01-07 Yao Qi <yao@codesourcery.com>
7508 * gnu-nat.c (info_port_rights): Add qualifier const to
7511 2014-01-07 Yao Qi <yao@codesourcery.com>
7513 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
7515 2014-01-07 Yao Qi <yao@codesourcery.com>
7517 * gnu-nat.c (make_inf) Update declaration.
7518 (make_inf): Make it static.
7519 (inf_set_traced): Likewise.
7520 (inf_port_to_thread, inf_task_died_status): Likewise.
7522 2014-01-07 Yao Qi <yao@codesourcery.com>
7524 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
7526 2014-01-07 Yao Qi <yao@codesourcery.com>
7528 * gnu-nat.c (_initialize_gnu_nat): Declare.
7530 2014-01-07 Yao Qi <yao@codesourcery.com>
7532 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
7534 (struct gdbarch_info) <byte_order>: Change type to
7536 <byte_order_for_code>: Likewise.
7537 * gdbarch.c, gdbarch.h: Regenerated.
7539 2014-01-06 Sasha Smundak <asmundak@google.com>
7541 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
7543 2014-01-06 Tom Tromey <tromey@redhat.com>
7545 * doublest.c (convert_doublest_to_floatformat): Use const, not
7547 * somread.c (som_symtab_read): Likewise.
7549 2014-01-07 Hui Zhu <hui@codesourcery.com>
7551 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
7552 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
7553 (gdb_bfd_fopen): Ditto.
7554 (gdb_bfd_openr): Ditto.
7555 (gdb_bfd_openw): Ditto.
7556 (gdb_bfd_openr_iovec): Ditto.
7557 (gdb_bfd_fdopenr): Ditto.
7558 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
7559 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
7561 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
7563 * symfile-mem.c (symbol_file_add_from_memory): Removed
7564 gdb_bfd_stash_filename.
7566 2014-01-03 Doug Evans <dje@google.com>
7568 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
7571 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7573 Update year range in copyright notice of all files.
7575 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7577 * top.c (print_gdb_version): Set copyright year to 2014.
7579 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7581 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
7583 For older changes see ChangeLog-2013.
7589 version-control: never