1 2014-05-13 Doug Evans <xdje42@gmail.com>
3 * python/py-cmd.c (cmdpy_completer): Add comment.
4 (completers): Make const.
6 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8 * infrun.c (resume): Remove should_resume (unused). Move up
9 declaration of resume_ptid.
11 2014-05-13 Tom Tromey <tromey@redhat.com>
13 * language.h (unop_type_check): Remove.
14 (binop_type_check): Don't declare.
16 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
18 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
19 call to regcache_raw_collect.
21 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
23 * mi/mi-console.c (mi_console_raw_packet): Use the value from
24 mi_console->quote as the quoting character.
26 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
28 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
30 2014-04-29 Tom Tromey <tromey@redhat.com>
32 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
35 2014-05-07 Kyle McMartin <kyle@redhat.com>
37 Pushed by Joel Brobecker <brobecker@adacore.com>.
38 * aarch64-tdep.c (aarch64_software_single_step): New function.
39 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
40 with aarch64_software_single_step.
42 2014-05-05 Joel Brobecker <brobecker@adacore.com>
46 2014-05-05 Keith Seitz <keiths@redhat.com>
48 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
49 variable or history value is successfully parsed.
51 2014-05-05 Yao Qi <yao@codesourcery.com>
52 Pedro Alves <palves@redhat.com>
54 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
55 address of blocks that intersects the requested range. Trim
56 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
58 * ctf.c (ctf_xfer_partial): Likewise.
60 2014-05-05 Yao Qi <yao@codesourcery.com>
62 * printcmd.c (display_command): Remove the check to
65 2014-05-03 Mark Kettenis <kettenis@gnu.org>
67 * ppcobsd-nat.c: Include "obsd-nat.h".
68 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
70 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
72 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
74 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
75 and 16-bit signed and unsigned arguments. Update comment.
76 (stap_parse_probe_arguments): Extend code to handle such
77 arguments. Use warning instead of complaint to notify about
80 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
83 * stap-probe.c (stap_parse_probe_arguments): Simplify
84 check for non-prefixed probes (i.e., probes whose
85 arguments do not start with "N@"). Always set the
86 argument type to a sane value.
88 2014-05-01 David Taylor <dtaylor@emc.com>
90 * remote.c (compare_sections_command): Add -r option to compare
91 all loadable read-only sections.
93 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
95 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
96 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
98 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
99 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
100 Remove unused CORE_ADDR argument. Update all callers.
102 2014-04-29 Pedro Alves <palves@redhat.com>
104 * remote.c (struct packet_config) <detect>: Extend comment.
105 (add_packet_config_cmd): Don't set the config's detect or support
107 (init_all_packet_configs): Also initialize the config's 'detect'
109 (reset_all_packet_configs_support): New function.
110 (remote_open_1): Call reset_all_packet_configs_support instead of
111 init_all_packet_configs.
112 (_initialize_remote): Initialize all packet configs. Assert that
113 all packets have an associated command, except a few known
116 2014-04-28 Joel Brobecker <brobecker@adacore.com>
118 * dwarf2read.c (read_subrange_type): Handle dynamic
119 DW_AT_lower_bound attributes.
121 2014-04-28 Joel Brobecker <brobecker@adacore.com>
123 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
124 dynamic bounds before computing its upper bound.
125 (ada_discrete_type_low_bound): Same as above with the lower bound.
127 2014-04-28 Joel Brobecker <brobecker@adacore.com>
129 * dwarf2read.c (is_dynamic_type): Return true for dynamic
130 range types. Adjust the array handling implementation to
131 take advantage of this change.
132 (resolve_dynamic_range): New function, mostly extracted from
133 resolve_dynamic_bounds.
134 (resolve_dynamic_array): New function, mostly extracted from
135 resolve_dynamic_bounds.
136 (resolve_dynamic_bounds): Delete.
137 (resolve_dynamic_type): Reimplement. Add handling of
138 TYPE_CODE_RANGE types.
140 2014-04-28 Joel Brobecker <brobecker@adacore.com>
142 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
143 handling of parallel ___XA types.
145 2014-04-28 Joel Brobecker <brobecker@adacore.com>
147 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
148 unnecessary second call to static_unwrap_type.
150 2014-04-27 Hui Zhu <hui@codesourcery.com>
152 * stack.c (print_frame_info): Call do_gdb_disassembly with
153 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
155 2014-04-26 Doug Evans <xdje42@gmail.com>
157 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
159 2014-04-25 Pedro Alves <palves@redhat.com>
162 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
163 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
164 and newline from built string.
165 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
166 (linux_ptrace_attach_fail_reason): ... this.
167 * linux-nat.c (linux_nat_attach): Adjust to use
168 linux_ptrace_attach_fail_reason.
170 2014-04-25 Pedro Alves <palves@redhat.com>
172 * remote.c (struct remote_state): Remove multi_process_aware,
173 non_stop_aware, cond_tracepoints, cond_breakpoints,
174 breakpoint_commands, fast_tracepoints, static_tracepoints,
175 install_in_trace, disconnected_tracing,
176 enable_disable_tracepoints, string_tracing, and
177 augmented_libraries_svr4_read fields.
178 (remote_multi_process_p): Move further below in the file.
179 (struct packet_config): Add comments.
180 (update_packet_config): Delete function.
181 (show_packet_config_cmd): Use packet_config_support.
182 (add_packet_config_cmd): Use NULL as set callback.
183 (packet_ok): "set remote foo-packet"-style commands no longer
184 change config->supported -- adjust.
185 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
186 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
187 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
188 (PACKET_QNonStop, PACKET_multiprocess_feature)
189 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
190 (PACKET_DisconnectedTracing_feature)
191 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
192 (set_remote_protocol_packet_cmd): Delete function.
193 (packet_config_support, packet_support): New functions.
194 (set_remote_protocol_Z_packet_cmd): Don't call
195 update_packet_config.
196 (remote_query_attached, remote_pass_signals)
197 (remote_program_signals, remote_threads_info)
198 (remote_threads_extra_info, remote_start_remote): Use
200 (remote_start_remote): Use packet_config_support and
202 (init_all_packet_configs): Set all packets to unknown support,
203 instead of calling update_packet_config.
204 (remote_check_symbols): Use packet_support.
205 (remote_supported_packet): Unconditionally set the packet config's
207 (remote_multi_process_feature, remote_non_stop_feature)
208 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
209 (remote_breakpoint_commands_feature)
210 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
211 (remote_install_in_trace_feature)
212 (remote_disconnected_tracing_feature)
213 (remote_enable_disable_tracepoint_feature)
214 (remote_string_tracing_feature)
215 (remote_augmented_libraries_svr4_read_feature): Delete functions.
216 (remote_protocol_features): Adjust to use remote_supported_packet
217 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
218 "ConditionalTracepoints", "ConditionalBreakpoints",
219 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
220 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
221 "EnableDisableTracepoints", and "tracenz".
222 (remote_query_supported): Use packet_support.
223 (remote_open_1): Adjust.
224 (extended_remote_attach_1): Use packet_support. Switch on the
225 result of packet_ok instead of checking whether the packet ended
227 (remote_vcont_resume): Use packet_support.
228 (remote_resume, remote_stop_ns, fetch_register_using_p)
229 (remote_prepare_to_store, store_register_using_P)
230 (check_binary_download, remote_write_bytes): Use packet_support.
231 (remote_vkill): Use packet_support. Switch on the result of
232 packet_ok instead of checking whether the packet ended up
234 (extended_remote_supports_disable_randomization): Use
236 (extended_remote_run): Switch on the result of packet_ok instead
237 of checking whether the packet ended up disabled.
238 (remote_insert_breakpoint, remote_remove_breakpoint)
239 (remote_insert_watchpoint, remote_remove_watchpoint)
240 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
242 (remote_search_memory): Use packet_config_support.
243 (remote_get_thread_local_address, remote_get_tib_address)
244 (remote_hostio_send_command, remote_can_execute_reverse): Use
246 (remote_supports_cond_tracepoints)
247 (remote_supports_cond_breakpoints)
248 (remote_supports_fast_tracepoints)
249 (remote_supports_static_tracepoints)
250 (remote_supports_install_in_trace)
251 (remote_supports_enable_disable_tracepoint)
252 (remote_supports_string_tracing)
253 (remote_can_run_breakpoint_commands): Rewrite, checking whether
254 the packet config says the feature is enabled or disabled.
255 (remote_download_tracepoint, remote_trace_set_readonly_regions)
256 (remote_get_trace_status): Use packet_support.
257 (remote_set_disconnected_tracing): Adjust to check whether the
258 feature is enabled with packet_support.
259 (remote_set_trace_buffer_size, remote_use_agent)
260 (remote_can_use_agent, remote_supports_btrace): Use
262 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
263 Use packet_config_support.
264 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
265 the packet config says the feature is enabled or disabled.
266 (set_range_stepping): Use packet_support.
268 2014-04-25 Tom Tromey <tromey@redhat.com>
270 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
273 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
275 * NEWS: Mention support for C99 variable length arrays.
277 2014-04-24 Joel Brobecker <brobecker@adacore.com>
279 * ada-lang.c (standard_exc): Expand introductory comment.
281 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
282 Walfred Tedeschi <walfred.tedeschi@intel.com>
284 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
286 (amd64_linux_read_description): Add code to handle AVX512 xstate
287 mask and return respective tdesc.
288 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
289 and features/i386/x32-avx512-linux.c.
290 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
291 (amd64_linux_core_read_description): Add code to handle AVX512
292 xstate mask and return respective tdesc.
293 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
294 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
296 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
297 (tdesc_amd64_avx512_linux): New prototype.
298 (tdesc_x32_avx512_linux): Likewise.
299 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
300 features/i386/x32-avx512.c.
301 (amd64_ymm_avx512_names): New register names for pseudo
303 (amd64_ymmh_avx512_names): New register names for raw registers
305 (amd64_k_names): New register names for K registers.
306 (amd64_zmmh_names): New register names for ZMM raw registers.
307 (amd64_zmm_names): New registers names for ZMM pseudo registers.
308 (amd64_xmm_avx512_names): New register names for XMM16-31
310 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
312 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
313 if feature is present.
314 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
315 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
316 (AMD64_NUM_REGS): Adjust to new number of registers.
317 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
318 registers supplied via XSTATE by AVX512 registers.
319 (i386_linux_read_description): Add case for AVX512.
320 * i386-linux-tdep.c: Include i386-avx512-linux.c.
321 (i386_linux_gregset_reg_offset): Add AVX512 registers.
322 (i386_linux_core_read_description): Add case for AVX512.
323 (i386_linux_init_abi): Install supported register note section
325 (_initialize_i386_linux_tdep): Add call to tdesc init function for
327 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
328 registers to be number of zmm7h + 1.
329 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
330 * i386-tdep.c: Include features/i386/i386-avx512.c.
331 (i386_zmm_names): Add ZMM pseudo register names array.
332 (i386_zmmh_names): Add ZMM raw register names array.
333 (i386_k_names): Add K raw register names array.
334 (num_lower_zmm_regs): Add constant for the number of lower ZMM
335 registers. AVX512 has 16 more ZMM registers than there are YMM
337 (i386_zmmh_regnum_p): Add function to look up register number of
339 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
340 (i386_k_regnum_p): Likewise for K raw registers.
341 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
342 registers added by AVX512.
343 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
344 registers added by AVX512.
345 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
347 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
348 (i386_pseudo_register_name): Add ZMM pseudo registers.
349 (i386_zmm_type): Construct and return vector registers type for ZMM
351 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
352 ZMM0-31 pseudo registers and K registers.
353 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
354 and YMM16-31 registers from register cache.
355 (i386_pseudo_register_write): Add code to write K, ZMM and
357 (i386_register_reggroup_p): Add code to include/exclude AVX512
358 registers in/from respective register groups.
359 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
360 registers if feature is present in xcr0.
361 (i386_gdbarch_init): Add code to initialize AVX512 feature
362 variables in tdep structure, wire in pseudo registers and call
363 initialize_tdesc_i386_avx512.
364 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
366 (i386_regnum): Add AVX512 registers.
367 (I386_SSE_NUM_REGS): New define for number of SSE registers.
368 (I386_AVX_NUM_REGS): Likewise for AVX registers.
369 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
370 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
372 (i386_xmm_avx512_regnum_p): New prototype for register look up.
373 (i386_ymm_avx512_regnum_p): Likewise.
374 (i386_k_regnum_p): Likewise.
375 (i386_zmm_regnum_p): Likewise.
376 (i386_zmmh_regnum_p): Likewise.
377 * i387-tdep.c : Update year in copyright notice.
378 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
380 (XSAVE_YMM_AVX512_ADDR): New macro.
381 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
383 (XSAVE_XMM_AVX512_ADDR): New macro.
384 (xsave_avx512_k_offset): New table for K register offsets in
386 (XSAVE_AVX512_K_ADDR): New macro.
387 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
389 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
390 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
392 (i387_collect_xsave): Add code to collect AVX512 registers from
394 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
395 of XMM16-31 registers.
396 (I387_NUM_K_REGS): New define for number of K registers.
397 (I387_K0_REGNUM): New define for K0 register number.
398 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
399 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
400 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
402 (I387_YMM16H_REGNUM): New define for YMM16H register number.
403 (I387_XMM16_REGNUM): New define for XMM16 register number.
404 (I387_YMM0_REGNUM): New define for YMM0 register number.
405 (I387_KEND_REGNUM): New define for last K register number.
406 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
407 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
409 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
411 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
413 * features/Makefile: Add AVX512 related files.
414 * features/i386/32bit-avx512.xml: New file.
415 * features/i386/64bit-avx512.xml: Likewise.
416 * features/i386/amd64-avx512-linux.c: Likewise.
417 * features/i386/amd64-avx512-linux.xml: Likewise.
418 * features/i386/amd64-avx512.c: Likewise.
419 * features/i386/amd64-avx512.xml: Likewise.
420 * features/i386/i386-avx512-linux.c: Likewise.
421 * features/i386/i386-avx512-linux.xml: Likewise.
422 * features/i386/i386-avx512.c: Likewise.
423 * features/i386/i386-avx512.xml: Likewise.
424 * features/i386/x32-avx512-linux.c: Likewise.
425 * features/i386/x32-avx512-linux.xml: Likewise.
426 * features/i386/x32-avx512.c: Likewise.
427 * features/i386/x32-avx512.xml: Likewise.
428 * regformats/i386/amd64-avx512-linux.dat: New file.
429 * regformats/i386/amd64-avx512.dat: Likewise.
430 * regformats/i386/i386-avx512-linux.dat: Likewise.
431 * regformats/i386/i386-avx512.dat: Likewise.
432 * regformats/i386/x32-avx512-linux.dat: Likewise.
433 * regformats/i386/x32-avx512.dat: Likewise.
434 * NEWS: Add note about new support for AVX512.
437 2014-04-23 Pedro Alves <palves@redhat.com>
439 * breakpoint.c (insert_bp_location): Tolerate errors if the
440 breakpoint is set in a user-loaded objfile.
441 (remove_breakpoint_1): Likewise. Also tolerate errors if the
442 location is marked shlib_disabled. If the breakpoint is set in a
443 user-loaded objfile is a GDB-side memory breakpoint, validate it
444 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
445 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
447 * mem-break.c (memory_validate_breakpoint): New function.
448 * objfiles.c (userloaded_objfile_contains_address_p): New
450 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
451 * target.h (memory_validate_breakpoint): New declaration.
453 2014-04-23 Pedro Alves <palves@redhat.com>
455 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
456 the breakpoint is set in a shared library, only suppress
457 errors for software breakpoints, not hardware breakpoints.
459 2014-04-22 Pedro Alves <palves@redhat.com>
461 * infrun.c (schedlock_applies): New function, factored out from
462 find_thread_needs_step_over.
463 (find_thread_needs_step_over): Use it.
464 (switch_back_to_stepped_thread): Always clear trap_expected if the
465 step over is finished. Return early if scheduler locking applies.
466 Look for the stepping thread and a potential step-over thread with
468 (currently_stepping_or_nexting_callback): Delete.
470 2014-04-22 Nick Clifton <nickc@redhat.com>
472 * NEWS: Mention that ARM sim now supports tracing.
474 2014-04-22 Yao Qi <yao@codesourcery.com>
476 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
478 * tracefile.c (tracefile_fetch_registers): ... it. New
480 * tracefile.h (tracefile_fetch_registers): Declare.
481 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
482 tracefile_fetch_registers.
484 2014-04-19 Eli Zaretskii <eliz@gnu.org>
487 * windows-nat.c (thread_rec): Don't display a warning when
488 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
489 fails for any reason, set th->suspended to -1, so that we don't
490 try to resume such a thread. Also, don't return NULL in these
491 cases, to avoid completely ruin the session due to "PC register is
492 not available" error.
493 (do_windows_fetch_inferior_registers): Check errors in
494 GetThreadContext call.
495 (windows_continue): Accept an additional argument KILLED; if not
496 zero, ignore errors in the SetThreadContext call, since the
497 inferior was killed and is shutting down.
498 (windows_resume, get_windows_debug_event)
499 (windows_create_inferior, windows_mourn_inferior)
500 (windows_kill_inferior): All callers of windows_continue changed
501 to adjust to its new calling sequence.
503 2014-04-19 Yao Qi <yao@codesourcery.com>
505 * ctf.c (ctf_open): Call post_create_inferior.
507 2014-04-19 Yao Qi <yao@codesourcery.com>
509 * ctf.c (handle_id): New static variable.
510 (ctf_open_dir): Get handle_id from bt_context_add_trace return
511 value. Get the declaration of event "register" and get length
514 2014-04-19 Yao Qi <yao@codesourcery.com>
516 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
518 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
520 * valops.c (oload_method_static): Remove unnecessary argument
521 METHOD. Update all callers.
523 2014-04-18 Pedro alves <palves@redhat.com>
524 Tom Tromey <tromey@redhat.com>
527 * frame.c (get_prev_frame_1): Rename to ...
528 (get_prev_frame_always): ... this, and make extern. Adjust.
529 (skip_artificial_frames): Use get_prev_frame_always.
530 (frame_unwind_caller_id, frame_pop, get_prev_frame)
531 (get_frame_unwind_stop_reason): Adjust to rename.
532 * frame.h (get_prev_frame_always): Declare.
533 * inline-frame.c: Include frame.h.
534 (inline_frame_this_id): Use get_prev_frame_always.
536 2014-04-18 Tristan Gingold <gingold@adacore.com>
538 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
539 code by using bfd_mach_o_get_base_address.
541 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
543 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
544 (spu_ax_pseudo_register_collect): New function.
545 (spu_ax_pseudo_register_push_stack): Likewise.
546 (spu_dwarf_reg_to_regnum): Likewise.
547 (spu_gdbarch_init): Install them. Append DWARF unwinders.
549 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
551 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
552 Replace FRAME argument with FRAME_ID.
553 * gdbarch.c, gdbarch.h: Regenerate.
554 * findvar.c (default_value_from_register): Add GDBARCH argument;
555 replace FRAME by FRAME_ID. No longer call get_frame_id.
556 (value_from_register): Update call to gdbarch_value_from_register.
557 * value.h (default_value_from_register): Update prototype.
558 * s390-linux-tdep.c (s390_value_from_register): Update interface
559 and call to default_value_from_register.
560 * spu-tdep.c (spu_value_from_register): Likewise.
562 * findvar.c (address_from_register): Remove TYPE argument.
563 Do not call value_from_register; use gdbarch_value_from_register
564 with null_frame_id instead.
565 * value.h (address_from_register): Update prototype.
566 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
567 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
568 address_from_register interface change.
570 2014-04-17 Yao Qi <yao@codesourcery.com>
572 * gdbtypes.h: Update comments to link to types and macros'
575 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
577 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
579 2014-04-16 Keith Seitz <keiths@redhat.com>
582 * dwarf2read.c (skip_one_die): Check that all relative-offset
583 sibling DIEs fall within range of the current reader's buffer.
584 (read_partial_die): Likewise.
586 2014-04-16 Keith Seitz <keiths@redhat.com>
589 * cp-namespace.c (lookup_symbol_file): If the type name of
590 `this' is NULL, return immediately.
592 2014-04-14 Keith Seitz <keiths@redhat.com>
595 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
596 from symbol_matches_domain in symtab.c. All local callers
597 of symbol_matches_domain updated.
598 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
599 search STRUCT_DOMAIN.
600 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
601 independently. standard_lookup will do that automatically.
602 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
603 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
604 (cp_lookup_symbol_in_namespace): Likewise.
605 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
606 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
607 may return a STRUCT_DOMAIN match.
608 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
609 * cp-support.c: Include language.h.
610 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
612 * psymtab.c (match_partial_symbol): Compare the requested
613 domain with the symbol's domain directly.
614 (lookup_partial_symbol): Likewise.
615 * symtab.c (lookup_symbol_in_language): Explain when/why
616 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
617 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
618 appropriate languages.
619 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
620 and moved to ada-lang.c
621 (lookup_block_symbol): Explain that this function only returns
622 symbol matching the requested DOMAIN.
623 Compare the requested domain with the symbol's domain directly.
624 (iterate_over_symbols): Compare the requested domain with the
625 symbol's domain directly.
626 * symtab.h (symbol_matches_domain): Remove.
628 2014-04-14 Tom Tromey <tromey@redhat.com>
631 * c-exp.y (type_aggregate_p): New function.
632 (qualified_name, classify_inner_name): Use it.
633 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
634 and TYPE_TARGET_TYPE of an enum type.
635 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
637 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
638 handle TYPE_DECLARED_CLASS.
639 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
641 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
642 * valops.c (enum_constant_from_type): New function.
643 (value_aggregate_elt): Use it.
644 * cp-namespace.c (cp_lookup_nested_symbol): Handle
647 2014-04-14 Tom Tromey <tromey@redhat.com>
649 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
650 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
652 * value.h (value_aggregate_elt): Update.
654 2014-04-14 Tom Tromey <tromey@redhat.com>
656 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
658 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
660 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
661 (evaluate_subexp_standard): Pass noside argument.
662 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
663 if noside equals EVAL_NORMAL. If the subscript yields a vla type
664 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
665 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
666 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
668 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
670 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
671 points to a constant blob.
673 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
675 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
676 property and store it as the high bound and flag the range accordingly.
677 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
678 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
679 * gdbtypes.h (enum range_flags): New enum.
680 (struct range_bounds): Add flags member.
682 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
684 * c-typeprint.c (c_type_print_varspec_suffix): Added
685 check for not yet resolved high bound. If unresolved, print
686 "variable length" string to the console instead of random
689 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
691 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
693 (ada_template_to_fixed_record_type_1): Likewise.
694 (ada_to_fixed_type_1): Likewise.
695 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
696 (cp_print_value): Likewise.
697 * d-valprint.c (dynamic_array_type): Likewise.
698 * findvar.c (address_of_variable): Likewise.
699 * jv-valprint.c (java_value_print): Likewise.
700 * valops.c (value_ind): Likewise.
701 * value.c (coerce_ref): Likewise.
703 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
705 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
706 value and retrieve the dynamic type size.
708 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
710 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
711 passed to sizeof is dynamic evaluate the argument to compute the length.
713 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
714 Joel Brobecker <brobecker@adacore.com>
716 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
717 (dwarf2_evaluate_property): New function.
718 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
719 * dwarf2read.c (attr_to_dynamic_prop): New function.
720 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
722 * gdbtypes.c: Include dwarf2loc.h.
723 (is_dynamic_type): New function.
724 (resolve_dynamic_type): New function.
725 (resolve_dynamic_bounds): New function.
726 (get_type_length): New function.
727 (check_typedef): Use get_type_length to compute type length.
728 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
729 (TYPE_LOW_BOUND_KIND): New macro.
730 (is_dynamic_type): New function prototype.
731 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
732 to resolve dynamic properties of the type. Update comment.
733 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
735 2014-04-14 Richard Henderson <rth@redhat.com>
737 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
739 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
740 Doug Evans <xdje42@gmail.com>
742 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
743 dereference TYPE_CODE_REF values.
745 2014-04-11 Joel Brobecker <brobecker@adacore.com>
747 Revert the following changes due to regressions:
749 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
750 (dwarf2_evaluate_property): New function.
751 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
752 * dwarf2read.c (attr_to_dynamic_prop): New function.
753 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
755 * gdbtypes.c: Include dwarf2loc.h.
756 (is_dynamic_type): New function.
757 (resolve_dynamic_type): New function.
758 (resolve_dynamic_bounds): New function.
759 (get_type_length): New function.
760 (check_typedef): Use get_type_length to compute type length.
761 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
762 (TYPE_LOW_BOUND_KIND): New macro.
763 (is_dynamic_type): New function prototype.
764 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
765 to resolve dynamic properties of the type. Update comment.
766 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
768 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
769 passed to sizeof is dynamic evaluate the argument to compute the length.
771 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
772 value and retrieve the dynamic type size.
774 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
775 (ada_template_to_fixed_record_type_1): Likewise.
776 (ada_to_fixed_type_1): Likewise.
777 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
778 (cp_print_value): Likewise.
779 * d-valprint.c (dynamic_array_type): Likewise.
780 * eval.c (evaluate_subexp_with_coercion): Likewise.
781 * findvar.c (address_of_variable): Likewise.
782 * jv-valprint.c (java_value_print): Likewise.
783 * valops.c (value_ind): Likewise.
784 * value.c (coerce_ref): Likewise.
786 * c-typeprint.c (c_type_print_varspec_suffix): Added
787 check for not yet resolved high bound. If unresolved, print
788 "variable length" string to the console instead of random
791 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
792 property and store it as the high bound and flag the range accordingly.
793 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
794 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
795 * gdbtypes.h (enum range_flags): New enum.
796 (struct range_bounds): Add flags member.
798 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
799 points to a constant blob.
801 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
802 (evaluate_subexp_standard): Pass noside argument.
803 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
804 if noside equals EVAL_NORMAL. If the subscript yields a vla type
805 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
806 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
807 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
809 2014-04-11 Keith Seitz <keiths@redhat.com>
812 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
813 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
816 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
818 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
819 (evaluate_subexp_standard): Pass noside argument.
820 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
821 if noside equals EVAL_NORMAL. If the subscript yields a vla type
822 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
823 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
824 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
826 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
828 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
829 points to a constant blob.
831 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
833 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
834 property and store it as the high bound and flag the range accordingly.
835 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
836 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
837 * gdbtypes.h (enum range_flags): New enum.
838 (struct range_bounds): Add flags member.
840 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
842 * c-typeprint.c (c_type_print_varspec_suffix): Added
843 check for not yet resolved high bound. If unresolved, print
844 "variable length" string to the console instead of random
847 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
849 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
850 (ada_template_to_fixed_record_type_1): Likewise.
851 (ada_to_fixed_type_1): Likewise.
852 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
853 (cp_print_value): Likewise.
854 * d-valprint.c (dynamic_array_type): Likewise.
855 * eval.c (evaluate_subexp_with_coercion): Likewise.
856 * findvar.c (address_of_variable): Likewise.
857 * jv-valprint.c (java_value_print): Likewise.
858 * valops.c (value_ind): Likewise.
859 * value.c (coerce_ref): Likewise.
861 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
863 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
864 value and retrieve the dynamic type size.
866 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
868 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
869 passed to sizeof is dynamic evaluate the argument to compute the length.
871 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
873 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
874 (dwarf2_evaluate_property): New function.
875 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
876 * dwarf2read.c (attr_to_dynamic_prop): New function.
877 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
879 * gdbtypes.c: Include dwarf2loc.h.
880 (is_dynamic_type): New function.
881 (resolve_dynamic_type): New function.
882 (resolve_dynamic_bounds): New function.
883 (get_type_length): New function.
884 (check_typedef): Use get_type_length to compute type length.
885 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
886 (TYPE_LOW_BOUND_KIND): New macro.
887 (is_dynamic_type): New function prototype.
888 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
889 to resolve dynamic properties of the type. Update comment.
890 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
892 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
894 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
895 declaring high/low bounds and change uses accordingly. Call
896 create_range_type instead of create_static_range_type.
897 * gdbtypes.c (create_range_type): New function.
898 (create_range_type): Convert bounds into struct bound_prop and pass
899 them to create_range_type.
900 * gdbtypes.h (struct bound_prop): New struct.
901 (create_range_type): New function prototype.
902 (struct range_bounds): Use struct bound_prop instead of LONGEST for
903 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
904 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
906 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
908 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
910 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
911 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
912 * ada-lang.c: All uses of create_range_type updated.
913 * coffread.c: All uses of create_range_type updated.
914 * dwarf2read.c: All uses of create_range_type updated.
915 * f-exp.y: All uses of create_range_type updated.
916 * m2-valprint.c: All uses of create_range_type updated.
917 * mdebugread.c: All uses of create_range_type updated.
918 * stabsread.c: All uses of create_range_type updated.
919 * valops.c: All uses of create_range_type updated.
920 * valprint.c: All uses of create_range_type updated.
922 2014-04-10 Pedro Alves <palves@redhat.com>
924 * breakpoint.c (single_step_breakpoints)
925 (single_step_gdbarch): Move up in the file.
926 (one_breakpoint_xfer_memory): New function, factored out from ...
927 (breakpoint_xfer_memory): ... here. Also process single-step
930 2014-04-09 Tristan Gingold <gingold@adacore.com>
932 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
934 (darwin_decode_exception_message): Free port only after use.
936 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
938 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
939 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
940 when setting the size of call_length.
942 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
944 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
945 dereference TYPE_CODE_REF values.
947 2014-04-07 Joel Brobecker <brobecker@adacore.com>
949 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
950 end of warning message.
952 2014-04-03 Doug Evans <dje@google.com>
954 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
955 of stub_comp_unit_die, stub_comp_dir is non-NULL.
957 2014-04-02 Alan Modra <amodra@gmail.com>
959 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
960 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
961 (struct symbol_file_add_from_memory_args): Add size field.
962 (find_vdso_size): New function.
963 (add_vsyscall_page): Attempt to find vdso size.
965 2014-04-01 Doug Evans <dje@google.com>
967 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
969 2014-04-01 Tristan Gingold <gingold@adacore.com>
971 * darwin-nat.c (darwin_encode_reply): Add prototype.
972 (darwin_decode_exception_message): Reply to unknown inferiors.
973 (darwin_decode_message): Handle message by id. Ignore message
975 (darwin_wait): Discard unknown messages, add debug trace.
977 2014-03-31 Doug Evans <dje@google.com>
979 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
982 2014-03-31 Doug Evans <dje@google.com>
984 New option "set print symbol-loading".
986 * solib.c (solib_read_symbols): Only print symbol loading messages
988 (solib_add): If symbol loading is in "brief" mode, notify user
989 symbols are being loaded.
990 (reload_shared_libraries_1): Ditto.
991 * symfile.c (print_symbol_loading_off): New static global.
992 (print_symbol_loading_brief): New static global.
993 (print_symbol_loading_full): New static global.
994 (print_symbol_loading_enums): New static global.
995 (print_symbol_loading): New static global.
996 (print_symbol_loading_p): New function.
997 (symbol_file_add_with_addrs): Only print symbol loading messages
999 (_initialize_symfile): Register "print symbol-loading" set/show
1001 * symfile.h (print_symbol_loading_p): Declare.
1003 2014-03-30 Doug Evans <xdje42@gmail.com>
1005 * infrun.c (set_last_target_status): New function.
1006 (handle_inferior_event): Call it.
1008 2014-03-30 Doug Evans <xdje42@gmail.com>
1010 * inferior.h (enum stop_kind): Improve comment.
1012 2014-03-28 Joel Brobecker <brobecker@adacore.com>
1014 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
1015 a reference, strip the reference layer before calling
1016 the lang_ops value_has_mutated callback.
1018 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
1020 Remove some globals from our parser.
1021 * language.c (unk_lang_parser): Add "struct parser_state"
1023 * language.h (struct language_defn) <la_parser>: Likewise.
1024 * parse.c (expout, expout_size, expout_ptr): Remove variables.
1025 (initialize_expout): Add "struct parser_state" argument.
1026 Rewrite function to use the parser state.
1027 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
1028 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
1029 write_exp_elt_longcst, write_exp_elt_dblcst,
1030 write_exp_elt_decfloatcst, write_exp_elt_type,
1031 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
1032 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
1033 write_dollar_variable): Likewise.
1034 (parse_exp_in_context_1): Use parser state.
1035 (insert_type_address_space): Add "struct parser_state" argument.
1037 (increase_expout_size): New function.
1038 * parser-defs.h: Forward declare "struct language_defn" and
1039 "struct parser_state".
1040 (expout, expout_size, expout_ptr): Remove extern declarations.
1041 (parse_gdbarch, parse_language): Rewrite macro declarations to
1042 accept the parser state.
1043 (struct parser_state): New struct.
1044 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
1045 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
1046 write_exp_elt_decfloatcst, write_exp_elt_type,
1047 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
1048 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
1049 write_exp_msymbol, write_dollar_variable,
1050 mark_struct_expression, insert_type_address_space): Add "struct
1051 parser_state" argument.
1052 (increase_expout_size): New function.
1053 * utils.c (do_clear_parser_state): New function.
1054 (make_cleanup_clear_parser_state): Likewise.
1055 * utils.h (make_cleanup_clear_parser_state): New function
1057 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
1058 Update calls to write_exp* in order to pass the parser state.
1059 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1060 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
1061 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1062 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1063 * stap-probe.c (stap_parse_register_operand): Likewise.
1064 (stap_parse_single_operand): Likewise.
1065 (stap_parse_argument_1): Likewise.
1066 (stap_parse_argument): Use parser state.
1067 * stap-probe.h: Include "parser-defs.h".
1068 (struct stap_parse_info) <pstate>: New field.
1069 * c-exp.y (parse_type): Rewrite to use parser state.
1070 (yyparse): Redefine to c_parse_internal.
1071 (pstate): New global variable.
1072 (parse_number): Add "struct parser_state" argument.
1073 (write_destructor_name): Likewise.
1074 (type_exp): Update calls to write_exp* and similars in order to
1076 (exp1, exp, variable, qualified_name, space_identifier,
1077 typename, typebase): Likewise.
1078 (write_destructor_name, parse_number, lex_one_token,
1079 classify_name, classify_inner_name, c_parse): Add "struct
1080 parser_state" argument. Update function to use parser state.
1081 * c-lang.h: Forward declare "struct parser_state".
1082 (c_parse): Add "struct parser_state" argument.
1083 * ada-exp.y (parse_type): Rewrite macro to use parser state.
1084 (yyparse): Redefine macro to ada_parse_internal.
1085 (pstate): New variable.
1086 (write_int, write_object_renaming, write_var_or_type,
1087 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
1088 type_int, type_long, type_long_long, type_float, type_double,
1089 type_long_double, type_char, type_boolean, type_system_address):
1090 Add "struct parser_state" argument.
1091 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
1092 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
1093 var_or_type, aggregate, aggregate_component_list,
1094 positional_list, others, component_group,
1095 component_associations): Update calls to write_exp* and similar
1096 functions in order to use parser state.
1097 (ada_parse, write_var_from_sym, write_int,
1098 write_exp_op_with_string, write_object_renaming,
1099 find_primitive_type, write_selectors, write_ambiguous_var,
1100 write_var_or_type, write_name_assoc, type_int, type_long,
1101 type_long_long, type_float, type_double, type_long_double,
1102 type_char, type_boolean, type_system_address): Add "struct
1103 parser_state" argument. Adjust function to use parser state.
1104 * ada-lang.c (parse): Likewise.
1105 * ada-lang.h: Forward declare "struct parser_state".
1106 (ada_parse): Add "struct parser_state" argument.
1107 * ada-lex.l (processInt, processReal): Likewise. Adjust all
1108 calls to both functions.
1109 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
1111 (yyparse): Redefine macro to f_parse_internal.
1112 (pstate): New variable.
1113 (parse_number): Add "struct parser_state" argument.
1114 (type_exp, exp, subrange, typebase): Update calls to write_exp*
1115 and similars in order to use parser state.
1116 (parse_number): Adjust code to use parser state.
1118 (f_parse): New function.
1119 * f-lang.h: Forward declare "struct parser_state".
1120 (f_parse): Add "struct parser_state" argument.
1121 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
1123 (yyparse): Redefine macro for java_parse_internal.
1124 (pstate): New variable.
1125 (push_expression_name, push_expression_name, insert_exp): Add
1126 "struct parser_state" argument.
1127 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
1128 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
1129 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
1130 PostIncrementExpression, PostDecrementExpression,
1131 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
1132 UnaryExpressionNotPlusMinus, CastExpression,
1133 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
1134 RelationalExpression, EqualityExpression, AndExpression,
1135 ExclusiveOrExpression, InclusiveOrExpression,
1136 ConditionalAndExpression, ConditionalOrExpression,
1137 ConditionalExpression, Assignment, LeftHandSide): Update
1138 calls to write_exp* and similars in order to use parser state.
1139 (parse_number): Ajust code to use parser state.
1141 (java_parse): New function.
1142 (push_variable): Add "struct parser_state" argument. Adjust
1143 code to user parser state.
1144 (push_fieldnames, push_qualified_expression_name,
1145 push_expression_name, insert_exp): Likewise.
1146 * jv-lang.h: Forward declare "struct parser_state".
1147 (java_parse): Add "struct parser_state" argument.
1148 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
1150 (yyparse): Redefine macro to m2_parse_internal.
1151 (pstate): New variable.
1152 (type_exp, exp, fblock, variable, type): Update calls to
1153 write_exp* and similars to use parser state.
1155 (m2_parse): New function.
1156 * m2-lang.h: Forward declare "struct parser_state".
1157 (m2_parse): Add "struct parser_state" argument.
1158 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
1159 * objc-lang.h: Forward declare "struct parser_state".
1160 (end_msglist): Add "struct parser_state" argument.
1161 * p-exp.y (parse_type): Rewrite macro to use parser state.
1162 (yyparse): Redefine macro to pascal_parse_internal.
1163 (pstate): New variable.
1164 (parse_number): Add "struct parser_state" argument.
1165 (type_exp, exp1, exp, qualified_name, variable): Update calls to
1166 write_exp* and similars in order to use parser state.
1167 (parse_number, yylex): Adjust code to use parser state.
1168 (pascal_parse): New function.
1169 * p-lang.h: Forward declare "struct parser_state".
1170 (pascal_parse): Add "struct parser_state" argument.
1171 * go-exp.y (parse_type): Rewrite macro to use parser state.
1172 (yyparse): Redefine macro to go_parse_internal.
1173 (pstate): New variable.
1174 (parse_number): Add "struct parser_state" argument.
1175 (type_exp, exp1, exp, variable, type): Update calls to
1176 write_exp* and similars in order to use parser state.
1177 (parse_number, lex_one_token, classify_name, yylex): Adjust code
1178 to use parser state.
1179 (go_parse): Likewise.
1180 * go-lang.h: Forward declare "struct parser_state".
1181 (go_parse): Add "struct parser_state" argument.
1183 2014-03-27 Doug Evans <dje@google.com>
1185 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
1187 2014-03-27 Doug Evans <dje@google.com>
1189 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
1190 Remove argument abbrev_section. All callers updated.
1192 2014-03-27 Doug Evans <dje@google.com>
1194 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
1195 addr_base, ranges_base.
1197 2014-03-26 Keith Seitz <keiths@redhat.com>
1199 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
1200 types, not VAR_DOMAIN.
1202 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
1204 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
1206 * features/nios2-linux.c: Regenerated.
1207 * features/nios2.c: Regenerated.
1209 2014-03-25 Pedro Alves <palves@redhat.com>
1211 * cli/cli-script.c (script_from_file): Force the interpreter to
1214 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
1216 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
1217 small stack allocation.
1219 2014-03-24 Tristan Gingold <gingold@adacore.com>
1221 * darwin-nat.c (exc_server): Remove unused prototype.
1222 (darwin_dump_message): Correctly display data on x86_64.
1223 (darwin_encode_reply): Fix style.
1224 Add comments and fix indentation.
1226 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
1228 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
1230 2014-03-22 Doug Evans <xdje42@gmail.com>
1232 * infcmd.c: Whitespace fixes.
1233 (interrupt_command): Merge two function comments into one.
1235 2014-03-22 Doug Evans <xdje42@gmail.com>
1237 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
1240 2014-03-22 Yao Qi <yao@codesourcery.com>
1242 * remote.c (target_read_live_memory): Remove.
1243 (memory_xfer_live_readonly_partial): Rename it to
1244 remote_xfer_live_readonly_partial. Remove argument 'object'.
1245 All callers updated. Call remote_read_bytes_1
1246 instead of target_read_live_memory.
1247 * tracepoint.c (set_traceframe_number): Remove.
1248 (make_cleanup_restore_traceframe_number): Likewise .
1249 * tracepoint.h (set_traceframe_number): Remove declaration.
1250 (make_cleanup_restore_traceframe_number): Likewise.
1252 2014-03-22 Yao Qi <yao@codesourcery.com>
1254 * remote.c (remote_read_bytes): Move code on reading from the
1256 (remote_read_bytes_1): ... here. New function.
1258 2014-03-22 Yao Qi <yao@codesourcery.com>
1260 * ctf.c (ctf_xfer_partial): Check the return value of
1261 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
1262 return TARGET_XFER_UNAVAILABLE.
1263 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
1264 * target.c (target_read_live_memory): Move it to remote.c.
1265 (memory_xfer_live_readonly_partial): Likewise.
1266 (memory_xfer_partial_1): Move some code to remote_read_bytes.
1267 * remote.c (target_read_live_memory): Moved from target.c.
1268 (memory_xfer_live_readonly_partial): Likewise.
1269 (remote_read_bytes): Factored out from
1270 memory_xfer_partial_1.
1272 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
1274 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
1277 2014-03-21 Pedro Alves <palves@redhat.com>
1279 * infrun.c (normal_stop): Extend comment.
1281 2014-03-21 Hui Zhu <hui@codesourcery.com>
1282 Pedro Alves <palves@redhat.com>
1284 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
1286 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
1287 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
1288 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
1290 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
1292 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
1293 `z' formatted output modifier.
1295 2014-03-20 Tom Tromey <tromey@redhat.com>
1296 Sergio Durigan Junior <sergiodj@redhat.com>
1298 * probe.c (parse_probes): Turn assert into an ordinary error.
1299 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
1300 exceptions when parsing probes. Rearrange the code for clarity.
1302 2014-03-20 Tom Tromey <tromey@redhat.com>
1305 * top.c (execute_command): Only dispatch events if the command
1308 2014-03-20 Tom Tromey <tromey@redhat.com>
1311 * infcall.c: Include event-top.h.
1312 (run_inferior_call): Call async_disable_stdin if needed.
1314 2014-03-20 Pedro Alves <palves@redhat.com>
1316 * infrun.c (prepare_to_proceed): Delete.
1317 (thread_still_needs_step_over): New function.
1318 (find_thread_needs_step_over): New function.
1319 (proceed): If the current thread needs a step-over, set its
1320 steping_over_breakpoint flag. Adjust to use
1321 find_thread_needs_step_over instead of prepare_to_proceed.
1322 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
1323 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
1325 (switch_back_to_stepped_thread): Step over breakpoints of all
1326 threads not the stepping thread, before switching back to the
1329 2014-03-20 Pedro Alves <palves@redhat.com>
1331 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
1333 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
1334 * infrun.c (saved_singlestep_ptid)
1335 (stepping_past_singlestep_breakpoint): Delete.
1336 (resume): Remove stepping_past_singlestep_breakpoint handling.
1337 (proceed): Store the prev_pc of the stepping thread too.
1338 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
1340 (enum infwait_states): Delete infwait_thread_hop_state.
1341 (struct execution_control_state) <hit_singlestep_breakpoint>: New
1343 (handle_inferior_event): Adjust.
1344 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
1345 handling and the thread-hop code. Before removing single-step
1346 breakpoints, check whether the thread hit a single-step breakpoint
1347 of another thread. If it did, the trap is not a random signal.
1348 (switch_back_to_stepped_thread): If the event thread hit a
1349 single-step breakpoint, unblock it before switching to the
1350 stepping thread. Handle the case of the stepped thread having
1352 (keep_going): Handle the case of the current thread moving past a
1353 single-step breakpoint.
1355 2014-03-20 Pedro Alves <palves@redhat.com>
1358 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
1359 are being stepped over.
1360 (breakpoint_address_match): Make extern.
1361 * breakpoint.h (breakpoint_address_match): New declaration.
1362 * inferior.h (stepping_past_instruction_at): New declaration.
1363 * infrun.c (struct step_over_info): New type.
1364 (step_over_info): New global.
1365 (set_step_over_info, clear_step_over_info)
1366 (stepping_past_instruction_at): New functions.
1367 (handle_inferior_event): Clear the step-over info when
1368 trap_expected is cleared.
1369 (resume): Remove now stale comment.
1370 (clear_proceed_status): Clear step-over info.
1371 (proceed): Adjust step-over handling to set or clear the step-over
1372 info instead of removing all breakpoints.
1373 (handle_signal_stop): When setting up a thread-hop, don't remove
1375 (stop_stepping): Clear step-over info.
1376 (keep_going): Adjust step-over handling to set or clear step-over
1377 info and then always inserting breakpoints, instead of removing
1378 all breakpoints when stepping over one.
1380 2014-03-20 Pedro Alves <palves@redhat.com>
1382 * infrun.c (previous_inferior_ptid): Adjust comment.
1383 (deferred_step_ptid): Delete.
1384 (infrun_thread_ptid_changed, prepare_to_proceed)
1385 (init_wait_for_inferior): Adjust.
1386 (handle_signal_stop): Delete deferred_step_ptid handling.
1388 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1391 * defs.h (sync_quit_force_run): New declaration.
1392 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
1393 * event-top.c (async_sigterm_handler): New declaration.
1394 (async_sigterm_token): New variable.
1395 (async_init_signals): Create also async_sigterm_token.
1396 (async_sigterm_handler): New function.
1397 (sync_quit_force_run): New variable.
1398 (handle_sigterm): Replace quit_force call by other calls.
1399 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
1401 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
1403 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
1404 offset into SPE pseudo registers.
1406 2014-03-18 Pedro Alves <palves@redhat.com>
1409 * inferior.h (print_stop_event): Declare.
1410 * infrun.c (print_stop_event): New, factored out from ...
1411 (normal_stop): ... this.
1412 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
1413 of bpstat_print/print_stack_frame.
1415 2014-03-17 Tom Tromey <tromey@redhat.com>
1417 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
1419 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
1421 * ada-lang.c (decode_constrained_packed_array): Perform a
1422 minimal coercion for reference with coerce_ref instead of
1425 2014-03-17 Tristan Gingold <gingold@adacore.com>
1427 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
1428 (darwin_solib_create_inferior_hook): Emit a warning if version
1431 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
1433 * python/py-value.c (get_field_flag): Cast flag_name argument to
1434 PyObject_GetAttrString to support Python 2.4.
1436 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1438 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
1439 (Global Maintainers): Remove Jan Kratochvil.
1441 2014-03-14 Pedro Alves <palves@redhat.com>
1443 * inferior.h (terminal_ours_for_output): Rename to ...
1444 (child_terminal_ours_for_output): ... this.
1445 (terminal_save_ours): Rename to ...
1446 (child_terminal_save_ours): ... this.
1447 (terminal_ours): Rename to ...
1448 (child_terminal_ours): ... this.
1449 (terminal_inferior): Rename to ...
1450 (child_terminal_inferior): ... this.
1451 (terminal_init_inferior): Rename to ...
1452 (child_terminal_init_inferior): ... this.
1453 (terminal_init_inferior_with_pgrp): Rename to ...
1454 (child_terminal_init_inferior_with_pgrp): ... this.
1455 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
1456 (child_terminal_init_with_pgrp): ... this.
1457 (terminal_save_ours): Rename to ...
1458 (child_terminal_save_ours): ... this.
1459 (terminal_init_inferior): Rename to ...
1460 (child_terminal_init): ... this. Adjust.
1461 (terminal_inferior): Rename to ...
1462 (child_terminal_inferior): ... this.
1463 (terminal_ours_for_output): Rename to ...
1464 (child_terminal_ours_for_output): ... this. Adjust.
1465 (terminal_ours): Rename to ...
1466 (child_terminal_ours): ... this.
1467 (terminal_ours_1): Rename to ...
1468 (child_terminal_ours_1): ... this. Adjust.
1469 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
1470 * windows-nat.c (do_initial_windows_stuff): Adjust.
1471 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
1472 (gnu_terminal_init): ... this. Adjust.
1473 (gnu_target): Adjust.
1474 * inf-child.c (inf_child_target): Adjust.
1476 2014-03-13 Doug Evans <xdje42@gmail.com>
1479 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
1482 2014-03-13 Doug Evans <xdje42@gmail.com>
1484 * value.c (record_latest_value): Call release_value_or_incref
1485 instead of release_value.
1487 2014-03-13 Pedro Alves <palves@redhat.com>
1489 * procfs.c (procfs_target): Don't override to_shortname,
1490 to_longname or to_doc.
1492 2014-03-13 Pedro Alves <palves@redhat.com>
1494 * inf-child.c (inf_child_open, inf_child_target): Don't mention
1495 Unix in user visible strings.
1497 2014-03-12 Stan Shebs <stan@codesourcery.com>
1499 * gdbtypes.h: Annotate comments for Doxygen, add a page
1500 block comment with some general info.
1502 2014-03-12 Pedro Alves <palves@redhat.com>
1504 * infcmd.c (prepare_execution_command): New function, factored out
1505 from several execution commands.
1506 (run_command_1, continue_command, step_1, jump_command)
1507 (signal_command, until_command, advance_command, finish_command)
1508 (attach_command): Use prepare_execution_command.
1510 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
1512 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
1515 (struct arm_linux_thread_points): Removed.
1516 (struct arm_linux_process_info): New.
1517 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
1518 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
1519 (arm_linux_find_breakpoints_by_tid): Removed.
1520 (struct arch_lwp_info): New.
1521 (arm_linux_find_process_pid): New functions.
1522 (arm_linux_add_process): New functions.
1523 (arm_linux_process_info_get): New functions.
1524 (arm_linux_forget_process): New function.
1525 (arm_linux_get_debug_reg_state): New function.
1526 (struct update_registers_data): New.
1527 (update_registers_callback): New function.
1528 (arm_linux_insert_hw_breakpoint1): Updated.
1529 (arm_linux_remove_hw_breakpoint1): Updated.
1530 (arm_linux_insert_hw_breakpoint): Updated.
1531 (arm_linux_remove_hw_breakpoint): Updated.
1532 (arm_linux_insert_watchpoint): Updated.
1533 (arm_linux_remove_watchpoint): Updated.
1534 (arm_linux_new_thread): Updated.
1535 (arm_linux_prepare_to_resume): New function.
1536 (arm_linux_new_fork): New function.
1537 (_initialize_arm_linux_nat): Updated.
1539 2014-03-12 Pedro Alves <palves@redhat.com>
1541 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
1543 2014-03-12 Tom Tromey <tromey@redhat.com>
1545 * inf-child.c (return_zero): New function.
1546 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
1547 * aix-thread.c (aix_thread_inferior_created): New function.
1548 (aix_thread_attach): Remove.
1549 (init_aix_thread_ops): Don't set to_attach.
1550 (_initialize_aix_thread): Register inferior_created observer.
1551 * corelow.c (init_core_ops): Don't set to_attach or
1553 * exec.c (init_exec_ops): Don't set to_attach or
1555 * infcmd.c (run_command_1): Use find_run_target. Make direct
1557 (attach_command): Use find_attach_target. Make direct target
1559 * record-btrace.c (init_record_btrace_ops): Don't set
1561 * record-full.c (record_full_can_async_p, record_full_is_async_p):
1563 (init_record_full_ops, init_record_full_core_ops): Update. Don't
1564 set to_create_inferior.
1565 * target.c (complete_target_initialization): Add assertion.
1566 (target_create_inferior): Remove.
1567 (find_default_attach, find_default_create_inferior): Remove.
1568 (find_attach_target, find_run_target): New functions.
1569 (find_default_is_async_p, find_default_can_async_p)
1570 (target_supports_non_stop, target_attach): Remove.
1571 (init_dummy_target): Don't set to_create_inferior or
1572 to_supports_non_stop.
1573 * target.h (struct target_ops) <to_attach>: Add comment. Remove
1574 TARGET_DEFAULT_FUNC.
1575 <to_create_inferior>: Add comment.
1576 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
1577 TARGET_DEFAULT_RETURN.
1578 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
1579 (find_attach_target, find_run_target): Declare.
1580 (target_create_inferior): Remove.
1581 (target_has_execution_1): Update comment.
1582 (target_supports_non_stop): Remove.
1583 * target-delegates.c: Rebuild.
1585 2014-03-12 Pedro Alves <palves@redhat.com>
1587 * inf-child.h: Update comment to not mention Unix.
1589 2014-03-12 Pedro Alves <palves@redhat.com>
1591 * inf-child.c: Update top comment to not mention Unix. Add
1592 generic comment describing how this target is meant to be used.
1593 (inf_child_post_attach, inf_child_post_startup_inferior)
1594 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
1597 2014-03-12 Pedro Alves <palves@redhat.com>
1599 * nto-procfs.c: Include inf-child.h.
1600 (procfs_ops): Delete global.
1601 (procfs_can_run): Delete method.
1602 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
1603 target pointer instead of referencing procfs_ops.
1604 (procfs_prepare_to_store): Delete.
1605 (init_procfs_ops): Delete function.
1606 (procfs_target): New function, based on init_procfs_ops, but
1607 inherit inf_child_target.
1608 (_initialize_procfs): Use procfs_target.
1610 2014-03-12 Pedro Alves <palves@redhat.com>
1612 * windows-nat.c: Include inf-child.h.
1613 (windows_ops): Delete global.
1614 (windows_open, windows_prepare_to_store, windows_can_run): Delete
1616 (init_windows_ops): Delete function.
1617 (windows_target): New function, based on init_windows_ops, but
1618 inherit inf_child_target.
1619 (_initialize_windows_nat): Use windows_target. Install x86
1620 specific target methods here.
1622 2014-03-10 Doug Evans <xdje42@gmail.com>
1624 * guile/guile.c (call_initialize_gdb_module): New function.
1625 (initialize_guile): Replace call to scm_init_guile with call to
1628 2014-03-10 Joel Brobecker <brobecker@adacore.com>
1630 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
1631 in call to TYPE_CODE macro.
1633 2014-03-10 Jerome Guitton <guitton@adacore.com>
1635 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
1636 Resolve tagged types to full view.
1638 2014-03-10 Hui Zhu <hui@codesourcery.com>
1640 * target.h (target_insert_breakpoint): Remove "hardware" from its
1643 2014-03-07 Doug Evans <dje@google.com>
1645 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
1647 2014-03-07 Doug Evans <dje@google.com>
1649 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
1650 Remove unused local comp_dir_attr. Assert exactly one of
1651 stub_comp_unit_die, stub_comp_dir is non-NULL.
1653 2014-03-07 Joel Brobecker <brobecker@adacore.com>
1655 * target.h (complete_target_initialization, add_target):
1658 2014-03-07 Pedro Alves <palves@redhat.com>
1660 * go32-nat.c: Include inf-child.h.
1661 (go32_ops): Delete global.
1662 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
1664 (go32_create_inferior): Push the passed in target pointer instead
1665 of referencing go32_ops.
1666 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
1667 (go32_target): New function, based on init_go32_ops, but inherit
1669 (_initialize_go32_nat): Use go32_target. Move parts of
1672 2014-03-06 Joel Brobecker <brobecker@adacore.com>
1674 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
1675 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
1676 SYMBOL_VALUE_ADDRESS.
1677 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
1679 2014-03-06 Yao Qi <yao@codesourcery.com>
1681 * breakpoint.c (get_tracepoint_by_number): Remove argument
1682 optional_p. All callers updated. Adjust comments. Update
1684 * breakpoint.h (get_tracepoint_by_number): Update declaration.
1686 2014-03-06 Yao Qi <yao@codesourcery.com>
1688 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
1689 early if get_number returns zero. Use 'p' instead of 'args'.
1691 2014-03-06 Yao Qi <yao@codesourcery.com>
1693 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
1696 2014-03-06 Yao Qi <yao@codesourcery.com>
1698 PR breakpoints/16508
1699 * tracepoint.c (check_trace_running): New function.
1700 (trace_find_command): Move code to check_trace_running and
1701 call check_trace_running.
1702 (trace_find_pc_command): Likewise.
1703 (trace_find_tracepoint_command): Likewise.
1704 (trace_find_line_command): Likewise.
1705 (trace_find_range_command): Likewise.
1706 * tracepoint.h (check_trace_running): Likewise.
1707 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
1709 2014-03-06 Yao Qi <yao@codesourcery.com>
1711 * target.h (struct target_ops) <to_traceframe_info>: Use
1712 TARGET_DEFAULT_NORETURN (tcomplain ()).
1713 * target-delegates.c: Regenerated.
1715 2014-03-05 Pedro Alves <palves@redhat.com>
1718 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
1719 void. Update comment.
1720 (dcache_xfer_memory): Delete.
1721 (dcache_read_memory_partial): New, based on the read bits of
1723 (dcache_update): Add status parameter. Use ULONGEST for len, and
1724 adjust. Discard cache lines if the reason for the update was
1726 * dcache.h (dcache_xfer_memory): Delete declaration.
1727 (dcache_read_memory_partial): New declaration.
1728 (dcache_update): Update prototype.
1729 * target.c (raw_memory_xfer_partial): Update the dcache here.
1730 (memory_xfer_partial_1): Don't handle dcache writes here.
1732 2014-03-05 Mike Frysinger <vapier@gentoo.org>
1734 * remote-sim.c (gdbsim_load): Add const to prog.
1736 2014-03-03 Tom Tromey <tromey@redhat.com>
1738 * elfread.c (probe_key): Change to bfd_data.
1739 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
1740 now per-BFD, not per-objfile.
1741 * stap-probe.c (stap_probe_destroy): Update comment.
1742 (handle_stap_probe): Allocate on the per-BFD obstack.
1744 2014-03-03 Tom Tromey <tromey@redhat.com>
1746 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
1747 * breakpoint.c (create_longjmp_master_breakpoint): Use
1749 (add_location_to_breakpoint, bkpt_probe_insert_location)
1750 (bkpt_probe_remove_location): Update.
1751 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
1752 * elfread.c (elf_symfile_relocate_probe): Remove.
1753 (elf_probe_fns): Update.
1754 (insert_exception_resume_breakpoint): Change type of "probe"
1755 parameter to bound_probe.
1756 (check_exception_resume): Update.
1757 * objfiles.c (objfile_relocate1): Don't relocate probes.
1758 * probe.c (bound_probe_s): New typedef.
1759 (parse_probes): Use get_probe_address. Set sal's objfile.
1760 (find_probe_by_pc): Return a bound_probe.
1761 (collect_probes): Return a VEC(bound_probe_s).
1762 (compare_probes): Update.
1763 (gen_ui_out_table_header_info): Change type of "probes"
1765 (info_probes_for_ops): Update.
1766 (get_probe_address): New function.
1767 (probe_safe_evaluate_at_pc): Update.
1768 * probe.h (struct probe_ops) <get_probe_address>: New field.
1769 <set_semaphore, clear_semaphore>: Add objfile parameter.
1770 (struct probe) <objfile>: Remove field.
1772 <address>: Update comment.
1773 (struct bound_probe): New.
1774 (find_probe_by_pc): Return a bound_probe.
1775 (get_probe_address): Declare.
1776 * solib-svr4.c (struct probe_and_action) <address>: New field.
1777 (hash_probe_and_action, equal_probe_and_action): Update.
1778 (register_solib_event_probe): Add address parameter.
1779 (solib_event_probe_at): Update.
1780 (svr4_create_probe_breakpoints): Add objfile parameter. Use
1782 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
1783 (stap_get_probe_address): New function.
1784 (stap_can_evaluate_probe_arguments, compute_probe_arg)
1785 (compile_probe_arg): Update.
1786 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
1788 (handle_stap_probe): Don't relocate the probe.
1789 (stap_relocate): Remove.
1790 (stap_gen_info_probes_table_values): Update.
1791 (stap_probe_ops): Remove stap_relocate.
1792 * symfile-debug.c (debug_sym_relocate_probe): Remove.
1793 (debug_sym_probe_fns): Update.
1794 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
1795 * symtab.c (init_sal): Use memset.
1796 * symtab.h (struct symtab_and_line) <objfile>: New field.
1797 * tracepoint.c (start_tracing, stop_tracing): Update.
1799 2014-03-03 Tom Tromey <tromey@redhat.com>
1801 * probe.h (parse_probes, find_probe_by_pc)
1802 (find_probes_in_objfile): Fix comments.
1804 2014-03-02 Doug Evans <xdje42@gmail.com>
1806 * infrun.c (handle_signal_stop): Replace test for
1807 TARGET_WAITKIND_STOPPED with an assert.
1809 2014-03-02 Doug Evans <xdje42@gmail.com>
1811 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
1813 2014-03-02 Doug Evans <xdje42@gmail.com>
1815 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
1817 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1819 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
1821 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1823 * i386obsd-nat.c: Include "obsd-nat.h".
1824 (_initialize_i386obsd_nat): Call obsd_add_target instead of
1826 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
1828 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1830 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
1832 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1834 * mips64obsd-nat.c: Include "obsd-nath".
1835 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
1837 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
1839 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1841 * amd64obsd-nat.c: Include "obsd-nat,h.
1842 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
1844 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
1846 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
1848 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
1849 (find_overload_match): Update call to find_oload_champ.
1850 (find_oload_champ_namespace_loop): Likewise
1852 2014-02-28 Mark Kettenis <kettenis@gnu.org>
1854 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
1856 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
1857 * config/sparc/obsd64.mh: New file.
1858 * sparc64obsd-nat.c: New file.
1860 * obsd-nat.h: New file.
1861 * obsd-nat.c: New file.
1862 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
1863 (ALLDEPFILES): Add obsd-nat.c.
1865 2014-02-28 Tom Tromey <tromey@redhat.com>
1867 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
1868 * cli-out.h (cli_ui_out_impl): Now const.
1869 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
1870 * ui-out.c (struct ui_out) <impl>: Now const.
1871 (default_ui_out_impl): Now const.
1872 (ui_out_new): Make 'impl' parameter const.
1873 * ui-out.h (ui_out_new): Update.
1875 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1877 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
1879 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1881 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
1883 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1885 Additional PR 8882 fix.
1886 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
1888 2014-02-27 Pedro Alves <palves@redhat.com>
1890 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
1893 2014-02-27 Pedro Alves <palves@redhat.com>
1896 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
1897 * nat/linux-waitpid.c: Include string.h.
1898 (status_to_str): Moved here and made extern.
1899 * nat/linux-waitpid.h (status_to_str): New declaration.
1901 2014-02-27 Hui Zhu <hui@codesourcery.com>
1904 * infrun.c (ptid_match): Move ...
1905 * common/ptid.c (ptid_match): ... here.
1906 * inferior.h (ptid_match): Move ...
1907 * common/ptid.h (ptid_match): ... here.
1909 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1911 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
1912 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
1915 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1917 * obsd-tdep.c (obsd_auxv_parse): New function.
1918 (obsd_init_abi): Set auxv_parse.
1920 * gdbarch.sh (auxv_parse): New.
1921 * gdbarch.h: Regenerated.
1922 * gdbarch.c: Regenerated.
1923 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
1925 2014-02-26 Ludovic Courtès <ludo@gnu.org>
1927 * guile/scm-value.c (gdbscm_history_append_x): New function.
1928 (value_functions): Add it.
1930 2014-02-27 Joel Brobecker <brobecker@adacore.com>
1932 * dwarf2read.c (attr_value_as_address): New function.
1933 (dwarf2_find_base_address, read_call_site_scope): Use
1934 attr_value_as_address in place of DW_ADDR.
1935 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
1936 the low and high addresses. Slight rework of the handling
1937 of the high pc being a constant form, and limit it to
1938 DWARF verson 4 or higher.
1939 (dwarf2_record_block_ranges): Likewise.
1940 (read_partial_die): Likewise.
1941 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
1943 2014-02-26 Tom Tromey <tromey@redhat.com>
1945 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
1947 2014-02-26 Tom Tromey <tromey@redhat.com>
1949 * elfread.c (elf_read_minimal_symbols): Return early if
1950 minimal symbols have already been read. Add "ei" parameter.
1951 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
1952 * minsyms.c (prim_record_minimal_symbol_full): Update.
1953 * objfiles.h (struct objstats) <n_minsyms>: Move...
1954 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
1955 * symmisc.c (print_objfile_statistics): Update.
1957 2014-02-26 Tom Tromey <tromey@redhat.com>
1959 * elfread.c (elf_read_minimal_symbols): New function, from
1961 (elf_symfile_read): Call it.
1963 2014-02-26 Tom Tromey <tromey@redhat.com>
1965 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
1966 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
1967 (lookup_minimal_symbol_solib_trampoline)
1968 (lookup_minimal_symbol_by_pc_section_1)
1969 (lookup_minimal_symbol_and_objfile): Update.
1970 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
1971 Don't allocate a minimal symbol if minsyms have already been read.
1972 (build_minimal_symbol_hash_tables): Update.
1973 (install_minimal_symbols): Do nothing if minsyms already read.
1974 Use the per-BFD obstack.
1975 (terminate_minimal_symbol_table): Use the per-BFD obstack.
1976 * objfiles.c (allocate_objfile): Call
1977 terminate_minimal_symbol_table later.
1978 (have_minimal_symbols): Update.
1979 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
1980 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
1981 Move from struct objfile.
1982 <minsyms_read>: New field.
1983 (struct objfile) <msymbols, minimal_symbol_count,
1984 msymbol_hash, msymbol_demangled_hash>: Move.
1985 (ALL_OBJFILE_MSYMBOLS): Update.
1986 * symfile.c (read_symbols): Set minsyms_read.
1987 (reread_symbols): Update.
1988 * symmisc.c (dump_objfile, dump_msymbols): Update.
1990 2014-02-26 Tom Tromey <tromey@redhat.com>
1992 * minsyms.c (msymbols_sort): Remove.
1993 * minsyms.h (msymbols_sort): Remove.
1994 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
1995 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
1996 * elfread.c (elf_symtab_read): Don't add section offsets.
1997 * xcoffread.c (record_minimal_symbol): Don't add section offset
1998 to minimal symbol address.
1999 * somread.c (text_offset, data_offset): Remove.
2000 (som_symtab_read): Don't add section offsets to minimal symbol
2002 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
2003 Don't add section offsets to minimal symbols.
2004 * coffread.c (coff_symtab_read): Don't add section offsets
2005 to minimal symbol addresses.
2006 * machoread.c (macho_symtab_add_minsym): Don't add section offset
2007 to minimal symbol addresses.
2008 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
2009 section offset to minimal symbol addresses.
2010 * mdebugread.c (parse_partial_symbols): Don't add section
2011 offset to minimal symbol addresses.
2012 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
2013 offset to minimal symbol addresses.
2015 2014-02-26 Tom Tromey <tromey@redhat.com>
2017 * ada-lang.c (ada_main_name): Update.
2018 (ada_add_standard_exceptions): Update.
2019 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
2020 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2021 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
2022 * auxv.c (ld_so_xfer_auxv): Update.
2023 * avr-tdep.c (avr_scan_prologue): Update.
2024 * ax-gdb.c (gen_var_ref): Update.
2025 * blockframe.c (get_pc_function_start)
2026 (find_pc_partial_function_gnu_ifunc): Update.
2027 * breakpoint.c (create_overlay_event_breakpoint)
2028 (create_longjmp_master_breakpoint)
2029 (create_std_terminate_master_breakpoint)
2030 (create_exception_master_breakpoint): Update.
2031 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2032 * c-valprint.c (c_val_print): Update.
2033 * coff-pe-read.c (add_pe_forwarded_sym): Update.
2034 * common/agent.c (agent_look_up_symbols): Update.
2035 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
2036 * dwarf2loc.c (call_site_to_target_addr): Update.
2037 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
2038 * elfread.c (elf_gnu_ifunc_record_cache)
2039 (elf_gnu_ifunc_resolve_by_got): Update.
2040 * findvar.c (default_read_var_value): Update.
2041 * frame.c (inside_main_func): Update.
2042 * frv-tdep.c (frv_frame_this_id): Update.
2043 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2044 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2046 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
2047 (hppa_hpux_find_dummy_bpaddr): Update.
2048 * hppa-tdep.c (hppa_symbol_address): Update.
2049 * infcmd.c (until_next_command): Update.
2050 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
2052 * linespec.c (minsym_found, add_minsym): Update.
2053 * linux-nat.c (get_signo): Update.
2054 * linux-thread-db.c (inferior_has_bug): Update.
2055 * m32c-tdep.c (m32c_return_value)
2056 (m32c_m16c_address_to_pointer): Update.
2057 * m32r-tdep.c (m32r_frame_this_id): Update.
2058 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2059 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2060 * maint.c (maintenance_translate_address): Update.
2061 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
2062 (frob_address): New function.
2063 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
2064 frob_address. Rename parameter to "pc_in".
2065 (compare_minimal_symbols, compact_minimal_symbols): Use raw
2067 (find_solib_trampoline_target, minimal_symbol_upper_bound):
2069 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2070 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
2071 * objc-lang.c (find_objc_msgsend): Update.
2072 * objfiles.c (objfile_relocate1): Update.
2073 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2074 * p-valprint.c (pascal_val_print): Update.
2075 * parse.c (write_exp_msymbol): Update.
2076 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
2077 (ppc_elfv2_skip_entrypoint): Update.
2078 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2079 * printcmd.c (build_address_symbolic, msym_info)
2080 (address_info): Update.
2081 * proc-service.c (ps_pglobal_lookup): Update.
2082 * psymtab.c (find_pc_sect_psymtab_closer)
2083 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
2084 Change msymbol parameter to bound_minimal_symbol.
2085 * ravenscar-thread.c (get_running_thread_id): Update.
2086 * remote.c (remote_check_symbols): Update.
2087 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
2089 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2090 * solib-dsbt.c (lm_base): Update.
2091 * solib-frv.c (lm_base, main_got): Update.
2092 * solib-irix.c (locate_base): Update.
2093 * solib-som.c (som_solib_create_inferior_hook)
2094 (link_map_start): Update.
2095 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
2096 * solib-svr4.c (elf_locate_base, enable_break): Update.
2097 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2098 (flush_ea_cache): Update.
2099 * stabsread.c (define_symbol, scan_file_globals): Update.
2100 * stack.c (find_frame_funname): Update.
2101 * symfile-debug.c (debug_qf_expand_symtabs_matching)
2102 (debug_qf_find_pc_sect_symtab): Update.
2103 * symfile.c (simple_read_overlay_table)
2104 (simple_overlay_update): Update.
2105 * symfile.h (struct quick_symbol_functions)
2106 <find_pc_sect_symtab>: Change type of msymbol to
2107 bound_minimal_symbol.
2108 * symmisc.c (dump_msymbols): Update.
2109 * symtab.c (find_pc_sect_symtab_via_partial)
2110 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
2111 (search_symbols, print_msymbol_info): Update.
2112 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
2113 (MSYMBOL_VALUE_ADDRESS): Redefine.
2114 (BMSYMBOL_VALUE_ADDRESS): New macro.
2115 * tracepoint.c (scope_info): Update.
2116 * tui/tui-disasm.c (tui_find_disassembly_address)
2117 (tui_get_begin_asm_address): Update.
2118 * valops.c (find_function_in_inferior): Update.
2119 * value.c (value_static_field, value_fn_field): Update.
2121 2014-02-26 Tom Tromey <tromey@redhat.com>
2123 * ada-lang.c (ada_update_initial_language): Update.
2124 (ada_main_name, ada_has_this_exception_support): Update.
2125 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
2126 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2127 * arm-tdep.c (arm_skip_stub): Update.
2128 * auxv.c (ld_so_xfer_auxv): Update.
2129 * avr-tdep.c (avr_scan_prologue): Update.
2130 * ax-gdb.c (gen_var_ref): Update.
2131 * breakpoint.c (struct breakpoint_objfile_data)
2132 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
2133 type to bound_minimal_symbol.
2134 (create_overlay_event_breakpoint)
2135 (create_longjmp_master_breakpoint)
2136 (create_std_terminate_master_breakpoint)
2137 (create_exception_master_breakpoint): Update.
2138 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2139 * c-exp.y (classify_name): Update.
2140 * coffread.c (coff_symfile_read): Update.
2141 * common/agent.c (agent_look_up_symbols): Update.
2142 * d-lang.c (d_main_name): Update.
2143 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
2144 * dec-thread.c (enable_dec_thread): Update.
2145 * dwarf2loc.c (call_site_to_target_addr): Update.
2146 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
2147 * eval.c (evaluate_subexp_standard): Update.
2148 * findvar.c (struct minsym_lookup_data) <result>: Change type
2149 to bound_minimal_symbol.
2151 (minsym_lookup_iterator_cb, default_read_var_value): Update.
2152 * frame.c (inside_main_func): Update.
2153 * frv-tdep.c (frv_frame_this_id): Update.
2154 * gcore.c (call_target_sbrk): Update.
2155 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2156 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2158 * go-lang.c (go_main_name): Update.
2159 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
2160 (hppa_hpux_find_import_stub_for_addr): Update.
2161 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
2162 Update. Change return type.
2163 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
2165 * jit.c (jit_breakpoint_re_set_internal): Update.
2166 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
2168 * linux-nat.c (get_signo): Update.
2169 * linux-thread-db.c (inferior_has_bug): Update
2170 * m32c-tdep.c (m32c_return_value)
2171 (m32c_m16c_address_to_pointer): Update.
2172 * m32r-tdep.c (m32r_frame_this_id): Update.
2173 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2174 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2175 * minsyms.c (lookup_minimal_symbol_internal): Rename to
2176 lookup_minimal_symbol. Change return type.
2177 (lookup_minimal_symbol): Remove.
2178 (lookup_bound_minimal_symbol): Update.
2179 (lookup_minimal_symbol_text): Change return type.
2180 (lookup_minimal_symbol_solib_trampoline): Change return type.
2181 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
2182 (lookup_minimal_symbol_solib_trampoline): Change return type.
2183 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2184 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2185 (value_nsstring, find_imps): Update.
2186 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2187 * p-lang.c (pascal_main_name): Update.
2188 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
2189 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2190 * proc-service.c (ps_pglobal_lookup): Update.
2191 * ravenscar-thread.c (get_running_thread_msymbol): Change
2193 (has_ravenscar_runtime, get_running_thread_id): Update.
2194 * remote.c (remote_check_symbols): Update.
2195 * sol-thread.c (ps_pglobal_lookup): Update.
2196 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2197 * solib-dsbt.c (lm_base): Update.
2198 * solib-frv.c (lm_base, frv_relocate_section_addresses):
2200 * solib-irix.c (locate_base): Update.
2201 * solib-som.c (som_solib_create_inferior_hook)
2202 (som_solib_desire_dynamic_linker_symbols, link_map_start):
2204 * solib-spu.c (spu_enable_break): Update.
2205 * solib-svr4.c (elf_locate_base, enable_break): Update.
2206 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2207 (flush_ea_cache): Update.
2208 * stabsread.c (define_symbol): Update.
2209 * symfile.c (simple_read_overlay_table): Update.
2210 * symtab.c (find_pc_sect_line): Update.
2211 * tracepoint.c (scope_info): Update.
2212 * tui-disasm.c (tui_get_begin_asm_address): Update.
2213 * value.c (value_static_field): Update.
2215 2014-02-26 Tom Tromey <tromey@redhat.com>
2217 * minsyms.c (prim_record_minimal_symbol_full): Use
2218 SET_MSYMBOL_VALUE_ADDRESS.
2219 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
2220 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
2221 SET_MSYMBOL_VALUE_ADDRESS.
2222 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2223 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
2225 2014-02-26 Tom Tromey <tromey@redhat.com>
2227 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
2228 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
2229 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
2230 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
2231 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
2232 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
2233 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
2234 * ada-lang.c (ada_main_name): Update.
2235 (ada_lookup_simple_minsym): Update.
2236 (ada_make_symbol_completion_list): Update.
2237 (ada_add_standard_exceptions): Update.
2238 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
2239 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2240 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
2241 * arm-tdep.c (skip_prologue_function): Update.
2242 (arm_skip_stack_protector, arm_skip_stub): Update.
2243 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
2244 (arm_wince_skip_main_prologue): Update.
2245 * auxv.c (ld_so_xfer_auxv): Update.
2246 * avr-tdep.c (avr_scan_prologue): Update.
2247 * ax-gdb.c (gen_var_ref): Update.
2248 * block.c (call_site_for_pc): Update.
2249 * blockframe.c (get_pc_function_start): Update.
2250 (find_pc_partial_function_gnu_ifunc): Update.
2251 * breakpoint.c (create_overlay_event_breakpoint): Update.
2252 (create_longjmp_master_breakpoint): Update.
2253 (create_std_terminate_master_breakpoint): Update.
2254 (create_exception_master_breakpoint): Update.
2255 (resolve_sal_pc): Update.
2256 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2257 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
2259 * c-valprint.c (c_val_print): Update.
2260 * coff-pe-read.c (add_pe_forwarded_sym): Update.
2261 * coffread.c (coff_symfile_read): Update.
2262 * common/agent.c (agent_look_up_symbols): Update.
2263 * dbxread.c (find_stab_function_addr): Update.
2264 (end_psymtab): Update.
2265 * dwarf2loc.c (call_site_to_target_addr): Update.
2266 (func_verify_no_selftailcall): Update.
2267 (tailcall_dump): Update.
2268 (call_site_find_chain_1): Update.
2269 (dwarf_expr_reg_to_entry_parameter): Update.
2270 * elfread.c (elf_gnu_ifunc_record_cache): Update.
2271 (elf_gnu_ifunc_resolve_by_got): Update.
2272 * f-valprint.c (info_common_command): Update.
2273 * findvar.c (read_var_value): Update.
2274 * frame.c (get_prev_frame_1): Update.
2275 (inside_main_func): Update.
2276 * frv-tdep.c (frv_skip_main_prologue): Update.
2277 (frv_frame_this_id): Update.
2278 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2279 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
2280 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
2281 (gnuv3_skip_trampoline): Update.
2282 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
2283 (hppa64_hpux_in_solib_call_trampoline): Update.
2284 (hppa_hpux_skip_trampoline_code): Update.
2285 (hppa64_hpux_search_dummy_call_sequence): Update.
2286 (hppa_hpux_find_import_stub_for_addr): Update.
2287 (hppa_hpux_find_dummy_bpaddr): Update.
2288 * hppa-tdep.c (hppa_symbol_address)
2289 (hppa_lookup_stub_minimal_symbol): Update.
2290 * i386-tdep.c (i386_skip_main_prologue): Update.
2291 (i386_pe_skip_trampoline_code): Update.
2292 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
2293 * infcall.c (get_function_name): Update.
2294 * infcmd.c (until_next_command): Update.
2295 * jit.c (jit_breakpoint_re_set_internal): Update.
2296 (jit_inferior_init): Update.
2297 * linespec.c (minsym_found): Update.
2298 (add_minsym): Update.
2299 * linux-fork.c (info_checkpoints_command): Update.
2300 * linux-nat.c (get_signo): Update.
2301 * linux-thread-db.c (inferior_has_bug): Update.
2302 * m32c-tdep.c (m32c_return_value): Update.
2303 (m32c_m16c_address_to_pointer): Update.
2304 (m32c_m16c_pointer_to_address): Update.
2305 * m32r-tdep.c (m32r_frame_this_id): Update.
2306 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2307 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2308 * maint.c (maintenance_translate_address): Update.
2309 * minsyms.c (add_minsym_to_hash_table): Update.
2310 (add_minsym_to_demangled_hash_table): Update.
2311 (msymbol_objfile): Update.
2312 (lookup_minimal_symbol): Update.
2313 (iterate_over_minimal_symbols): Update.
2314 (lookup_minimal_symbol_text): Update.
2315 (lookup_minimal_symbol_by_pc_name): Update.
2316 (lookup_minimal_symbol_solib_trampoline): Update.
2317 (lookup_minimal_symbol_by_pc_section_1): Update.
2318 (lookup_minimal_symbol_and_objfile): Update.
2319 (prim_record_minimal_symbol_full): Update.
2320 (compare_minimal_symbols): Update.
2321 (compact_minimal_symbols): Update.
2322 (build_minimal_symbol_hash_tables): Update.
2323 (install_minimal_symbols): Update.
2324 (terminate_minimal_symbol_table): Update.
2325 (find_solib_trampoline_target): Update.
2326 (minimal_symbol_upper_bound): Update.
2327 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2328 * mips-tdep.c (mips_stub_frame_sniffer): Update.
2329 (mips_skip_pic_trampoline_code): Update.
2330 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
2331 * objc-lang.c (selectors_info): Update.
2332 (classes_info): Update.
2333 (find_methods): Update.
2334 (find_imps): Update.
2335 (find_objc_msgsend): Update.
2336 * objfiles.c (objfile_relocate1): Update.
2337 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
2338 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2339 * p-valprint.c (pascal_val_print): Update.
2340 * parse.c (write_exp_msymbol): Update.
2341 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
2342 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
2343 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2344 * printcmd.c (build_address_symbolic): Update.
2346 (address_info): Update.
2347 * proc-service.c (ps_pglobal_lookup): Update.
2348 * psymtab.c (find_pc_sect_psymtab_closer): Update.
2349 (find_pc_sect_psymtab): Update.
2350 * python/py-framefilter.c (py_print_frame): Update.
2351 * ravenscar-thread.c (get_running_thread_id): Update.
2352 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
2354 * remote.c (remote_check_symbols): Update.
2355 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
2356 (rs6000_skip_trampoline_code): Update.
2357 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
2358 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2359 * solib-dsbt.c (lm_base): Update.
2360 * solib-frv.c (lm_base): Update.
2362 * solib-irix.c (locate_base): Update.
2363 * solib-som.c (som_solib_create_inferior_hook): Update.
2364 (som_solib_desire_dynamic_linker_symbols): Update.
2365 (link_map_start): Update.
2366 * solib-spu.c (spu_enable_break): Update.
2367 (ocl_enable_break): Update.
2368 * solib-svr4.c (elf_locate_base): Update.
2369 (enable_break): Update.
2370 * spu-tdep.c (spu_get_overlay_table): Update.
2371 (spu_catch_start): Update.
2372 (flush_ea_cache): Update.
2373 * stabsread.c (define_symbol): Update.
2374 (scan_file_globals): Update.
2375 * stack.c (find_frame_funname): Update.
2376 (frame_info): Update.
2377 * symfile.c (simple_read_overlay_table): Update.
2378 (simple_overlay_update): Update.
2379 * symmisc.c (dump_msymbols): Update.
2380 * symtab.c (fixup_section): Update.
2381 (find_pc_sect_line): Update.
2382 (skip_prologue_sal): Update.
2383 (search_symbols): Update.
2384 (print_msymbol_info): Update.
2385 (rbreak_command): Update.
2386 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
2387 (completion_list_objc_symbol): Update.
2388 (default_make_symbol_completion_list_break_on): Update.
2389 * tracepoint.c (scope_info): Update.
2390 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
2391 (tui_get_begin_asm_address): Update.
2392 * valops.c (find_function_in_inferior): Update.
2393 * value.c (value_static_field): Update.
2394 (value_fn_field): Update.
2396 2014-02-26 Tom Tromey <tromey@redhat.com>
2398 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
2399 bound minimal symbols. Move code that knows about minsym
2401 * minsyms.c (minimal_symbol_upper_bound): ... here. New
2403 * minsyms.h (minimal_symbol_upper_bound): Declare.
2404 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
2405 minimal_symbol_upper_bound.
2407 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2409 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
2410 Use the type's name if its basic type does not have a tag.
2412 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2414 * dwarf2read.c (read_subrange_type): Add comment.
2416 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2418 * dwarf2read.c (update_enumeration_type_from_children): New
2419 function, mostly extracted from process_structure_scope.
2420 (read_enumeration_type): Call update_enumeration_type_from_children.
2421 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
2422 and flag_flag_enum fields.
2424 2014-02-26 Pedro Alves <palves@redhat.com>
2426 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
2427 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
2428 to_xfer_partial method.
2430 2014-02-26 Pedro Alves <palves@redhat.com>
2432 * target.c (complete_target_initialization): Don't install
2433 default_xfer_partial as to_xfer_partial hook.
2435 (update_current_target): Don't INHERIT nor de_fault
2436 deprecated_xfer_memory. Delete de_fault macro.
2437 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
2438 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
2439 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
2442 2014-02-26 Pedro Alves <palves@redhat.com>
2444 * go32-nat.c (my_write_child): New function.
2445 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
2446 (go32_xfer_partial): New function.
2447 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
2448 Instead install a to_xfer_partial hook.
2450 2014-02-26 Pedro Alves <palves@redhat.com>
2452 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
2453 to_xfer_partial helper. Rewrite.
2454 (procfs_xfer_partial): New function.
2455 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
2456 Install a to_xfer_partial hook.
2458 2014-02-26 Pedro Alves <palves@redhat.com>
2460 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
2461 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
2462 (m32r_xfer_partial): New function.
2463 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
2464 Install a to_xfer_partial hook.
2466 2014-02-26 Pedro Alves <palves@redhat.com>
2468 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
2470 (mips_xfer_partial): New function.
2471 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
2472 hook. Install a to_xfer_partial hook.
2474 2014-02-26 Joel Brobecker <brobecker@adacore.com>
2476 * gdbtypes.h (create_array_type_with_stride): Add declaration.
2477 * gdbtypes.c (create_array_type_with_stride): New function,
2478 renaming create_array_type, but with an added parameter
2479 called "bit_stride".
2480 (create_array_type): Re-implement using
2481 create_array_type_with_stride.
2482 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
2483 and DW_AT_bit_stride attributes.
2485 2014-02-26 Pedro Alves <palves@redhat.com>
2487 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
2488 task-specific breakpoints.
2490 2014-02-25 Pedro Alves <palves@redhat.com>
2492 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
2493 handling of object == TARGET_OBJECT_UNWIND_TABLE.
2495 2014-02-25 Stan Shebs <stan@codesourcery.com>
2497 * defs.h: Annotate comments for Doxygen.
2499 2014-02-25 Tom Tromey <tromey@redhat.com>
2501 * target.h (target_ignore): Don't declare.
2502 * target.c (target_ignore): Remove.
2504 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2507 * auto-load.c (auto_load_objfile_script_1): Change filename to
2510 2014-02-25 Joel Brobecker <brobecker@adacore.com>
2512 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
2513 documentation. Adjust prototype to match the target_ops
2514 to_xfer_partial method. Adjust implementation accordingly.
2516 2014-02-25 Hui Zhu <hui@codesourcery.com>
2518 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
2521 2014-02-25 Kevin Buettner <kevinb@redhat.com>
2523 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
2524 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
2525 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
2526 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
2527 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
2528 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
2529 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
2530 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
2532 (rl78_register_type): Use a data pointer type for SP and
2533 new pseudo registers mentioned above. Use a 16 bit integer
2534 type for all other register pairs.
2535 (rl78_register_name, rl78_g10_register_name): Update for
2536 new pseudo registers.
2537 (rl78_pseudo_register_read): Likewise.
2538 (rl78_pseudo_register_write): Likewise.
2539 (rl78_dwarf_reg_to_regnum): Return register numbers representing
2540 to the newly added pseudo registers.
2542 2014-02-24 Doug Evans <dje@google.com>
2544 * value.c (record_latest_value): Fix comment.
2545 * printcmd.c (print_command_1): Remove code to handle -1 return from
2546 record_latest_value.
2548 2014-02-24 Pedro Alves <palves@redhat.com>
2550 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
2551 deprecated_xfer_memory hook.
2552 (procfs_xfer_partial): Call procfs_xfer_memory instead
2553 of the deprecated_xfer_memory target hook.
2554 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
2557 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
2559 * windows-nat.c (windows_xfer_shared_libraries): Return
2560 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
2561 requested object is TARGET_OBJECT_LIBRARIES.
2563 2014-02-24 Yao Qi <yao@codesourcery.com>
2565 * target.h (enum target_xfer_status)
2566 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
2567 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
2569 * corefile.c (memory_error_message): User updated.
2570 * exec.c (section_table_read_available_memory): Likewise.
2571 * record-btrace.c (record_btrace_xfer_partial): Likewise.
2572 * target.c (target_xfer_status_to_string): Likewise.
2573 (raw_memory_xfer_partial): Likewise.
2574 (memory_xfer_partial_1, target_xfer_partial): Likewise.
2575 * valops.c (read_value_memory): Likewise.
2576 * exec.h: Update comments.
2578 2014-02-24 Yao Qi <yao@codesourcery.com>
2580 * target.c (target_xfer_status_to_string): Rename argument err
2582 * target.h (target_xfer_status_to_string): Update declaration.
2583 Replace target_xfer_error_to_string with
2584 target_xfer_status_to_string in comment.
2586 2014-02-24 Yao Qi <yao@codesourcery.com>
2588 * mips-linux-nat.c (super_close): Update its type.
2589 (mips_linux_close): Pass 'self' to super_close.
2591 2014-02-24 Yao Qi <yao@codesourcery.com>
2593 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
2594 * corefile.c (read_memory): Adjusted.
2595 * target.c (target_write_with_progress): Adjusted.
2597 2014-02-23 Yao Qi <yao@codesourcery.com>
2601 2013-10-25 Yao Qi <yao@codesourcery.com>
2603 * remote.c (remote_traceframe_info): Return early if
2604 traceframe is not selected.
2606 2013-07-19 Yao Qi <yao@codesourcery.com>
2608 * target.c (update_current_target): Change the default action
2609 of 'to_traceframe_info' from tcomplain to return_zero.
2610 * target.h (struct target_ops) <to_traceframe_info>: Add more
2613 2014-02-23 Yao Qi <yao@codesourcery.com>
2615 * valops.c (read_value_memory): Rewrite it. Call
2616 target_xfer_partial in a loop.
2617 * exec.h (section_table_available_memory): Remove declaration.
2618 Move comments to ...
2619 * exec.c (section_table_available_memory): ... here. Make it
2622 2014-02-23 Yao Qi <yao@codesourcery.com>
2624 * exec.c (section_table_read_available_memory): New function.
2625 * exec.h (section_table_read_available_memory): Declare.
2626 * ctf.c (ctf_xfer_partial): Call
2627 section_table_read_available_memory.
2628 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2630 2014-02-23 Yao Qi <yao@codesourcery.com>
2632 * ctf.c (ctf_xfer_partial): Move code to ...
2633 * exec.c (exec_read_partial_read_only): ... it. New function.
2634 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2635 * tracefile.c: Include "exec.h".
2636 * exec.h (exec_read_partial_read_only): Declare.
2638 2014-02-23 Yao Qi <yao@codesourcery.com>
2640 * tracefile-tfile.c (tfile_has_all_memory): Remove.
2641 (tfile_has_memory): Remove.
2642 (init_tfile_ops): Don't set fields to_has_all_memory and
2643 to_has_memory of tfile_ops.
2644 * tracefile.c (tracefile_has_all_memory): New function.
2645 (tracefile_has_memory): New function.
2646 (init_tracefile_ops): Initialize fields to_has_all_memory and
2647 to_has_memory of 'ops'.
2649 2014-02-23 Yao Qi <yao@codesourcery.com>
2651 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
2652 (ctf_thread_alive, ctf_get_trace_status): Remove.
2653 (init_ctf_ops): Don't set some fields of ctf_ops. Call
2655 * tracefile-tfile.c (tfile_get_trace_status): Remove.
2656 (tfile_has_stack, tfile_has_registers): Remove.
2657 (tfile_thread_alive): Remove.
2658 (init_tfile_ops): Don't set some fields of tfile_ops. Call
2660 * tracefile.c (tracefile_has_stack): New function.
2661 (tracefile_has_registers): New function.
2662 (tracefile_thread_alive): New function.
2663 (tracefile_get_trace_status): New function.
2664 (init_tracefile_ops): New function.
2665 * tracefile.h (init_tracefile_ops): Declare.
2667 2014-02-23 Yao Qi <yao@codesourcery.com>
2669 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
2670 (O_LARGEFILE): Likewise.
2671 (tfile_ops): Likewise.
2672 (TRACE_HEADER_SIZE): Likewise.
2673 (trace_fd, trace_frames_offset, cur_offset): Likewise.
2674 (cur_data_size): Likewise.
2675 (tfile_read, tfile_open, tfile_interp_line): Likewise.
2676 (tfile_close, tfile_files_info): Likewise.
2677 (tfile_get_trace_status): Likewise.
2678 (tfile_get_tracepoint_status): Likewise.
2679 (tfile_get_traceframe_address): Likewise.
2680 (tfile_trace_find, match_blocktype): Likewise.
2681 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
2682 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
2683 (tfile_get_trace_state_variable_value): Likewise.
2684 (tfile_has_all_memory, tfile_has_memory): Likewise.
2685 (tfile_has_stack, tfile_has_registers): Likewise.
2686 (tfile_thread_alive, build_traceframe_info): Likewise.
2687 (tfile_traceframe_info, init_tfile_ops): Likewise.
2688 (_initialize_tracepoint): Don't call init_tfile_ops
2689 and add_target_with_completer.
2690 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
2691 exec.h, completer.h and filenames.h.
2692 (_initialize_tracefile_tfile): New function.
2694 2014-02-23 Yao Qi <yao@codesourcery.com>
2696 * Makefile.in (REMOTE_OBS): Append tracefile.o and
2698 (HFILES_NO_SRCDIR): Add tracefile.h.
2699 * ctf.c: Include "tracefile.h".
2700 * tracefile.h: New file.
2701 * tracefile.c: New file
2702 * tracefile-tfile.c: New file.
2703 * tracepoint.c: Include "tracefile.h".
2704 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
2705 (stop_reason_names): Add const.
2706 (trace_file_writer_xfree): Move it to tracefile.c.
2707 (trace_save, trace_save_command, trace_save_tfile): Likewise.
2708 (trace_save_ctf): Likewise.
2709 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
2710 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
2711 (tfile_write_header, tfile_write_regblock_type): Likewise.
2712 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
2713 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
2714 (tfile_write_raw_data, tfile_end): Likewise.
2715 (tfile_trace_file_writer_new): Likewise.
2716 (free_uploaded_tp): Make it extern.
2717 (free_uploaded_tsv): Make it extern.
2718 (_initialize_tracepoint): Move code to register command 'tsave'
2720 * tracepoint.h (stop_reason_names): Declare.
2721 (struct trace_frame_write_ops): Move it to tracefile.h.
2722 (struct trace_file_write_ops): Likewise.
2723 (struct trace_file_writer): Likewise.
2724 (free_uploaded_tsvs, free_uploaded_tps): Declare.
2726 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2729 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
2731 (get_cores_used_by_process): New parameter num_cores, use it.
2732 (linux_xfer_osdata_processes): Pass num_cores to it.
2733 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
2736 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
2738 * target.c (memory_xfer_partial): Fix length arg in call to
2739 breakpoint_xfer_memory.
2741 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
2744 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
2745 number comes after the + or - signs. Adjust length of register
2746 name to be extracted.
2748 2014-02-20 Tom Tromey <tromey@redhat.com>
2750 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
2751 (ada_varobj_ops): Mark "extern".
2753 2014-02-20 Tom Tromey <tromey@redhat.com>
2755 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
2757 2014-02-20 Doug Evans <xdje42@gmail.com>
2759 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
2760 All callers updated.
2761 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
2762 All callers updated.
2763 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
2764 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
2766 2014-02-20 lin zuojian <manjian2006@gmail.com>
2767 Joel Brobecker <brobecker@adacore.com>
2768 Doug Evans <xdje42@gmail.com>
2771 * dwarf2read.c (struct die_info): New member in_process.
2772 (reset_die_in_process): New function.
2773 (process_die): Set it at the start, reset when returning.
2774 (inherit_abstract_dies): Only call process_die if origin_child_die
2775 not already being processed.
2777 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2779 * windows-nat.c (handle_unload_dll): Add function documentation.
2780 (do_initial_windows_stuff): Add comment explaining why we wait
2781 until after inferior initialization has finished before
2782 processing all DLLs.
2784 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2786 * windows-nat.c (get_module_name): Delete.
2787 (windows_get_exec_module_filename): New function, mostly
2788 inspired from get_module_name.
2789 (windows_pid_to_exec_file): Replace call to get_module_name
2790 by call to windows_get_exec_module_filename.
2792 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2794 * windows-nat.c (handle_load_dll): Rewrite this function's
2795 introductory comment. Remove code using get_module_name
2796 to get the DLL's name.
2798 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2800 * windows-nat.c (get_windows_debug_event): Ignore
2801 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
2802 if windows_initialization_done == 0.
2803 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
2804 Adjust implementation to always load all DLLs.
2805 (do_initial_windows_stuff): Replace call to
2806 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
2808 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2810 * windows-nat.c (_initialize_windows_nat): Deprecate the
2811 "dll-symbols" command. Turn the "add-shared-symbol-files"
2812 and "assf" aliases into commands, and deprecate them as well.
2813 * NEWS: Add entry explaining that "dll-symbols" and its two
2814 aliases are now deprecated.
2816 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2818 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
2819 new-line in debug string. Remove trailing spaces.
2821 2014-02-19 Stan Shebs <stan@codesourcery.com>
2823 * darwin-nat.c (darwin_xfer_partial): Fix return type.
2825 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
2827 * NEWS: Add entry for the new feature
2828 * python/py-value.c (valpy_binop): Call value_x_binop for struct
2831 2014-02-19 Stan Shebs <stan@codesourcery.com>
2833 * MAINTAINERS: List Yao Qi as nios2 maintainer.
2835 2014-02-19 Pedro Alves <palves@redhat.com>
2837 * common/ptid.h (struct ptid): Mention that process_stratum
2838 targets should prefer ptid.lwp.
2840 2014-02-19 Pedro Alves <palves@redhat.com>
2842 * remote.c (remote_thread_alive, write_ptid, read_ptid)
2843 (read_ptid, remote_newthread_step, remote_threads_extra_info)
2844 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
2845 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
2846 store remote thread ids rather than ptid.tid.
2847 (_initialize_remote): Adjust.
2849 2014-02-19 Tom Tromey <tromey@redhat.com>
2851 * target.c (target_get_unwinder): Rewrite.
2852 (target_get_tailcall_unwinder): Rewrite.
2853 * record-btrace.c (record_btrace_to_get_unwinder): New function.
2854 (record_btrace_to_get_tailcall_unwinder): New function.
2855 (init_record_btrace_ops): Update.
2856 * target.h (struct target_ops) <to_get_unwinder,
2857 to_get_tailcall_unwinder>: Now function pointers. Use
2858 TARGET_DEFAULT_RETURN.
2860 2014-02-19 Tom Tromey <tromey@redhat.com>
2862 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
2864 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
2866 2014-02-19 Tom Tromey <tromey@redhat.com>
2868 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
2870 * target-delegates.c: Rebuild.
2871 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
2872 TARGET_DEFAULT_FUNC.
2873 * target.c (default_target_decr_pc_after_break): Rename from
2874 forward_target_decr_pc_after_break. Simplify.
2875 (target_decr_pc_after_break): Rely on delegation.
2877 2014-02-19 Tom Tromey <tromey@redhat.com>
2879 * target.c (update_current_target): Do not INHERIT to_doc or
2880 to_magic. Do not de_fault to_open or to_close.
2882 2014-02-19 Tom Tromey <tromey@redhat.com>
2884 * gcore.h (objfile_find_memory_regions): Declare.
2885 * gcore.c (objfile_find_memory_regions): No longer static. Add
2887 (_initialize_gcore): Don't call exec_set_find_memory_regions.
2888 * exec.c: Include gcore.h.
2889 (exec_set_find_memory_regions): Remove.
2890 (exec_find_memory_regions): Remove.
2891 (exec_do_find_memory_regions): Remove.
2892 (init_exec_ops): Update.
2893 * defs.h (exec_set_find_memory_regions): Remove.
2895 2014-02-19 Tom Tromey <tromey@redhat.com>
2897 * target-delegates.c: Rebuild.
2898 * target.h (struct target_ops) <to_extra_thread_info,
2899 to_thread_name, to_pid_to_exec_file, to_get_section_table,
2900 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
2901 not 0, in TARGET_DEFAULT_RETURN.
2903 2014-02-19 Tom Tromey <tromey@redhat.com>
2905 * target.c (complete_target_initialization): Remove casts. Use
2906 return_zero_has_execution.
2907 (return_zero): Add "ignore" argument.
2908 (return_zero_has_execution): New function.
2909 (init_dummy_target): Remove casts. Use
2910 return_zero_has_execution.
2912 2014-02-19 Tom Tromey <tromey@redhat.com>
2914 * target.c (update_current_target): Update comments. Do not
2917 2014-02-19 Tom Tromey <tromey@redhat.com>
2919 * arm-linux-nat.c (arm_linux_read_description): Delegate when
2921 * corelow.c (core_read_description): Delegate when needed.
2922 * remote.c (remote_read_description): Delegate when needed.
2923 * target-delegates.c: Rebuild.
2924 * target.c (target_read_description): Rewrite.
2925 * target.h (struct target_ops) <to_read_description>: Update
2926 comment. Use TARGET_DEFAULT_RETURN.
2928 2014-02-19 Tom Tromey <tromey@redhat.com>
2930 * target-delegates.c: Rebuild.
2931 * target.c (update_current_target): Don't inherit or default
2933 (find_default_run_target): Check against delegate_can_run.
2934 * target.h (struct target_ops) <to_can_run>: Use
2935 TARGET_DEFAULT_RETURN.
2937 2014-02-19 Tom Tromey <tromey@redhat.com>
2939 * target-delegates.c: Rebuild.
2940 * target.c (target_disconnect): Unconditionally delegate.
2941 * target.h (struct target_ops) <to_disconnect>: Use
2942 TARGET_DEFAULT_NORETURN.
2944 2014-02-19 Tom Tromey <tromey@redhat.com>
2946 * record.c (record_stop): Unconditionally delegate.
2947 * target-delegates.c: Rebuild.
2948 * target.c (target_stop_recording): Unconditionally delegate.
2949 * target.h (struct target_ops) <to_stop_recording>: Use
2950 TARGET_DEFAULT_IGNORE.
2952 2014-02-19 Tom Tromey <tromey@redhat.com>
2954 * target-delegates.c: Rebuild.
2955 * target.c (target_enable_btrace): Unconditionally delegate.
2956 * target.h (struct target_ops) <to_enable_btrace>: Use
2957 TARGET_DEFAULT_NORETURN.
2959 2014-02-19 Tom Tromey <tromey@redhat.com>
2961 * target-delegates.c: Rebuild.
2962 * target.c (target_read_btrace): Unconditionally delegate.
2963 * target.h (struct target_ops) <to_read_btrace>: Use
2964 TARGET_DEFAULT_NORETURN.
2966 2014-02-19 Tom Tromey <tromey@redhat.com>
2968 * target-delegates.c: Rebuild.
2969 * target.c (target_teardown_btrace): Unconditionally delegate.
2970 * target.h (struct target_ops) <to_teardown_btrace>: Use
2971 TARGET_DEFAULT_NORETURN.
2973 2014-02-19 Tom Tromey <tromey@redhat.com>
2975 * target-delegates.c: Rebuild.
2976 * target.c (target_disable_btrace): Unconditionally delegate.
2977 * target.h (struct target_ops) <to_disable_btrace>: Use
2978 TARGET_DEFAULT_NORETURN.
2980 2014-02-19 Tom Tromey <tromey@redhat.com>
2982 * target-delegates.c: Rebuild.
2983 * target.c (default_search_memory): New function.
2984 (simple_search_memory): Update comment.
2985 (target_search_memory): Unconditionally delegate.
2986 * target.h (struct target_ops) <to_search_memory>: Use
2987 TARGET_DEFAULT_FUNC.
2989 2014-02-19 Tom Tromey <tromey@redhat.com>
2991 * auxv.c (default_auxv_parse): No longer static.
2992 (target_auxv_parse): Unconditionally delegate.
2993 * auxv.h (default_auxv_parse): Declare.
2994 * target-delegates.c: Rebuild.
2995 * target.c: Include auxv.h.
2996 * target.h (struct target_ops) <to_auxv_parse>: Use
2997 TARGET_DEFAULT_FUNC.
2999 2014-02-19 Tom Tromey <tromey@redhat.com>
3001 * target-delegates.c: Rebuild.
3002 * target.c (target_memory_map): Unconditionally delegate.
3003 * target.h (struct target_ops) <to_memory_map>: Use
3004 TARGET_DEFAULT_RETURN.
3006 2014-02-19 Tom Tromey <tromey@redhat.com>
3008 * target-delegates.c: Rebuild.
3009 * target.c (target_thread_alive): Unconditionally delegate.
3010 * target.h (struct target_ops) <to_thread_alive>: Use
3011 TARGET_DEFAULT_RETURN.
3013 2014-02-19 Tom Tromey <tromey@redhat.com>
3015 * target-delegates.c: Rebuild.
3016 * target.c (target_save_record): Unconditionally delegate.
3017 * target.h (struct target_ops) <to_save_record>: Use
3018 TARGET_DEFAULT_NORETURN.
3020 2014-02-19 Tom Tromey <tromey@redhat.com>
3022 * target-delegates.c: Rebuild.
3023 * target.c (target_delete_record): Unconditionally delegate.
3024 * target.h (struct target_ops) <to_delete_record>: Use
3025 TARGET_DEFAULT_NORETURN.
3027 2014-02-19 Tom Tromey <tromey@redhat.com>
3029 * target-delegates.c: Rebuild.
3030 * target.c (target_record_is_replaying): Unconditionally
3032 * target.h (struct target_ops) <to_record_is_replaying>: Use
3033 TARGET_DEFAULT_RETURN.
3035 2014-02-19 Tom Tromey <tromey@redhat.com>
3037 * target-delegates.c: Rebuild.
3038 * target.c (target_goto_record_begin): Unconditionally delegate.
3039 * target.h (struct target_ops) <to_goto_record_begin>: Use
3040 TARGET_DEFAULT_NORETURN.
3042 2014-02-19 Tom Tromey <tromey@redhat.com>
3044 * target-delegates.c: Rebuild.
3045 * target.c (target_goto_record_end): Unconditionally delegate.
3046 * target.h (struct target_ops) <to_goto_record_end>: Use
3047 TARGET_DEFAULT_NORETURN.
3049 2014-02-19 Tom Tromey <tromey@redhat.com>
3051 * target-delegates.c: Rebuild.
3052 * target.c (target_goto_record): Unconditionally delegate.
3053 * target.h (struct target_ops) <to_goto_record>: Use
3054 TARGET_DEFAULT_NORETURN.
3056 2014-02-19 Tom Tromey <tromey@redhat.com>
3058 * target-delegates.c: Rebuild.
3059 * target.c (target_insn_history): Unconditionally delegate.
3060 * target.h (struct target_ops) <to_insn_history>: Use
3061 TARGET_DEFAULT_NORETURN.
3063 2014-02-19 Tom Tromey <tromey@redhat.com>
3065 * target-delegates.c: Rebuild.
3066 * target.c (target_insn_history_from): Unconditionally delegate.
3067 * target.h (struct target_ops) <to_insn_history_from>: Use
3068 TARGET_DEFAULT_NORETURN.
3070 2014-02-19 Tom Tromey <tromey@redhat.com>
3072 * target-delegates.c: Rebuild.
3073 * target.c (target_insn_history_range): Unconditionally delegate.
3074 * target.h (struct target_ops) <to_insn_history_range>: Use
3075 TARGET_DEFAULT_NORETURN.
3077 2014-02-19 Tom Tromey <tromey@redhat.com>
3079 * target-delegates.c: Rebuild.
3080 * target.c (target_call_history): Unconditionally delegate.
3081 * target.h (struct target_ops) <to_call_history>: Use
3082 TARGET_DEFAULT_NORETURN.
3084 2014-02-19 Tom Tromey <tromey@redhat.com>
3086 * target-delegates.c: Rebuild.
3087 * target.c (target_call_history_from): Unconditionally delegate.
3088 * target.h (struct target_ops) <to_call_history_from>: Use
3089 TARGET_DEFAULT_NORETURN.
3091 2014-02-19 Tom Tromey <tromey@redhat.com>
3093 * target-delegates.c: Rebuild.
3094 * target.c (target_call_history_range): Unconditionally delegate.
3095 * target.h (struct target_ops) <to_call_history_range>: Use
3096 TARGET_DEFAULT_NORETURN.
3098 2014-02-19 Tom Tromey <tromey@redhat.com>
3100 * target-delegates.c: Rebuild.
3101 * target.c (target_verify_memory): Unconditionally delegate.
3102 * target.h (struct target_ops) <to_verify_memory>: Use
3103 TARGET_DEFAULT_NORETURN.
3105 2014-02-19 Tom Tromey <tromey@redhat.com>
3107 * target-delegates.c: Rebuild.
3108 * target.c (target_core_of_thread): Unconditionally delegate.
3109 * target.h (struct target_ops) <to_core_of_thread>: Use
3110 TARGET_DEFAULT_RETURN.
3112 2014-02-19 Tom Tromey <tromey@redhat.com>
3114 * target-delegates.c: Rebuild.
3115 * target.c (target_flash_done): Unconditionally delegate.
3116 * target.h (struct target_ops) <to_flash_done>: Use
3117 TARGET_DEFAULT_NORETURN.
3119 2014-02-19 Tom Tromey <tromey@redhat.com>
3121 * target-delegates.c: Rebuild.
3122 * target.c (target_flash_erase): Unconditionally delegate.
3123 * target.h (struct target_ops) <to_flash_erase>: Use
3124 TARGET_DEFAULT_NORETURN.
3126 2014-02-19 Tom Tromey <tromey@redhat.com>
3128 * target-delegates.c: Rebuild.
3129 * target.c (target_get_section_table): Unconditionally delegate.
3130 * target.h (struct target_ops) <to_get_section_table>: Use
3131 TARGET_DEFAULT_RETURN.
3133 2014-02-19 Tom Tromey <tromey@redhat.com>
3135 * target-delegates.c: Rebuild.
3136 * target.c (target_pid_to_str): Unconditionally delegate.
3137 (init_dummy_target): Don't initialize to_pid_to_str.
3138 (default_pid_to_str): Rename from dummy_pid_to_str.
3139 * target.h (struct target_ops) <to_pid_to_str>: Use
3140 TARGET_DEFAULT_FUNC.
3142 2014-02-19 Tom Tromey <tromey@redhat.com>
3144 * target-delegates.c: Rebuild.
3145 * target.c (target_find_new_threads): Unconditionally delegate.
3146 * target.h (struct target_ops) <to_find_new_threads>: Use
3147 TARGET_DEFAULT_RETURN.
3149 2014-02-19 Tom Tromey <tromey@redhat.com>
3151 * target-delegates.c: Rebuild.
3152 * target.c (target_program_signals): Unconditionally delegate.
3153 * target.h (struct target_ops) <to_program_signals>: Use
3154 TARGET_DEFAULT_IGNORE.
3156 2014-02-19 Tom Tromey <tromey@redhat.com>
3158 * target-delegates.c: Rebuild.
3159 * target.c (target_pass_signals): Unconditionally delegate.
3160 * target.h (struct target_ops) <to_pass_signals>: Use
3161 TARGET_DEFAULT_IGNORE.
3163 2014-02-19 Tom Tromey <tromey@redhat.com>
3165 * target-delegates.c: Rebuild.
3166 * target.c (default_mourn_inferior): New function.
3167 (target_mourn_inferior): Unconditionally delegate.
3168 * target.h (struct target_ops) <to_mourn_inferior>: Use
3169 TARGET_DEFAULT_FUNC.
3171 2014-02-19 Tom Tromey <tromey@redhat.com>
3173 * target-delegates.c: Rebuild.
3174 * target.c (default_follow_fork): New function.
3175 (target_follow_fork): Unconditionally delegate.
3176 * target.h (struct target_ops) <to_follow_fork>: Use
3177 TARGET_DEFAULT_FUNC.
3179 2014-02-19 Tom Tromey <tromey@redhat.com>
3181 * target-delegates.c: Rebuild.
3182 * target.c (target_kill): Unconditionally delegate.
3183 * target.h (struct target_ops) <to_kill>: Use
3184 TARGET_DEFAULT_NORETURN.
3186 2014-02-19 Tom Tromey <tromey@redhat.com>
3188 * target-delegates.c: Rebuild.
3189 * target.c (target_masked_watch_num_registers): Unconditionally
3191 * target.h (struct target_ops) <to_masked_watch_num_registers>:
3192 Use TARGET_DEFAULT_RETURN.
3194 2014-02-19 Tom Tromey <tromey@redhat.com>
3196 * target-delegates.c: Rebuild.
3197 * target.c (target_remove_mask_watchpoint): Unconditionally
3199 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
3200 TARGET_DEFAULT_RETURN.
3202 2014-02-19 Tom Tromey <tromey@redhat.com>
3204 * target-delegates.c: Rebuild.
3205 * target.c (target_insert_mask_watchpoint): Unconditionally
3207 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
3208 TARGET_DEFAULT_RETURN.
3210 2014-02-19 Tom Tromey <tromey@redhat.com>
3212 * target-delegates.c: Rebuild.
3213 * target.c (target_ranged_break_num_registers): Unconditionally
3215 * target.h (struct target_ops) <to_ranged_break_num_registers>:
3216 Use TARGET_DEFAULT_RETURN.
3218 2014-02-19 Tom Tromey <tromey@redhat.com>
3220 * target-delegates.c: Rebuild.
3221 * target.c (target_fetch_registers): Unconditionally delegate.
3222 * target.h (struct target_ops) <to_fetch_registers>: Use
3223 TARGET_DEFAULT_NORETURN.
3225 2014-02-19 Tom Tromey <tromey@redhat.com>
3227 * target-delegates.c: Rebuild.
3228 * target.c (update_current_target): Don't inherit or default
3230 * target.h (struct target_ops) <to_stop>: Use
3231 TARGET_DEFAULT_IGNORE.
3233 2014-02-19 Tom Tromey <tromey@redhat.com>
3235 * target-delegates.c: Rebuild.
3236 * target.c (update_current_target): Don't inherit or default
3237 to_can_run_breakpoint_commands.
3238 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
3239 Use TARGET_DEFAULT_RETURN.
3241 2014-02-19 Tom Tromey <tromey@redhat.com>
3243 * target-delegates.c: Rebuild.
3244 * target.c (update_current_target): Don't inherit or default
3245 to_supports_evaluation_of_breakpoint_conditions.
3246 * target.h (struct target_ops)
3247 <to_supports_evaluation_of_breakpoint_conditions>: Use
3248 TARGET_DEFAULT_RETURN.
3250 2014-02-19 Tom Tromey <tromey@redhat.com>
3252 * target-delegates.c: Rebuild.
3253 * target.c (update_current_target): Don't inherit or default
3254 to_augmented_libraries_svr4_read.
3255 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
3256 Use TARGET_DEFAULT_RETURN.
3258 2014-02-19 Tom Tromey <tromey@redhat.com>
3260 * target-delegates.c: Rebuild.
3261 * target.c (update_current_target): Don't inherit or default
3263 * target.h (struct target_ops) <to_can_use_agent>: Use
3264 TARGET_DEFAULT_RETURN.
3266 2014-02-19 Tom Tromey <tromey@redhat.com>
3268 * target-delegates.c: Rebuild.
3269 * target.c (update_current_target): Don't inherit or default
3271 * target.h (struct target_ops) <to_use_agent>: Use
3272 TARGET_DEFAULT_NORETURN.
3274 2014-02-19 Tom Tromey <tromey@redhat.com>
3276 * target-delegates.c: Rebuild.
3277 * target.c (update_current_target): Don't inherit or default
3279 (return_null): Remove.
3280 * target.h (struct target_ops) <to_traceframe_info>: Use
3281 TARGET_DEFAULT_RETURN.
3283 2014-02-19 Tom Tromey <tromey@redhat.com>
3285 * target-delegates.c: Rebuild.
3286 * target.c (update_current_target): Don't inherit or default
3287 to_static_tracepoint_markers_by_strid.
3288 * target.h (struct target_ops)
3289 <to_static_tracepoint_markers_by_strid>: Use
3290 TARGET_DEFAULT_NORETURN.
3292 2014-02-19 Tom Tromey <tromey@redhat.com>
3294 * target-delegates.c: Rebuild.
3295 * target.c (update_current_target): Don't inherit or default
3296 to_static_tracepoint_marker_at.
3297 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
3298 Use TARGET_DEFAULT_RETURN.
3300 2014-02-19 Tom Tromey <tromey@redhat.com>
3302 * target-delegates.c: Rebuild.
3303 * target.c (update_current_target): Don't inherit or default
3305 * target.h (struct target_ops) <to_set_permissions>: Use
3306 TARGET_DEFAULT_IGNORE.
3308 2014-02-19 Tom Tromey <tromey@redhat.com>
3310 * target-delegates.c: Rebuild.
3311 * target.c (update_current_target): Don't inherit or default
3313 * target.h (struct target_ops) <to_get_tib_address>: Use
3314 TARGET_DEFAULT_NORETURN.
3316 2014-02-19 Tom Tromey <tromey@redhat.com>
3318 * target-delegates.c: Rebuild.
3319 * target.c (update_current_target): Don't inherit or default
3321 * target.h (struct target_ops) <to_set_trace_notes>: Use
3322 TARGET_DEFAULT_RETURN.
3324 2014-02-19 Tom Tromey <tromey@redhat.com>
3326 * target-delegates.c: Rebuild.
3327 * target.c (update_current_target): Don't initialize
3328 to_set_trace_buffer_size.
3329 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
3330 TARGET_DEFAULT_IGNORE.
3332 2014-02-19 Tom Tromey <tromey@redhat.com>
3334 * target-delegates.c: Rebuild.
3335 * target.c (update_current_target): Don't inherit or default
3336 to_set_circular_trace_buffer.
3337 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
3338 TARGET_DEFAULT_IGNORE.
3340 2014-02-19 Tom Tromey <tromey@redhat.com>
3342 * target-delegates.c: Rebuild.
3343 * target.c (update_current_target): Don't inherit or default
3344 to_set_disconnected_tracing.
3345 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
3346 TARGET_DEFAULT_IGNORE.
3348 2014-02-19 Tom Tromey <tromey@redhat.com>
3350 * target-delegates.c: Rebuild.
3351 * target.c (update_current_target): Don't inherit or default
3352 to_get_min_fast_tracepoint_insn_len.
3353 (return_minus_one): Remove.
3354 * target.h (struct target_ops)
3355 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
3357 2014-02-19 Tom Tromey <tromey@redhat.com>
3359 * target-delegates.c: Rebuild.
3360 * target.c (update_current_target): Don't inherit or default
3361 to_get_raw_trace_data.
3362 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
3363 TARGET_DEFAULT_NORETURN.
3365 2014-02-19 Tom Tromey <tromey@redhat.com>
3367 * target-delegates.c: Rebuild.
3368 * target.c (update_current_target): Don't inherit or default
3369 to_upload_trace_state_variables.
3370 * target.h (struct target_ops) <to_upload_trace_state_variables>:
3371 Use TARGET_DEFAULT_RETURN.
3373 2014-02-19 Tom Tromey <tromey@redhat.com>
3375 * target-delegates.c: Rebuild.
3376 * target.c (update_current_target): Don't inherit or default
3377 to_upload_tracepoints.
3378 * target.h (struct target_ops) <to_upload_tracepoints>: Use
3379 TARGET_DEFAULT_RETURN.
3381 2014-02-19 Tom Tromey <tromey@redhat.com>
3383 * target-delegates.c: Rebuild.
3384 * target.c (update_current_target): Don't inherit or default
3386 * target.h (struct target_ops) <to_save_trace_data>: Use
3387 TARGET_DEFAULT_NORETURN.
3389 2014-02-19 Tom Tromey <tromey@redhat.com>
3391 * target-delegates.c: Rebuild.
3392 * target.c (update_current_target): Don't inherit or default
3393 to_get_trace_state_variable_value.
3394 * target.h (struct target_ops)
3395 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
3397 2014-02-19 Tom Tromey <tromey@redhat.com>
3399 * target-delegates.c: Rebuild.
3400 * target.c (update_current_target): Don't inherit or default
3402 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
3404 2014-02-19 Tom Tromey <tromey@redhat.com>
3406 * target-delegates.c: Rebuild.
3407 * target.c (update_current_target): Don't inherit or default
3409 * target.h (struct target_ops) <to_trace_stop>: Use
3410 TARGET_DEFAULT_NORETURN.
3412 2014-02-19 Tom Tromey <tromey@redhat.com>
3414 * target-delegates.c: Rebuild.
3415 * target.c (update_current_target): Don't inherit or default
3416 to_get_tracepoint_status.
3417 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
3418 TARGET_DEFAULT_NORETURN.
3420 2014-02-19 Tom Tromey <tromey@redhat.com>
3422 * target-delegates.c: Rebuild.
3423 * target.c (update_current_target): Don't inherit or default
3424 to_get_trace_status.
3425 * target.h (struct target_ops) <to_get_trace_status>: Use
3426 TARGET_DEFAULT_RETURN.
3428 2014-02-19 Tom Tromey <tromey@redhat.com>
3430 * target-delegates.c: Rebuild.
3431 * target.c (update_current_target): Don't inherit or default
3433 * target.h (struct target_ops) <to_trace_start>: Use
3434 TARGET_DEFAULT_NORETURN.
3436 2014-02-19 Tom Tromey <tromey@redhat.com>
3438 * target-delegates.c: Rebuild.
3439 * target.c (update_current_target): Don't inherit or default
3440 to_trace_set_readonly_regions.
3441 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
3442 Use TARGET_DEFAULT_NORETURN.
3444 2014-02-19 Tom Tromey <tromey@redhat.com>
3446 * target-delegates.c: Rebuild.
3447 * target.c (update_current_target): Don't inherit or default
3448 to_disable_tracepoint.
3449 * target.h (struct target_ops) <to_disable_tracepoint>: Use
3450 TARGET_DEFAULT_NORETURN.
3452 2014-02-19 Tom Tromey <tromey@redhat.com>
3454 * target-delegates.c: Rebuild.
3455 * target.c (update_current_target): Don't inherit or default
3456 to_enable_tracepoint.
3457 * target.h (struct target_ops) <to_enable_tracepoint>: Use
3458 TARGET_DEFAULT_NORETURN.
3460 2014-02-19 Tom Tromey <tromey@redhat.com>
3462 * target-delegates.c: Rebuild.
3463 * target.c (update_current_target): Don't inherit or default
3464 to_download_trace_state_variable.
3465 * target.h (struct target_ops) <to_download_trace_state_variable>:
3466 Use TARGET_DEFAULT_NORETURN.
3468 2014-02-19 Tom Tromey <tromey@redhat.com>
3470 * target-delegates.c: Rebuild.
3471 * target.c (update_current_target): Don't inherit or default
3472 to_can_download_tracepoint.
3473 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
3474 TARGET_DEFAULT_RETURN.
3476 2014-02-19 Tom Tromey <tromey@redhat.com>
3478 * target-delegates.c: Rebuild.
3479 * target.c (update_current_target): Don't inherit or default
3480 to_download_tracepoint.
3481 * target.h (struct target_ops) <to_download_tracepoint>: Use
3482 TARGET_DEFAULT_NORETURN.
3484 2014-02-19 Tom Tromey <tromey@redhat.com>
3486 * target-delegates.c: Rebuild.
3487 * target.c (update_current_target): Don't inherit or default
3489 * target.h (struct target_ops) <to_trace_init>: Use
3490 TARGET_DEFAULT_RETURN.
3492 2014-02-19 Tom Tromey <tromey@redhat.com>
3494 * target-delegates.c: Rebuild.
3495 * target.c (update_current_target): Don't inherit or default
3496 to_supports_string_tracing.
3497 * target.h (struct target_ops) <to_supports_string_tracing>: Use
3498 TARGET_DEFAULT_RETURN.
3500 2014-02-19 Tom Tromey <tromey@redhat.com>
3502 * target-delegates.c: Rebuild.
3503 * target.c (update_current_target): Don't inherit or default
3504 to_supports_enable_disable_tracepoint.
3505 * target.h (struct target_ops)
3506 <to_supports_enable_disable_tracepoint>: Use
3507 TARGET_DEFAULT_RETURN.
3509 2014-02-19 Tom Tromey <tromey@redhat.com>
3511 * target-delegates.c: Rebuild.
3512 * target.c (update_current_target): Don't inherit or default
3513 to_supports_multi_process.
3514 * target.h (struct target_ops) <to_supports_multi_process>: Use
3515 TARGET_DEFAULT_RETURN.
3517 2014-02-19 Tom Tromey <tromey@redhat.com>
3519 * target-delegates.c: Rebuild.
3520 * target.c (update_current_target): Don't inherit or default
3521 to_get_ada_task_ptid.
3522 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
3523 TARGET_DEFAULT_FUNC.
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_thread_architecture.
3530 * target.h (struct target_ops) <to_thread_architecture>: Use
3531 TARGET_DEFAULT_FUNC.
3533 2014-02-19 Tom Tromey <tromey@redhat.com>
3535 * target-delegates.c: Rebuild.
3536 * target.c (update_current_target): Don't inherit or default
3537 to_execution_direction.
3538 * target.h (struct target_ops) <to_execution_direction>: Use
3539 TARGET_DEFAULT_FUNC.
3541 2014-02-19 Tom Tromey <tromey@redhat.com>
3543 * target-delegates.c: Rebuild.
3544 * target.c (update_current_target): Don't inherit or default
3545 to_can_execute_reverse.
3546 * target.h (struct target_ops) <to_can_execute_reverse>: Use
3547 TARGET_DEFAULT_RETURN.
3548 (target_can_execute_reverse): Unconditionally delegate.
3550 2014-02-19 Tom Tromey <tromey@redhat.com>
3552 * target-delegates.c: Rebuild.
3553 * target.c (update_current_target): Don't inherit or default
3555 (dummy_goto_bookmark): Remove.
3556 (init_dummy_target): Don't inherit or default to_goto_bookmark.
3557 * target.h (struct target_ops) <to_goto_bookmark>: Use
3558 TARGET_DEFAULT_NORETURN.
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 (dummy_get_bookmark): Remove.
3566 (init_dummy_target): Don't inherit or default to_get_bookmark.
3567 * target.h (struct target_ops) <to_get_bookmark>: Use
3568 TARGET_DEFAULT_NORETURN
3570 2014-02-19 Tom Tromey <tromey@redhat.com>
3572 * target-delegates.c: Rebuild.
3573 * target.c (update_current_target): Don't inherit or default
3574 to_make_corefile_notes.
3575 (init_dummy_target): Don't initialize to_make_corefile_notes.
3576 * target.h (struct target_ops) <to_make_corefile_notes>: Use
3577 TARGET_DEFAULT_FUNC.
3579 2014-02-19 Tom Tromey <tromey@redhat.com>
3581 * target-delegates.c: Rebuild.
3582 * target.c (update_current_target): Don't inherit or default
3583 to_find_memory_regions.
3584 (init_dummy_target): Don't initialize to_find_memory_regions.
3585 * target.h (struct target_ops) <to_find_memory_regions>: Use
3586 TARGET_DEFAULT_FUNC.
3588 2014-02-19 Tom Tromey <tromey@redhat.com>
3590 * target-delegates.c: Rebuild.
3591 * target.c (update_current_target): Don't inherit or default
3593 * target.h (struct target_ops) <to_log_command>: Use
3594 TARGET_DEFAULT_IGNORE.
3595 (target_log_command): Unconditionally delegate.
3597 2014-02-19 Tom Tromey <tromey@redhat.com>
3599 * target-delegates.c: Rebuild.
3600 * target.c (update_current_target): Don't inherit or default
3601 to_pid_to_exec_file.
3602 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
3603 TARGET_DEFAULT_RETURN.
3605 2014-02-19 Tom Tromey <tromey@redhat.com>
3607 * target-delegates.c: Rebuild.
3608 * target.c (update_current_target): Don't inherit or default
3610 (target_thread_name): Unconditionally delegate.
3611 * target.h (struct target_ops) <to_thread_name>: Use
3612 TARGET_DEFAULT_RETURN.
3614 2014-02-19 Tom Tromey <tromey@redhat.com>
3616 * target-delegates.c: Rebuild.
3617 * target.c (update_current_target): Don't inherit or default
3618 to_extra_thread_info.
3619 * target.h (struct target_ops) <to_extra_thread_info>: Use
3620 TARGET_DEFAULT_RETURN.
3622 2014-02-19 Tom Tromey <tromey@redhat.com>
3624 * target-delegates.c: Rebuild.
3625 * target.c (update_current_target): Don't inherit or default
3627 * target.h (struct target_ops) <to_has_exited>: Use
3628 TARGET_DEFAULT_RETURN..
3630 2014-02-19 Tom Tromey <tromey@redhat.com>
3632 * target-delegates.c: Rebuild.
3633 * target.c (update_current_target): Don't inherit or default
3634 to_set_syscall_catchpoint.
3635 (return_one): Remove.
3636 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
3637 TARGET_DEFAULT_RETURN.
3639 2014-02-19 Tom Tromey <tromey@redhat.com>
3641 * target-delegates.c: Rebuild.
3642 * target.c (update_current_target): Don't inherit or default
3643 to_insert_exec_catchpoint.
3644 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
3645 TARGET_DEFAULT_RETURN.
3647 2014-01-08 Tom Tromey <tromey@redhat.com>
3649 * target-delegates.c: Rebuild.
3650 * target.c (update_current_target): Don't inherit or default
3651 to_insert_exec_catchpoint.
3652 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
3653 TARGET_DEFAULT_RETURN.
3655 2014-02-19 Tom Tromey <tromey@redhat.com>
3657 * target-delegates.c: Rebuild.
3658 * target.c (update_current_target): Don't inherit or default
3659 to_remove_vfork_catchpoint.
3660 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
3661 TARGET_DEFAULT_RETURN.
3663 2014-02-19 Tom Tromey <tromey@redhat.com>
3665 * target-delegates.c: Rebuild.
3666 * target.c (update_current_target): Don't inherit or default
3667 to_insert_vfork_catchpoint.
3668 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
3669 TARGET_DEFAULT_RETURN.
3671 2014-02-19 Tom Tromey <tromey@redhat.com>
3673 * target-delegates.c: Rebuild.
3674 * target.c (update_current_target): Don't inherit or default
3675 to_remove_fork_catchpoint.
3676 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
3677 TARGET_DEFAULT_RETURN.
3679 2014-02-19 Tom Tromey <tromey@redhat.com>
3681 * target-delegates.c: Rebuild.
3682 * target.c (update_current_target): Don't inherit or default
3683 to_insert_fork_catchpoint.
3684 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
3685 TARGET_DEFAULT_RETURN.
3687 2014-02-19 Tom Tromey <tromey@redhat.com>
3689 * target-delegates.c: Rebuild.
3690 * target.c (update_current_target): Don't inherit or default
3691 to_post_startup_inferior.
3692 * target.h (struct target_ops) <to_post_startup_inferior>: Use
3693 TARGET_DEFAULT_IGNORE.
3695 2014-02-19 Tom Tromey <tromey@redhat.com>
3697 * target-delegates.c: Rebuild.
3698 * target.c (update_current_target): Don't inherit or default
3700 * target.h (struct target_ops) <to_load>: Use
3701 TARGET_DEFAULT_NORETURN.
3703 2014-02-19 Tom Tromey <tromey@redhat.com>
3705 * target-delegates.c: Rebuild.
3706 * target.c (update_current_target): Don't inherit or default
3708 * target.h (struct target_ops) <to_terminal_info>: Use
3709 TARGET_DEFAULT_FUNC.
3711 2014-02-19 Tom Tromey <tromey@redhat.com>
3713 * target-delegates.c: Rebuild.
3714 * target.c (update_current_target): Don't inherit or default
3715 to_terminal_save_ours.
3716 * target.h (struct target_ops) <to_terminal_save_ours>: Use
3717 TARGET_DEFAULT_IGNORE.
3719 2014-02-19 Tom Tromey <tromey@redhat.com>
3721 * target-delegates.c: Rebuild.
3722 * target.c (update_current_target): Don't inherit or default
3724 * target.h (struct target_ops) <to_terminal_ours>: Use
3725 TARGET_DEFAULT_IGNORE.
3727 2014-02-19 Tom Tromey <tromey@redhat.com>
3729 * target-delegates.c: Rebuild.
3730 * target.c (update_current_target): Don't inherit or default
3731 to_terminal_ours_for_output.
3732 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
3733 TARGET_DEFAULT_IGNORE.
3735 2014-02-19 Tom Tromey <tromey@redhat.com>
3737 * target-delegates.c: Rebuild.
3738 * target.c (update_current_target): Don't inherit or default
3739 to_terminal_inferior.
3740 * target.h (struct target_ops) <to_terminal_inferior>: Use
3741 TARGET_DEFAULT_IGNORE.
3743 2014-02-19 Tom Tromey <tromey@redhat.com>
3745 * target-delegates.c: Rebuild.
3746 * target.c (update_current_target): Don't inherit or default
3748 * target.h (struct target_ops) <to_terminal_init>: Use
3749 TARGET_DEFAULT_IGNORE.
3751 2014-02-19 Tom Tromey <tromey@redhat.com>
3753 * target-delegates.c: Rebuild.
3754 * target.c (update_current_target): Don't inherit or default
3755 to_can_accel_watchpoint_condition.
3756 * target.h (struct target_ops)
3757 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
3759 2014-02-19 Tom Tromey <tromey@redhat.com>
3761 * target-delegates.c: Rebuild.
3762 * target.c (update_current_target): Don't inherit or default
3763 to_region_ok_for_hw_watchpoint.
3764 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
3765 Use TARGET_DEFAULT_FUNC.
3767 2014-02-19 Tom Tromey <tromey@redhat.com>
3769 * target-delegates.c: Rebuild.
3770 * target.c (update_current_target): Don't inherit or default
3771 to_watchpoint_addr_within_range.
3772 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
3773 Use TARGET_DEFAULT_FUNC.
3775 2014-02-19 Tom Tromey <tromey@redhat.com>
3777 * target-delegates.c: Rebuild.
3778 * target.c (update_current_target): Don't inherit or default
3779 to_remove_watchpoint.
3780 * target.h (struct target_ops) <to_remove_watchpoint>: Use
3781 TARGET_DEFAULT_NORETURN.
3783 2014-02-19 Tom Tromey <tromey@redhat.com>
3785 * target-delegates.c: Rebuild.
3786 * target.c (update_current_target): Don't inherit or default
3787 to_insert_watchpoint.
3788 * target.h (struct target_ops) <to_insert_watchpoint>: Use
3789 TARGET_DEFAULT_RETURN.
3791 2014-02-19 Tom Tromey <tromey@redhat.com>
3793 * target-delegates.c: Rebuild.
3794 * target.c (update_current_target): Don't inherit or default
3795 to_remove_hw_breakpoint.
3796 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
3797 TARGET_DEFAULT_RETURN.
3799 2014-02-19 Tom Tromey <tromey@redhat.com>
3801 * target-delegates.c: Rebuild.
3802 * target.c (update_current_target): Don't inherit or default
3803 to_insert_hw_breakpoint.
3804 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
3805 TARGET_DEFAULT_RETURN.
3807 2014-02-19 Tom Tromey <tromey@redhat.com>
3809 * target-delegates.c: Rebuild.
3810 * target.c (update_current_target): Don't inherit or default
3811 to_can_use_hw_breakpoint.
3812 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
3813 TARGET_DEFAULT_RETURN.
3815 2014-02-19 Tom Tromey <tromey@redhat.com>
3817 * target-delegates.c: Rebuild.
3818 * target.c (update_current_target): Don't inherit or default
3820 * target.h (struct target_ops) <to_files_info>: Use
3821 TARGET_DEFAULT_IGNORE.
3823 2014-02-19 Tom Tromey <tromey@redhat.com>
3825 * target-delegates.c: Rebuild.
3826 * target.c (update_current_target): Don't inherit or default
3828 * target.h (struct target_ops) <to_store>: Use
3829 TARGET_DEFAULT_NORETURN.
3831 2014-02-19 Tom Tromey <tromey@redhat.com>
3833 * target-delegates.c: Rebuild.
3834 * target.c (update_current_target): Don't inherit or default
3836 * target.h (struct target_ops) <to_post_attach>: Use
3837 TARGET_DEFAULT_IGNORE.
3839 2014-02-19 Tom Tromey <tromey@redhat.com>
3841 * target-delegates.c: Rebuild.
3842 * target.c (update_current_target): Don't inherit or default
3844 (default_rcmd): New function.
3845 (do_monitor_command): Unconditionally delegate.
3846 * target.h (struct target_ops) <to_rmcd>: Use
3847 TARGET_DEFAULT_FUNC.
3849 2014-02-19 Tom Tromey <tromey@redhat.com>
3851 * target-delegates.c: Rebuild.
3852 * target.c (init_dummy_target): Don't initialize to_attach.
3853 (target_attach): Unconditionally delegate.
3854 * target.h (struct target_ops) <to_attach>: Use
3855 TARGET_DEFAULT_FUNC.
3857 2014-02-19 Tom Tromey <tromey@redhat.com>
3859 * target-delegates.c: Rebuild.
3860 * target.c (target_detach): Unconditionally delegate.
3861 (init_dummy_target): Don't initialize to_detach.
3862 * target.h (struct target_ops) <to_detach>: Use
3863 TARGET_DEFAULT_IGNORE.
3865 2014-02-19 Tom Tromey <tromey@redhat.com>
3867 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
3869 (target_augmented_libraries_svr4_read): Add argument.
3870 * target.c (update_current_target): Update.
3871 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
3874 2014-02-19 Tom Tromey <tromey@redhat.com>
3876 * target.h (struct target_ops) <to_call_history_range>: Add
3878 * target.c (target_call_history_range): Add argument.
3879 * record-btrace.c (record_btrace_call_history_range): Add 'self'
3881 (record_btrace_call_history_from): Update.
3883 2014-02-19 Tom Tromey <tromey@redhat.com>
3885 * target.h (struct target_ops) <to_call_history_from>: Add
3887 * target.c (target_call_history_from): Add argument.
3888 * record-btrace.c (record_btrace_call_history_from): Add 'self'
3891 2014-02-19 Tom Tromey <tromey@redhat.com>
3893 * target.h (struct target_ops) <to_call_history>: Add argument.
3894 * target.c (target_call_history): Add argument.
3895 * record-btrace.c (record_btrace_call_history): Add 'self'
3898 2014-02-19 Tom Tromey <tromey@redhat.com>
3900 * target.h (struct target_ops) <to_insn_history_range>: Add
3902 * target.c (target_insn_history_range): Add argument.
3903 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
3905 (record_btrace_insn_history_from): Update.
3907 2014-02-19 Tom Tromey <tromey@redhat.com>
3909 * target.h (struct target_ops) <to_insn_history_from>: Add
3911 * target.c (target_insn_history_from): Add argument.
3912 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
3915 2014-02-19 Tom Tromey <tromey@redhat.com>
3917 * target.h (struct target_ops) <to_insn_history>: Add argument.
3918 * target.c (target_insn_history): Add argument.
3919 * record-btrace.c (record_btrace_insn_history): Add 'self'
3922 2014-02-19 Tom Tromey <tromey@redhat.com>
3924 * target.h (struct target_ops) <to_goto_record>: Add argument.
3925 * target.c (target_goto_record): Add argument.
3926 * record-full.c (record_full_goto): Add 'self' argument.
3927 * record-btrace.c (record_btrace_goto): Add 'self' argument.
3929 2014-02-19 Tom Tromey <tromey@redhat.com>
3931 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
3932 * target.c (target_goto_record_end): Add argument.
3933 * record-full.c (record_full_goto_end): Add 'self' argument.
3934 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
3936 2014-02-19 Tom Tromey <tromey@redhat.com>
3938 * target.h (struct target_ops) <to_goto_record_begin>: Add
3940 * target.c (target_goto_record_begin): Add argument.
3941 * record-full.c (record_full_goto_begin): Add 'self' argument.
3942 * record-btrace.c (record_btrace_goto_begin): Add 'self'
3945 2014-02-19 Tom Tromey <tromey@redhat.com>
3947 * target.h (struct target_ops) <to_record_is_replaying>: Add
3949 * target.c (target_record_is_replaying): Add argument.
3950 * record-full.c (record_full_is_replaying): Add 'self' argument.
3951 * record-btrace.c (record_btrace_is_replaying): Add 'self'
3953 (record_btrace_xfer_partial, record_btrace_store_registers)
3954 (record_btrace_prepare_to_store, record_btrace_resume)
3955 (record_btrace_wait, record_btrace_decr_pc_after_break)
3956 (record_btrace_find_new_threads, record_btrace_thread_alive):
3959 2014-02-19 Tom Tromey <tromey@redhat.com>
3961 * target.h (struct target_ops) <to_delete_record>: Add argument.
3962 * target.c (target_delete_record): Add argument.
3963 * record-full.c (record_full_delete): Add 'self' argument.
3965 2014-02-19 Tom Tromey <tromey@redhat.com>
3967 * target.h (struct target_ops) <to_save_record>: Add argument.
3968 * target.c (target_save_record): Add argument.
3969 * record-full.c (record_full_save): Add 'self' argument.
3970 (record_full_save): Add 'self' argument.
3972 2014-02-19 Tom Tromey <tromey@redhat.com>
3974 * target.h (struct target_ops) <to_info_record>: Add argument.
3975 * target.c (target_info_record): Add argument.
3976 * record.c (info_record_command): Add argument.
3977 * record-full.c (record_full_info): Add 'self' argument.
3978 * record-btrace.c (record_btrace_info): Add 'self' argument.
3980 2014-02-19 Tom Tromey <tromey@redhat.com>
3982 * target.h (struct target_ops) <to_stop_recording>: Add argument.
3983 * target.c (target_stop_recording): Add argument.
3984 * record.c (record_stop): Add argument.
3985 * record-btrace.c (record_btrace_stop_recording): Add 'self'
3988 2014-02-19 Tom Tromey <tromey@redhat.com>
3990 * target.h (struct target_ops) <to_read_btrace>: Add argument.
3991 * target.c (struct target_ops) <to_read_btrace>: Add argument.
3992 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
3994 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
3995 (_initialize_amd64_linux_nat): Use it.
3996 * i386-linux-nat.c (i386_linux_read_btrace): New function.
3997 (_initialize_i386_linux_nat): Use it.
3999 2014-02-19 Tom Tromey <tromey@redhat.com>
4001 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
4002 * target.c (target_teardown_btrace): Add argument.
4003 * remote.c (remote_teardown_btrace): Add 'self' argument.
4004 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
4006 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
4009 2014-02-19 Tom Tromey <tromey@redhat.com>
4011 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
4012 * target.c (target_disable_btrace): Add argument.
4013 * remote.c (remote_disable_btrace): Add 'self' argument.
4014 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
4016 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
4019 2014-02-19 Tom Tromey <tromey@redhat.com>
4021 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
4022 * target.c (target_enable_btrace): Add argument.
4023 * remote.c (remote_enable_btrace): Add 'self' argument.
4024 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
4026 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
4029 2014-02-19 Tom Tromey <tromey@redhat.com>
4031 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
4032 (target_can_use_agent): Add argument.
4033 * target.c (update_current_target): Update.
4034 * remote.c (remote_can_use_agent): Add 'self' argument.
4035 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
4037 2014-02-19 Tom Tromey <tromey@redhat.com>
4039 * target.h (struct target_ops) <to_use_agent>: Add argument.
4040 (target_use_agent): Add argument.
4041 * target.c (update_current_target): Update.
4042 * remote.c (remote_use_agent): Add 'self' argument.
4043 * inf-child.c (inf_child_use_agent): Add 'self' argument.
4045 2014-02-19 Tom Tromey <tromey@redhat.com>
4047 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
4048 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
4049 (target_traceframe_info): Add argument.
4050 * target.c (update_current_target): Update.
4051 * remote.c (remote_traceframe_info): Add 'self' argument.
4052 * ctf.c (ctf_traceframe_info): Add 'self' argument.
4054 2014-02-19 Tom Tromey <tromey@redhat.com>
4056 * target.h (target_static_tracepoint_markers_by_strid): Add
4058 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
4060 * target.c (update_current_target): Update.
4061 * remote.c (struct target_ops)
4062 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
4063 * linux-nat.c (struct target_ops)
4064 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
4066 2014-02-19 Tom Tromey <tromey@redhat.com>
4068 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4070 (target_static_tracepoint_marker_at): Add argument.
4071 * target.c (update_current_target): Update.
4072 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
4075 2014-02-19 Tom Tromey <tromey@redhat.com>
4077 * target.h (struct target_ops) <to_set_permissions>: Add argument.
4078 (target_set_permissions): Add argument.
4079 * target.c (update_current_target): Update.
4080 * remote.c (remote_set_permissions): Add 'self' argument.
4081 (remote_start_remote): Update.
4083 2014-02-19 Tom Tromey <tromey@redhat.com>
4085 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
4086 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
4087 (target_get_tib_address): Add argument.
4088 * target.c (update_current_target): Update.
4089 * remote.c (remote_get_tib_address): Add 'self' argument.
4091 2014-02-19 Tom Tromey <tromey@redhat.com>
4093 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
4094 (target_set_trace_notes): Add argument.
4095 * target.c (update_current_target): Update.
4096 * remote.c (remote_set_trace_notes): Add 'self' argument.
4098 2014-02-19 Tom Tromey <tromey@redhat.com>
4100 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
4102 (target_set_trace_buffer_size): Add argument.
4103 * target.c (update_current_target): Update.
4104 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
4106 2014-02-19 Tom Tromey <tromey@redhat.com>
4108 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
4110 (target_set_circular_trace_buffer): Add argument.
4111 * target.c (update_current_target): Update.
4112 * remote.c (remote_set_circular_trace_buffer): Add 'self'
4115 2014-02-19 Tom Tromey <tromey@redhat.com>
4117 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
4119 (target_set_disconnected_tracing): Add argument.
4120 * target.c (update_current_target): Update.
4121 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
4123 2014-02-19 Tom Tromey <tromey@redhat.com>
4125 * target.h (struct target_ops)
4126 <to_get_min_fast_tracepoint_insn_len>: Add argument.
4127 (target_get_min_fast_tracepoint_insn_len): Add argument.
4128 * target.c (update_current_target): Update.
4129 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
4132 2014-02-19 Tom Tromey <tromey@redhat.com>
4134 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
4136 (target_get_raw_trace_data): Add argument.
4137 * target.c (update_current_target): Update.
4138 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
4140 2014-02-19 Tom Tromey <tromey@redhat.com>
4142 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4144 (target_upload_trace_state_variables): Add argument.
4145 * target.c (update_current_target): Update.
4146 * remote.c (remote_upload_trace_state_variables): Add 'self'
4148 (remote_start_remote): Update.
4150 2014-02-19 Tom Tromey <tromey@redhat.com>
4152 * target.h (struct target_ops) <to_upload_tracepoints>: Add
4154 (target_upload_tracepoints): Add argument.
4155 * target.c (update_current_target): Update.
4156 * remote.c (remote_upload_tracepoints): Add 'self' argument.
4157 (remote_start_remote): Update.
4159 2014-02-19 Tom Tromey <tromey@redhat.com>
4161 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
4162 (target_save_trace_data): Add argument.
4163 * target.c (update_current_target): Update.
4164 * remote.c (remote_save_trace_data): Add 'self' argument.
4166 2014-02-19 Tom Tromey <tromey@redhat.com>
4168 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
4170 * target.h (struct target_ops)
4171 <to_get_trace_state_variable_value>: Add argument.
4172 (target_get_trace_state_variable_value): Add argument.
4173 * target.c (update_current_target): Update.
4174 * remote.c (remote_get_trace_state_variable_value): Add 'self'
4176 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
4178 2014-02-19 Tom Tromey <tromey@redhat.com>
4180 * tracepoint.c (tfile_trace_find): Add 'self' argument.
4181 * target.h (struct target_ops) <to_trace_find>: Add argument.
4182 (target_trace_find): Add argument.
4183 * target.c (update_current_target): Update.
4184 * remote.c (remote_trace_find): Add 'self' argument.
4185 * ctf.c (ctf_trace_find): Add 'self' argument.
4187 2014-02-19 Tom Tromey <tromey@redhat.com>
4189 * target.h (struct target_ops) <to_trace_stop>: Add argument.
4190 (target_trace_stop): Add argument.
4191 * target.c (update_current_target): Update.
4192 * remote.c (remote_trace_stop): Add 'self' argument.
4194 2014-02-19 Tom Tromey <tromey@redhat.com>
4196 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
4197 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
4199 (target_get_tracepoint_status): Add argument.
4200 * target.c (update_current_target): Update.
4201 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
4203 2014-02-19 Tom Tromey <tromey@redhat.com>
4205 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
4206 * target.h (struct target_ops) <to_get_trace_status>: Add
4208 (target_get_trace_status): Add argument.
4209 * target.c (update_current_target): Update.
4210 * remote.c (remote_get_trace_status): Add 'self' argument.
4211 (remote_start_remote, remote_can_download_tracepoint): Update.
4212 * ctf.c (ctf_get_trace_status): Add 'self' argument.
4214 2014-02-19 Tom Tromey <tromey@redhat.com>
4216 * target.h (struct target_ops) <to_trace_start>: Add argument.
4217 (target_trace_start): Add argument.
4218 * target.c (update_current_target): Update.
4219 * remote.c (remote_trace_start): Add 'self' argument.
4221 2014-02-19 Tom Tromey <tromey@redhat.com>
4223 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4225 (target_trace_set_readonly_regions): Add argument.
4226 * target.c (update_current_target): Update.
4227 * remote.c (remote_trace_set_readonly_regions): Add 'self'
4230 2014-02-19 Tom Tromey <tromey@redhat.com>
4232 * target.h (struct target_ops) <to_disable_tracepoint>: Add
4234 (target_disable_tracepoint): Add argument.
4235 * target.c (update_current_target): Update.
4236 * remote.c (remote_disable_tracepoint): Add 'self' argument.
4238 2014-02-19 Tom Tromey <tromey@redhat.com>
4240 * target.h (struct target_ops) <to_enable_tracepoint>: Add
4242 (target_enable_tracepoint): Add argument.
4243 * target.c (update_current_target): Update.
4244 * remote.c (remote_enable_tracepoint): Add 'self' argument.
4246 2014-02-19 Tom Tromey <tromey@redhat.com>
4248 * target.h (struct target_ops) <to_download_trace_state_variable>:
4250 (target_download_trace_state_variable): Add argument.
4251 * target.c (update_current_target): Update.
4252 * remote.c (remote_download_trace_state_variable): Add 'self'
4255 2014-02-19 Tom Tromey <tromey@redhat.com>
4257 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
4259 (target_can_download_tracepoint): Add argument.
4260 * target.c (update_current_target): Update.
4261 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
4263 2014-02-19 Tom Tromey <tromey@redhat.com>
4265 * target.h (struct target_ops) <to_download_tracepoint>: Add
4267 (target_download_tracepoint): Add argument.
4268 * target.c (update_current_target): Update.
4269 * remote.c (remote_download_tracepoint): Add 'self' argument.
4271 2014-02-19 Tom Tromey <tromey@redhat.com>
4273 * target.h (struct target_ops) <to_trace_init>: Add argument.
4274 (target_trace_init): Add argument.
4275 * target.c (update_current_target): Update.
4276 * remote.c (remote_trace_init): Add 'self' argument.
4278 2014-02-19 Tom Tromey <tromey@redhat.com>
4280 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
4281 * target.c (target_fileio_readlink): Add argument.
4282 * remote.c (remote_hostio_readlink): Add 'self' argument.
4283 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
4285 2014-02-19 Tom Tromey <tromey@redhat.com>
4287 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
4288 * target.c (target_fileio_unlink): Add argument.
4289 * remote.c (remote_hostio_unlink): Add 'self' argument.
4290 (remote_file_delete): Update.
4291 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
4293 2014-02-19 Tom Tromey <tromey@redhat.com>
4295 * target.h (struct target_ops) <to_fileio_close>: Add argument.
4296 * target.c (target_fileio_close): Add argument.
4297 * remote.c (remote_hostio_close): Add 'self' argument.
4298 (remote_hostio_close_cleanup): Update.
4299 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
4301 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
4303 2014-02-19 Tom Tromey <tromey@redhat.com>
4305 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
4306 * target.c (target_fileio_pread): Add argument.
4307 * remote.c (remote_hostio_pread): Add 'self' argument.
4308 (remote_bfd_iovec_pread, remote_file_get): Update.
4309 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
4311 2014-02-19 Tom Tromey <tromey@redhat.com>
4313 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
4314 * target.c (target_fileio_pwrite): Add argument.
4315 * remote.c (remote_hostio_pwrite): Add 'self' argument.
4316 (remote_file_put): Update.
4317 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
4319 2014-02-19 Tom Tromey <tromey@redhat.com>
4321 * target.h (struct target_ops) <to_fileio_open>: Add argument.
4322 * target.c (target_fileio_open): Add argument.
4323 * remote.c (remote_hostio_open): Add 'self' argument.
4324 (remote_bfd_iovec_open): Add 'self' argument.
4325 (remote_file_put): Add 'self' argument.
4326 (remote_file_get): Add 'self' argument.
4327 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
4329 2014-02-19 Tom Tromey <tromey@redhat.com>
4331 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4333 (target_can_run_breakpoint_commands): Add argument.
4334 * target.c (update_current_target): Update.
4335 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
4337 (remote_insert_breakpoint): Add 'self' argument.
4338 (remote_insert_hw_breakpoint): Add 'self' argument.
4339 (remote_can_run_breakpoint_commands): Add 'self' argument.
4341 2014-02-19 Tom Tromey <tromey@redhat.com>
4343 * target.h (struct target_ops)
4344 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
4345 (target_supports_evaluation_of_breakpoint_conditions): Add
4347 * target.c (update_current_target): Update.
4348 * remote.c (remote_supports_cond_breakpoints): Add 'self'
4350 (remote_insert_breakpoint): Add 'self' argument.
4351 (remote_insert_hw_breakpoint): Add 'self' argument.
4352 (remote_supports_cond_breakpoints): Add 'self' argument.
4354 2014-02-19 Tom Tromey <tromey@redhat.com>
4356 * target.h (struct target_ops) <to_supports_string_tracing>: Add
4358 (target_supports_string_tracing): Add argument.
4359 * target.c (update_current_target): Update.
4360 * remote.c (remote_supports_string_tracing): Add 'self' argument.
4362 2014-02-19 Tom Tromey <tromey@redhat.com>
4364 * target.h (struct target_ops)
4365 <to_supports_disable_randomization>: Add argument.
4366 * target.c (find_default_supports_disable_randomization): Add
4368 (target_supports_disable_randomization): Add argument.
4369 (find_default_supports_disable_randomization): Add 'self'
4371 * remote.c (extended_remote_supports_disable_randomization): Add
4373 (remote_supports_disable_randomization): Add 'self' argument.
4374 (extended_remote_create_inferior): Update.
4375 * linux-nat.c (linux_nat_supports_disable_randomization): Add
4378 2014-02-19 Tom Tromey <tromey@redhat.com>
4380 * target.h (struct target_ops)
4381 <to_supports_enable_disable_tracepoint>: Add argument.
4382 (target_supports_enable_disable_tracepoint): Add argument.
4383 * target.c (update_current_target): Update.
4384 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
4387 2014-02-19 Tom Tromey <tromey@redhat.com>
4389 * target.h (struct target_ops) <to_supports_multi_process>: Add
4391 (target_supports_multi_process): Add argument.
4392 * target.c (update_current_target): Update.
4393 * remote.c (remote_supports_multi_process): Add 'self' argument.
4394 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
4396 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
4399 2014-02-19 Tom Tromey <tromey@redhat.com>
4401 * target.h (struct target_ops) <to_execution_direction>: Add
4403 (target_execution_direction): Add argument.
4404 * target.c (default_execution_direction): Add 'self' argument.
4405 * record-full.c (record_full_execution_direction): Add 'self'
4408 2014-02-19 Tom Tromey <tromey@redhat.com>
4410 * target.h (struct target_ops) <to_can_execute_reverse>: Add
4412 (target_can_execute_reverse): Add argument.
4413 * remote.c (remote_can_execute_reverse): Add 'self' argument.
4414 * record-full.c (record_full_can_execute_reverse): Add 'self'
4416 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
4419 2014-02-19 Tom Tromey <tromey@redhat.com>
4421 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
4422 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
4424 (target_get_ada_task_ptid): Add argument.
4425 * target.c (update_current_target): Update.
4426 (default_get_ada_task_ptid): Add 'self' argument.
4427 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
4428 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
4429 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
4431 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
4433 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
4435 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
4437 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
4438 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
4441 2014-02-19 Tom Tromey <tromey@redhat.com>
4443 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
4444 (target_goto_bookmark): Add argument.
4445 * target.c (dummy_goto_bookmark): Add 'self' argument.
4446 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
4448 2014-02-19 Tom Tromey <tromey@redhat.com>
4450 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
4451 (target_get_bookmark): Add argument.
4452 * target.c (dummy_get_bookmark): Add 'self' argument.
4453 * record-full.c (record_full_get_bookmark): Add 'self' argument.
4455 2014-02-19 Tom Tromey <tromey@redhat.com>
4457 * target.h (struct target_ops) <to_make_corefile_notes>: Add
4459 (target_make_corefile_notes): Add argument.
4460 * target.c (dummy_make_corefile_notes): Add 'self' argument.
4461 * procfs.c (procfs_make_note_section): Add 'self' argument.
4462 (procfs_make_note_section): Add 'self' argument.
4463 (procfs_make_note_section): Add 'self' argument.
4464 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
4466 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
4467 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
4468 * exec.c (exec_make_note_section): Add 'self' argument.
4469 (exec_make_note_section): Add 'self' argument.
4471 2014-02-19 Tom Tromey <tromey@redhat.com>
4473 * target.h (struct target_ops) <to_find_memory_regions>: Add
4475 (target_find_memory_regions): Add argument.
4476 * target.c (dummy_find_memory_regions): Add 'self' argument.
4477 * procfs.c (proc_find_memory_regions): Add 'self' argument.
4478 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
4479 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
4480 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
4481 * exec. (exec_do_find_memory_regions): New global.
4482 (exec_set_find_memory_regions): Rewrite.
4483 (exec_find_memory_regions): New function.
4484 (init_exec_ops): Use exec_find_memory_regions.
4486 2014-02-19 Tom Tromey <tromey@redhat.com>
4488 * target.h (struct target_ops) <to_supports_non_stop>: Add
4490 * target.c (find_default_supports_non_stop): Add argument.
4491 (target_supports_non_stop): Add argument.
4492 (find_default_supports_non_stop): Add 'self' argument.
4493 * remote.c (remote_supports_non_stop): Add 'self' argument.
4494 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
4496 2014-02-19 Tom Tromey <tromey@redhat.com>
4498 * target.h (struct target_ops) <to_log_command>: Add argument.
4499 (target_log_command): Add argument.
4500 * serial.h (serial_log_command): Add 'self' argument.
4501 * serial.c (serial_log_command): Add 'self' argument.
4503 2014-02-19 Tom Tromey <tromey@redhat.com>
4505 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
4506 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
4508 (target_pid_to_exec_file): Add argument.
4509 * target.c (debug_to_pid_to_exec_file): Add argument.
4510 (update_current_target): Update.
4511 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
4512 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
4513 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
4514 (linux_handle_extended_wait): Update.
4515 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
4516 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
4517 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
4518 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
4520 2014-02-19 Tom Tromey <tromey@redhat.com>
4522 * target.h (struct target_ops) <to_rcmd>: Add argument.
4523 (target_rcmd): Add argument.
4524 * target.c (debug_to_rcmd): Add argument.
4525 (update_current_target, do_monitor_command): Update.
4526 * remote.c (remote_rcmd): Add 'self' argument.
4527 * monitor.c (monitor_rcmd): Add 'self' argument.
4529 2014-02-19 Tom Tromey <tromey@redhat.com>
4531 * windows-nat.c (windows_stop): Add 'self' argument.
4532 * target.h (struct target_ops) <to_stop>: Add argument.
4533 * target.c (target_stop): Add argument.
4534 (debug_to_stop): Add argument.
4535 (update_current_target): Update.
4536 * remote.c (remote_stop): Add 'self' argument.
4537 * remote-sim.c (gdbsim_stop): Add 'self' argument.
4538 (gdbsim_cntrl_c): Update.
4539 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
4540 * procfs.c (procfs_stop): Add 'self' argument.
4541 * nto-procfs.c (procfs_stop): Add 'self' argument.
4542 * monitor.c (monitor_stop): Add 'self' argument.
4543 (monitor_open): Update.
4544 * linux-nat.c (linux_nat_stop): Add argument.
4545 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
4546 * gnu-nat.c (gnu_stop): Add 'self' argument.
4547 * darwin-nat.c (darwin_stop): Add 'self' argument.
4549 2014-02-19 Tom Tromey <tromey@redhat.com>
4551 * target.h (struct target_ops) <to_thread_name>: Add argument.
4552 * target.c (target_thread_name): Add argument.
4553 (update_current_target): Update.
4554 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
4556 2014-02-19 Tom Tromey <tromey@redhat.com>
4558 * target.h (struct target_ops) <to_extra_thread_info>: Add
4560 (target_extra_thread_info): Add argument.
4561 * target.c (update_current_target): Update.
4562 * remote.c (remote_threads_extra_info): Add 'self' argument.
4563 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
4565 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
4566 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
4567 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
4569 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
4571 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
4573 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
4576 2014-02-19 Tom Tromey <tromey@redhat.com>
4578 * target.h (struct target_ops) <to_program_signals>: Add argument.
4579 * target.c (target_program_signals): Add argument.
4580 * remote.c (remote_program_signals): Add 'self' argument.
4582 2014-02-19 Tom Tromey <tromey@redhat.com>
4584 * target.h (struct target_ops) <to_pass_signals>: Add argument.
4585 * target.c (target_pass_signals): Add argument.
4586 * remote.c (remote_pass_signals): Add 'self' argument.
4587 (remote_start_remote): Update.
4588 * procfs.c (procfs_pass_signals): Add 'self' argument.
4589 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
4590 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
4591 (linux_nat_create_inferior, linux_nat_attach): Update.
4593 2014-02-19 Tom Tromey <tromey@redhat.com>
4595 * windows-nat.c (windows_can_run): Add 'self' argument.
4596 * target.h (struct target_ops) <to_can_run>: Add argument.
4597 (target_can_run): Add argument.
4598 * target.c (debug_to_can_run): Add argument.
4599 (update_current_target): Update.
4600 * nto-procfs.c (procfs_can_run): Add 'self' argument.
4601 * inf-child.c (inf_child_can_run): Add 'self' argument.
4602 * go32-nat.c (go32_can_run): Add 'self' argument.
4604 2014-02-19 Tom Tromey <tromey@redhat.com>
4606 * target.h (struct target_ops) <to_has_exited>: Add argument.
4607 (target_has_exited): Add argument.
4608 * target.c (debug_to_has_exited): Add argument.
4609 (update_current_target): Update.
4611 2014-02-19 Tom Tromey <tromey@redhat.com>
4613 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
4615 (target_set_syscall_catchpoint): Add argument.
4616 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
4618 * target.c (update_current_target): Update.
4620 2014-02-19 Tom Tromey <tromey@redhat.com>
4622 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
4624 (target_remove_exec_catchpoint): Add argument.
4625 * target.c (debug_to_remove_exec_catchpoint): Add argument.
4626 (update_current_target): Update.
4627 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
4630 2014-02-19 Tom Tromey <tromey@redhat.com>
4632 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
4634 (target_insert_exec_catchpoint): Add argument.
4635 * target.c (debug_to_insert_exec_catchpoint): Add argument.
4636 (update_current_target): Update.
4637 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
4640 2014-02-19 Tom Tromey <tromey@redhat.com>
4642 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
4644 (target_remove_vfork_catchpoint): Add argument.
4645 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
4646 (update_current_target): Update.
4647 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
4650 2014-02-19 Tom Tromey <tromey@redhat.com>
4652 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
4654 (target_insert_vfork_catchpoint): Add argument.
4655 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
4656 (update_current_target): Update.
4657 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
4660 2014-02-19 Tom Tromey <tromey@redhat.com>
4662 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
4664 (target_remove_fork_catchpoint): Add argument.
4665 * target.c (debug_to_remove_fork_catchpoint): Add argument.
4666 (update_current_target): Update.
4667 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
4670 2014-02-19 Tom Tromey <tromey@redhat.com>
4672 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
4674 (target_insert_fork_catchpoint): Add argument.
4675 * target.c (debug_to_insert_fork_catchpoint): Add argument.
4676 (update_current_target): Update.
4677 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
4680 2014-02-19 Tom Tromey <tromey@redhat.com>
4682 * target.h (struct target_ops) <to_post_startup_inferior>: Add
4684 (target_post_startup_inferior): Add argument.
4685 * target.c (debug_to_post_startup_inferior): Add argument.
4686 (update_current_target): Update.
4687 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
4689 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
4691 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
4693 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
4695 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
4697 (super_post_startup_inferior): Likewise.
4698 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
4700 (super_post_startup_inferior): Likewise.
4701 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
4702 Add 'self' argument.
4703 (super_post_startup_inferior): Likewise.
4705 2014-02-19 Tom Tromey <tromey@redhat.com>
4707 * target.h (struct target_ops) <to_load>: Add argument.
4708 * target.c (target_load): Add argument.
4709 (debug_to_load): Add argument.
4710 (update_current_target): Update.
4711 * remote.c (remote_load): Add 'self' argument.
4712 * remote-sim.c (gdbsim_load): Add 'self' argument.
4713 * remote-mips.c (mips_load): Add 'self' argument.
4714 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
4715 * monitor.c (monitor_load): Add 'self' argument.
4716 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
4718 2014-02-19 Tom Tromey <tromey@redhat.com>
4720 * target.h (struct target_ops) <to_terminal_info>: Add argument.
4721 (target_terminal_info): Add argument.
4722 * target.c (debug_to_terminal_info): Add argument.
4723 (default_terminal_info): Likewise.
4724 * inflow.c (child_terminal_info): Add 'self' argument.
4725 * inferior.h (child_terminal_info): Add 'self' argument.
4726 * go32-nat.c (go32_terminal_info): Add 'self' argument.
4728 2014-02-19 Tom Tromey <tromey@redhat.com>
4730 * target.h (struct target_ops) <to_terminal_save_ours>: Add
4732 (target_terminal_save_ours): Add argument.
4733 * target.c (debug_to_terminal_save_ours): Add argument.
4734 (update_current_target): Update.
4735 * inflow.c (terminal_save_ours): Add 'self' argument.
4736 * inferior.h (terminal_save_ours): Add 'self' argument.
4738 2014-02-19 Tom Tromey <tromey@redhat.com>
4740 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
4741 (target_terminal_ours): Add argument.
4742 * target.c (debug_to_terminal_ours): Add argument.
4743 (update_current_target): Update.
4744 * remote.c (remote_terminal_ours): Add 'self' argument.
4745 (remote_close): Update.
4746 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
4747 * inflow.c (terminal_ours): Add 'self' argument.
4748 * inferior.h (terminal_ours): Add 'self' argument.
4749 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
4751 2014-02-19 Pedro Alves <palves@redhat.com>
4752 Tom Tromey <tromey@redhat.com>
4754 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
4756 (target_terminal_ours_for_output): Add argument.
4757 * target.c (debug_to_terminal_ours_for_output): Add argument.
4758 (update_current_target): Update.
4759 * inflow.c (terminal_ours_for_output): Add 'self' argument.
4760 * inferior.h (terminal_ours_for_output): Add 'self' argument.
4761 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
4763 2014-02-19 Tom Tromey <tromey@redhat.com>
4765 * target.h (struct target_ops) <to_terminal_inferior>: Add
4767 * target.c (target_terminal_inferior): Add argument.
4768 (update_current_target): Update.
4769 * remote.c (remote_terminal_inferior): Add 'self' argument.
4770 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
4771 * inflow.c (terminal_inferior): Add 'self' argument.
4772 * inferior.h (terminal_inferior): Add 'self' argument.
4773 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
4774 (go32_terminal_inferior): Add 'self' argument.
4776 2014-02-19 Tom Tromey <tromey@redhat.com>
4778 * target.h (struct target_ops) <to_terminal_init>: Add argument.
4779 (target_terminal_init): Add argument.
4780 * target.c (debug_to_terminal_init): Add argument.
4781 (update_current_target): Update.
4782 * inflow.c (terminal_init_inferior): Add 'self' argument.
4783 * inferior.h (terminal_init_inferior): Add 'self' argument.
4784 * go32-nat.c (go32_terminal_init): Add 'self' argument.
4785 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
4787 2014-02-19 Tom Tromey <tromey@redhat.com>
4789 * target.h (struct target_ops)
4790 <to_can_accel_watchpoint_condition>: Add argument.
4791 (target_can_accel_watchpoint_condition): Add argument.
4792 * target.c (debug_to_can_accel_watchpoint_condition): Add
4794 (update_current_target): Update.
4795 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
4798 2014-02-19 Tom Tromey <tromey@redhat.com>
4800 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4802 (target_region_ok_for_hw_watchpoint): Add argument.
4803 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
4804 (default_region_ok_for_hw_watchpoint): Add argument.
4805 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
4806 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
4808 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
4810 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
4812 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
4814 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
4816 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
4818 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
4819 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
4821 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
4822 Add 'self' argument.
4824 2014-02-19 Tom Tromey <tromey@redhat.com>
4826 * target.h (struct target_ops) <to_insert_watchpoint>: Add
4828 (target_insert_watchpoint): Add argument.
4829 * target.c (debug_to_insert_watchpoint): Add argument.
4830 (update_current_target): Update.
4831 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
4832 * remote.c (remote_insert_watchpoint): Add 'self' argument.
4833 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
4834 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
4835 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
4836 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
4838 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
4839 (procfs_insert_hw_watchpoint): Add 'self' argument.
4840 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
4842 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
4844 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
4846 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
4847 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
4849 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
4852 2014-02-19 Tom Tromey <tromey@redhat.com>
4854 * target.h (struct target_ops) <to_remove_watchpoint>: Add
4856 (target_remove_watchpoint): Add argument.
4857 * target.c (debug_to_remove_watchpoint): Add argument.
4858 (update_current_target): Update.
4859 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
4860 * remote.c (remote_remove_watchpoint): Add 'self' argument.
4861 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
4862 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
4863 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
4864 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
4866 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
4867 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
4869 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
4871 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
4873 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
4874 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
4876 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
4879 2014-02-19 Tom Tromey <tromey@redhat.com>
4881 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
4883 (target_remove_hw_breakpoint): Add argument.
4884 * target.c (debug_to_remove_hw_breakpoint): Add argument.
4885 (update_current_target): Update.
4886 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
4887 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
4889 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
4890 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
4892 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
4895 2014-02-19 Tom Tromey <tromey@redhat.com>
4897 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
4899 (target_insert_hw_breakpoint): Add argument.
4900 * target.c (debug_to_insert_hw_breakpoint): Add argument.
4901 (update_current_target): Update.
4902 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
4903 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
4905 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
4906 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
4907 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
4909 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
4912 2014-02-19 Tom Tromey <tromey@redhat.com>
4914 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
4916 (target_can_use_hardware_watchpoint): Add argument.
4917 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
4918 (update_current_target): Update.
4919 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
4921 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
4923 * remote.c (remote_check_watch_resources): Add 'self' argument.
4924 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
4925 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
4927 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
4928 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
4930 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
4932 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
4934 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
4936 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
4938 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
4940 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
4941 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
4943 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
4946 2014-02-19 Tom Tromey <tromey@redhat.com>
4948 * target.h (struct target_ops) <to_post_attach>: Add argument.
4949 (target_post_attach): Add argument.
4950 * target.c (debug_to_post_attach): Add argument.
4951 (update_current_target): Update.
4952 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
4953 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
4954 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
4955 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
4956 * inf-child.c (inf_child_post_attach): Add 'self' argument.
4958 2014-02-19 Tom Tromey <tromey@redhat.com>
4960 * windows-nat.c (windows_close): Add 'self' argument.
4961 * tracepoint.c (tfile_close): Add 'self' argument.
4962 * target.h (struct target_ops) <to_close>: Add argument.
4963 * target.c (target_close): Add argument.
4964 (update_current_target): Update.
4965 * remote.c (remote_close): Add 'self' argument.
4966 * remote-sim.c (gdbsim_close): Add 'self' argument.
4967 * remote-mips.c (mips_close): Add 'self' argument.
4968 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
4969 * record-full.c (record_full_close): Add 'self' argument.
4970 * record-btrace.c (record_btrace_close): Add 'self' argument.
4971 * monitor.h (monitor_close): Add 'self' argument.
4972 * monitor.c (monitor_close): Add 'self' argument.
4973 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
4974 * linux-nat.c (linux_nat_close): Add argument.
4975 * go32-nat.c (go32_close): Add 'self' argument.
4976 * exec.c (exec_close_1): Add 'self' argument.
4977 * ctf.c (ctf_close): Add 'self' argument.
4978 * corelow.c (core_close): Add 'self' argument.
4979 (core_close_cleanup): Update.
4980 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
4981 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
4983 2014-02-19 Tom Tromey <tromey@redhat.com>
4985 * remote.c (remote_load): New function.
4986 (init_remote_ops): Use it.
4988 2014-02-19 Tom Tromey <tromey@redhat.com>
4990 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
4992 * common/linux-btrace.h (linux_supports_btrace): Update.
4993 * remote.c (remote_supports_btrace): Add "self" argument.
4994 * target-delegates.c: Rebuild.
4995 * target.c (target_supports_btrace): Remove.
4996 * target.h (struct target_ops) <to_supports_btrace>: Add
4997 target_ops argument.
4998 (target_supports_btrace): New define.
5000 2014-02-19 Tom Tromey <tromey@redhat.com>
5002 * record-full.c (record_full_beneath_to_resume_ops)
5003 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
5004 (record_full_beneath_to_wait)
5005 (record_full_beneath_to_store_registers_ops)
5006 (record_full_beneath_to_store_registers)
5007 (record_full_beneath_to_xfer_partial_ops)
5008 (record_full_beneath_to_xfer_partial)
5009 (record_full_beneath_to_insert_breakpoint_ops)
5010 (record_full_beneath_to_insert_breakpoint)
5011 (record_full_beneath_to_remove_breakpoint_ops)
5012 (record_full_beneath_to_remove_breakpoint)
5013 (record_full_beneath_to_stopped_by_watchpoint)
5014 (record_full_beneath_to_stopped_data_address)
5015 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
5016 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
5017 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
5018 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
5019 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
5020 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
5021 (tmp_to_stopped_data_address, tmp_to_async): Remove.
5022 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
5023 (record_full_resume, record_full_wait_1)
5024 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
5025 (record_full_store_registers, record_full_xfer_partial)
5026 (record_full_insert_breakpoint, record_full_remove_breakpoint)
5027 (record_full_async, record_full_core_xfer_partial): Use target
5029 * target-delegates.c: Rebuild.
5030 * target.c (current_xfer_partial): Remove.
5031 (update_current_target): Do not INHERIT or de_fault
5032 to_insert_breakpoint, to_remove_breakpoint,
5033 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
5034 to_is_async_p, to_async. Do not set to_xfer_partial field.
5035 (default_xfer_partial): Simplify.
5036 (current_xfer_partial): Remove.
5037 (target_wait, target_resume): Simplify.
5038 (find_default_can_async_p, find_default_is_async_p): Update.
5039 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
5040 to_xfer_partial, to_stopped_by_watchpoint,
5041 to_stopped_data_address.
5042 (target_store_registers): Simplify.
5043 (forward_target_remove_breakpoint)
5044 (forward_target_insert_breakpoint): Remove.
5045 (target_remove_breakpoint, target_insert_breakpoint)
5046 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
5047 * target.h (struct target_ops) <to_resume, to_wait,
5048 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
5049 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
5050 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
5052 (forward_target_remove_breakpoint)
5053 (forward_target_insert_breakpoint): Remove.
5054 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
5056 (record_btrace_insert_breakpoint): Delegate directly.
5058 2014-02-19 Tom Tromey <tromey@redhat.com>
5061 * target-delegates.c: New file.
5062 * target.c: Include target-delegates.c.
5063 (init_dummy_target): Call install_dummy_methods.
5064 (complete_target_initialization): Call install_delegators.
5065 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
5066 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
5067 * make-target-delegates: New file.
5069 2014-02-19 Tom Tromey <tromey@redhat.com>
5071 * record.c (find_record_target): Use find_target_at.
5072 * target.c (find_target_at): New function.
5073 * target.h (find_target_at): Declare.
5075 2014-02-19 Tom Tromey <tromey@redhat.com>
5077 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
5079 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
5081 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
5082 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
5084 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
5086 * linux-nat.c (save_sigtrap): Update.
5087 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
5088 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
5089 (linux_nat_close): Update.
5090 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
5092 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
5094 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
5095 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
5096 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
5097 (tmp_to_async): Add 'ops' argument.
5098 (record_full_stopped_by_watchpoint, record_full_async)
5099 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
5101 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
5102 (m32r_stopped_by_watchpoint): Add 'ops' argument.
5103 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
5104 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
5105 (remote_is_async_p, remote_async): Add 'ops' argument.
5106 (remote_stopped_data_address): Update.
5107 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
5108 * target.c (update_current_target)
5109 (find_default_can_async_p, find_default_is_async_p): Update.
5110 (init_dummy_target): Update.
5111 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
5112 * target.h (struct target_ops) <to_stopped_by_watchpoint,
5113 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
5114 (target_can_async_p, target_is_async_p, target_async)
5115 (target_stopped_by_watchpoint): Update.
5117 2014-02-19 Yao Qi <yao@codesourcery.com>
5120 * gdbarch.sh: Remove startup_gdbarch.
5121 * gdbarch.c: Regenerated.
5122 * gdbarch.h: Likewise.
5124 2014-02-17 Kevin Buettner <kevinb@redhat.com>
5126 * rl78-tdep.c (rl78_g10_register_name): New function.
5127 (rl78_return_value): Add g10 support.
5128 (rl78_gdbarch_init): Register rl78_g10_register_name for the
5131 2014-02-17 Doug Evans <xdje42@gmail.com>
5133 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
5134 (SUBDIR_GUILE_SRCS): Ditto.
5135 (scm-gsmob.o): Ditto.
5137 2014-02-17 Yao Qi <yao@codesourcery.com>
5139 * gnu-nat.c (ILL_RPC): Declare defined function.
5141 2014-02-17 Yao Qi <yao@codesourcery.com>
5143 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
5144 mach_msg_type_number_t.
5145 (gnu_write_inferior): Likewise.
5147 2014-02-17 Yao Qi <yao@codesourcery.com>
5149 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
5151 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
5152 (inf_validate_procs, inf_signal): Likewise.
5153 (S_exception_raise_request): Likewise.
5154 (do_mach_notify_dead_name): Likewise.
5155 (steal_exc_port): Likewise.
5156 (gnu_read_inferior): Change 'copy_count''s type to
5157 mach_msg_type_number_t.
5158 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
5161 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
5163 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
5164 flag. Adjust all users; in particular...
5165 (gnu_wait): ..., don't decrement its value in here...
5166 (gnu_create_inferior): ..., and instead set the flag in here,
5167 around the startup_inferior call, and call that one with
5168 START_INFERIOR_TRAPS_EXPECTED.
5170 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
5171 (ILL_RPC): ... new macro.
5172 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
5173 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
5174 (do_mach_notify_send_once, S_proc_setmsgport_reply)
5175 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
5176 functions with ILL_RPC macro.
5177 (S_proc_pid2task_reply, S_proc_task2pid_reply)
5178 (S_proc_task2proc_reply, S_proc_proc2task_reply)
5179 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
5180 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
5181 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
5182 (S_proc_getlogin_reply, S_proc_getsid_reply)
5183 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
5184 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
5185 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
5186 (S_proc_getnports_reply, S_proc_is_important_reply)
5187 (S_proc_get_code_reply): New stub functions, generated with
5190 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
5191 collected the type check structures.
5193 * reply_mig_hack.awk: Don't expect to see the auto keyword.
5195 2014-02-14 Doug Evans <dje@google.com>
5197 * target.c (target_write_partial): Fix result type.
5199 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
5201 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
5202 the proper offsets to access fpregset_t.
5204 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
5206 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
5207 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
5208 * h8300-tdep.c (setmachinelist): Remove global.
5209 * hppa-tdep.c (hppa_sigtramp): Remove global.
5210 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
5211 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
5212 * ravenscar-thread.c (update_target_observer): Remove global.
5213 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
5215 2014-02-12 Tom Tromey <tromey@redhat.com>
5217 * common/rsp-low.c: Update comments.
5218 * common/rsp-low.h: Update comments.
5220 2014-02-12 Tom Tromey <tromey@redhat.com>
5222 * common/rsp-low.c (convert_ascii_to_int): Remove.
5223 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
5225 2014-02-12 Tom Tromey <tromey@redhat.com>
5227 * common/rsp-low.h (unhexify): Don't declare.
5228 * common/rsp-low.c (unhexify): Remove.
5230 2014-02-12 Tom Tromey <tromey@redhat.com>
5232 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
5233 * common/rsp-low.c (convert_int_to_ascii): Remove.
5235 2014-02-12 Tom Tromey <tromey@redhat.com>
5237 * common/rsp-low.h (hexify): Don't declare.
5238 * common/rsp-low.c (hexify): Remove.
5240 2014-02-12 Tom Tromey <tromey@redhat.com>
5242 * common/rsp-low.c (hexify): Never take strlen of argument.
5244 2014-02-12 Tom Tromey <tromey@redhat.com>
5246 * common/rsp-low.c (bin2hex): Never take strlen of argument.
5247 * remote.c (extended_remote_run, remote_rcmd)
5248 (remote_download_trace_state_variable, remote_save_trace_data)
5249 (remote_set_trace_notes): Update.
5250 * tracepoint.c (encode_source_string, tfile_write_status)
5251 (tfile_write_uploaded_tsv): Update.
5253 2014-02-12 Tom Tromey <tromey@redhat.com>
5255 * tracepoint.c: Include rsp-low.h.
5256 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
5257 * remote.c: Include rsp-low.h.
5258 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
5259 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
5260 (remote_unescape_input): Move to common/rsp-low.c.
5261 * common/rsp-low.h: New file.
5262 * common/rsp-low.c: New file.
5263 * Makefile.in (SFILES): Add common/rsp-low.c.
5264 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
5265 (COMMON_OBS): Add rsp-low.o.
5266 (rsp-low.o): New target.
5268 2014-02-12 Tom Tromey <tromey@redhat.com>
5270 * utils.h: Include print-utils.h.
5271 (host_address_to_string, plongest, pulongest, phex, phex_nz)
5272 (int_string, core_addr_to_string, core_addr_to_string_nz)
5273 (hex_string, hex_string_custom): Don't declare.
5274 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
5275 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
5276 (hex_string_custom, int_string, core_addr_to_string)
5277 (core_addr_to_string_nz, host_address_to_string): Move to
5278 common/print-utils.c.
5279 * common/print-utils.h: New file.
5280 * common/print-utils.c: New file
5281 * Makefile.in (SFILES): Add common/print-utils.c.
5282 (HFILES_NO_SRCDIR): Add common/print-utils.h.
5283 (COMMON_OBS): Add print-utils.o.
5284 (print-utils.o): New target.
5286 2014-02-12 Tom Tromey <tromey@redhat.com>
5288 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
5290 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5292 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
5294 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5296 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
5297 if a PT_IO ptrace request returns sucessfully but indicates that 0
5298 bytes were transferred.
5300 2014-02-12 Pedro Alves <palves@redhat.com>
5301 Kevin Buettner <kevinb@redhat.com>
5303 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
5304 TYPE_INSTANCE_FLAG_CODE_SPACE.
5306 2014-02-12 Pedro Alves <palves@redhat.com>
5308 * h8300-tdep.c (pseudo_from_raw_register)
5309 (raw_from_pseudo_register): New functions.
5310 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
5313 2014-02-12 Pedro Alves <palves@redhat.com>
5315 * h8300-tdep.c (h8300_register_sim_regno): New function.
5316 (h8300_gdbarch_init): Install h8300_register_sim_regno as
5317 gdbarch_register_sim_regno hook.
5319 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
5321 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
5323 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
5325 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
5327 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5329 * obsd-tdep.h (obsd_init_abi): New prototype.
5330 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
5331 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
5332 (obsd_init_abi): New functions.
5333 * i386obsd-tdep.c: Include "obsd-tdep.h".
5334 (i386obsd_init_abi): Call obsd_init_abi.
5335 * amd64obsd-tdep.c: Include "obsd-tdep.h".
5336 (amd64obsd_init_abi): Call obsd_init_abi.
5337 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
5338 obsd-tdep.c to gdb_target_obs.
5340 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
5342 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
5343 double float arguments to 16-byte in the argument slots.
5345 2014-02-11 Doug Evans <xdje42@gmail.com>
5347 * configure.ac: Don't crash if pkg-config is not found and guile
5348 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
5350 * configure: Regenerate.
5352 2014-02-11 Yao Qi <yao@codesourcery.com>
5354 * aix-thread.c (aix_thread_xfer_partial): Update comments.
5355 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
5356 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
5357 * gnu-nat.c (gnu_xfer_memory): Likewise.
5358 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
5359 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5360 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5361 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
5363 2014-02-11 Yao Qi <yao@codesourcery.com>
5365 * target.h (enum target_xfer_error): Rename to ...
5366 (enum target_xfer_status): ... it. New. All users updated.
5367 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
5369 (TARGET_XFER_STATUS_ERROR_P): New macro.
5370 (target_xfer_error_to_string): Remove declaration.
5371 (target_xfer_status_to_string): Declare.
5372 (target_xfer_partial_ftype): Adjust it.
5373 (struct target_ops) <to_xfer_partial>: Return
5374 target_xfer_status. Add argument xfered_len. Update
5376 * target.c (target_xfer_error_to_string): Rename to ...
5377 (target_xfer_status_to_string): ... it. New. All callers
5379 (target_read_live_memory): Likewise. Call target_xfer_partial
5380 instead of target_read.
5381 (memory_xfer_live_readonly_partial): Return
5382 target_xfer_status. Add argument xfered_len.
5383 (raw_memory_xfer_partial): Likewise.
5384 (memory_xfer_partial_1): Likewise.
5385 (memory_xfer_partial): Likewise.
5386 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
5387 properly. Update debug message.
5388 (default_xfer_partial, current_xfer_partial): Likewise.
5389 (target_write_partial): Likewise.
5390 (target_read_partial): Likewise. All callers updated.
5391 (read_whatever_is_readable): Likewise.
5392 (target_write_with_progress): Likewise.
5393 (target_read_alloc_1): Likewise.
5395 * aix-thread.c (aix_thread_xfer_partial): Likewise.
5396 * auxv.c (procfs_xfer_auxv): Likewise.
5397 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
5398 * bfd-target.c (target_bfd_xfer_partial): Likewise.
5399 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
5400 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
5401 * corefile.c (read_memory): Adjust.
5402 * corelow.c (core_xfer_partial): Likewise.
5403 * ctf.c (ctf_xfer_partial): Likewise.
5404 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
5406 (darwin_xfer_partial): Likewise.
5407 * exec.c (section_table_xfer_memory_partial): Likewise. All
5409 (exec_xfer_partial): Likewise.
5410 * exec.h (section_table_xfer_memory_partial): Update
5412 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
5414 (gnu_xfer_partial): Likewise.
5415 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
5416 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
5417 (ia64_hpux_xfer_solib_got): Likewise.
5418 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
5419 type of 'partial_len' to ULONGEST.
5420 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
5421 * linux-nat.c (linux_xfer_siginfo ): Likewise.
5422 (linux_nat_xfer_partial): Likewise.
5423 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
5424 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
5425 * monitor.c (monitor_xfer_memory): Likewise.
5426 (monitor_xfer_partial): Likewise.
5427 * procfs.c (procfs_xfer_partial): Likewise.
5428 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5429 * record-full.c (record_full_xfer_partial): Likewise.
5430 (record_full_core_xfer_partial): Likewise.
5431 * remote-sim.c (gdbsim_xfer_memory): Likewise.
5432 (gdbsim_xfer_partial): Likewise.
5433 * remote.c (remote_write_bytes_aux): Likewise. All callers
5435 (remote_write_bytes, remote_read_bytes): Likewise. All
5437 (remote_flash_erase): Likewise. All callers updated.
5438 (remote_write_qxfer): Likewise. All callers updated.
5439 (remote_read_qxfer): Likewise. All callers updated.
5440 (remote_xfer_partial): Likewise.
5441 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5442 (rs6000_xfer_shared_libraries): Likewise.
5443 * sol-thread.c (sol_thread_xfer_partial): Likewise.
5444 (sol_thread_xfer_partial): Likewise.
5445 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5446 (sparc_xfer_partial): Likewise.
5447 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
5449 (spu_xfer_partial): Likewise.
5450 * spu-multiarch.c (spu_xfer_partial): Likewise.
5451 * tracepoint.c (tfile_xfer_partial): Likewise.
5452 * windows-nat.c (windows_xfer_memory): Likewise.
5453 (windows_xfer_shared_libraries): Likewise.
5454 (windows_xfer_partial): Likewise.
5455 * valprint.c: Replace 'target_xfer_error' with
5456 'target_xfer_status' in comments.
5458 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
5460 Checked in by Joel Brobecker <brobecker@adacore.com>.
5461 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
5463 2014-02-11 Joel Brobecker <brobecker@adacore.com>
5465 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
5466 function parameters.
5468 2014-02-10 Will Newton <will.newton@linaro.org>
5470 * elfread.c (elf_rel_plt_read): Look for a .got section if
5471 looking up .got.plt fails.
5472 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
5473 on address passed to elf_gnu_ifunc_record_cache.
5474 (elf_gnu_ifunc_resolve_addr): Likewise.
5475 (elf_gnu_ifunc_resolver_return_stop): Likewise.
5477 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
5479 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
5480 (X_RETTURN): New macro.
5481 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
5483 * sparc64-tdep.c (sparc64_init_abi): Hook
5484 sparc_in_function_epilogue_p.
5486 2014-02-10 Gary Benson <gbenson@redhat.com>
5488 * symfile-debug.c (debug_qf_expand_symtabs_matching):
5489 Rename name_matcher to symbol_matcher.
5491 2014-02-10 Gary Benson <gbenson@redhat.com>
5493 * symfile-debug.c (debug_qf_expand_symtabs_matching):
5494 Use expand_symtabs_file_matcher_ftype and
5495 expand_symtabs_symbol_matcher_ftype.
5497 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5499 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
5500 (struct ada_symbol_cache): New.
5501 (ada_free_symbol_cache): Forward declare.
5502 (struct ada_pspace_data): New.
5503 (ada_pspace_data_handle): New static global.
5504 (get_ada_pspace_data, ada_pspace_data_cleanup)
5505 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
5506 (cache_space, cache): Delete, now folded inside struct
5508 (ada_get_symbol_cache): New function.
5509 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
5511 (_initialize_ada_language): Remove initialization of cache_space.
5512 Move call to observer_attach_inferior_exit up, grouping it
5513 with the other observer registrations inside this function.
5514 Rename command to be more general. Add call to
5515 register_program_space_data_with_cleanup.
5517 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5519 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
5520 ada_new_objfile_observer.
5521 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
5522 (_initialize_tasks): Update uses of ada_new_objfile_observer
5523 and ada_tasks_normal_stop_observer.
5525 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5527 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
5528 returned by the 'Length attribute to integer.
5530 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5532 * ada-lang.c (_initialize_ada_language): Initialize
5533 cache_space obstack.
5535 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5537 * ada-lang.c (HASH_SIZE): New macro.
5538 (struct cache_entry): New type.
5539 (cache_space, cache): New static globals.
5540 (ada_clear_symbol_cache, find_entry): New functions.
5541 (lookup_cached_symbol, cache_symbol): Implement.
5542 (ada_new_objfile_observer, ada_free_objfile_observer): New.
5543 (_initialize_ada_language): Attach ada_new_objfile_observer
5544 and ada_free_objfile_observer.
5546 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5548 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
5549 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
5550 struct block * parameter.
5551 (ada_lookup_symbol_list_worker): Constify local variable "block".
5552 Remove cast which is no longer necessary.
5554 2014-02-10 Doug Evans <xdje42@gmail.com>
5556 Add Guile as an extension language.
5557 * NEWS: Mention Guile scripting.
5558 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
5559 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
5560 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
5561 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
5562 (CLIBS): Add GUILE_LIBS.
5563 (install-guile): New rule.
5564 (guile.o): New rule.
5565 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
5566 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
5567 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
5568 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
5569 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
5570 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
5571 (scm-type.o, scm-utils.o, scm-value.o): New rules.
5572 * configure.ac: New option --with-guile.
5573 * configure: Regenerate.
5574 * config.in: Regenerate.
5575 * auto-load.c: Remove #include "python/python.h". Add #include
5576 "gdb/section-scripts.h".
5577 (source_section_scripts): Handle Guile scripts.
5578 (_initialize_auto_load): Add name of Guile objfile script to
5579 scripts-directory help text.
5580 * breakpoint.c (condition_command): Tweak comment to include Scheme.
5581 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
5582 (struct breakpoint): New member scm_bp_object.
5583 * defs.h (enum command_control_type): New value guile_control.
5584 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
5586 (show_user): Update comment.
5587 (_initialize_cli_cmds): Update help text for "show user". Update help
5588 text for max-user-call-depth.
5589 * cli/cli-script.c: Remove #include "python/python.h". Add #include
5591 (multi_line_command_p): Add guile_control.
5592 (print_command_lines): Handle guile_control.
5593 (execute_control_command, recurse_read_control_structure): Ditto.
5594 (process_next_line): Recognize "guile" commands.
5595 * disasm.c (gdb_disassemble_info): Make non-static.
5596 * disasm.h: #include "dis-asm.h".
5597 (struct gdbarch): Add forward decl.
5598 (gdb_disassemble_info): Declare.
5599 * extension.c: #include "guile/guile.h".
5600 (extension_languages): Add guile.
5601 (get_ext_lang_defn): Handle EXT_LANG_GDB.
5602 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
5603 * gdbtypes.c (get_unsigned_type_max): New function.
5604 (get_signed_type_minmax): New function.
5605 * gdbtypes.h (get_unsigned_type_max): Declare.
5606 (get_signed_type_minmax): Declare.
5607 * guile/README: New file.
5608 * guile/guile-internal.h: New file.
5609 * guile/guile.c: New file.
5610 * guile/guile.h: New file.
5611 * guile/scm-arch.c: New file.
5612 * guile/scm-auto-load.c: New file.
5613 * guile/scm-block.c: New file.
5614 * guile/scm-breakpoint.c: New file.
5615 * guile/scm-disasm.c: New file.
5616 * guile/scm-exception.c: New file.
5617 * guile/scm-frame.c: New file.
5618 * guile/scm-gsmob.c: New file.
5619 * guile/scm-iterator.c: New file.
5620 * guile/scm-lazy-string.c: New file.
5621 * guile/scm-math.c: New file.
5622 * guile/scm-objfile.c: New file.
5623 * guile/scm-ports.c: New file.
5624 * guile/scm-pretty-print.c: New file.
5625 * guile/scm-safe-call.c: New file.
5626 * guile/scm-string.c: New file.
5627 * guile/scm-symbol.c: New file.
5628 * guile/scm-symtab.c: New file.
5629 * guile/scm-type.c: New file.
5630 * guile/scm-utils.c: New file.
5631 * guile/scm-value.c: New file.
5632 * guile/lib/gdb.scm: New file.
5633 * guile/lib/gdb/boot.scm: New file.
5634 * guile/lib/gdb/experimental.scm: New file.
5635 * guile/lib/gdb/init.scm: New file.
5636 * guile/lib/gdb/iterator.scm: New file.
5637 * guile/lib/gdb/printing.scm: New file.
5638 * guile/lib/gdb/types.scm: New file.
5639 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
5640 (VPATH): Add $(GUILE_SRCDIR).
5641 (GUILE_DIR): New variable.
5642 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
5643 (all): Add stamp-guile dependency.
5644 (stamp-guile): New rule.
5645 (clean-guile, install-guile, uninstall-guile): New rules.
5646 (install-only): Add install-guile dependency.
5647 (uninstall): Add uninstall-guile dependency.
5648 (clean): Add clean-guile dependency.
5650 2014-02-09 Doug Evans <xdje42@gmail.com>
5652 Revert this patch (which I approved, mea culpa).
5654 2014-02-08 Mark Kettenis <kettenis@gnu.org>
5656 * Makefile.in (all-lib): Remove.
5657 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
5659 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5661 Fix Python stack corruption.
5662 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
5665 2014-02-08 Mark Kettenis <kettenis@gnu.org>
5667 * Makefile.in (all-lib): Remove.
5668 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
5670 2014-02-07 Doug Evans <dje@google.com>
5672 * extension-priv.h (extension_language_script_ops): Add comment.
5673 (extension_language_ops): Add comment.
5674 (active_ext_lang_state): Fix typo in comment.
5676 2014-02-07 Pedro Alves <palves@redhat.com>
5678 PR breakpoints/16292
5679 * infrun.c (handle_signal_stop) <signal arrives while stepping
5680 over a breakpoint>: Switch back to the stepping thread.
5682 2014-02-07 Yao Qi <yao@codesourcery.com>
5684 * target.c (target_xfer_partial): Return zero if LEN is zero.
5686 2014-02-07 Yao Qi <yao@codesourcery.com>
5688 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
5689 (ld_so_xfer_auxv): Likewise.
5690 * bfd-target.c (target_bfd_xfer_partial): Likewise.
5691 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
5692 * corelow.c (core_xfer_partial): Likewise.
5693 * ctf.c (ctf_xfer_partial): Likewise.
5694 * darwin-nat.c (darwin_read_dyld_info): Likewise.
5695 (darwin_xfer_partial): Likewise.
5696 * exec.c (exec_xfer_partial): Likewise.
5697 * gnu-nat.c (gnu_xfer_partial): Likewise.
5698 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
5699 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
5700 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
5701 * linux-nat.c (linux_xfer_siginfo): Likewise.
5702 (linux_proc_xfer_spu): Likewise.
5703 * procfs.c (procfs_xfer_partial): Likewise.
5704 * record-full.c (record_full_xfer_partial): Likewise.
5705 (record_full_core_xfer_partial): Likewise.
5706 * remote-sim.c (gdbsim_xfer_partial): Likewise.
5707 * remote.c (remote_write_qxfer): Likewise.
5708 (remote_write_qxfer, remote_read_qxfer): Likewise.
5709 (remote_xfer_partial): Likewise.
5710 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5711 (rs6000_xfer_shared_libraries): Likewise.
5712 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5713 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
5714 (spu_xfer_partial): Likewise.
5715 * target.c (memory_xfer_partial_1): Likewise.
5716 * tracepoint.c (tfile_xfer_partial): Likewise.
5717 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
5718 (windows_xfer_partial): Likewise.
5720 2014-02-07 Yao Qi <yao@codesourcery.com>
5722 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
5724 (core_xfer_shared_libraries_aix): Likewise.
5725 * gdbarch.c, gdbarch.h: Regenerated.
5726 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
5727 ULONGEST. Change 'len_avail' type to ULONGEST.
5728 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
5729 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
5731 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
5733 2014-02-07 Yao Qi <yao@codesourcery.com>
5735 * corefile.c (memory_error): Get 'exception' from ERR and pass
5736 'exception' to throw_error.
5738 2014-02-06 Doug Evans <xdje42@gmail.com>
5740 * configure.ac (libpython checking): Remove all but python.o from
5741 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
5742 * configure: Regenerate.
5744 * Makefile.in (SFILES): Add extension.c.
5745 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
5746 (COMMON_OBS): Add extension.o.
5747 * extension.h: New file.
5748 * extension-priv.h: New file.
5749 * extension.c: New file.
5751 * python/python-internal.h: #include "extension.h".
5752 (gdbpy_auto_load_enabled): Declare.
5753 (gdbpy_apply_val_pretty_printer): Declare.
5754 (gdbpy_apply_frame_filter): Declare.
5755 (gdbpy_preserve_values): Declare.
5756 (gdbpy_breakpoint_cond_says_stop): Declare.
5757 (gdbpy_breakpoint_has_cond): Declare.
5758 (void source_python_script_for_objfile): Delete.
5759 * python/python.c: #include "extension-priv.h".
5760 Delete inclusion of "observer.h".
5761 (extension_language_python): Moved here and renamed from
5762 script_language_python in py-auto-load.c.
5763 Redefined to be of type extension_language_defn.
5764 (python_extension_script_ops): New global.
5765 (python_extension_ops): New global.
5766 (struct python_env): New member previous_active.
5767 (restore_python_env): Call restore_active_ext_lang.
5768 (ensure_python_env): Call set_active_ext_lang.
5769 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
5771 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
5773 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
5775 (gdbpy_eval_from_control_command): Renamed from
5776 eval_python_from_control_command, made static. New arg extlang.
5777 (gdbpy_source_script) Renamed from source_python_script, made static.
5779 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
5780 result to int. New arg extlang.
5781 (gdbpy_source_objfile_script): Renamed from
5782 source_python_script_for_objfile, made static. New arg extlang.
5783 (gdbpy_start_type_printers): Renamed from start_type_printers, made
5784 static. New args extlang, extlang_printers. Change result type to
5786 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
5787 static. New arg extlang. Rename arg printers to extlang_printers
5788 and change type to ext_lang_type_printers *.
5789 (gdbpy_free_type_printers): Renamed from free_type_printers, made
5790 static. Replace argument arg with extlang, extlang_printers.
5791 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
5792 (!HAVE_PYTHON, source_python_script): Delete.
5793 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
5794 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
5795 (!HAVE_PYTHON, start_type_printers): Delete.
5796 (!HAVE_PYTHON, apply_type_printers): Delete.
5797 (!HAVE_PYTHON, free_type_printers): Delete.
5798 (_initialize_python): Delete call to observer_attach_before_prompt.
5799 (finalize_python): Set/restore active extension language.
5800 (gdbpy_finish_initialization) Renamed from
5801 finish_python_initialization, made static. New arg extlang.
5802 (gdbpy_initialized): New function.
5803 * python/python.h: #include "extension.h". Delete #include
5804 "value.h", "mi/mi-cmds.h".
5805 (extension_language_python): Declare.
5806 (GDBPY_AUTO_FILE_NAME): Delete.
5807 (enum py_bt_status): Moved to extension.h and renamed to
5809 (enum frame_filter_flags): Moved to extension.h.
5810 (enum py_frame_args): Moved to extension.h and renamed to
5811 ext_lang_frame_args.
5812 (finish_python_initialization): Delete.
5813 (eval_python_from_control_command): Delete.
5814 (source_python_script): Delete.
5815 (apply_val_pretty_printer): Delete.
5816 (apply_frame_filter): Delete.
5817 (preserve_python_values): Delete.
5818 (gdbpy_script_language_defn): Delete.
5819 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
5820 (start_type_printers, apply_type_printers, free_type_printers): Delete.
5822 * auto-load.c: #include "extension.h".
5823 (GDB_AUTO_FILE_NAME): Delete.
5824 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
5825 (script_language_gdb): Delete, moved to extension.c and renamed to
5826 extension_language_gdb.
5827 (source_gdb_script_for_objfile): Delete.
5828 (auto_load_pspace_info): New member unsupported_script_warning_printed.
5829 (loaded_script): Change type of language member to
5830 struct extension_language_defn *.
5831 (init_loaded_scripts_info): Initialize
5832 unsupported_script_warning_printed.
5833 (maybe_add_script): Make static. Change type of language arg to
5834 struct extension_language_defn *.
5835 (clear_section_scripts): Reset unsupported_script_warning_printed.
5836 (auto_load_objfile_script_1): Rewrite to use extension language API.
5837 (auto_load_objfile_script): Make public. Remove support-compiled-in
5838 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
5839 (source_section_scripts): Rewrite to use extension language API.
5840 (load_auto_scripts_for_objfile): Rewrite to use
5841 auto_load_scripts_for_objfile.
5842 (collect_matching_scripts_data): Change type of language member to
5843 struct extension_language_defn *.
5844 (auto_load_info_scripts): Change type of language arg to
5845 struct extension_language_defn *.
5846 (unsupported_script_warning_print): New function.
5847 (script_not_found_warning_print): Make static.
5848 (_initialize_auto_load): Rewrite construction of scripts-directory
5850 * auto-load.h (struct objfile): Add forward decl.
5851 (struct script_language): Delete.
5852 (struct auto_load_pspace_info): Add forward decl.
5853 (struct extension_language_defn): Add forward decl.
5854 (maybe_add_script): Delete.
5855 (auto_load_objfile_script): Declare.
5856 (script_not_found_warning_print): Delete.
5857 (auto_load_info_scripts): Update prototype.
5858 (auto_load_gdb_scripts_enabled): Declare.
5859 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
5860 auto_load_python_scripts_enabled and made public.
5861 (script_language_python): Delete, moved to python.c.
5862 (gdbpy_script_language_defn): Delete.
5863 (info_auto_load_python_scripts): Update to use
5864 extension_language_python.
5866 * breakpoint.c (condition_command): Replace call to
5867 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
5868 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
5869 with call to breakpoint_ext_lang_cond_says_stop.
5870 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
5871 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
5872 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
5873 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
5875 (local_setattro): Print name of extension language with existing
5878 * valprint.c (val_print, value_print): Update to call
5879 apply_ext_lang_val_pretty_printer.
5880 * cp-valprint.c (cp_print_value): Update call to
5881 apply_ext_lang_val_pretty_printer.
5882 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
5883 (gdbpy_apply_val_pretty_printer): Renamed from
5884 apply_val_pretty_printer. New arg extlang.
5885 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
5887 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
5888 extension language API.
5889 * cli/cli-script.c (execute_control_command): Update to call
5890 eval_ext_lang_from_control_command.
5892 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
5893 enum ext_lang_bt_status values. Update call to
5894 apply_ext_lang_frame_filter.
5895 (mi_cmd_stack_list_locals): Ditto.
5896 (mi_cmd_stack_list_args): Ditto.
5897 (mi_cmd_stack_list_variables): Ditto.
5898 * mi/mi-main.c: Delete #include "python/python-internal.h".
5899 Add #include "extension.h".
5900 (mi_cmd_list_features): Replace reference to python internal variable
5901 gdb_python_initialized with call to ext_lang_initialized_p.
5903 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
5904 Update to use enum ext_lang_frame_args. Update to call
5905 apply_ext_lang_frame_filter.
5906 * python/py-framefilter.c (extract_sym): Update to use enum
5908 (extract_value, py_print_type, py_print_value): Ditto.
5909 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
5910 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
5911 (py_print_frame): Ditto.
5912 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
5913 New arg extlang. Update to use enum ext_lang_bt_status.
5915 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
5916 finish_python_initialization. Replace with call to
5917 finish_ext_lang_initialization.
5919 * typeprint.c (do_free_global_table): Update to call
5920 free_ext_lang_type_printers.
5921 (create_global_typedef_table): Update to call
5922 start_ext_lang_type_printers.
5923 (find_global_typedef): Update to call apply_ext_lang_type_printers.
5924 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
5925 (type_print_options): Change type of global_printers from "void *"
5926 to "struct ext_lang_type_printers *".
5928 * value.c (preserve_values): Update to call preserve_ext_lang_values.
5929 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
5930 (gdbpy_preserve_values): Renamed from preserve_python_values.
5932 (!HAVE_PYTHON, preserve_python_values): Delete.
5934 * utils.c (quit_flag): Delete, moved to extension.c.
5935 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
5938 * eval.c: Delete #include "python/python.h".
5939 * main.c: Delete #include "python/python.h".
5941 * defs.h: Update comment.
5943 2014-02-06 Joel Brobecker <brobecker@adacore.com>
5947 2014-02-05 Mark Kettenis <kettenis@gnu.org>
5949 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
5952 2014-02-05 Yao Qi <yao@codesourcery.com>
5954 * remote.c (remote_pass_signals): Remove local 'buf' and use
5956 (remote_program_signals): Likewise.
5958 2014-02-05 Yao Qi <yao@codesourcery.com>
5960 * ctf.c: Include "inferior.h" and "gdbthread.h".
5961 (CTF_PID): A new macro.
5962 (ctf_open): Call inferior_appeared and add_thread_silent.
5963 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
5964 (ctf_thread_alive): New function.
5965 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
5967 2014-02-05 Yao Qi <yao@codesourcery.com>
5971 2013-05-24 Yao Qi <yao@codesourcery.com>
5973 * tracepoint.c (TFILE_PID): Remove.
5974 (tfile_open): Don't add thread and inferior.
5975 (tfile_close): Don't set 'inferior_ptid'. Don't call
5976 exit_inferior_silent.
5977 (tfile_thread_alive): Remove.
5978 (init_tfile_ops): Don't set field 'to_thread_alive' of
5981 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
5983 * remote.c (remote_start_remote): Call remote_check_symbols even
5984 if only symbol-file (not file) has been given.
5986 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5988 * gdbarch.sh (skip_entrypoint): New callback.
5989 * gdbarch.c, gdbarch.h: Regenerate.
5990 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
5991 * infrun.c (fill_in_stop_func): Likewise.
5992 * ppc-linux-tdep.c: Include "elf/ppc64.h".
5993 (ppc_elfv2_elf_make_msymbol_special): New function.
5994 (ppc_elfv2_skip_entrypoint): Likewise.
5995 (ppc_linux_init_abi): Install them for ELFv2.
5997 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5999 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
6000 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
6001 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
6002 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
6003 structures returned in GPRs.
6005 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6007 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
6008 offset to the stack parameter list for the ELFv2 ABI.
6010 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6012 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
6013 set_gdbarch_convert_from_func_ptr_addr and
6014 set_gdbarch_elf_make_msymbol_special for ELFv1.
6015 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
6016 function descriptors on ELFv1.
6017 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
6018 set up r12 at function entry.
6020 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6022 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
6023 (struct gdbarch_tdep): New member elf_abi.
6025 * rs6000-tdep.c: Include "elf/ppc64.h".
6026 (rs6000_gdbarch_init): Detect ELF ABI version.
6028 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6030 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
6031 within a register pair holding a DFP 128-bit value on little-endian.
6032 (ppc64_sysv_abi_return_value_base): Likewise.
6033 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
6034 (dfp_pseudo_register_write): Likewise.
6036 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6038 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
6039 offset on little-endian when passing _Decimal32.
6040 (ppc64_sysv_abi_return_value_base): Likewise for return values.
6042 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6044 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
6045 of the overlapped FP register within the VSX register on little-
6047 (efpr_pseudo_register_write): Likewise.
6049 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6051 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
6052 offset on little-endian when passing small structures.
6054 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6056 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
6057 (struct ppc64_sysv_argpos): New data structure.
6058 (ppc64_sysv_abi_push_float): Remove.
6059 (ppc64_sysv_abi_push_val): New function.
6060 (ppc64_sysv_abi_push_integer): Likewise.
6061 (ppc64_sysv_abi_push_freg): Likewise.
6062 (ppc64_sysv_abi_push_vreg): Likewise.
6063 (ppc64_sysv_abi_push_param): Likewise.
6064 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
6065 (ppc64_sysv_abi_return_value_base): New function.
6066 (ppc64_sysv_abi_return_value): Refactor to use it.
6068 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6070 * NEWS: Document new target powerpc64le-*-linux*.
6072 2014-02-04 Mark Kettenis <kettenis@gnu.org>
6074 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
6075 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
6077 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
6078 register set used in ELF core dumps. Add floating-point register set.
6080 2014-02-03 Kevin Buettner <kevinb@redhat.com>
6082 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
6083 dwarf2_to_gdb[] table using symbolic constants. Adjust
6084 penultimate entry from number representing the PC register
6085 to symbolic constant representing the MDR register. Add
6086 constant for the PC register to the end of the table.
6088 2014-02-03 Mark Kettenis <kettenis@gnu.org>
6090 * bsd-kvm.c: Include <sys/param.h>
6092 2014-02-03 Mark Kettenis <kettenis@gnu.org>
6094 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
6096 2014-01-31 Joel Brobecker <brobecker@adacore.com>
6098 * ada-lang.h (clear_ada_sym_cache): Delete.
6100 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
6102 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
6104 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
6106 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
6107 the sigreturn register save area only if the syscall is
6110 2014-01-29 Joel Brobecker <brobecker@adacore.com>
6112 * valops.c (value_slice): Minor reformatting.
6114 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
6116 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
6118 2014-01-28 Joel Brobecker <brobecker@adacore.com>
6120 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
6122 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
6123 (ada_ignore_descriptive_types_p): New static global.
6124 (find_parallel_type_by_descriptive_type): Return immediately
6125 if ada_ignore_descriptive_types_p is set.
6126 (_initialize_ada_language): Register new commands "maintenance
6127 set ada", "maintenance show ada", "maintenance set ada
6128 ignore-descriptive-types" and "maintenance show ada
6129 ignore-descriptive-types".
6130 * NEWS: Add entry for new "maint ada set/show
6131 ignore-descriptive-types" commands.
6133 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
6135 * record-btrace.c (record_btrace_close): Call btrace_teardown
6138 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6140 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
6143 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6145 * ada-typeprint (type_is_full_subrange_of_target_type):
6147 (print_range): Add parameter bounds_prefered_p. If not set,
6148 try printing range types using the name of their base type.
6149 (print_range_type): Add parameter bounds_prefered_p.
6150 Use it in call to print_range.
6151 (print_array_type, ada_print_type): Update calls to print_range
6152 and print_range_type.
6154 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6156 * ada-typeprint.c (print_array_type, print_choices, print_range)
6157 (print_range_bound, print_dynamic_range_bound, print_range_type):
6160 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6162 * ada-typeprint.c (print_range): Add missing empty line
6163 after local declaration.
6165 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6167 * ada-valprint.c (print_optional_low_bound): Get index_type's
6168 target type for as long as it is a TYPE_CODE_RANGE.
6170 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6172 * procfs.c (procfs_make_note_section): Remove assertion and
6175 2014-01-24 Yao Qi <yao@codesourcery.com>
6177 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
6178 * corelow.c (get_core_siginfo): Likewise.
6180 2014-01-24 Yao Qi <yao@codesourcery.com>
6182 * remote.c (remote_write_bytes_aux): Change type of 'len' to
6183 ULONGEST. Don't check 'len' is negative.
6184 (remote_write_bytes): Change type of 'len' to ULONGEST.
6186 2014-01-23 Tom Tromey <tromey@redhat.com>
6189 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
6190 Handle exception from frame.block.
6191 (FrameVars.fetch_frame_locals): Likewise.
6193 2014-01-23 Tom Tromey <tromey@redhat.com>
6196 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
6197 on a NULL pointer. Move "goto error" to correct place.
6199 2014-01-23 Tom Tromey <tromey@redhat.com>
6202 * python/py-framefilter.c (apply_frame_filter): Call
6203 ensure_python_env after computing gdbarch.
6205 2014-01-23 Yao Qi <yao@codesourcery.com>
6207 * target.c (raw_memory_xfer_partial): Change argument type
6208 from void * to gdb_byte *.
6209 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
6211 2014-01-22 Doug Evans <dje@google.com>
6213 New gdbserver option --debug-format=timestamp.
6216 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
6218 * syscalls/s390x-linux.xml: New file.
6219 * syscalls/s390-linux.xml: New file.
6220 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
6221 (XML_SYSCALL_FILENAME_S390X): Likewise.
6222 (op_svc): New enum value for SVC opcode.
6223 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
6224 (s390_linux_get_syscall_number): New function.
6225 (s390_gdbarch_init): Register '*get_syscall_number' and the
6226 syscall xml file name.
6227 * data-directory/Makefile.in (SYSCALLS_FILES): Add
6228 "s390-linux.xml" and "s390x-linux.xml".
6229 * NEWS: Announce new feature.
6231 2014-01-22 Baruch Siach <baruch@tkos.co.il>
6233 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
6235 2014-01-22 Pedro Alves <palves@redhat.com>
6237 * xtensa-config.c: Include defs.h.
6239 2014-01-22 Joel Brobecker <brobecker@adacore.com>
6241 * common/common-utils.h: Add "ARI:" comment beside __func__
6244 2014-01-22 Joel Brobecker <brobecker@adacore.com>
6246 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
6247 documentation a bit.
6249 2014-01-21 Roland McGrath <mcgrathr@google.com>
6251 * configure.ac: Call AM_PROG_INSTALL_STRIP.
6252 * configure: Regenerate.
6253 * aclocal.m4: Regenerate.
6254 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
6255 New substituted variables.
6256 (install-strip): New target.
6257 (INSTALL_SCRIPT): New substituted variable.
6258 (FLAGS_TO_PASS): Add it.
6259 (install-only): Use $(INSTALL_SCRIPT) rather than
6260 $(INSTALL_PROGRAM) for gcore.
6262 2014-01-20 Tom Tromey <tromey@redhat.com>
6264 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
6267 2014-01-20 Tom Tromey <tromey@redhat.com>
6269 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
6270 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
6271 (deprecated_cmd_warning, complete_on_cmdlist): Update.
6272 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
6273 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
6274 (struct cmd_list_element) <flags>: Remove.
6275 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
6276 doc_allocated>: New fields.
6277 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
6279 * maint.c (maintenance_do_deprecate): Update.
6280 * top.c (execute_command): Update.
6282 2014-01-20 Baruch Siach <baruch@tkos.co.il>
6284 * xtensa-linux-nat.c: Include asm/ptrace.h.
6286 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6288 * Makefile.in (SFILES): Add d-support.c.
6289 (COMMON_OBS): Add d-support.o.
6290 * d-lang.h (d_parse_symbol): Add comment, now defined in
6292 * d-lang.c (parse_call_convention)
6293 (parse_attributes, parse_function_types)
6294 (parse_function_args, parse_type, parse_identifier)
6295 (call_convention_p, d_parse_symbol): Move functions to ...
6296 * d-support.c: ... New file.
6298 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6300 * d-lang.h (d_parse_symbol): Add declaration.
6301 * d-lang.c (extract_identifiers)
6302 (extract_type_info): Remove functions.
6303 (parse_call_convention, parse_attributes)
6304 (parse_function_types, parse_function_args)
6305 (parse_type, parse_identifier, call_convention_p)
6306 (d_parse_symbol): New functions.
6307 (d_demangle): Use d_parse_symbol to demangle D symbols.
6309 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6311 * d-lang.h (struct builtin_d_type): New data type.
6312 (builtin_d_type): Add declaration.
6313 * d-lang.c (d_language_arch_info, build_d_types)
6314 (builtin_d_type): New functions.
6315 (enum d_primitive_types): New data type.
6316 (d_language_defn): Change c_language_arch_info to
6317 d_language_arch_info.
6318 (d_type_data): New static variable.
6319 (_initialize_d_language): Initialize d_type_data.
6321 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6323 * d-lang.h (d_main_name): Add declaration.
6324 * d-lang.c (d_main_name): New function.
6325 * symtab.c (find_main_name): Add call to d_main_name.
6327 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6329 * d-lang.c (d_language_defn): Change macro_expansion_c to
6332 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6334 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6336 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
6338 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
6339 gdb_exception" declaration.
6340 * remote.c (getpkt_or_notif_sane): Likewise.
6342 2014-01-17 Doug Evans <dje@google.com>
6344 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
6345 function, contents of dirnames_to_char_ptr_vec_append moved here.
6346 (delim_string_to_char_ptr_vec): New function.
6347 (dirnames_to_char_ptr_vec_append): Rewrite.
6348 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
6350 2014-01-17 Doug Evans <dje@google.com>
6352 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
6354 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
6355 #include "common-utils.h".
6356 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
6357 * common/vec.h (VEC_ASSERT_PASS): Update.
6358 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
6359 (MACH_CHECK_ERROR): Update.
6361 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
6363 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
6365 * gdbarch.h: Regenerate.
6367 2014-01-16 Tom Tromey <tromey@redhat.com>
6369 * value.c (struct value) <regnum>: Move earlier.
6371 2014-01-16 Tom Tromey <tromey@redhat.com>
6373 * remote.c (extended_remote_create_inferior): Rename from
6374 extended_remote_create_inferior_1. Add "ops" argument. Remove
6377 2014-01-16 Pedro Alves <palves@redhat.com>
6379 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
6380 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
6383 2014-01-16 Doug Evans <dje@google.com>
6385 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
6387 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6389 * btrace.h (btrace_thread_flag): New.
6390 (struct btrace_thread_info) <flags>: New.
6391 * record-btrace.c (record_btrace_resume_thread)
6392 (record_btrace_find_thread_to_move, btrace_step_no_history)
6393 (btrace_step_stopped, record_btrace_start_replaying)
6394 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
6395 (record_btrace_find_resume_thread): New.
6396 (record_btrace_resume, record_btrace_wait): Extend.
6397 (record_btrace_can_execute_reverse): New.
6398 (record_btrace_open): Fail in non-stop mode.
6399 (record_btrace_set_replay): Split into this, ...
6400 (record_btrace_stop_replaying): ... this, ...
6401 (record_btrace_clear_histories): ... and this.
6402 (init_record_btrace_ops): Init to_can_execute_reverse.
6403 * NEWS: Announce it.
6405 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6407 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
6408 (forward_target_decr_pc_after_break)
6409 (target_decr_pc_after_break): New.
6410 * target.c (forward_target_decr_pc_after_break)
6411 (target_decr_pc_after_break): New.
6412 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
6413 instead of gdbarch_decr_pc_after_break.
6414 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
6415 instead of gdbarch_decr_pc_after_break.
6416 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
6417 instead of gdbarch_decr_pc_after_break.
6418 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
6419 instead of gdbarch_decr_pc_after_break.
6420 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
6421 instead of gdbarch_decr_pc_after_break.
6422 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
6423 instead of gdbarch_decr_pc_after_break.
6425 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6427 * btrace.c: Include regcache.h.
6428 (btrace_add_pc): New.
6429 (btrace_enable): Call btrace_add_pc.
6430 (btrace_is_empty): New.
6431 * btrace.h (btrace_is_empty): New.
6432 * record-btrace.c (require_btrace, record_btrace_info): Call
6435 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6437 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
6438 Support delta reads.
6439 (linux_disable_btrace): Change return type.
6440 * common/linux-btrace.h (linux_read_btrace): Change parameters
6441 and return type to allow error reporting. Update users.
6442 (linux_disable_btrace): Change return type. Update users.
6443 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
6445 (btrace_error): New.
6446 (btrace_block) <begin>: Comment on BEGIN == 0.
6447 * btrace.c (btrace_compute_ftrace): Start from the end of
6449 (btrace_stitch_trace, btrace_clear_history): New.
6450 (btrace_fetch): Read delta trace, return if replaying.
6451 (btrace_clear): Move clear history code to btrace_clear_history.
6452 (parse_xml_btrace): Throw an error if parsing failed.
6453 * target.h (struct target_ops) <to_read_btrace>: Change parameters
6454 and return type to allow error reporting.
6455 (target_read_btrace): Change parameters and return type to allow
6457 * target.c (target_read_btrace): Update.
6458 * remote.c (remote_read_btrace): Support delta reads. Pass
6460 * NEWS: Announce it.
6462 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6464 * record.h (record_btrace_frame_unwind)
6465 (record_btrace_tailcall_frame_unwind): New declarations.
6466 * dwarf2-frame: Include record.h
6467 (dwarf2_frame_cfa): Throw an error for btrace frames.
6468 * record-btrace.c: Include hashtab.h.
6469 (btrace_get_bfun_name): New.
6470 (btrace_call_history): Call btrace_get_bfun_name.
6471 (struct btrace_frame_cache): New.
6473 (bfcache_hash, bfcache_eq, bfcache_new): New.
6474 (btrace_get_frame_function): New.
6475 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
6476 (record_btrace_frame_this_id): Compute own id.
6477 (record_btrace_frame_prev_register): Provide PC, throw_error
6478 for all other registers.
6479 (record_btrace_frame_sniffer): Detect btrace frames.
6480 (record_btrace_tailcall_frame_sniffer): New.
6481 (record_btrace_frame_dealloc_cache): New.
6482 (record_btrace_frame_unwind): Add new functions.
6483 (record_btrace_tailcall_frame_unwind): New.
6484 (_initialize_record_btrace): Allocate cache.
6485 * btrace.c (btrace_clear): Call reinit_frame_cache.
6486 * NEWS: Announce it.
6488 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6490 * record-btrace.c (record_btrace_set_replay)
6491 (record_btrace_goto_begin, record_btrace_goto_end)
6492 (record_btrace_goto): New.
6493 (init_record_btrace_ops): Initialize them.
6494 * NEWS: Announce it.
6496 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6498 * record-btrace.c (record_btrace_find_new_threads)
6499 (record_btrace_thread_alive): New.
6500 (init_record_btrace_ops): Initialize to_find_new_threads and
6503 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6505 * record-btrace.c (record_btrace_resume): New.
6506 (record_btrace_wait): New.
6507 (init_record_btrace_ops): Initialize to_wait and to_resume.
6509 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6511 * record-btrace.c (record_btrace_xfer_partial)
6512 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
6513 (record_btrace_allow_memory_access): New.
6514 (init_record_btrace_ops): Initialize new methods.
6515 * target.c (raw_memory_xfer_partial): Bail out if target reports
6516 that this memory is not available.
6518 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6520 * target.h (target_ops) <to_insert_breakpoint>
6521 <to_remove_breakpoint>: Add target_ops parameter.
6522 (forward_target_insert_breakpoint): New.
6523 (forward_target_remove_breakpoint): New.
6524 (memory_remove_breakpoint, memory_insert_breakpoint):
6525 Add target_ops parameter.
6526 * target.c (target_insert_breakpoint): Split into this and ...
6527 (forward_target_insert_breakpoint): ... this.
6528 (target_remove_breakpoint): Split into this and ...
6529 (forward_target_remove_breakpoint): ... this.
6530 (debug_to_insert_breakpoint): Add target_ops parameter.
6531 Call forward_target_insert_breakpoint.
6532 (debug_to_remove_breakpoint): Add target_ops parameter.
6533 Call forward_target_remove_breakpoint.
6534 (update_current_target): Do not inherit or default to_insert_breakpoint
6535 and to_remove_breakpoint.
6536 * corelow.c (ignore): Add target_ops parameter.
6537 * exec.c (ignore): Add target_ops parameter.
6538 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
6539 Add target_ops parameter.
6540 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
6541 Add target_ops parameter.
6542 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
6543 Add target_ops parameter.
6544 * record-full.c (record_full_beneath_to_insert_breakpoint)
6545 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
6546 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
6547 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
6548 (record_full_core_remove_breakpoint): Add target_ops parameter.
6550 (record_full_beneath_to_insert_breakpoint_ops)
6551 (record_full_beneath_to_remove_breakpoint_ops)
6552 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
6553 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
6554 tmp_to_remove_breakpoint_ops,
6555 record_full_beneath_to_insert_breakpoint_ops, and
6556 record_full_beneath_to_remove_breakpoint_ops.
6557 * remote-m32r-sdi.c (m32r_insert_breakpoint)
6558 (m32r_remove_breakpoint): Add target_ops parameter.
6559 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
6560 Add target_ops parameter.
6561 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
6562 Add target_ops parameter.
6564 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6565 Markus Metzger <markus.t.metzger@intel.com>
6567 * record-btrace.c: Include frame-unwind.h.
6568 (record_btrace_frame_unwind_stop_reason)
6569 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
6570 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
6572 (init_record_btrace_ops): Install it.
6574 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6576 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
6579 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6581 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
6584 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6586 * frame-unwind.c: Include target.h.
6587 (frame_unwind_try_unwinder): New function with code from ...
6588 (frame_unwind_find_by_frame): ... here. New variable
6589 unwinder_from_target, call also target_get_unwinder)
6590 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
6591 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
6592 * target.h (struct target_ops): New fields to_get_unwinder and
6593 to_get_tailcall_unwinder.
6594 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
6596 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6598 * record-btrace.c (record_btrace_fetch_registers)
6599 (record_btrace_store_registers)
6600 (record_btrace_to_prepare_to_store): New.
6601 (init_record_btrace_ops): Add the above.
6603 2014-01-16 Tom Tromey <tromey@redhat.com>
6605 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
6606 * target.h (struct target_ops) <to_prepare_to_store>: Add
6608 (target_prepare_to_store): Add argument.
6609 * target.c (debug_to_prepare_to_store): Add argument.
6610 (update_current_target): Update.
6611 * remote.c (remote_prepare_to_store): Add 'self' argument.
6612 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
6613 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
6614 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
6615 * record-full.c (record_full_core_prepare_to_store): Add 'self'
6617 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
6618 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
6619 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
6620 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
6621 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
6623 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6625 * btrace.h (replay) <replay>: New.
6626 (btrace_is_replaying): New.
6627 * btrace.c (btrace_clear): Free replay iterator.
6628 (btrace_is_replaying): New.
6629 * record-btrace.c (record_btrace_is_replaying): New.
6630 (record_btrace_info): Print insn number if replaying.
6631 (record_btrace_insn_history): Start at replay position.
6632 (record_btrace_call_history): Start at replay position.
6633 (init_record_btrace_ops): Init to_record_is_replaying.
6635 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6637 * record-btrace.c (record_btrace_insn_history_range): Include
6639 (record_btrace_insn_history_from): Adjust range.
6640 (record_btrace_call_history_range): Include
6642 (record_btrace_call_history_from): Adjust range.
6643 * NEWS: Announce changes.
6645 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6647 * record.h (enum record_print_flag)
6648 <record_print_indent_calls>: New.
6649 * record.c (get_call_history_modifiers): Recognize /c modifier.
6650 (_initialize_record): Document /c modifier.
6651 * record-btrace.c (btrace_call_history): Add btinfo parameter.
6652 Reorder fields. Optionally indent the function name. Update
6654 * NEWS: Announce changes.
6656 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6658 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
6660 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6662 * btrace.c (ftrace_new_function): Start counting at one.
6663 * record-btrace.c (record_btrace_info): Adjust number of calls
6665 * NEWS: Announce it.
6667 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6669 * record-btrace.c (btrace_call_history_insn_range): Print
6670 insn range as [begin, end].
6672 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6674 * btrace.h (struct btrace_func_link): New.
6675 (enum btrace_function_flag): New.
6676 (struct btrace_inst): Rename to ...
6677 (struct btrace_insn): ...this. Update all users.
6678 (struct btrace_func) <ibegin, iend>: Remove.
6679 (struct btrace_func_link): New.
6680 (struct btrace_func): Rename to ...
6681 (struct btrace_function): ...this. Update all users.
6682 (struct btrace_function) <segment, flow, up, insn, insn_offset)
6683 (number, level, flags>: New.
6684 (struct btrace_insn_iterator): Rename to ...
6685 (struct btrace_insn_history): ...this.
6687 (struct btrace_insn_iterator, btrace_call_iterator): New.
6688 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
6689 (struct btrace_target_info) <begin, end, level>
6690 <insn_history, call_history>: New.
6691 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
6692 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
6693 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
6694 (btrace_call_number, btrace_call_begin, btrace_call_end)
6695 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
6696 (btrace_find_function_by_number, btrace_set_insn_history)
6697 (btrace_set_call_history): New.
6698 * btrace.c (btrace_init_insn_iterator)
6699 (btrace_init_func_iterator, compute_itrace): Remove.
6700 (ftrace_print_function_name, ftrace_print_filename)
6701 (ftrace_skip_file): Change
6703 (ftrace_init_func): Remove.
6704 (ftrace_debug): Use new btrace_function fields.
6705 (ftrace_function_switched): Also consider gaining and
6706 losing symbol information).
6707 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
6708 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
6709 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
6711 (ftrace_new_function): Move. Remove debug print.
6712 (ftrace_update_lines, ftrace_update_insns): New.
6713 (ftrace_update_function): Check for call, ret, and jump.
6714 (compute_ftrace): Renamed to ...
6715 (btrace_compute_ftrace): ...this. Rewritten to compute call
6717 (btrace_fetch, btrace_clear): Updated.
6718 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
6719 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
6720 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
6721 (btrace_call_number, btrace_call_begin, btrace_call_end)
6722 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
6723 (btrace_find_function_by_number, btrace_set_insn_history)
6724 (btrace_set_call_history): New.
6725 * record-btrace.c (require_btrace): Use new btrace thread
6727 (record_btrace_info, btrace_insn_history)
6728 (record_btrace_insn_history, record_btrace_insn_history_range):
6729 Use new btrace thread info fields and new iterator.
6730 (btrace_func_history_src_line): Rename to ...
6731 (btrace_call_history_src_line): ...this. Use new btrace
6733 (btrace_func_history): Rename to ...
6734 (btrace_call_history): ...this. Use new btrace thread info
6735 fields and new iterator.
6736 (record_btrace_call_history, record_btrace_call_history_range):
6737 Use new btrace thread info fields and new iterator.
6739 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6741 * frame.h (frame_id_build_unavailable_stack_special): New.
6742 * frame.c (frame_id_build_unavailable_stack_special): New.
6744 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6746 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
6747 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
6748 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
6750 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
6751 (i386_insn_is_jump, i386_jmp_p): New.
6752 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
6753 insn_is_jump to gdbarch.
6754 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
6755 * gdbarch.h: Regenerated.
6756 * gdbarch.c: Regenerated.
6757 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
6758 (default_insn_is_jump): New.
6759 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
6760 (default_insn_is_jump): New.
6762 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6764 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
6766 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
6767 (btrace_read_type) <btrace_read_new>: Change to ...
6768 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
6770 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6772 * common/linux-btrace.c (linux_read_btrace): Free trace from
6775 2014-01-15 Doug Evans <dje@google.com>
6777 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
6780 2014-01-15 Tom Tromey <tromey@redhat.com>
6782 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
6783 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
6784 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
6785 (set_objfile_main_name): New function.
6786 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
6787 language_of_main>: New fields.
6788 (set_objfile_main_name): Declare.
6789 * symtab.c (find_main_name): Loop over objfiles to find the main
6791 (set_main_name): Now static.
6792 (get_main_info): Add comment.
6793 * symtab.h (set_main_name): Don't declare.
6795 2014-01-15 Tom Tromey <tromey@redhat.com>
6797 * symtab.c (main_progspace_key): New global.
6798 (struct main_info): New.
6799 (name_of_main, language_of_main): Remove.
6800 (get_main_info, main_info_cleanup): New function.
6801 (set_main_name, main_name, main_language): Use get_main_info.
6802 (_initialize_symtab): Initialize main_progspace_key.
6804 2014-01-15 Tom Tromey <tromey@redhat.com>
6806 * dbxread.c (process_one_symbol): Update.
6807 * dwarf2read.c (read_partial_die): Update.
6808 * symfile.c (set_initial_language): Call main_language.
6809 * symtab.c (language_of_main): Now static.
6810 (set_main_name): Add 'lang' parameter.
6811 (find_main_name): Update.
6812 (main_language): New function.
6813 (symtab_observer_executable_changed): Update.
6814 * symtab.h (set_main_name): Update.
6815 (language_of_main): Remove.
6816 (main_language): Declare.
6818 2014-01-15 Tom Tromey <tromey@redhat.com>
6820 * symfile.c (init_entry_point_info): Use new "initialized" field.
6822 * objfiles.h (struct entry_point) <initialized>: New field.
6823 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
6824 (struct objfile) <ei>: ...here. Remove.
6825 * objfiles.c (entry_point_address_query): Update.
6827 2014-01-15 Tom Tromey <tromey@redhat.com>
6829 * objfiles.c (entry_point_address_query): Relocate entry point
6831 (objfile_relocate1): Do not relocate entry point address.
6832 * objfiles.h (struct entry_info) <entry_point>: Update comment.
6833 <the_bfd_section_index>: New field.
6834 * symfile.c (init_entry_point_info): Find the entry point's
6837 2014-01-15 Tom Tromey <tromey@redhat.com>
6839 * solib-frv.c (enable_break): Use entry_point_address_query.
6841 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6843 * NEWS: Add note on improved process record-replay on
6844 arm*-linux* targets.
6846 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6848 * arm-tdep.c (enum arm_record_result): New enum.
6849 (arm_record_unsupported_insn): New function.
6850 (arm_record_coproc_data_proc): Removed.
6851 (thumb2_record_ld_st_multiple): New function.
6852 (thumb2_record_ld_st_dual_ex_tbb): New function.
6853 (thumb2_record_data_proc_sreg_mimm): New function.
6854 (thumb2_record_ps_dest_generic): New function.
6855 (thumb2_record_branch_misc_cntrl): New function.
6856 (thumb2_record_str_single_data): New function.
6857 (thumb2_record_ld_mem_hints): New function.
6858 (thumb2_record_ld_word): New function.
6859 (thumb2_record_lmul_lmla_div): New function.
6860 (thumb2_record_decode_insn_handler): New function.
6861 (decode_insn): Add thumb32 instruction handlers.
6863 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6865 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
6866 (struct arm_linux_record_tdep): Declare.
6867 (arm_canonicalize_syscall): New function.
6868 (arm_all_but_pc_registers_record): New function.
6869 (arm_linux_syscall_record): New function.
6870 (arm_linux_init_abi): Add syscall recording constructs.
6871 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
6872 decoding. (arm_record_coproc_data_proc): Update arm syscall
6874 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
6875 <arm_syscall_record>: New field.
6876 * configure.tgt (arm*-*-linux*): Add linux-record.o to
6879 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6881 * arm-tdep.c (thumb_record_misc): Update to use sp as base
6882 register for push instruction recording.
6884 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6886 * arm-tdep.c (thumb_record_misc): Update to correct logical
6887 error while recording ldm, ldmia and pop instructions.
6889 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6891 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
6893 2014-01-15 Pedro Alves <palves@redhat.com>
6895 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
6896 (go32_resume, go32_fetch_registers, store_register)
6897 (go32_store_registers, go32_prepare_to_store)
6898 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
6899 (go32_create_inferior, go32_can_run, go32_terminal_init)
6900 (go32_terminal_inferior, go32_terminal_ours): Delete forward
6903 2014-01-15 Tom Tromey <tromey@redhat.com>
6905 * target.h (async_callback_ftype): New typedef.
6906 (struct target_ops) <to_async>: Use it.
6908 2014-01-15 Joel Brobecker <brobecker@adacore.com>
6910 * python/py-value.c (get_field_type): Remove unnecessary curly
6911 braces for single-statement if block.
6913 2014-01-15 Joel Brobecker <brobecker@adacore.com>
6915 * python/py-type.c (convert_field): Add missing empty line
6918 2014-01-14 Doug Evans <dje@google.com>
6920 * symfile.h (expand_symtabs_matching): Renamed from
6921 expand_partial_symbol_names. Update prototype.
6922 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
6923 * symfile.c (expand_symtabs_matching): Renamed from
6924 expand_partial_symbol_names. New args file_matcher, kind.
6925 Rename arg fun to symbol_matcher.
6926 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
6927 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
6928 ada_expand_partial_symbol_name.
6929 (ada_make_symbol_completion_list): Update to call
6930 expand_symtabs_matching.
6931 (ada_add_global_exceptions): Call expand_symtabs_matching.
6932 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
6933 call map_symbol_filenames.
6934 * symtab.c (sources_info): Update to call map_symbol_filenames.
6935 (search_symbols): Call expand_symtabs_matching.
6936 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
6937 (default_make_symbol_completion_list_break_on): Update to call
6938 expand_symtabs_matching.
6939 (make_source_files_completion_list): Update to call
6940 map_symbol_filenames.
6942 2014-01-14 Doug Evans <dje@google.com>
6944 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
6945 (expand_symtabs_symbol_matcher_ftype): New typedef.
6946 (quick_symbol_functions.expand_symtabs_matching): Update to use.
6947 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
6948 * symfile.c (expand_partial_symbol_names): Update to use
6949 expand_symtabs_symbol_matcher_ftype.
6950 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
6951 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
6952 Arg name_matcher renamed to symbol_matcher.
6953 * psymtab.c (recursively_search_psymtabs): Update to use
6954 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
6956 (expand_symtabs_matching_via_partial): Update to use
6957 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
6958 Arg name_matcher renamed to symbol_matcher.
6960 2014-01-14 Doug Evans <dje@google.com>
6962 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
6963 (map_partial_symbol_filenames): Ditto.
6964 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
6965 (map_partial_symbol_filenames): Ditto.
6966 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
6967 (map_partial_symbol_filenames): Ditto.
6968 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
6969 (map_partial_symbol_filenames): Ditto.
6970 * symtab.c: Delete #include "psymtab.h".
6972 2014-01-14 Pedro Alves <palves@redhat.com>
6973 Tom Tromey <tromey@redhat.com>
6975 * infrun.c (use_displaced_stepping): Use find_record_target
6976 instead of RECORD_IS_USED.
6977 (adjust_pc_after_break): Use record_full_is_used instead of
6979 * record-btrace.c (record_btrace_open): Call record_preopen
6980 instead of checking RECORD_IS_USED.
6981 * record-full.c (record_full_shortname)
6982 (record_full_core_shortname): New globals.
6983 (record_full_is_used): New function.
6984 (find_full_open): Call record_preopen instead of checking
6986 (init_record_full_ops): Set the target's shortname to
6987 record_full_shortname.
6988 (init_record_full_core_ops): Set the target's shortname to
6989 record_full_core_shortname.
6990 * record-full.h (record_full_is_used): Declare.
6991 * record.c (find_record_target): Make extern.
6992 (record_preopen): New function.
6993 * record.h (RECORD_IS_USED): Delete macro.
6994 (find_record_target, record_preopen): Declare functions.
6996 2014-01-14 Yao Qi <yao@codesourcery.com>
6998 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
6999 'len''s type to ULONGEST.
7000 (core_xfer_shared_libraries_aix): Likewise.
7001 * gdbarch.c, gdbarch.h: Regenerated.
7002 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
7003 Change type of 'len' to ULONGEST.
7004 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7005 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7007 2014-01-14 Yao Qi <yao@codesourcery.com>
7009 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
7010 type of 'len' to ULONGEST.
7011 (linux_xfer_osdata_processgroups): Likewise.
7012 (linux_xfer_osdata_threads): Likewise.
7013 (linux_xfer_osdata_fds): Likewise.
7014 (linux_xfer_osdata_isockets): Likewise.
7015 (linux_xfer_osdata_shm): Likewise.
7016 (linux_xfer_osdata_sem): Likewise.
7017 (linux_xfer_osdata_msg): Likewise.
7018 (linux_common_xfer_osdata): Likewise.
7019 (struct osdata_type) <getter>: Likewise.
7020 * common/linux-osdata.h (linux_common_xfer_osdata): Update
7023 2014-01-14 Yao Qi <yao@codesourcery.com>
7025 * target.h (target_xfer_partial_ftype): Update.
7026 (struct target_ops) <to_xfer_partial>: Change 'len' type to
7028 * aix-thread.c (aix_thread_xfer_partial): Change type of
7029 argument 'len' to ULONGEST.
7030 * auxv.c (procfs_xfer_auxv): Likewise.
7031 (ld_so_xfer_auxv): Likewise.
7032 (memory_xfer_auxv): Likewise.
7033 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7034 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7035 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7036 * corelow.c (core_xfer_partial): Likewise.
7037 * ctf.c (ctf_xfer_partial): Likewise.
7038 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
7040 (darwin_read_dyld_info): Likewise.
7041 (darwin_xfer_partial): Likewise.
7042 * exec.c (section_table_xfer_memory_partial): Likewise.
7043 (exec_xfer_partial): Likewise.
7044 * exec.h (section_table_xfer_memory_partial): Update
7046 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
7047 instead of plongest.
7048 (gnu_xfer_partial): Likewise.
7049 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
7050 (ia64_hpux_xfer_solib_got): Likewise.
7051 (ia64_hpux_xfer_partial): Likewise.
7052 * ia64-linux-nat.c (ia64_linux_xfer_partial):
7053 * inf-ptrace.c (inf_ptrace_xfer_partial):
7054 * inf-ttrace.c (inf_ttrace_xfer_partial):
7055 * linux-nat.c (linux_xfer_siginfo): Likewise.
7056 (linux_nat_xfer_partial): Likewise.
7057 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
7058 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
7059 * monitor.c (monitor_xfer_memory): Likewise.
7060 (monitor_xfer_partial): Likewise.
7061 * procfs.c (procfs_xfer_partial): Likewise.
7062 * record-full.c (record_full_xfer_partial): Likewise.
7063 (record_full_core_xfer_partial): Likewise.
7064 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
7065 instead of plongest.
7066 (gdbsim_xfer_partial): Likewise.
7067 * remote.c (remote_xfer_partial): Likewise.
7068 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7069 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7071 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7072 (rs6000_xfer_shared_libraries): Likewise.
7073 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7074 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7075 (sparc_xfer_partial): Likewise.
7076 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7077 (spu_xfer_partial): Likewise.
7078 * spu-multiarch.c (spu_xfer_partial): Likewise.
7079 * target.c (target_read_live_memory): Likewise.
7080 (memory_xfer_live_readonly_partial): Likewise.
7081 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
7082 (target_xfer_partial, default_xfer_partial): Likewise.
7083 (current_xfer_partial): Likewise.
7084 * tracepoint.c (tfile_xfer_partial): Likewise.
7085 * windows-nat.c (windows_xfer_memory): Likewise. Call
7086 pulongest instead of plongest.
7087 (windows_xfer_partial): Likewise.
7088 (windows_xfer_shared_libraries): Likewise.
7090 2014-01-14 Yao Qi <yao@codesourcery.com>
7092 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
7093 target_xfer_partial_ftype.
7095 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
7099 * valops.c (value_struct_elt_bitpos): New function
7100 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
7101 object to 'None' if the field name is an empty string ("").
7102 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
7103 attribute to look for a field when 'name' is 'None'.
7104 (get_field_type): New function
7106 2014-01-13 Doug Evans <dje@google.com>
7109 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
7110 (try_open_dwop_file): Ditto.
7111 * gdb_bfd.c: #include "vec.h".
7112 (bfdp): New typedef.
7113 (struct gdb_bfd_data): New member included_bfds.
7114 (gdb_bfd_unref): Unref all included bfds.
7115 (gdb_bfd_record_inclusion): New function.
7116 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
7118 2014-01-13 Tom Tromey <tromey@redhat.com>
7120 * gdbcore.h (deprecated_core_resize_section_table): Remove.
7122 2014-01-13 Tom Tromey <tromey@redhat.com>
7124 * defs.h (use_windows): Remove.
7125 * gdb.c (main): Update.
7126 * main.c (captured_main, gdb_main): Update.
7127 * main.h (struct captured_main_args) <use_windows>: Remove.
7128 * top.c (use_windows): Remove.
7130 2014-01-13 Tom Tromey <tromey@redhat.com>
7132 * defs.h (deprecated_flush_hook): Remove.
7134 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7137 * linux-thread-db.c (try_thread_db_load): Add parameter
7138 check_auto_load_safe. Move here the file_is_auto_load_safe call.
7139 (try_thread_db_load_from_pdir_1): Move it there from here.
7140 (try_thread_db_load_from_sdir): Update caller.
7141 (try_thread_db_load_from_dir): Move it there from here.
7143 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
7145 * regformats/regdat.sh: Always rewrite the register file.
7147 2014-01-13 Pedro Alves <palves@redhat.com>
7149 * Makefile.in (CHECK_HEADERS): New variable.
7150 (check-headers:): New rule.
7152 2014-01-13 Tom Tromey <tromey@redhat.com>
7154 * cli/cli-setshow.c (do_set_command): Update.
7155 * defs.h (deprecated_set_hook): Remove.
7156 * top.c (deprecated_set_hook): Remove.
7158 2014-01-13 Pedro Alves <palves@redhat.com>
7160 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
7161 the tracepoint if the PC is a pseudo-register.
7163 2014-01-13 Tom Tromey <tromey@redhat.com>
7165 * defs.h (XCALLOC): Remove.
7166 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
7167 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
7168 * dwarf2loc.c (allocate_piece_closure): Likewise.
7169 * elfread.c (elf_symfile_segments): Likewise.
7170 (elf_symfile_segments): Likewise.
7171 * gdbtypes.c (copy_type_recursive): Likewise.
7172 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
7173 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
7174 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
7176 * mt-tdep.c (mt_gdbarch_init): Likewise.
7177 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
7179 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
7180 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
7181 * registry.c (registry_alloc_data): Likewise.
7182 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
7183 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7184 * serial.c (serial_fdopen_ops): Likewise.
7185 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
7187 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
7188 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
7191 2014-01-13 Tom Tromey <tromey@redhat.com>
7193 * defs.h (XMALLOC): Remove.
7194 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
7195 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
7196 * cli-out.c (struct ui_out *): Likewise.
7197 * cli/cli-dump.c (add_dump_command): Likewise.
7198 (add_dump_command): Likewise.
7199 * complaints.c (get_complaints): Likewise.
7200 (find_complaint): Likewise.
7201 * dwarf2-frame.c (execute_cfa_program): Likewise.
7202 * dwarf2read.c (abbrev_table_read_table): Likewise.
7203 * gdbarch.sh: Likewise.
7204 * gdbarch.c: Rebuild.
7205 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
7206 * interps.c (interp_new): Likewise.
7207 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
7208 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7209 * mi/mi-console.c (mi_console_file_new): Likewise.
7210 * mi/mi-interp.c (mi_interpreter_init): Likewise.
7211 * mi/mi-out.c (mi_out_new): Likewise.
7212 * mi/mi-parse.c (mi_parse): Likewise.
7213 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
7214 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7215 * observer.c (xalloc_observer_list_node): Likewise.
7216 * regcache.c (regcache_xmalloc_1): Likewise.
7217 * reggroups.c (reggroup_new): Likewise.
7218 (_initialize_reggroup): Likewise.
7219 * registry.c (register_data_with_cleanup): Likewise.
7220 * remote.c (remote_notif_stop_alloc_reply): Likewise.
7221 * ser-base.c (serial_ttystate): Likewise.
7222 * ser-mingw.c (make_pipe_state): Likewise.
7223 * ser-pipe.c (pipe_open): Likewise.
7224 * serial.c (serial_open): Likewise.
7225 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
7226 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
7227 (tui_alloc_win_info): Likewise.
7228 (tui_add_content_elements): Likewise.
7229 * tui/tui-file.c (tui_file_new): Likewise.
7230 * tui/tui-out.c (tui_out_new): Likewise.
7231 * ui-file.c (mem_file_new): Likewise.
7232 * ui-out.c (push_level): Likewise.
7233 (make_cleanup_ui_out_end): Likewise.
7234 (append_header_to_list): Likewise.
7235 (ui_out_new): Likewise.
7236 * user-regs.c (user_reg_add_builtin): Likewise.
7238 2014-01-13 Tom Tromey <tromey@redhat.com>
7240 * defs.h (XZALLOC): Remove.
7241 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
7242 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
7243 (get_ada_tasks_inferior_data): Likewise.
7244 * auto-load.c (get_auto_load_pspace_data): Likewise.
7245 * auxv.c (get_auxv_inferior_data): Likewise.
7246 * bfd-target.c (target_bfd_reopen): Likewise.
7247 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
7248 (deprecated_insert_raw_breakpoint): Likewise.
7249 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
7250 * corelow.c (core_open): Likewise.
7251 * darwin-nat.c (darwin_check_new_threads): Likewise.
7252 (darwin_attach_pid): Likewise.
7253 * dummy-frame.c (dummy_frame_push): Likewise.
7254 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
7255 * dwarf2loc.c (allocate_piece_closure): Likewise.
7256 * elfread.c (elf_symfile_segments): Likewise.
7257 * eval.c (ptrmath_type_p): Likewise.
7258 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
7259 * gdbtypes.c (alloc_type_arch): Likewise.
7260 (alloc_type_instance): Likewise.
7261 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
7262 * inf-child.c (inf_child_can_use_agent): Likewise.
7263 * inflow.c (get_inflow_inferior_data): Likewise.
7264 * infrun.c (save_infcall_suspend_state): Likewise.
7265 * jit.c (jit_reader_load): Likewise.
7266 (get_jit_objfile_data): Likewise.
7267 (get_jit_program_space_data): Likewise.
7268 (jit_object_open_impl): Likewise.
7269 (jit_symtab_open_impl): Likewise.
7270 (jit_block_open_impl): Likewise.
7271 (jit_frame_sniffer): Likewise.
7272 * linux-fork.c (add_fork): Likewise.
7273 * maint.c (make_command_stats_cleanup): Likewise.
7274 * objfiles.c (get_objfile_pspace_data): Likewise.
7275 * opencl-lang.c (struct lval_closure): Likewise.
7276 * osdata.c (osdata_start_osdata): Likewise.
7277 * progspace.c (new_address_space): Likewise.
7278 (add_program_space): Likewise.
7279 * remote-sim.c (get_sim_inferior_data): Likewise.
7280 * sh-tdep.c (sh_gdbarch_init): Likewise.
7281 * skip.c (Ignore): Likewise.
7282 (skip_delete_command): Likewise.
7283 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
7284 (library_list_start_library): Likewise.
7285 (solib_aix_current_sos): Likewise.
7286 * solib-darwin.c (get_darwin_info): Likewise.
7287 (darwin_current_sos): Likewise.
7288 * solib-dsbt.c (get_dsbt_info): Likewise.
7289 * solib-ia64-hpux.c (new_so_list): Likewise.
7290 (ia64_hpux_get_solib_linkage_addr): Likewise.
7291 * solib-spu.c (append_ocl_sos): Likewise.
7292 (spu_current_sos): Likewise.
7293 * solib-svr4.c (get_svr4_info): Likewise.
7294 (svr4_keep_data_in_core): Likewise.
7295 (library_list_start_library): Likewise.
7296 (svr4_default_sos): Likewise.
7297 (svr4_read_so_list): Likewise.
7298 * solib-target.c (library_list_start_library): Likewise.
7299 (solib_target_current_sos): Likewise.
7300 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7301 * symfile-debug.c (install_symfile_debug_logging): Likewise.
7302 * symfile.c (default_symfile_segments): Likewise.
7303 * target-descriptions.c (tdesc_data_init): Likewise.
7304 (tdesc_create_reg): Likewise.
7305 (struct tdesc_type *): Likewise.
7306 (tdesc_create_vector): Likewise.
7307 (tdesc_set_struct_size): Likewise.
7308 (struct tdesc_type *): Likewise.
7309 (tdesc_free_feature): Likewise.
7310 (tdesc_create_feature): Likewise.
7311 * windows-nat.c (windows_add_thread): Likewise.
7312 (windows_make_so): Likewise.
7313 * xml-support.c (gdb_xml_body_text): Likewise.
7314 (gdb_xml_create_parser_and_cleanup): Likewise.
7315 (xml_process_xincludes): Likewise.
7316 * xml-syscall.c (allocate_syscalls_info): Likewise.
7317 (syscall_create_syscall_desc): Likewise.
7319 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
7321 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
7322 function, with code from i386_stap_parse_special_token.
7323 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7324 (i386_stap_parse_special_token): Move code to the two functions
7327 2014-01-09 Pedro Alves <palves@redhat.com>
7328 Hui Zhu <hui@codesourcery.com>
7331 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
7332 bp_err_string. Don't mark the location shlib_disabled if the
7333 error thrown wasn't a generic or memory error. Catch errors
7334 thrown while inserting breakpoints in overlayed code. Output
7335 error message of software breakpoints.
7336 * remote.c (remote_insert_breakpoint): If this breakpoint has
7337 target-side commands but this stub doesn't support Z0 packets,
7338 throw NOT_SUPPORTED_ERROR error.
7339 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
7340 * target.h (target_insert_breakpoint): Extend comment.
7341 (target_insert_hw_breakpoint): Add comment.
7343 2014-01-08 Pedro Alves <palves@redhat.com>
7345 * remote.c (remote_add_thread): Add threads silently if starting
7347 (remote_notice_new_inferior): If in all-stop, and starting up,
7348 don't call notice_new_inferior.
7349 (get_current_thread): New function, factored out from ...
7350 (add_current_inferior_and_thread): ... this. Adjust.
7351 (remote_start_remote) <all-stop>: Fetch the thread list. If we
7352 found any thread, then select the remote's current thread as GDB's
7355 2014-01-08 Joel Brobecker <brobecker@adacore.com>
7357 * NEWS: Create a new section for the next release branch.
7358 Rename the section of the current branch, now that it has
7361 2014-01-08 Joel Brobecker <brobecker@adacore.com>
7363 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
7364 * version.in: Bump version to 7.7.50.DATE-cvs.
7366 2014-01-08 Yao Qi <yao@codesourcery.com>
7368 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
7369 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
7370 (spu_xfer_partial): Cast 'buf' to 'const char *'.
7372 2014-01-08 Yao Qi <yao@codesourcery.com>
7374 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
7375 return value of bfd_get_filename to symbol_file_add_from_bfd.
7377 2014-01-08 Pierre Muller <muller@sourceware.org>
7380 * coff-pe-read.c (struct read_pe_section_data): Add index field.
7381 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
7382 to prim_record_mininal_symbol_and_info.
7383 (add_pe_forwarded_sym): Use known section number of forwarded symbol
7384 in call to prim_record_minimal_symbol_and_info.
7385 (read_pe_exported_syms): Set index field of section_data.
7387 2014-01-07 Andrew Pinski <apinski@cavium.com>
7389 * features/aarch64-core.xml (cpsr): Change to be 64bit.
7390 * features/aarch64.c: Regenerate.
7392 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
7394 * target.c (return_null): Define.
7395 (update_current_target): Use it instead of return_zero for
7396 functions that return a pointer.
7398 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
7400 * source.c (add_path): Fix check for duplicated paths in the previously
7403 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
7405 * ada-lang.c: Remove duplicated include statements.
7406 * alphabsd-nat.c: Ditto.
7407 * amd64-darwin-tdep.c: Ditto.
7408 * amd64fbsd-nat.c: Ditto.
7409 * auto-load.c: Ditto.
7411 * breakpoint.c: Ditto.
7413 * fork-child.c: Ditto.
7414 * gdb_usleep.c: Ditto.
7415 * i386-darwin-tdep.c: Ditto.
7416 * i386fbsd-nat.c: Ditto.
7418 * inferior.c: Ditto.
7420 * linux-nat.c: Ditto.
7421 * linux-tdep.c: Ditto.
7422 * m68kbsd-nat.c: Ditto.
7423 * m68klinux-nat.c: Ditto.
7424 * microblaze-tdep.c: Ditto.
7425 * mips-linux-tdep.c: Ditto.
7426 * mn10300-tdep.c: Ditto.
7427 * nto-tdep.c: Ditto.
7428 * opencl-lang.c: Ditto.
7430 * printcmd.c: Ditto.
7431 * regcache.c: Ditto.
7432 * remote-m32r-sdi.c: Ditto.
7436 * tilegx-linux-nat.c: Ditto.
7437 * tilegx-tdep.c: Ditto.
7438 * tracepoint.c: Ditto.
7440 * vaxbsd-nat.c: Ditto.
7441 * windows-nat.c: Ditto.
7442 * xtensa-tdep.c: Ditto.
7444 2014-01-07 Yao Qi <yao@codesourcery.com>
7446 * spu-linux-nat.c (_initialize_spu_nat): Declare.
7448 2014-01-07 Yao Qi <yao@codesourcery.com>
7449 Joel Brobecker <brobecker@adacore.com>
7451 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
7452 (pdc_write_regs): Likewise.
7453 (fetch_regs_kernel_thread): Likewise.
7454 (store_regs_kernel_thread): Likewise.
7456 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7458 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
7459 tagged type objects to their actual type.
7461 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7463 * ada-valprint.c (print_field_values): Add "language" parameter.
7464 Update calls to print_field_values and print_variant_part.
7465 Pass new parameter "language" in call to val_print instead
7466 of "current_language". Replace call to ada_val_print by call
7468 (print_variant_part): Add "language" parameter.
7469 (ada_val_print_struct_union): Update call to print_field_values.
7471 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7473 * ada-valprint.c (ui_memcpy): Delete.
7474 (ada_print_floating): Update documentation. Add empty line
7475 between between function documentation and implementation.
7476 Delete variable "buffer". Use ui_file_xstrdup in place of
7477 ui_file_put. Minor adjustments following this change.
7479 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7481 * ada-valprint.c (ada_val_print_string): New function,
7482 extracted from ada_val_print_array.
7483 (ada_val_print_array): Replace extracted code by call
7484 to ada_val_print_string followed by a return. Move
7485 "else" branch to the function's top block.
7487 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7489 * ada-valprint.c (ada_val_print_array): Move implementation
7490 down. Rename parameter "offset" and "val" into "offset_aligned"
7491 and "original_value" respectively. Add parameter "offset".
7493 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7495 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
7496 re-organizing the code. Change the "???" message printed
7497 when target type is a TYPE_CODE_UNDEF into
7498 "<ref to undefined type>".
7500 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7502 * ada-valprint.c (print_record): Delete, implementation inlined...
7503 (ada_val_print_struct_union): ... here. Remove call to
7504 ada_check_typedef in inlined implementation.
7506 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7508 * ada-valprint.c (ada_val_print_gnat_array): New function,
7509 extracted from ada_val_print_1;
7510 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
7511 (ada_val_print_flt, ada_val_print_struct_union)
7512 (ada_val_print_ref): Likewise.
7513 (ada_val_print_1): Delete variables i and elttype.
7514 Replace extracted-out code by call to corresponding
7517 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7519 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
7521 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7523 * ada-valprint.c (ada_val_print_1): Replace calls to
7524 ada_val_print_1 by calls to val_print.
7526 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7528 * ada-valprint.c (ada_val_print_1): Add parameter "language".
7529 Update calls to self accordingly. Replace calls to c_val_print
7530 by calls to val_print.
7532 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7534 * ada-valprint.c (print_record): Delete declaration.
7535 (adjust_type_signedness, ada_val_print_1): Likewise.
7536 (ada_val_print): Move function implementation down.
7537 (print_variant_part, print_field_values, print_record):
7538 Move function implementation up.
7540 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7542 * python/py-type.c (typy_get_name): New function.
7543 (type_object_getset): Add entry for attribute "name".
7544 * NEWS: Add entry mentioning this new attribute.
7546 2014-01-07 Yao Qi <yao@codesourcery.com>
7548 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
7551 2014-01-07 Yao Qi <yao@codesourcery.com>
7553 * gnu-nat.c (info_port_rights): Add qualifier const to
7556 2014-01-07 Yao Qi <yao@codesourcery.com>
7558 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
7560 2014-01-07 Yao Qi <yao@codesourcery.com>
7562 * gnu-nat.c (make_inf) Update declaration.
7563 (make_inf): Make it static.
7564 (inf_set_traced): Likewise.
7565 (inf_port_to_thread, inf_task_died_status): Likewise.
7567 2014-01-07 Yao Qi <yao@codesourcery.com>
7569 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
7571 2014-01-07 Yao Qi <yao@codesourcery.com>
7573 * gnu-nat.c (_initialize_gnu_nat): Declare.
7575 2014-01-07 Yao Qi <yao@codesourcery.com>
7577 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
7579 (struct gdbarch_info) <byte_order>: Change type to
7581 <byte_order_for_code>: Likewise.
7582 * gdbarch.c, gdbarch.h: Regenerated.
7584 2014-01-06 Sasha Smundak <asmundak@google.com>
7586 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
7588 2014-01-06 Tom Tromey <tromey@redhat.com>
7590 * doublest.c (convert_doublest_to_floatformat): Use const, not
7592 * somread.c (som_symtab_read): Likewise.
7594 2014-01-07 Hui Zhu <hui@codesourcery.com>
7596 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
7597 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
7598 (gdb_bfd_fopen): Ditto.
7599 (gdb_bfd_openr): Ditto.
7600 (gdb_bfd_openw): Ditto.
7601 (gdb_bfd_openr_iovec): Ditto.
7602 (gdb_bfd_fdopenr): Ditto.
7603 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
7604 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
7606 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
7608 * symfile-mem.c (symbol_file_add_from_memory): Removed
7609 gdb_bfd_stash_filename.
7611 2014-01-03 Doug Evans <dje@google.com>
7613 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
7616 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7618 Update year range in copyright notice of all files.
7620 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7622 * top.c (print_gdb_version): Set copyright year to 2014.
7624 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7626 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
7628 For older changes see ChangeLog-2013.
7634 version-control: never