1 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3 Fix TLS access for -static -pthread.
4 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5 (try_thread_db_load_1): Initialize it.
6 (thread_db_get_thread_local_address): Call it if LM is zero.
7 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8 * target.h (struct target_ops) (to_get_thread_local_address): Add
9 load_module_addr comment.
11 2014-05-21 Pedro Alves <palves@redhat.com>
13 * dcache.c (dcache_read_memory_partial): If reading the cache line
14 fails, fallback to reading just the memory the caller wanted.
16 2014-05-20 Doug Evans <dje@google.com>
18 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
19 instead of get_current_arch.
21 2014-05-20 Pedro Alves <palves@redhat.com>
23 * NEWS: Mention that compare-sections now works with all targets.
25 * remote.c (PACKET_qCRC): New enum value.
26 (remote_verify_memory): Don't send qCRC if the target has no
27 execution. Use packet_support/packet_ok. If the target doesn't
28 support the qCRC packet, fallback to a deep memory copy.
29 (compare_sections_command): Say "target image" instead of "remote
31 (_initialize_remote): Add PACKET_qCRC to the list of config
32 packets that have no associated command. Extend comment.
33 * target.c (simple_verify_memory, default_verify_memory): New
35 * target.h (struct target_ops) <to_verify_memory>: Default to
36 default_verify_memory.
37 (simple_verify_memory): New declaration.
38 * target-delegates.c: Regenerate.
40 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
42 * record-btrace.c (record_btrace_step_thread): Check for empty history.
44 2014-05-20 Hui Zhu <hui@codesourcery.com>
45 Yao Qi <yao@codesourcery.com>
48 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
49 and change address of sp and pc.
51 2014-05-19 Tom Tromey <tromey@redhat.com>
53 * gdbtypes.c (rank_function): Use XNEWVEC.
54 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
56 2014-05-19 Doug Evans <dje@google.com>
58 * dwarf2read.c (build_type_psymtabs_1): Renamed from
59 build_type_unit_groups and moved closer to only caller. Remove
60 arguments. All references updated. Remove outdated .gdb_index
62 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
63 build_type_psymtabs_1.
65 2014-05-19 Doug Evans <dje@google.com>
67 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
68 n_type_unit_groups, all_type_unit_groups. All uses removed.
69 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
70 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
71 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
72 (add_type_unit_group_to_table): Delete.
74 2014-05-19 Doug Evans <dje@google.com>
76 * eval.c (evaluate_subexp_standard): Add some comments.
78 2014-05-17 Doug Evans <xdje42@gmail.com>
80 * progspace.c (remove_program_space): Delete, unused.
81 * progspace.h (remove_program_space): Ditto.
83 2014-05-17 Doug Evans <xdje42@gmail.com>
85 * inferior.c (prune_inferiors): Fix comment.
86 (remove_inferior_command): Call prune_program_spaces.
88 2014-05-16 Doug Evans <dje@google.com>
90 New command line option -D.
92 * main.c (set_gdb_data_directory): New function.
93 (captured_main): Recognize -D. Flag error for --data-directory "".
94 Call set_gdb_data_directory.
95 (print_gdb_help): Print --data-directory, -D.
96 * main.h (set_gdb_data_directory): Declare.
97 * top.c (staged_gdb_datadir): New static global.
98 (set_gdb_datadir): Call set_gdb_data_directory
99 (show_gdb_datadir): New function.
100 (init_main): Update init of data-directory parameter.
102 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
104 Import the "dirfd" gnulib module.
105 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
106 * gnulib/aclocal.m4: Update.
107 * gnulib/config.in: Update.
108 * gnulib/configure: Update.
109 * gnulib/import/Makefile.am: Update.
110 * gnulib/import/Makefile.in: Update.
111 * gnulib/import/dirfd.c: New.
112 * gnulib/import/m4/dirfd.m4: New.
113 * gnulib/import/m4/gnulib-cache.m4: Update.
114 * gnulib/import/m4/gnulib-comp.m4: Update.
116 2014-05-16 Pierre Muller <muller@sourceware.org>
117 Yao Qi <yao@codesourcery.com>
119 * valprint.c (print_wchar): Move the code on checking whether
120 W is a printable wide char to the default branch of switch
121 statement below. Call wchar_printable instead of gdb_iswprint.
123 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
125 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
126 ldr.w and ldrd instructions.
128 2014-05-15 Doug Evans <dje@google.com>
130 * dwarf2read.c (read_structure_type): Delete outdated comments.
132 2014-05-14 Tom Tromey <tromey@redhat.com>
134 * macrocmd.c (print_macro_definition): Reindent.
136 2014-05-13 Doug Evans <xdje42@gmail.com>
138 * python/py-cmd.c (cmdpy_completer): Add comment.
139 (completers): Make const.
141 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
143 * infrun.c (resume): Remove should_resume (unused). Move up
144 declaration of resume_ptid.
146 2014-05-13 Tom Tromey <tromey@redhat.com>
148 * language.h (unop_type_check): Remove.
149 (binop_type_check): Don't declare.
151 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
153 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
154 call to regcache_raw_collect.
156 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
158 * mi/mi-console.c (mi_console_raw_packet): Use the value from
159 mi_console->quote as the quoting character.
161 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
163 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
165 2014-04-29 Tom Tromey <tromey@redhat.com>
167 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
170 2014-05-07 Kyle McMartin <kyle@redhat.com>
172 Pushed by Joel Brobecker <brobecker@adacore.com>.
173 * aarch64-tdep.c (aarch64_software_single_step): New function.
174 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
175 with aarch64_software_single_step.
177 2014-05-05 Joel Brobecker <brobecker@adacore.com>
181 2014-05-05 Keith Seitz <keiths@redhat.com>
183 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
184 variable or history value is successfully parsed.
186 2014-05-05 Yao Qi <yao@codesourcery.com>
187 Pedro Alves <palves@redhat.com>
189 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
190 address of blocks that intersects the requested range. Trim
191 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
193 * ctf.c (ctf_xfer_partial): Likewise.
195 2014-05-05 Yao Qi <yao@codesourcery.com>
197 * printcmd.c (display_command): Remove the check to
198 target_has_execution.
200 2014-05-03 Mark Kettenis <kettenis@gnu.org>
202 * ppcobsd-nat.c: Include "obsd-nat.h".
203 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
205 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
207 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
209 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
210 and 16-bit signed and unsigned arguments. Update comment.
211 (stap_parse_probe_arguments): Extend code to handle such
212 arguments. Use warning instead of complaint to notify about
213 unrecognized bitness.
215 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
218 * stap-probe.c (stap_parse_probe_arguments): Simplify
219 check for non-prefixed probes (i.e., probes whose
220 arguments do not start with "N@"). Always set the
221 argument type to a sane value.
223 2014-05-01 David Taylor <dtaylor@emc.com>
225 * remote.c (compare_sections_command): Add -r option to compare
226 all loadable read-only sections.
228 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
230 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
231 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
233 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
234 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
235 Remove unused CORE_ADDR argument. Update all callers.
237 2014-04-29 Pedro Alves <palves@redhat.com>
239 * remote.c (struct packet_config) <detect>: Extend comment.
240 (add_packet_config_cmd): Don't set the config's detect or support
242 (init_all_packet_configs): Also initialize the config's 'detect'
244 (reset_all_packet_configs_support): New function.
245 (remote_open_1): Call reset_all_packet_configs_support instead of
246 init_all_packet_configs.
247 (_initialize_remote): Initialize all packet configs. Assert that
248 all packets have an associated command, except a few known
251 2014-04-28 Joel Brobecker <brobecker@adacore.com>
253 * dwarf2read.c (read_subrange_type): Handle dynamic
254 DW_AT_lower_bound attributes.
256 2014-04-28 Joel Brobecker <brobecker@adacore.com>
258 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
259 dynamic bounds before computing its upper bound.
260 (ada_discrete_type_low_bound): Same as above with the lower bound.
262 2014-04-28 Joel Brobecker <brobecker@adacore.com>
264 * dwarf2read.c (is_dynamic_type): Return true for dynamic
265 range types. Adjust the array handling implementation to
266 take advantage of this change.
267 (resolve_dynamic_range): New function, mostly extracted from
268 resolve_dynamic_bounds.
269 (resolve_dynamic_array): New function, mostly extracted from
270 resolve_dynamic_bounds.
271 (resolve_dynamic_bounds): Delete.
272 (resolve_dynamic_type): Reimplement. Add handling of
273 TYPE_CODE_RANGE types.
275 2014-04-28 Joel Brobecker <brobecker@adacore.com>
277 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
278 handling of parallel ___XA types.
280 2014-04-28 Joel Brobecker <brobecker@adacore.com>
282 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
283 unnecessary second call to static_unwrap_type.
285 2014-04-27 Hui Zhu <hui@codesourcery.com>
287 * stack.c (print_frame_info): Call do_gdb_disassembly with
288 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
290 2014-04-26 Doug Evans <xdje42@gmail.com>
292 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
294 2014-04-25 Pedro Alves <palves@redhat.com>
297 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
298 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
299 and newline from built string.
300 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
301 (linux_ptrace_attach_fail_reason): ... this.
302 * linux-nat.c (linux_nat_attach): Adjust to use
303 linux_ptrace_attach_fail_reason.
305 2014-04-25 Pedro Alves <palves@redhat.com>
307 * remote.c (struct remote_state): Remove multi_process_aware,
308 non_stop_aware, cond_tracepoints, cond_breakpoints,
309 breakpoint_commands, fast_tracepoints, static_tracepoints,
310 install_in_trace, disconnected_tracing,
311 enable_disable_tracepoints, string_tracing, and
312 augmented_libraries_svr4_read fields.
313 (remote_multi_process_p): Move further below in the file.
314 (struct packet_config): Add comments.
315 (update_packet_config): Delete function.
316 (show_packet_config_cmd): Use packet_config_support.
317 (add_packet_config_cmd): Use NULL as set callback.
318 (packet_ok): "set remote foo-packet"-style commands no longer
319 change config->supported -- adjust.
320 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
321 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
322 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
323 (PACKET_QNonStop, PACKET_multiprocess_feature)
324 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
325 (PACKET_DisconnectedTracing_feature)
326 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
327 (set_remote_protocol_packet_cmd): Delete function.
328 (packet_config_support, packet_support): New functions.
329 (set_remote_protocol_Z_packet_cmd): Don't call
330 update_packet_config.
331 (remote_query_attached, remote_pass_signals)
332 (remote_program_signals, remote_threads_info)
333 (remote_threads_extra_info, remote_start_remote): Use
335 (remote_start_remote): Use packet_config_support and
337 (init_all_packet_configs): Set all packets to unknown support,
338 instead of calling update_packet_config.
339 (remote_check_symbols): Use packet_support.
340 (remote_supported_packet): Unconditionally set the packet config's
342 (remote_multi_process_feature, remote_non_stop_feature)
343 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
344 (remote_breakpoint_commands_feature)
345 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
346 (remote_install_in_trace_feature)
347 (remote_disconnected_tracing_feature)
348 (remote_enable_disable_tracepoint_feature)
349 (remote_string_tracing_feature)
350 (remote_augmented_libraries_svr4_read_feature): Delete functions.
351 (remote_protocol_features): Adjust to use remote_supported_packet
352 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
353 "ConditionalTracepoints", "ConditionalBreakpoints",
354 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
355 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
356 "EnableDisableTracepoints", and "tracenz".
357 (remote_query_supported): Use packet_support.
358 (remote_open_1): Adjust.
359 (extended_remote_attach_1): Use packet_support. Switch on the
360 result of packet_ok instead of checking whether the packet ended
362 (remote_vcont_resume): Use packet_support.
363 (remote_resume, remote_stop_ns, fetch_register_using_p)
364 (remote_prepare_to_store, store_register_using_P)
365 (check_binary_download, remote_write_bytes): Use packet_support.
366 (remote_vkill): Use packet_support. Switch on the result of
367 packet_ok instead of checking whether the packet ended up
369 (extended_remote_supports_disable_randomization): Use
371 (extended_remote_run): Switch on the result of packet_ok instead
372 of checking whether the packet ended up disabled.
373 (remote_insert_breakpoint, remote_remove_breakpoint)
374 (remote_insert_watchpoint, remote_remove_watchpoint)
375 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
377 (remote_search_memory): Use packet_config_support.
378 (remote_get_thread_local_address, remote_get_tib_address)
379 (remote_hostio_send_command, remote_can_execute_reverse): Use
381 (remote_supports_cond_tracepoints)
382 (remote_supports_cond_breakpoints)
383 (remote_supports_fast_tracepoints)
384 (remote_supports_static_tracepoints)
385 (remote_supports_install_in_trace)
386 (remote_supports_enable_disable_tracepoint)
387 (remote_supports_string_tracing)
388 (remote_can_run_breakpoint_commands): Rewrite, checking whether
389 the packet config says the feature is enabled or disabled.
390 (remote_download_tracepoint, remote_trace_set_readonly_regions)
391 (remote_get_trace_status): Use packet_support.
392 (remote_set_disconnected_tracing): Adjust to check whether the
393 feature is enabled with packet_support.
394 (remote_set_trace_buffer_size, remote_use_agent)
395 (remote_can_use_agent, remote_supports_btrace): Use
397 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
398 Use packet_config_support.
399 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
400 the packet config says the feature is enabled or disabled.
401 (set_range_stepping): Use packet_support.
403 2014-04-25 Tom Tromey <tromey@redhat.com>
405 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
408 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
410 * NEWS: Mention support for C99 variable length arrays.
412 2014-04-24 Joel Brobecker <brobecker@adacore.com>
414 * ada-lang.c (standard_exc): Expand introductory comment.
416 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
417 Walfred Tedeschi <walfred.tedeschi@intel.com>
419 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
421 (amd64_linux_read_description): Add code to handle AVX512 xstate
422 mask and return respective tdesc.
423 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
424 and features/i386/x32-avx512-linux.c.
425 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
426 (amd64_linux_core_read_description): Add code to handle AVX512
427 xstate mask and return respective tdesc.
428 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
429 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
431 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
432 (tdesc_amd64_avx512_linux): New prototype.
433 (tdesc_x32_avx512_linux): Likewise.
434 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
435 features/i386/x32-avx512.c.
436 (amd64_ymm_avx512_names): New register names for pseudo
438 (amd64_ymmh_avx512_names): New register names for raw registers
440 (amd64_k_names): New register names for K registers.
441 (amd64_zmmh_names): New register names for ZMM raw registers.
442 (amd64_zmm_names): New registers names for ZMM pseudo registers.
443 (amd64_xmm_avx512_names): New register names for XMM16-31
445 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
447 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
448 if feature is present.
449 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
450 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
451 (AMD64_NUM_REGS): Adjust to new number of registers.
452 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
453 registers supplied via XSTATE by AVX512 registers.
454 (i386_linux_read_description): Add case for AVX512.
455 * i386-linux-tdep.c: Include i386-avx512-linux.c.
456 (i386_linux_gregset_reg_offset): Add AVX512 registers.
457 (i386_linux_core_read_description): Add case for AVX512.
458 (i386_linux_init_abi): Install supported register note section
460 (_initialize_i386_linux_tdep): Add call to tdesc init function for
462 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
463 registers to be number of zmm7h + 1.
464 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
465 * i386-tdep.c: Include features/i386/i386-avx512.c.
466 (i386_zmm_names): Add ZMM pseudo register names array.
467 (i386_zmmh_names): Add ZMM raw register names array.
468 (i386_k_names): Add K raw register names array.
469 (num_lower_zmm_regs): Add constant for the number of lower ZMM
470 registers. AVX512 has 16 more ZMM registers than there are YMM
472 (i386_zmmh_regnum_p): Add function to look up register number of
474 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
475 (i386_k_regnum_p): Likewise for K raw registers.
476 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
477 registers added by AVX512.
478 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
479 registers added by AVX512.
480 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
482 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
483 (i386_pseudo_register_name): Add ZMM pseudo registers.
484 (i386_zmm_type): Construct and return vector registers type for ZMM
486 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
487 ZMM0-31 pseudo registers and K registers.
488 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
489 and YMM16-31 registers from register cache.
490 (i386_pseudo_register_write): Add code to write K, ZMM and
492 (i386_register_reggroup_p): Add code to include/exclude AVX512
493 registers in/from respective register groups.
494 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
495 registers if feature is present in xcr0.
496 (i386_gdbarch_init): Add code to initialize AVX512 feature
497 variables in tdep structure, wire in pseudo registers and call
498 initialize_tdesc_i386_avx512.
499 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
501 (i386_regnum): Add AVX512 registers.
502 (I386_SSE_NUM_REGS): New define for number of SSE registers.
503 (I386_AVX_NUM_REGS): Likewise for AVX registers.
504 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
505 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
507 (i386_xmm_avx512_regnum_p): New prototype for register look up.
508 (i386_ymm_avx512_regnum_p): Likewise.
509 (i386_k_regnum_p): Likewise.
510 (i386_zmm_regnum_p): Likewise.
511 (i386_zmmh_regnum_p): Likewise.
512 * i387-tdep.c : Update year in copyright notice.
513 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
515 (XSAVE_YMM_AVX512_ADDR): New macro.
516 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
518 (XSAVE_XMM_AVX512_ADDR): New macro.
519 (xsave_avx512_k_offset): New table for K register offsets in
521 (XSAVE_AVX512_K_ADDR): New macro.
522 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
524 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
525 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
527 (i387_collect_xsave): Add code to collect AVX512 registers from
529 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
530 of XMM16-31 registers.
531 (I387_NUM_K_REGS): New define for number of K registers.
532 (I387_K0_REGNUM): New define for K0 register number.
533 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
534 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
535 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
537 (I387_YMM16H_REGNUM): New define for YMM16H register number.
538 (I387_XMM16_REGNUM): New define for XMM16 register number.
539 (I387_YMM0_REGNUM): New define for YMM0 register number.
540 (I387_KEND_REGNUM): New define for last K register number.
541 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
542 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
544 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
546 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
548 * features/Makefile: Add AVX512 related files.
549 * features/i386/32bit-avx512.xml: New file.
550 * features/i386/64bit-avx512.xml: Likewise.
551 * features/i386/amd64-avx512-linux.c: Likewise.
552 * features/i386/amd64-avx512-linux.xml: Likewise.
553 * features/i386/amd64-avx512.c: Likewise.
554 * features/i386/amd64-avx512.xml: Likewise.
555 * features/i386/i386-avx512-linux.c: Likewise.
556 * features/i386/i386-avx512-linux.xml: Likewise.
557 * features/i386/i386-avx512.c: Likewise.
558 * features/i386/i386-avx512.xml: Likewise.
559 * features/i386/x32-avx512-linux.c: Likewise.
560 * features/i386/x32-avx512-linux.xml: Likewise.
561 * features/i386/x32-avx512.c: Likewise.
562 * features/i386/x32-avx512.xml: Likewise.
563 * regformats/i386/amd64-avx512-linux.dat: New file.
564 * regformats/i386/amd64-avx512.dat: Likewise.
565 * regformats/i386/i386-avx512-linux.dat: Likewise.
566 * regformats/i386/i386-avx512.dat: Likewise.
567 * regformats/i386/x32-avx512-linux.dat: Likewise.
568 * regformats/i386/x32-avx512.dat: Likewise.
569 * NEWS: Add note about new support for AVX512.
572 2014-04-23 Pedro Alves <palves@redhat.com>
574 * breakpoint.c (insert_bp_location): Tolerate errors if the
575 breakpoint is set in a user-loaded objfile.
576 (remove_breakpoint_1): Likewise. Also tolerate errors if the
577 location is marked shlib_disabled. If the breakpoint is set in a
578 user-loaded objfile is a GDB-side memory breakpoint, validate it
579 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
580 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
582 * mem-break.c (memory_validate_breakpoint): New function.
583 * objfiles.c (userloaded_objfile_contains_address_p): New
585 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
586 * target.h (memory_validate_breakpoint): New declaration.
588 2014-04-23 Pedro Alves <palves@redhat.com>
590 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
591 the breakpoint is set in a shared library, only suppress
592 errors for software breakpoints, not hardware breakpoints.
594 2014-04-22 Pedro Alves <palves@redhat.com>
596 * infrun.c (schedlock_applies): New function, factored out from
597 find_thread_needs_step_over.
598 (find_thread_needs_step_over): Use it.
599 (switch_back_to_stepped_thread): Always clear trap_expected if the
600 step over is finished. Return early if scheduler locking applies.
601 Look for the stepping thread and a potential step-over thread with
603 (currently_stepping_or_nexting_callback): Delete.
605 2014-04-22 Nick Clifton <nickc@redhat.com>
607 * NEWS: Mention that ARM sim now supports tracing.
609 2014-04-22 Yao Qi <yao@codesourcery.com>
611 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
613 * tracefile.c (tracefile_fetch_registers): ... it. New
615 * tracefile.h (tracefile_fetch_registers): Declare.
616 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
617 tracefile_fetch_registers.
619 2014-04-19 Eli Zaretskii <eliz@gnu.org>
622 * windows-nat.c (thread_rec): Don't display a warning when
623 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
624 fails for any reason, set th->suspended to -1, so that we don't
625 try to resume such a thread. Also, don't return NULL in these
626 cases, to avoid completely ruin the session due to "PC register is
627 not available" error.
628 (do_windows_fetch_inferior_registers): Check errors in
629 GetThreadContext call.
630 (windows_continue): Accept an additional argument KILLED; if not
631 zero, ignore errors in the SetThreadContext call, since the
632 inferior was killed and is shutting down.
633 (windows_resume, get_windows_debug_event)
634 (windows_create_inferior, windows_mourn_inferior)
635 (windows_kill_inferior): All callers of windows_continue changed
636 to adjust to its new calling sequence.
638 2014-04-19 Yao Qi <yao@codesourcery.com>
640 * ctf.c (ctf_open): Call post_create_inferior.
642 2014-04-19 Yao Qi <yao@codesourcery.com>
644 * ctf.c (handle_id): New static variable.
645 (ctf_open_dir): Get handle_id from bt_context_add_trace return
646 value. Get the declaration of event "register" and get length
649 2014-04-19 Yao Qi <yao@codesourcery.com>
651 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
653 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
655 * valops.c (oload_method_static): Remove unnecessary argument
656 METHOD. Update all callers.
658 2014-04-18 Pedro alves <palves@redhat.com>
659 Tom Tromey <tromey@redhat.com>
662 * frame.c (get_prev_frame_1): Rename to ...
663 (get_prev_frame_always): ... this, and make extern. Adjust.
664 (skip_artificial_frames): Use get_prev_frame_always.
665 (frame_unwind_caller_id, frame_pop, get_prev_frame)
666 (get_frame_unwind_stop_reason): Adjust to rename.
667 * frame.h (get_prev_frame_always): Declare.
668 * inline-frame.c: Include frame.h.
669 (inline_frame_this_id): Use get_prev_frame_always.
671 2014-04-18 Tristan Gingold <gingold@adacore.com>
673 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
674 code by using bfd_mach_o_get_base_address.
676 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
678 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
679 (spu_ax_pseudo_register_collect): New function.
680 (spu_ax_pseudo_register_push_stack): Likewise.
681 (spu_dwarf_reg_to_regnum): Likewise.
682 (spu_gdbarch_init): Install them. Append DWARF unwinders.
684 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
686 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
687 Replace FRAME argument with FRAME_ID.
688 * gdbarch.c, gdbarch.h: Regenerate.
689 * findvar.c (default_value_from_register): Add GDBARCH argument;
690 replace FRAME by FRAME_ID. No longer call get_frame_id.
691 (value_from_register): Update call to gdbarch_value_from_register.
692 * value.h (default_value_from_register): Update prototype.
693 * s390-linux-tdep.c (s390_value_from_register): Update interface
694 and call to default_value_from_register.
695 * spu-tdep.c (spu_value_from_register): Likewise.
697 * findvar.c (address_from_register): Remove TYPE argument.
698 Do not call value_from_register; use gdbarch_value_from_register
699 with null_frame_id instead.
700 * value.h (address_from_register): Update prototype.
701 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
702 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
703 address_from_register interface change.
705 2014-04-17 Yao Qi <yao@codesourcery.com>
707 * gdbtypes.h: Update comments to link to types and macros'
710 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
712 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
714 2014-04-16 Keith Seitz <keiths@redhat.com>
717 * dwarf2read.c (skip_one_die): Check that all relative-offset
718 sibling DIEs fall within range of the current reader's buffer.
719 (read_partial_die): Likewise.
721 2014-04-16 Keith Seitz <keiths@redhat.com>
724 * cp-namespace.c (lookup_symbol_file): If the type name of
725 `this' is NULL, return immediately.
727 2014-04-14 Keith Seitz <keiths@redhat.com>
730 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
731 from symbol_matches_domain in symtab.c. All local callers
732 of symbol_matches_domain updated.
733 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
734 search STRUCT_DOMAIN.
735 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
736 independently. standard_lookup will do that automatically.
737 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
738 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
739 (cp_lookup_symbol_in_namespace): Likewise.
740 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
741 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
742 may return a STRUCT_DOMAIN match.
743 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
744 * cp-support.c: Include language.h.
745 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
747 * psymtab.c (match_partial_symbol): Compare the requested
748 domain with the symbol's domain directly.
749 (lookup_partial_symbol): Likewise.
750 * symtab.c (lookup_symbol_in_language): Explain when/why
751 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
752 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
753 appropriate languages.
754 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
755 and moved to ada-lang.c
756 (lookup_block_symbol): Explain that this function only returns
757 symbol matching the requested DOMAIN.
758 Compare the requested domain with the symbol's domain directly.
759 (iterate_over_symbols): Compare the requested domain with the
760 symbol's domain directly.
761 * symtab.h (symbol_matches_domain): Remove.
763 2014-04-14 Tom Tromey <tromey@redhat.com>
766 * c-exp.y (type_aggregate_p): New function.
767 (qualified_name, classify_inner_name): Use it.
768 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
769 and TYPE_TARGET_TYPE of an enum type.
770 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
772 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
773 handle TYPE_DECLARED_CLASS.
774 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
776 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
777 * valops.c (enum_constant_from_type): New function.
778 (value_aggregate_elt): Use it.
779 * cp-namespace.c (cp_lookup_nested_symbol): Handle
782 2014-04-14 Tom Tromey <tromey@redhat.com>
784 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
785 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
787 * value.h (value_aggregate_elt): Update.
789 2014-04-14 Tom Tromey <tromey@redhat.com>
791 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
793 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
795 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
796 (evaluate_subexp_standard): Pass noside argument.
797 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
798 if noside equals EVAL_NORMAL. If the subscript yields a vla type
799 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
800 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
801 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
803 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
805 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
806 points to a constant blob.
808 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
810 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
811 property and store it as the high bound and flag the range accordingly.
812 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
813 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
814 * gdbtypes.h (enum range_flags): New enum.
815 (struct range_bounds): Add flags member.
817 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
819 * c-typeprint.c (c_type_print_varspec_suffix): Added
820 check for not yet resolved high bound. If unresolved, print
821 "variable length" string to the console instead of random
824 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
826 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
828 (ada_template_to_fixed_record_type_1): Likewise.
829 (ada_to_fixed_type_1): Likewise.
830 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
831 (cp_print_value): Likewise.
832 * d-valprint.c (dynamic_array_type): Likewise.
833 * findvar.c (address_of_variable): Likewise.
834 * jv-valprint.c (java_value_print): Likewise.
835 * valops.c (value_ind): Likewise.
836 * value.c (coerce_ref): Likewise.
838 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
840 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
841 value and retrieve the dynamic type size.
843 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
845 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
846 passed to sizeof is dynamic evaluate the argument to compute the length.
848 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
849 Joel Brobecker <brobecker@adacore.com>
851 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
852 (dwarf2_evaluate_property): New function.
853 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
854 * dwarf2read.c (attr_to_dynamic_prop): New function.
855 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
857 * gdbtypes.c: Include dwarf2loc.h.
858 (is_dynamic_type): New function.
859 (resolve_dynamic_type): New function.
860 (resolve_dynamic_bounds): New function.
861 (get_type_length): New function.
862 (check_typedef): Use get_type_length to compute type length.
863 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
864 (TYPE_LOW_BOUND_KIND): New macro.
865 (is_dynamic_type): New function prototype.
866 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
867 to resolve dynamic properties of the type. Update comment.
868 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
870 2014-04-14 Richard Henderson <rth@redhat.com>
872 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
874 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
875 Doug Evans <xdje42@gmail.com>
877 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
878 dereference TYPE_CODE_REF values.
880 2014-04-11 Joel Brobecker <brobecker@adacore.com>
882 Revert the following changes due to regressions:
884 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
885 (dwarf2_evaluate_property): New function.
886 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
887 * dwarf2read.c (attr_to_dynamic_prop): New function.
888 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
890 * gdbtypes.c: Include dwarf2loc.h.
891 (is_dynamic_type): New function.
892 (resolve_dynamic_type): New function.
893 (resolve_dynamic_bounds): New function.
894 (get_type_length): New function.
895 (check_typedef): Use get_type_length to compute type length.
896 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
897 (TYPE_LOW_BOUND_KIND): New macro.
898 (is_dynamic_type): New function prototype.
899 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
900 to resolve dynamic properties of the type. Update comment.
901 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
903 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
904 passed to sizeof is dynamic evaluate the argument to compute the length.
906 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
907 value and retrieve the dynamic type size.
909 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
910 (ada_template_to_fixed_record_type_1): Likewise.
911 (ada_to_fixed_type_1): Likewise.
912 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
913 (cp_print_value): Likewise.
914 * d-valprint.c (dynamic_array_type): Likewise.
915 * eval.c (evaluate_subexp_with_coercion): Likewise.
916 * findvar.c (address_of_variable): Likewise.
917 * jv-valprint.c (java_value_print): Likewise.
918 * valops.c (value_ind): Likewise.
919 * value.c (coerce_ref): Likewise.
921 * c-typeprint.c (c_type_print_varspec_suffix): Added
922 check for not yet resolved high bound. If unresolved, print
923 "variable length" string to the console instead of random
926 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
927 property and store it as the high bound and flag the range accordingly.
928 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
929 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
930 * gdbtypes.h (enum range_flags): New enum.
931 (struct range_bounds): Add flags member.
933 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
934 points to a constant blob.
936 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
937 (evaluate_subexp_standard): Pass noside argument.
938 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
939 if noside equals EVAL_NORMAL. If the subscript yields a vla type
940 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
941 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
942 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
944 2014-04-11 Keith Seitz <keiths@redhat.com>
947 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
948 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
951 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
953 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
954 (evaluate_subexp_standard): Pass noside argument.
955 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
956 if noside equals EVAL_NORMAL. If the subscript yields a vla type
957 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
958 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
959 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
961 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
963 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
964 points to a constant blob.
966 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
968 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
969 property and store it as the high bound and flag the range accordingly.
970 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
971 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
972 * gdbtypes.h (enum range_flags): New enum.
973 (struct range_bounds): Add flags member.
975 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
977 * c-typeprint.c (c_type_print_varspec_suffix): Added
978 check for not yet resolved high bound. If unresolved, print
979 "variable length" string to the console instead of random
982 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
984 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
985 (ada_template_to_fixed_record_type_1): Likewise.
986 (ada_to_fixed_type_1): Likewise.
987 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
988 (cp_print_value): Likewise.
989 * d-valprint.c (dynamic_array_type): Likewise.
990 * eval.c (evaluate_subexp_with_coercion): Likewise.
991 * findvar.c (address_of_variable): Likewise.
992 * jv-valprint.c (java_value_print): Likewise.
993 * valops.c (value_ind): Likewise.
994 * value.c (coerce_ref): Likewise.
996 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
998 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
999 value and retrieve the dynamic type size.
1001 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1003 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1004 passed to sizeof is dynamic evaluate the argument to compute the length.
1006 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1008 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1009 (dwarf2_evaluate_property): New function.
1010 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1011 * dwarf2read.c (attr_to_dynamic_prop): New function.
1012 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1014 * gdbtypes.c: Include dwarf2loc.h.
1015 (is_dynamic_type): New function.
1016 (resolve_dynamic_type): New function.
1017 (resolve_dynamic_bounds): New function.
1018 (get_type_length): New function.
1019 (check_typedef): Use get_type_length to compute type length.
1020 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1021 (TYPE_LOW_BOUND_KIND): New macro.
1022 (is_dynamic_type): New function prototype.
1023 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1024 to resolve dynamic properties of the type. Update comment.
1025 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1027 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1029 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
1030 declaring high/low bounds and change uses accordingly. Call
1031 create_range_type instead of create_static_range_type.
1032 * gdbtypes.c (create_range_type): New function.
1033 (create_range_type): Convert bounds into struct bound_prop and pass
1034 them to create_range_type.
1035 * gdbtypes.h (struct bound_prop): New struct.
1036 (create_range_type): New function prototype.
1037 (struct range_bounds): Use struct bound_prop instead of LONGEST for
1038 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
1039 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
1041 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
1043 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1045 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
1046 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
1047 * ada-lang.c: All uses of create_range_type updated.
1048 * coffread.c: All uses of create_range_type updated.
1049 * dwarf2read.c: All uses of create_range_type updated.
1050 * f-exp.y: All uses of create_range_type updated.
1051 * m2-valprint.c: All uses of create_range_type updated.
1052 * mdebugread.c: All uses of create_range_type updated.
1053 * stabsread.c: All uses of create_range_type updated.
1054 * valops.c: All uses of create_range_type updated.
1055 * valprint.c: All uses of create_range_type updated.
1057 2014-04-10 Pedro Alves <palves@redhat.com>
1059 * breakpoint.c (single_step_breakpoints)
1060 (single_step_gdbarch): Move up in the file.
1061 (one_breakpoint_xfer_memory): New function, factored out from ...
1062 (breakpoint_xfer_memory): ... here. Also process single-step
1065 2014-04-09 Tristan Gingold <gingold@adacore.com>
1067 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
1069 (darwin_decode_exception_message): Free port only after use.
1071 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
1073 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
1074 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
1075 when setting the size of call_length.
1077 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
1079 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
1080 dereference TYPE_CODE_REF values.
1082 2014-04-07 Joel Brobecker <brobecker@adacore.com>
1084 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
1085 end of warning message.
1087 2014-04-03 Doug Evans <dje@google.com>
1089 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
1090 of stub_comp_unit_die, stub_comp_dir is non-NULL.
1092 2014-04-02 Alan Modra <amodra@gmail.com>
1094 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
1095 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
1096 (struct symbol_file_add_from_memory_args): Add size field.
1097 (find_vdso_size): New function.
1098 (add_vsyscall_page): Attempt to find vdso size.
1100 2014-04-01 Doug Evans <dje@google.com>
1102 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
1104 2014-04-01 Tristan Gingold <gingold@adacore.com>
1106 * darwin-nat.c (darwin_encode_reply): Add prototype.
1107 (darwin_decode_exception_message): Reply to unknown inferiors.
1108 (darwin_decode_message): Handle message by id. Ignore message
1109 to unknown inferior.
1110 (darwin_wait): Discard unknown messages, add debug trace.
1112 2014-03-31 Doug Evans <dje@google.com>
1114 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
1117 2014-03-31 Doug Evans <dje@google.com>
1119 New option "set print symbol-loading".
1121 * solib.c (solib_read_symbols): Only print symbol loading messages
1123 (solib_add): If symbol loading is in "brief" mode, notify user
1124 symbols are being loaded.
1125 (reload_shared_libraries_1): Ditto.
1126 * symfile.c (print_symbol_loading_off): New static global.
1127 (print_symbol_loading_brief): New static global.
1128 (print_symbol_loading_full): New static global.
1129 (print_symbol_loading_enums): New static global.
1130 (print_symbol_loading): New static global.
1131 (print_symbol_loading_p): New function.
1132 (symbol_file_add_with_addrs): Only print symbol loading messages
1134 (_initialize_symfile): Register "print symbol-loading" set/show
1136 * symfile.h (print_symbol_loading_p): Declare.
1138 2014-03-30 Doug Evans <xdje42@gmail.com>
1140 * infrun.c (set_last_target_status): New function.
1141 (handle_inferior_event): Call it.
1143 2014-03-30 Doug Evans <xdje42@gmail.com>
1145 * inferior.h (enum stop_kind): Improve comment.
1147 2014-03-28 Joel Brobecker <brobecker@adacore.com>
1149 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
1150 a reference, strip the reference layer before calling
1151 the lang_ops value_has_mutated callback.
1153 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
1155 Remove some globals from our parser.
1156 * language.c (unk_lang_parser): Add "struct parser_state"
1158 * language.h (struct language_defn) <la_parser>: Likewise.
1159 * parse.c (expout, expout_size, expout_ptr): Remove variables.
1160 (initialize_expout): Add "struct parser_state" argument.
1161 Rewrite function to use the parser state.
1162 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
1163 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
1164 write_exp_elt_longcst, write_exp_elt_dblcst,
1165 write_exp_elt_decfloatcst, write_exp_elt_type,
1166 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
1167 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
1168 write_dollar_variable): Likewise.
1169 (parse_exp_in_context_1): Use parser state.
1170 (insert_type_address_space): Add "struct parser_state" argument.
1172 (increase_expout_size): New function.
1173 * parser-defs.h: Forward declare "struct language_defn" and
1174 "struct parser_state".
1175 (expout, expout_size, expout_ptr): Remove extern declarations.
1176 (parse_gdbarch, parse_language): Rewrite macro declarations to
1177 accept the parser state.
1178 (struct parser_state): New struct.
1179 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
1180 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
1181 write_exp_elt_decfloatcst, write_exp_elt_type,
1182 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
1183 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
1184 write_exp_msymbol, write_dollar_variable,
1185 mark_struct_expression, insert_type_address_space): Add "struct
1186 parser_state" argument.
1187 (increase_expout_size): New function.
1188 * utils.c (do_clear_parser_state): New function.
1189 (make_cleanup_clear_parser_state): Likewise.
1190 * utils.h (make_cleanup_clear_parser_state): New function
1192 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
1193 Update calls to write_exp* in order to pass the parser state.
1194 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1195 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
1196 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1197 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1198 * stap-probe.c (stap_parse_register_operand): Likewise.
1199 (stap_parse_single_operand): Likewise.
1200 (stap_parse_argument_1): Likewise.
1201 (stap_parse_argument): Use parser state.
1202 * stap-probe.h: Include "parser-defs.h".
1203 (struct stap_parse_info) <pstate>: New field.
1204 * c-exp.y (parse_type): Rewrite to use parser state.
1205 (yyparse): Redefine to c_parse_internal.
1206 (pstate): New global variable.
1207 (parse_number): Add "struct parser_state" argument.
1208 (write_destructor_name): Likewise.
1209 (type_exp): Update calls to write_exp* and similars in order to
1211 (exp1, exp, variable, qualified_name, space_identifier,
1212 typename, typebase): Likewise.
1213 (write_destructor_name, parse_number, lex_one_token,
1214 classify_name, classify_inner_name, c_parse): Add "struct
1215 parser_state" argument. Update function to use parser state.
1216 * c-lang.h: Forward declare "struct parser_state".
1217 (c_parse): Add "struct parser_state" argument.
1218 * ada-exp.y (parse_type): Rewrite macro to use parser state.
1219 (yyparse): Redefine macro to ada_parse_internal.
1220 (pstate): New variable.
1221 (write_int, write_object_renaming, write_var_or_type,
1222 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
1223 type_int, type_long, type_long_long, type_float, type_double,
1224 type_long_double, type_char, type_boolean, type_system_address):
1225 Add "struct parser_state" argument.
1226 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
1227 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
1228 var_or_type, aggregate, aggregate_component_list,
1229 positional_list, others, component_group,
1230 component_associations): Update calls to write_exp* and similar
1231 functions in order to use parser state.
1232 (ada_parse, write_var_from_sym, write_int,
1233 write_exp_op_with_string, write_object_renaming,
1234 find_primitive_type, write_selectors, write_ambiguous_var,
1235 write_var_or_type, write_name_assoc, type_int, type_long,
1236 type_long_long, type_float, type_double, type_long_double,
1237 type_char, type_boolean, type_system_address): Add "struct
1238 parser_state" argument. Adjust function to use parser state.
1239 * ada-lang.c (parse): Likewise.
1240 * ada-lang.h: Forward declare "struct parser_state".
1241 (ada_parse): Add "struct parser_state" argument.
1242 * ada-lex.l (processInt, processReal): Likewise. Adjust all
1243 calls to both functions.
1244 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
1246 (yyparse): Redefine macro to f_parse_internal.
1247 (pstate): New variable.
1248 (parse_number): Add "struct parser_state" argument.
1249 (type_exp, exp, subrange, typebase): Update calls to write_exp*
1250 and similars in order to use parser state.
1251 (parse_number): Adjust code to use parser state.
1253 (f_parse): New function.
1254 * f-lang.h: Forward declare "struct parser_state".
1255 (f_parse): Add "struct parser_state" argument.
1256 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
1258 (yyparse): Redefine macro for java_parse_internal.
1259 (pstate): New variable.
1260 (push_expression_name, push_expression_name, insert_exp): Add
1261 "struct parser_state" argument.
1262 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
1263 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
1264 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
1265 PostIncrementExpression, PostDecrementExpression,
1266 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
1267 UnaryExpressionNotPlusMinus, CastExpression,
1268 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
1269 RelationalExpression, EqualityExpression, AndExpression,
1270 ExclusiveOrExpression, InclusiveOrExpression,
1271 ConditionalAndExpression, ConditionalOrExpression,
1272 ConditionalExpression, Assignment, LeftHandSide): Update
1273 calls to write_exp* and similars in order to use parser state.
1274 (parse_number): Ajust code to use parser state.
1276 (java_parse): New function.
1277 (push_variable): Add "struct parser_state" argument. Adjust
1278 code to user parser state.
1279 (push_fieldnames, push_qualified_expression_name,
1280 push_expression_name, insert_exp): Likewise.
1281 * jv-lang.h: Forward declare "struct parser_state".
1282 (java_parse): Add "struct parser_state" argument.
1283 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
1285 (yyparse): Redefine macro to m2_parse_internal.
1286 (pstate): New variable.
1287 (type_exp, exp, fblock, variable, type): Update calls to
1288 write_exp* and similars to use parser state.
1290 (m2_parse): New function.
1291 * m2-lang.h: Forward declare "struct parser_state".
1292 (m2_parse): Add "struct parser_state" argument.
1293 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
1294 * objc-lang.h: Forward declare "struct parser_state".
1295 (end_msglist): Add "struct parser_state" argument.
1296 * p-exp.y (parse_type): Rewrite macro to use parser state.
1297 (yyparse): Redefine macro to pascal_parse_internal.
1298 (pstate): New variable.
1299 (parse_number): Add "struct parser_state" argument.
1300 (type_exp, exp1, exp, qualified_name, variable): Update calls to
1301 write_exp* and similars in order to use parser state.
1302 (parse_number, yylex): Adjust code to use parser state.
1303 (pascal_parse): New function.
1304 * p-lang.h: Forward declare "struct parser_state".
1305 (pascal_parse): Add "struct parser_state" argument.
1306 * go-exp.y (parse_type): Rewrite macro to use parser state.
1307 (yyparse): Redefine macro to go_parse_internal.
1308 (pstate): New variable.
1309 (parse_number): Add "struct parser_state" argument.
1310 (type_exp, exp1, exp, variable, type): Update calls to
1311 write_exp* and similars in order to use parser state.
1312 (parse_number, lex_one_token, classify_name, yylex): Adjust code
1313 to use parser state.
1314 (go_parse): Likewise.
1315 * go-lang.h: Forward declare "struct parser_state".
1316 (go_parse): Add "struct parser_state" argument.
1318 2014-03-27 Doug Evans <dje@google.com>
1320 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
1322 2014-03-27 Doug Evans <dje@google.com>
1324 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
1325 Remove argument abbrev_section. All callers updated.
1327 2014-03-27 Doug Evans <dje@google.com>
1329 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
1330 addr_base, ranges_base.
1332 2014-03-26 Keith Seitz <keiths@redhat.com>
1334 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
1335 types, not VAR_DOMAIN.
1337 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
1339 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
1341 * features/nios2-linux.c: Regenerated.
1342 * features/nios2.c: Regenerated.
1344 2014-03-25 Pedro Alves <palves@redhat.com>
1346 * cli/cli-script.c (script_from_file): Force the interpreter to
1349 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
1351 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
1352 small stack allocation.
1354 2014-03-24 Tristan Gingold <gingold@adacore.com>
1356 * darwin-nat.c (exc_server): Remove unused prototype.
1357 (darwin_dump_message): Correctly display data on x86_64.
1358 (darwin_encode_reply): Fix style.
1359 Add comments and fix indentation.
1361 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
1363 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
1365 2014-03-22 Doug Evans <xdje42@gmail.com>
1367 * infcmd.c: Whitespace fixes.
1368 (interrupt_command): Merge two function comments into one.
1370 2014-03-22 Doug Evans <xdje42@gmail.com>
1372 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
1375 2014-03-22 Yao Qi <yao@codesourcery.com>
1377 * remote.c (target_read_live_memory): Remove.
1378 (memory_xfer_live_readonly_partial): Rename it to
1379 remote_xfer_live_readonly_partial. Remove argument 'object'.
1380 All callers updated. Call remote_read_bytes_1
1381 instead of target_read_live_memory.
1382 * tracepoint.c (set_traceframe_number): Remove.
1383 (make_cleanup_restore_traceframe_number): Likewise .
1384 * tracepoint.h (set_traceframe_number): Remove declaration.
1385 (make_cleanup_restore_traceframe_number): Likewise.
1387 2014-03-22 Yao Qi <yao@codesourcery.com>
1389 * remote.c (remote_read_bytes): Move code on reading from the
1391 (remote_read_bytes_1): ... here. New function.
1393 2014-03-22 Yao Qi <yao@codesourcery.com>
1395 * ctf.c (ctf_xfer_partial): Check the return value of
1396 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
1397 return TARGET_XFER_UNAVAILABLE.
1398 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
1399 * target.c (target_read_live_memory): Move it to remote.c.
1400 (memory_xfer_live_readonly_partial): Likewise.
1401 (memory_xfer_partial_1): Move some code to remote_read_bytes.
1402 * remote.c (target_read_live_memory): Moved from target.c.
1403 (memory_xfer_live_readonly_partial): Likewise.
1404 (remote_read_bytes): Factored out from
1405 memory_xfer_partial_1.
1407 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
1409 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
1412 2014-03-21 Pedro Alves <palves@redhat.com>
1414 * infrun.c (normal_stop): Extend comment.
1416 2014-03-21 Hui Zhu <hui@codesourcery.com>
1417 Pedro Alves <palves@redhat.com>
1419 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
1421 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
1422 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
1423 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
1425 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
1427 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
1428 `z' formatted output modifier.
1430 2014-03-20 Tom Tromey <tromey@redhat.com>
1431 Sergio Durigan Junior <sergiodj@redhat.com>
1433 * probe.c (parse_probes): Turn assert into an ordinary error.
1434 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
1435 exceptions when parsing probes. Rearrange the code for clarity.
1437 2014-03-20 Tom Tromey <tromey@redhat.com>
1440 * top.c (execute_command): Only dispatch events if the command
1443 2014-03-20 Tom Tromey <tromey@redhat.com>
1446 * infcall.c: Include event-top.h.
1447 (run_inferior_call): Call async_disable_stdin if needed.
1449 2014-03-20 Pedro Alves <palves@redhat.com>
1451 * infrun.c (prepare_to_proceed): Delete.
1452 (thread_still_needs_step_over): New function.
1453 (find_thread_needs_step_over): New function.
1454 (proceed): If the current thread needs a step-over, set its
1455 steping_over_breakpoint flag. Adjust to use
1456 find_thread_needs_step_over instead of prepare_to_proceed.
1457 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
1458 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
1460 (switch_back_to_stepped_thread): Step over breakpoints of all
1461 threads not the stepping thread, before switching back to the
1464 2014-03-20 Pedro Alves <palves@redhat.com>
1466 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
1468 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
1469 * infrun.c (saved_singlestep_ptid)
1470 (stepping_past_singlestep_breakpoint): Delete.
1471 (resume): Remove stepping_past_singlestep_breakpoint handling.
1472 (proceed): Store the prev_pc of the stepping thread too.
1473 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
1475 (enum infwait_states): Delete infwait_thread_hop_state.
1476 (struct execution_control_state) <hit_singlestep_breakpoint>: New
1478 (handle_inferior_event): Adjust.
1479 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
1480 handling and the thread-hop code. Before removing single-step
1481 breakpoints, check whether the thread hit a single-step breakpoint
1482 of another thread. If it did, the trap is not a random signal.
1483 (switch_back_to_stepped_thread): If the event thread hit a
1484 single-step breakpoint, unblock it before switching to the
1485 stepping thread. Handle the case of the stepped thread having
1487 (keep_going): Handle the case of the current thread moving past a
1488 single-step breakpoint.
1490 2014-03-20 Pedro Alves <palves@redhat.com>
1493 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
1494 are being stepped over.
1495 (breakpoint_address_match): Make extern.
1496 * breakpoint.h (breakpoint_address_match): New declaration.
1497 * inferior.h (stepping_past_instruction_at): New declaration.
1498 * infrun.c (struct step_over_info): New type.
1499 (step_over_info): New global.
1500 (set_step_over_info, clear_step_over_info)
1501 (stepping_past_instruction_at): New functions.
1502 (handle_inferior_event): Clear the step-over info when
1503 trap_expected is cleared.
1504 (resume): Remove now stale comment.
1505 (clear_proceed_status): Clear step-over info.
1506 (proceed): Adjust step-over handling to set or clear the step-over
1507 info instead of removing all breakpoints.
1508 (handle_signal_stop): When setting up a thread-hop, don't remove
1510 (stop_stepping): Clear step-over info.
1511 (keep_going): Adjust step-over handling to set or clear step-over
1512 info and then always inserting breakpoints, instead of removing
1513 all breakpoints when stepping over one.
1515 2014-03-20 Pedro Alves <palves@redhat.com>
1517 * infrun.c (previous_inferior_ptid): Adjust comment.
1518 (deferred_step_ptid): Delete.
1519 (infrun_thread_ptid_changed, prepare_to_proceed)
1520 (init_wait_for_inferior): Adjust.
1521 (handle_signal_stop): Delete deferred_step_ptid handling.
1523 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1526 * defs.h (sync_quit_force_run): New declaration.
1527 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
1528 * event-top.c (async_sigterm_handler): New declaration.
1529 (async_sigterm_token): New variable.
1530 (async_init_signals): Create also async_sigterm_token.
1531 (async_sigterm_handler): New function.
1532 (sync_quit_force_run): New variable.
1533 (handle_sigterm): Replace quit_force call by other calls.
1534 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
1536 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
1538 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
1539 offset into SPE pseudo registers.
1541 2014-03-18 Pedro Alves <palves@redhat.com>
1544 * inferior.h (print_stop_event): Declare.
1545 * infrun.c (print_stop_event): New, factored out from ...
1546 (normal_stop): ... this.
1547 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
1548 of bpstat_print/print_stack_frame.
1550 2014-03-17 Tom Tromey <tromey@redhat.com>
1552 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
1554 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
1556 * ada-lang.c (decode_constrained_packed_array): Perform a
1557 minimal coercion for reference with coerce_ref instead of
1560 2014-03-17 Tristan Gingold <gingold@adacore.com>
1562 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
1563 (darwin_solib_create_inferior_hook): Emit a warning if version
1566 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
1568 * python/py-value.c (get_field_flag): Cast flag_name argument to
1569 PyObject_GetAttrString to support Python 2.4.
1571 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1573 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
1574 (Global Maintainers): Remove Jan Kratochvil.
1576 2014-03-14 Pedro Alves <palves@redhat.com>
1578 * inferior.h (terminal_ours_for_output): Rename to ...
1579 (child_terminal_ours_for_output): ... this.
1580 (terminal_save_ours): Rename to ...
1581 (child_terminal_save_ours): ... this.
1582 (terminal_ours): Rename to ...
1583 (child_terminal_ours): ... this.
1584 (terminal_inferior): Rename to ...
1585 (child_terminal_inferior): ... this.
1586 (terminal_init_inferior): Rename to ...
1587 (child_terminal_init_inferior): ... this.
1588 (terminal_init_inferior_with_pgrp): Rename to ...
1589 (child_terminal_init_inferior_with_pgrp): ... this.
1590 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
1591 (child_terminal_init_with_pgrp): ... this.
1592 (terminal_save_ours): Rename to ...
1593 (child_terminal_save_ours): ... this.
1594 (terminal_init_inferior): Rename to ...
1595 (child_terminal_init): ... this. Adjust.
1596 (terminal_inferior): Rename to ...
1597 (child_terminal_inferior): ... this.
1598 (terminal_ours_for_output): Rename to ...
1599 (child_terminal_ours_for_output): ... this. Adjust.
1600 (terminal_ours): Rename to ...
1601 (child_terminal_ours): ... this.
1602 (terminal_ours_1): Rename to ...
1603 (child_terminal_ours_1): ... this. Adjust.
1604 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
1605 * windows-nat.c (do_initial_windows_stuff): Adjust.
1606 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
1607 (gnu_terminal_init): ... this. Adjust.
1608 (gnu_target): Adjust.
1609 * inf-child.c (inf_child_target): Adjust.
1611 2014-03-13 Doug Evans <xdje42@gmail.com>
1614 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
1617 2014-03-13 Doug Evans <xdje42@gmail.com>
1619 * value.c (record_latest_value): Call release_value_or_incref
1620 instead of release_value.
1622 2014-03-13 Pedro Alves <palves@redhat.com>
1624 * procfs.c (procfs_target): Don't override to_shortname,
1625 to_longname or to_doc.
1627 2014-03-13 Pedro Alves <palves@redhat.com>
1629 * inf-child.c (inf_child_open, inf_child_target): Don't mention
1630 Unix in user visible strings.
1632 2014-03-12 Stan Shebs <stan@codesourcery.com>
1634 * gdbtypes.h: Annotate comments for Doxygen, add a page
1635 block comment with some general info.
1637 2014-03-12 Pedro Alves <palves@redhat.com>
1639 * infcmd.c (prepare_execution_command): New function, factored out
1640 from several execution commands.
1641 (run_command_1, continue_command, step_1, jump_command)
1642 (signal_command, until_command, advance_command, finish_command)
1643 (attach_command): Use prepare_execution_command.
1645 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
1647 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
1650 (struct arm_linux_thread_points): Removed.
1651 (struct arm_linux_process_info): New.
1652 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
1653 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
1654 (arm_linux_find_breakpoints_by_tid): Removed.
1655 (struct arch_lwp_info): New.
1656 (arm_linux_find_process_pid): New functions.
1657 (arm_linux_add_process): New functions.
1658 (arm_linux_process_info_get): New functions.
1659 (arm_linux_forget_process): New function.
1660 (arm_linux_get_debug_reg_state): New function.
1661 (struct update_registers_data): New.
1662 (update_registers_callback): New function.
1663 (arm_linux_insert_hw_breakpoint1): Updated.
1664 (arm_linux_remove_hw_breakpoint1): Updated.
1665 (arm_linux_insert_hw_breakpoint): Updated.
1666 (arm_linux_remove_hw_breakpoint): Updated.
1667 (arm_linux_insert_watchpoint): Updated.
1668 (arm_linux_remove_watchpoint): Updated.
1669 (arm_linux_new_thread): Updated.
1670 (arm_linux_prepare_to_resume): New function.
1671 (arm_linux_new_fork): New function.
1672 (_initialize_arm_linux_nat): Updated.
1674 2014-03-12 Pedro Alves <palves@redhat.com>
1676 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
1678 2014-03-12 Tom Tromey <tromey@redhat.com>
1680 * inf-child.c (return_zero): New function.
1681 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
1682 * aix-thread.c (aix_thread_inferior_created): New function.
1683 (aix_thread_attach): Remove.
1684 (init_aix_thread_ops): Don't set to_attach.
1685 (_initialize_aix_thread): Register inferior_created observer.
1686 * corelow.c (init_core_ops): Don't set to_attach or
1688 * exec.c (init_exec_ops): Don't set to_attach or
1690 * infcmd.c (run_command_1): Use find_run_target. Make direct
1692 (attach_command): Use find_attach_target. Make direct target
1694 * record-btrace.c (init_record_btrace_ops): Don't set
1696 * record-full.c (record_full_can_async_p, record_full_is_async_p):
1698 (init_record_full_ops, init_record_full_core_ops): Update. Don't
1699 set to_create_inferior.
1700 * target.c (complete_target_initialization): Add assertion.
1701 (target_create_inferior): Remove.
1702 (find_default_attach, find_default_create_inferior): Remove.
1703 (find_attach_target, find_run_target): New functions.
1704 (find_default_is_async_p, find_default_can_async_p)
1705 (target_supports_non_stop, target_attach): Remove.
1706 (init_dummy_target): Don't set to_create_inferior or
1707 to_supports_non_stop.
1708 * target.h (struct target_ops) <to_attach>: Add comment. Remove
1709 TARGET_DEFAULT_FUNC.
1710 <to_create_inferior>: Add comment.
1711 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
1712 TARGET_DEFAULT_RETURN.
1713 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
1714 (find_attach_target, find_run_target): Declare.
1715 (target_create_inferior): Remove.
1716 (target_has_execution_1): Update comment.
1717 (target_supports_non_stop): Remove.
1718 * target-delegates.c: Rebuild.
1720 2014-03-12 Pedro Alves <palves@redhat.com>
1722 * inf-child.h: Update comment to not mention Unix.
1724 2014-03-12 Pedro Alves <palves@redhat.com>
1726 * inf-child.c: Update top comment to not mention Unix. Add
1727 generic comment describing how this target is meant to be used.
1728 (inf_child_post_attach, inf_child_post_startup_inferior)
1729 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
1732 2014-03-12 Pedro Alves <palves@redhat.com>
1734 * nto-procfs.c: Include inf-child.h.
1735 (procfs_ops): Delete global.
1736 (procfs_can_run): Delete method.
1737 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
1738 target pointer instead of referencing procfs_ops.
1739 (procfs_prepare_to_store): Delete.
1740 (init_procfs_ops): Delete function.
1741 (procfs_target): New function, based on init_procfs_ops, but
1742 inherit inf_child_target.
1743 (_initialize_procfs): Use procfs_target.
1745 2014-03-12 Pedro Alves <palves@redhat.com>
1747 * windows-nat.c: Include inf-child.h.
1748 (windows_ops): Delete global.
1749 (windows_open, windows_prepare_to_store, windows_can_run): Delete
1751 (init_windows_ops): Delete function.
1752 (windows_target): New function, based on init_windows_ops, but
1753 inherit inf_child_target.
1754 (_initialize_windows_nat): Use windows_target. Install x86
1755 specific target methods here.
1757 2014-03-10 Doug Evans <xdje42@gmail.com>
1759 * guile/guile.c (call_initialize_gdb_module): New function.
1760 (initialize_guile): Replace call to scm_init_guile with call to
1763 2014-03-10 Joel Brobecker <brobecker@adacore.com>
1765 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
1766 in call to TYPE_CODE macro.
1768 2014-03-10 Jerome Guitton <guitton@adacore.com>
1770 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
1771 Resolve tagged types to full view.
1773 2014-03-10 Hui Zhu <hui@codesourcery.com>
1775 * target.h (target_insert_breakpoint): Remove "hardware" from its
1778 2014-03-07 Doug Evans <dje@google.com>
1780 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
1782 2014-03-07 Doug Evans <dje@google.com>
1784 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
1785 Remove unused local comp_dir_attr. Assert exactly one of
1786 stub_comp_unit_die, stub_comp_dir is non-NULL.
1788 2014-03-07 Joel Brobecker <brobecker@adacore.com>
1790 * target.h (complete_target_initialization, add_target):
1793 2014-03-07 Pedro Alves <palves@redhat.com>
1795 * go32-nat.c: Include inf-child.h.
1796 (go32_ops): Delete global.
1797 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
1799 (go32_create_inferior): Push the passed in target pointer instead
1800 of referencing go32_ops.
1801 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
1802 (go32_target): New function, based on init_go32_ops, but inherit
1804 (_initialize_go32_nat): Use go32_target. Move parts of
1807 2014-03-06 Joel Brobecker <brobecker@adacore.com>
1809 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
1810 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
1811 SYMBOL_VALUE_ADDRESS.
1812 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
1814 2014-03-06 Yao Qi <yao@codesourcery.com>
1816 * breakpoint.c (get_tracepoint_by_number): Remove argument
1817 optional_p. All callers updated. Adjust comments. Update
1819 * breakpoint.h (get_tracepoint_by_number): Update declaration.
1821 2014-03-06 Yao Qi <yao@codesourcery.com>
1823 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
1824 early if get_number returns zero. Use 'p' instead of 'args'.
1826 2014-03-06 Yao Qi <yao@codesourcery.com>
1828 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
1831 2014-03-06 Yao Qi <yao@codesourcery.com>
1833 PR breakpoints/16508
1834 * tracepoint.c (check_trace_running): New function.
1835 (trace_find_command): Move code to check_trace_running and
1836 call check_trace_running.
1837 (trace_find_pc_command): Likewise.
1838 (trace_find_tracepoint_command): Likewise.
1839 (trace_find_line_command): Likewise.
1840 (trace_find_range_command): Likewise.
1841 * tracepoint.h (check_trace_running): Likewise.
1842 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
1844 2014-03-06 Yao Qi <yao@codesourcery.com>
1846 * target.h (struct target_ops) <to_traceframe_info>: Use
1847 TARGET_DEFAULT_NORETURN (tcomplain ()).
1848 * target-delegates.c: Regenerated.
1850 2014-03-05 Pedro Alves <palves@redhat.com>
1853 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
1854 void. Update comment.
1855 (dcache_xfer_memory): Delete.
1856 (dcache_read_memory_partial): New, based on the read bits of
1858 (dcache_update): Add status parameter. Use ULONGEST for len, and
1859 adjust. Discard cache lines if the reason for the update was
1861 * dcache.h (dcache_xfer_memory): Delete declaration.
1862 (dcache_read_memory_partial): New declaration.
1863 (dcache_update): Update prototype.
1864 * target.c (raw_memory_xfer_partial): Update the dcache here.
1865 (memory_xfer_partial_1): Don't handle dcache writes here.
1867 2014-03-05 Mike Frysinger <vapier@gentoo.org>
1869 * remote-sim.c (gdbsim_load): Add const to prog.
1871 2014-03-03 Tom Tromey <tromey@redhat.com>
1873 * elfread.c (probe_key): Change to bfd_data.
1874 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
1875 now per-BFD, not per-objfile.
1876 * stap-probe.c (stap_probe_destroy): Update comment.
1877 (handle_stap_probe): Allocate on the per-BFD obstack.
1879 2014-03-03 Tom Tromey <tromey@redhat.com>
1881 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
1882 * breakpoint.c (create_longjmp_master_breakpoint): Use
1884 (add_location_to_breakpoint, bkpt_probe_insert_location)
1885 (bkpt_probe_remove_location): Update.
1886 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
1887 * elfread.c (elf_symfile_relocate_probe): Remove.
1888 (elf_probe_fns): Update.
1889 (insert_exception_resume_breakpoint): Change type of "probe"
1890 parameter to bound_probe.
1891 (check_exception_resume): Update.
1892 * objfiles.c (objfile_relocate1): Don't relocate probes.
1893 * probe.c (bound_probe_s): New typedef.
1894 (parse_probes): Use get_probe_address. Set sal's objfile.
1895 (find_probe_by_pc): Return a bound_probe.
1896 (collect_probes): Return a VEC(bound_probe_s).
1897 (compare_probes): Update.
1898 (gen_ui_out_table_header_info): Change type of "probes"
1900 (info_probes_for_ops): Update.
1901 (get_probe_address): New function.
1902 (probe_safe_evaluate_at_pc): Update.
1903 * probe.h (struct probe_ops) <get_probe_address>: New field.
1904 <set_semaphore, clear_semaphore>: Add objfile parameter.
1905 (struct probe) <objfile>: Remove field.
1907 <address>: Update comment.
1908 (struct bound_probe): New.
1909 (find_probe_by_pc): Return a bound_probe.
1910 (get_probe_address): Declare.
1911 * solib-svr4.c (struct probe_and_action) <address>: New field.
1912 (hash_probe_and_action, equal_probe_and_action): Update.
1913 (register_solib_event_probe): Add address parameter.
1914 (solib_event_probe_at): Update.
1915 (svr4_create_probe_breakpoints): Add objfile parameter. Use
1917 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
1918 (stap_get_probe_address): New function.
1919 (stap_can_evaluate_probe_arguments, compute_probe_arg)
1920 (compile_probe_arg): Update.
1921 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
1923 (handle_stap_probe): Don't relocate the probe.
1924 (stap_relocate): Remove.
1925 (stap_gen_info_probes_table_values): Update.
1926 (stap_probe_ops): Remove stap_relocate.
1927 * symfile-debug.c (debug_sym_relocate_probe): Remove.
1928 (debug_sym_probe_fns): Update.
1929 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
1930 * symtab.c (init_sal): Use memset.
1931 * symtab.h (struct symtab_and_line) <objfile>: New field.
1932 * tracepoint.c (start_tracing, stop_tracing): Update.
1934 2014-03-03 Tom Tromey <tromey@redhat.com>
1936 * probe.h (parse_probes, find_probe_by_pc)
1937 (find_probes_in_objfile): Fix comments.
1939 2014-03-02 Doug Evans <xdje42@gmail.com>
1941 * infrun.c (handle_signal_stop): Replace test for
1942 TARGET_WAITKIND_STOPPED with an assert.
1944 2014-03-02 Doug Evans <xdje42@gmail.com>
1946 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
1948 2014-03-02 Doug Evans <xdje42@gmail.com>
1950 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
1952 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1954 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
1956 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1958 * i386obsd-nat.c: Include "obsd-nat.h".
1959 (_initialize_i386obsd_nat): Call obsd_add_target instead of
1961 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
1963 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1965 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
1967 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1969 * mips64obsd-nat.c: Include "obsd-nath".
1970 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
1972 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
1974 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1976 * amd64obsd-nat.c: Include "obsd-nat,h.
1977 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
1979 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
1981 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
1983 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
1984 (find_overload_match): Update call to find_oload_champ.
1985 (find_oload_champ_namespace_loop): Likewise
1987 2014-02-28 Mark Kettenis <kettenis@gnu.org>
1989 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
1991 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
1992 * config/sparc/obsd64.mh: New file.
1993 * sparc64obsd-nat.c: New file.
1995 * obsd-nat.h: New file.
1996 * obsd-nat.c: New file.
1997 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
1998 (ALLDEPFILES): Add obsd-nat.c.
2000 2014-02-28 Tom Tromey <tromey@redhat.com>
2002 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
2003 * cli-out.h (cli_ui_out_impl): Now const.
2004 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
2005 * ui-out.c (struct ui_out) <impl>: Now const.
2006 (default_ui_out_impl): Now const.
2007 (ui_out_new): Make 'impl' parameter const.
2008 * ui-out.h (ui_out_new): Update.
2010 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2012 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
2014 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2016 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
2018 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2020 Additional PR 8882 fix.
2021 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
2023 2014-02-27 Pedro Alves <palves@redhat.com>
2025 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
2028 2014-02-27 Pedro Alves <palves@redhat.com>
2031 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
2032 * nat/linux-waitpid.c: Include string.h.
2033 (status_to_str): Moved here and made extern.
2034 * nat/linux-waitpid.h (status_to_str): New declaration.
2036 2014-02-27 Hui Zhu <hui@codesourcery.com>
2039 * infrun.c (ptid_match): Move ...
2040 * common/ptid.c (ptid_match): ... here.
2041 * inferior.h (ptid_match): Move ...
2042 * common/ptid.h (ptid_match): ... here.
2044 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2046 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
2047 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
2050 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2052 * obsd-tdep.c (obsd_auxv_parse): New function.
2053 (obsd_init_abi): Set auxv_parse.
2055 * gdbarch.sh (auxv_parse): New.
2056 * gdbarch.h: Regenerated.
2057 * gdbarch.c: Regenerated.
2058 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
2060 2014-02-26 Ludovic Courtès <ludo@gnu.org>
2062 * guile/scm-value.c (gdbscm_history_append_x): New function.
2063 (value_functions): Add it.
2065 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2067 * dwarf2read.c (attr_value_as_address): New function.
2068 (dwarf2_find_base_address, read_call_site_scope): Use
2069 attr_value_as_address in place of DW_ADDR.
2070 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
2071 the low and high addresses. Slight rework of the handling
2072 of the high pc being a constant form, and limit it to
2073 DWARF verson 4 or higher.
2074 (dwarf2_record_block_ranges): Likewise.
2075 (read_partial_die): Likewise.
2076 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
2078 2014-02-26 Tom Tromey <tromey@redhat.com>
2080 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
2082 2014-02-26 Tom Tromey <tromey@redhat.com>
2084 * elfread.c (elf_read_minimal_symbols): Return early if
2085 minimal symbols have already been read. Add "ei" parameter.
2086 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
2087 * minsyms.c (prim_record_minimal_symbol_full): Update.
2088 * objfiles.h (struct objstats) <n_minsyms>: Move...
2089 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
2090 * symmisc.c (print_objfile_statistics): Update.
2092 2014-02-26 Tom Tromey <tromey@redhat.com>
2094 * elfread.c (elf_read_minimal_symbols): New function, from
2096 (elf_symfile_read): Call it.
2098 2014-02-26 Tom Tromey <tromey@redhat.com>
2100 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
2101 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
2102 (lookup_minimal_symbol_solib_trampoline)
2103 (lookup_minimal_symbol_by_pc_section_1)
2104 (lookup_minimal_symbol_and_objfile): Update.
2105 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
2106 Don't allocate a minimal symbol if minsyms have already been read.
2107 (build_minimal_symbol_hash_tables): Update.
2108 (install_minimal_symbols): Do nothing if minsyms already read.
2109 Use the per-BFD obstack.
2110 (terminate_minimal_symbol_table): Use the per-BFD obstack.
2111 * objfiles.c (allocate_objfile): Call
2112 terminate_minimal_symbol_table later.
2113 (have_minimal_symbols): Update.
2114 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
2115 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
2116 Move from struct objfile.
2117 <minsyms_read>: New field.
2118 (struct objfile) <msymbols, minimal_symbol_count,
2119 msymbol_hash, msymbol_demangled_hash>: Move.
2120 (ALL_OBJFILE_MSYMBOLS): Update.
2121 * symfile.c (read_symbols): Set minsyms_read.
2122 (reread_symbols): Update.
2123 * symmisc.c (dump_objfile, dump_msymbols): Update.
2125 2014-02-26 Tom Tromey <tromey@redhat.com>
2127 * minsyms.c (msymbols_sort): Remove.
2128 * minsyms.h (msymbols_sort): Remove.
2129 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
2130 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
2131 * elfread.c (elf_symtab_read): Don't add section offsets.
2132 * xcoffread.c (record_minimal_symbol): Don't add section offset
2133 to minimal symbol address.
2134 * somread.c (text_offset, data_offset): Remove.
2135 (som_symtab_read): Don't add section offsets to minimal symbol
2137 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
2138 Don't add section offsets to minimal symbols.
2139 * coffread.c (coff_symtab_read): Don't add section offsets
2140 to minimal symbol addresses.
2141 * machoread.c (macho_symtab_add_minsym): Don't add section offset
2142 to minimal symbol addresses.
2143 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
2144 section offset to minimal symbol addresses.
2145 * mdebugread.c (parse_partial_symbols): Don't add section
2146 offset to minimal symbol addresses.
2147 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
2148 offset to minimal symbol addresses.
2150 2014-02-26 Tom Tromey <tromey@redhat.com>
2152 * ada-lang.c (ada_main_name): Update.
2153 (ada_add_standard_exceptions): Update.
2154 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
2155 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2156 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
2157 * auxv.c (ld_so_xfer_auxv): Update.
2158 * avr-tdep.c (avr_scan_prologue): Update.
2159 * ax-gdb.c (gen_var_ref): Update.
2160 * blockframe.c (get_pc_function_start)
2161 (find_pc_partial_function_gnu_ifunc): Update.
2162 * breakpoint.c (create_overlay_event_breakpoint)
2163 (create_longjmp_master_breakpoint)
2164 (create_std_terminate_master_breakpoint)
2165 (create_exception_master_breakpoint): Update.
2166 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2167 * c-valprint.c (c_val_print): Update.
2168 * coff-pe-read.c (add_pe_forwarded_sym): Update.
2169 * common/agent.c (agent_look_up_symbols): Update.
2170 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
2171 * dwarf2loc.c (call_site_to_target_addr): Update.
2172 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
2173 * elfread.c (elf_gnu_ifunc_record_cache)
2174 (elf_gnu_ifunc_resolve_by_got): Update.
2175 * findvar.c (default_read_var_value): Update.
2176 * frame.c (inside_main_func): Update.
2177 * frv-tdep.c (frv_frame_this_id): Update.
2178 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2179 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2181 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
2182 (hppa_hpux_find_dummy_bpaddr): Update.
2183 * hppa-tdep.c (hppa_symbol_address): Update.
2184 * infcmd.c (until_next_command): Update.
2185 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
2187 * linespec.c (minsym_found, add_minsym): Update.
2188 * linux-nat.c (get_signo): Update.
2189 * linux-thread-db.c (inferior_has_bug): Update.
2190 * m32c-tdep.c (m32c_return_value)
2191 (m32c_m16c_address_to_pointer): Update.
2192 * m32r-tdep.c (m32r_frame_this_id): Update.
2193 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2194 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2195 * maint.c (maintenance_translate_address): Update.
2196 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
2197 (frob_address): New function.
2198 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
2199 frob_address. Rename parameter to "pc_in".
2200 (compare_minimal_symbols, compact_minimal_symbols): Use raw
2202 (find_solib_trampoline_target, minimal_symbol_upper_bound):
2204 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2205 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
2206 * objc-lang.c (find_objc_msgsend): Update.
2207 * objfiles.c (objfile_relocate1): Update.
2208 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2209 * p-valprint.c (pascal_val_print): Update.
2210 * parse.c (write_exp_msymbol): Update.
2211 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
2212 (ppc_elfv2_skip_entrypoint): Update.
2213 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2214 * printcmd.c (build_address_symbolic, msym_info)
2215 (address_info): Update.
2216 * proc-service.c (ps_pglobal_lookup): Update.
2217 * psymtab.c (find_pc_sect_psymtab_closer)
2218 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
2219 Change msymbol parameter to bound_minimal_symbol.
2220 * ravenscar-thread.c (get_running_thread_id): Update.
2221 * remote.c (remote_check_symbols): Update.
2222 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
2224 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2225 * solib-dsbt.c (lm_base): Update.
2226 * solib-frv.c (lm_base, main_got): Update.
2227 * solib-irix.c (locate_base): Update.
2228 * solib-som.c (som_solib_create_inferior_hook)
2229 (link_map_start): Update.
2230 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
2231 * solib-svr4.c (elf_locate_base, enable_break): Update.
2232 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2233 (flush_ea_cache): Update.
2234 * stabsread.c (define_symbol, scan_file_globals): Update.
2235 * stack.c (find_frame_funname): Update.
2236 * symfile-debug.c (debug_qf_expand_symtabs_matching)
2237 (debug_qf_find_pc_sect_symtab): Update.
2238 * symfile.c (simple_read_overlay_table)
2239 (simple_overlay_update): Update.
2240 * symfile.h (struct quick_symbol_functions)
2241 <find_pc_sect_symtab>: Change type of msymbol to
2242 bound_minimal_symbol.
2243 * symmisc.c (dump_msymbols): Update.
2244 * symtab.c (find_pc_sect_symtab_via_partial)
2245 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
2246 (search_symbols, print_msymbol_info): Update.
2247 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
2248 (MSYMBOL_VALUE_ADDRESS): Redefine.
2249 (BMSYMBOL_VALUE_ADDRESS): New macro.
2250 * tracepoint.c (scope_info): Update.
2251 * tui/tui-disasm.c (tui_find_disassembly_address)
2252 (tui_get_begin_asm_address): Update.
2253 * valops.c (find_function_in_inferior): Update.
2254 * value.c (value_static_field, value_fn_field): Update.
2256 2014-02-26 Tom Tromey <tromey@redhat.com>
2258 * ada-lang.c (ada_update_initial_language): Update.
2259 (ada_main_name, ada_has_this_exception_support): Update.
2260 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
2261 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2262 * arm-tdep.c (arm_skip_stub): Update.
2263 * auxv.c (ld_so_xfer_auxv): Update.
2264 * avr-tdep.c (avr_scan_prologue): Update.
2265 * ax-gdb.c (gen_var_ref): Update.
2266 * breakpoint.c (struct breakpoint_objfile_data)
2267 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
2268 type to bound_minimal_symbol.
2269 (create_overlay_event_breakpoint)
2270 (create_longjmp_master_breakpoint)
2271 (create_std_terminate_master_breakpoint)
2272 (create_exception_master_breakpoint): Update.
2273 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2274 * c-exp.y (classify_name): Update.
2275 * coffread.c (coff_symfile_read): Update.
2276 * common/agent.c (agent_look_up_symbols): Update.
2277 * d-lang.c (d_main_name): Update.
2278 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
2279 * dec-thread.c (enable_dec_thread): Update.
2280 * dwarf2loc.c (call_site_to_target_addr): Update.
2281 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
2282 * eval.c (evaluate_subexp_standard): Update.
2283 * findvar.c (struct minsym_lookup_data) <result>: Change type
2284 to bound_minimal_symbol.
2286 (minsym_lookup_iterator_cb, default_read_var_value): Update.
2287 * frame.c (inside_main_func): Update.
2288 * frv-tdep.c (frv_frame_this_id): Update.
2289 * gcore.c (call_target_sbrk): Update.
2290 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2291 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2293 * go-lang.c (go_main_name): Update.
2294 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
2295 (hppa_hpux_find_import_stub_for_addr): Update.
2296 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
2297 Update. Change return type.
2298 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
2300 * jit.c (jit_breakpoint_re_set_internal): Update.
2301 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
2303 * linux-nat.c (get_signo): Update.
2304 * linux-thread-db.c (inferior_has_bug): Update
2305 * m32c-tdep.c (m32c_return_value)
2306 (m32c_m16c_address_to_pointer): Update.
2307 * m32r-tdep.c (m32r_frame_this_id): Update.
2308 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2309 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2310 * minsyms.c (lookup_minimal_symbol_internal): Rename to
2311 lookup_minimal_symbol. Change return type.
2312 (lookup_minimal_symbol): Remove.
2313 (lookup_bound_minimal_symbol): Update.
2314 (lookup_minimal_symbol_text): Change return type.
2315 (lookup_minimal_symbol_solib_trampoline): Change return type.
2316 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
2317 (lookup_minimal_symbol_solib_trampoline): Change return type.
2318 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2319 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2320 (value_nsstring, find_imps): Update.
2321 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2322 * p-lang.c (pascal_main_name): Update.
2323 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
2324 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2325 * proc-service.c (ps_pglobal_lookup): Update.
2326 * ravenscar-thread.c (get_running_thread_msymbol): Change
2328 (has_ravenscar_runtime, get_running_thread_id): Update.
2329 * remote.c (remote_check_symbols): Update.
2330 * sol-thread.c (ps_pglobal_lookup): Update.
2331 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2332 * solib-dsbt.c (lm_base): Update.
2333 * solib-frv.c (lm_base, frv_relocate_section_addresses):
2335 * solib-irix.c (locate_base): Update.
2336 * solib-som.c (som_solib_create_inferior_hook)
2337 (som_solib_desire_dynamic_linker_symbols, link_map_start):
2339 * solib-spu.c (spu_enable_break): Update.
2340 * solib-svr4.c (elf_locate_base, enable_break): Update.
2341 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2342 (flush_ea_cache): Update.
2343 * stabsread.c (define_symbol): Update.
2344 * symfile.c (simple_read_overlay_table): Update.
2345 * symtab.c (find_pc_sect_line): Update.
2346 * tracepoint.c (scope_info): Update.
2347 * tui-disasm.c (tui_get_begin_asm_address): Update.
2348 * value.c (value_static_field): Update.
2350 2014-02-26 Tom Tromey <tromey@redhat.com>
2352 * minsyms.c (prim_record_minimal_symbol_full): Use
2353 SET_MSYMBOL_VALUE_ADDRESS.
2354 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
2355 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
2356 SET_MSYMBOL_VALUE_ADDRESS.
2357 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2358 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
2360 2014-02-26 Tom Tromey <tromey@redhat.com>
2362 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
2363 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
2364 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
2365 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
2366 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
2367 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
2368 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
2369 * ada-lang.c (ada_main_name): Update.
2370 (ada_lookup_simple_minsym): Update.
2371 (ada_make_symbol_completion_list): Update.
2372 (ada_add_standard_exceptions): Update.
2373 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
2374 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2375 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
2376 * arm-tdep.c (skip_prologue_function): Update.
2377 (arm_skip_stack_protector, arm_skip_stub): Update.
2378 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
2379 (arm_wince_skip_main_prologue): Update.
2380 * auxv.c (ld_so_xfer_auxv): Update.
2381 * avr-tdep.c (avr_scan_prologue): Update.
2382 * ax-gdb.c (gen_var_ref): Update.
2383 * block.c (call_site_for_pc): Update.
2384 * blockframe.c (get_pc_function_start): Update.
2385 (find_pc_partial_function_gnu_ifunc): Update.
2386 * breakpoint.c (create_overlay_event_breakpoint): Update.
2387 (create_longjmp_master_breakpoint): Update.
2388 (create_std_terminate_master_breakpoint): Update.
2389 (create_exception_master_breakpoint): Update.
2390 (resolve_sal_pc): Update.
2391 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2392 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
2394 * c-valprint.c (c_val_print): Update.
2395 * coff-pe-read.c (add_pe_forwarded_sym): Update.
2396 * coffread.c (coff_symfile_read): Update.
2397 * common/agent.c (agent_look_up_symbols): Update.
2398 * dbxread.c (find_stab_function_addr): Update.
2399 (end_psymtab): Update.
2400 * dwarf2loc.c (call_site_to_target_addr): Update.
2401 (func_verify_no_selftailcall): Update.
2402 (tailcall_dump): Update.
2403 (call_site_find_chain_1): Update.
2404 (dwarf_expr_reg_to_entry_parameter): Update.
2405 * elfread.c (elf_gnu_ifunc_record_cache): Update.
2406 (elf_gnu_ifunc_resolve_by_got): Update.
2407 * f-valprint.c (info_common_command): Update.
2408 * findvar.c (read_var_value): Update.
2409 * frame.c (get_prev_frame_1): Update.
2410 (inside_main_func): Update.
2411 * frv-tdep.c (frv_skip_main_prologue): Update.
2412 (frv_frame_this_id): Update.
2413 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2414 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
2415 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
2416 (gnuv3_skip_trampoline): Update.
2417 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
2418 (hppa64_hpux_in_solib_call_trampoline): Update.
2419 (hppa_hpux_skip_trampoline_code): Update.
2420 (hppa64_hpux_search_dummy_call_sequence): Update.
2421 (hppa_hpux_find_import_stub_for_addr): Update.
2422 (hppa_hpux_find_dummy_bpaddr): Update.
2423 * hppa-tdep.c (hppa_symbol_address)
2424 (hppa_lookup_stub_minimal_symbol): Update.
2425 * i386-tdep.c (i386_skip_main_prologue): Update.
2426 (i386_pe_skip_trampoline_code): Update.
2427 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
2428 * infcall.c (get_function_name): Update.
2429 * infcmd.c (until_next_command): Update.
2430 * jit.c (jit_breakpoint_re_set_internal): Update.
2431 (jit_inferior_init): Update.
2432 * linespec.c (minsym_found): Update.
2433 (add_minsym): Update.
2434 * linux-fork.c (info_checkpoints_command): Update.
2435 * linux-nat.c (get_signo): Update.
2436 * linux-thread-db.c (inferior_has_bug): Update.
2437 * m32c-tdep.c (m32c_return_value): Update.
2438 (m32c_m16c_address_to_pointer): Update.
2439 (m32c_m16c_pointer_to_address): Update.
2440 * m32r-tdep.c (m32r_frame_this_id): Update.
2441 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2442 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2443 * maint.c (maintenance_translate_address): Update.
2444 * minsyms.c (add_minsym_to_hash_table): Update.
2445 (add_minsym_to_demangled_hash_table): Update.
2446 (msymbol_objfile): Update.
2447 (lookup_minimal_symbol): Update.
2448 (iterate_over_minimal_symbols): Update.
2449 (lookup_minimal_symbol_text): Update.
2450 (lookup_minimal_symbol_by_pc_name): Update.
2451 (lookup_minimal_symbol_solib_trampoline): Update.
2452 (lookup_minimal_symbol_by_pc_section_1): Update.
2453 (lookup_minimal_symbol_and_objfile): Update.
2454 (prim_record_minimal_symbol_full): Update.
2455 (compare_minimal_symbols): Update.
2456 (compact_minimal_symbols): Update.
2457 (build_minimal_symbol_hash_tables): Update.
2458 (install_minimal_symbols): Update.
2459 (terminate_minimal_symbol_table): Update.
2460 (find_solib_trampoline_target): Update.
2461 (minimal_symbol_upper_bound): Update.
2462 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2463 * mips-tdep.c (mips_stub_frame_sniffer): Update.
2464 (mips_skip_pic_trampoline_code): Update.
2465 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
2466 * objc-lang.c (selectors_info): Update.
2467 (classes_info): Update.
2468 (find_methods): Update.
2469 (find_imps): Update.
2470 (find_objc_msgsend): Update.
2471 * objfiles.c (objfile_relocate1): Update.
2472 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
2473 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2474 * p-valprint.c (pascal_val_print): Update.
2475 * parse.c (write_exp_msymbol): Update.
2476 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
2477 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
2478 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2479 * printcmd.c (build_address_symbolic): Update.
2481 (address_info): Update.
2482 * proc-service.c (ps_pglobal_lookup): Update.
2483 * psymtab.c (find_pc_sect_psymtab_closer): Update.
2484 (find_pc_sect_psymtab): Update.
2485 * python/py-framefilter.c (py_print_frame): Update.
2486 * ravenscar-thread.c (get_running_thread_id): Update.
2487 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
2489 * remote.c (remote_check_symbols): Update.
2490 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
2491 (rs6000_skip_trampoline_code): Update.
2492 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
2493 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2494 * solib-dsbt.c (lm_base): Update.
2495 * solib-frv.c (lm_base): Update.
2497 * solib-irix.c (locate_base): Update.
2498 * solib-som.c (som_solib_create_inferior_hook): Update.
2499 (som_solib_desire_dynamic_linker_symbols): Update.
2500 (link_map_start): Update.
2501 * solib-spu.c (spu_enable_break): Update.
2502 (ocl_enable_break): Update.
2503 * solib-svr4.c (elf_locate_base): Update.
2504 (enable_break): Update.
2505 * spu-tdep.c (spu_get_overlay_table): Update.
2506 (spu_catch_start): Update.
2507 (flush_ea_cache): Update.
2508 * stabsread.c (define_symbol): Update.
2509 (scan_file_globals): Update.
2510 * stack.c (find_frame_funname): Update.
2511 (frame_info): Update.
2512 * symfile.c (simple_read_overlay_table): Update.
2513 (simple_overlay_update): Update.
2514 * symmisc.c (dump_msymbols): Update.
2515 * symtab.c (fixup_section): Update.
2516 (find_pc_sect_line): Update.
2517 (skip_prologue_sal): Update.
2518 (search_symbols): Update.
2519 (print_msymbol_info): Update.
2520 (rbreak_command): Update.
2521 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
2522 (completion_list_objc_symbol): Update.
2523 (default_make_symbol_completion_list_break_on): Update.
2524 * tracepoint.c (scope_info): Update.
2525 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
2526 (tui_get_begin_asm_address): Update.
2527 * valops.c (find_function_in_inferior): Update.
2528 * value.c (value_static_field): Update.
2529 (value_fn_field): Update.
2531 2014-02-26 Tom Tromey <tromey@redhat.com>
2533 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
2534 bound minimal symbols. Move code that knows about minsym
2536 * minsyms.c (minimal_symbol_upper_bound): ... here. New
2538 * minsyms.h (minimal_symbol_upper_bound): Declare.
2539 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
2540 minimal_symbol_upper_bound.
2542 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2544 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
2545 Use the type's name if its basic type does not have a tag.
2547 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2549 * dwarf2read.c (read_subrange_type): Add comment.
2551 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2553 * dwarf2read.c (update_enumeration_type_from_children): New
2554 function, mostly extracted from process_structure_scope.
2555 (read_enumeration_type): Call update_enumeration_type_from_children.
2556 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
2557 and flag_flag_enum fields.
2559 2014-02-26 Pedro Alves <palves@redhat.com>
2561 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
2562 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
2563 to_xfer_partial method.
2565 2014-02-26 Pedro Alves <palves@redhat.com>
2567 * target.c (complete_target_initialization): Don't install
2568 default_xfer_partial as to_xfer_partial hook.
2570 (update_current_target): Don't INHERIT nor de_fault
2571 deprecated_xfer_memory. Delete de_fault macro.
2572 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
2573 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
2574 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
2577 2014-02-26 Pedro Alves <palves@redhat.com>
2579 * go32-nat.c (my_write_child): New function.
2580 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
2581 (go32_xfer_partial): New function.
2582 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
2583 Instead install a to_xfer_partial hook.
2585 2014-02-26 Pedro Alves <palves@redhat.com>
2587 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
2588 to_xfer_partial helper. Rewrite.
2589 (procfs_xfer_partial): New function.
2590 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
2591 Install a to_xfer_partial hook.
2593 2014-02-26 Pedro Alves <palves@redhat.com>
2595 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
2596 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
2597 (m32r_xfer_partial): New function.
2598 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
2599 Install a to_xfer_partial hook.
2601 2014-02-26 Pedro Alves <palves@redhat.com>
2603 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
2605 (mips_xfer_partial): New function.
2606 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
2607 hook. Install a to_xfer_partial hook.
2609 2014-02-26 Joel Brobecker <brobecker@adacore.com>
2611 * gdbtypes.h (create_array_type_with_stride): Add declaration.
2612 * gdbtypes.c (create_array_type_with_stride): New function,
2613 renaming create_array_type, but with an added parameter
2614 called "bit_stride".
2615 (create_array_type): Re-implement using
2616 create_array_type_with_stride.
2617 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
2618 and DW_AT_bit_stride attributes.
2620 2014-02-26 Pedro Alves <palves@redhat.com>
2622 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
2623 task-specific breakpoints.
2625 2014-02-25 Pedro Alves <palves@redhat.com>
2627 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
2628 handling of object == TARGET_OBJECT_UNWIND_TABLE.
2630 2014-02-25 Stan Shebs <stan@codesourcery.com>
2632 * defs.h: Annotate comments for Doxygen.
2634 2014-02-25 Tom Tromey <tromey@redhat.com>
2636 * target.h (target_ignore): Don't declare.
2637 * target.c (target_ignore): Remove.
2639 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2642 * auto-load.c (auto_load_objfile_script_1): Change filename to
2645 2014-02-25 Joel Brobecker <brobecker@adacore.com>
2647 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
2648 documentation. Adjust prototype to match the target_ops
2649 to_xfer_partial method. Adjust implementation accordingly.
2651 2014-02-25 Hui Zhu <hui@codesourcery.com>
2653 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
2656 2014-02-25 Kevin Buettner <kevinb@redhat.com>
2658 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
2659 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
2660 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
2661 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
2662 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
2663 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
2664 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
2665 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
2667 (rl78_register_type): Use a data pointer type for SP and
2668 new pseudo registers mentioned above. Use a 16 bit integer
2669 type for all other register pairs.
2670 (rl78_register_name, rl78_g10_register_name): Update for
2671 new pseudo registers.
2672 (rl78_pseudo_register_read): Likewise.
2673 (rl78_pseudo_register_write): Likewise.
2674 (rl78_dwarf_reg_to_regnum): Return register numbers representing
2675 to the newly added pseudo registers.
2677 2014-02-24 Doug Evans <dje@google.com>
2679 * value.c (record_latest_value): Fix comment.
2680 * printcmd.c (print_command_1): Remove code to handle -1 return from
2681 record_latest_value.
2683 2014-02-24 Pedro Alves <palves@redhat.com>
2685 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
2686 deprecated_xfer_memory hook.
2687 (procfs_xfer_partial): Call procfs_xfer_memory instead
2688 of the deprecated_xfer_memory target hook.
2689 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
2692 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
2694 * windows-nat.c (windows_xfer_shared_libraries): Return
2695 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
2696 requested object is TARGET_OBJECT_LIBRARIES.
2698 2014-02-24 Yao Qi <yao@codesourcery.com>
2700 * target.h (enum target_xfer_status)
2701 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
2702 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
2704 * corefile.c (memory_error_message): User updated.
2705 * exec.c (section_table_read_available_memory): Likewise.
2706 * record-btrace.c (record_btrace_xfer_partial): Likewise.
2707 * target.c (target_xfer_status_to_string): Likewise.
2708 (raw_memory_xfer_partial): Likewise.
2709 (memory_xfer_partial_1, target_xfer_partial): Likewise.
2710 * valops.c (read_value_memory): Likewise.
2711 * exec.h: Update comments.
2713 2014-02-24 Yao Qi <yao@codesourcery.com>
2715 * target.c (target_xfer_status_to_string): Rename argument err
2717 * target.h (target_xfer_status_to_string): Update declaration.
2718 Replace target_xfer_error_to_string with
2719 target_xfer_status_to_string in comment.
2721 2014-02-24 Yao Qi <yao@codesourcery.com>
2723 * mips-linux-nat.c (super_close): Update its type.
2724 (mips_linux_close): Pass 'self' to super_close.
2726 2014-02-24 Yao Qi <yao@codesourcery.com>
2728 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
2729 * corefile.c (read_memory): Adjusted.
2730 * target.c (target_write_with_progress): Adjusted.
2732 2014-02-23 Yao Qi <yao@codesourcery.com>
2736 2013-10-25 Yao Qi <yao@codesourcery.com>
2738 * remote.c (remote_traceframe_info): Return early if
2739 traceframe is not selected.
2741 2013-07-19 Yao Qi <yao@codesourcery.com>
2743 * target.c (update_current_target): Change the default action
2744 of 'to_traceframe_info' from tcomplain to return_zero.
2745 * target.h (struct target_ops) <to_traceframe_info>: Add more
2748 2014-02-23 Yao Qi <yao@codesourcery.com>
2750 * valops.c (read_value_memory): Rewrite it. Call
2751 target_xfer_partial in a loop.
2752 * exec.h (section_table_available_memory): Remove declaration.
2753 Move comments to ...
2754 * exec.c (section_table_available_memory): ... here. Make it
2757 2014-02-23 Yao Qi <yao@codesourcery.com>
2759 * exec.c (section_table_read_available_memory): New function.
2760 * exec.h (section_table_read_available_memory): Declare.
2761 * ctf.c (ctf_xfer_partial): Call
2762 section_table_read_available_memory.
2763 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2765 2014-02-23 Yao Qi <yao@codesourcery.com>
2767 * ctf.c (ctf_xfer_partial): Move code to ...
2768 * exec.c (exec_read_partial_read_only): ... it. New function.
2769 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2770 * tracefile.c: Include "exec.h".
2771 * exec.h (exec_read_partial_read_only): Declare.
2773 2014-02-23 Yao Qi <yao@codesourcery.com>
2775 * tracefile-tfile.c (tfile_has_all_memory): Remove.
2776 (tfile_has_memory): Remove.
2777 (init_tfile_ops): Don't set fields to_has_all_memory and
2778 to_has_memory of tfile_ops.
2779 * tracefile.c (tracefile_has_all_memory): New function.
2780 (tracefile_has_memory): New function.
2781 (init_tracefile_ops): Initialize fields to_has_all_memory and
2782 to_has_memory of 'ops'.
2784 2014-02-23 Yao Qi <yao@codesourcery.com>
2786 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
2787 (ctf_thread_alive, ctf_get_trace_status): Remove.
2788 (init_ctf_ops): Don't set some fields of ctf_ops. Call
2790 * tracefile-tfile.c (tfile_get_trace_status): Remove.
2791 (tfile_has_stack, tfile_has_registers): Remove.
2792 (tfile_thread_alive): Remove.
2793 (init_tfile_ops): Don't set some fields of tfile_ops. Call
2795 * tracefile.c (tracefile_has_stack): New function.
2796 (tracefile_has_registers): New function.
2797 (tracefile_thread_alive): New function.
2798 (tracefile_get_trace_status): New function.
2799 (init_tracefile_ops): New function.
2800 * tracefile.h (init_tracefile_ops): Declare.
2802 2014-02-23 Yao Qi <yao@codesourcery.com>
2804 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
2805 (O_LARGEFILE): Likewise.
2806 (tfile_ops): Likewise.
2807 (TRACE_HEADER_SIZE): Likewise.
2808 (trace_fd, trace_frames_offset, cur_offset): Likewise.
2809 (cur_data_size): Likewise.
2810 (tfile_read, tfile_open, tfile_interp_line): Likewise.
2811 (tfile_close, tfile_files_info): Likewise.
2812 (tfile_get_trace_status): Likewise.
2813 (tfile_get_tracepoint_status): Likewise.
2814 (tfile_get_traceframe_address): Likewise.
2815 (tfile_trace_find, match_blocktype): Likewise.
2816 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
2817 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
2818 (tfile_get_trace_state_variable_value): Likewise.
2819 (tfile_has_all_memory, tfile_has_memory): Likewise.
2820 (tfile_has_stack, tfile_has_registers): Likewise.
2821 (tfile_thread_alive, build_traceframe_info): Likewise.
2822 (tfile_traceframe_info, init_tfile_ops): Likewise.
2823 (_initialize_tracepoint): Don't call init_tfile_ops
2824 and add_target_with_completer.
2825 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
2826 exec.h, completer.h and filenames.h.
2827 (_initialize_tracefile_tfile): New function.
2829 2014-02-23 Yao Qi <yao@codesourcery.com>
2831 * Makefile.in (REMOTE_OBS): Append tracefile.o and
2833 (HFILES_NO_SRCDIR): Add tracefile.h.
2834 * ctf.c: Include "tracefile.h".
2835 * tracefile.h: New file.
2836 * tracefile.c: New file
2837 * tracefile-tfile.c: New file.
2838 * tracepoint.c: Include "tracefile.h".
2839 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
2840 (stop_reason_names): Add const.
2841 (trace_file_writer_xfree): Move it to tracefile.c.
2842 (trace_save, trace_save_command, trace_save_tfile): Likewise.
2843 (trace_save_ctf): Likewise.
2844 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
2845 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
2846 (tfile_write_header, tfile_write_regblock_type): Likewise.
2847 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
2848 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
2849 (tfile_write_raw_data, tfile_end): Likewise.
2850 (tfile_trace_file_writer_new): Likewise.
2851 (free_uploaded_tp): Make it extern.
2852 (free_uploaded_tsv): Make it extern.
2853 (_initialize_tracepoint): Move code to register command 'tsave'
2855 * tracepoint.h (stop_reason_names): Declare.
2856 (struct trace_frame_write_ops): Move it to tracefile.h.
2857 (struct trace_file_write_ops): Likewise.
2858 (struct trace_file_writer): Likewise.
2859 (free_uploaded_tsvs, free_uploaded_tps): Declare.
2861 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2864 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
2866 (get_cores_used_by_process): New parameter num_cores, use it.
2867 (linux_xfer_osdata_processes): Pass num_cores to it.
2868 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
2871 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
2873 * target.c (memory_xfer_partial): Fix length arg in call to
2874 breakpoint_xfer_memory.
2876 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
2879 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
2880 number comes after the + or - signs. Adjust length of register
2881 name to be extracted.
2883 2014-02-20 Tom Tromey <tromey@redhat.com>
2885 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
2886 (ada_varobj_ops): Mark "extern".
2888 2014-02-20 Tom Tromey <tromey@redhat.com>
2890 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
2892 2014-02-20 Doug Evans <xdje42@gmail.com>
2894 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
2895 All callers updated.
2896 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
2897 All callers updated.
2898 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
2899 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
2901 2014-02-20 lin zuojian <manjian2006@gmail.com>
2902 Joel Brobecker <brobecker@adacore.com>
2903 Doug Evans <xdje42@gmail.com>
2906 * dwarf2read.c (struct die_info): New member in_process.
2907 (reset_die_in_process): New function.
2908 (process_die): Set it at the start, reset when returning.
2909 (inherit_abstract_dies): Only call process_die if origin_child_die
2910 not already being processed.
2912 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2914 * windows-nat.c (handle_unload_dll): Add function documentation.
2915 (do_initial_windows_stuff): Add comment explaining why we wait
2916 until after inferior initialization has finished before
2917 processing all DLLs.
2919 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2921 * windows-nat.c (get_module_name): Delete.
2922 (windows_get_exec_module_filename): New function, mostly
2923 inspired from get_module_name.
2924 (windows_pid_to_exec_file): Replace call to get_module_name
2925 by call to windows_get_exec_module_filename.
2927 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2929 * windows-nat.c (handle_load_dll): Rewrite this function's
2930 introductory comment. Remove code using get_module_name
2931 to get the DLL's name.
2933 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2935 * windows-nat.c (get_windows_debug_event): Ignore
2936 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
2937 if windows_initialization_done == 0.
2938 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
2939 Adjust implementation to always load all DLLs.
2940 (do_initial_windows_stuff): Replace call to
2941 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
2943 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2945 * windows-nat.c (_initialize_windows_nat): Deprecate the
2946 "dll-symbols" command. Turn the "add-shared-symbol-files"
2947 and "assf" aliases into commands, and deprecate them as well.
2948 * NEWS: Add entry explaining that "dll-symbols" and its two
2949 aliases are now deprecated.
2951 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2953 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
2954 new-line in debug string. Remove trailing spaces.
2956 2014-02-19 Stan Shebs <stan@codesourcery.com>
2958 * darwin-nat.c (darwin_xfer_partial): Fix return type.
2960 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
2962 * NEWS: Add entry for the new feature
2963 * python/py-value.c (valpy_binop): Call value_x_binop for struct
2966 2014-02-19 Stan Shebs <stan@codesourcery.com>
2968 * MAINTAINERS: List Yao Qi as nios2 maintainer.
2970 2014-02-19 Pedro Alves <palves@redhat.com>
2972 * common/ptid.h (struct ptid): Mention that process_stratum
2973 targets should prefer ptid.lwp.
2975 2014-02-19 Pedro Alves <palves@redhat.com>
2977 * remote.c (remote_thread_alive, write_ptid, read_ptid)
2978 (read_ptid, remote_newthread_step, remote_threads_extra_info)
2979 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
2980 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
2981 store remote thread ids rather than ptid.tid.
2982 (_initialize_remote): Adjust.
2984 2014-02-19 Tom Tromey <tromey@redhat.com>
2986 * target.c (target_get_unwinder): Rewrite.
2987 (target_get_tailcall_unwinder): Rewrite.
2988 * record-btrace.c (record_btrace_to_get_unwinder): New function.
2989 (record_btrace_to_get_tailcall_unwinder): New function.
2990 (init_record_btrace_ops): Update.
2991 * target.h (struct target_ops) <to_get_unwinder,
2992 to_get_tailcall_unwinder>: Now function pointers. Use
2993 TARGET_DEFAULT_RETURN.
2995 2014-02-19 Tom Tromey <tromey@redhat.com>
2997 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
2999 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
3001 2014-02-19 Tom Tromey <tromey@redhat.com>
3003 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
3005 * target-delegates.c: Rebuild.
3006 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
3007 TARGET_DEFAULT_FUNC.
3008 * target.c (default_target_decr_pc_after_break): Rename from
3009 forward_target_decr_pc_after_break. Simplify.
3010 (target_decr_pc_after_break): Rely on delegation.
3012 2014-02-19 Tom Tromey <tromey@redhat.com>
3014 * target.c (update_current_target): Do not INHERIT to_doc or
3015 to_magic. Do not de_fault to_open or to_close.
3017 2014-02-19 Tom Tromey <tromey@redhat.com>
3019 * gcore.h (objfile_find_memory_regions): Declare.
3020 * gcore.c (objfile_find_memory_regions): No longer static. Add
3022 (_initialize_gcore): Don't call exec_set_find_memory_regions.
3023 * exec.c: Include gcore.h.
3024 (exec_set_find_memory_regions): Remove.
3025 (exec_find_memory_regions): Remove.
3026 (exec_do_find_memory_regions): Remove.
3027 (init_exec_ops): Update.
3028 * defs.h (exec_set_find_memory_regions): Remove.
3030 2014-02-19 Tom Tromey <tromey@redhat.com>
3032 * target-delegates.c: Rebuild.
3033 * target.h (struct target_ops) <to_extra_thread_info,
3034 to_thread_name, to_pid_to_exec_file, to_get_section_table,
3035 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
3036 not 0, in TARGET_DEFAULT_RETURN.
3038 2014-02-19 Tom Tromey <tromey@redhat.com>
3040 * target.c (complete_target_initialization): Remove casts. Use
3041 return_zero_has_execution.
3042 (return_zero): Add "ignore" argument.
3043 (return_zero_has_execution): New function.
3044 (init_dummy_target): Remove casts. Use
3045 return_zero_has_execution.
3047 2014-02-19 Tom Tromey <tromey@redhat.com>
3049 * target.c (update_current_target): Update comments. Do not
3052 2014-02-19 Tom Tromey <tromey@redhat.com>
3054 * arm-linux-nat.c (arm_linux_read_description): Delegate when
3056 * corelow.c (core_read_description): Delegate when needed.
3057 * remote.c (remote_read_description): Delegate when needed.
3058 * target-delegates.c: Rebuild.
3059 * target.c (target_read_description): Rewrite.
3060 * target.h (struct target_ops) <to_read_description>: Update
3061 comment. Use TARGET_DEFAULT_RETURN.
3063 2014-02-19 Tom Tromey <tromey@redhat.com>
3065 * target-delegates.c: Rebuild.
3066 * target.c (update_current_target): Don't inherit or default
3068 (find_default_run_target): Check against delegate_can_run.
3069 * target.h (struct target_ops) <to_can_run>: Use
3070 TARGET_DEFAULT_RETURN.
3072 2014-02-19 Tom Tromey <tromey@redhat.com>
3074 * target-delegates.c: Rebuild.
3075 * target.c (target_disconnect): Unconditionally delegate.
3076 * target.h (struct target_ops) <to_disconnect>: Use
3077 TARGET_DEFAULT_NORETURN.
3079 2014-02-19 Tom Tromey <tromey@redhat.com>
3081 * record.c (record_stop): Unconditionally delegate.
3082 * target-delegates.c: Rebuild.
3083 * target.c (target_stop_recording): Unconditionally delegate.
3084 * target.h (struct target_ops) <to_stop_recording>: Use
3085 TARGET_DEFAULT_IGNORE.
3087 2014-02-19 Tom Tromey <tromey@redhat.com>
3089 * target-delegates.c: Rebuild.
3090 * target.c (target_enable_btrace): Unconditionally delegate.
3091 * target.h (struct target_ops) <to_enable_btrace>: Use
3092 TARGET_DEFAULT_NORETURN.
3094 2014-02-19 Tom Tromey <tromey@redhat.com>
3096 * target-delegates.c: Rebuild.
3097 * target.c (target_read_btrace): Unconditionally delegate.
3098 * target.h (struct target_ops) <to_read_btrace>: Use
3099 TARGET_DEFAULT_NORETURN.
3101 2014-02-19 Tom Tromey <tromey@redhat.com>
3103 * target-delegates.c: Rebuild.
3104 * target.c (target_teardown_btrace): Unconditionally delegate.
3105 * target.h (struct target_ops) <to_teardown_btrace>: Use
3106 TARGET_DEFAULT_NORETURN.
3108 2014-02-19 Tom Tromey <tromey@redhat.com>
3110 * target-delegates.c: Rebuild.
3111 * target.c (target_disable_btrace): Unconditionally delegate.
3112 * target.h (struct target_ops) <to_disable_btrace>: Use
3113 TARGET_DEFAULT_NORETURN.
3115 2014-02-19 Tom Tromey <tromey@redhat.com>
3117 * target-delegates.c: Rebuild.
3118 * target.c (default_search_memory): New function.
3119 (simple_search_memory): Update comment.
3120 (target_search_memory): Unconditionally delegate.
3121 * target.h (struct target_ops) <to_search_memory>: Use
3122 TARGET_DEFAULT_FUNC.
3124 2014-02-19 Tom Tromey <tromey@redhat.com>
3126 * auxv.c (default_auxv_parse): No longer static.
3127 (target_auxv_parse): Unconditionally delegate.
3128 * auxv.h (default_auxv_parse): Declare.
3129 * target-delegates.c: Rebuild.
3130 * target.c: Include auxv.h.
3131 * target.h (struct target_ops) <to_auxv_parse>: Use
3132 TARGET_DEFAULT_FUNC.
3134 2014-02-19 Tom Tromey <tromey@redhat.com>
3136 * target-delegates.c: Rebuild.
3137 * target.c (target_memory_map): Unconditionally delegate.
3138 * target.h (struct target_ops) <to_memory_map>: Use
3139 TARGET_DEFAULT_RETURN.
3141 2014-02-19 Tom Tromey <tromey@redhat.com>
3143 * target-delegates.c: Rebuild.
3144 * target.c (target_thread_alive): Unconditionally delegate.
3145 * target.h (struct target_ops) <to_thread_alive>: Use
3146 TARGET_DEFAULT_RETURN.
3148 2014-02-19 Tom Tromey <tromey@redhat.com>
3150 * target-delegates.c: Rebuild.
3151 * target.c (target_save_record): Unconditionally delegate.
3152 * target.h (struct target_ops) <to_save_record>: Use
3153 TARGET_DEFAULT_NORETURN.
3155 2014-02-19 Tom Tromey <tromey@redhat.com>
3157 * target-delegates.c: Rebuild.
3158 * target.c (target_delete_record): Unconditionally delegate.
3159 * target.h (struct target_ops) <to_delete_record>: Use
3160 TARGET_DEFAULT_NORETURN.
3162 2014-02-19 Tom Tromey <tromey@redhat.com>
3164 * target-delegates.c: Rebuild.
3165 * target.c (target_record_is_replaying): Unconditionally
3167 * target.h (struct target_ops) <to_record_is_replaying>: Use
3168 TARGET_DEFAULT_RETURN.
3170 2014-02-19 Tom Tromey <tromey@redhat.com>
3172 * target-delegates.c: Rebuild.
3173 * target.c (target_goto_record_begin): Unconditionally delegate.
3174 * target.h (struct target_ops) <to_goto_record_begin>: Use
3175 TARGET_DEFAULT_NORETURN.
3177 2014-02-19 Tom Tromey <tromey@redhat.com>
3179 * target-delegates.c: Rebuild.
3180 * target.c (target_goto_record_end): Unconditionally delegate.
3181 * target.h (struct target_ops) <to_goto_record_end>: Use
3182 TARGET_DEFAULT_NORETURN.
3184 2014-02-19 Tom Tromey <tromey@redhat.com>
3186 * target-delegates.c: Rebuild.
3187 * target.c (target_goto_record): Unconditionally delegate.
3188 * target.h (struct target_ops) <to_goto_record>: Use
3189 TARGET_DEFAULT_NORETURN.
3191 2014-02-19 Tom Tromey <tromey@redhat.com>
3193 * target-delegates.c: Rebuild.
3194 * target.c (target_insn_history): Unconditionally delegate.
3195 * target.h (struct target_ops) <to_insn_history>: Use
3196 TARGET_DEFAULT_NORETURN.
3198 2014-02-19 Tom Tromey <tromey@redhat.com>
3200 * target-delegates.c: Rebuild.
3201 * target.c (target_insn_history_from): Unconditionally delegate.
3202 * target.h (struct target_ops) <to_insn_history_from>: Use
3203 TARGET_DEFAULT_NORETURN.
3205 2014-02-19 Tom Tromey <tromey@redhat.com>
3207 * target-delegates.c: Rebuild.
3208 * target.c (target_insn_history_range): Unconditionally delegate.
3209 * target.h (struct target_ops) <to_insn_history_range>: Use
3210 TARGET_DEFAULT_NORETURN.
3212 2014-02-19 Tom Tromey <tromey@redhat.com>
3214 * target-delegates.c: Rebuild.
3215 * target.c (target_call_history): Unconditionally delegate.
3216 * target.h (struct target_ops) <to_call_history>: Use
3217 TARGET_DEFAULT_NORETURN.
3219 2014-02-19 Tom Tromey <tromey@redhat.com>
3221 * target-delegates.c: Rebuild.
3222 * target.c (target_call_history_from): Unconditionally delegate.
3223 * target.h (struct target_ops) <to_call_history_from>: Use
3224 TARGET_DEFAULT_NORETURN.
3226 2014-02-19 Tom Tromey <tromey@redhat.com>
3228 * target-delegates.c: Rebuild.
3229 * target.c (target_call_history_range): Unconditionally delegate.
3230 * target.h (struct target_ops) <to_call_history_range>: Use
3231 TARGET_DEFAULT_NORETURN.
3233 2014-02-19 Tom Tromey <tromey@redhat.com>
3235 * target-delegates.c: Rebuild.
3236 * target.c (target_verify_memory): Unconditionally delegate.
3237 * target.h (struct target_ops) <to_verify_memory>: Use
3238 TARGET_DEFAULT_NORETURN.
3240 2014-02-19 Tom Tromey <tromey@redhat.com>
3242 * target-delegates.c: Rebuild.
3243 * target.c (target_core_of_thread): Unconditionally delegate.
3244 * target.h (struct target_ops) <to_core_of_thread>: Use
3245 TARGET_DEFAULT_RETURN.
3247 2014-02-19 Tom Tromey <tromey@redhat.com>
3249 * target-delegates.c: Rebuild.
3250 * target.c (target_flash_done): Unconditionally delegate.
3251 * target.h (struct target_ops) <to_flash_done>: Use
3252 TARGET_DEFAULT_NORETURN.
3254 2014-02-19 Tom Tromey <tromey@redhat.com>
3256 * target-delegates.c: Rebuild.
3257 * target.c (target_flash_erase): Unconditionally delegate.
3258 * target.h (struct target_ops) <to_flash_erase>: Use
3259 TARGET_DEFAULT_NORETURN.
3261 2014-02-19 Tom Tromey <tromey@redhat.com>
3263 * target-delegates.c: Rebuild.
3264 * target.c (target_get_section_table): Unconditionally delegate.
3265 * target.h (struct target_ops) <to_get_section_table>: Use
3266 TARGET_DEFAULT_RETURN.
3268 2014-02-19 Tom Tromey <tromey@redhat.com>
3270 * target-delegates.c: Rebuild.
3271 * target.c (target_pid_to_str): Unconditionally delegate.
3272 (init_dummy_target): Don't initialize to_pid_to_str.
3273 (default_pid_to_str): Rename from dummy_pid_to_str.
3274 * target.h (struct target_ops) <to_pid_to_str>: Use
3275 TARGET_DEFAULT_FUNC.
3277 2014-02-19 Tom Tromey <tromey@redhat.com>
3279 * target-delegates.c: Rebuild.
3280 * target.c (target_find_new_threads): Unconditionally delegate.
3281 * target.h (struct target_ops) <to_find_new_threads>: Use
3282 TARGET_DEFAULT_RETURN.
3284 2014-02-19 Tom Tromey <tromey@redhat.com>
3286 * target-delegates.c: Rebuild.
3287 * target.c (target_program_signals): Unconditionally delegate.
3288 * target.h (struct target_ops) <to_program_signals>: Use
3289 TARGET_DEFAULT_IGNORE.
3291 2014-02-19 Tom Tromey <tromey@redhat.com>
3293 * target-delegates.c: Rebuild.
3294 * target.c (target_pass_signals): Unconditionally delegate.
3295 * target.h (struct target_ops) <to_pass_signals>: Use
3296 TARGET_DEFAULT_IGNORE.
3298 2014-02-19 Tom Tromey <tromey@redhat.com>
3300 * target-delegates.c: Rebuild.
3301 * target.c (default_mourn_inferior): New function.
3302 (target_mourn_inferior): Unconditionally delegate.
3303 * target.h (struct target_ops) <to_mourn_inferior>: Use
3304 TARGET_DEFAULT_FUNC.
3306 2014-02-19 Tom Tromey <tromey@redhat.com>
3308 * target-delegates.c: Rebuild.
3309 * target.c (default_follow_fork): New function.
3310 (target_follow_fork): Unconditionally delegate.
3311 * target.h (struct target_ops) <to_follow_fork>: Use
3312 TARGET_DEFAULT_FUNC.
3314 2014-02-19 Tom Tromey <tromey@redhat.com>
3316 * target-delegates.c: Rebuild.
3317 * target.c (target_kill): Unconditionally delegate.
3318 * target.h (struct target_ops) <to_kill>: Use
3319 TARGET_DEFAULT_NORETURN.
3321 2014-02-19 Tom Tromey <tromey@redhat.com>
3323 * target-delegates.c: Rebuild.
3324 * target.c (target_masked_watch_num_registers): Unconditionally
3326 * target.h (struct target_ops) <to_masked_watch_num_registers>:
3327 Use TARGET_DEFAULT_RETURN.
3329 2014-02-19 Tom Tromey <tromey@redhat.com>
3331 * target-delegates.c: Rebuild.
3332 * target.c (target_remove_mask_watchpoint): Unconditionally
3334 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
3335 TARGET_DEFAULT_RETURN.
3337 2014-02-19 Tom Tromey <tromey@redhat.com>
3339 * target-delegates.c: Rebuild.
3340 * target.c (target_insert_mask_watchpoint): Unconditionally
3342 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
3343 TARGET_DEFAULT_RETURN.
3345 2014-02-19 Tom Tromey <tromey@redhat.com>
3347 * target-delegates.c: Rebuild.
3348 * target.c (target_ranged_break_num_registers): Unconditionally
3350 * target.h (struct target_ops) <to_ranged_break_num_registers>:
3351 Use TARGET_DEFAULT_RETURN.
3353 2014-02-19 Tom Tromey <tromey@redhat.com>
3355 * target-delegates.c: Rebuild.
3356 * target.c (target_fetch_registers): Unconditionally delegate.
3357 * target.h (struct target_ops) <to_fetch_registers>: Use
3358 TARGET_DEFAULT_NORETURN.
3360 2014-02-19 Tom Tromey <tromey@redhat.com>
3362 * target-delegates.c: Rebuild.
3363 * target.c (update_current_target): Don't inherit or default
3365 * target.h (struct target_ops) <to_stop>: Use
3366 TARGET_DEFAULT_IGNORE.
3368 2014-02-19 Tom Tromey <tromey@redhat.com>
3370 * target-delegates.c: Rebuild.
3371 * target.c (update_current_target): Don't inherit or default
3372 to_can_run_breakpoint_commands.
3373 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
3374 Use TARGET_DEFAULT_RETURN.
3376 2014-02-19 Tom Tromey <tromey@redhat.com>
3378 * target-delegates.c: Rebuild.
3379 * target.c (update_current_target): Don't inherit or default
3380 to_supports_evaluation_of_breakpoint_conditions.
3381 * target.h (struct target_ops)
3382 <to_supports_evaluation_of_breakpoint_conditions>: Use
3383 TARGET_DEFAULT_RETURN.
3385 2014-02-19 Tom Tromey <tromey@redhat.com>
3387 * target-delegates.c: Rebuild.
3388 * target.c (update_current_target): Don't inherit or default
3389 to_augmented_libraries_svr4_read.
3390 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
3391 Use TARGET_DEFAULT_RETURN.
3393 2014-02-19 Tom Tromey <tromey@redhat.com>
3395 * target-delegates.c: Rebuild.
3396 * target.c (update_current_target): Don't inherit or default
3398 * target.h (struct target_ops) <to_can_use_agent>: Use
3399 TARGET_DEFAULT_RETURN.
3401 2014-02-19 Tom Tromey <tromey@redhat.com>
3403 * target-delegates.c: Rebuild.
3404 * target.c (update_current_target): Don't inherit or default
3406 * target.h (struct target_ops) <to_use_agent>: Use
3407 TARGET_DEFAULT_NORETURN.
3409 2014-02-19 Tom Tromey <tromey@redhat.com>
3411 * target-delegates.c: Rebuild.
3412 * target.c (update_current_target): Don't inherit or default
3414 (return_null): Remove.
3415 * target.h (struct target_ops) <to_traceframe_info>: Use
3416 TARGET_DEFAULT_RETURN.
3418 2014-02-19 Tom Tromey <tromey@redhat.com>
3420 * target-delegates.c: Rebuild.
3421 * target.c (update_current_target): Don't inherit or default
3422 to_static_tracepoint_markers_by_strid.
3423 * target.h (struct target_ops)
3424 <to_static_tracepoint_markers_by_strid>: Use
3425 TARGET_DEFAULT_NORETURN.
3427 2014-02-19 Tom Tromey <tromey@redhat.com>
3429 * target-delegates.c: Rebuild.
3430 * target.c (update_current_target): Don't inherit or default
3431 to_static_tracepoint_marker_at.
3432 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
3433 Use TARGET_DEFAULT_RETURN.
3435 2014-02-19 Tom Tromey <tromey@redhat.com>
3437 * target-delegates.c: Rebuild.
3438 * target.c (update_current_target): Don't inherit or default
3440 * target.h (struct target_ops) <to_set_permissions>: Use
3441 TARGET_DEFAULT_IGNORE.
3443 2014-02-19 Tom Tromey <tromey@redhat.com>
3445 * target-delegates.c: Rebuild.
3446 * target.c (update_current_target): Don't inherit or default
3448 * target.h (struct target_ops) <to_get_tib_address>: Use
3449 TARGET_DEFAULT_NORETURN.
3451 2014-02-19 Tom Tromey <tromey@redhat.com>
3453 * target-delegates.c: Rebuild.
3454 * target.c (update_current_target): Don't inherit or default
3456 * target.h (struct target_ops) <to_set_trace_notes>: Use
3457 TARGET_DEFAULT_RETURN.
3459 2014-02-19 Tom Tromey <tromey@redhat.com>
3461 * target-delegates.c: Rebuild.
3462 * target.c (update_current_target): Don't initialize
3463 to_set_trace_buffer_size.
3464 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
3465 TARGET_DEFAULT_IGNORE.
3467 2014-02-19 Tom Tromey <tromey@redhat.com>
3469 * target-delegates.c: Rebuild.
3470 * target.c (update_current_target): Don't inherit or default
3471 to_set_circular_trace_buffer.
3472 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
3473 TARGET_DEFAULT_IGNORE.
3475 2014-02-19 Tom Tromey <tromey@redhat.com>
3477 * target-delegates.c: Rebuild.
3478 * target.c (update_current_target): Don't inherit or default
3479 to_set_disconnected_tracing.
3480 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
3481 TARGET_DEFAULT_IGNORE.
3483 2014-02-19 Tom Tromey <tromey@redhat.com>
3485 * target-delegates.c: Rebuild.
3486 * target.c (update_current_target): Don't inherit or default
3487 to_get_min_fast_tracepoint_insn_len.
3488 (return_minus_one): Remove.
3489 * target.h (struct target_ops)
3490 <to_get_min_fast_tracepoint_insn_len>: Use 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_get_raw_trace_data.
3497 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
3498 TARGET_DEFAULT_NORETURN.
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_upload_trace_state_variables.
3505 * target.h (struct target_ops) <to_upload_trace_state_variables>:
3506 Use TARGET_DEFAULT_RETURN.
3508 2014-02-19 Tom Tromey <tromey@redhat.com>
3510 * target-delegates.c: Rebuild.
3511 * target.c (update_current_target): Don't inherit or default
3512 to_upload_tracepoints.
3513 * target.h (struct target_ops) <to_upload_tracepoints>: Use
3514 TARGET_DEFAULT_RETURN.
3516 2014-02-19 Tom Tromey <tromey@redhat.com>
3518 * target-delegates.c: Rebuild.
3519 * target.c (update_current_target): Don't inherit or default
3521 * target.h (struct target_ops) <to_save_trace_data>: Use
3522 TARGET_DEFAULT_NORETURN.
3524 2014-02-19 Tom Tromey <tromey@redhat.com>
3526 * target-delegates.c: Rebuild.
3527 * target.c (update_current_target): Don't inherit or default
3528 to_get_trace_state_variable_value.
3529 * target.h (struct target_ops)
3530 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
3532 2014-02-19 Tom Tromey <tromey@redhat.com>
3534 * target-delegates.c: Rebuild.
3535 * target.c (update_current_target): Don't inherit or default
3537 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
3539 2014-02-19 Tom Tromey <tromey@redhat.com>
3541 * target-delegates.c: Rebuild.
3542 * target.c (update_current_target): Don't inherit or default
3544 * target.h (struct target_ops) <to_trace_stop>: Use
3545 TARGET_DEFAULT_NORETURN.
3547 2014-02-19 Tom Tromey <tromey@redhat.com>
3549 * target-delegates.c: Rebuild.
3550 * target.c (update_current_target): Don't inherit or default
3551 to_get_tracepoint_status.
3552 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
3553 TARGET_DEFAULT_NORETURN.
3555 2014-02-19 Tom Tromey <tromey@redhat.com>
3557 * target-delegates.c: Rebuild.
3558 * target.c (update_current_target): Don't inherit or default
3559 to_get_trace_status.
3560 * target.h (struct target_ops) <to_get_trace_status>: Use
3561 TARGET_DEFAULT_RETURN.
3563 2014-02-19 Tom Tromey <tromey@redhat.com>
3565 * target-delegates.c: Rebuild.
3566 * target.c (update_current_target): Don't inherit or default
3568 * target.h (struct target_ops) <to_trace_start>: Use
3569 TARGET_DEFAULT_NORETURN.
3571 2014-02-19 Tom Tromey <tromey@redhat.com>
3573 * target-delegates.c: Rebuild.
3574 * target.c (update_current_target): Don't inherit or default
3575 to_trace_set_readonly_regions.
3576 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
3577 Use TARGET_DEFAULT_NORETURN.
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_disable_tracepoint.
3584 * target.h (struct target_ops) <to_disable_tracepoint>: Use
3585 TARGET_DEFAULT_NORETURN.
3587 2014-02-19 Tom Tromey <tromey@redhat.com>
3589 * target-delegates.c: Rebuild.
3590 * target.c (update_current_target): Don't inherit or default
3591 to_enable_tracepoint.
3592 * target.h (struct target_ops) <to_enable_tracepoint>: Use
3593 TARGET_DEFAULT_NORETURN.
3595 2014-02-19 Tom Tromey <tromey@redhat.com>
3597 * target-delegates.c: Rebuild.
3598 * target.c (update_current_target): Don't inherit or default
3599 to_download_trace_state_variable.
3600 * target.h (struct target_ops) <to_download_trace_state_variable>:
3601 Use TARGET_DEFAULT_NORETURN.
3603 2014-02-19 Tom Tromey <tromey@redhat.com>
3605 * target-delegates.c: Rebuild.
3606 * target.c (update_current_target): Don't inherit or default
3607 to_can_download_tracepoint.
3608 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
3609 TARGET_DEFAULT_RETURN.
3611 2014-02-19 Tom Tromey <tromey@redhat.com>
3613 * target-delegates.c: Rebuild.
3614 * target.c (update_current_target): Don't inherit or default
3615 to_download_tracepoint.
3616 * target.h (struct target_ops) <to_download_tracepoint>: Use
3617 TARGET_DEFAULT_NORETURN.
3619 2014-02-19 Tom Tromey <tromey@redhat.com>
3621 * target-delegates.c: Rebuild.
3622 * target.c (update_current_target): Don't inherit or default
3624 * target.h (struct target_ops) <to_trace_init>: Use
3625 TARGET_DEFAULT_RETURN.
3627 2014-02-19 Tom Tromey <tromey@redhat.com>
3629 * target-delegates.c: Rebuild.
3630 * target.c (update_current_target): Don't inherit or default
3631 to_supports_string_tracing.
3632 * target.h (struct target_ops) <to_supports_string_tracing>: Use
3633 TARGET_DEFAULT_RETURN.
3635 2014-02-19 Tom Tromey <tromey@redhat.com>
3637 * target-delegates.c: Rebuild.
3638 * target.c (update_current_target): Don't inherit or default
3639 to_supports_enable_disable_tracepoint.
3640 * target.h (struct target_ops)
3641 <to_supports_enable_disable_tracepoint>: Use
3642 TARGET_DEFAULT_RETURN.
3644 2014-02-19 Tom Tromey <tromey@redhat.com>
3646 * target-delegates.c: Rebuild.
3647 * target.c (update_current_target): Don't inherit or default
3648 to_supports_multi_process.
3649 * target.h (struct target_ops) <to_supports_multi_process>: Use
3650 TARGET_DEFAULT_RETURN.
3652 2014-02-19 Tom Tromey <tromey@redhat.com>
3654 * target-delegates.c: Rebuild.
3655 * target.c (update_current_target): Don't inherit or default
3656 to_get_ada_task_ptid.
3657 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
3658 TARGET_DEFAULT_FUNC.
3660 2014-02-19 Tom Tromey <tromey@redhat.com>
3662 * target-delegates.c: Rebuild.
3663 * target.c (update_current_target): Don't inherit or default
3664 to_thread_architecture.
3665 * target.h (struct target_ops) <to_thread_architecture>: Use
3666 TARGET_DEFAULT_FUNC.
3668 2014-02-19 Tom Tromey <tromey@redhat.com>
3670 * target-delegates.c: Rebuild.
3671 * target.c (update_current_target): Don't inherit or default
3672 to_execution_direction.
3673 * target.h (struct target_ops) <to_execution_direction>: Use
3674 TARGET_DEFAULT_FUNC.
3676 2014-02-19 Tom Tromey <tromey@redhat.com>
3678 * target-delegates.c: Rebuild.
3679 * target.c (update_current_target): Don't inherit or default
3680 to_can_execute_reverse.
3681 * target.h (struct target_ops) <to_can_execute_reverse>: Use
3682 TARGET_DEFAULT_RETURN.
3683 (target_can_execute_reverse): Unconditionally delegate.
3685 2014-02-19 Tom Tromey <tromey@redhat.com>
3687 * target-delegates.c: Rebuild.
3688 * target.c (update_current_target): Don't inherit or default
3690 (dummy_goto_bookmark): Remove.
3691 (init_dummy_target): Don't inherit or default to_goto_bookmark.
3692 * target.h (struct target_ops) <to_goto_bookmark>: Use
3693 TARGET_DEFAULT_NORETURN.
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 (dummy_get_bookmark): Remove.
3701 (init_dummy_target): Don't inherit or default to_get_bookmark.
3702 * target.h (struct target_ops) <to_get_bookmark>: Use
3703 TARGET_DEFAULT_NORETURN
3705 2014-02-19 Tom Tromey <tromey@redhat.com>
3707 * target-delegates.c: Rebuild.
3708 * target.c (update_current_target): Don't inherit or default
3709 to_make_corefile_notes.
3710 (init_dummy_target): Don't initialize to_make_corefile_notes.
3711 * target.h (struct target_ops) <to_make_corefile_notes>: Use
3712 TARGET_DEFAULT_FUNC.
3714 2014-02-19 Tom Tromey <tromey@redhat.com>
3716 * target-delegates.c: Rebuild.
3717 * target.c (update_current_target): Don't inherit or default
3718 to_find_memory_regions.
3719 (init_dummy_target): Don't initialize to_find_memory_regions.
3720 * target.h (struct target_ops) <to_find_memory_regions>: Use
3721 TARGET_DEFAULT_FUNC.
3723 2014-02-19 Tom Tromey <tromey@redhat.com>
3725 * target-delegates.c: Rebuild.
3726 * target.c (update_current_target): Don't inherit or default
3728 * target.h (struct target_ops) <to_log_command>: Use
3729 TARGET_DEFAULT_IGNORE.
3730 (target_log_command): Unconditionally delegate.
3732 2014-02-19 Tom Tromey <tromey@redhat.com>
3734 * target-delegates.c: Rebuild.
3735 * target.c (update_current_target): Don't inherit or default
3736 to_pid_to_exec_file.
3737 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
3738 TARGET_DEFAULT_RETURN.
3740 2014-02-19 Tom Tromey <tromey@redhat.com>
3742 * target-delegates.c: Rebuild.
3743 * target.c (update_current_target): Don't inherit or default
3745 (target_thread_name): Unconditionally delegate.
3746 * target.h (struct target_ops) <to_thread_name>: Use
3747 TARGET_DEFAULT_RETURN.
3749 2014-02-19 Tom Tromey <tromey@redhat.com>
3751 * target-delegates.c: Rebuild.
3752 * target.c (update_current_target): Don't inherit or default
3753 to_extra_thread_info.
3754 * target.h (struct target_ops) <to_extra_thread_info>: Use
3755 TARGET_DEFAULT_RETURN.
3757 2014-02-19 Tom Tromey <tromey@redhat.com>
3759 * target-delegates.c: Rebuild.
3760 * target.c (update_current_target): Don't inherit or default
3762 * target.h (struct target_ops) <to_has_exited>: Use
3763 TARGET_DEFAULT_RETURN..
3765 2014-02-19 Tom Tromey <tromey@redhat.com>
3767 * target-delegates.c: Rebuild.
3768 * target.c (update_current_target): Don't inherit or default
3769 to_set_syscall_catchpoint.
3770 (return_one): Remove.
3771 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
3772 TARGET_DEFAULT_RETURN.
3774 2014-02-19 Tom Tromey <tromey@redhat.com>
3776 * target-delegates.c: Rebuild.
3777 * target.c (update_current_target): Don't inherit or default
3778 to_insert_exec_catchpoint.
3779 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
3780 TARGET_DEFAULT_RETURN.
3782 2014-01-08 Tom Tromey <tromey@redhat.com>
3784 * target-delegates.c: Rebuild.
3785 * target.c (update_current_target): Don't inherit or default
3786 to_insert_exec_catchpoint.
3787 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
3788 TARGET_DEFAULT_RETURN.
3790 2014-02-19 Tom Tromey <tromey@redhat.com>
3792 * target-delegates.c: Rebuild.
3793 * target.c (update_current_target): Don't inherit or default
3794 to_remove_vfork_catchpoint.
3795 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
3796 TARGET_DEFAULT_RETURN.
3798 2014-02-19 Tom Tromey <tromey@redhat.com>
3800 * target-delegates.c: Rebuild.
3801 * target.c (update_current_target): Don't inherit or default
3802 to_insert_vfork_catchpoint.
3803 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
3804 TARGET_DEFAULT_RETURN.
3806 2014-02-19 Tom Tromey <tromey@redhat.com>
3808 * target-delegates.c: Rebuild.
3809 * target.c (update_current_target): Don't inherit or default
3810 to_remove_fork_catchpoint.
3811 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
3812 TARGET_DEFAULT_RETURN.
3814 2014-02-19 Tom Tromey <tromey@redhat.com>
3816 * target-delegates.c: Rebuild.
3817 * target.c (update_current_target): Don't inherit or default
3818 to_insert_fork_catchpoint.
3819 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
3820 TARGET_DEFAULT_RETURN.
3822 2014-02-19 Tom Tromey <tromey@redhat.com>
3824 * target-delegates.c: Rebuild.
3825 * target.c (update_current_target): Don't inherit or default
3826 to_post_startup_inferior.
3827 * target.h (struct target_ops) <to_post_startup_inferior>: Use
3828 TARGET_DEFAULT_IGNORE.
3830 2014-02-19 Tom Tromey <tromey@redhat.com>
3832 * target-delegates.c: Rebuild.
3833 * target.c (update_current_target): Don't inherit or default
3835 * target.h (struct target_ops) <to_load>: Use
3836 TARGET_DEFAULT_NORETURN.
3838 2014-02-19 Tom Tromey <tromey@redhat.com>
3840 * target-delegates.c: Rebuild.
3841 * target.c (update_current_target): Don't inherit or default
3843 * target.h (struct target_ops) <to_terminal_info>: Use
3844 TARGET_DEFAULT_FUNC.
3846 2014-02-19 Tom Tromey <tromey@redhat.com>
3848 * target-delegates.c: Rebuild.
3849 * target.c (update_current_target): Don't inherit or default
3850 to_terminal_save_ours.
3851 * target.h (struct target_ops) <to_terminal_save_ours>: Use
3852 TARGET_DEFAULT_IGNORE.
3854 2014-02-19 Tom Tromey <tromey@redhat.com>
3856 * target-delegates.c: Rebuild.
3857 * target.c (update_current_target): Don't inherit or default
3859 * target.h (struct target_ops) <to_terminal_ours>: Use
3860 TARGET_DEFAULT_IGNORE.
3862 2014-02-19 Tom Tromey <tromey@redhat.com>
3864 * target-delegates.c: Rebuild.
3865 * target.c (update_current_target): Don't inherit or default
3866 to_terminal_ours_for_output.
3867 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
3868 TARGET_DEFAULT_IGNORE.
3870 2014-02-19 Tom Tromey <tromey@redhat.com>
3872 * target-delegates.c: Rebuild.
3873 * target.c (update_current_target): Don't inherit or default
3874 to_terminal_inferior.
3875 * target.h (struct target_ops) <to_terminal_inferior>: Use
3876 TARGET_DEFAULT_IGNORE.
3878 2014-02-19 Tom Tromey <tromey@redhat.com>
3880 * target-delegates.c: Rebuild.
3881 * target.c (update_current_target): Don't inherit or default
3883 * target.h (struct target_ops) <to_terminal_init>: Use
3884 TARGET_DEFAULT_IGNORE.
3886 2014-02-19 Tom Tromey <tromey@redhat.com>
3888 * target-delegates.c: Rebuild.
3889 * target.c (update_current_target): Don't inherit or default
3890 to_can_accel_watchpoint_condition.
3891 * target.h (struct target_ops)
3892 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
3894 2014-02-19 Tom Tromey <tromey@redhat.com>
3896 * target-delegates.c: Rebuild.
3897 * target.c (update_current_target): Don't inherit or default
3898 to_region_ok_for_hw_watchpoint.
3899 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
3900 Use TARGET_DEFAULT_FUNC.
3902 2014-02-19 Tom Tromey <tromey@redhat.com>
3904 * target-delegates.c: Rebuild.
3905 * target.c (update_current_target): Don't inherit or default
3906 to_watchpoint_addr_within_range.
3907 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
3908 Use TARGET_DEFAULT_FUNC.
3910 2014-02-19 Tom Tromey <tromey@redhat.com>
3912 * target-delegates.c: Rebuild.
3913 * target.c (update_current_target): Don't inherit or default
3914 to_remove_watchpoint.
3915 * target.h (struct target_ops) <to_remove_watchpoint>: Use
3916 TARGET_DEFAULT_NORETURN.
3918 2014-02-19 Tom Tromey <tromey@redhat.com>
3920 * target-delegates.c: Rebuild.
3921 * target.c (update_current_target): Don't inherit or default
3922 to_insert_watchpoint.
3923 * target.h (struct target_ops) <to_insert_watchpoint>: Use
3924 TARGET_DEFAULT_RETURN.
3926 2014-02-19 Tom Tromey <tromey@redhat.com>
3928 * target-delegates.c: Rebuild.
3929 * target.c (update_current_target): Don't inherit or default
3930 to_remove_hw_breakpoint.
3931 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
3932 TARGET_DEFAULT_RETURN.
3934 2014-02-19 Tom Tromey <tromey@redhat.com>
3936 * target-delegates.c: Rebuild.
3937 * target.c (update_current_target): Don't inherit or default
3938 to_insert_hw_breakpoint.
3939 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
3940 TARGET_DEFAULT_RETURN.
3942 2014-02-19 Tom Tromey <tromey@redhat.com>
3944 * target-delegates.c: Rebuild.
3945 * target.c (update_current_target): Don't inherit or default
3946 to_can_use_hw_breakpoint.
3947 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
3948 TARGET_DEFAULT_RETURN.
3950 2014-02-19 Tom Tromey <tromey@redhat.com>
3952 * target-delegates.c: Rebuild.
3953 * target.c (update_current_target): Don't inherit or default
3955 * target.h (struct target_ops) <to_files_info>: Use
3956 TARGET_DEFAULT_IGNORE.
3958 2014-02-19 Tom Tromey <tromey@redhat.com>
3960 * target-delegates.c: Rebuild.
3961 * target.c (update_current_target): Don't inherit or default
3963 * target.h (struct target_ops) <to_store>: Use
3964 TARGET_DEFAULT_NORETURN.
3966 2014-02-19 Tom Tromey <tromey@redhat.com>
3968 * target-delegates.c: Rebuild.
3969 * target.c (update_current_target): Don't inherit or default
3971 * target.h (struct target_ops) <to_post_attach>: Use
3972 TARGET_DEFAULT_IGNORE.
3974 2014-02-19 Tom Tromey <tromey@redhat.com>
3976 * target-delegates.c: Rebuild.
3977 * target.c (update_current_target): Don't inherit or default
3979 (default_rcmd): New function.
3980 (do_monitor_command): Unconditionally delegate.
3981 * target.h (struct target_ops) <to_rmcd>: Use
3982 TARGET_DEFAULT_FUNC.
3984 2014-02-19 Tom Tromey <tromey@redhat.com>
3986 * target-delegates.c: Rebuild.
3987 * target.c (init_dummy_target): Don't initialize to_attach.
3988 (target_attach): Unconditionally delegate.
3989 * target.h (struct target_ops) <to_attach>: Use
3990 TARGET_DEFAULT_FUNC.
3992 2014-02-19 Tom Tromey <tromey@redhat.com>
3994 * target-delegates.c: Rebuild.
3995 * target.c (target_detach): Unconditionally delegate.
3996 (init_dummy_target): Don't initialize to_detach.
3997 * target.h (struct target_ops) <to_detach>: Use
3998 TARGET_DEFAULT_IGNORE.
4000 2014-02-19 Tom Tromey <tromey@redhat.com>
4002 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4004 (target_augmented_libraries_svr4_read): Add argument.
4005 * target.c (update_current_target): Update.
4006 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
4009 2014-02-19 Tom Tromey <tromey@redhat.com>
4011 * target.h (struct target_ops) <to_call_history_range>: Add
4013 * target.c (target_call_history_range): Add argument.
4014 * record-btrace.c (record_btrace_call_history_range): Add 'self'
4016 (record_btrace_call_history_from): Update.
4018 2014-02-19 Tom Tromey <tromey@redhat.com>
4020 * target.h (struct target_ops) <to_call_history_from>: Add
4022 * target.c (target_call_history_from): Add argument.
4023 * record-btrace.c (record_btrace_call_history_from): Add 'self'
4026 2014-02-19 Tom Tromey <tromey@redhat.com>
4028 * target.h (struct target_ops) <to_call_history>: Add argument.
4029 * target.c (target_call_history): Add argument.
4030 * record-btrace.c (record_btrace_call_history): Add 'self'
4033 2014-02-19 Tom Tromey <tromey@redhat.com>
4035 * target.h (struct target_ops) <to_insn_history_range>: Add
4037 * target.c (target_insn_history_range): Add argument.
4038 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
4040 (record_btrace_insn_history_from): Update.
4042 2014-02-19 Tom Tromey <tromey@redhat.com>
4044 * target.h (struct target_ops) <to_insn_history_from>: Add
4046 * target.c (target_insn_history_from): Add argument.
4047 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
4050 2014-02-19 Tom Tromey <tromey@redhat.com>
4052 * target.h (struct target_ops) <to_insn_history>: Add argument.
4053 * target.c (target_insn_history): Add argument.
4054 * record-btrace.c (record_btrace_insn_history): Add 'self'
4057 2014-02-19 Tom Tromey <tromey@redhat.com>
4059 * target.h (struct target_ops) <to_goto_record>: Add argument.
4060 * target.c (target_goto_record): Add argument.
4061 * record-full.c (record_full_goto): Add 'self' argument.
4062 * record-btrace.c (record_btrace_goto): Add 'self' argument.
4064 2014-02-19 Tom Tromey <tromey@redhat.com>
4066 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
4067 * target.c (target_goto_record_end): Add argument.
4068 * record-full.c (record_full_goto_end): Add 'self' argument.
4069 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
4071 2014-02-19 Tom Tromey <tromey@redhat.com>
4073 * target.h (struct target_ops) <to_goto_record_begin>: Add
4075 * target.c (target_goto_record_begin): Add argument.
4076 * record-full.c (record_full_goto_begin): Add 'self' argument.
4077 * record-btrace.c (record_btrace_goto_begin): Add 'self'
4080 2014-02-19 Tom Tromey <tromey@redhat.com>
4082 * target.h (struct target_ops) <to_record_is_replaying>: Add
4084 * target.c (target_record_is_replaying): Add argument.
4085 * record-full.c (record_full_is_replaying): Add 'self' argument.
4086 * record-btrace.c (record_btrace_is_replaying): Add 'self'
4088 (record_btrace_xfer_partial, record_btrace_store_registers)
4089 (record_btrace_prepare_to_store, record_btrace_resume)
4090 (record_btrace_wait, record_btrace_decr_pc_after_break)
4091 (record_btrace_find_new_threads, record_btrace_thread_alive):
4094 2014-02-19 Tom Tromey <tromey@redhat.com>
4096 * target.h (struct target_ops) <to_delete_record>: Add argument.
4097 * target.c (target_delete_record): Add argument.
4098 * record-full.c (record_full_delete): Add 'self' argument.
4100 2014-02-19 Tom Tromey <tromey@redhat.com>
4102 * target.h (struct target_ops) <to_save_record>: Add argument.
4103 * target.c (target_save_record): Add argument.
4104 * record-full.c (record_full_save): Add 'self' argument.
4105 (record_full_save): Add 'self' argument.
4107 2014-02-19 Tom Tromey <tromey@redhat.com>
4109 * target.h (struct target_ops) <to_info_record>: Add argument.
4110 * target.c (target_info_record): Add argument.
4111 * record.c (info_record_command): Add argument.
4112 * record-full.c (record_full_info): Add 'self' argument.
4113 * record-btrace.c (record_btrace_info): Add 'self' argument.
4115 2014-02-19 Tom Tromey <tromey@redhat.com>
4117 * target.h (struct target_ops) <to_stop_recording>: Add argument.
4118 * target.c (target_stop_recording): Add argument.
4119 * record.c (record_stop): Add argument.
4120 * record-btrace.c (record_btrace_stop_recording): Add 'self'
4123 2014-02-19 Tom Tromey <tromey@redhat.com>
4125 * target.h (struct target_ops) <to_read_btrace>: Add argument.
4126 * target.c (struct target_ops) <to_read_btrace>: Add argument.
4127 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
4129 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
4130 (_initialize_amd64_linux_nat): Use it.
4131 * i386-linux-nat.c (i386_linux_read_btrace): New function.
4132 (_initialize_i386_linux_nat): Use it.
4134 2014-02-19 Tom Tromey <tromey@redhat.com>
4136 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
4137 * target.c (target_teardown_btrace): Add argument.
4138 * remote.c (remote_teardown_btrace): Add 'self' argument.
4139 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
4141 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
4144 2014-02-19 Tom Tromey <tromey@redhat.com>
4146 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
4147 * target.c (target_disable_btrace): Add argument.
4148 * remote.c (remote_disable_btrace): Add 'self' argument.
4149 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
4151 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
4154 2014-02-19 Tom Tromey <tromey@redhat.com>
4156 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
4157 * target.c (target_enable_btrace): Add argument.
4158 * remote.c (remote_enable_btrace): Add 'self' argument.
4159 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
4161 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
4164 2014-02-19 Tom Tromey <tromey@redhat.com>
4166 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
4167 (target_can_use_agent): Add argument.
4168 * target.c (update_current_target): Update.
4169 * remote.c (remote_can_use_agent): Add 'self' argument.
4170 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
4172 2014-02-19 Tom Tromey <tromey@redhat.com>
4174 * target.h (struct target_ops) <to_use_agent>: Add argument.
4175 (target_use_agent): Add argument.
4176 * target.c (update_current_target): Update.
4177 * remote.c (remote_use_agent): Add 'self' argument.
4178 * inf-child.c (inf_child_use_agent): Add 'self' argument.
4180 2014-02-19 Tom Tromey <tromey@redhat.com>
4182 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
4183 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
4184 (target_traceframe_info): Add argument.
4185 * target.c (update_current_target): Update.
4186 * remote.c (remote_traceframe_info): Add 'self' argument.
4187 * ctf.c (ctf_traceframe_info): Add 'self' argument.
4189 2014-02-19 Tom Tromey <tromey@redhat.com>
4191 * target.h (target_static_tracepoint_markers_by_strid): Add
4193 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
4195 * target.c (update_current_target): Update.
4196 * remote.c (struct target_ops)
4197 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
4198 * linux-nat.c (struct target_ops)
4199 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
4201 2014-02-19 Tom Tromey <tromey@redhat.com>
4203 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4205 (target_static_tracepoint_marker_at): Add argument.
4206 * target.c (update_current_target): Update.
4207 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
4210 2014-02-19 Tom Tromey <tromey@redhat.com>
4212 * target.h (struct target_ops) <to_set_permissions>: Add argument.
4213 (target_set_permissions): Add argument.
4214 * target.c (update_current_target): Update.
4215 * remote.c (remote_set_permissions): Add 'self' argument.
4216 (remote_start_remote): Update.
4218 2014-02-19 Tom Tromey <tromey@redhat.com>
4220 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
4221 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
4222 (target_get_tib_address): Add argument.
4223 * target.c (update_current_target): Update.
4224 * remote.c (remote_get_tib_address): Add 'self' argument.
4226 2014-02-19 Tom Tromey <tromey@redhat.com>
4228 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
4229 (target_set_trace_notes): Add argument.
4230 * target.c (update_current_target): Update.
4231 * remote.c (remote_set_trace_notes): Add 'self' argument.
4233 2014-02-19 Tom Tromey <tromey@redhat.com>
4235 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
4237 (target_set_trace_buffer_size): Add argument.
4238 * target.c (update_current_target): Update.
4239 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
4241 2014-02-19 Tom Tromey <tromey@redhat.com>
4243 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
4245 (target_set_circular_trace_buffer): Add argument.
4246 * target.c (update_current_target): Update.
4247 * remote.c (remote_set_circular_trace_buffer): Add 'self'
4250 2014-02-19 Tom Tromey <tromey@redhat.com>
4252 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
4254 (target_set_disconnected_tracing): Add argument.
4255 * target.c (update_current_target): Update.
4256 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
4258 2014-02-19 Tom Tromey <tromey@redhat.com>
4260 * target.h (struct target_ops)
4261 <to_get_min_fast_tracepoint_insn_len>: Add argument.
4262 (target_get_min_fast_tracepoint_insn_len): Add argument.
4263 * target.c (update_current_target): Update.
4264 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
4267 2014-02-19 Tom Tromey <tromey@redhat.com>
4269 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
4271 (target_get_raw_trace_data): Add argument.
4272 * target.c (update_current_target): Update.
4273 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
4275 2014-02-19 Tom Tromey <tromey@redhat.com>
4277 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4279 (target_upload_trace_state_variables): Add argument.
4280 * target.c (update_current_target): Update.
4281 * remote.c (remote_upload_trace_state_variables): Add 'self'
4283 (remote_start_remote): Update.
4285 2014-02-19 Tom Tromey <tromey@redhat.com>
4287 * target.h (struct target_ops) <to_upload_tracepoints>: Add
4289 (target_upload_tracepoints): Add argument.
4290 * target.c (update_current_target): Update.
4291 * remote.c (remote_upload_tracepoints): Add 'self' argument.
4292 (remote_start_remote): Update.
4294 2014-02-19 Tom Tromey <tromey@redhat.com>
4296 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
4297 (target_save_trace_data): Add argument.
4298 * target.c (update_current_target): Update.
4299 * remote.c (remote_save_trace_data): Add 'self' argument.
4301 2014-02-19 Tom Tromey <tromey@redhat.com>
4303 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
4305 * target.h (struct target_ops)
4306 <to_get_trace_state_variable_value>: Add argument.
4307 (target_get_trace_state_variable_value): Add argument.
4308 * target.c (update_current_target): Update.
4309 * remote.c (remote_get_trace_state_variable_value): Add 'self'
4311 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
4313 2014-02-19 Tom Tromey <tromey@redhat.com>
4315 * tracepoint.c (tfile_trace_find): Add 'self' argument.
4316 * target.h (struct target_ops) <to_trace_find>: Add argument.
4317 (target_trace_find): Add argument.
4318 * target.c (update_current_target): Update.
4319 * remote.c (remote_trace_find): Add 'self' argument.
4320 * ctf.c (ctf_trace_find): Add 'self' argument.
4322 2014-02-19 Tom Tromey <tromey@redhat.com>
4324 * target.h (struct target_ops) <to_trace_stop>: Add argument.
4325 (target_trace_stop): Add argument.
4326 * target.c (update_current_target): Update.
4327 * remote.c (remote_trace_stop): Add 'self' argument.
4329 2014-02-19 Tom Tromey <tromey@redhat.com>
4331 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
4332 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
4334 (target_get_tracepoint_status): Add argument.
4335 * target.c (update_current_target): Update.
4336 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
4338 2014-02-19 Tom Tromey <tromey@redhat.com>
4340 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
4341 * target.h (struct target_ops) <to_get_trace_status>: Add
4343 (target_get_trace_status): Add argument.
4344 * target.c (update_current_target): Update.
4345 * remote.c (remote_get_trace_status): Add 'self' argument.
4346 (remote_start_remote, remote_can_download_tracepoint): Update.
4347 * ctf.c (ctf_get_trace_status): Add 'self' argument.
4349 2014-02-19 Tom Tromey <tromey@redhat.com>
4351 * target.h (struct target_ops) <to_trace_start>: Add argument.
4352 (target_trace_start): Add argument.
4353 * target.c (update_current_target): Update.
4354 * remote.c (remote_trace_start): Add 'self' argument.
4356 2014-02-19 Tom Tromey <tromey@redhat.com>
4358 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4360 (target_trace_set_readonly_regions): Add argument.
4361 * target.c (update_current_target): Update.
4362 * remote.c (remote_trace_set_readonly_regions): Add 'self'
4365 2014-02-19 Tom Tromey <tromey@redhat.com>
4367 * target.h (struct target_ops) <to_disable_tracepoint>: Add
4369 (target_disable_tracepoint): Add argument.
4370 * target.c (update_current_target): Update.
4371 * remote.c (remote_disable_tracepoint): Add 'self' argument.
4373 2014-02-19 Tom Tromey <tromey@redhat.com>
4375 * target.h (struct target_ops) <to_enable_tracepoint>: Add
4377 (target_enable_tracepoint): Add argument.
4378 * target.c (update_current_target): Update.
4379 * remote.c (remote_enable_tracepoint): Add 'self' argument.
4381 2014-02-19 Tom Tromey <tromey@redhat.com>
4383 * target.h (struct target_ops) <to_download_trace_state_variable>:
4385 (target_download_trace_state_variable): Add argument.
4386 * target.c (update_current_target): Update.
4387 * remote.c (remote_download_trace_state_variable): Add 'self'
4390 2014-02-19 Tom Tromey <tromey@redhat.com>
4392 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
4394 (target_can_download_tracepoint): Add argument.
4395 * target.c (update_current_target): Update.
4396 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
4398 2014-02-19 Tom Tromey <tromey@redhat.com>
4400 * target.h (struct target_ops) <to_download_tracepoint>: Add
4402 (target_download_tracepoint): Add argument.
4403 * target.c (update_current_target): Update.
4404 * remote.c (remote_download_tracepoint): Add 'self' argument.
4406 2014-02-19 Tom Tromey <tromey@redhat.com>
4408 * target.h (struct target_ops) <to_trace_init>: Add argument.
4409 (target_trace_init): Add argument.
4410 * target.c (update_current_target): Update.
4411 * remote.c (remote_trace_init): Add 'self' argument.
4413 2014-02-19 Tom Tromey <tromey@redhat.com>
4415 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
4416 * target.c (target_fileio_readlink): Add argument.
4417 * remote.c (remote_hostio_readlink): Add 'self' argument.
4418 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
4420 2014-02-19 Tom Tromey <tromey@redhat.com>
4422 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
4423 * target.c (target_fileio_unlink): Add argument.
4424 * remote.c (remote_hostio_unlink): Add 'self' argument.
4425 (remote_file_delete): Update.
4426 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
4428 2014-02-19 Tom Tromey <tromey@redhat.com>
4430 * target.h (struct target_ops) <to_fileio_close>: Add argument.
4431 * target.c (target_fileio_close): Add argument.
4432 * remote.c (remote_hostio_close): Add 'self' argument.
4433 (remote_hostio_close_cleanup): Update.
4434 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
4436 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
4438 2014-02-19 Tom Tromey <tromey@redhat.com>
4440 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
4441 * target.c (target_fileio_pread): Add argument.
4442 * remote.c (remote_hostio_pread): Add 'self' argument.
4443 (remote_bfd_iovec_pread, remote_file_get): Update.
4444 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
4446 2014-02-19 Tom Tromey <tromey@redhat.com>
4448 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
4449 * target.c (target_fileio_pwrite): Add argument.
4450 * remote.c (remote_hostio_pwrite): Add 'self' argument.
4451 (remote_file_put): Update.
4452 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
4454 2014-02-19 Tom Tromey <tromey@redhat.com>
4456 * target.h (struct target_ops) <to_fileio_open>: Add argument.
4457 * target.c (target_fileio_open): Add argument.
4458 * remote.c (remote_hostio_open): Add 'self' argument.
4459 (remote_bfd_iovec_open): Add 'self' argument.
4460 (remote_file_put): Add 'self' argument.
4461 (remote_file_get): Add 'self' argument.
4462 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
4464 2014-02-19 Tom Tromey <tromey@redhat.com>
4466 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4468 (target_can_run_breakpoint_commands): Add argument.
4469 * target.c (update_current_target): Update.
4470 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
4472 (remote_insert_breakpoint): Add 'self' argument.
4473 (remote_insert_hw_breakpoint): Add 'self' argument.
4474 (remote_can_run_breakpoint_commands): Add 'self' argument.
4476 2014-02-19 Tom Tromey <tromey@redhat.com>
4478 * target.h (struct target_ops)
4479 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
4480 (target_supports_evaluation_of_breakpoint_conditions): Add
4482 * target.c (update_current_target): Update.
4483 * remote.c (remote_supports_cond_breakpoints): Add 'self'
4485 (remote_insert_breakpoint): Add 'self' argument.
4486 (remote_insert_hw_breakpoint): Add 'self' argument.
4487 (remote_supports_cond_breakpoints): Add 'self' argument.
4489 2014-02-19 Tom Tromey <tromey@redhat.com>
4491 * target.h (struct target_ops) <to_supports_string_tracing>: Add
4493 (target_supports_string_tracing): Add argument.
4494 * target.c (update_current_target): Update.
4495 * remote.c (remote_supports_string_tracing): Add 'self' argument.
4497 2014-02-19 Tom Tromey <tromey@redhat.com>
4499 * target.h (struct target_ops)
4500 <to_supports_disable_randomization>: Add argument.
4501 * target.c (find_default_supports_disable_randomization): Add
4503 (target_supports_disable_randomization): Add argument.
4504 (find_default_supports_disable_randomization): Add 'self'
4506 * remote.c (extended_remote_supports_disable_randomization): Add
4508 (remote_supports_disable_randomization): Add 'self' argument.
4509 (extended_remote_create_inferior): Update.
4510 * linux-nat.c (linux_nat_supports_disable_randomization): Add
4513 2014-02-19 Tom Tromey <tromey@redhat.com>
4515 * target.h (struct target_ops)
4516 <to_supports_enable_disable_tracepoint>: Add argument.
4517 (target_supports_enable_disable_tracepoint): Add argument.
4518 * target.c (update_current_target): Update.
4519 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
4522 2014-02-19 Tom Tromey <tromey@redhat.com>
4524 * target.h (struct target_ops) <to_supports_multi_process>: Add
4526 (target_supports_multi_process): Add argument.
4527 * target.c (update_current_target): Update.
4528 * remote.c (remote_supports_multi_process): Add 'self' argument.
4529 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
4531 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
4534 2014-02-19 Tom Tromey <tromey@redhat.com>
4536 * target.h (struct target_ops) <to_execution_direction>: Add
4538 (target_execution_direction): Add argument.
4539 * target.c (default_execution_direction): Add 'self' argument.
4540 * record-full.c (record_full_execution_direction): Add 'self'
4543 2014-02-19 Tom Tromey <tromey@redhat.com>
4545 * target.h (struct target_ops) <to_can_execute_reverse>: Add
4547 (target_can_execute_reverse): Add argument.
4548 * remote.c (remote_can_execute_reverse): Add 'self' argument.
4549 * record-full.c (record_full_can_execute_reverse): Add 'self'
4551 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
4554 2014-02-19 Tom Tromey <tromey@redhat.com>
4556 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
4557 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
4559 (target_get_ada_task_ptid): Add argument.
4560 * target.c (update_current_target): Update.
4561 (default_get_ada_task_ptid): Add 'self' argument.
4562 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
4563 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
4564 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
4566 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
4568 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
4570 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
4572 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
4573 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
4576 2014-02-19 Tom Tromey <tromey@redhat.com>
4578 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
4579 (target_goto_bookmark): Add argument.
4580 * target.c (dummy_goto_bookmark): Add 'self' argument.
4581 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
4583 2014-02-19 Tom Tromey <tromey@redhat.com>
4585 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
4586 (target_get_bookmark): Add argument.
4587 * target.c (dummy_get_bookmark): Add 'self' argument.
4588 * record-full.c (record_full_get_bookmark): Add 'self' argument.
4590 2014-02-19 Tom Tromey <tromey@redhat.com>
4592 * target.h (struct target_ops) <to_make_corefile_notes>: Add
4594 (target_make_corefile_notes): Add argument.
4595 * target.c (dummy_make_corefile_notes): Add 'self' argument.
4596 * procfs.c (procfs_make_note_section): Add 'self' argument.
4597 (procfs_make_note_section): Add 'self' argument.
4598 (procfs_make_note_section): Add 'self' argument.
4599 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
4601 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
4602 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
4603 * exec.c (exec_make_note_section): Add 'self' argument.
4604 (exec_make_note_section): Add 'self' argument.
4606 2014-02-19 Tom Tromey <tromey@redhat.com>
4608 * target.h (struct target_ops) <to_find_memory_regions>: Add
4610 (target_find_memory_regions): Add argument.
4611 * target.c (dummy_find_memory_regions): Add 'self' argument.
4612 * procfs.c (proc_find_memory_regions): Add 'self' argument.
4613 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
4614 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
4615 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
4616 * exec. (exec_do_find_memory_regions): New global.
4617 (exec_set_find_memory_regions): Rewrite.
4618 (exec_find_memory_regions): New function.
4619 (init_exec_ops): Use exec_find_memory_regions.
4621 2014-02-19 Tom Tromey <tromey@redhat.com>
4623 * target.h (struct target_ops) <to_supports_non_stop>: Add
4625 * target.c (find_default_supports_non_stop): Add argument.
4626 (target_supports_non_stop): Add argument.
4627 (find_default_supports_non_stop): Add 'self' argument.
4628 * remote.c (remote_supports_non_stop): Add 'self' argument.
4629 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
4631 2014-02-19 Tom Tromey <tromey@redhat.com>
4633 * target.h (struct target_ops) <to_log_command>: Add argument.
4634 (target_log_command): Add argument.
4635 * serial.h (serial_log_command): Add 'self' argument.
4636 * serial.c (serial_log_command): Add 'self' argument.
4638 2014-02-19 Tom Tromey <tromey@redhat.com>
4640 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
4641 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
4643 (target_pid_to_exec_file): Add argument.
4644 * target.c (debug_to_pid_to_exec_file): Add argument.
4645 (update_current_target): Update.
4646 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
4647 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
4648 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
4649 (linux_handle_extended_wait): Update.
4650 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
4651 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
4652 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
4653 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
4655 2014-02-19 Tom Tromey <tromey@redhat.com>
4657 * target.h (struct target_ops) <to_rcmd>: Add argument.
4658 (target_rcmd): Add argument.
4659 * target.c (debug_to_rcmd): Add argument.
4660 (update_current_target, do_monitor_command): Update.
4661 * remote.c (remote_rcmd): Add 'self' argument.
4662 * monitor.c (monitor_rcmd): Add 'self' argument.
4664 2014-02-19 Tom Tromey <tromey@redhat.com>
4666 * windows-nat.c (windows_stop): Add 'self' argument.
4667 * target.h (struct target_ops) <to_stop>: Add argument.
4668 * target.c (target_stop): Add argument.
4669 (debug_to_stop): Add argument.
4670 (update_current_target): Update.
4671 * remote.c (remote_stop): Add 'self' argument.
4672 * remote-sim.c (gdbsim_stop): Add 'self' argument.
4673 (gdbsim_cntrl_c): Update.
4674 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
4675 * procfs.c (procfs_stop): Add 'self' argument.
4676 * nto-procfs.c (procfs_stop): Add 'self' argument.
4677 * monitor.c (monitor_stop): Add 'self' argument.
4678 (monitor_open): Update.
4679 * linux-nat.c (linux_nat_stop): Add argument.
4680 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
4681 * gnu-nat.c (gnu_stop): Add 'self' argument.
4682 * darwin-nat.c (darwin_stop): Add 'self' argument.
4684 2014-02-19 Tom Tromey <tromey@redhat.com>
4686 * target.h (struct target_ops) <to_thread_name>: Add argument.
4687 * target.c (target_thread_name): Add argument.
4688 (update_current_target): Update.
4689 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
4691 2014-02-19 Tom Tromey <tromey@redhat.com>
4693 * target.h (struct target_ops) <to_extra_thread_info>: Add
4695 (target_extra_thread_info): Add argument.
4696 * target.c (update_current_target): Update.
4697 * remote.c (remote_threads_extra_info): Add 'self' argument.
4698 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
4700 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
4701 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
4702 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
4704 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
4706 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
4708 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
4711 2014-02-19 Tom Tromey <tromey@redhat.com>
4713 * target.h (struct target_ops) <to_program_signals>: Add argument.
4714 * target.c (target_program_signals): Add argument.
4715 * remote.c (remote_program_signals): Add 'self' argument.
4717 2014-02-19 Tom Tromey <tromey@redhat.com>
4719 * target.h (struct target_ops) <to_pass_signals>: Add argument.
4720 * target.c (target_pass_signals): Add argument.
4721 * remote.c (remote_pass_signals): Add 'self' argument.
4722 (remote_start_remote): Update.
4723 * procfs.c (procfs_pass_signals): Add 'self' argument.
4724 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
4725 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
4726 (linux_nat_create_inferior, linux_nat_attach): Update.
4728 2014-02-19 Tom Tromey <tromey@redhat.com>
4730 * windows-nat.c (windows_can_run): Add 'self' argument.
4731 * target.h (struct target_ops) <to_can_run>: Add argument.
4732 (target_can_run): Add argument.
4733 * target.c (debug_to_can_run): Add argument.
4734 (update_current_target): Update.
4735 * nto-procfs.c (procfs_can_run): Add 'self' argument.
4736 * inf-child.c (inf_child_can_run): Add 'self' argument.
4737 * go32-nat.c (go32_can_run): Add 'self' argument.
4739 2014-02-19 Tom Tromey <tromey@redhat.com>
4741 * target.h (struct target_ops) <to_has_exited>: Add argument.
4742 (target_has_exited): Add argument.
4743 * target.c (debug_to_has_exited): Add argument.
4744 (update_current_target): Update.
4746 2014-02-19 Tom Tromey <tromey@redhat.com>
4748 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
4750 (target_set_syscall_catchpoint): Add argument.
4751 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
4753 * target.c (update_current_target): Update.
4755 2014-02-19 Tom Tromey <tromey@redhat.com>
4757 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
4759 (target_remove_exec_catchpoint): Add argument.
4760 * target.c (debug_to_remove_exec_catchpoint): Add argument.
4761 (update_current_target): Update.
4762 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
4765 2014-02-19 Tom Tromey <tromey@redhat.com>
4767 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
4769 (target_insert_exec_catchpoint): Add argument.
4770 * target.c (debug_to_insert_exec_catchpoint): Add argument.
4771 (update_current_target): Update.
4772 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
4775 2014-02-19 Tom Tromey <tromey@redhat.com>
4777 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
4779 (target_remove_vfork_catchpoint): Add argument.
4780 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
4781 (update_current_target): Update.
4782 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
4785 2014-02-19 Tom Tromey <tromey@redhat.com>
4787 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
4789 (target_insert_vfork_catchpoint): Add argument.
4790 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
4791 (update_current_target): Update.
4792 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
4795 2014-02-19 Tom Tromey <tromey@redhat.com>
4797 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
4799 (target_remove_fork_catchpoint): Add argument.
4800 * target.c (debug_to_remove_fork_catchpoint): Add argument.
4801 (update_current_target): Update.
4802 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
4805 2014-02-19 Tom Tromey <tromey@redhat.com>
4807 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
4809 (target_insert_fork_catchpoint): Add argument.
4810 * target.c (debug_to_insert_fork_catchpoint): Add argument.
4811 (update_current_target): Update.
4812 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
4815 2014-02-19 Tom Tromey <tromey@redhat.com>
4817 * target.h (struct target_ops) <to_post_startup_inferior>: Add
4819 (target_post_startup_inferior): Add argument.
4820 * target.c (debug_to_post_startup_inferior): Add argument.
4821 (update_current_target): Update.
4822 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
4824 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
4826 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
4828 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
4830 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
4832 (super_post_startup_inferior): Likewise.
4833 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
4835 (super_post_startup_inferior): Likewise.
4836 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
4837 Add 'self' argument.
4838 (super_post_startup_inferior): Likewise.
4840 2014-02-19 Tom Tromey <tromey@redhat.com>
4842 * target.h (struct target_ops) <to_load>: Add argument.
4843 * target.c (target_load): Add argument.
4844 (debug_to_load): Add argument.
4845 (update_current_target): Update.
4846 * remote.c (remote_load): Add 'self' argument.
4847 * remote-sim.c (gdbsim_load): Add 'self' argument.
4848 * remote-mips.c (mips_load): Add 'self' argument.
4849 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
4850 * monitor.c (monitor_load): Add 'self' argument.
4851 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
4853 2014-02-19 Tom Tromey <tromey@redhat.com>
4855 * target.h (struct target_ops) <to_terminal_info>: Add argument.
4856 (target_terminal_info): Add argument.
4857 * target.c (debug_to_terminal_info): Add argument.
4858 (default_terminal_info): Likewise.
4859 * inflow.c (child_terminal_info): Add 'self' argument.
4860 * inferior.h (child_terminal_info): Add 'self' argument.
4861 * go32-nat.c (go32_terminal_info): Add 'self' argument.
4863 2014-02-19 Tom Tromey <tromey@redhat.com>
4865 * target.h (struct target_ops) <to_terminal_save_ours>: Add
4867 (target_terminal_save_ours): Add argument.
4868 * target.c (debug_to_terminal_save_ours): Add argument.
4869 (update_current_target): Update.
4870 * inflow.c (terminal_save_ours): Add 'self' argument.
4871 * inferior.h (terminal_save_ours): Add 'self' argument.
4873 2014-02-19 Tom Tromey <tromey@redhat.com>
4875 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
4876 (target_terminal_ours): Add argument.
4877 * target.c (debug_to_terminal_ours): Add argument.
4878 (update_current_target): Update.
4879 * remote.c (remote_terminal_ours): Add 'self' argument.
4880 (remote_close): Update.
4881 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
4882 * inflow.c (terminal_ours): Add 'self' argument.
4883 * inferior.h (terminal_ours): Add 'self' argument.
4884 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
4886 2014-02-19 Pedro Alves <palves@redhat.com>
4887 Tom Tromey <tromey@redhat.com>
4889 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
4891 (target_terminal_ours_for_output): Add argument.
4892 * target.c (debug_to_terminal_ours_for_output): Add argument.
4893 (update_current_target): Update.
4894 * inflow.c (terminal_ours_for_output): Add 'self' argument.
4895 * inferior.h (terminal_ours_for_output): Add 'self' argument.
4896 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
4898 2014-02-19 Tom Tromey <tromey@redhat.com>
4900 * target.h (struct target_ops) <to_terminal_inferior>: Add
4902 * target.c (target_terminal_inferior): Add argument.
4903 (update_current_target): Update.
4904 * remote.c (remote_terminal_inferior): Add 'self' argument.
4905 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
4906 * inflow.c (terminal_inferior): Add 'self' argument.
4907 * inferior.h (terminal_inferior): Add 'self' argument.
4908 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
4909 (go32_terminal_inferior): Add 'self' argument.
4911 2014-02-19 Tom Tromey <tromey@redhat.com>
4913 * target.h (struct target_ops) <to_terminal_init>: Add argument.
4914 (target_terminal_init): Add argument.
4915 * target.c (debug_to_terminal_init): Add argument.
4916 (update_current_target): Update.
4917 * inflow.c (terminal_init_inferior): Add 'self' argument.
4918 * inferior.h (terminal_init_inferior): Add 'self' argument.
4919 * go32-nat.c (go32_terminal_init): Add 'self' argument.
4920 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
4922 2014-02-19 Tom Tromey <tromey@redhat.com>
4924 * target.h (struct target_ops)
4925 <to_can_accel_watchpoint_condition>: Add argument.
4926 (target_can_accel_watchpoint_condition): Add argument.
4927 * target.c (debug_to_can_accel_watchpoint_condition): Add
4929 (update_current_target): Update.
4930 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
4933 2014-02-19 Tom Tromey <tromey@redhat.com>
4935 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4937 (target_region_ok_for_hw_watchpoint): Add argument.
4938 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
4939 (default_region_ok_for_hw_watchpoint): Add argument.
4940 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
4941 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
4943 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
4945 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
4947 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
4949 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
4951 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
4953 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
4954 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
4956 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
4957 Add 'self' argument.
4959 2014-02-19 Tom Tromey <tromey@redhat.com>
4961 * target.h (struct target_ops) <to_insert_watchpoint>: Add
4963 (target_insert_watchpoint): Add argument.
4964 * target.c (debug_to_insert_watchpoint): Add argument.
4965 (update_current_target): Update.
4966 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
4967 * remote.c (remote_insert_watchpoint): Add 'self' argument.
4968 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
4969 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
4970 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
4971 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
4973 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
4974 (procfs_insert_hw_watchpoint): Add 'self' argument.
4975 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
4977 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
4979 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
4981 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
4982 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
4984 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
4987 2014-02-19 Tom Tromey <tromey@redhat.com>
4989 * target.h (struct target_ops) <to_remove_watchpoint>: Add
4991 (target_remove_watchpoint): Add argument.
4992 * target.c (debug_to_remove_watchpoint): Add argument.
4993 (update_current_target): Update.
4994 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
4995 * remote.c (remote_remove_watchpoint): Add 'self' argument.
4996 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
4997 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
4998 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
4999 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
5001 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
5002 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
5004 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
5006 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
5008 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
5009 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
5011 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
5014 2014-02-19 Tom Tromey <tromey@redhat.com>
5016 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
5018 (target_remove_hw_breakpoint): Add argument.
5019 * target.c (debug_to_remove_hw_breakpoint): Add argument.
5020 (update_current_target): Update.
5021 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
5022 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
5024 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
5025 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
5027 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
5030 2014-02-19 Tom Tromey <tromey@redhat.com>
5032 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
5034 (target_insert_hw_breakpoint): Add argument.
5035 * target.c (debug_to_insert_hw_breakpoint): Add argument.
5036 (update_current_target): Update.
5037 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
5038 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
5040 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
5041 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
5042 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
5044 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
5047 2014-02-19 Tom Tromey <tromey@redhat.com>
5049 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
5051 (target_can_use_hardware_watchpoint): Add argument.
5052 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
5053 (update_current_target): Update.
5054 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
5056 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
5058 * remote.c (remote_check_watch_resources): Add 'self' argument.
5059 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
5060 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
5062 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
5063 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
5065 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
5067 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
5069 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
5071 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
5073 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
5075 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
5076 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
5078 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
5081 2014-02-19 Tom Tromey <tromey@redhat.com>
5083 * target.h (struct target_ops) <to_post_attach>: Add argument.
5084 (target_post_attach): Add argument.
5085 * target.c (debug_to_post_attach): Add argument.
5086 (update_current_target): Update.
5087 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
5088 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
5089 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
5090 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
5091 * inf-child.c (inf_child_post_attach): Add 'self' argument.
5093 2014-02-19 Tom Tromey <tromey@redhat.com>
5095 * windows-nat.c (windows_close): Add 'self' argument.
5096 * tracepoint.c (tfile_close): Add 'self' argument.
5097 * target.h (struct target_ops) <to_close>: Add argument.
5098 * target.c (target_close): Add argument.
5099 (update_current_target): Update.
5100 * remote.c (remote_close): Add 'self' argument.
5101 * remote-sim.c (gdbsim_close): Add 'self' argument.
5102 * remote-mips.c (mips_close): Add 'self' argument.
5103 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
5104 * record-full.c (record_full_close): Add 'self' argument.
5105 * record-btrace.c (record_btrace_close): Add 'self' argument.
5106 * monitor.h (monitor_close): Add 'self' argument.
5107 * monitor.c (monitor_close): Add 'self' argument.
5108 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
5109 * linux-nat.c (linux_nat_close): Add argument.
5110 * go32-nat.c (go32_close): Add 'self' argument.
5111 * exec.c (exec_close_1): Add 'self' argument.
5112 * ctf.c (ctf_close): Add 'self' argument.
5113 * corelow.c (core_close): Add 'self' argument.
5114 (core_close_cleanup): Update.
5115 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
5116 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
5118 2014-02-19 Tom Tromey <tromey@redhat.com>
5120 * remote.c (remote_load): New function.
5121 (init_remote_ops): Use it.
5123 2014-02-19 Tom Tromey <tromey@redhat.com>
5125 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
5127 * common/linux-btrace.h (linux_supports_btrace): Update.
5128 * remote.c (remote_supports_btrace): Add "self" argument.
5129 * target-delegates.c: Rebuild.
5130 * target.c (target_supports_btrace): Remove.
5131 * target.h (struct target_ops) <to_supports_btrace>: Add
5132 target_ops argument.
5133 (target_supports_btrace): New define.
5135 2014-02-19 Tom Tromey <tromey@redhat.com>
5137 * record-full.c (record_full_beneath_to_resume_ops)
5138 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
5139 (record_full_beneath_to_wait)
5140 (record_full_beneath_to_store_registers_ops)
5141 (record_full_beneath_to_store_registers)
5142 (record_full_beneath_to_xfer_partial_ops)
5143 (record_full_beneath_to_xfer_partial)
5144 (record_full_beneath_to_insert_breakpoint_ops)
5145 (record_full_beneath_to_insert_breakpoint)
5146 (record_full_beneath_to_remove_breakpoint_ops)
5147 (record_full_beneath_to_remove_breakpoint)
5148 (record_full_beneath_to_stopped_by_watchpoint)
5149 (record_full_beneath_to_stopped_data_address)
5150 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
5151 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
5152 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
5153 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
5154 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
5155 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
5156 (tmp_to_stopped_data_address, tmp_to_async): Remove.
5157 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
5158 (record_full_resume, record_full_wait_1)
5159 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
5160 (record_full_store_registers, record_full_xfer_partial)
5161 (record_full_insert_breakpoint, record_full_remove_breakpoint)
5162 (record_full_async, record_full_core_xfer_partial): Use target
5164 * target-delegates.c: Rebuild.
5165 * target.c (current_xfer_partial): Remove.
5166 (update_current_target): Do not INHERIT or de_fault
5167 to_insert_breakpoint, to_remove_breakpoint,
5168 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
5169 to_is_async_p, to_async. Do not set to_xfer_partial field.
5170 (default_xfer_partial): Simplify.
5171 (current_xfer_partial): Remove.
5172 (target_wait, target_resume): Simplify.
5173 (find_default_can_async_p, find_default_is_async_p): Update.
5174 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
5175 to_xfer_partial, to_stopped_by_watchpoint,
5176 to_stopped_data_address.
5177 (target_store_registers): Simplify.
5178 (forward_target_remove_breakpoint)
5179 (forward_target_insert_breakpoint): Remove.
5180 (target_remove_breakpoint, target_insert_breakpoint)
5181 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
5182 * target.h (struct target_ops) <to_resume, to_wait,
5183 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
5184 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
5185 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
5187 (forward_target_remove_breakpoint)
5188 (forward_target_insert_breakpoint): Remove.
5189 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
5191 (record_btrace_insert_breakpoint): Delegate directly.
5193 2014-02-19 Tom Tromey <tromey@redhat.com>
5196 * target-delegates.c: New file.
5197 * target.c: Include target-delegates.c.
5198 (init_dummy_target): Call install_dummy_methods.
5199 (complete_target_initialization): Call install_delegators.
5200 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
5201 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
5202 * make-target-delegates: New file.
5204 2014-02-19 Tom Tromey <tromey@redhat.com>
5206 * record.c (find_record_target): Use find_target_at.
5207 * target.c (find_target_at): New function.
5208 * target.h (find_target_at): Declare.
5210 2014-02-19 Tom Tromey <tromey@redhat.com>
5212 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
5214 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
5216 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
5217 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
5219 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
5221 * linux-nat.c (save_sigtrap): Update.
5222 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
5223 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
5224 (linux_nat_close): Update.
5225 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
5227 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
5229 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
5230 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
5231 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
5232 (tmp_to_async): Add 'ops' argument.
5233 (record_full_stopped_by_watchpoint, record_full_async)
5234 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
5236 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
5237 (m32r_stopped_by_watchpoint): Add 'ops' argument.
5238 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
5239 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
5240 (remote_is_async_p, remote_async): Add 'ops' argument.
5241 (remote_stopped_data_address): Update.
5242 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
5243 * target.c (update_current_target)
5244 (find_default_can_async_p, find_default_is_async_p): Update.
5245 (init_dummy_target): Update.
5246 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
5247 * target.h (struct target_ops) <to_stopped_by_watchpoint,
5248 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
5249 (target_can_async_p, target_is_async_p, target_async)
5250 (target_stopped_by_watchpoint): Update.
5252 2014-02-19 Yao Qi <yao@codesourcery.com>
5255 * gdbarch.sh: Remove startup_gdbarch.
5256 * gdbarch.c: Regenerated.
5257 * gdbarch.h: Likewise.
5259 2014-02-17 Kevin Buettner <kevinb@redhat.com>
5261 * rl78-tdep.c (rl78_g10_register_name): New function.
5262 (rl78_return_value): Add g10 support.
5263 (rl78_gdbarch_init): Register rl78_g10_register_name for the
5266 2014-02-17 Doug Evans <xdje42@gmail.com>
5268 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
5269 (SUBDIR_GUILE_SRCS): Ditto.
5270 (scm-gsmob.o): Ditto.
5272 2014-02-17 Yao Qi <yao@codesourcery.com>
5274 * gnu-nat.c (ILL_RPC): Declare defined function.
5276 2014-02-17 Yao Qi <yao@codesourcery.com>
5278 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
5279 mach_msg_type_number_t.
5280 (gnu_write_inferior): Likewise.
5282 2014-02-17 Yao Qi <yao@codesourcery.com>
5284 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
5286 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
5287 (inf_validate_procs, inf_signal): Likewise.
5288 (S_exception_raise_request): Likewise.
5289 (do_mach_notify_dead_name): Likewise.
5290 (steal_exc_port): Likewise.
5291 (gnu_read_inferior): Change 'copy_count''s type to
5292 mach_msg_type_number_t.
5293 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
5296 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
5298 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
5299 flag. Adjust all users; in particular...
5300 (gnu_wait): ..., don't decrement its value in here...
5301 (gnu_create_inferior): ..., and instead set the flag in here,
5302 around the startup_inferior call, and call that one with
5303 START_INFERIOR_TRAPS_EXPECTED.
5305 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
5306 (ILL_RPC): ... new macro.
5307 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
5308 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
5309 (do_mach_notify_send_once, S_proc_setmsgport_reply)
5310 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
5311 functions with ILL_RPC macro.
5312 (S_proc_pid2task_reply, S_proc_task2pid_reply)
5313 (S_proc_task2proc_reply, S_proc_proc2task_reply)
5314 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
5315 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
5316 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
5317 (S_proc_getlogin_reply, S_proc_getsid_reply)
5318 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
5319 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
5320 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
5321 (S_proc_getnports_reply, S_proc_is_important_reply)
5322 (S_proc_get_code_reply): New stub functions, generated with
5325 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
5326 collected the type check structures.
5328 * reply_mig_hack.awk: Don't expect to see the auto keyword.
5330 2014-02-14 Doug Evans <dje@google.com>
5332 * target.c (target_write_partial): Fix result type.
5334 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
5336 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
5337 the proper offsets to access fpregset_t.
5339 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
5341 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
5342 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
5343 * h8300-tdep.c (setmachinelist): Remove global.
5344 * hppa-tdep.c (hppa_sigtramp): Remove global.
5345 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
5346 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
5347 * ravenscar-thread.c (update_target_observer): Remove global.
5348 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
5350 2014-02-12 Tom Tromey <tromey@redhat.com>
5352 * common/rsp-low.c: Update comments.
5353 * common/rsp-low.h: Update comments.
5355 2014-02-12 Tom Tromey <tromey@redhat.com>
5357 * common/rsp-low.c (convert_ascii_to_int): Remove.
5358 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
5360 2014-02-12 Tom Tromey <tromey@redhat.com>
5362 * common/rsp-low.h (unhexify): Don't declare.
5363 * common/rsp-low.c (unhexify): Remove.
5365 2014-02-12 Tom Tromey <tromey@redhat.com>
5367 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
5368 * common/rsp-low.c (convert_int_to_ascii): Remove.
5370 2014-02-12 Tom Tromey <tromey@redhat.com>
5372 * common/rsp-low.h (hexify): Don't declare.
5373 * common/rsp-low.c (hexify): Remove.
5375 2014-02-12 Tom Tromey <tromey@redhat.com>
5377 * common/rsp-low.c (hexify): Never take strlen of argument.
5379 2014-02-12 Tom Tromey <tromey@redhat.com>
5381 * common/rsp-low.c (bin2hex): Never take strlen of argument.
5382 * remote.c (extended_remote_run, remote_rcmd)
5383 (remote_download_trace_state_variable, remote_save_trace_data)
5384 (remote_set_trace_notes): Update.
5385 * tracepoint.c (encode_source_string, tfile_write_status)
5386 (tfile_write_uploaded_tsv): Update.
5388 2014-02-12 Tom Tromey <tromey@redhat.com>
5390 * tracepoint.c: Include rsp-low.h.
5391 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
5392 * remote.c: Include rsp-low.h.
5393 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
5394 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
5395 (remote_unescape_input): Move to common/rsp-low.c.
5396 * common/rsp-low.h: New file.
5397 * common/rsp-low.c: New file.
5398 * Makefile.in (SFILES): Add common/rsp-low.c.
5399 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
5400 (COMMON_OBS): Add rsp-low.o.
5401 (rsp-low.o): New target.
5403 2014-02-12 Tom Tromey <tromey@redhat.com>
5405 * utils.h: Include print-utils.h.
5406 (host_address_to_string, plongest, pulongest, phex, phex_nz)
5407 (int_string, core_addr_to_string, core_addr_to_string_nz)
5408 (hex_string, hex_string_custom): Don't declare.
5409 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
5410 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
5411 (hex_string_custom, int_string, core_addr_to_string)
5412 (core_addr_to_string_nz, host_address_to_string): Move to
5413 common/print-utils.c.
5414 * common/print-utils.h: New file.
5415 * common/print-utils.c: New file
5416 * Makefile.in (SFILES): Add common/print-utils.c.
5417 (HFILES_NO_SRCDIR): Add common/print-utils.h.
5418 (COMMON_OBS): Add print-utils.o.
5419 (print-utils.o): New target.
5421 2014-02-12 Tom Tromey <tromey@redhat.com>
5423 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
5425 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5427 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
5429 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5431 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
5432 if a PT_IO ptrace request returns sucessfully but indicates that 0
5433 bytes were transferred.
5435 2014-02-12 Pedro Alves <palves@redhat.com>
5436 Kevin Buettner <kevinb@redhat.com>
5438 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
5439 TYPE_INSTANCE_FLAG_CODE_SPACE.
5441 2014-02-12 Pedro Alves <palves@redhat.com>
5443 * h8300-tdep.c (pseudo_from_raw_register)
5444 (raw_from_pseudo_register): New functions.
5445 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
5448 2014-02-12 Pedro Alves <palves@redhat.com>
5450 * h8300-tdep.c (h8300_register_sim_regno): New function.
5451 (h8300_gdbarch_init): Install h8300_register_sim_regno as
5452 gdbarch_register_sim_regno hook.
5454 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
5456 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
5458 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
5460 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
5462 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5464 * obsd-tdep.h (obsd_init_abi): New prototype.
5465 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
5466 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
5467 (obsd_init_abi): New functions.
5468 * i386obsd-tdep.c: Include "obsd-tdep.h".
5469 (i386obsd_init_abi): Call obsd_init_abi.
5470 * amd64obsd-tdep.c: Include "obsd-tdep.h".
5471 (amd64obsd_init_abi): Call obsd_init_abi.
5472 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
5473 obsd-tdep.c to gdb_target_obs.
5475 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
5477 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
5478 double float arguments to 16-byte in the argument slots.
5480 2014-02-11 Doug Evans <xdje42@gmail.com>
5482 * configure.ac: Don't crash if pkg-config is not found and guile
5483 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
5485 * configure: Regenerate.
5487 2014-02-11 Yao Qi <yao@codesourcery.com>
5489 * aix-thread.c (aix_thread_xfer_partial): Update comments.
5490 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
5491 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
5492 * gnu-nat.c (gnu_xfer_memory): Likewise.
5493 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
5494 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5495 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5496 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
5498 2014-02-11 Yao Qi <yao@codesourcery.com>
5500 * target.h (enum target_xfer_error): Rename to ...
5501 (enum target_xfer_status): ... it. New. All users updated.
5502 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
5504 (TARGET_XFER_STATUS_ERROR_P): New macro.
5505 (target_xfer_error_to_string): Remove declaration.
5506 (target_xfer_status_to_string): Declare.
5507 (target_xfer_partial_ftype): Adjust it.
5508 (struct target_ops) <to_xfer_partial>: Return
5509 target_xfer_status. Add argument xfered_len. Update
5511 * target.c (target_xfer_error_to_string): Rename to ...
5512 (target_xfer_status_to_string): ... it. New. All callers
5514 (target_read_live_memory): Likewise. Call target_xfer_partial
5515 instead of target_read.
5516 (memory_xfer_live_readonly_partial): Return
5517 target_xfer_status. Add argument xfered_len.
5518 (raw_memory_xfer_partial): Likewise.
5519 (memory_xfer_partial_1): Likewise.
5520 (memory_xfer_partial): Likewise.
5521 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
5522 properly. Update debug message.
5523 (default_xfer_partial, current_xfer_partial): Likewise.
5524 (target_write_partial): Likewise.
5525 (target_read_partial): Likewise. All callers updated.
5526 (read_whatever_is_readable): Likewise.
5527 (target_write_with_progress): Likewise.
5528 (target_read_alloc_1): Likewise.
5530 * aix-thread.c (aix_thread_xfer_partial): Likewise.
5531 * auxv.c (procfs_xfer_auxv): Likewise.
5532 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
5533 * bfd-target.c (target_bfd_xfer_partial): Likewise.
5534 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
5535 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
5536 * corefile.c (read_memory): Adjust.
5537 * corelow.c (core_xfer_partial): Likewise.
5538 * ctf.c (ctf_xfer_partial): Likewise.
5539 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
5541 (darwin_xfer_partial): Likewise.
5542 * exec.c (section_table_xfer_memory_partial): Likewise. All
5544 (exec_xfer_partial): Likewise.
5545 * exec.h (section_table_xfer_memory_partial): Update
5547 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
5549 (gnu_xfer_partial): Likewise.
5550 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
5551 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
5552 (ia64_hpux_xfer_solib_got): Likewise.
5553 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
5554 type of 'partial_len' to ULONGEST.
5555 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
5556 * linux-nat.c (linux_xfer_siginfo ): Likewise.
5557 (linux_nat_xfer_partial): Likewise.
5558 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
5559 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
5560 * monitor.c (monitor_xfer_memory): Likewise.
5561 (monitor_xfer_partial): Likewise.
5562 * procfs.c (procfs_xfer_partial): Likewise.
5563 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5564 * record-full.c (record_full_xfer_partial): Likewise.
5565 (record_full_core_xfer_partial): Likewise.
5566 * remote-sim.c (gdbsim_xfer_memory): Likewise.
5567 (gdbsim_xfer_partial): Likewise.
5568 * remote.c (remote_write_bytes_aux): Likewise. All callers
5570 (remote_write_bytes, remote_read_bytes): Likewise. All
5572 (remote_flash_erase): Likewise. All callers updated.
5573 (remote_write_qxfer): Likewise. All callers updated.
5574 (remote_read_qxfer): Likewise. All callers updated.
5575 (remote_xfer_partial): Likewise.
5576 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5577 (rs6000_xfer_shared_libraries): Likewise.
5578 * sol-thread.c (sol_thread_xfer_partial): Likewise.
5579 (sol_thread_xfer_partial): Likewise.
5580 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5581 (sparc_xfer_partial): Likewise.
5582 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
5584 (spu_xfer_partial): Likewise.
5585 * spu-multiarch.c (spu_xfer_partial): Likewise.
5586 * tracepoint.c (tfile_xfer_partial): Likewise.
5587 * windows-nat.c (windows_xfer_memory): Likewise.
5588 (windows_xfer_shared_libraries): Likewise.
5589 (windows_xfer_partial): Likewise.
5590 * valprint.c: Replace 'target_xfer_error' with
5591 'target_xfer_status' in comments.
5593 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
5595 Checked in by Joel Brobecker <brobecker@adacore.com>.
5596 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
5598 2014-02-11 Joel Brobecker <brobecker@adacore.com>
5600 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
5601 function parameters.
5603 2014-02-10 Will Newton <will.newton@linaro.org>
5605 * elfread.c (elf_rel_plt_read): Look for a .got section if
5606 looking up .got.plt fails.
5607 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
5608 on address passed to elf_gnu_ifunc_record_cache.
5609 (elf_gnu_ifunc_resolve_addr): Likewise.
5610 (elf_gnu_ifunc_resolver_return_stop): Likewise.
5612 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
5614 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
5615 (X_RETTURN): New macro.
5616 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
5618 * sparc64-tdep.c (sparc64_init_abi): Hook
5619 sparc_in_function_epilogue_p.
5621 2014-02-10 Gary Benson <gbenson@redhat.com>
5623 * symfile-debug.c (debug_qf_expand_symtabs_matching):
5624 Rename name_matcher to symbol_matcher.
5626 2014-02-10 Gary Benson <gbenson@redhat.com>
5628 * symfile-debug.c (debug_qf_expand_symtabs_matching):
5629 Use expand_symtabs_file_matcher_ftype and
5630 expand_symtabs_symbol_matcher_ftype.
5632 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5634 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
5635 (struct ada_symbol_cache): New.
5636 (ada_free_symbol_cache): Forward declare.
5637 (struct ada_pspace_data): New.
5638 (ada_pspace_data_handle): New static global.
5639 (get_ada_pspace_data, ada_pspace_data_cleanup)
5640 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
5641 (cache_space, cache): Delete, now folded inside struct
5643 (ada_get_symbol_cache): New function.
5644 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
5646 (_initialize_ada_language): Remove initialization of cache_space.
5647 Move call to observer_attach_inferior_exit up, grouping it
5648 with the other observer registrations inside this function.
5649 Rename command to be more general. Add call to
5650 register_program_space_data_with_cleanup.
5652 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5654 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
5655 ada_new_objfile_observer.
5656 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
5657 (_initialize_tasks): Update uses of ada_new_objfile_observer
5658 and ada_tasks_normal_stop_observer.
5660 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5662 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
5663 returned by the 'Length attribute to integer.
5665 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5667 * ada-lang.c (_initialize_ada_language): Initialize
5668 cache_space obstack.
5670 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5672 * ada-lang.c (HASH_SIZE): New macro.
5673 (struct cache_entry): New type.
5674 (cache_space, cache): New static globals.
5675 (ada_clear_symbol_cache, find_entry): New functions.
5676 (lookup_cached_symbol, cache_symbol): Implement.
5677 (ada_new_objfile_observer, ada_free_objfile_observer): New.
5678 (_initialize_ada_language): Attach ada_new_objfile_observer
5679 and ada_free_objfile_observer.
5681 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5683 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
5684 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
5685 struct block * parameter.
5686 (ada_lookup_symbol_list_worker): Constify local variable "block".
5687 Remove cast which is no longer necessary.
5689 2014-02-10 Doug Evans <xdje42@gmail.com>
5691 Add Guile as an extension language.
5692 * NEWS: Mention Guile scripting.
5693 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
5694 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
5695 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
5696 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
5697 (CLIBS): Add GUILE_LIBS.
5698 (install-guile): New rule.
5699 (guile.o): New rule.
5700 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
5701 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
5702 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
5703 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
5704 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
5705 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
5706 (scm-type.o, scm-utils.o, scm-value.o): New rules.
5707 * configure.ac: New option --with-guile.
5708 * configure: Regenerate.
5709 * config.in: Regenerate.
5710 * auto-load.c: Remove #include "python/python.h". Add #include
5711 "gdb/section-scripts.h".
5712 (source_section_scripts): Handle Guile scripts.
5713 (_initialize_auto_load): Add name of Guile objfile script to
5714 scripts-directory help text.
5715 * breakpoint.c (condition_command): Tweak comment to include Scheme.
5716 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
5717 (struct breakpoint): New member scm_bp_object.
5718 * defs.h (enum command_control_type): New value guile_control.
5719 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
5721 (show_user): Update comment.
5722 (_initialize_cli_cmds): Update help text for "show user". Update help
5723 text for max-user-call-depth.
5724 * cli/cli-script.c: Remove #include "python/python.h". Add #include
5726 (multi_line_command_p): Add guile_control.
5727 (print_command_lines): Handle guile_control.
5728 (execute_control_command, recurse_read_control_structure): Ditto.
5729 (process_next_line): Recognize "guile" commands.
5730 * disasm.c (gdb_disassemble_info): Make non-static.
5731 * disasm.h: #include "dis-asm.h".
5732 (struct gdbarch): Add forward decl.
5733 (gdb_disassemble_info): Declare.
5734 * extension.c: #include "guile/guile.h".
5735 (extension_languages): Add guile.
5736 (get_ext_lang_defn): Handle EXT_LANG_GDB.
5737 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
5738 * gdbtypes.c (get_unsigned_type_max): New function.
5739 (get_signed_type_minmax): New function.
5740 * gdbtypes.h (get_unsigned_type_max): Declare.
5741 (get_signed_type_minmax): Declare.
5742 * guile/README: New file.
5743 * guile/guile-internal.h: New file.
5744 * guile/guile.c: New file.
5745 * guile/guile.h: New file.
5746 * guile/scm-arch.c: New file.
5747 * guile/scm-auto-load.c: New file.
5748 * guile/scm-block.c: New file.
5749 * guile/scm-breakpoint.c: New file.
5750 * guile/scm-disasm.c: New file.
5751 * guile/scm-exception.c: New file.
5752 * guile/scm-frame.c: New file.
5753 * guile/scm-gsmob.c: New file.
5754 * guile/scm-iterator.c: New file.
5755 * guile/scm-lazy-string.c: New file.
5756 * guile/scm-math.c: New file.
5757 * guile/scm-objfile.c: New file.
5758 * guile/scm-ports.c: New file.
5759 * guile/scm-pretty-print.c: New file.
5760 * guile/scm-safe-call.c: New file.
5761 * guile/scm-string.c: New file.
5762 * guile/scm-symbol.c: New file.
5763 * guile/scm-symtab.c: New file.
5764 * guile/scm-type.c: New file.
5765 * guile/scm-utils.c: New file.
5766 * guile/scm-value.c: New file.
5767 * guile/lib/gdb.scm: New file.
5768 * guile/lib/gdb/boot.scm: New file.
5769 * guile/lib/gdb/experimental.scm: New file.
5770 * guile/lib/gdb/init.scm: New file.
5771 * guile/lib/gdb/iterator.scm: New file.
5772 * guile/lib/gdb/printing.scm: New file.
5773 * guile/lib/gdb/types.scm: New file.
5774 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
5775 (VPATH): Add $(GUILE_SRCDIR).
5776 (GUILE_DIR): New variable.
5777 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
5778 (all): Add stamp-guile dependency.
5779 (stamp-guile): New rule.
5780 (clean-guile, install-guile, uninstall-guile): New rules.
5781 (install-only): Add install-guile dependency.
5782 (uninstall): Add uninstall-guile dependency.
5783 (clean): Add clean-guile dependency.
5785 2014-02-09 Doug Evans <xdje42@gmail.com>
5787 Revert this patch (which I approved, mea culpa).
5789 2014-02-08 Mark Kettenis <kettenis@gnu.org>
5791 * Makefile.in (all-lib): Remove.
5792 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
5794 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5796 Fix Python stack corruption.
5797 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
5800 2014-02-08 Mark Kettenis <kettenis@gnu.org>
5802 * Makefile.in (all-lib): Remove.
5803 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
5805 2014-02-07 Doug Evans <dje@google.com>
5807 * extension-priv.h (extension_language_script_ops): Add comment.
5808 (extension_language_ops): Add comment.
5809 (active_ext_lang_state): Fix typo in comment.
5811 2014-02-07 Pedro Alves <palves@redhat.com>
5813 PR breakpoints/16292
5814 * infrun.c (handle_signal_stop) <signal arrives while stepping
5815 over a breakpoint>: Switch back to the stepping thread.
5817 2014-02-07 Yao Qi <yao@codesourcery.com>
5819 * target.c (target_xfer_partial): Return zero if LEN is zero.
5821 2014-02-07 Yao Qi <yao@codesourcery.com>
5823 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
5824 (ld_so_xfer_auxv): Likewise.
5825 * bfd-target.c (target_bfd_xfer_partial): Likewise.
5826 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
5827 * corelow.c (core_xfer_partial): Likewise.
5828 * ctf.c (ctf_xfer_partial): Likewise.
5829 * darwin-nat.c (darwin_read_dyld_info): Likewise.
5830 (darwin_xfer_partial): Likewise.
5831 * exec.c (exec_xfer_partial): Likewise.
5832 * gnu-nat.c (gnu_xfer_partial): Likewise.
5833 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
5834 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
5835 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
5836 * linux-nat.c (linux_xfer_siginfo): Likewise.
5837 (linux_proc_xfer_spu): Likewise.
5838 * procfs.c (procfs_xfer_partial): Likewise.
5839 * record-full.c (record_full_xfer_partial): Likewise.
5840 (record_full_core_xfer_partial): Likewise.
5841 * remote-sim.c (gdbsim_xfer_partial): Likewise.
5842 * remote.c (remote_write_qxfer): Likewise.
5843 (remote_write_qxfer, remote_read_qxfer): Likewise.
5844 (remote_xfer_partial): Likewise.
5845 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5846 (rs6000_xfer_shared_libraries): Likewise.
5847 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5848 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
5849 (spu_xfer_partial): Likewise.
5850 * target.c (memory_xfer_partial_1): Likewise.
5851 * tracepoint.c (tfile_xfer_partial): Likewise.
5852 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
5853 (windows_xfer_partial): Likewise.
5855 2014-02-07 Yao Qi <yao@codesourcery.com>
5857 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
5859 (core_xfer_shared_libraries_aix): Likewise.
5860 * gdbarch.c, gdbarch.h: Regenerated.
5861 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
5862 ULONGEST. Change 'len_avail' type to ULONGEST.
5863 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
5864 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
5866 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
5868 2014-02-07 Yao Qi <yao@codesourcery.com>
5870 * corefile.c (memory_error): Get 'exception' from ERR and pass
5871 'exception' to throw_error.
5873 2014-02-06 Doug Evans <xdje42@gmail.com>
5875 * configure.ac (libpython checking): Remove all but python.o from
5876 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
5877 * configure: Regenerate.
5879 * Makefile.in (SFILES): Add extension.c.
5880 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
5881 (COMMON_OBS): Add extension.o.
5882 * extension.h: New file.
5883 * extension-priv.h: New file.
5884 * extension.c: New file.
5886 * python/python-internal.h: #include "extension.h".
5887 (gdbpy_auto_load_enabled): Declare.
5888 (gdbpy_apply_val_pretty_printer): Declare.
5889 (gdbpy_apply_frame_filter): Declare.
5890 (gdbpy_preserve_values): Declare.
5891 (gdbpy_breakpoint_cond_says_stop): Declare.
5892 (gdbpy_breakpoint_has_cond): Declare.
5893 (void source_python_script_for_objfile): Delete.
5894 * python/python.c: #include "extension-priv.h".
5895 Delete inclusion of "observer.h".
5896 (extension_language_python): Moved here and renamed from
5897 script_language_python in py-auto-load.c.
5898 Redefined to be of type extension_language_defn.
5899 (python_extension_script_ops): New global.
5900 (python_extension_ops): New global.
5901 (struct python_env): New member previous_active.
5902 (restore_python_env): Call restore_active_ext_lang.
5903 (ensure_python_env): Call set_active_ext_lang.
5904 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
5906 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
5908 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
5910 (gdbpy_eval_from_control_command): Renamed from
5911 eval_python_from_control_command, made static. New arg extlang.
5912 (gdbpy_source_script) Renamed from source_python_script, made static.
5914 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
5915 result to int. New arg extlang.
5916 (gdbpy_source_objfile_script): Renamed from
5917 source_python_script_for_objfile, made static. New arg extlang.
5918 (gdbpy_start_type_printers): Renamed from start_type_printers, made
5919 static. New args extlang, extlang_printers. Change result type to
5921 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
5922 static. New arg extlang. Rename arg printers to extlang_printers
5923 and change type to ext_lang_type_printers *.
5924 (gdbpy_free_type_printers): Renamed from free_type_printers, made
5925 static. Replace argument arg with extlang, extlang_printers.
5926 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
5927 (!HAVE_PYTHON, source_python_script): Delete.
5928 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
5929 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
5930 (!HAVE_PYTHON, start_type_printers): Delete.
5931 (!HAVE_PYTHON, apply_type_printers): Delete.
5932 (!HAVE_PYTHON, free_type_printers): Delete.
5933 (_initialize_python): Delete call to observer_attach_before_prompt.
5934 (finalize_python): Set/restore active extension language.
5935 (gdbpy_finish_initialization) Renamed from
5936 finish_python_initialization, made static. New arg extlang.
5937 (gdbpy_initialized): New function.
5938 * python/python.h: #include "extension.h". Delete #include
5939 "value.h", "mi/mi-cmds.h".
5940 (extension_language_python): Declare.
5941 (GDBPY_AUTO_FILE_NAME): Delete.
5942 (enum py_bt_status): Moved to extension.h and renamed to
5944 (enum frame_filter_flags): Moved to extension.h.
5945 (enum py_frame_args): Moved to extension.h and renamed to
5946 ext_lang_frame_args.
5947 (finish_python_initialization): Delete.
5948 (eval_python_from_control_command): Delete.
5949 (source_python_script): Delete.
5950 (apply_val_pretty_printer): Delete.
5951 (apply_frame_filter): Delete.
5952 (preserve_python_values): Delete.
5953 (gdbpy_script_language_defn): Delete.
5954 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
5955 (start_type_printers, apply_type_printers, free_type_printers): Delete.
5957 * auto-load.c: #include "extension.h".
5958 (GDB_AUTO_FILE_NAME): Delete.
5959 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
5960 (script_language_gdb): Delete, moved to extension.c and renamed to
5961 extension_language_gdb.
5962 (source_gdb_script_for_objfile): Delete.
5963 (auto_load_pspace_info): New member unsupported_script_warning_printed.
5964 (loaded_script): Change type of language member to
5965 struct extension_language_defn *.
5966 (init_loaded_scripts_info): Initialize
5967 unsupported_script_warning_printed.
5968 (maybe_add_script): Make static. Change type of language arg to
5969 struct extension_language_defn *.
5970 (clear_section_scripts): Reset unsupported_script_warning_printed.
5971 (auto_load_objfile_script_1): Rewrite to use extension language API.
5972 (auto_load_objfile_script): Make public. Remove support-compiled-in
5973 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
5974 (source_section_scripts): Rewrite to use extension language API.
5975 (load_auto_scripts_for_objfile): Rewrite to use
5976 auto_load_scripts_for_objfile.
5977 (collect_matching_scripts_data): Change type of language member to
5978 struct extension_language_defn *.
5979 (auto_load_info_scripts): Change type of language arg to
5980 struct extension_language_defn *.
5981 (unsupported_script_warning_print): New function.
5982 (script_not_found_warning_print): Make static.
5983 (_initialize_auto_load): Rewrite construction of scripts-directory
5985 * auto-load.h (struct objfile): Add forward decl.
5986 (struct script_language): Delete.
5987 (struct auto_load_pspace_info): Add forward decl.
5988 (struct extension_language_defn): Add forward decl.
5989 (maybe_add_script): Delete.
5990 (auto_load_objfile_script): Declare.
5991 (script_not_found_warning_print): Delete.
5992 (auto_load_info_scripts): Update prototype.
5993 (auto_load_gdb_scripts_enabled): Declare.
5994 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
5995 auto_load_python_scripts_enabled and made public.
5996 (script_language_python): Delete, moved to python.c.
5997 (gdbpy_script_language_defn): Delete.
5998 (info_auto_load_python_scripts): Update to use
5999 extension_language_python.
6001 * breakpoint.c (condition_command): Replace call to
6002 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
6003 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
6004 with call to breakpoint_ext_lang_cond_says_stop.
6005 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
6006 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
6007 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
6008 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
6010 (local_setattro): Print name of extension language with existing
6013 * valprint.c (val_print, value_print): Update to call
6014 apply_ext_lang_val_pretty_printer.
6015 * cp-valprint.c (cp_print_value): Update call to
6016 apply_ext_lang_val_pretty_printer.
6017 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
6018 (gdbpy_apply_val_pretty_printer): Renamed from
6019 apply_val_pretty_printer. New arg extlang.
6020 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
6022 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
6023 extension language API.
6024 * cli/cli-script.c (execute_control_command): Update to call
6025 eval_ext_lang_from_control_command.
6027 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
6028 enum ext_lang_bt_status values. Update call to
6029 apply_ext_lang_frame_filter.
6030 (mi_cmd_stack_list_locals): Ditto.
6031 (mi_cmd_stack_list_args): Ditto.
6032 (mi_cmd_stack_list_variables): Ditto.
6033 * mi/mi-main.c: Delete #include "python/python-internal.h".
6034 Add #include "extension.h".
6035 (mi_cmd_list_features): Replace reference to python internal variable
6036 gdb_python_initialized with call to ext_lang_initialized_p.
6038 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
6039 Update to use enum ext_lang_frame_args. Update to call
6040 apply_ext_lang_frame_filter.
6041 * python/py-framefilter.c (extract_sym): Update to use enum
6043 (extract_value, py_print_type, py_print_value): Ditto.
6044 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
6045 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
6046 (py_print_frame): Ditto.
6047 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
6048 New arg extlang. Update to use enum ext_lang_bt_status.
6050 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
6051 finish_python_initialization. Replace with call to
6052 finish_ext_lang_initialization.
6054 * typeprint.c (do_free_global_table): Update to call
6055 free_ext_lang_type_printers.
6056 (create_global_typedef_table): Update to call
6057 start_ext_lang_type_printers.
6058 (find_global_typedef): Update to call apply_ext_lang_type_printers.
6059 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
6060 (type_print_options): Change type of global_printers from "void *"
6061 to "struct ext_lang_type_printers *".
6063 * value.c (preserve_values): Update to call preserve_ext_lang_values.
6064 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
6065 (gdbpy_preserve_values): Renamed from preserve_python_values.
6067 (!HAVE_PYTHON, preserve_python_values): Delete.
6069 * utils.c (quit_flag): Delete, moved to extension.c.
6070 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
6073 * eval.c: Delete #include "python/python.h".
6074 * main.c: Delete #include "python/python.h".
6076 * defs.h: Update comment.
6078 2014-02-06 Joel Brobecker <brobecker@adacore.com>
6082 2014-02-05 Mark Kettenis <kettenis@gnu.org>
6084 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
6087 2014-02-05 Yao Qi <yao@codesourcery.com>
6089 * remote.c (remote_pass_signals): Remove local 'buf' and use
6091 (remote_program_signals): Likewise.
6093 2014-02-05 Yao Qi <yao@codesourcery.com>
6095 * ctf.c: Include "inferior.h" and "gdbthread.h".
6096 (CTF_PID): A new macro.
6097 (ctf_open): Call inferior_appeared and add_thread_silent.
6098 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
6099 (ctf_thread_alive): New function.
6100 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
6102 2014-02-05 Yao Qi <yao@codesourcery.com>
6106 2013-05-24 Yao Qi <yao@codesourcery.com>
6108 * tracepoint.c (TFILE_PID): Remove.
6109 (tfile_open): Don't add thread and inferior.
6110 (tfile_close): Don't set 'inferior_ptid'. Don't call
6111 exit_inferior_silent.
6112 (tfile_thread_alive): Remove.
6113 (init_tfile_ops): Don't set field 'to_thread_alive' of
6116 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
6118 * remote.c (remote_start_remote): Call remote_check_symbols even
6119 if only symbol-file (not file) has been given.
6121 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6123 * gdbarch.sh (skip_entrypoint): New callback.
6124 * gdbarch.c, gdbarch.h: Regenerate.
6125 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
6126 * infrun.c (fill_in_stop_func): Likewise.
6127 * ppc-linux-tdep.c: Include "elf/ppc64.h".
6128 (ppc_elfv2_elf_make_msymbol_special): New function.
6129 (ppc_elfv2_skip_entrypoint): Likewise.
6130 (ppc_linux_init_abi): Install them for ELFv2.
6132 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6134 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
6135 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
6136 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
6137 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
6138 structures returned in GPRs.
6140 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6142 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
6143 offset to the stack parameter list for the ELFv2 ABI.
6145 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6147 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
6148 set_gdbarch_convert_from_func_ptr_addr and
6149 set_gdbarch_elf_make_msymbol_special for ELFv1.
6150 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
6151 function descriptors on ELFv1.
6152 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
6153 set up r12 at function entry.
6155 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6157 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
6158 (struct gdbarch_tdep): New member elf_abi.
6160 * rs6000-tdep.c: Include "elf/ppc64.h".
6161 (rs6000_gdbarch_init): Detect ELF ABI version.
6163 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6165 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
6166 within a register pair holding a DFP 128-bit value on little-endian.
6167 (ppc64_sysv_abi_return_value_base): Likewise.
6168 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
6169 (dfp_pseudo_register_write): Likewise.
6171 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6173 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
6174 offset on little-endian when passing _Decimal32.
6175 (ppc64_sysv_abi_return_value_base): Likewise for return values.
6177 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6179 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
6180 of the overlapped FP register within the VSX register on little-
6182 (efpr_pseudo_register_write): Likewise.
6184 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6186 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
6187 offset on little-endian when passing small structures.
6189 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6191 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
6192 (struct ppc64_sysv_argpos): New data structure.
6193 (ppc64_sysv_abi_push_float): Remove.
6194 (ppc64_sysv_abi_push_val): New function.
6195 (ppc64_sysv_abi_push_integer): Likewise.
6196 (ppc64_sysv_abi_push_freg): Likewise.
6197 (ppc64_sysv_abi_push_vreg): Likewise.
6198 (ppc64_sysv_abi_push_param): Likewise.
6199 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
6200 (ppc64_sysv_abi_return_value_base): New function.
6201 (ppc64_sysv_abi_return_value): Refactor to use it.
6203 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6205 * NEWS: Document new target powerpc64le-*-linux*.
6207 2014-02-04 Mark Kettenis <kettenis@gnu.org>
6209 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
6210 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
6212 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
6213 register set used in ELF core dumps. Add floating-point register set.
6215 2014-02-03 Kevin Buettner <kevinb@redhat.com>
6217 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
6218 dwarf2_to_gdb[] table using symbolic constants. Adjust
6219 penultimate entry from number representing the PC register
6220 to symbolic constant representing the MDR register. Add
6221 constant for the PC register to the end of the table.
6223 2014-02-03 Mark Kettenis <kettenis@gnu.org>
6225 * bsd-kvm.c: Include <sys/param.h>
6227 2014-02-03 Mark Kettenis <kettenis@gnu.org>
6229 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
6231 2014-01-31 Joel Brobecker <brobecker@adacore.com>
6233 * ada-lang.h (clear_ada_sym_cache): Delete.
6235 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
6237 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
6239 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
6241 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
6242 the sigreturn register save area only if the syscall is
6245 2014-01-29 Joel Brobecker <brobecker@adacore.com>
6247 * valops.c (value_slice): Minor reformatting.
6249 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
6251 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
6253 2014-01-28 Joel Brobecker <brobecker@adacore.com>
6255 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
6257 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
6258 (ada_ignore_descriptive_types_p): New static global.
6259 (find_parallel_type_by_descriptive_type): Return immediately
6260 if ada_ignore_descriptive_types_p is set.
6261 (_initialize_ada_language): Register new commands "maintenance
6262 set ada", "maintenance show ada", "maintenance set ada
6263 ignore-descriptive-types" and "maintenance show ada
6264 ignore-descriptive-types".
6265 * NEWS: Add entry for new "maint ada set/show
6266 ignore-descriptive-types" commands.
6268 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
6270 * record-btrace.c (record_btrace_close): Call btrace_teardown
6273 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6275 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
6278 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6280 * ada-typeprint (type_is_full_subrange_of_target_type):
6282 (print_range): Add parameter bounds_prefered_p. If not set,
6283 try printing range types using the name of their base type.
6284 (print_range_type): Add parameter bounds_prefered_p.
6285 Use it in call to print_range.
6286 (print_array_type, ada_print_type): Update calls to print_range
6287 and print_range_type.
6289 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6291 * ada-typeprint.c (print_array_type, print_choices, print_range)
6292 (print_range_bound, print_dynamic_range_bound, print_range_type):
6295 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6297 * ada-typeprint.c (print_range): Add missing empty line
6298 after local declaration.
6300 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6302 * ada-valprint.c (print_optional_low_bound): Get index_type's
6303 target type for as long as it is a TYPE_CODE_RANGE.
6305 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6307 * procfs.c (procfs_make_note_section): Remove assertion and
6310 2014-01-24 Yao Qi <yao@codesourcery.com>
6312 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
6313 * corelow.c (get_core_siginfo): Likewise.
6315 2014-01-24 Yao Qi <yao@codesourcery.com>
6317 * remote.c (remote_write_bytes_aux): Change type of 'len' to
6318 ULONGEST. Don't check 'len' is negative.
6319 (remote_write_bytes): Change type of 'len' to ULONGEST.
6321 2014-01-23 Tom Tromey <tromey@redhat.com>
6324 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
6325 Handle exception from frame.block.
6326 (FrameVars.fetch_frame_locals): Likewise.
6328 2014-01-23 Tom Tromey <tromey@redhat.com>
6331 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
6332 on a NULL pointer. Move "goto error" to correct place.
6334 2014-01-23 Tom Tromey <tromey@redhat.com>
6337 * python/py-framefilter.c (apply_frame_filter): Call
6338 ensure_python_env after computing gdbarch.
6340 2014-01-23 Yao Qi <yao@codesourcery.com>
6342 * target.c (raw_memory_xfer_partial): Change argument type
6343 from void * to gdb_byte *.
6344 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
6346 2014-01-22 Doug Evans <dje@google.com>
6348 New gdbserver option --debug-format=timestamp.
6351 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
6353 * syscalls/s390x-linux.xml: New file.
6354 * syscalls/s390-linux.xml: New file.
6355 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
6356 (XML_SYSCALL_FILENAME_S390X): Likewise.
6357 (op_svc): New enum value for SVC opcode.
6358 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
6359 (s390_linux_get_syscall_number): New function.
6360 (s390_gdbarch_init): Register '*get_syscall_number' and the
6361 syscall xml file name.
6362 * data-directory/Makefile.in (SYSCALLS_FILES): Add
6363 "s390-linux.xml" and "s390x-linux.xml".
6364 * NEWS: Announce new feature.
6366 2014-01-22 Baruch Siach <baruch@tkos.co.il>
6368 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
6370 2014-01-22 Pedro Alves <palves@redhat.com>
6372 * xtensa-config.c: Include defs.h.
6374 2014-01-22 Joel Brobecker <brobecker@adacore.com>
6376 * common/common-utils.h: Add "ARI:" comment beside __func__
6379 2014-01-22 Joel Brobecker <brobecker@adacore.com>
6381 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
6382 documentation a bit.
6384 2014-01-21 Roland McGrath <mcgrathr@google.com>
6386 * configure.ac: Call AM_PROG_INSTALL_STRIP.
6387 * configure: Regenerate.
6388 * aclocal.m4: Regenerate.
6389 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
6390 New substituted variables.
6391 (install-strip): New target.
6392 (INSTALL_SCRIPT): New substituted variable.
6393 (FLAGS_TO_PASS): Add it.
6394 (install-only): Use $(INSTALL_SCRIPT) rather than
6395 $(INSTALL_PROGRAM) for gcore.
6397 2014-01-20 Tom Tromey <tromey@redhat.com>
6399 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
6402 2014-01-20 Tom Tromey <tromey@redhat.com>
6404 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
6405 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
6406 (deprecated_cmd_warning, complete_on_cmdlist): Update.
6407 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
6408 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
6409 (struct cmd_list_element) <flags>: Remove.
6410 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
6411 doc_allocated>: New fields.
6412 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
6414 * maint.c (maintenance_do_deprecate): Update.
6415 * top.c (execute_command): Update.
6417 2014-01-20 Baruch Siach <baruch@tkos.co.il>
6419 * xtensa-linux-nat.c: Include asm/ptrace.h.
6421 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6423 * Makefile.in (SFILES): Add d-support.c.
6424 (COMMON_OBS): Add d-support.o.
6425 * d-lang.h (d_parse_symbol): Add comment, now defined in
6427 * d-lang.c (parse_call_convention)
6428 (parse_attributes, parse_function_types)
6429 (parse_function_args, parse_type, parse_identifier)
6430 (call_convention_p, d_parse_symbol): Move functions to ...
6431 * d-support.c: ... New file.
6433 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6435 * d-lang.h (d_parse_symbol): Add declaration.
6436 * d-lang.c (extract_identifiers)
6437 (extract_type_info): Remove functions.
6438 (parse_call_convention, parse_attributes)
6439 (parse_function_types, parse_function_args)
6440 (parse_type, parse_identifier, call_convention_p)
6441 (d_parse_symbol): New functions.
6442 (d_demangle): Use d_parse_symbol to demangle D symbols.
6444 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6446 * d-lang.h (struct builtin_d_type): New data type.
6447 (builtin_d_type): Add declaration.
6448 * d-lang.c (d_language_arch_info, build_d_types)
6449 (builtin_d_type): New functions.
6450 (enum d_primitive_types): New data type.
6451 (d_language_defn): Change c_language_arch_info to
6452 d_language_arch_info.
6453 (d_type_data): New static variable.
6454 (_initialize_d_language): Initialize d_type_data.
6456 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6458 * d-lang.h (d_main_name): Add declaration.
6459 * d-lang.c (d_main_name): New function.
6460 * symtab.c (find_main_name): Add call to d_main_name.
6462 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6464 * d-lang.c (d_language_defn): Change macro_expansion_c to
6467 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6469 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6471 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
6473 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
6474 gdb_exception" declaration.
6475 * remote.c (getpkt_or_notif_sane): Likewise.
6477 2014-01-17 Doug Evans <dje@google.com>
6479 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
6480 function, contents of dirnames_to_char_ptr_vec_append moved here.
6481 (delim_string_to_char_ptr_vec): New function.
6482 (dirnames_to_char_ptr_vec_append): Rewrite.
6483 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
6485 2014-01-17 Doug Evans <dje@google.com>
6487 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
6489 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
6490 #include "common-utils.h".
6491 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
6492 * common/vec.h (VEC_ASSERT_PASS): Update.
6493 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
6494 (MACH_CHECK_ERROR): Update.
6496 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
6498 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
6500 * gdbarch.h: Regenerate.
6502 2014-01-16 Tom Tromey <tromey@redhat.com>
6504 * value.c (struct value) <regnum>: Move earlier.
6506 2014-01-16 Tom Tromey <tromey@redhat.com>
6508 * remote.c (extended_remote_create_inferior): Rename from
6509 extended_remote_create_inferior_1. Add "ops" argument. Remove
6512 2014-01-16 Pedro Alves <palves@redhat.com>
6514 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
6515 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
6518 2014-01-16 Doug Evans <dje@google.com>
6520 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
6522 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6524 * btrace.h (btrace_thread_flag): New.
6525 (struct btrace_thread_info) <flags>: New.
6526 * record-btrace.c (record_btrace_resume_thread)
6527 (record_btrace_find_thread_to_move, btrace_step_no_history)
6528 (btrace_step_stopped, record_btrace_start_replaying)
6529 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
6530 (record_btrace_find_resume_thread): New.
6531 (record_btrace_resume, record_btrace_wait): Extend.
6532 (record_btrace_can_execute_reverse): New.
6533 (record_btrace_open): Fail in non-stop mode.
6534 (record_btrace_set_replay): Split into this, ...
6535 (record_btrace_stop_replaying): ... this, ...
6536 (record_btrace_clear_histories): ... and this.
6537 (init_record_btrace_ops): Init to_can_execute_reverse.
6538 * NEWS: Announce it.
6540 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6542 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
6543 (forward_target_decr_pc_after_break)
6544 (target_decr_pc_after_break): New.
6545 * target.c (forward_target_decr_pc_after_break)
6546 (target_decr_pc_after_break): New.
6547 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
6548 instead of gdbarch_decr_pc_after_break.
6549 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
6550 instead of gdbarch_decr_pc_after_break.
6551 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
6552 instead of gdbarch_decr_pc_after_break.
6553 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
6554 instead of gdbarch_decr_pc_after_break.
6555 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
6556 instead of gdbarch_decr_pc_after_break.
6557 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
6558 instead of gdbarch_decr_pc_after_break.
6560 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6562 * btrace.c: Include regcache.h.
6563 (btrace_add_pc): New.
6564 (btrace_enable): Call btrace_add_pc.
6565 (btrace_is_empty): New.
6566 * btrace.h (btrace_is_empty): New.
6567 * record-btrace.c (require_btrace, record_btrace_info): Call
6570 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6572 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
6573 Support delta reads.
6574 (linux_disable_btrace): Change return type.
6575 * common/linux-btrace.h (linux_read_btrace): Change parameters
6576 and return type to allow error reporting. Update users.
6577 (linux_disable_btrace): Change return type. Update users.
6578 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
6580 (btrace_error): New.
6581 (btrace_block) <begin>: Comment on BEGIN == 0.
6582 * btrace.c (btrace_compute_ftrace): Start from the end of
6584 (btrace_stitch_trace, btrace_clear_history): New.
6585 (btrace_fetch): Read delta trace, return if replaying.
6586 (btrace_clear): Move clear history code to btrace_clear_history.
6587 (parse_xml_btrace): Throw an error if parsing failed.
6588 * target.h (struct target_ops) <to_read_btrace>: Change parameters
6589 and return type to allow error reporting.
6590 (target_read_btrace): Change parameters and return type to allow
6592 * target.c (target_read_btrace): Update.
6593 * remote.c (remote_read_btrace): Support delta reads. Pass
6595 * NEWS: Announce it.
6597 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6599 * record.h (record_btrace_frame_unwind)
6600 (record_btrace_tailcall_frame_unwind): New declarations.
6601 * dwarf2-frame: Include record.h
6602 (dwarf2_frame_cfa): Throw an error for btrace frames.
6603 * record-btrace.c: Include hashtab.h.
6604 (btrace_get_bfun_name): New.
6605 (btrace_call_history): Call btrace_get_bfun_name.
6606 (struct btrace_frame_cache): New.
6608 (bfcache_hash, bfcache_eq, bfcache_new): New.
6609 (btrace_get_frame_function): New.
6610 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
6611 (record_btrace_frame_this_id): Compute own id.
6612 (record_btrace_frame_prev_register): Provide PC, throw_error
6613 for all other registers.
6614 (record_btrace_frame_sniffer): Detect btrace frames.
6615 (record_btrace_tailcall_frame_sniffer): New.
6616 (record_btrace_frame_dealloc_cache): New.
6617 (record_btrace_frame_unwind): Add new functions.
6618 (record_btrace_tailcall_frame_unwind): New.
6619 (_initialize_record_btrace): Allocate cache.
6620 * btrace.c (btrace_clear): Call reinit_frame_cache.
6621 * NEWS: Announce it.
6623 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6625 * record-btrace.c (record_btrace_set_replay)
6626 (record_btrace_goto_begin, record_btrace_goto_end)
6627 (record_btrace_goto): New.
6628 (init_record_btrace_ops): Initialize them.
6629 * NEWS: Announce it.
6631 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6633 * record-btrace.c (record_btrace_find_new_threads)
6634 (record_btrace_thread_alive): New.
6635 (init_record_btrace_ops): Initialize to_find_new_threads and
6638 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6640 * record-btrace.c (record_btrace_resume): New.
6641 (record_btrace_wait): New.
6642 (init_record_btrace_ops): Initialize to_wait and to_resume.
6644 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6646 * record-btrace.c (record_btrace_xfer_partial)
6647 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
6648 (record_btrace_allow_memory_access): New.
6649 (init_record_btrace_ops): Initialize new methods.
6650 * target.c (raw_memory_xfer_partial): Bail out if target reports
6651 that this memory is not available.
6653 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6655 * target.h (target_ops) <to_insert_breakpoint>
6656 <to_remove_breakpoint>: Add target_ops parameter.
6657 (forward_target_insert_breakpoint): New.
6658 (forward_target_remove_breakpoint): New.
6659 (memory_remove_breakpoint, memory_insert_breakpoint):
6660 Add target_ops parameter.
6661 * target.c (target_insert_breakpoint): Split into this and ...
6662 (forward_target_insert_breakpoint): ... this.
6663 (target_remove_breakpoint): Split into this and ...
6664 (forward_target_remove_breakpoint): ... this.
6665 (debug_to_insert_breakpoint): Add target_ops parameter.
6666 Call forward_target_insert_breakpoint.
6667 (debug_to_remove_breakpoint): Add target_ops parameter.
6668 Call forward_target_remove_breakpoint.
6669 (update_current_target): Do not inherit or default to_insert_breakpoint
6670 and to_remove_breakpoint.
6671 * corelow.c (ignore): Add target_ops parameter.
6672 * exec.c (ignore): Add target_ops parameter.
6673 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
6674 Add target_ops parameter.
6675 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
6676 Add target_ops parameter.
6677 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
6678 Add target_ops parameter.
6679 * record-full.c (record_full_beneath_to_insert_breakpoint)
6680 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
6681 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
6682 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
6683 (record_full_core_remove_breakpoint): Add target_ops parameter.
6685 (record_full_beneath_to_insert_breakpoint_ops)
6686 (record_full_beneath_to_remove_breakpoint_ops)
6687 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
6688 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
6689 tmp_to_remove_breakpoint_ops,
6690 record_full_beneath_to_insert_breakpoint_ops, and
6691 record_full_beneath_to_remove_breakpoint_ops.
6692 * remote-m32r-sdi.c (m32r_insert_breakpoint)
6693 (m32r_remove_breakpoint): Add target_ops parameter.
6694 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
6695 Add target_ops parameter.
6696 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
6697 Add target_ops parameter.
6699 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6700 Markus Metzger <markus.t.metzger@intel.com>
6702 * record-btrace.c: Include frame-unwind.h.
6703 (record_btrace_frame_unwind_stop_reason)
6704 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
6705 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
6707 (init_record_btrace_ops): Install it.
6709 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6711 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
6714 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6716 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
6719 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6721 * frame-unwind.c: Include target.h.
6722 (frame_unwind_try_unwinder): New function with code from ...
6723 (frame_unwind_find_by_frame): ... here. New variable
6724 unwinder_from_target, call also target_get_unwinder)
6725 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
6726 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
6727 * target.h (struct target_ops): New fields to_get_unwinder and
6728 to_get_tailcall_unwinder.
6729 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
6731 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6733 * record-btrace.c (record_btrace_fetch_registers)
6734 (record_btrace_store_registers)
6735 (record_btrace_to_prepare_to_store): New.
6736 (init_record_btrace_ops): Add the above.
6738 2014-01-16 Tom Tromey <tromey@redhat.com>
6740 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
6741 * target.h (struct target_ops) <to_prepare_to_store>: Add
6743 (target_prepare_to_store): Add argument.
6744 * target.c (debug_to_prepare_to_store): Add argument.
6745 (update_current_target): Update.
6746 * remote.c (remote_prepare_to_store): Add 'self' argument.
6747 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
6748 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
6749 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
6750 * record-full.c (record_full_core_prepare_to_store): Add 'self'
6752 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
6753 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
6754 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
6755 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
6756 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
6758 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6760 * btrace.h (replay) <replay>: New.
6761 (btrace_is_replaying): New.
6762 * btrace.c (btrace_clear): Free replay iterator.
6763 (btrace_is_replaying): New.
6764 * record-btrace.c (record_btrace_is_replaying): New.
6765 (record_btrace_info): Print insn number if replaying.
6766 (record_btrace_insn_history): Start at replay position.
6767 (record_btrace_call_history): Start at replay position.
6768 (init_record_btrace_ops): Init to_record_is_replaying.
6770 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6772 * record-btrace.c (record_btrace_insn_history_range): Include
6774 (record_btrace_insn_history_from): Adjust range.
6775 (record_btrace_call_history_range): Include
6777 (record_btrace_call_history_from): Adjust range.
6778 * NEWS: Announce changes.
6780 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6782 * record.h (enum record_print_flag)
6783 <record_print_indent_calls>: New.
6784 * record.c (get_call_history_modifiers): Recognize /c modifier.
6785 (_initialize_record): Document /c modifier.
6786 * record-btrace.c (btrace_call_history): Add btinfo parameter.
6787 Reorder fields. Optionally indent the function name. Update
6789 * NEWS: Announce changes.
6791 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6793 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
6795 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6797 * btrace.c (ftrace_new_function): Start counting at one.
6798 * record-btrace.c (record_btrace_info): Adjust number of calls
6800 * NEWS: Announce it.
6802 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6804 * record-btrace.c (btrace_call_history_insn_range): Print
6805 insn range as [begin, end].
6807 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6809 * btrace.h (struct btrace_func_link): New.
6810 (enum btrace_function_flag): New.
6811 (struct btrace_inst): Rename to ...
6812 (struct btrace_insn): ...this. Update all users.
6813 (struct btrace_func) <ibegin, iend>: Remove.
6814 (struct btrace_func_link): New.
6815 (struct btrace_func): Rename to ...
6816 (struct btrace_function): ...this. Update all users.
6817 (struct btrace_function) <segment, flow, up, insn, insn_offset)
6818 (number, level, flags>: New.
6819 (struct btrace_insn_iterator): Rename to ...
6820 (struct btrace_insn_history): ...this.
6822 (struct btrace_insn_iterator, btrace_call_iterator): New.
6823 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
6824 (struct btrace_target_info) <begin, end, level>
6825 <insn_history, call_history>: New.
6826 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
6827 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
6828 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
6829 (btrace_call_number, btrace_call_begin, btrace_call_end)
6830 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
6831 (btrace_find_function_by_number, btrace_set_insn_history)
6832 (btrace_set_call_history): New.
6833 * btrace.c (btrace_init_insn_iterator)
6834 (btrace_init_func_iterator, compute_itrace): Remove.
6835 (ftrace_print_function_name, ftrace_print_filename)
6836 (ftrace_skip_file): Change
6838 (ftrace_init_func): Remove.
6839 (ftrace_debug): Use new btrace_function fields.
6840 (ftrace_function_switched): Also consider gaining and
6841 losing symbol information).
6842 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
6843 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
6844 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
6846 (ftrace_new_function): Move. Remove debug print.
6847 (ftrace_update_lines, ftrace_update_insns): New.
6848 (ftrace_update_function): Check for call, ret, and jump.
6849 (compute_ftrace): Renamed to ...
6850 (btrace_compute_ftrace): ...this. Rewritten to compute call
6852 (btrace_fetch, btrace_clear): Updated.
6853 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
6854 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
6855 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
6856 (btrace_call_number, btrace_call_begin, btrace_call_end)
6857 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
6858 (btrace_find_function_by_number, btrace_set_insn_history)
6859 (btrace_set_call_history): New.
6860 * record-btrace.c (require_btrace): Use new btrace thread
6862 (record_btrace_info, btrace_insn_history)
6863 (record_btrace_insn_history, record_btrace_insn_history_range):
6864 Use new btrace thread info fields and new iterator.
6865 (btrace_func_history_src_line): Rename to ...
6866 (btrace_call_history_src_line): ...this. Use new btrace
6868 (btrace_func_history): Rename to ...
6869 (btrace_call_history): ...this. Use new btrace thread info
6870 fields and new iterator.
6871 (record_btrace_call_history, record_btrace_call_history_range):
6872 Use new btrace thread info fields and new iterator.
6874 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6876 * frame.h (frame_id_build_unavailable_stack_special): New.
6877 * frame.c (frame_id_build_unavailable_stack_special): New.
6879 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6881 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
6882 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
6883 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
6885 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
6886 (i386_insn_is_jump, i386_jmp_p): New.
6887 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
6888 insn_is_jump to gdbarch.
6889 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
6890 * gdbarch.h: Regenerated.
6891 * gdbarch.c: Regenerated.
6892 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
6893 (default_insn_is_jump): New.
6894 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
6895 (default_insn_is_jump): New.
6897 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6899 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
6901 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
6902 (btrace_read_type) <btrace_read_new>: Change to ...
6903 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
6905 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6907 * common/linux-btrace.c (linux_read_btrace): Free trace from
6910 2014-01-15 Doug Evans <dje@google.com>
6912 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
6915 2014-01-15 Tom Tromey <tromey@redhat.com>
6917 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
6918 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
6919 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
6920 (set_objfile_main_name): New function.
6921 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
6922 language_of_main>: New fields.
6923 (set_objfile_main_name): Declare.
6924 * symtab.c (find_main_name): Loop over objfiles to find the main
6926 (set_main_name): Now static.
6927 (get_main_info): Add comment.
6928 * symtab.h (set_main_name): Don't declare.
6930 2014-01-15 Tom Tromey <tromey@redhat.com>
6932 * symtab.c (main_progspace_key): New global.
6933 (struct main_info): New.
6934 (name_of_main, language_of_main): Remove.
6935 (get_main_info, main_info_cleanup): New function.
6936 (set_main_name, main_name, main_language): Use get_main_info.
6937 (_initialize_symtab): Initialize main_progspace_key.
6939 2014-01-15 Tom Tromey <tromey@redhat.com>
6941 * dbxread.c (process_one_symbol): Update.
6942 * dwarf2read.c (read_partial_die): Update.
6943 * symfile.c (set_initial_language): Call main_language.
6944 * symtab.c (language_of_main): Now static.
6945 (set_main_name): Add 'lang' parameter.
6946 (find_main_name): Update.
6947 (main_language): New function.
6948 (symtab_observer_executable_changed): Update.
6949 * symtab.h (set_main_name): Update.
6950 (language_of_main): Remove.
6951 (main_language): Declare.
6953 2014-01-15 Tom Tromey <tromey@redhat.com>
6955 * symfile.c (init_entry_point_info): Use new "initialized" field.
6957 * objfiles.h (struct entry_point) <initialized>: New field.
6958 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
6959 (struct objfile) <ei>: ...here. Remove.
6960 * objfiles.c (entry_point_address_query): Update.
6962 2014-01-15 Tom Tromey <tromey@redhat.com>
6964 * objfiles.c (entry_point_address_query): Relocate entry point
6966 (objfile_relocate1): Do not relocate entry point address.
6967 * objfiles.h (struct entry_info) <entry_point>: Update comment.
6968 <the_bfd_section_index>: New field.
6969 * symfile.c (init_entry_point_info): Find the entry point's
6972 2014-01-15 Tom Tromey <tromey@redhat.com>
6974 * solib-frv.c (enable_break): Use entry_point_address_query.
6976 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6978 * NEWS: Add note on improved process record-replay on
6979 arm*-linux* targets.
6981 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6983 * arm-tdep.c (enum arm_record_result): New enum.
6984 (arm_record_unsupported_insn): New function.
6985 (arm_record_coproc_data_proc): Removed.
6986 (thumb2_record_ld_st_multiple): New function.
6987 (thumb2_record_ld_st_dual_ex_tbb): New function.
6988 (thumb2_record_data_proc_sreg_mimm): New function.
6989 (thumb2_record_ps_dest_generic): New function.
6990 (thumb2_record_branch_misc_cntrl): New function.
6991 (thumb2_record_str_single_data): New function.
6992 (thumb2_record_ld_mem_hints): New function.
6993 (thumb2_record_ld_word): New function.
6994 (thumb2_record_lmul_lmla_div): New function.
6995 (thumb2_record_decode_insn_handler): New function.
6996 (decode_insn): Add thumb32 instruction handlers.
6998 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7000 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
7001 (struct arm_linux_record_tdep): Declare.
7002 (arm_canonicalize_syscall): New function.
7003 (arm_all_but_pc_registers_record): New function.
7004 (arm_linux_syscall_record): New function.
7005 (arm_linux_init_abi): Add syscall recording constructs.
7006 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
7007 decoding. (arm_record_coproc_data_proc): Update arm syscall
7009 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
7010 <arm_syscall_record>: New field.
7011 * configure.tgt (arm*-*-linux*): Add linux-record.o to
7014 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7016 * arm-tdep.c (thumb_record_misc): Update to use sp as base
7017 register for push instruction recording.
7019 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7021 * arm-tdep.c (thumb_record_misc): Update to correct logical
7022 error while recording ldm, ldmia and pop instructions.
7024 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7026 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
7028 2014-01-15 Pedro Alves <palves@redhat.com>
7030 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
7031 (go32_resume, go32_fetch_registers, store_register)
7032 (go32_store_registers, go32_prepare_to_store)
7033 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
7034 (go32_create_inferior, go32_can_run, go32_terminal_init)
7035 (go32_terminal_inferior, go32_terminal_ours): Delete forward
7038 2014-01-15 Tom Tromey <tromey@redhat.com>
7040 * target.h (async_callback_ftype): New typedef.
7041 (struct target_ops) <to_async>: Use it.
7043 2014-01-15 Joel Brobecker <brobecker@adacore.com>
7045 * python/py-value.c (get_field_type): Remove unnecessary curly
7046 braces for single-statement if block.
7048 2014-01-15 Joel Brobecker <brobecker@adacore.com>
7050 * python/py-type.c (convert_field): Add missing empty line
7053 2014-01-14 Doug Evans <dje@google.com>
7055 * symfile.h (expand_symtabs_matching): Renamed from
7056 expand_partial_symbol_names. Update prototype.
7057 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
7058 * symfile.c (expand_symtabs_matching): Renamed from
7059 expand_partial_symbol_names. New args file_matcher, kind.
7060 Rename arg fun to symbol_matcher.
7061 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
7062 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
7063 ada_expand_partial_symbol_name.
7064 (ada_make_symbol_completion_list): Update to call
7065 expand_symtabs_matching.
7066 (ada_add_global_exceptions): Call expand_symtabs_matching.
7067 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
7068 call map_symbol_filenames.
7069 * symtab.c (sources_info): Update to call map_symbol_filenames.
7070 (search_symbols): Call expand_symtabs_matching.
7071 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
7072 (default_make_symbol_completion_list_break_on): Update to call
7073 expand_symtabs_matching.
7074 (make_source_files_completion_list): Update to call
7075 map_symbol_filenames.
7077 2014-01-14 Doug Evans <dje@google.com>
7079 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
7080 (expand_symtabs_symbol_matcher_ftype): New typedef.
7081 (quick_symbol_functions.expand_symtabs_matching): Update to use.
7082 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7083 * symfile.c (expand_partial_symbol_names): Update to use
7084 expand_symtabs_symbol_matcher_ftype.
7085 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
7086 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7087 Arg name_matcher renamed to symbol_matcher.
7088 * psymtab.c (recursively_search_psymtabs): Update to use
7089 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
7091 (expand_symtabs_matching_via_partial): Update to use
7092 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7093 Arg name_matcher renamed to symbol_matcher.
7095 2014-01-14 Doug Evans <dje@google.com>
7097 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
7098 (map_partial_symbol_filenames): Ditto.
7099 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
7100 (map_partial_symbol_filenames): Ditto.
7101 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
7102 (map_partial_symbol_filenames): Ditto.
7103 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
7104 (map_partial_symbol_filenames): Ditto.
7105 * symtab.c: Delete #include "psymtab.h".
7107 2014-01-14 Pedro Alves <palves@redhat.com>
7108 Tom Tromey <tromey@redhat.com>
7110 * infrun.c (use_displaced_stepping): Use find_record_target
7111 instead of RECORD_IS_USED.
7112 (adjust_pc_after_break): Use record_full_is_used instead of
7114 * record-btrace.c (record_btrace_open): Call record_preopen
7115 instead of checking RECORD_IS_USED.
7116 * record-full.c (record_full_shortname)
7117 (record_full_core_shortname): New globals.
7118 (record_full_is_used): New function.
7119 (find_full_open): Call record_preopen instead of checking
7121 (init_record_full_ops): Set the target's shortname to
7122 record_full_shortname.
7123 (init_record_full_core_ops): Set the target's shortname to
7124 record_full_core_shortname.
7125 * record-full.h (record_full_is_used): Declare.
7126 * record.c (find_record_target): Make extern.
7127 (record_preopen): New function.
7128 * record.h (RECORD_IS_USED): Delete macro.
7129 (find_record_target, record_preopen): Declare functions.
7131 2014-01-14 Yao Qi <yao@codesourcery.com>
7133 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
7134 'len''s type to ULONGEST.
7135 (core_xfer_shared_libraries_aix): Likewise.
7136 * gdbarch.c, gdbarch.h: Regenerated.
7137 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
7138 Change type of 'len' to ULONGEST.
7139 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7140 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7142 2014-01-14 Yao Qi <yao@codesourcery.com>
7144 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
7145 type of 'len' to ULONGEST.
7146 (linux_xfer_osdata_processgroups): Likewise.
7147 (linux_xfer_osdata_threads): Likewise.
7148 (linux_xfer_osdata_fds): Likewise.
7149 (linux_xfer_osdata_isockets): Likewise.
7150 (linux_xfer_osdata_shm): Likewise.
7151 (linux_xfer_osdata_sem): Likewise.
7152 (linux_xfer_osdata_msg): Likewise.
7153 (linux_common_xfer_osdata): Likewise.
7154 (struct osdata_type) <getter>: Likewise.
7155 * common/linux-osdata.h (linux_common_xfer_osdata): Update
7158 2014-01-14 Yao Qi <yao@codesourcery.com>
7160 * target.h (target_xfer_partial_ftype): Update.
7161 (struct target_ops) <to_xfer_partial>: Change 'len' type to
7163 * aix-thread.c (aix_thread_xfer_partial): Change type of
7164 argument 'len' to ULONGEST.
7165 * auxv.c (procfs_xfer_auxv): Likewise.
7166 (ld_so_xfer_auxv): Likewise.
7167 (memory_xfer_auxv): Likewise.
7168 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7169 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7170 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7171 * corelow.c (core_xfer_partial): Likewise.
7172 * ctf.c (ctf_xfer_partial): Likewise.
7173 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
7175 (darwin_read_dyld_info): Likewise.
7176 (darwin_xfer_partial): Likewise.
7177 * exec.c (section_table_xfer_memory_partial): Likewise.
7178 (exec_xfer_partial): Likewise.
7179 * exec.h (section_table_xfer_memory_partial): Update
7181 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
7182 instead of plongest.
7183 (gnu_xfer_partial): Likewise.
7184 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
7185 (ia64_hpux_xfer_solib_got): Likewise.
7186 (ia64_hpux_xfer_partial): Likewise.
7187 * ia64-linux-nat.c (ia64_linux_xfer_partial):
7188 * inf-ptrace.c (inf_ptrace_xfer_partial):
7189 * inf-ttrace.c (inf_ttrace_xfer_partial):
7190 * linux-nat.c (linux_xfer_siginfo): Likewise.
7191 (linux_nat_xfer_partial): Likewise.
7192 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
7193 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
7194 * monitor.c (monitor_xfer_memory): Likewise.
7195 (monitor_xfer_partial): Likewise.
7196 * procfs.c (procfs_xfer_partial): Likewise.
7197 * record-full.c (record_full_xfer_partial): Likewise.
7198 (record_full_core_xfer_partial): Likewise.
7199 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
7200 instead of plongest.
7201 (gdbsim_xfer_partial): Likewise.
7202 * remote.c (remote_xfer_partial): Likewise.
7203 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7204 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7206 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7207 (rs6000_xfer_shared_libraries): Likewise.
7208 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7209 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7210 (sparc_xfer_partial): Likewise.
7211 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7212 (spu_xfer_partial): Likewise.
7213 * spu-multiarch.c (spu_xfer_partial): Likewise.
7214 * target.c (target_read_live_memory): Likewise.
7215 (memory_xfer_live_readonly_partial): Likewise.
7216 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
7217 (target_xfer_partial, default_xfer_partial): Likewise.
7218 (current_xfer_partial): Likewise.
7219 * tracepoint.c (tfile_xfer_partial): Likewise.
7220 * windows-nat.c (windows_xfer_memory): Likewise. Call
7221 pulongest instead of plongest.
7222 (windows_xfer_partial): Likewise.
7223 (windows_xfer_shared_libraries): Likewise.
7225 2014-01-14 Yao Qi <yao@codesourcery.com>
7227 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
7228 target_xfer_partial_ftype.
7230 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
7234 * valops.c (value_struct_elt_bitpos): New function
7235 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
7236 object to 'None' if the field name is an empty string ("").
7237 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
7238 attribute to look for a field when 'name' is 'None'.
7239 (get_field_type): New function
7241 2014-01-13 Doug Evans <dje@google.com>
7244 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
7245 (try_open_dwop_file): Ditto.
7246 * gdb_bfd.c: #include "vec.h".
7247 (bfdp): New typedef.
7248 (struct gdb_bfd_data): New member included_bfds.
7249 (gdb_bfd_unref): Unref all included bfds.
7250 (gdb_bfd_record_inclusion): New function.
7251 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
7253 2014-01-13 Tom Tromey <tromey@redhat.com>
7255 * gdbcore.h (deprecated_core_resize_section_table): Remove.
7257 2014-01-13 Tom Tromey <tromey@redhat.com>
7259 * defs.h (use_windows): Remove.
7260 * gdb.c (main): Update.
7261 * main.c (captured_main, gdb_main): Update.
7262 * main.h (struct captured_main_args) <use_windows>: Remove.
7263 * top.c (use_windows): Remove.
7265 2014-01-13 Tom Tromey <tromey@redhat.com>
7267 * defs.h (deprecated_flush_hook): Remove.
7269 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7272 * linux-thread-db.c (try_thread_db_load): Add parameter
7273 check_auto_load_safe. Move here the file_is_auto_load_safe call.
7274 (try_thread_db_load_from_pdir_1): Move it there from here.
7275 (try_thread_db_load_from_sdir): Update caller.
7276 (try_thread_db_load_from_dir): Move it there from here.
7278 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
7280 * regformats/regdat.sh: Always rewrite the register file.
7282 2014-01-13 Pedro Alves <palves@redhat.com>
7284 * Makefile.in (CHECK_HEADERS): New variable.
7285 (check-headers:): New rule.
7287 2014-01-13 Tom Tromey <tromey@redhat.com>
7289 * cli/cli-setshow.c (do_set_command): Update.
7290 * defs.h (deprecated_set_hook): Remove.
7291 * top.c (deprecated_set_hook): Remove.
7293 2014-01-13 Pedro Alves <palves@redhat.com>
7295 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
7296 the tracepoint if the PC is a pseudo-register.
7298 2014-01-13 Tom Tromey <tromey@redhat.com>
7300 * defs.h (XCALLOC): Remove.
7301 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
7302 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
7303 * dwarf2loc.c (allocate_piece_closure): Likewise.
7304 * elfread.c (elf_symfile_segments): Likewise.
7305 (elf_symfile_segments): Likewise.
7306 * gdbtypes.c (copy_type_recursive): Likewise.
7307 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
7308 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
7309 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
7311 * mt-tdep.c (mt_gdbarch_init): Likewise.
7312 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
7314 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
7315 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
7316 * registry.c (registry_alloc_data): Likewise.
7317 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
7318 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7319 * serial.c (serial_fdopen_ops): Likewise.
7320 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
7322 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
7323 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
7326 2014-01-13 Tom Tromey <tromey@redhat.com>
7328 * defs.h (XMALLOC): Remove.
7329 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
7330 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
7331 * cli-out.c (struct ui_out *): Likewise.
7332 * cli/cli-dump.c (add_dump_command): Likewise.
7333 (add_dump_command): Likewise.
7334 * complaints.c (get_complaints): Likewise.
7335 (find_complaint): Likewise.
7336 * dwarf2-frame.c (execute_cfa_program): Likewise.
7337 * dwarf2read.c (abbrev_table_read_table): Likewise.
7338 * gdbarch.sh: Likewise.
7339 * gdbarch.c: Rebuild.
7340 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
7341 * interps.c (interp_new): Likewise.
7342 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
7343 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7344 * mi/mi-console.c (mi_console_file_new): Likewise.
7345 * mi/mi-interp.c (mi_interpreter_init): Likewise.
7346 * mi/mi-out.c (mi_out_new): Likewise.
7347 * mi/mi-parse.c (mi_parse): Likewise.
7348 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
7349 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7350 * observer.c (xalloc_observer_list_node): Likewise.
7351 * regcache.c (regcache_xmalloc_1): Likewise.
7352 * reggroups.c (reggroup_new): Likewise.
7353 (_initialize_reggroup): Likewise.
7354 * registry.c (register_data_with_cleanup): Likewise.
7355 * remote.c (remote_notif_stop_alloc_reply): Likewise.
7356 * ser-base.c (serial_ttystate): Likewise.
7357 * ser-mingw.c (make_pipe_state): Likewise.
7358 * ser-pipe.c (pipe_open): Likewise.
7359 * serial.c (serial_open): Likewise.
7360 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
7361 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
7362 (tui_alloc_win_info): Likewise.
7363 (tui_add_content_elements): Likewise.
7364 * tui/tui-file.c (tui_file_new): Likewise.
7365 * tui/tui-out.c (tui_out_new): Likewise.
7366 * ui-file.c (mem_file_new): Likewise.
7367 * ui-out.c (push_level): Likewise.
7368 (make_cleanup_ui_out_end): Likewise.
7369 (append_header_to_list): Likewise.
7370 (ui_out_new): Likewise.
7371 * user-regs.c (user_reg_add_builtin): Likewise.
7373 2014-01-13 Tom Tromey <tromey@redhat.com>
7375 * defs.h (XZALLOC): Remove.
7376 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
7377 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
7378 (get_ada_tasks_inferior_data): Likewise.
7379 * auto-load.c (get_auto_load_pspace_data): Likewise.
7380 * auxv.c (get_auxv_inferior_data): Likewise.
7381 * bfd-target.c (target_bfd_reopen): Likewise.
7382 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
7383 (deprecated_insert_raw_breakpoint): Likewise.
7384 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
7385 * corelow.c (core_open): Likewise.
7386 * darwin-nat.c (darwin_check_new_threads): Likewise.
7387 (darwin_attach_pid): Likewise.
7388 * dummy-frame.c (dummy_frame_push): Likewise.
7389 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
7390 * dwarf2loc.c (allocate_piece_closure): Likewise.
7391 * elfread.c (elf_symfile_segments): Likewise.
7392 * eval.c (ptrmath_type_p): Likewise.
7393 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
7394 * gdbtypes.c (alloc_type_arch): Likewise.
7395 (alloc_type_instance): Likewise.
7396 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
7397 * inf-child.c (inf_child_can_use_agent): Likewise.
7398 * inflow.c (get_inflow_inferior_data): Likewise.
7399 * infrun.c (save_infcall_suspend_state): Likewise.
7400 * jit.c (jit_reader_load): Likewise.
7401 (get_jit_objfile_data): Likewise.
7402 (get_jit_program_space_data): Likewise.
7403 (jit_object_open_impl): Likewise.
7404 (jit_symtab_open_impl): Likewise.
7405 (jit_block_open_impl): Likewise.
7406 (jit_frame_sniffer): Likewise.
7407 * linux-fork.c (add_fork): Likewise.
7408 * maint.c (make_command_stats_cleanup): Likewise.
7409 * objfiles.c (get_objfile_pspace_data): Likewise.
7410 * opencl-lang.c (struct lval_closure): Likewise.
7411 * osdata.c (osdata_start_osdata): Likewise.
7412 * progspace.c (new_address_space): Likewise.
7413 (add_program_space): Likewise.
7414 * remote-sim.c (get_sim_inferior_data): Likewise.
7415 * sh-tdep.c (sh_gdbarch_init): Likewise.
7416 * skip.c (Ignore): Likewise.
7417 (skip_delete_command): Likewise.
7418 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
7419 (library_list_start_library): Likewise.
7420 (solib_aix_current_sos): Likewise.
7421 * solib-darwin.c (get_darwin_info): Likewise.
7422 (darwin_current_sos): Likewise.
7423 * solib-dsbt.c (get_dsbt_info): Likewise.
7424 * solib-ia64-hpux.c (new_so_list): Likewise.
7425 (ia64_hpux_get_solib_linkage_addr): Likewise.
7426 * solib-spu.c (append_ocl_sos): Likewise.
7427 (spu_current_sos): Likewise.
7428 * solib-svr4.c (get_svr4_info): Likewise.
7429 (svr4_keep_data_in_core): Likewise.
7430 (library_list_start_library): Likewise.
7431 (svr4_default_sos): Likewise.
7432 (svr4_read_so_list): Likewise.
7433 * solib-target.c (library_list_start_library): Likewise.
7434 (solib_target_current_sos): Likewise.
7435 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7436 * symfile-debug.c (install_symfile_debug_logging): Likewise.
7437 * symfile.c (default_symfile_segments): Likewise.
7438 * target-descriptions.c (tdesc_data_init): Likewise.
7439 (tdesc_create_reg): Likewise.
7440 (struct tdesc_type *): Likewise.
7441 (tdesc_create_vector): Likewise.
7442 (tdesc_set_struct_size): Likewise.
7443 (struct tdesc_type *): Likewise.
7444 (tdesc_free_feature): Likewise.
7445 (tdesc_create_feature): Likewise.
7446 * windows-nat.c (windows_add_thread): Likewise.
7447 (windows_make_so): Likewise.
7448 * xml-support.c (gdb_xml_body_text): Likewise.
7449 (gdb_xml_create_parser_and_cleanup): Likewise.
7450 (xml_process_xincludes): Likewise.
7451 * xml-syscall.c (allocate_syscalls_info): Likewise.
7452 (syscall_create_syscall_desc): Likewise.
7454 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
7456 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
7457 function, with code from i386_stap_parse_special_token.
7458 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7459 (i386_stap_parse_special_token): Move code to the two functions
7462 2014-01-09 Pedro Alves <palves@redhat.com>
7463 Hui Zhu <hui@codesourcery.com>
7466 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
7467 bp_err_string. Don't mark the location shlib_disabled if the
7468 error thrown wasn't a generic or memory error. Catch errors
7469 thrown while inserting breakpoints in overlayed code. Output
7470 error message of software breakpoints.
7471 * remote.c (remote_insert_breakpoint): If this breakpoint has
7472 target-side commands but this stub doesn't support Z0 packets,
7473 throw NOT_SUPPORTED_ERROR error.
7474 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
7475 * target.h (target_insert_breakpoint): Extend comment.
7476 (target_insert_hw_breakpoint): Add comment.
7478 2014-01-08 Pedro Alves <palves@redhat.com>
7480 * remote.c (remote_add_thread): Add threads silently if starting
7482 (remote_notice_new_inferior): If in all-stop, and starting up,
7483 don't call notice_new_inferior.
7484 (get_current_thread): New function, factored out from ...
7485 (add_current_inferior_and_thread): ... this. Adjust.
7486 (remote_start_remote) <all-stop>: Fetch the thread list. If we
7487 found any thread, then select the remote's current thread as GDB's
7490 2014-01-08 Joel Brobecker <brobecker@adacore.com>
7492 * NEWS: Create a new section for the next release branch.
7493 Rename the section of the current branch, now that it has
7496 2014-01-08 Joel Brobecker <brobecker@adacore.com>
7498 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
7499 * version.in: Bump version to 7.7.50.DATE-cvs.
7501 2014-01-08 Yao Qi <yao@codesourcery.com>
7503 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
7504 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
7505 (spu_xfer_partial): Cast 'buf' to 'const char *'.
7507 2014-01-08 Yao Qi <yao@codesourcery.com>
7509 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
7510 return value of bfd_get_filename to symbol_file_add_from_bfd.
7512 2014-01-08 Pierre Muller <muller@sourceware.org>
7515 * coff-pe-read.c (struct read_pe_section_data): Add index field.
7516 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
7517 to prim_record_mininal_symbol_and_info.
7518 (add_pe_forwarded_sym): Use known section number of forwarded symbol
7519 in call to prim_record_minimal_symbol_and_info.
7520 (read_pe_exported_syms): Set index field of section_data.
7522 2014-01-07 Andrew Pinski <apinski@cavium.com>
7524 * features/aarch64-core.xml (cpsr): Change to be 64bit.
7525 * features/aarch64.c: Regenerate.
7527 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
7529 * target.c (return_null): Define.
7530 (update_current_target): Use it instead of return_zero for
7531 functions that return a pointer.
7533 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
7535 * source.c (add_path): Fix check for duplicated paths in the previously
7538 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
7540 * ada-lang.c: Remove duplicated include statements.
7541 * alphabsd-nat.c: Ditto.
7542 * amd64-darwin-tdep.c: Ditto.
7543 * amd64fbsd-nat.c: Ditto.
7544 * auto-load.c: Ditto.
7546 * breakpoint.c: Ditto.
7548 * fork-child.c: Ditto.
7549 * gdb_usleep.c: Ditto.
7550 * i386-darwin-tdep.c: Ditto.
7551 * i386fbsd-nat.c: Ditto.
7553 * inferior.c: Ditto.
7555 * linux-nat.c: Ditto.
7556 * linux-tdep.c: Ditto.
7557 * m68kbsd-nat.c: Ditto.
7558 * m68klinux-nat.c: Ditto.
7559 * microblaze-tdep.c: Ditto.
7560 * mips-linux-tdep.c: Ditto.
7561 * mn10300-tdep.c: Ditto.
7562 * nto-tdep.c: Ditto.
7563 * opencl-lang.c: Ditto.
7565 * printcmd.c: Ditto.
7566 * regcache.c: Ditto.
7567 * remote-m32r-sdi.c: Ditto.
7571 * tilegx-linux-nat.c: Ditto.
7572 * tilegx-tdep.c: Ditto.
7573 * tracepoint.c: Ditto.
7575 * vaxbsd-nat.c: Ditto.
7576 * windows-nat.c: Ditto.
7577 * xtensa-tdep.c: Ditto.
7579 2014-01-07 Yao Qi <yao@codesourcery.com>
7581 * spu-linux-nat.c (_initialize_spu_nat): Declare.
7583 2014-01-07 Yao Qi <yao@codesourcery.com>
7584 Joel Brobecker <brobecker@adacore.com>
7586 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
7587 (pdc_write_regs): Likewise.
7588 (fetch_regs_kernel_thread): Likewise.
7589 (store_regs_kernel_thread): Likewise.
7591 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7593 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
7594 tagged type objects to their actual type.
7596 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7598 * ada-valprint.c (print_field_values): Add "language" parameter.
7599 Update calls to print_field_values and print_variant_part.
7600 Pass new parameter "language" in call to val_print instead
7601 of "current_language". Replace call to ada_val_print by call
7603 (print_variant_part): Add "language" parameter.
7604 (ada_val_print_struct_union): Update call to print_field_values.
7606 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7608 * ada-valprint.c (ui_memcpy): Delete.
7609 (ada_print_floating): Update documentation. Add empty line
7610 between between function documentation and implementation.
7611 Delete variable "buffer". Use ui_file_xstrdup in place of
7612 ui_file_put. Minor adjustments following this change.
7614 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7616 * ada-valprint.c (ada_val_print_string): New function,
7617 extracted from ada_val_print_array.
7618 (ada_val_print_array): Replace extracted code by call
7619 to ada_val_print_string followed by a return. Move
7620 "else" branch to the function's top block.
7622 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7624 * ada-valprint.c (ada_val_print_array): Move implementation
7625 down. Rename parameter "offset" and "val" into "offset_aligned"
7626 and "original_value" respectively. Add parameter "offset".
7628 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7630 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
7631 re-organizing the code. Change the "???" message printed
7632 when target type is a TYPE_CODE_UNDEF into
7633 "<ref to undefined type>".
7635 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7637 * ada-valprint.c (print_record): Delete, implementation inlined...
7638 (ada_val_print_struct_union): ... here. Remove call to
7639 ada_check_typedef in inlined implementation.
7641 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7643 * ada-valprint.c (ada_val_print_gnat_array): New function,
7644 extracted from ada_val_print_1;
7645 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
7646 (ada_val_print_flt, ada_val_print_struct_union)
7647 (ada_val_print_ref): Likewise.
7648 (ada_val_print_1): Delete variables i and elttype.
7649 Replace extracted-out code by call to corresponding
7652 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7654 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
7656 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7658 * ada-valprint.c (ada_val_print_1): Replace calls to
7659 ada_val_print_1 by calls to val_print.
7661 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7663 * ada-valprint.c (ada_val_print_1): Add parameter "language".
7664 Update calls to self accordingly. Replace calls to c_val_print
7665 by calls to val_print.
7667 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7669 * ada-valprint.c (print_record): Delete declaration.
7670 (adjust_type_signedness, ada_val_print_1): Likewise.
7671 (ada_val_print): Move function implementation down.
7672 (print_variant_part, print_field_values, print_record):
7673 Move function implementation up.
7675 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7677 * python/py-type.c (typy_get_name): New function.
7678 (type_object_getset): Add entry for attribute "name".
7679 * NEWS: Add entry mentioning this new attribute.
7681 2014-01-07 Yao Qi <yao@codesourcery.com>
7683 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
7686 2014-01-07 Yao Qi <yao@codesourcery.com>
7688 * gnu-nat.c (info_port_rights): Add qualifier const to
7691 2014-01-07 Yao Qi <yao@codesourcery.com>
7693 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
7695 2014-01-07 Yao Qi <yao@codesourcery.com>
7697 * gnu-nat.c (make_inf) Update declaration.
7698 (make_inf): Make it static.
7699 (inf_set_traced): Likewise.
7700 (inf_port_to_thread, inf_task_died_status): Likewise.
7702 2014-01-07 Yao Qi <yao@codesourcery.com>
7704 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
7706 2014-01-07 Yao Qi <yao@codesourcery.com>
7708 * gnu-nat.c (_initialize_gnu_nat): Declare.
7710 2014-01-07 Yao Qi <yao@codesourcery.com>
7712 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
7714 (struct gdbarch_info) <byte_order>: Change type to
7716 <byte_order_for_code>: Likewise.
7717 * gdbarch.c, gdbarch.h: Regenerated.
7719 2014-01-06 Sasha Smundak <asmundak@google.com>
7721 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
7723 2014-01-06 Tom Tromey <tromey@redhat.com>
7725 * doublest.c (convert_doublest_to_floatformat): Use const, not
7727 * somread.c (som_symtab_read): Likewise.
7729 2014-01-07 Hui Zhu <hui@codesourcery.com>
7731 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
7732 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
7733 (gdb_bfd_fopen): Ditto.
7734 (gdb_bfd_openr): Ditto.
7735 (gdb_bfd_openw): Ditto.
7736 (gdb_bfd_openr_iovec): Ditto.
7737 (gdb_bfd_fdopenr): Ditto.
7738 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
7739 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
7741 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
7743 * symfile-mem.c (symbol_file_add_from_memory): Removed
7744 gdb_bfd_stash_filename.
7746 2014-01-03 Doug Evans <dje@google.com>
7748 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
7751 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7753 Update year range in copyright notice of all files.
7755 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7757 * top.c (print_gdb_version): Set copyright year to 2014.
7759 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7761 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
7763 For older changes see ChangeLog-2013.
7769 version-control: never