1 2014-05-17 Doug Evans <xdje42@gmail.com>
3 * inferior.c (prune_inferiors): Fix comment.
4 (remove_inferior_command): Call prune_program_spaces.
6 2014-05-16 Doug Evans <dje@google.com>
8 New command line option -D.
10 * main.c (set_gdb_data_directory): New function.
11 (captured_main): Recognize -D. Flag error for --data-directory "".
12 Call set_gdb_data_directory.
13 (print_gdb_help): Print --data-directory, -D.
14 * main.h (set_gdb_data_directory): Declare.
15 * top.c (staged_gdb_datadir): New static global.
16 (set_gdb_datadir): Call set_gdb_data_directory
17 (show_gdb_datadir): New function.
18 (init_main): Update init of data-directory parameter.
20 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
22 Import the "dirfd" gnulib module.
23 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
24 * gnulib/aclocal.m4: Update.
25 * gnulib/config.in: Update.
26 * gnulib/configure: Update.
27 * gnulib/import/Makefile.am: Update.
28 * gnulib/import/Makefile.in: Update.
29 * gnulib/import/dirfd.c: New.
30 * gnulib/import/m4/dirfd.m4: New.
31 * gnulib/import/m4/gnulib-cache.m4: Update.
32 * gnulib/import/m4/gnulib-comp.m4: Update.
34 2014-05-16 Pierre Muller <muller@sourceware.org>
35 Yao Qi <yao@codesourcery.com>
37 * valprint.c (print_wchar): Move the code on checking whether
38 W is a printable wide char to the default branch of switch
39 statement below. Call wchar_printable instead of gdb_iswprint.
41 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
43 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
44 ldr.w and ldrd instructions.
46 2014-05-15 Doug Evans <dje@google.com>
48 * dwarf2read.c (read_structure_type): Delete outdated comments.
50 2014-05-14 Tom Tromey <tromey@redhat.com>
52 * macrocmd.c (print_macro_definition): Reindent.
54 2014-05-13 Doug Evans <xdje42@gmail.com>
56 * python/py-cmd.c (cmdpy_completer): Add comment.
57 (completers): Make const.
59 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
61 * infrun.c (resume): Remove should_resume (unused). Move up
62 declaration of resume_ptid.
64 2014-05-13 Tom Tromey <tromey@redhat.com>
66 * language.h (unop_type_check): Remove.
67 (binop_type_check): Don't declare.
69 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
71 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
72 call to regcache_raw_collect.
74 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
76 * mi/mi-console.c (mi_console_raw_packet): Use the value from
77 mi_console->quote as the quoting character.
79 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
81 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
83 2014-04-29 Tom Tromey <tromey@redhat.com>
85 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
88 2014-05-07 Kyle McMartin <kyle@redhat.com>
90 Pushed by Joel Brobecker <brobecker@adacore.com>.
91 * aarch64-tdep.c (aarch64_software_single_step): New function.
92 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
93 with aarch64_software_single_step.
95 2014-05-05 Joel Brobecker <brobecker@adacore.com>
99 2014-05-05 Keith Seitz <keiths@redhat.com>
101 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
102 variable or history value is successfully parsed.
104 2014-05-05 Yao Qi <yao@codesourcery.com>
105 Pedro Alves <palves@redhat.com>
107 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
108 address of blocks that intersects the requested range. Trim
109 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
111 * ctf.c (ctf_xfer_partial): Likewise.
113 2014-05-05 Yao Qi <yao@codesourcery.com>
115 * printcmd.c (display_command): Remove the check to
116 target_has_execution.
118 2014-05-03 Mark Kettenis <kettenis@gnu.org>
120 * ppcobsd-nat.c: Include "obsd-nat.h".
121 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
123 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
125 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
127 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
128 and 16-bit signed and unsigned arguments. Update comment.
129 (stap_parse_probe_arguments): Extend code to handle such
130 arguments. Use warning instead of complaint to notify about
131 unrecognized bitness.
133 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
136 * stap-probe.c (stap_parse_probe_arguments): Simplify
137 check for non-prefixed probes (i.e., probes whose
138 arguments do not start with "N@"). Always set the
139 argument type to a sane value.
141 2014-05-01 David Taylor <dtaylor@emc.com>
143 * remote.c (compare_sections_command): Add -r option to compare
144 all loadable read-only sections.
146 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
148 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
149 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
151 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
152 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
153 Remove unused CORE_ADDR argument. Update all callers.
155 2014-04-29 Pedro Alves <palves@redhat.com>
157 * remote.c (struct packet_config) <detect>: Extend comment.
158 (add_packet_config_cmd): Don't set the config's detect or support
160 (init_all_packet_configs): Also initialize the config's 'detect'
162 (reset_all_packet_configs_support): New function.
163 (remote_open_1): Call reset_all_packet_configs_support instead of
164 init_all_packet_configs.
165 (_initialize_remote): Initialize all packet configs. Assert that
166 all packets have an associated command, except a few known
169 2014-04-28 Joel Brobecker <brobecker@adacore.com>
171 * dwarf2read.c (read_subrange_type): Handle dynamic
172 DW_AT_lower_bound attributes.
174 2014-04-28 Joel Brobecker <brobecker@adacore.com>
176 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
177 dynamic bounds before computing its upper bound.
178 (ada_discrete_type_low_bound): Same as above with the lower bound.
180 2014-04-28 Joel Brobecker <brobecker@adacore.com>
182 * dwarf2read.c (is_dynamic_type): Return true for dynamic
183 range types. Adjust the array handling implementation to
184 take advantage of this change.
185 (resolve_dynamic_range): New function, mostly extracted from
186 resolve_dynamic_bounds.
187 (resolve_dynamic_array): New function, mostly extracted from
188 resolve_dynamic_bounds.
189 (resolve_dynamic_bounds): Delete.
190 (resolve_dynamic_type): Reimplement. Add handling of
191 TYPE_CODE_RANGE types.
193 2014-04-28 Joel Brobecker <brobecker@adacore.com>
195 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
196 handling of parallel ___XA types.
198 2014-04-28 Joel Brobecker <brobecker@adacore.com>
200 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
201 unnecessary second call to static_unwrap_type.
203 2014-04-27 Hui Zhu <hui@codesourcery.com>
205 * stack.c (print_frame_info): Call do_gdb_disassembly with
206 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
208 2014-04-26 Doug Evans <xdje42@gmail.com>
210 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
212 2014-04-25 Pedro Alves <palves@redhat.com>
215 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
216 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
217 and newline from built string.
218 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
219 (linux_ptrace_attach_fail_reason): ... this.
220 * linux-nat.c (linux_nat_attach): Adjust to use
221 linux_ptrace_attach_fail_reason.
223 2014-04-25 Pedro Alves <palves@redhat.com>
225 * remote.c (struct remote_state): Remove multi_process_aware,
226 non_stop_aware, cond_tracepoints, cond_breakpoints,
227 breakpoint_commands, fast_tracepoints, static_tracepoints,
228 install_in_trace, disconnected_tracing,
229 enable_disable_tracepoints, string_tracing, and
230 augmented_libraries_svr4_read fields.
231 (remote_multi_process_p): Move further below in the file.
232 (struct packet_config): Add comments.
233 (update_packet_config): Delete function.
234 (show_packet_config_cmd): Use packet_config_support.
235 (add_packet_config_cmd): Use NULL as set callback.
236 (packet_ok): "set remote foo-packet"-style commands no longer
237 change config->supported -- adjust.
238 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
239 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
240 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
241 (PACKET_QNonStop, PACKET_multiprocess_feature)
242 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
243 (PACKET_DisconnectedTracing_feature)
244 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
245 (set_remote_protocol_packet_cmd): Delete function.
246 (packet_config_support, packet_support): New functions.
247 (set_remote_protocol_Z_packet_cmd): Don't call
248 update_packet_config.
249 (remote_query_attached, remote_pass_signals)
250 (remote_program_signals, remote_threads_info)
251 (remote_threads_extra_info, remote_start_remote): Use
253 (remote_start_remote): Use packet_config_support and
255 (init_all_packet_configs): Set all packets to unknown support,
256 instead of calling update_packet_config.
257 (remote_check_symbols): Use packet_support.
258 (remote_supported_packet): Unconditionally set the packet config's
260 (remote_multi_process_feature, remote_non_stop_feature)
261 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
262 (remote_breakpoint_commands_feature)
263 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
264 (remote_install_in_trace_feature)
265 (remote_disconnected_tracing_feature)
266 (remote_enable_disable_tracepoint_feature)
267 (remote_string_tracing_feature)
268 (remote_augmented_libraries_svr4_read_feature): Delete functions.
269 (remote_protocol_features): Adjust to use remote_supported_packet
270 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
271 "ConditionalTracepoints", "ConditionalBreakpoints",
272 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
273 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
274 "EnableDisableTracepoints", and "tracenz".
275 (remote_query_supported): Use packet_support.
276 (remote_open_1): Adjust.
277 (extended_remote_attach_1): Use packet_support. Switch on the
278 result of packet_ok instead of checking whether the packet ended
280 (remote_vcont_resume): Use packet_support.
281 (remote_resume, remote_stop_ns, fetch_register_using_p)
282 (remote_prepare_to_store, store_register_using_P)
283 (check_binary_download, remote_write_bytes): Use packet_support.
284 (remote_vkill): Use packet_support. Switch on the result of
285 packet_ok instead of checking whether the packet ended up
287 (extended_remote_supports_disable_randomization): Use
289 (extended_remote_run): Switch on the result of packet_ok instead
290 of checking whether the packet ended up disabled.
291 (remote_insert_breakpoint, remote_remove_breakpoint)
292 (remote_insert_watchpoint, remote_remove_watchpoint)
293 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
295 (remote_search_memory): Use packet_config_support.
296 (remote_get_thread_local_address, remote_get_tib_address)
297 (remote_hostio_send_command, remote_can_execute_reverse): Use
299 (remote_supports_cond_tracepoints)
300 (remote_supports_cond_breakpoints)
301 (remote_supports_fast_tracepoints)
302 (remote_supports_static_tracepoints)
303 (remote_supports_install_in_trace)
304 (remote_supports_enable_disable_tracepoint)
305 (remote_supports_string_tracing)
306 (remote_can_run_breakpoint_commands): Rewrite, checking whether
307 the packet config says the feature is enabled or disabled.
308 (remote_download_tracepoint, remote_trace_set_readonly_regions)
309 (remote_get_trace_status): Use packet_support.
310 (remote_set_disconnected_tracing): Adjust to check whether the
311 feature is enabled with packet_support.
312 (remote_set_trace_buffer_size, remote_use_agent)
313 (remote_can_use_agent, remote_supports_btrace): Use
315 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
316 Use packet_config_support.
317 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
318 the packet config says the feature is enabled or disabled.
319 (set_range_stepping): Use packet_support.
321 2014-04-25 Tom Tromey <tromey@redhat.com>
323 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
326 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
328 * NEWS: Mention support for C99 variable length arrays.
330 2014-04-24 Joel Brobecker <brobecker@adacore.com>
332 * ada-lang.c (standard_exc): Expand introductory comment.
334 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
335 Walfred Tedeschi <walfred.tedeschi@intel.com>
337 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
339 (amd64_linux_read_description): Add code to handle AVX512 xstate
340 mask and return respective tdesc.
341 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
342 and features/i386/x32-avx512-linux.c.
343 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
344 (amd64_linux_core_read_description): Add code to handle AVX512
345 xstate mask and return respective tdesc.
346 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
347 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
349 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
350 (tdesc_amd64_avx512_linux): New prototype.
351 (tdesc_x32_avx512_linux): Likewise.
352 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
353 features/i386/x32-avx512.c.
354 (amd64_ymm_avx512_names): New register names for pseudo
356 (amd64_ymmh_avx512_names): New register names for raw registers
358 (amd64_k_names): New register names for K registers.
359 (amd64_zmmh_names): New register names for ZMM raw registers.
360 (amd64_zmm_names): New registers names for ZMM pseudo registers.
361 (amd64_xmm_avx512_names): New register names for XMM16-31
363 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
365 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
366 if feature is present.
367 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
368 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
369 (AMD64_NUM_REGS): Adjust to new number of registers.
370 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
371 registers supplied via XSTATE by AVX512 registers.
372 (i386_linux_read_description): Add case for AVX512.
373 * i386-linux-tdep.c: Include i386-avx512-linux.c.
374 (i386_linux_gregset_reg_offset): Add AVX512 registers.
375 (i386_linux_core_read_description): Add case for AVX512.
376 (i386_linux_init_abi): Install supported register note section
378 (_initialize_i386_linux_tdep): Add call to tdesc init function for
380 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
381 registers to be number of zmm7h + 1.
382 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
383 * i386-tdep.c: Include features/i386/i386-avx512.c.
384 (i386_zmm_names): Add ZMM pseudo register names array.
385 (i386_zmmh_names): Add ZMM raw register names array.
386 (i386_k_names): Add K raw register names array.
387 (num_lower_zmm_regs): Add constant for the number of lower ZMM
388 registers. AVX512 has 16 more ZMM registers than there are YMM
390 (i386_zmmh_regnum_p): Add function to look up register number of
392 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
393 (i386_k_regnum_p): Likewise for K raw registers.
394 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
395 registers added by AVX512.
396 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
397 registers added by AVX512.
398 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
400 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
401 (i386_pseudo_register_name): Add ZMM pseudo registers.
402 (i386_zmm_type): Construct and return vector registers type for ZMM
404 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
405 ZMM0-31 pseudo registers and K registers.
406 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
407 and YMM16-31 registers from register cache.
408 (i386_pseudo_register_write): Add code to write K, ZMM and
410 (i386_register_reggroup_p): Add code to include/exclude AVX512
411 registers in/from respective register groups.
412 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
413 registers if feature is present in xcr0.
414 (i386_gdbarch_init): Add code to initialize AVX512 feature
415 variables in tdep structure, wire in pseudo registers and call
416 initialize_tdesc_i386_avx512.
417 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
419 (i386_regnum): Add AVX512 registers.
420 (I386_SSE_NUM_REGS): New define for number of SSE registers.
421 (I386_AVX_NUM_REGS): Likewise for AVX registers.
422 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
423 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
425 (i386_xmm_avx512_regnum_p): New prototype for register look up.
426 (i386_ymm_avx512_regnum_p): Likewise.
427 (i386_k_regnum_p): Likewise.
428 (i386_zmm_regnum_p): Likewise.
429 (i386_zmmh_regnum_p): Likewise.
430 * i387-tdep.c : Update year in copyright notice.
431 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
433 (XSAVE_YMM_AVX512_ADDR): New macro.
434 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
436 (XSAVE_XMM_AVX512_ADDR): New macro.
437 (xsave_avx512_k_offset): New table for K register offsets in
439 (XSAVE_AVX512_K_ADDR): New macro.
440 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
442 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
443 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
445 (i387_collect_xsave): Add code to collect AVX512 registers from
447 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
448 of XMM16-31 registers.
449 (I387_NUM_K_REGS): New define for number of K registers.
450 (I387_K0_REGNUM): New define for K0 register number.
451 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
452 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
453 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
455 (I387_YMM16H_REGNUM): New define for YMM16H register number.
456 (I387_XMM16_REGNUM): New define for XMM16 register number.
457 (I387_YMM0_REGNUM): New define for YMM0 register number.
458 (I387_KEND_REGNUM): New define for last K register number.
459 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
460 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
462 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
464 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
466 * features/Makefile: Add AVX512 related files.
467 * features/i386/32bit-avx512.xml: New file.
468 * features/i386/64bit-avx512.xml: Likewise.
469 * features/i386/amd64-avx512-linux.c: Likewise.
470 * features/i386/amd64-avx512-linux.xml: Likewise.
471 * features/i386/amd64-avx512.c: Likewise.
472 * features/i386/amd64-avx512.xml: Likewise.
473 * features/i386/i386-avx512-linux.c: Likewise.
474 * features/i386/i386-avx512-linux.xml: Likewise.
475 * features/i386/i386-avx512.c: Likewise.
476 * features/i386/i386-avx512.xml: Likewise.
477 * features/i386/x32-avx512-linux.c: Likewise.
478 * features/i386/x32-avx512-linux.xml: Likewise.
479 * features/i386/x32-avx512.c: Likewise.
480 * features/i386/x32-avx512.xml: Likewise.
481 * regformats/i386/amd64-avx512-linux.dat: New file.
482 * regformats/i386/amd64-avx512.dat: Likewise.
483 * regformats/i386/i386-avx512-linux.dat: Likewise.
484 * regformats/i386/i386-avx512.dat: Likewise.
485 * regformats/i386/x32-avx512-linux.dat: Likewise.
486 * regformats/i386/x32-avx512.dat: Likewise.
487 * NEWS: Add note about new support for AVX512.
490 2014-04-23 Pedro Alves <palves@redhat.com>
492 * breakpoint.c (insert_bp_location): Tolerate errors if the
493 breakpoint is set in a user-loaded objfile.
494 (remove_breakpoint_1): Likewise. Also tolerate errors if the
495 location is marked shlib_disabled. If the breakpoint is set in a
496 user-loaded objfile is a GDB-side memory breakpoint, validate it
497 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
498 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
500 * mem-break.c (memory_validate_breakpoint): New function.
501 * objfiles.c (userloaded_objfile_contains_address_p): New
503 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
504 * target.h (memory_validate_breakpoint): New declaration.
506 2014-04-23 Pedro Alves <palves@redhat.com>
508 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
509 the breakpoint is set in a shared library, only suppress
510 errors for software breakpoints, not hardware breakpoints.
512 2014-04-22 Pedro Alves <palves@redhat.com>
514 * infrun.c (schedlock_applies): New function, factored out from
515 find_thread_needs_step_over.
516 (find_thread_needs_step_over): Use it.
517 (switch_back_to_stepped_thread): Always clear trap_expected if the
518 step over is finished. Return early if scheduler locking applies.
519 Look for the stepping thread and a potential step-over thread with
521 (currently_stepping_or_nexting_callback): Delete.
523 2014-04-22 Nick Clifton <nickc@redhat.com>
525 * NEWS: Mention that ARM sim now supports tracing.
527 2014-04-22 Yao Qi <yao@codesourcery.com>
529 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
531 * tracefile.c (tracefile_fetch_registers): ... it. New
533 * tracefile.h (tracefile_fetch_registers): Declare.
534 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
535 tracefile_fetch_registers.
537 2014-04-19 Eli Zaretskii <eliz@gnu.org>
540 * windows-nat.c (thread_rec): Don't display a warning when
541 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
542 fails for any reason, set th->suspended to -1, so that we don't
543 try to resume such a thread. Also, don't return NULL in these
544 cases, to avoid completely ruin the session due to "PC register is
545 not available" error.
546 (do_windows_fetch_inferior_registers): Check errors in
547 GetThreadContext call.
548 (windows_continue): Accept an additional argument KILLED; if not
549 zero, ignore errors in the SetThreadContext call, since the
550 inferior was killed and is shutting down.
551 (windows_resume, get_windows_debug_event)
552 (windows_create_inferior, windows_mourn_inferior)
553 (windows_kill_inferior): All callers of windows_continue changed
554 to adjust to its new calling sequence.
556 2014-04-19 Yao Qi <yao@codesourcery.com>
558 * ctf.c (ctf_open): Call post_create_inferior.
560 2014-04-19 Yao Qi <yao@codesourcery.com>
562 * ctf.c (handle_id): New static variable.
563 (ctf_open_dir): Get handle_id from bt_context_add_trace return
564 value. Get the declaration of event "register" and get length
567 2014-04-19 Yao Qi <yao@codesourcery.com>
569 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
571 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
573 * valops.c (oload_method_static): Remove unnecessary argument
574 METHOD. Update all callers.
576 2014-04-18 Pedro alves <palves@redhat.com>
577 Tom Tromey <tromey@redhat.com>
580 * frame.c (get_prev_frame_1): Rename to ...
581 (get_prev_frame_always): ... this, and make extern. Adjust.
582 (skip_artificial_frames): Use get_prev_frame_always.
583 (frame_unwind_caller_id, frame_pop, get_prev_frame)
584 (get_frame_unwind_stop_reason): Adjust to rename.
585 * frame.h (get_prev_frame_always): Declare.
586 * inline-frame.c: Include frame.h.
587 (inline_frame_this_id): Use get_prev_frame_always.
589 2014-04-18 Tristan Gingold <gingold@adacore.com>
591 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
592 code by using bfd_mach_o_get_base_address.
594 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
596 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
597 (spu_ax_pseudo_register_collect): New function.
598 (spu_ax_pseudo_register_push_stack): Likewise.
599 (spu_dwarf_reg_to_regnum): Likewise.
600 (spu_gdbarch_init): Install them. Append DWARF unwinders.
602 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
604 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
605 Replace FRAME argument with FRAME_ID.
606 * gdbarch.c, gdbarch.h: Regenerate.
607 * findvar.c (default_value_from_register): Add GDBARCH argument;
608 replace FRAME by FRAME_ID. No longer call get_frame_id.
609 (value_from_register): Update call to gdbarch_value_from_register.
610 * value.h (default_value_from_register): Update prototype.
611 * s390-linux-tdep.c (s390_value_from_register): Update interface
612 and call to default_value_from_register.
613 * spu-tdep.c (spu_value_from_register): Likewise.
615 * findvar.c (address_from_register): Remove TYPE argument.
616 Do not call value_from_register; use gdbarch_value_from_register
617 with null_frame_id instead.
618 * value.h (address_from_register): Update prototype.
619 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
620 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
621 address_from_register interface change.
623 2014-04-17 Yao Qi <yao@codesourcery.com>
625 * gdbtypes.h: Update comments to link to types and macros'
628 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
630 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
632 2014-04-16 Keith Seitz <keiths@redhat.com>
635 * dwarf2read.c (skip_one_die): Check that all relative-offset
636 sibling DIEs fall within range of the current reader's buffer.
637 (read_partial_die): Likewise.
639 2014-04-16 Keith Seitz <keiths@redhat.com>
642 * cp-namespace.c (lookup_symbol_file): If the type name of
643 `this' is NULL, return immediately.
645 2014-04-14 Keith Seitz <keiths@redhat.com>
648 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
649 from symbol_matches_domain in symtab.c. All local callers
650 of symbol_matches_domain updated.
651 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
652 search STRUCT_DOMAIN.
653 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
654 independently. standard_lookup will do that automatically.
655 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
656 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
657 (cp_lookup_symbol_in_namespace): Likewise.
658 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
659 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
660 may return a STRUCT_DOMAIN match.
661 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
662 * cp-support.c: Include language.h.
663 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
665 * psymtab.c (match_partial_symbol): Compare the requested
666 domain with the symbol's domain directly.
667 (lookup_partial_symbol): Likewise.
668 * symtab.c (lookup_symbol_in_language): Explain when/why
669 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
670 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
671 appropriate languages.
672 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
673 and moved to ada-lang.c
674 (lookup_block_symbol): Explain that this function only returns
675 symbol matching the requested DOMAIN.
676 Compare the requested domain with the symbol's domain directly.
677 (iterate_over_symbols): Compare the requested domain with the
678 symbol's domain directly.
679 * symtab.h (symbol_matches_domain): Remove.
681 2014-04-14 Tom Tromey <tromey@redhat.com>
684 * c-exp.y (type_aggregate_p): New function.
685 (qualified_name, classify_inner_name): Use it.
686 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
687 and TYPE_TARGET_TYPE of an enum type.
688 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
690 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
691 handle TYPE_DECLARED_CLASS.
692 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
694 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
695 * valops.c (enum_constant_from_type): New function.
696 (value_aggregate_elt): Use it.
697 * cp-namespace.c (cp_lookup_nested_symbol): Handle
700 2014-04-14 Tom Tromey <tromey@redhat.com>
702 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
703 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
705 * value.h (value_aggregate_elt): Update.
707 2014-04-14 Tom Tromey <tromey@redhat.com>
709 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
711 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
713 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
714 (evaluate_subexp_standard): Pass noside argument.
715 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
716 if noside equals EVAL_NORMAL. If the subscript yields a vla type
717 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
718 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
719 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
721 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
723 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
724 points to a constant blob.
726 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
728 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
729 property and store it as the high bound and flag the range accordingly.
730 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
731 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
732 * gdbtypes.h (enum range_flags): New enum.
733 (struct range_bounds): Add flags member.
735 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
737 * c-typeprint.c (c_type_print_varspec_suffix): Added
738 check for not yet resolved high bound. If unresolved, print
739 "variable length" string to the console instead of random
742 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
744 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
746 (ada_template_to_fixed_record_type_1): Likewise.
747 (ada_to_fixed_type_1): Likewise.
748 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
749 (cp_print_value): Likewise.
750 * d-valprint.c (dynamic_array_type): Likewise.
751 * findvar.c (address_of_variable): Likewise.
752 * jv-valprint.c (java_value_print): Likewise.
753 * valops.c (value_ind): Likewise.
754 * value.c (coerce_ref): Likewise.
756 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
758 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
759 value and retrieve the dynamic type size.
761 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
763 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
764 passed to sizeof is dynamic evaluate the argument to compute the length.
766 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
767 Joel Brobecker <brobecker@adacore.com>
769 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
770 (dwarf2_evaluate_property): New function.
771 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
772 * dwarf2read.c (attr_to_dynamic_prop): New function.
773 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
775 * gdbtypes.c: Include dwarf2loc.h.
776 (is_dynamic_type): New function.
777 (resolve_dynamic_type): New function.
778 (resolve_dynamic_bounds): New function.
779 (get_type_length): New function.
780 (check_typedef): Use get_type_length to compute type length.
781 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
782 (TYPE_LOW_BOUND_KIND): New macro.
783 (is_dynamic_type): New function prototype.
784 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
785 to resolve dynamic properties of the type. Update comment.
786 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
788 2014-04-14 Richard Henderson <rth@redhat.com>
790 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
792 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
793 Doug Evans <xdje42@gmail.com>
795 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
796 dereference TYPE_CODE_REF values.
798 2014-04-11 Joel Brobecker <brobecker@adacore.com>
800 Revert the following changes due to regressions:
802 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
803 (dwarf2_evaluate_property): New function.
804 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
805 * dwarf2read.c (attr_to_dynamic_prop): New function.
806 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
808 * gdbtypes.c: Include dwarf2loc.h.
809 (is_dynamic_type): New function.
810 (resolve_dynamic_type): New function.
811 (resolve_dynamic_bounds): New function.
812 (get_type_length): New function.
813 (check_typedef): Use get_type_length to compute type length.
814 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
815 (TYPE_LOW_BOUND_KIND): New macro.
816 (is_dynamic_type): New function prototype.
817 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
818 to resolve dynamic properties of the type. Update comment.
819 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
821 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
822 passed to sizeof is dynamic evaluate the argument to compute the length.
824 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
825 value and retrieve the dynamic type size.
827 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
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 * eval.c (evaluate_subexp_with_coercion): Likewise.
834 * findvar.c (address_of_variable): Likewise.
835 * jv-valprint.c (java_value_print): Likewise.
836 * valops.c (value_ind): Likewise.
837 * value.c (coerce_ref): Likewise.
839 * c-typeprint.c (c_type_print_varspec_suffix): Added
840 check for not yet resolved high bound. If unresolved, print
841 "variable length" string to the console instead of random
844 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
845 property and store it as the high bound and flag the range accordingly.
846 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
847 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
848 * gdbtypes.h (enum range_flags): New enum.
849 (struct range_bounds): Add flags member.
851 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
852 points to a constant blob.
854 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
855 (evaluate_subexp_standard): Pass noside argument.
856 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
857 if noside equals EVAL_NORMAL. If the subscript yields a vla type
858 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
859 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
860 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
862 2014-04-11 Keith Seitz <keiths@redhat.com>
865 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
866 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
869 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
871 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
872 (evaluate_subexp_standard): Pass noside argument.
873 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
874 if noside equals EVAL_NORMAL. If the subscript yields a vla type
875 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
876 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
877 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
879 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
881 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
882 points to a constant blob.
884 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
886 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
887 property and store it as the high bound and flag the range accordingly.
888 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
889 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
890 * gdbtypes.h (enum range_flags): New enum.
891 (struct range_bounds): Add flags member.
893 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
895 * c-typeprint.c (c_type_print_varspec_suffix): Added
896 check for not yet resolved high bound. If unresolved, print
897 "variable length" string to the console instead of random
900 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
902 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
903 (ada_template_to_fixed_record_type_1): Likewise.
904 (ada_to_fixed_type_1): Likewise.
905 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
906 (cp_print_value): Likewise.
907 * d-valprint.c (dynamic_array_type): Likewise.
908 * eval.c (evaluate_subexp_with_coercion): Likewise.
909 * findvar.c (address_of_variable): Likewise.
910 * jv-valprint.c (java_value_print): Likewise.
911 * valops.c (value_ind): Likewise.
912 * value.c (coerce_ref): Likewise.
914 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
916 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
917 value and retrieve the dynamic type size.
919 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
921 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
922 passed to sizeof is dynamic evaluate the argument to compute the length.
924 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
926 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
927 (dwarf2_evaluate_property): New function.
928 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
929 * dwarf2read.c (attr_to_dynamic_prop): New function.
930 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
932 * gdbtypes.c: Include dwarf2loc.h.
933 (is_dynamic_type): New function.
934 (resolve_dynamic_type): New function.
935 (resolve_dynamic_bounds): New function.
936 (get_type_length): New function.
937 (check_typedef): Use get_type_length to compute type length.
938 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
939 (TYPE_LOW_BOUND_KIND): New macro.
940 (is_dynamic_type): New function prototype.
941 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
942 to resolve dynamic properties of the type. Update comment.
943 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
945 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
947 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
948 declaring high/low bounds and change uses accordingly. Call
949 create_range_type instead of create_static_range_type.
950 * gdbtypes.c (create_range_type): New function.
951 (create_range_type): Convert bounds into struct bound_prop and pass
952 them to create_range_type.
953 * gdbtypes.h (struct bound_prop): New struct.
954 (create_range_type): New function prototype.
955 (struct range_bounds): Use struct bound_prop instead of LONGEST for
956 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
957 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
959 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
961 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
963 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
964 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
965 * ada-lang.c: All uses of create_range_type updated.
966 * coffread.c: All uses of create_range_type updated.
967 * dwarf2read.c: All uses of create_range_type updated.
968 * f-exp.y: All uses of create_range_type updated.
969 * m2-valprint.c: All uses of create_range_type updated.
970 * mdebugread.c: All uses of create_range_type updated.
971 * stabsread.c: All uses of create_range_type updated.
972 * valops.c: All uses of create_range_type updated.
973 * valprint.c: All uses of create_range_type updated.
975 2014-04-10 Pedro Alves <palves@redhat.com>
977 * breakpoint.c (single_step_breakpoints)
978 (single_step_gdbarch): Move up in the file.
979 (one_breakpoint_xfer_memory): New function, factored out from ...
980 (breakpoint_xfer_memory): ... here. Also process single-step
983 2014-04-09 Tristan Gingold <gingold@adacore.com>
985 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
987 (darwin_decode_exception_message): Free port only after use.
989 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
991 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
992 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
993 when setting the size of call_length.
995 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
997 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
998 dereference TYPE_CODE_REF values.
1000 2014-04-07 Joel Brobecker <brobecker@adacore.com>
1002 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
1003 end of warning message.
1005 2014-04-03 Doug Evans <dje@google.com>
1007 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
1008 of stub_comp_unit_die, stub_comp_dir is non-NULL.
1010 2014-04-02 Alan Modra <amodra@gmail.com>
1012 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
1013 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
1014 (struct symbol_file_add_from_memory_args): Add size field.
1015 (find_vdso_size): New function.
1016 (add_vsyscall_page): Attempt to find vdso size.
1018 2014-04-01 Doug Evans <dje@google.com>
1020 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
1022 2014-04-01 Tristan Gingold <gingold@adacore.com>
1024 * darwin-nat.c (darwin_encode_reply): Add prototype.
1025 (darwin_decode_exception_message): Reply to unknown inferiors.
1026 (darwin_decode_message): Handle message by id. Ignore message
1027 to unknown inferior.
1028 (darwin_wait): Discard unknown messages, add debug trace.
1030 2014-03-31 Doug Evans <dje@google.com>
1032 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
1035 2014-03-31 Doug Evans <dje@google.com>
1037 New option "set print symbol-loading".
1039 * solib.c (solib_read_symbols): Only print symbol loading messages
1041 (solib_add): If symbol loading is in "brief" mode, notify user
1042 symbols are being loaded.
1043 (reload_shared_libraries_1): Ditto.
1044 * symfile.c (print_symbol_loading_off): New static global.
1045 (print_symbol_loading_brief): New static global.
1046 (print_symbol_loading_full): New static global.
1047 (print_symbol_loading_enums): New static global.
1048 (print_symbol_loading): New static global.
1049 (print_symbol_loading_p): New function.
1050 (symbol_file_add_with_addrs): Only print symbol loading messages
1052 (_initialize_symfile): Register "print symbol-loading" set/show
1054 * symfile.h (print_symbol_loading_p): Declare.
1056 2014-03-30 Doug Evans <xdje42@gmail.com>
1058 * infrun.c (set_last_target_status): New function.
1059 (handle_inferior_event): Call it.
1061 2014-03-30 Doug Evans <xdje42@gmail.com>
1063 * inferior.h (enum stop_kind): Improve comment.
1065 2014-03-28 Joel Brobecker <brobecker@adacore.com>
1067 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
1068 a reference, strip the reference layer before calling
1069 the lang_ops value_has_mutated callback.
1071 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
1073 Remove some globals from our parser.
1074 * language.c (unk_lang_parser): Add "struct parser_state"
1076 * language.h (struct language_defn) <la_parser>: Likewise.
1077 * parse.c (expout, expout_size, expout_ptr): Remove variables.
1078 (initialize_expout): Add "struct parser_state" argument.
1079 Rewrite function to use the parser state.
1080 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
1081 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
1082 write_exp_elt_longcst, write_exp_elt_dblcst,
1083 write_exp_elt_decfloatcst, write_exp_elt_type,
1084 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
1085 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
1086 write_dollar_variable): Likewise.
1087 (parse_exp_in_context_1): Use parser state.
1088 (insert_type_address_space): Add "struct parser_state" argument.
1090 (increase_expout_size): New function.
1091 * parser-defs.h: Forward declare "struct language_defn" and
1092 "struct parser_state".
1093 (expout, expout_size, expout_ptr): Remove extern declarations.
1094 (parse_gdbarch, parse_language): Rewrite macro declarations to
1095 accept the parser state.
1096 (struct parser_state): New struct.
1097 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
1098 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
1099 write_exp_elt_decfloatcst, write_exp_elt_type,
1100 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
1101 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
1102 write_exp_msymbol, write_dollar_variable,
1103 mark_struct_expression, insert_type_address_space): Add "struct
1104 parser_state" argument.
1105 (increase_expout_size): New function.
1106 * utils.c (do_clear_parser_state): New function.
1107 (make_cleanup_clear_parser_state): Likewise.
1108 * utils.h (make_cleanup_clear_parser_state): New function
1110 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
1111 Update calls to write_exp* in order to pass the parser state.
1112 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1113 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
1114 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1115 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1116 * stap-probe.c (stap_parse_register_operand): Likewise.
1117 (stap_parse_single_operand): Likewise.
1118 (stap_parse_argument_1): Likewise.
1119 (stap_parse_argument): Use parser state.
1120 * stap-probe.h: Include "parser-defs.h".
1121 (struct stap_parse_info) <pstate>: New field.
1122 * c-exp.y (parse_type): Rewrite to use parser state.
1123 (yyparse): Redefine to c_parse_internal.
1124 (pstate): New global variable.
1125 (parse_number): Add "struct parser_state" argument.
1126 (write_destructor_name): Likewise.
1127 (type_exp): Update calls to write_exp* and similars in order to
1129 (exp1, exp, variable, qualified_name, space_identifier,
1130 typename, typebase): Likewise.
1131 (write_destructor_name, parse_number, lex_one_token,
1132 classify_name, classify_inner_name, c_parse): Add "struct
1133 parser_state" argument. Update function to use parser state.
1134 * c-lang.h: Forward declare "struct parser_state".
1135 (c_parse): Add "struct parser_state" argument.
1136 * ada-exp.y (parse_type): Rewrite macro to use parser state.
1137 (yyparse): Redefine macro to ada_parse_internal.
1138 (pstate): New variable.
1139 (write_int, write_object_renaming, write_var_or_type,
1140 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
1141 type_int, type_long, type_long_long, type_float, type_double,
1142 type_long_double, type_char, type_boolean, type_system_address):
1143 Add "struct parser_state" argument.
1144 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
1145 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
1146 var_or_type, aggregate, aggregate_component_list,
1147 positional_list, others, component_group,
1148 component_associations): Update calls to write_exp* and similar
1149 functions in order to use parser state.
1150 (ada_parse, write_var_from_sym, write_int,
1151 write_exp_op_with_string, write_object_renaming,
1152 find_primitive_type, write_selectors, write_ambiguous_var,
1153 write_var_or_type, write_name_assoc, type_int, type_long,
1154 type_long_long, type_float, type_double, type_long_double,
1155 type_char, type_boolean, type_system_address): Add "struct
1156 parser_state" argument. Adjust function to use parser state.
1157 * ada-lang.c (parse): Likewise.
1158 * ada-lang.h: Forward declare "struct parser_state".
1159 (ada_parse): Add "struct parser_state" argument.
1160 * ada-lex.l (processInt, processReal): Likewise. Adjust all
1161 calls to both functions.
1162 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
1164 (yyparse): Redefine macro to f_parse_internal.
1165 (pstate): New variable.
1166 (parse_number): Add "struct parser_state" argument.
1167 (type_exp, exp, subrange, typebase): Update calls to write_exp*
1168 and similars in order to use parser state.
1169 (parse_number): Adjust code to use parser state.
1171 (f_parse): New function.
1172 * f-lang.h: Forward declare "struct parser_state".
1173 (f_parse): Add "struct parser_state" argument.
1174 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
1176 (yyparse): Redefine macro for java_parse_internal.
1177 (pstate): New variable.
1178 (push_expression_name, push_expression_name, insert_exp): Add
1179 "struct parser_state" argument.
1180 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
1181 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
1182 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
1183 PostIncrementExpression, PostDecrementExpression,
1184 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
1185 UnaryExpressionNotPlusMinus, CastExpression,
1186 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
1187 RelationalExpression, EqualityExpression, AndExpression,
1188 ExclusiveOrExpression, InclusiveOrExpression,
1189 ConditionalAndExpression, ConditionalOrExpression,
1190 ConditionalExpression, Assignment, LeftHandSide): Update
1191 calls to write_exp* and similars in order to use parser state.
1192 (parse_number): Ajust code to use parser state.
1194 (java_parse): New function.
1195 (push_variable): Add "struct parser_state" argument. Adjust
1196 code to user parser state.
1197 (push_fieldnames, push_qualified_expression_name,
1198 push_expression_name, insert_exp): Likewise.
1199 * jv-lang.h: Forward declare "struct parser_state".
1200 (java_parse): Add "struct parser_state" argument.
1201 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
1203 (yyparse): Redefine macro to m2_parse_internal.
1204 (pstate): New variable.
1205 (type_exp, exp, fblock, variable, type): Update calls to
1206 write_exp* and similars to use parser state.
1208 (m2_parse): New function.
1209 * m2-lang.h: Forward declare "struct parser_state".
1210 (m2_parse): Add "struct parser_state" argument.
1211 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
1212 * objc-lang.h: Forward declare "struct parser_state".
1213 (end_msglist): Add "struct parser_state" argument.
1214 * p-exp.y (parse_type): Rewrite macro to use parser state.
1215 (yyparse): Redefine macro to pascal_parse_internal.
1216 (pstate): New variable.
1217 (parse_number): Add "struct parser_state" argument.
1218 (type_exp, exp1, exp, qualified_name, variable): Update calls to
1219 write_exp* and similars in order to use parser state.
1220 (parse_number, yylex): Adjust code to use parser state.
1221 (pascal_parse): New function.
1222 * p-lang.h: Forward declare "struct parser_state".
1223 (pascal_parse): Add "struct parser_state" argument.
1224 * go-exp.y (parse_type): Rewrite macro to use parser state.
1225 (yyparse): Redefine macro to go_parse_internal.
1226 (pstate): New variable.
1227 (parse_number): Add "struct parser_state" argument.
1228 (type_exp, exp1, exp, variable, type): Update calls to
1229 write_exp* and similars in order to use parser state.
1230 (parse_number, lex_one_token, classify_name, yylex): Adjust code
1231 to use parser state.
1232 (go_parse): Likewise.
1233 * go-lang.h: Forward declare "struct parser_state".
1234 (go_parse): Add "struct parser_state" argument.
1236 2014-03-27 Doug Evans <dje@google.com>
1238 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
1240 2014-03-27 Doug Evans <dje@google.com>
1242 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
1243 Remove argument abbrev_section. All callers updated.
1245 2014-03-27 Doug Evans <dje@google.com>
1247 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
1248 addr_base, ranges_base.
1250 2014-03-26 Keith Seitz <keiths@redhat.com>
1252 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
1253 types, not VAR_DOMAIN.
1255 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
1257 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
1259 * features/nios2-linux.c: Regenerated.
1260 * features/nios2.c: Regenerated.
1262 2014-03-25 Pedro Alves <palves@redhat.com>
1264 * cli/cli-script.c (script_from_file): Force the interpreter to
1267 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
1269 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
1270 small stack allocation.
1272 2014-03-24 Tristan Gingold <gingold@adacore.com>
1274 * darwin-nat.c (exc_server): Remove unused prototype.
1275 (darwin_dump_message): Correctly display data on x86_64.
1276 (darwin_encode_reply): Fix style.
1277 Add comments and fix indentation.
1279 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
1281 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
1283 2014-03-22 Doug Evans <xdje42@gmail.com>
1285 * infcmd.c: Whitespace fixes.
1286 (interrupt_command): Merge two function comments into one.
1288 2014-03-22 Doug Evans <xdje42@gmail.com>
1290 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
1293 2014-03-22 Yao Qi <yao@codesourcery.com>
1295 * remote.c (target_read_live_memory): Remove.
1296 (memory_xfer_live_readonly_partial): Rename it to
1297 remote_xfer_live_readonly_partial. Remove argument 'object'.
1298 All callers updated. Call remote_read_bytes_1
1299 instead of target_read_live_memory.
1300 * tracepoint.c (set_traceframe_number): Remove.
1301 (make_cleanup_restore_traceframe_number): Likewise .
1302 * tracepoint.h (set_traceframe_number): Remove declaration.
1303 (make_cleanup_restore_traceframe_number): Likewise.
1305 2014-03-22 Yao Qi <yao@codesourcery.com>
1307 * remote.c (remote_read_bytes): Move code on reading from the
1309 (remote_read_bytes_1): ... here. New function.
1311 2014-03-22 Yao Qi <yao@codesourcery.com>
1313 * ctf.c (ctf_xfer_partial): Check the return value of
1314 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
1315 return TARGET_XFER_UNAVAILABLE.
1316 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
1317 * target.c (target_read_live_memory): Move it to remote.c.
1318 (memory_xfer_live_readonly_partial): Likewise.
1319 (memory_xfer_partial_1): Move some code to remote_read_bytes.
1320 * remote.c (target_read_live_memory): Moved from target.c.
1321 (memory_xfer_live_readonly_partial): Likewise.
1322 (remote_read_bytes): Factored out from
1323 memory_xfer_partial_1.
1325 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
1327 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
1330 2014-03-21 Pedro Alves <palves@redhat.com>
1332 * infrun.c (normal_stop): Extend comment.
1334 2014-03-21 Hui Zhu <hui@codesourcery.com>
1335 Pedro Alves <palves@redhat.com>
1337 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
1339 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
1340 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
1341 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
1343 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
1345 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
1346 `z' formatted output modifier.
1348 2014-03-20 Tom Tromey <tromey@redhat.com>
1349 Sergio Durigan Junior <sergiodj@redhat.com>
1351 * probe.c (parse_probes): Turn assert into an ordinary error.
1352 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
1353 exceptions when parsing probes. Rearrange the code for clarity.
1355 2014-03-20 Tom Tromey <tromey@redhat.com>
1358 * top.c (execute_command): Only dispatch events if the command
1361 2014-03-20 Tom Tromey <tromey@redhat.com>
1364 * infcall.c: Include event-top.h.
1365 (run_inferior_call): Call async_disable_stdin if needed.
1367 2014-03-20 Pedro Alves <palves@redhat.com>
1369 * infrun.c (prepare_to_proceed): Delete.
1370 (thread_still_needs_step_over): New function.
1371 (find_thread_needs_step_over): New function.
1372 (proceed): If the current thread needs a step-over, set its
1373 steping_over_breakpoint flag. Adjust to use
1374 find_thread_needs_step_over instead of prepare_to_proceed.
1375 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
1376 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
1378 (switch_back_to_stepped_thread): Step over breakpoints of all
1379 threads not the stepping thread, before switching back to the
1382 2014-03-20 Pedro Alves <palves@redhat.com>
1384 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
1386 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
1387 * infrun.c (saved_singlestep_ptid)
1388 (stepping_past_singlestep_breakpoint): Delete.
1389 (resume): Remove stepping_past_singlestep_breakpoint handling.
1390 (proceed): Store the prev_pc of the stepping thread too.
1391 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
1393 (enum infwait_states): Delete infwait_thread_hop_state.
1394 (struct execution_control_state) <hit_singlestep_breakpoint>: New
1396 (handle_inferior_event): Adjust.
1397 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
1398 handling and the thread-hop code. Before removing single-step
1399 breakpoints, check whether the thread hit a single-step breakpoint
1400 of another thread. If it did, the trap is not a random signal.
1401 (switch_back_to_stepped_thread): If the event thread hit a
1402 single-step breakpoint, unblock it before switching to the
1403 stepping thread. Handle the case of the stepped thread having
1405 (keep_going): Handle the case of the current thread moving past a
1406 single-step breakpoint.
1408 2014-03-20 Pedro Alves <palves@redhat.com>
1411 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
1412 are being stepped over.
1413 (breakpoint_address_match): Make extern.
1414 * breakpoint.h (breakpoint_address_match): New declaration.
1415 * inferior.h (stepping_past_instruction_at): New declaration.
1416 * infrun.c (struct step_over_info): New type.
1417 (step_over_info): New global.
1418 (set_step_over_info, clear_step_over_info)
1419 (stepping_past_instruction_at): New functions.
1420 (handle_inferior_event): Clear the step-over info when
1421 trap_expected is cleared.
1422 (resume): Remove now stale comment.
1423 (clear_proceed_status): Clear step-over info.
1424 (proceed): Adjust step-over handling to set or clear the step-over
1425 info instead of removing all breakpoints.
1426 (handle_signal_stop): When setting up a thread-hop, don't remove
1428 (stop_stepping): Clear step-over info.
1429 (keep_going): Adjust step-over handling to set or clear step-over
1430 info and then always inserting breakpoints, instead of removing
1431 all breakpoints when stepping over one.
1433 2014-03-20 Pedro Alves <palves@redhat.com>
1435 * infrun.c (previous_inferior_ptid): Adjust comment.
1436 (deferred_step_ptid): Delete.
1437 (infrun_thread_ptid_changed, prepare_to_proceed)
1438 (init_wait_for_inferior): Adjust.
1439 (handle_signal_stop): Delete deferred_step_ptid handling.
1441 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1444 * defs.h (sync_quit_force_run): New declaration.
1445 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
1446 * event-top.c (async_sigterm_handler): New declaration.
1447 (async_sigterm_token): New variable.
1448 (async_init_signals): Create also async_sigterm_token.
1449 (async_sigterm_handler): New function.
1450 (sync_quit_force_run): New variable.
1451 (handle_sigterm): Replace quit_force call by other calls.
1452 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
1454 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
1456 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
1457 offset into SPE pseudo registers.
1459 2014-03-18 Pedro Alves <palves@redhat.com>
1462 * inferior.h (print_stop_event): Declare.
1463 * infrun.c (print_stop_event): New, factored out from ...
1464 (normal_stop): ... this.
1465 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
1466 of bpstat_print/print_stack_frame.
1468 2014-03-17 Tom Tromey <tromey@redhat.com>
1470 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
1472 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
1474 * ada-lang.c (decode_constrained_packed_array): Perform a
1475 minimal coercion for reference with coerce_ref instead of
1478 2014-03-17 Tristan Gingold <gingold@adacore.com>
1480 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
1481 (darwin_solib_create_inferior_hook): Emit a warning if version
1484 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
1486 * python/py-value.c (get_field_flag): Cast flag_name argument to
1487 PyObject_GetAttrString to support Python 2.4.
1489 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1491 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
1492 (Global Maintainers): Remove Jan Kratochvil.
1494 2014-03-14 Pedro Alves <palves@redhat.com>
1496 * inferior.h (terminal_ours_for_output): Rename to ...
1497 (child_terminal_ours_for_output): ... this.
1498 (terminal_save_ours): Rename to ...
1499 (child_terminal_save_ours): ... this.
1500 (terminal_ours): Rename to ...
1501 (child_terminal_ours): ... this.
1502 (terminal_inferior): Rename to ...
1503 (child_terminal_inferior): ... this.
1504 (terminal_init_inferior): Rename to ...
1505 (child_terminal_init_inferior): ... this.
1506 (terminal_init_inferior_with_pgrp): Rename to ...
1507 (child_terminal_init_inferior_with_pgrp): ... this.
1508 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
1509 (child_terminal_init_with_pgrp): ... this.
1510 (terminal_save_ours): Rename to ...
1511 (child_terminal_save_ours): ... this.
1512 (terminal_init_inferior): Rename to ...
1513 (child_terminal_init): ... this. Adjust.
1514 (terminal_inferior): Rename to ...
1515 (child_terminal_inferior): ... this.
1516 (terminal_ours_for_output): Rename to ...
1517 (child_terminal_ours_for_output): ... this. Adjust.
1518 (terminal_ours): Rename to ...
1519 (child_terminal_ours): ... this.
1520 (terminal_ours_1): Rename to ...
1521 (child_terminal_ours_1): ... this. Adjust.
1522 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
1523 * windows-nat.c (do_initial_windows_stuff): Adjust.
1524 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
1525 (gnu_terminal_init): ... this. Adjust.
1526 (gnu_target): Adjust.
1527 * inf-child.c (inf_child_target): Adjust.
1529 2014-03-13 Doug Evans <xdje42@gmail.com>
1532 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
1535 2014-03-13 Doug Evans <xdje42@gmail.com>
1537 * value.c (record_latest_value): Call release_value_or_incref
1538 instead of release_value.
1540 2014-03-13 Pedro Alves <palves@redhat.com>
1542 * procfs.c (procfs_target): Don't override to_shortname,
1543 to_longname or to_doc.
1545 2014-03-13 Pedro Alves <palves@redhat.com>
1547 * inf-child.c (inf_child_open, inf_child_target): Don't mention
1548 Unix in user visible strings.
1550 2014-03-12 Stan Shebs <stan@codesourcery.com>
1552 * gdbtypes.h: Annotate comments for Doxygen, add a page
1553 block comment with some general info.
1555 2014-03-12 Pedro Alves <palves@redhat.com>
1557 * infcmd.c (prepare_execution_command): New function, factored out
1558 from several execution commands.
1559 (run_command_1, continue_command, step_1, jump_command)
1560 (signal_command, until_command, advance_command, finish_command)
1561 (attach_command): Use prepare_execution_command.
1563 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
1565 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
1568 (struct arm_linux_thread_points): Removed.
1569 (struct arm_linux_process_info): New.
1570 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
1571 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
1572 (arm_linux_find_breakpoints_by_tid): Removed.
1573 (struct arch_lwp_info): New.
1574 (arm_linux_find_process_pid): New functions.
1575 (arm_linux_add_process): New functions.
1576 (arm_linux_process_info_get): New functions.
1577 (arm_linux_forget_process): New function.
1578 (arm_linux_get_debug_reg_state): New function.
1579 (struct update_registers_data): New.
1580 (update_registers_callback): New function.
1581 (arm_linux_insert_hw_breakpoint1): Updated.
1582 (arm_linux_remove_hw_breakpoint1): Updated.
1583 (arm_linux_insert_hw_breakpoint): Updated.
1584 (arm_linux_remove_hw_breakpoint): Updated.
1585 (arm_linux_insert_watchpoint): Updated.
1586 (arm_linux_remove_watchpoint): Updated.
1587 (arm_linux_new_thread): Updated.
1588 (arm_linux_prepare_to_resume): New function.
1589 (arm_linux_new_fork): New function.
1590 (_initialize_arm_linux_nat): Updated.
1592 2014-03-12 Pedro Alves <palves@redhat.com>
1594 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
1596 2014-03-12 Tom Tromey <tromey@redhat.com>
1598 * inf-child.c (return_zero): New function.
1599 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
1600 * aix-thread.c (aix_thread_inferior_created): New function.
1601 (aix_thread_attach): Remove.
1602 (init_aix_thread_ops): Don't set to_attach.
1603 (_initialize_aix_thread): Register inferior_created observer.
1604 * corelow.c (init_core_ops): Don't set to_attach or
1606 * exec.c (init_exec_ops): Don't set to_attach or
1608 * infcmd.c (run_command_1): Use find_run_target. Make direct
1610 (attach_command): Use find_attach_target. Make direct target
1612 * record-btrace.c (init_record_btrace_ops): Don't set
1614 * record-full.c (record_full_can_async_p, record_full_is_async_p):
1616 (init_record_full_ops, init_record_full_core_ops): Update. Don't
1617 set to_create_inferior.
1618 * target.c (complete_target_initialization): Add assertion.
1619 (target_create_inferior): Remove.
1620 (find_default_attach, find_default_create_inferior): Remove.
1621 (find_attach_target, find_run_target): New functions.
1622 (find_default_is_async_p, find_default_can_async_p)
1623 (target_supports_non_stop, target_attach): Remove.
1624 (init_dummy_target): Don't set to_create_inferior or
1625 to_supports_non_stop.
1626 * target.h (struct target_ops) <to_attach>: Add comment. Remove
1627 TARGET_DEFAULT_FUNC.
1628 <to_create_inferior>: Add comment.
1629 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
1630 TARGET_DEFAULT_RETURN.
1631 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
1632 (find_attach_target, find_run_target): Declare.
1633 (target_create_inferior): Remove.
1634 (target_has_execution_1): Update comment.
1635 (target_supports_non_stop): Remove.
1636 * target-delegates.c: Rebuild.
1638 2014-03-12 Pedro Alves <palves@redhat.com>
1640 * inf-child.h: Update comment to not mention Unix.
1642 2014-03-12 Pedro Alves <palves@redhat.com>
1644 * inf-child.c: Update top comment to not mention Unix. Add
1645 generic comment describing how this target is meant to be used.
1646 (inf_child_post_attach, inf_child_post_startup_inferior)
1647 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
1650 2014-03-12 Pedro Alves <palves@redhat.com>
1652 * nto-procfs.c: Include inf-child.h.
1653 (procfs_ops): Delete global.
1654 (procfs_can_run): Delete method.
1655 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
1656 target pointer instead of referencing procfs_ops.
1657 (procfs_prepare_to_store): Delete.
1658 (init_procfs_ops): Delete function.
1659 (procfs_target): New function, based on init_procfs_ops, but
1660 inherit inf_child_target.
1661 (_initialize_procfs): Use procfs_target.
1663 2014-03-12 Pedro Alves <palves@redhat.com>
1665 * windows-nat.c: Include inf-child.h.
1666 (windows_ops): Delete global.
1667 (windows_open, windows_prepare_to_store, windows_can_run): Delete
1669 (init_windows_ops): Delete function.
1670 (windows_target): New function, based on init_windows_ops, but
1671 inherit inf_child_target.
1672 (_initialize_windows_nat): Use windows_target. Install x86
1673 specific target methods here.
1675 2014-03-10 Doug Evans <xdje42@gmail.com>
1677 * guile/guile.c (call_initialize_gdb_module): New function.
1678 (initialize_guile): Replace call to scm_init_guile with call to
1681 2014-03-10 Joel Brobecker <brobecker@adacore.com>
1683 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
1684 in call to TYPE_CODE macro.
1686 2014-03-10 Jerome Guitton <guitton@adacore.com>
1688 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
1689 Resolve tagged types to full view.
1691 2014-03-10 Hui Zhu <hui@codesourcery.com>
1693 * target.h (target_insert_breakpoint): Remove "hardware" from its
1696 2014-03-07 Doug Evans <dje@google.com>
1698 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
1700 2014-03-07 Doug Evans <dje@google.com>
1702 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
1703 Remove unused local comp_dir_attr. Assert exactly one of
1704 stub_comp_unit_die, stub_comp_dir is non-NULL.
1706 2014-03-07 Joel Brobecker <brobecker@adacore.com>
1708 * target.h (complete_target_initialization, add_target):
1711 2014-03-07 Pedro Alves <palves@redhat.com>
1713 * go32-nat.c: Include inf-child.h.
1714 (go32_ops): Delete global.
1715 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
1717 (go32_create_inferior): Push the passed in target pointer instead
1718 of referencing go32_ops.
1719 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
1720 (go32_target): New function, based on init_go32_ops, but inherit
1722 (_initialize_go32_nat): Use go32_target. Move parts of
1725 2014-03-06 Joel Brobecker <brobecker@adacore.com>
1727 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
1728 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
1729 SYMBOL_VALUE_ADDRESS.
1730 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
1732 2014-03-06 Yao Qi <yao@codesourcery.com>
1734 * breakpoint.c (get_tracepoint_by_number): Remove argument
1735 optional_p. All callers updated. Adjust comments. Update
1737 * breakpoint.h (get_tracepoint_by_number): Update declaration.
1739 2014-03-06 Yao Qi <yao@codesourcery.com>
1741 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
1742 early if get_number returns zero. Use 'p' instead of 'args'.
1744 2014-03-06 Yao Qi <yao@codesourcery.com>
1746 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
1749 2014-03-06 Yao Qi <yao@codesourcery.com>
1751 PR breakpoints/16508
1752 * tracepoint.c (check_trace_running): New function.
1753 (trace_find_command): Move code to check_trace_running and
1754 call check_trace_running.
1755 (trace_find_pc_command): Likewise.
1756 (trace_find_tracepoint_command): Likewise.
1757 (trace_find_line_command): Likewise.
1758 (trace_find_range_command): Likewise.
1759 * tracepoint.h (check_trace_running): Likewise.
1760 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
1762 2014-03-06 Yao Qi <yao@codesourcery.com>
1764 * target.h (struct target_ops) <to_traceframe_info>: Use
1765 TARGET_DEFAULT_NORETURN (tcomplain ()).
1766 * target-delegates.c: Regenerated.
1768 2014-03-05 Pedro Alves <palves@redhat.com>
1771 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
1772 void. Update comment.
1773 (dcache_xfer_memory): Delete.
1774 (dcache_read_memory_partial): New, based on the read bits of
1776 (dcache_update): Add status parameter. Use ULONGEST for len, and
1777 adjust. Discard cache lines if the reason for the update was
1779 * dcache.h (dcache_xfer_memory): Delete declaration.
1780 (dcache_read_memory_partial): New declaration.
1781 (dcache_update): Update prototype.
1782 * target.c (raw_memory_xfer_partial): Update the dcache here.
1783 (memory_xfer_partial_1): Don't handle dcache writes here.
1785 2014-03-05 Mike Frysinger <vapier@gentoo.org>
1787 * remote-sim.c (gdbsim_load): Add const to prog.
1789 2014-03-03 Tom Tromey <tromey@redhat.com>
1791 * elfread.c (probe_key): Change to bfd_data.
1792 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
1793 now per-BFD, not per-objfile.
1794 * stap-probe.c (stap_probe_destroy): Update comment.
1795 (handle_stap_probe): Allocate on the per-BFD obstack.
1797 2014-03-03 Tom Tromey <tromey@redhat.com>
1799 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
1800 * breakpoint.c (create_longjmp_master_breakpoint): Use
1802 (add_location_to_breakpoint, bkpt_probe_insert_location)
1803 (bkpt_probe_remove_location): Update.
1804 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
1805 * elfread.c (elf_symfile_relocate_probe): Remove.
1806 (elf_probe_fns): Update.
1807 (insert_exception_resume_breakpoint): Change type of "probe"
1808 parameter to bound_probe.
1809 (check_exception_resume): Update.
1810 * objfiles.c (objfile_relocate1): Don't relocate probes.
1811 * probe.c (bound_probe_s): New typedef.
1812 (parse_probes): Use get_probe_address. Set sal's objfile.
1813 (find_probe_by_pc): Return a bound_probe.
1814 (collect_probes): Return a VEC(bound_probe_s).
1815 (compare_probes): Update.
1816 (gen_ui_out_table_header_info): Change type of "probes"
1818 (info_probes_for_ops): Update.
1819 (get_probe_address): New function.
1820 (probe_safe_evaluate_at_pc): Update.
1821 * probe.h (struct probe_ops) <get_probe_address>: New field.
1822 <set_semaphore, clear_semaphore>: Add objfile parameter.
1823 (struct probe) <objfile>: Remove field.
1825 <address>: Update comment.
1826 (struct bound_probe): New.
1827 (find_probe_by_pc): Return a bound_probe.
1828 (get_probe_address): Declare.
1829 * solib-svr4.c (struct probe_and_action) <address>: New field.
1830 (hash_probe_and_action, equal_probe_and_action): Update.
1831 (register_solib_event_probe): Add address parameter.
1832 (solib_event_probe_at): Update.
1833 (svr4_create_probe_breakpoints): Add objfile parameter. Use
1835 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
1836 (stap_get_probe_address): New function.
1837 (stap_can_evaluate_probe_arguments, compute_probe_arg)
1838 (compile_probe_arg): Update.
1839 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
1841 (handle_stap_probe): Don't relocate the probe.
1842 (stap_relocate): Remove.
1843 (stap_gen_info_probes_table_values): Update.
1844 (stap_probe_ops): Remove stap_relocate.
1845 * symfile-debug.c (debug_sym_relocate_probe): Remove.
1846 (debug_sym_probe_fns): Update.
1847 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
1848 * symtab.c (init_sal): Use memset.
1849 * symtab.h (struct symtab_and_line) <objfile>: New field.
1850 * tracepoint.c (start_tracing, stop_tracing): Update.
1852 2014-03-03 Tom Tromey <tromey@redhat.com>
1854 * probe.h (parse_probes, find_probe_by_pc)
1855 (find_probes_in_objfile): Fix comments.
1857 2014-03-02 Doug Evans <xdje42@gmail.com>
1859 * infrun.c (handle_signal_stop): Replace test for
1860 TARGET_WAITKIND_STOPPED with an assert.
1862 2014-03-02 Doug Evans <xdje42@gmail.com>
1864 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
1866 2014-03-02 Doug Evans <xdje42@gmail.com>
1868 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
1870 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1872 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
1874 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1876 * i386obsd-nat.c: Include "obsd-nat.h".
1877 (_initialize_i386obsd_nat): Call obsd_add_target instead of
1879 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
1881 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1883 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
1885 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1887 * mips64obsd-nat.c: Include "obsd-nath".
1888 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
1890 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
1892 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1894 * amd64obsd-nat.c: Include "obsd-nat,h.
1895 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
1897 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
1899 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
1901 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
1902 (find_overload_match): Update call to find_oload_champ.
1903 (find_oload_champ_namespace_loop): Likewise
1905 2014-02-28 Mark Kettenis <kettenis@gnu.org>
1907 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
1909 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
1910 * config/sparc/obsd64.mh: New file.
1911 * sparc64obsd-nat.c: New file.
1913 * obsd-nat.h: New file.
1914 * obsd-nat.c: New file.
1915 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
1916 (ALLDEPFILES): Add obsd-nat.c.
1918 2014-02-28 Tom Tromey <tromey@redhat.com>
1920 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
1921 * cli-out.h (cli_ui_out_impl): Now const.
1922 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
1923 * ui-out.c (struct ui_out) <impl>: Now const.
1924 (default_ui_out_impl): Now const.
1925 (ui_out_new): Make 'impl' parameter const.
1926 * ui-out.h (ui_out_new): Update.
1928 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1930 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
1932 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1934 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
1936 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1938 Additional PR 8882 fix.
1939 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
1941 2014-02-27 Pedro Alves <palves@redhat.com>
1943 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
1946 2014-02-27 Pedro Alves <palves@redhat.com>
1949 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
1950 * nat/linux-waitpid.c: Include string.h.
1951 (status_to_str): Moved here and made extern.
1952 * nat/linux-waitpid.h (status_to_str): New declaration.
1954 2014-02-27 Hui Zhu <hui@codesourcery.com>
1957 * infrun.c (ptid_match): Move ...
1958 * common/ptid.c (ptid_match): ... here.
1959 * inferior.h (ptid_match): Move ...
1960 * common/ptid.h (ptid_match): ... here.
1962 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1964 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
1965 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
1968 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1970 * obsd-tdep.c (obsd_auxv_parse): New function.
1971 (obsd_init_abi): Set auxv_parse.
1973 * gdbarch.sh (auxv_parse): New.
1974 * gdbarch.h: Regenerated.
1975 * gdbarch.c: Regenerated.
1976 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
1978 2014-02-26 Ludovic Courtès <ludo@gnu.org>
1980 * guile/scm-value.c (gdbscm_history_append_x): New function.
1981 (value_functions): Add it.
1983 2014-02-27 Joel Brobecker <brobecker@adacore.com>
1985 * dwarf2read.c (attr_value_as_address): New function.
1986 (dwarf2_find_base_address, read_call_site_scope): Use
1987 attr_value_as_address in place of DW_ADDR.
1988 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
1989 the low and high addresses. Slight rework of the handling
1990 of the high pc being a constant form, and limit it to
1991 DWARF verson 4 or higher.
1992 (dwarf2_record_block_ranges): Likewise.
1993 (read_partial_die): Likewise.
1994 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
1996 2014-02-26 Tom Tromey <tromey@redhat.com>
1998 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
2000 2014-02-26 Tom Tromey <tromey@redhat.com>
2002 * elfread.c (elf_read_minimal_symbols): Return early if
2003 minimal symbols have already been read. Add "ei" parameter.
2004 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
2005 * minsyms.c (prim_record_minimal_symbol_full): Update.
2006 * objfiles.h (struct objstats) <n_minsyms>: Move...
2007 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
2008 * symmisc.c (print_objfile_statistics): Update.
2010 2014-02-26 Tom Tromey <tromey@redhat.com>
2012 * elfread.c (elf_read_minimal_symbols): New function, from
2014 (elf_symfile_read): Call it.
2016 2014-02-26 Tom Tromey <tromey@redhat.com>
2018 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
2019 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
2020 (lookup_minimal_symbol_solib_trampoline)
2021 (lookup_minimal_symbol_by_pc_section_1)
2022 (lookup_minimal_symbol_and_objfile): Update.
2023 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
2024 Don't allocate a minimal symbol if minsyms have already been read.
2025 (build_minimal_symbol_hash_tables): Update.
2026 (install_minimal_symbols): Do nothing if minsyms already read.
2027 Use the per-BFD obstack.
2028 (terminate_minimal_symbol_table): Use the per-BFD obstack.
2029 * objfiles.c (allocate_objfile): Call
2030 terminate_minimal_symbol_table later.
2031 (have_minimal_symbols): Update.
2032 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
2033 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
2034 Move from struct objfile.
2035 <minsyms_read>: New field.
2036 (struct objfile) <msymbols, minimal_symbol_count,
2037 msymbol_hash, msymbol_demangled_hash>: Move.
2038 (ALL_OBJFILE_MSYMBOLS): Update.
2039 * symfile.c (read_symbols): Set minsyms_read.
2040 (reread_symbols): Update.
2041 * symmisc.c (dump_objfile, dump_msymbols): Update.
2043 2014-02-26 Tom Tromey <tromey@redhat.com>
2045 * minsyms.c (msymbols_sort): Remove.
2046 * minsyms.h (msymbols_sort): Remove.
2047 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
2048 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
2049 * elfread.c (elf_symtab_read): Don't add section offsets.
2050 * xcoffread.c (record_minimal_symbol): Don't add section offset
2051 to minimal symbol address.
2052 * somread.c (text_offset, data_offset): Remove.
2053 (som_symtab_read): Don't add section offsets to minimal symbol
2055 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
2056 Don't add section offsets to minimal symbols.
2057 * coffread.c (coff_symtab_read): Don't add section offsets
2058 to minimal symbol addresses.
2059 * machoread.c (macho_symtab_add_minsym): Don't add section offset
2060 to minimal symbol addresses.
2061 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
2062 section offset to minimal symbol addresses.
2063 * mdebugread.c (parse_partial_symbols): Don't add section
2064 offset to minimal symbol addresses.
2065 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
2066 offset to minimal symbol addresses.
2068 2014-02-26 Tom Tromey <tromey@redhat.com>
2070 * ada-lang.c (ada_main_name): Update.
2071 (ada_add_standard_exceptions): Update.
2072 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
2073 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2074 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
2075 * auxv.c (ld_so_xfer_auxv): Update.
2076 * avr-tdep.c (avr_scan_prologue): Update.
2077 * ax-gdb.c (gen_var_ref): Update.
2078 * blockframe.c (get_pc_function_start)
2079 (find_pc_partial_function_gnu_ifunc): Update.
2080 * breakpoint.c (create_overlay_event_breakpoint)
2081 (create_longjmp_master_breakpoint)
2082 (create_std_terminate_master_breakpoint)
2083 (create_exception_master_breakpoint): Update.
2084 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2085 * c-valprint.c (c_val_print): Update.
2086 * coff-pe-read.c (add_pe_forwarded_sym): Update.
2087 * common/agent.c (agent_look_up_symbols): Update.
2088 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
2089 * dwarf2loc.c (call_site_to_target_addr): Update.
2090 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
2091 * elfread.c (elf_gnu_ifunc_record_cache)
2092 (elf_gnu_ifunc_resolve_by_got): Update.
2093 * findvar.c (default_read_var_value): Update.
2094 * frame.c (inside_main_func): Update.
2095 * frv-tdep.c (frv_frame_this_id): Update.
2096 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2097 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2099 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
2100 (hppa_hpux_find_dummy_bpaddr): Update.
2101 * hppa-tdep.c (hppa_symbol_address): Update.
2102 * infcmd.c (until_next_command): Update.
2103 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
2105 * linespec.c (minsym_found, add_minsym): Update.
2106 * linux-nat.c (get_signo): Update.
2107 * linux-thread-db.c (inferior_has_bug): Update.
2108 * m32c-tdep.c (m32c_return_value)
2109 (m32c_m16c_address_to_pointer): Update.
2110 * m32r-tdep.c (m32r_frame_this_id): Update.
2111 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2112 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2113 * maint.c (maintenance_translate_address): Update.
2114 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
2115 (frob_address): New function.
2116 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
2117 frob_address. Rename parameter to "pc_in".
2118 (compare_minimal_symbols, compact_minimal_symbols): Use raw
2120 (find_solib_trampoline_target, minimal_symbol_upper_bound):
2122 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2123 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
2124 * objc-lang.c (find_objc_msgsend): Update.
2125 * objfiles.c (objfile_relocate1): Update.
2126 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2127 * p-valprint.c (pascal_val_print): Update.
2128 * parse.c (write_exp_msymbol): Update.
2129 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
2130 (ppc_elfv2_skip_entrypoint): Update.
2131 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2132 * printcmd.c (build_address_symbolic, msym_info)
2133 (address_info): Update.
2134 * proc-service.c (ps_pglobal_lookup): Update.
2135 * psymtab.c (find_pc_sect_psymtab_closer)
2136 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
2137 Change msymbol parameter to bound_minimal_symbol.
2138 * ravenscar-thread.c (get_running_thread_id): Update.
2139 * remote.c (remote_check_symbols): Update.
2140 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
2142 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2143 * solib-dsbt.c (lm_base): Update.
2144 * solib-frv.c (lm_base, main_got): Update.
2145 * solib-irix.c (locate_base): Update.
2146 * solib-som.c (som_solib_create_inferior_hook)
2147 (link_map_start): Update.
2148 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
2149 * solib-svr4.c (elf_locate_base, enable_break): Update.
2150 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2151 (flush_ea_cache): Update.
2152 * stabsread.c (define_symbol, scan_file_globals): Update.
2153 * stack.c (find_frame_funname): Update.
2154 * symfile-debug.c (debug_qf_expand_symtabs_matching)
2155 (debug_qf_find_pc_sect_symtab): Update.
2156 * symfile.c (simple_read_overlay_table)
2157 (simple_overlay_update): Update.
2158 * symfile.h (struct quick_symbol_functions)
2159 <find_pc_sect_symtab>: Change type of msymbol to
2160 bound_minimal_symbol.
2161 * symmisc.c (dump_msymbols): Update.
2162 * symtab.c (find_pc_sect_symtab_via_partial)
2163 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
2164 (search_symbols, print_msymbol_info): Update.
2165 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
2166 (MSYMBOL_VALUE_ADDRESS): Redefine.
2167 (BMSYMBOL_VALUE_ADDRESS): New macro.
2168 * tracepoint.c (scope_info): Update.
2169 * tui/tui-disasm.c (tui_find_disassembly_address)
2170 (tui_get_begin_asm_address): Update.
2171 * valops.c (find_function_in_inferior): Update.
2172 * value.c (value_static_field, value_fn_field): Update.
2174 2014-02-26 Tom Tromey <tromey@redhat.com>
2176 * ada-lang.c (ada_update_initial_language): Update.
2177 (ada_main_name, ada_has_this_exception_support): Update.
2178 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
2179 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2180 * arm-tdep.c (arm_skip_stub): Update.
2181 * auxv.c (ld_so_xfer_auxv): Update.
2182 * avr-tdep.c (avr_scan_prologue): Update.
2183 * ax-gdb.c (gen_var_ref): Update.
2184 * breakpoint.c (struct breakpoint_objfile_data)
2185 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
2186 type to bound_minimal_symbol.
2187 (create_overlay_event_breakpoint)
2188 (create_longjmp_master_breakpoint)
2189 (create_std_terminate_master_breakpoint)
2190 (create_exception_master_breakpoint): Update.
2191 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2192 * c-exp.y (classify_name): Update.
2193 * coffread.c (coff_symfile_read): Update.
2194 * common/agent.c (agent_look_up_symbols): Update.
2195 * d-lang.c (d_main_name): Update.
2196 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
2197 * dec-thread.c (enable_dec_thread): Update.
2198 * dwarf2loc.c (call_site_to_target_addr): Update.
2199 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
2200 * eval.c (evaluate_subexp_standard): Update.
2201 * findvar.c (struct minsym_lookup_data) <result>: Change type
2202 to bound_minimal_symbol.
2204 (minsym_lookup_iterator_cb, default_read_var_value): Update.
2205 * frame.c (inside_main_func): Update.
2206 * frv-tdep.c (frv_frame_this_id): Update.
2207 * gcore.c (call_target_sbrk): Update.
2208 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2209 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2211 * go-lang.c (go_main_name): Update.
2212 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
2213 (hppa_hpux_find_import_stub_for_addr): Update.
2214 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
2215 Update. Change return type.
2216 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
2218 * jit.c (jit_breakpoint_re_set_internal): Update.
2219 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
2221 * linux-nat.c (get_signo): Update.
2222 * linux-thread-db.c (inferior_has_bug): Update
2223 * m32c-tdep.c (m32c_return_value)
2224 (m32c_m16c_address_to_pointer): Update.
2225 * m32r-tdep.c (m32r_frame_this_id): Update.
2226 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2227 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2228 * minsyms.c (lookup_minimal_symbol_internal): Rename to
2229 lookup_minimal_symbol. Change return type.
2230 (lookup_minimal_symbol): Remove.
2231 (lookup_bound_minimal_symbol): Update.
2232 (lookup_minimal_symbol_text): Change return type.
2233 (lookup_minimal_symbol_solib_trampoline): Change return type.
2234 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
2235 (lookup_minimal_symbol_solib_trampoline): Change return type.
2236 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2237 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2238 (value_nsstring, find_imps): Update.
2239 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2240 * p-lang.c (pascal_main_name): Update.
2241 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
2242 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2243 * proc-service.c (ps_pglobal_lookup): Update.
2244 * ravenscar-thread.c (get_running_thread_msymbol): Change
2246 (has_ravenscar_runtime, get_running_thread_id): Update.
2247 * remote.c (remote_check_symbols): Update.
2248 * sol-thread.c (ps_pglobal_lookup): Update.
2249 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2250 * solib-dsbt.c (lm_base): Update.
2251 * solib-frv.c (lm_base, frv_relocate_section_addresses):
2253 * solib-irix.c (locate_base): Update.
2254 * solib-som.c (som_solib_create_inferior_hook)
2255 (som_solib_desire_dynamic_linker_symbols, link_map_start):
2257 * solib-spu.c (spu_enable_break): Update.
2258 * solib-svr4.c (elf_locate_base, enable_break): Update.
2259 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2260 (flush_ea_cache): Update.
2261 * stabsread.c (define_symbol): Update.
2262 * symfile.c (simple_read_overlay_table): Update.
2263 * symtab.c (find_pc_sect_line): Update.
2264 * tracepoint.c (scope_info): Update.
2265 * tui-disasm.c (tui_get_begin_asm_address): Update.
2266 * value.c (value_static_field): Update.
2268 2014-02-26 Tom Tromey <tromey@redhat.com>
2270 * minsyms.c (prim_record_minimal_symbol_full): Use
2271 SET_MSYMBOL_VALUE_ADDRESS.
2272 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
2273 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
2274 SET_MSYMBOL_VALUE_ADDRESS.
2275 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2276 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
2278 2014-02-26 Tom Tromey <tromey@redhat.com>
2280 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
2281 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
2282 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
2283 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
2284 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
2285 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
2286 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
2287 * ada-lang.c (ada_main_name): Update.
2288 (ada_lookup_simple_minsym): Update.
2289 (ada_make_symbol_completion_list): Update.
2290 (ada_add_standard_exceptions): Update.
2291 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
2292 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2293 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
2294 * arm-tdep.c (skip_prologue_function): Update.
2295 (arm_skip_stack_protector, arm_skip_stub): Update.
2296 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
2297 (arm_wince_skip_main_prologue): Update.
2298 * auxv.c (ld_so_xfer_auxv): Update.
2299 * avr-tdep.c (avr_scan_prologue): Update.
2300 * ax-gdb.c (gen_var_ref): Update.
2301 * block.c (call_site_for_pc): Update.
2302 * blockframe.c (get_pc_function_start): Update.
2303 (find_pc_partial_function_gnu_ifunc): Update.
2304 * breakpoint.c (create_overlay_event_breakpoint): Update.
2305 (create_longjmp_master_breakpoint): Update.
2306 (create_std_terminate_master_breakpoint): Update.
2307 (create_exception_master_breakpoint): Update.
2308 (resolve_sal_pc): Update.
2309 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2310 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
2312 * c-valprint.c (c_val_print): Update.
2313 * coff-pe-read.c (add_pe_forwarded_sym): Update.
2314 * coffread.c (coff_symfile_read): Update.
2315 * common/agent.c (agent_look_up_symbols): Update.
2316 * dbxread.c (find_stab_function_addr): Update.
2317 (end_psymtab): Update.
2318 * dwarf2loc.c (call_site_to_target_addr): Update.
2319 (func_verify_no_selftailcall): Update.
2320 (tailcall_dump): Update.
2321 (call_site_find_chain_1): Update.
2322 (dwarf_expr_reg_to_entry_parameter): Update.
2323 * elfread.c (elf_gnu_ifunc_record_cache): Update.
2324 (elf_gnu_ifunc_resolve_by_got): Update.
2325 * f-valprint.c (info_common_command): Update.
2326 * findvar.c (read_var_value): Update.
2327 * frame.c (get_prev_frame_1): Update.
2328 (inside_main_func): Update.
2329 * frv-tdep.c (frv_skip_main_prologue): Update.
2330 (frv_frame_this_id): Update.
2331 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2332 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
2333 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
2334 (gnuv3_skip_trampoline): Update.
2335 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
2336 (hppa64_hpux_in_solib_call_trampoline): Update.
2337 (hppa_hpux_skip_trampoline_code): Update.
2338 (hppa64_hpux_search_dummy_call_sequence): Update.
2339 (hppa_hpux_find_import_stub_for_addr): Update.
2340 (hppa_hpux_find_dummy_bpaddr): Update.
2341 * hppa-tdep.c (hppa_symbol_address)
2342 (hppa_lookup_stub_minimal_symbol): Update.
2343 * i386-tdep.c (i386_skip_main_prologue): Update.
2344 (i386_pe_skip_trampoline_code): Update.
2345 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
2346 * infcall.c (get_function_name): Update.
2347 * infcmd.c (until_next_command): Update.
2348 * jit.c (jit_breakpoint_re_set_internal): Update.
2349 (jit_inferior_init): Update.
2350 * linespec.c (minsym_found): Update.
2351 (add_minsym): Update.
2352 * linux-fork.c (info_checkpoints_command): Update.
2353 * linux-nat.c (get_signo): Update.
2354 * linux-thread-db.c (inferior_has_bug): Update.
2355 * m32c-tdep.c (m32c_return_value): Update.
2356 (m32c_m16c_address_to_pointer): Update.
2357 (m32c_m16c_pointer_to_address): Update.
2358 * m32r-tdep.c (m32r_frame_this_id): Update.
2359 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2360 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2361 * maint.c (maintenance_translate_address): Update.
2362 * minsyms.c (add_minsym_to_hash_table): Update.
2363 (add_minsym_to_demangled_hash_table): Update.
2364 (msymbol_objfile): Update.
2365 (lookup_minimal_symbol): Update.
2366 (iterate_over_minimal_symbols): Update.
2367 (lookup_minimal_symbol_text): Update.
2368 (lookup_minimal_symbol_by_pc_name): Update.
2369 (lookup_minimal_symbol_solib_trampoline): Update.
2370 (lookup_minimal_symbol_by_pc_section_1): Update.
2371 (lookup_minimal_symbol_and_objfile): Update.
2372 (prim_record_minimal_symbol_full): Update.
2373 (compare_minimal_symbols): Update.
2374 (compact_minimal_symbols): Update.
2375 (build_minimal_symbol_hash_tables): Update.
2376 (install_minimal_symbols): Update.
2377 (terminate_minimal_symbol_table): Update.
2378 (find_solib_trampoline_target): Update.
2379 (minimal_symbol_upper_bound): Update.
2380 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2381 * mips-tdep.c (mips_stub_frame_sniffer): Update.
2382 (mips_skip_pic_trampoline_code): Update.
2383 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
2384 * objc-lang.c (selectors_info): Update.
2385 (classes_info): Update.
2386 (find_methods): Update.
2387 (find_imps): Update.
2388 (find_objc_msgsend): Update.
2389 * objfiles.c (objfile_relocate1): Update.
2390 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
2391 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2392 * p-valprint.c (pascal_val_print): Update.
2393 * parse.c (write_exp_msymbol): Update.
2394 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
2395 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
2396 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2397 * printcmd.c (build_address_symbolic): Update.
2399 (address_info): Update.
2400 * proc-service.c (ps_pglobal_lookup): Update.
2401 * psymtab.c (find_pc_sect_psymtab_closer): Update.
2402 (find_pc_sect_psymtab): Update.
2403 * python/py-framefilter.c (py_print_frame): Update.
2404 * ravenscar-thread.c (get_running_thread_id): Update.
2405 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
2407 * remote.c (remote_check_symbols): Update.
2408 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
2409 (rs6000_skip_trampoline_code): Update.
2410 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
2411 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2412 * solib-dsbt.c (lm_base): Update.
2413 * solib-frv.c (lm_base): Update.
2415 * solib-irix.c (locate_base): Update.
2416 * solib-som.c (som_solib_create_inferior_hook): Update.
2417 (som_solib_desire_dynamic_linker_symbols): Update.
2418 (link_map_start): Update.
2419 * solib-spu.c (spu_enable_break): Update.
2420 (ocl_enable_break): Update.
2421 * solib-svr4.c (elf_locate_base): Update.
2422 (enable_break): Update.
2423 * spu-tdep.c (spu_get_overlay_table): Update.
2424 (spu_catch_start): Update.
2425 (flush_ea_cache): Update.
2426 * stabsread.c (define_symbol): Update.
2427 (scan_file_globals): Update.
2428 * stack.c (find_frame_funname): Update.
2429 (frame_info): Update.
2430 * symfile.c (simple_read_overlay_table): Update.
2431 (simple_overlay_update): Update.
2432 * symmisc.c (dump_msymbols): Update.
2433 * symtab.c (fixup_section): Update.
2434 (find_pc_sect_line): Update.
2435 (skip_prologue_sal): Update.
2436 (search_symbols): Update.
2437 (print_msymbol_info): Update.
2438 (rbreak_command): Update.
2439 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
2440 (completion_list_objc_symbol): Update.
2441 (default_make_symbol_completion_list_break_on): Update.
2442 * tracepoint.c (scope_info): Update.
2443 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
2444 (tui_get_begin_asm_address): Update.
2445 * valops.c (find_function_in_inferior): Update.
2446 * value.c (value_static_field): Update.
2447 (value_fn_field): Update.
2449 2014-02-26 Tom Tromey <tromey@redhat.com>
2451 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
2452 bound minimal symbols. Move code that knows about minsym
2454 * minsyms.c (minimal_symbol_upper_bound): ... here. New
2456 * minsyms.h (minimal_symbol_upper_bound): Declare.
2457 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
2458 minimal_symbol_upper_bound.
2460 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2462 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
2463 Use the type's name if its basic type does not have a tag.
2465 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2467 * dwarf2read.c (read_subrange_type): Add comment.
2469 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2471 * dwarf2read.c (update_enumeration_type_from_children): New
2472 function, mostly extracted from process_structure_scope.
2473 (read_enumeration_type): Call update_enumeration_type_from_children.
2474 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
2475 and flag_flag_enum fields.
2477 2014-02-26 Pedro Alves <palves@redhat.com>
2479 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
2480 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
2481 to_xfer_partial method.
2483 2014-02-26 Pedro Alves <palves@redhat.com>
2485 * target.c (complete_target_initialization): Don't install
2486 default_xfer_partial as to_xfer_partial hook.
2488 (update_current_target): Don't INHERIT nor de_fault
2489 deprecated_xfer_memory. Delete de_fault macro.
2490 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
2491 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
2492 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
2495 2014-02-26 Pedro Alves <palves@redhat.com>
2497 * go32-nat.c (my_write_child): New function.
2498 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
2499 (go32_xfer_partial): New function.
2500 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
2501 Instead install a to_xfer_partial hook.
2503 2014-02-26 Pedro Alves <palves@redhat.com>
2505 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
2506 to_xfer_partial helper. Rewrite.
2507 (procfs_xfer_partial): New function.
2508 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
2509 Install a to_xfer_partial hook.
2511 2014-02-26 Pedro Alves <palves@redhat.com>
2513 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
2514 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
2515 (m32r_xfer_partial): New function.
2516 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
2517 Install a to_xfer_partial hook.
2519 2014-02-26 Pedro Alves <palves@redhat.com>
2521 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
2523 (mips_xfer_partial): New function.
2524 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
2525 hook. Install a to_xfer_partial hook.
2527 2014-02-26 Joel Brobecker <brobecker@adacore.com>
2529 * gdbtypes.h (create_array_type_with_stride): Add declaration.
2530 * gdbtypes.c (create_array_type_with_stride): New function,
2531 renaming create_array_type, but with an added parameter
2532 called "bit_stride".
2533 (create_array_type): Re-implement using
2534 create_array_type_with_stride.
2535 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
2536 and DW_AT_bit_stride attributes.
2538 2014-02-26 Pedro Alves <palves@redhat.com>
2540 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
2541 task-specific breakpoints.
2543 2014-02-25 Pedro Alves <palves@redhat.com>
2545 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
2546 handling of object == TARGET_OBJECT_UNWIND_TABLE.
2548 2014-02-25 Stan Shebs <stan@codesourcery.com>
2550 * defs.h: Annotate comments for Doxygen.
2552 2014-02-25 Tom Tromey <tromey@redhat.com>
2554 * target.h (target_ignore): Don't declare.
2555 * target.c (target_ignore): Remove.
2557 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2560 * auto-load.c (auto_load_objfile_script_1): Change filename to
2563 2014-02-25 Joel Brobecker <brobecker@adacore.com>
2565 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
2566 documentation. Adjust prototype to match the target_ops
2567 to_xfer_partial method. Adjust implementation accordingly.
2569 2014-02-25 Hui Zhu <hui@codesourcery.com>
2571 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
2574 2014-02-25 Kevin Buettner <kevinb@redhat.com>
2576 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
2577 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
2578 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
2579 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
2580 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
2581 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
2582 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
2583 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
2585 (rl78_register_type): Use a data pointer type for SP and
2586 new pseudo registers mentioned above. Use a 16 bit integer
2587 type for all other register pairs.
2588 (rl78_register_name, rl78_g10_register_name): Update for
2589 new pseudo registers.
2590 (rl78_pseudo_register_read): Likewise.
2591 (rl78_pseudo_register_write): Likewise.
2592 (rl78_dwarf_reg_to_regnum): Return register numbers representing
2593 to the newly added pseudo registers.
2595 2014-02-24 Doug Evans <dje@google.com>
2597 * value.c (record_latest_value): Fix comment.
2598 * printcmd.c (print_command_1): Remove code to handle -1 return from
2599 record_latest_value.
2601 2014-02-24 Pedro Alves <palves@redhat.com>
2603 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
2604 deprecated_xfer_memory hook.
2605 (procfs_xfer_partial): Call procfs_xfer_memory instead
2606 of the deprecated_xfer_memory target hook.
2607 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
2610 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
2612 * windows-nat.c (windows_xfer_shared_libraries): Return
2613 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
2614 requested object is TARGET_OBJECT_LIBRARIES.
2616 2014-02-24 Yao Qi <yao@codesourcery.com>
2618 * target.h (enum target_xfer_status)
2619 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
2620 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
2622 * corefile.c (memory_error_message): User updated.
2623 * exec.c (section_table_read_available_memory): Likewise.
2624 * record-btrace.c (record_btrace_xfer_partial): Likewise.
2625 * target.c (target_xfer_status_to_string): Likewise.
2626 (raw_memory_xfer_partial): Likewise.
2627 (memory_xfer_partial_1, target_xfer_partial): Likewise.
2628 * valops.c (read_value_memory): Likewise.
2629 * exec.h: Update comments.
2631 2014-02-24 Yao Qi <yao@codesourcery.com>
2633 * target.c (target_xfer_status_to_string): Rename argument err
2635 * target.h (target_xfer_status_to_string): Update declaration.
2636 Replace target_xfer_error_to_string with
2637 target_xfer_status_to_string in comment.
2639 2014-02-24 Yao Qi <yao@codesourcery.com>
2641 * mips-linux-nat.c (super_close): Update its type.
2642 (mips_linux_close): Pass 'self' to super_close.
2644 2014-02-24 Yao Qi <yao@codesourcery.com>
2646 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
2647 * corefile.c (read_memory): Adjusted.
2648 * target.c (target_write_with_progress): Adjusted.
2650 2014-02-23 Yao Qi <yao@codesourcery.com>
2654 2013-10-25 Yao Qi <yao@codesourcery.com>
2656 * remote.c (remote_traceframe_info): Return early if
2657 traceframe is not selected.
2659 2013-07-19 Yao Qi <yao@codesourcery.com>
2661 * target.c (update_current_target): Change the default action
2662 of 'to_traceframe_info' from tcomplain to return_zero.
2663 * target.h (struct target_ops) <to_traceframe_info>: Add more
2666 2014-02-23 Yao Qi <yao@codesourcery.com>
2668 * valops.c (read_value_memory): Rewrite it. Call
2669 target_xfer_partial in a loop.
2670 * exec.h (section_table_available_memory): Remove declaration.
2671 Move comments to ...
2672 * exec.c (section_table_available_memory): ... here. Make it
2675 2014-02-23 Yao Qi <yao@codesourcery.com>
2677 * exec.c (section_table_read_available_memory): New function.
2678 * exec.h (section_table_read_available_memory): Declare.
2679 * ctf.c (ctf_xfer_partial): Call
2680 section_table_read_available_memory.
2681 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2683 2014-02-23 Yao Qi <yao@codesourcery.com>
2685 * ctf.c (ctf_xfer_partial): Move code to ...
2686 * exec.c (exec_read_partial_read_only): ... it. New function.
2687 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2688 * tracefile.c: Include "exec.h".
2689 * exec.h (exec_read_partial_read_only): Declare.
2691 2014-02-23 Yao Qi <yao@codesourcery.com>
2693 * tracefile-tfile.c (tfile_has_all_memory): Remove.
2694 (tfile_has_memory): Remove.
2695 (init_tfile_ops): Don't set fields to_has_all_memory and
2696 to_has_memory of tfile_ops.
2697 * tracefile.c (tracefile_has_all_memory): New function.
2698 (tracefile_has_memory): New function.
2699 (init_tracefile_ops): Initialize fields to_has_all_memory and
2700 to_has_memory of 'ops'.
2702 2014-02-23 Yao Qi <yao@codesourcery.com>
2704 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
2705 (ctf_thread_alive, ctf_get_trace_status): Remove.
2706 (init_ctf_ops): Don't set some fields of ctf_ops. Call
2708 * tracefile-tfile.c (tfile_get_trace_status): Remove.
2709 (tfile_has_stack, tfile_has_registers): Remove.
2710 (tfile_thread_alive): Remove.
2711 (init_tfile_ops): Don't set some fields of tfile_ops. Call
2713 * tracefile.c (tracefile_has_stack): New function.
2714 (tracefile_has_registers): New function.
2715 (tracefile_thread_alive): New function.
2716 (tracefile_get_trace_status): New function.
2717 (init_tracefile_ops): New function.
2718 * tracefile.h (init_tracefile_ops): Declare.
2720 2014-02-23 Yao Qi <yao@codesourcery.com>
2722 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
2723 (O_LARGEFILE): Likewise.
2724 (tfile_ops): Likewise.
2725 (TRACE_HEADER_SIZE): Likewise.
2726 (trace_fd, trace_frames_offset, cur_offset): Likewise.
2727 (cur_data_size): Likewise.
2728 (tfile_read, tfile_open, tfile_interp_line): Likewise.
2729 (tfile_close, tfile_files_info): Likewise.
2730 (tfile_get_trace_status): Likewise.
2731 (tfile_get_tracepoint_status): Likewise.
2732 (tfile_get_traceframe_address): Likewise.
2733 (tfile_trace_find, match_blocktype): Likewise.
2734 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
2735 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
2736 (tfile_get_trace_state_variable_value): Likewise.
2737 (tfile_has_all_memory, tfile_has_memory): Likewise.
2738 (tfile_has_stack, tfile_has_registers): Likewise.
2739 (tfile_thread_alive, build_traceframe_info): Likewise.
2740 (tfile_traceframe_info, init_tfile_ops): Likewise.
2741 (_initialize_tracepoint): Don't call init_tfile_ops
2742 and add_target_with_completer.
2743 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
2744 exec.h, completer.h and filenames.h.
2745 (_initialize_tracefile_tfile): New function.
2747 2014-02-23 Yao Qi <yao@codesourcery.com>
2749 * Makefile.in (REMOTE_OBS): Append tracefile.o and
2751 (HFILES_NO_SRCDIR): Add tracefile.h.
2752 * ctf.c: Include "tracefile.h".
2753 * tracefile.h: New file.
2754 * tracefile.c: New file
2755 * tracefile-tfile.c: New file.
2756 * tracepoint.c: Include "tracefile.h".
2757 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
2758 (stop_reason_names): Add const.
2759 (trace_file_writer_xfree): Move it to tracefile.c.
2760 (trace_save, trace_save_command, trace_save_tfile): Likewise.
2761 (trace_save_ctf): Likewise.
2762 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
2763 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
2764 (tfile_write_header, tfile_write_regblock_type): Likewise.
2765 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
2766 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
2767 (tfile_write_raw_data, tfile_end): Likewise.
2768 (tfile_trace_file_writer_new): Likewise.
2769 (free_uploaded_tp): Make it extern.
2770 (free_uploaded_tsv): Make it extern.
2771 (_initialize_tracepoint): Move code to register command 'tsave'
2773 * tracepoint.h (stop_reason_names): Declare.
2774 (struct trace_frame_write_ops): Move it to tracefile.h.
2775 (struct trace_file_write_ops): Likewise.
2776 (struct trace_file_writer): Likewise.
2777 (free_uploaded_tsvs, free_uploaded_tps): Declare.
2779 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2782 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
2784 (get_cores_used_by_process): New parameter num_cores, use it.
2785 (linux_xfer_osdata_processes): Pass num_cores to it.
2786 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
2789 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
2791 * target.c (memory_xfer_partial): Fix length arg in call to
2792 breakpoint_xfer_memory.
2794 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
2797 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
2798 number comes after the + or - signs. Adjust length of register
2799 name to be extracted.
2801 2014-02-20 Tom Tromey <tromey@redhat.com>
2803 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
2804 (ada_varobj_ops): Mark "extern".
2806 2014-02-20 Tom Tromey <tromey@redhat.com>
2808 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
2810 2014-02-20 Doug Evans <xdje42@gmail.com>
2812 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
2813 All callers updated.
2814 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
2815 All callers updated.
2816 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
2817 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
2819 2014-02-20 lin zuojian <manjian2006@gmail.com>
2820 Joel Brobecker <brobecker@adacore.com>
2821 Doug Evans <xdje42@gmail.com>
2824 * dwarf2read.c (struct die_info): New member in_process.
2825 (reset_die_in_process): New function.
2826 (process_die): Set it at the start, reset when returning.
2827 (inherit_abstract_dies): Only call process_die if origin_child_die
2828 not already being processed.
2830 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2832 * windows-nat.c (handle_unload_dll): Add function documentation.
2833 (do_initial_windows_stuff): Add comment explaining why we wait
2834 until after inferior initialization has finished before
2835 processing all DLLs.
2837 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2839 * windows-nat.c (get_module_name): Delete.
2840 (windows_get_exec_module_filename): New function, mostly
2841 inspired from get_module_name.
2842 (windows_pid_to_exec_file): Replace call to get_module_name
2843 by call to windows_get_exec_module_filename.
2845 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2847 * windows-nat.c (handle_load_dll): Rewrite this function's
2848 introductory comment. Remove code using get_module_name
2849 to get the DLL's name.
2851 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2853 * windows-nat.c (get_windows_debug_event): Ignore
2854 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
2855 if windows_initialization_done == 0.
2856 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
2857 Adjust implementation to always load all DLLs.
2858 (do_initial_windows_stuff): Replace call to
2859 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
2861 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2863 * windows-nat.c (_initialize_windows_nat): Deprecate the
2864 "dll-symbols" command. Turn the "add-shared-symbol-files"
2865 and "assf" aliases into commands, and deprecate them as well.
2866 * NEWS: Add entry explaining that "dll-symbols" and its two
2867 aliases are now deprecated.
2869 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2871 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
2872 new-line in debug string. Remove trailing spaces.
2874 2014-02-19 Stan Shebs <stan@codesourcery.com>
2876 * darwin-nat.c (darwin_xfer_partial): Fix return type.
2878 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
2880 * NEWS: Add entry for the new feature
2881 * python/py-value.c (valpy_binop): Call value_x_binop for struct
2884 2014-02-19 Stan Shebs <stan@codesourcery.com>
2886 * MAINTAINERS: List Yao Qi as nios2 maintainer.
2888 2014-02-19 Pedro Alves <palves@redhat.com>
2890 * common/ptid.h (struct ptid): Mention that process_stratum
2891 targets should prefer ptid.lwp.
2893 2014-02-19 Pedro Alves <palves@redhat.com>
2895 * remote.c (remote_thread_alive, write_ptid, read_ptid)
2896 (read_ptid, remote_newthread_step, remote_threads_extra_info)
2897 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
2898 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
2899 store remote thread ids rather than ptid.tid.
2900 (_initialize_remote): Adjust.
2902 2014-02-19 Tom Tromey <tromey@redhat.com>
2904 * target.c (target_get_unwinder): Rewrite.
2905 (target_get_tailcall_unwinder): Rewrite.
2906 * record-btrace.c (record_btrace_to_get_unwinder): New function.
2907 (record_btrace_to_get_tailcall_unwinder): New function.
2908 (init_record_btrace_ops): Update.
2909 * target.h (struct target_ops) <to_get_unwinder,
2910 to_get_tailcall_unwinder>: Now function pointers. Use
2911 TARGET_DEFAULT_RETURN.
2913 2014-02-19 Tom Tromey <tromey@redhat.com>
2915 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
2917 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
2919 2014-02-19 Tom Tromey <tromey@redhat.com>
2921 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
2923 * target-delegates.c: Rebuild.
2924 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
2925 TARGET_DEFAULT_FUNC.
2926 * target.c (default_target_decr_pc_after_break): Rename from
2927 forward_target_decr_pc_after_break. Simplify.
2928 (target_decr_pc_after_break): Rely on delegation.
2930 2014-02-19 Tom Tromey <tromey@redhat.com>
2932 * target.c (update_current_target): Do not INHERIT to_doc or
2933 to_magic. Do not de_fault to_open or to_close.
2935 2014-02-19 Tom Tromey <tromey@redhat.com>
2937 * gcore.h (objfile_find_memory_regions): Declare.
2938 * gcore.c (objfile_find_memory_regions): No longer static. Add
2940 (_initialize_gcore): Don't call exec_set_find_memory_regions.
2941 * exec.c: Include gcore.h.
2942 (exec_set_find_memory_regions): Remove.
2943 (exec_find_memory_regions): Remove.
2944 (exec_do_find_memory_regions): Remove.
2945 (init_exec_ops): Update.
2946 * defs.h (exec_set_find_memory_regions): Remove.
2948 2014-02-19 Tom Tromey <tromey@redhat.com>
2950 * target-delegates.c: Rebuild.
2951 * target.h (struct target_ops) <to_extra_thread_info,
2952 to_thread_name, to_pid_to_exec_file, to_get_section_table,
2953 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
2954 not 0, in TARGET_DEFAULT_RETURN.
2956 2014-02-19 Tom Tromey <tromey@redhat.com>
2958 * target.c (complete_target_initialization): Remove casts. Use
2959 return_zero_has_execution.
2960 (return_zero): Add "ignore" argument.
2961 (return_zero_has_execution): New function.
2962 (init_dummy_target): Remove casts. Use
2963 return_zero_has_execution.
2965 2014-02-19 Tom Tromey <tromey@redhat.com>
2967 * target.c (update_current_target): Update comments. Do not
2970 2014-02-19 Tom Tromey <tromey@redhat.com>
2972 * arm-linux-nat.c (arm_linux_read_description): Delegate when
2974 * corelow.c (core_read_description): Delegate when needed.
2975 * remote.c (remote_read_description): Delegate when needed.
2976 * target-delegates.c: Rebuild.
2977 * target.c (target_read_description): Rewrite.
2978 * target.h (struct target_ops) <to_read_description>: Update
2979 comment. Use TARGET_DEFAULT_RETURN.
2981 2014-02-19 Tom Tromey <tromey@redhat.com>
2983 * target-delegates.c: Rebuild.
2984 * target.c (update_current_target): Don't inherit or default
2986 (find_default_run_target): Check against delegate_can_run.
2987 * target.h (struct target_ops) <to_can_run>: Use
2988 TARGET_DEFAULT_RETURN.
2990 2014-02-19 Tom Tromey <tromey@redhat.com>
2992 * target-delegates.c: Rebuild.
2993 * target.c (target_disconnect): Unconditionally delegate.
2994 * target.h (struct target_ops) <to_disconnect>: Use
2995 TARGET_DEFAULT_NORETURN.
2997 2014-02-19 Tom Tromey <tromey@redhat.com>
2999 * record.c (record_stop): Unconditionally delegate.
3000 * target-delegates.c: Rebuild.
3001 * target.c (target_stop_recording): Unconditionally delegate.
3002 * target.h (struct target_ops) <to_stop_recording>: Use
3003 TARGET_DEFAULT_IGNORE.
3005 2014-02-19 Tom Tromey <tromey@redhat.com>
3007 * target-delegates.c: Rebuild.
3008 * target.c (target_enable_btrace): Unconditionally delegate.
3009 * target.h (struct target_ops) <to_enable_btrace>: Use
3010 TARGET_DEFAULT_NORETURN.
3012 2014-02-19 Tom Tromey <tromey@redhat.com>
3014 * target-delegates.c: Rebuild.
3015 * target.c (target_read_btrace): Unconditionally delegate.
3016 * target.h (struct target_ops) <to_read_btrace>: Use
3017 TARGET_DEFAULT_NORETURN.
3019 2014-02-19 Tom Tromey <tromey@redhat.com>
3021 * target-delegates.c: Rebuild.
3022 * target.c (target_teardown_btrace): Unconditionally delegate.
3023 * target.h (struct target_ops) <to_teardown_btrace>: Use
3024 TARGET_DEFAULT_NORETURN.
3026 2014-02-19 Tom Tromey <tromey@redhat.com>
3028 * target-delegates.c: Rebuild.
3029 * target.c (target_disable_btrace): Unconditionally delegate.
3030 * target.h (struct target_ops) <to_disable_btrace>: Use
3031 TARGET_DEFAULT_NORETURN.
3033 2014-02-19 Tom Tromey <tromey@redhat.com>
3035 * target-delegates.c: Rebuild.
3036 * target.c (default_search_memory): New function.
3037 (simple_search_memory): Update comment.
3038 (target_search_memory): Unconditionally delegate.
3039 * target.h (struct target_ops) <to_search_memory>: Use
3040 TARGET_DEFAULT_FUNC.
3042 2014-02-19 Tom Tromey <tromey@redhat.com>
3044 * auxv.c (default_auxv_parse): No longer static.
3045 (target_auxv_parse): Unconditionally delegate.
3046 * auxv.h (default_auxv_parse): Declare.
3047 * target-delegates.c: Rebuild.
3048 * target.c: Include auxv.h.
3049 * target.h (struct target_ops) <to_auxv_parse>: Use
3050 TARGET_DEFAULT_FUNC.
3052 2014-02-19 Tom Tromey <tromey@redhat.com>
3054 * target-delegates.c: Rebuild.
3055 * target.c (target_memory_map): Unconditionally delegate.
3056 * target.h (struct target_ops) <to_memory_map>: Use
3057 TARGET_DEFAULT_RETURN.
3059 2014-02-19 Tom Tromey <tromey@redhat.com>
3061 * target-delegates.c: Rebuild.
3062 * target.c (target_thread_alive): Unconditionally delegate.
3063 * target.h (struct target_ops) <to_thread_alive>: Use
3064 TARGET_DEFAULT_RETURN.
3066 2014-02-19 Tom Tromey <tromey@redhat.com>
3068 * target-delegates.c: Rebuild.
3069 * target.c (target_save_record): Unconditionally delegate.
3070 * target.h (struct target_ops) <to_save_record>: Use
3071 TARGET_DEFAULT_NORETURN.
3073 2014-02-19 Tom Tromey <tromey@redhat.com>
3075 * target-delegates.c: Rebuild.
3076 * target.c (target_delete_record): Unconditionally delegate.
3077 * target.h (struct target_ops) <to_delete_record>: Use
3078 TARGET_DEFAULT_NORETURN.
3080 2014-02-19 Tom Tromey <tromey@redhat.com>
3082 * target-delegates.c: Rebuild.
3083 * target.c (target_record_is_replaying): Unconditionally
3085 * target.h (struct target_ops) <to_record_is_replaying>: Use
3086 TARGET_DEFAULT_RETURN.
3088 2014-02-19 Tom Tromey <tromey@redhat.com>
3090 * target-delegates.c: Rebuild.
3091 * target.c (target_goto_record_begin): Unconditionally delegate.
3092 * target.h (struct target_ops) <to_goto_record_begin>: Use
3093 TARGET_DEFAULT_NORETURN.
3095 2014-02-19 Tom Tromey <tromey@redhat.com>
3097 * target-delegates.c: Rebuild.
3098 * target.c (target_goto_record_end): Unconditionally delegate.
3099 * target.h (struct target_ops) <to_goto_record_end>: Use
3100 TARGET_DEFAULT_NORETURN.
3102 2014-02-19 Tom Tromey <tromey@redhat.com>
3104 * target-delegates.c: Rebuild.
3105 * target.c (target_goto_record): Unconditionally delegate.
3106 * target.h (struct target_ops) <to_goto_record>: Use
3107 TARGET_DEFAULT_NORETURN.
3109 2014-02-19 Tom Tromey <tromey@redhat.com>
3111 * target-delegates.c: Rebuild.
3112 * target.c (target_insn_history): Unconditionally delegate.
3113 * target.h (struct target_ops) <to_insn_history>: Use
3114 TARGET_DEFAULT_NORETURN.
3116 2014-02-19 Tom Tromey <tromey@redhat.com>
3118 * target-delegates.c: Rebuild.
3119 * target.c (target_insn_history_from): Unconditionally delegate.
3120 * target.h (struct target_ops) <to_insn_history_from>: Use
3121 TARGET_DEFAULT_NORETURN.
3123 2014-02-19 Tom Tromey <tromey@redhat.com>
3125 * target-delegates.c: Rebuild.
3126 * target.c (target_insn_history_range): Unconditionally delegate.
3127 * target.h (struct target_ops) <to_insn_history_range>: Use
3128 TARGET_DEFAULT_NORETURN.
3130 2014-02-19 Tom Tromey <tromey@redhat.com>
3132 * target-delegates.c: Rebuild.
3133 * target.c (target_call_history): Unconditionally delegate.
3134 * target.h (struct target_ops) <to_call_history>: Use
3135 TARGET_DEFAULT_NORETURN.
3137 2014-02-19 Tom Tromey <tromey@redhat.com>
3139 * target-delegates.c: Rebuild.
3140 * target.c (target_call_history_from): Unconditionally delegate.
3141 * target.h (struct target_ops) <to_call_history_from>: Use
3142 TARGET_DEFAULT_NORETURN.
3144 2014-02-19 Tom Tromey <tromey@redhat.com>
3146 * target-delegates.c: Rebuild.
3147 * target.c (target_call_history_range): Unconditionally delegate.
3148 * target.h (struct target_ops) <to_call_history_range>: Use
3149 TARGET_DEFAULT_NORETURN.
3151 2014-02-19 Tom Tromey <tromey@redhat.com>
3153 * target-delegates.c: Rebuild.
3154 * target.c (target_verify_memory): Unconditionally delegate.
3155 * target.h (struct target_ops) <to_verify_memory>: Use
3156 TARGET_DEFAULT_NORETURN.
3158 2014-02-19 Tom Tromey <tromey@redhat.com>
3160 * target-delegates.c: Rebuild.
3161 * target.c (target_core_of_thread): Unconditionally delegate.
3162 * target.h (struct target_ops) <to_core_of_thread>: Use
3163 TARGET_DEFAULT_RETURN.
3165 2014-02-19 Tom Tromey <tromey@redhat.com>
3167 * target-delegates.c: Rebuild.
3168 * target.c (target_flash_done): Unconditionally delegate.
3169 * target.h (struct target_ops) <to_flash_done>: Use
3170 TARGET_DEFAULT_NORETURN.
3172 2014-02-19 Tom Tromey <tromey@redhat.com>
3174 * target-delegates.c: Rebuild.
3175 * target.c (target_flash_erase): Unconditionally delegate.
3176 * target.h (struct target_ops) <to_flash_erase>: Use
3177 TARGET_DEFAULT_NORETURN.
3179 2014-02-19 Tom Tromey <tromey@redhat.com>
3181 * target-delegates.c: Rebuild.
3182 * target.c (target_get_section_table): Unconditionally delegate.
3183 * target.h (struct target_ops) <to_get_section_table>: Use
3184 TARGET_DEFAULT_RETURN.
3186 2014-02-19 Tom Tromey <tromey@redhat.com>
3188 * target-delegates.c: Rebuild.
3189 * target.c (target_pid_to_str): Unconditionally delegate.
3190 (init_dummy_target): Don't initialize to_pid_to_str.
3191 (default_pid_to_str): Rename from dummy_pid_to_str.
3192 * target.h (struct target_ops) <to_pid_to_str>: Use
3193 TARGET_DEFAULT_FUNC.
3195 2014-02-19 Tom Tromey <tromey@redhat.com>
3197 * target-delegates.c: Rebuild.
3198 * target.c (target_find_new_threads): Unconditionally delegate.
3199 * target.h (struct target_ops) <to_find_new_threads>: Use
3200 TARGET_DEFAULT_RETURN.
3202 2014-02-19 Tom Tromey <tromey@redhat.com>
3204 * target-delegates.c: Rebuild.
3205 * target.c (target_program_signals): Unconditionally delegate.
3206 * target.h (struct target_ops) <to_program_signals>: Use
3207 TARGET_DEFAULT_IGNORE.
3209 2014-02-19 Tom Tromey <tromey@redhat.com>
3211 * target-delegates.c: Rebuild.
3212 * target.c (target_pass_signals): Unconditionally delegate.
3213 * target.h (struct target_ops) <to_pass_signals>: Use
3214 TARGET_DEFAULT_IGNORE.
3216 2014-02-19 Tom Tromey <tromey@redhat.com>
3218 * target-delegates.c: Rebuild.
3219 * target.c (default_mourn_inferior): New function.
3220 (target_mourn_inferior): Unconditionally delegate.
3221 * target.h (struct target_ops) <to_mourn_inferior>: Use
3222 TARGET_DEFAULT_FUNC.
3224 2014-02-19 Tom Tromey <tromey@redhat.com>
3226 * target-delegates.c: Rebuild.
3227 * target.c (default_follow_fork): New function.
3228 (target_follow_fork): Unconditionally delegate.
3229 * target.h (struct target_ops) <to_follow_fork>: Use
3230 TARGET_DEFAULT_FUNC.
3232 2014-02-19 Tom Tromey <tromey@redhat.com>
3234 * target-delegates.c: Rebuild.
3235 * target.c (target_kill): Unconditionally delegate.
3236 * target.h (struct target_ops) <to_kill>: Use
3237 TARGET_DEFAULT_NORETURN.
3239 2014-02-19 Tom Tromey <tromey@redhat.com>
3241 * target-delegates.c: Rebuild.
3242 * target.c (target_masked_watch_num_registers): Unconditionally
3244 * target.h (struct target_ops) <to_masked_watch_num_registers>:
3245 Use TARGET_DEFAULT_RETURN.
3247 2014-02-19 Tom Tromey <tromey@redhat.com>
3249 * target-delegates.c: Rebuild.
3250 * target.c (target_remove_mask_watchpoint): Unconditionally
3252 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
3253 TARGET_DEFAULT_RETURN.
3255 2014-02-19 Tom Tromey <tromey@redhat.com>
3257 * target-delegates.c: Rebuild.
3258 * target.c (target_insert_mask_watchpoint): Unconditionally
3260 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
3261 TARGET_DEFAULT_RETURN.
3263 2014-02-19 Tom Tromey <tromey@redhat.com>
3265 * target-delegates.c: Rebuild.
3266 * target.c (target_ranged_break_num_registers): Unconditionally
3268 * target.h (struct target_ops) <to_ranged_break_num_registers>:
3269 Use TARGET_DEFAULT_RETURN.
3271 2014-02-19 Tom Tromey <tromey@redhat.com>
3273 * target-delegates.c: Rebuild.
3274 * target.c (target_fetch_registers): Unconditionally delegate.
3275 * target.h (struct target_ops) <to_fetch_registers>: Use
3276 TARGET_DEFAULT_NORETURN.
3278 2014-02-19 Tom Tromey <tromey@redhat.com>
3280 * target-delegates.c: Rebuild.
3281 * target.c (update_current_target): Don't inherit or default
3283 * target.h (struct target_ops) <to_stop>: Use
3284 TARGET_DEFAULT_IGNORE.
3286 2014-02-19 Tom Tromey <tromey@redhat.com>
3288 * target-delegates.c: Rebuild.
3289 * target.c (update_current_target): Don't inherit or default
3290 to_can_run_breakpoint_commands.
3291 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
3292 Use TARGET_DEFAULT_RETURN.
3294 2014-02-19 Tom Tromey <tromey@redhat.com>
3296 * target-delegates.c: Rebuild.
3297 * target.c (update_current_target): Don't inherit or default
3298 to_supports_evaluation_of_breakpoint_conditions.
3299 * target.h (struct target_ops)
3300 <to_supports_evaluation_of_breakpoint_conditions>: Use
3301 TARGET_DEFAULT_RETURN.
3303 2014-02-19 Tom Tromey <tromey@redhat.com>
3305 * target-delegates.c: Rebuild.
3306 * target.c (update_current_target): Don't inherit or default
3307 to_augmented_libraries_svr4_read.
3308 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
3309 Use TARGET_DEFAULT_RETURN.
3311 2014-02-19 Tom Tromey <tromey@redhat.com>
3313 * target-delegates.c: Rebuild.
3314 * target.c (update_current_target): Don't inherit or default
3316 * target.h (struct target_ops) <to_can_use_agent>: Use
3317 TARGET_DEFAULT_RETURN.
3319 2014-02-19 Tom Tromey <tromey@redhat.com>
3321 * target-delegates.c: Rebuild.
3322 * target.c (update_current_target): Don't inherit or default
3324 * target.h (struct target_ops) <to_use_agent>: Use
3325 TARGET_DEFAULT_NORETURN.
3327 2014-02-19 Tom Tromey <tromey@redhat.com>
3329 * target-delegates.c: Rebuild.
3330 * target.c (update_current_target): Don't inherit or default
3332 (return_null): Remove.
3333 * target.h (struct target_ops) <to_traceframe_info>: Use
3334 TARGET_DEFAULT_RETURN.
3336 2014-02-19 Tom Tromey <tromey@redhat.com>
3338 * target-delegates.c: Rebuild.
3339 * target.c (update_current_target): Don't inherit or default
3340 to_static_tracepoint_markers_by_strid.
3341 * target.h (struct target_ops)
3342 <to_static_tracepoint_markers_by_strid>: Use
3343 TARGET_DEFAULT_NORETURN.
3345 2014-02-19 Tom Tromey <tromey@redhat.com>
3347 * target-delegates.c: Rebuild.
3348 * target.c (update_current_target): Don't inherit or default
3349 to_static_tracepoint_marker_at.
3350 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
3351 Use TARGET_DEFAULT_RETURN.
3353 2014-02-19 Tom Tromey <tromey@redhat.com>
3355 * target-delegates.c: Rebuild.
3356 * target.c (update_current_target): Don't inherit or default
3358 * target.h (struct target_ops) <to_set_permissions>: Use
3359 TARGET_DEFAULT_IGNORE.
3361 2014-02-19 Tom Tromey <tromey@redhat.com>
3363 * target-delegates.c: Rebuild.
3364 * target.c (update_current_target): Don't inherit or default
3366 * target.h (struct target_ops) <to_get_tib_address>: Use
3367 TARGET_DEFAULT_NORETURN.
3369 2014-02-19 Tom Tromey <tromey@redhat.com>
3371 * target-delegates.c: Rebuild.
3372 * target.c (update_current_target): Don't inherit or default
3374 * target.h (struct target_ops) <to_set_trace_notes>: Use
3375 TARGET_DEFAULT_RETURN.
3377 2014-02-19 Tom Tromey <tromey@redhat.com>
3379 * target-delegates.c: Rebuild.
3380 * target.c (update_current_target): Don't initialize
3381 to_set_trace_buffer_size.
3382 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
3383 TARGET_DEFAULT_IGNORE.
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_set_circular_trace_buffer.
3390 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
3391 TARGET_DEFAULT_IGNORE.
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
3397 to_set_disconnected_tracing.
3398 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
3399 TARGET_DEFAULT_IGNORE.
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
3405 to_get_min_fast_tracepoint_insn_len.
3406 (return_minus_one): Remove.
3407 * target.h (struct target_ops)
3408 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
3410 2014-02-19 Tom Tromey <tromey@redhat.com>
3412 * target-delegates.c: Rebuild.
3413 * target.c (update_current_target): Don't inherit or default
3414 to_get_raw_trace_data.
3415 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
3416 TARGET_DEFAULT_NORETURN.
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_upload_trace_state_variables.
3423 * target.h (struct target_ops) <to_upload_trace_state_variables>:
3424 Use TARGET_DEFAULT_RETURN.
3426 2014-02-19 Tom Tromey <tromey@redhat.com>
3428 * target-delegates.c: Rebuild.
3429 * target.c (update_current_target): Don't inherit or default
3430 to_upload_tracepoints.
3431 * target.h (struct target_ops) <to_upload_tracepoints>: Use
3432 TARGET_DEFAULT_RETURN.
3434 2014-02-19 Tom Tromey <tromey@redhat.com>
3436 * target-delegates.c: Rebuild.
3437 * target.c (update_current_target): Don't inherit or default
3439 * target.h (struct target_ops) <to_save_trace_data>: Use
3440 TARGET_DEFAULT_NORETURN.
3442 2014-02-19 Tom Tromey <tromey@redhat.com>
3444 * target-delegates.c: Rebuild.
3445 * target.c (update_current_target): Don't inherit or default
3446 to_get_trace_state_variable_value.
3447 * target.h (struct target_ops)
3448 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
3450 2014-02-19 Tom Tromey <tromey@redhat.com>
3452 * target-delegates.c: Rebuild.
3453 * target.c (update_current_target): Don't inherit or default
3455 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
3457 2014-02-19 Tom Tromey <tromey@redhat.com>
3459 * target-delegates.c: Rebuild.
3460 * target.c (update_current_target): Don't inherit or default
3462 * target.h (struct target_ops) <to_trace_stop>: Use
3463 TARGET_DEFAULT_NORETURN.
3465 2014-02-19 Tom Tromey <tromey@redhat.com>
3467 * target-delegates.c: Rebuild.
3468 * target.c (update_current_target): Don't inherit or default
3469 to_get_tracepoint_status.
3470 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
3471 TARGET_DEFAULT_NORETURN.
3473 2014-02-19 Tom Tromey <tromey@redhat.com>
3475 * target-delegates.c: Rebuild.
3476 * target.c (update_current_target): Don't inherit or default
3477 to_get_trace_status.
3478 * target.h (struct target_ops) <to_get_trace_status>: Use
3479 TARGET_DEFAULT_RETURN.
3481 2014-02-19 Tom Tromey <tromey@redhat.com>
3483 * target-delegates.c: Rebuild.
3484 * target.c (update_current_target): Don't inherit or default
3486 * target.h (struct target_ops) <to_trace_start>: Use
3487 TARGET_DEFAULT_NORETURN.
3489 2014-02-19 Tom Tromey <tromey@redhat.com>
3491 * target-delegates.c: Rebuild.
3492 * target.c (update_current_target): Don't inherit or default
3493 to_trace_set_readonly_regions.
3494 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
3495 Use TARGET_DEFAULT_NORETURN.
3497 2014-02-19 Tom Tromey <tromey@redhat.com>
3499 * target-delegates.c: Rebuild.
3500 * target.c (update_current_target): Don't inherit or default
3501 to_disable_tracepoint.
3502 * target.h (struct target_ops) <to_disable_tracepoint>: Use
3503 TARGET_DEFAULT_NORETURN.
3505 2014-02-19 Tom Tromey <tromey@redhat.com>
3507 * target-delegates.c: Rebuild.
3508 * target.c (update_current_target): Don't inherit or default
3509 to_enable_tracepoint.
3510 * target.h (struct target_ops) <to_enable_tracepoint>: Use
3511 TARGET_DEFAULT_NORETURN.
3513 2014-02-19 Tom Tromey <tromey@redhat.com>
3515 * target-delegates.c: Rebuild.
3516 * target.c (update_current_target): Don't inherit or default
3517 to_download_trace_state_variable.
3518 * target.h (struct target_ops) <to_download_trace_state_variable>:
3519 Use TARGET_DEFAULT_NORETURN.
3521 2014-02-19 Tom Tromey <tromey@redhat.com>
3523 * target-delegates.c: Rebuild.
3524 * target.c (update_current_target): Don't inherit or default
3525 to_can_download_tracepoint.
3526 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
3527 TARGET_DEFAULT_RETURN.
3529 2014-02-19 Tom Tromey <tromey@redhat.com>
3531 * target-delegates.c: Rebuild.
3532 * target.c (update_current_target): Don't inherit or default
3533 to_download_tracepoint.
3534 * target.h (struct target_ops) <to_download_tracepoint>: Use
3535 TARGET_DEFAULT_NORETURN.
3537 2014-02-19 Tom Tromey <tromey@redhat.com>
3539 * target-delegates.c: Rebuild.
3540 * target.c (update_current_target): Don't inherit or default
3542 * target.h (struct target_ops) <to_trace_init>: Use
3543 TARGET_DEFAULT_RETURN.
3545 2014-02-19 Tom Tromey <tromey@redhat.com>
3547 * target-delegates.c: Rebuild.
3548 * target.c (update_current_target): Don't inherit or default
3549 to_supports_string_tracing.
3550 * target.h (struct target_ops) <to_supports_string_tracing>: Use
3551 TARGET_DEFAULT_RETURN.
3553 2014-02-19 Tom Tromey <tromey@redhat.com>
3555 * target-delegates.c: Rebuild.
3556 * target.c (update_current_target): Don't inherit or default
3557 to_supports_enable_disable_tracepoint.
3558 * target.h (struct target_ops)
3559 <to_supports_enable_disable_tracepoint>: Use
3560 TARGET_DEFAULT_RETURN.
3562 2014-02-19 Tom Tromey <tromey@redhat.com>
3564 * target-delegates.c: Rebuild.
3565 * target.c (update_current_target): Don't inherit or default
3566 to_supports_multi_process.
3567 * target.h (struct target_ops) <to_supports_multi_process>: Use
3568 TARGET_DEFAULT_RETURN.
3570 2014-02-19 Tom Tromey <tromey@redhat.com>
3572 * target-delegates.c: Rebuild.
3573 * target.c (update_current_target): Don't inherit or default
3574 to_get_ada_task_ptid.
3575 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
3576 TARGET_DEFAULT_FUNC.
3578 2014-02-19 Tom Tromey <tromey@redhat.com>
3580 * target-delegates.c: Rebuild.
3581 * target.c (update_current_target): Don't inherit or default
3582 to_thread_architecture.
3583 * target.h (struct target_ops) <to_thread_architecture>: Use
3584 TARGET_DEFAULT_FUNC.
3586 2014-02-19 Tom Tromey <tromey@redhat.com>
3588 * target-delegates.c: Rebuild.
3589 * target.c (update_current_target): Don't inherit or default
3590 to_execution_direction.
3591 * target.h (struct target_ops) <to_execution_direction>: Use
3592 TARGET_DEFAULT_FUNC.
3594 2014-02-19 Tom Tromey <tromey@redhat.com>
3596 * target-delegates.c: Rebuild.
3597 * target.c (update_current_target): Don't inherit or default
3598 to_can_execute_reverse.
3599 * target.h (struct target_ops) <to_can_execute_reverse>: Use
3600 TARGET_DEFAULT_RETURN.
3601 (target_can_execute_reverse): Unconditionally delegate.
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
3608 (dummy_goto_bookmark): Remove.
3609 (init_dummy_target): Don't inherit or default to_goto_bookmark.
3610 * target.h (struct target_ops) <to_goto_bookmark>: Use
3611 TARGET_DEFAULT_NORETURN.
3613 2014-02-19 Tom Tromey <tromey@redhat.com>
3615 * target-delegates.c: Rebuild.
3616 * target.c (update_current_target): Don't inherit or default
3618 (dummy_get_bookmark): Remove.
3619 (init_dummy_target): Don't inherit or default to_get_bookmark.
3620 * target.h (struct target_ops) <to_get_bookmark>: Use
3621 TARGET_DEFAULT_NORETURN
3623 2014-02-19 Tom Tromey <tromey@redhat.com>
3625 * target-delegates.c: Rebuild.
3626 * target.c (update_current_target): Don't inherit or default
3627 to_make_corefile_notes.
3628 (init_dummy_target): Don't initialize to_make_corefile_notes.
3629 * target.h (struct target_ops) <to_make_corefile_notes>: Use
3630 TARGET_DEFAULT_FUNC.
3632 2014-02-19 Tom Tromey <tromey@redhat.com>
3634 * target-delegates.c: Rebuild.
3635 * target.c (update_current_target): Don't inherit or default
3636 to_find_memory_regions.
3637 (init_dummy_target): Don't initialize to_find_memory_regions.
3638 * target.h (struct target_ops) <to_find_memory_regions>: Use
3639 TARGET_DEFAULT_FUNC.
3641 2014-02-19 Tom Tromey <tromey@redhat.com>
3643 * target-delegates.c: Rebuild.
3644 * target.c (update_current_target): Don't inherit or default
3646 * target.h (struct target_ops) <to_log_command>: Use
3647 TARGET_DEFAULT_IGNORE.
3648 (target_log_command): Unconditionally delegate.
3650 2014-02-19 Tom Tromey <tromey@redhat.com>
3652 * target-delegates.c: Rebuild.
3653 * target.c (update_current_target): Don't inherit or default
3654 to_pid_to_exec_file.
3655 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
3656 TARGET_DEFAULT_RETURN.
3658 2014-02-19 Tom Tromey <tromey@redhat.com>
3660 * target-delegates.c: Rebuild.
3661 * target.c (update_current_target): Don't inherit or default
3663 (target_thread_name): Unconditionally delegate.
3664 * target.h (struct target_ops) <to_thread_name>: Use
3665 TARGET_DEFAULT_RETURN.
3667 2014-02-19 Tom Tromey <tromey@redhat.com>
3669 * target-delegates.c: Rebuild.
3670 * target.c (update_current_target): Don't inherit or default
3671 to_extra_thread_info.
3672 * target.h (struct target_ops) <to_extra_thread_info>: Use
3673 TARGET_DEFAULT_RETURN.
3675 2014-02-19 Tom Tromey <tromey@redhat.com>
3677 * target-delegates.c: Rebuild.
3678 * target.c (update_current_target): Don't inherit or default
3680 * target.h (struct target_ops) <to_has_exited>: Use
3681 TARGET_DEFAULT_RETURN..
3683 2014-02-19 Tom Tromey <tromey@redhat.com>
3685 * target-delegates.c: Rebuild.
3686 * target.c (update_current_target): Don't inherit or default
3687 to_set_syscall_catchpoint.
3688 (return_one): Remove.
3689 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
3690 TARGET_DEFAULT_RETURN.
3692 2014-02-19 Tom Tromey <tromey@redhat.com>
3694 * target-delegates.c: Rebuild.
3695 * target.c (update_current_target): Don't inherit or default
3696 to_insert_exec_catchpoint.
3697 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
3698 TARGET_DEFAULT_RETURN.
3700 2014-01-08 Tom Tromey <tromey@redhat.com>
3702 * target-delegates.c: Rebuild.
3703 * target.c (update_current_target): Don't inherit or default
3704 to_insert_exec_catchpoint.
3705 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
3706 TARGET_DEFAULT_RETURN.
3708 2014-02-19 Tom Tromey <tromey@redhat.com>
3710 * target-delegates.c: Rebuild.
3711 * target.c (update_current_target): Don't inherit or default
3712 to_remove_vfork_catchpoint.
3713 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
3714 TARGET_DEFAULT_RETURN.
3716 2014-02-19 Tom Tromey <tromey@redhat.com>
3718 * target-delegates.c: Rebuild.
3719 * target.c (update_current_target): Don't inherit or default
3720 to_insert_vfork_catchpoint.
3721 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
3722 TARGET_DEFAULT_RETURN.
3724 2014-02-19 Tom Tromey <tromey@redhat.com>
3726 * target-delegates.c: Rebuild.
3727 * target.c (update_current_target): Don't inherit or default
3728 to_remove_fork_catchpoint.
3729 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
3730 TARGET_DEFAULT_RETURN.
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_insert_fork_catchpoint.
3737 * target.h (struct target_ops) <to_insert_fork_catchpoint>: 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
3744 to_post_startup_inferior.
3745 * target.h (struct target_ops) <to_post_startup_inferior>: Use
3746 TARGET_DEFAULT_IGNORE.
3748 2014-02-19 Tom Tromey <tromey@redhat.com>
3750 * target-delegates.c: Rebuild.
3751 * target.c (update_current_target): Don't inherit or default
3753 * target.h (struct target_ops) <to_load>: Use
3754 TARGET_DEFAULT_NORETURN.
3756 2014-02-19 Tom Tromey <tromey@redhat.com>
3758 * target-delegates.c: Rebuild.
3759 * target.c (update_current_target): Don't inherit or default
3761 * target.h (struct target_ops) <to_terminal_info>: Use
3762 TARGET_DEFAULT_FUNC.
3764 2014-02-19 Tom Tromey <tromey@redhat.com>
3766 * target-delegates.c: Rebuild.
3767 * target.c (update_current_target): Don't inherit or default
3768 to_terminal_save_ours.
3769 * target.h (struct target_ops) <to_terminal_save_ours>: Use
3770 TARGET_DEFAULT_IGNORE.
3772 2014-02-19 Tom Tromey <tromey@redhat.com>
3774 * target-delegates.c: Rebuild.
3775 * target.c (update_current_target): Don't inherit or default
3777 * target.h (struct target_ops) <to_terminal_ours>: Use
3778 TARGET_DEFAULT_IGNORE.
3780 2014-02-19 Tom Tromey <tromey@redhat.com>
3782 * target-delegates.c: Rebuild.
3783 * target.c (update_current_target): Don't inherit or default
3784 to_terminal_ours_for_output.
3785 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
3786 TARGET_DEFAULT_IGNORE.
3788 2014-02-19 Tom Tromey <tromey@redhat.com>
3790 * target-delegates.c: Rebuild.
3791 * target.c (update_current_target): Don't inherit or default
3792 to_terminal_inferior.
3793 * target.h (struct target_ops) <to_terminal_inferior>: Use
3794 TARGET_DEFAULT_IGNORE.
3796 2014-02-19 Tom Tromey <tromey@redhat.com>
3798 * target-delegates.c: Rebuild.
3799 * target.c (update_current_target): Don't inherit or default
3801 * target.h (struct target_ops) <to_terminal_init>: Use
3802 TARGET_DEFAULT_IGNORE.
3804 2014-02-19 Tom Tromey <tromey@redhat.com>
3806 * target-delegates.c: Rebuild.
3807 * target.c (update_current_target): Don't inherit or default
3808 to_can_accel_watchpoint_condition.
3809 * target.h (struct target_ops)
3810 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
3812 2014-02-19 Tom Tromey <tromey@redhat.com>
3814 * target-delegates.c: Rebuild.
3815 * target.c (update_current_target): Don't inherit or default
3816 to_region_ok_for_hw_watchpoint.
3817 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
3818 Use TARGET_DEFAULT_FUNC.
3820 2014-02-19 Tom Tromey <tromey@redhat.com>
3822 * target-delegates.c: Rebuild.
3823 * target.c (update_current_target): Don't inherit or default
3824 to_watchpoint_addr_within_range.
3825 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
3826 Use TARGET_DEFAULT_FUNC.
3828 2014-02-19 Tom Tromey <tromey@redhat.com>
3830 * target-delegates.c: Rebuild.
3831 * target.c (update_current_target): Don't inherit or default
3832 to_remove_watchpoint.
3833 * target.h (struct target_ops) <to_remove_watchpoint>: Use
3834 TARGET_DEFAULT_NORETURN.
3836 2014-02-19 Tom Tromey <tromey@redhat.com>
3838 * target-delegates.c: Rebuild.
3839 * target.c (update_current_target): Don't inherit or default
3840 to_insert_watchpoint.
3841 * target.h (struct target_ops) <to_insert_watchpoint>: Use
3842 TARGET_DEFAULT_RETURN.
3844 2014-02-19 Tom Tromey <tromey@redhat.com>
3846 * target-delegates.c: Rebuild.
3847 * target.c (update_current_target): Don't inherit or default
3848 to_remove_hw_breakpoint.
3849 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
3850 TARGET_DEFAULT_RETURN.
3852 2014-02-19 Tom Tromey <tromey@redhat.com>
3854 * target-delegates.c: Rebuild.
3855 * target.c (update_current_target): Don't inherit or default
3856 to_insert_hw_breakpoint.
3857 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
3858 TARGET_DEFAULT_RETURN.
3860 2014-02-19 Tom Tromey <tromey@redhat.com>
3862 * target-delegates.c: Rebuild.
3863 * target.c (update_current_target): Don't inherit or default
3864 to_can_use_hw_breakpoint.
3865 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
3866 TARGET_DEFAULT_RETURN.
3868 2014-02-19 Tom Tromey <tromey@redhat.com>
3870 * target-delegates.c: Rebuild.
3871 * target.c (update_current_target): Don't inherit or default
3873 * target.h (struct target_ops) <to_files_info>: Use
3874 TARGET_DEFAULT_IGNORE.
3876 2014-02-19 Tom Tromey <tromey@redhat.com>
3878 * target-delegates.c: Rebuild.
3879 * target.c (update_current_target): Don't inherit or default
3881 * target.h (struct target_ops) <to_store>: Use
3882 TARGET_DEFAULT_NORETURN.
3884 2014-02-19 Tom Tromey <tromey@redhat.com>
3886 * target-delegates.c: Rebuild.
3887 * target.c (update_current_target): Don't inherit or default
3889 * target.h (struct target_ops) <to_post_attach>: Use
3890 TARGET_DEFAULT_IGNORE.
3892 2014-02-19 Tom Tromey <tromey@redhat.com>
3894 * target-delegates.c: Rebuild.
3895 * target.c (update_current_target): Don't inherit or default
3897 (default_rcmd): New function.
3898 (do_monitor_command): Unconditionally delegate.
3899 * target.h (struct target_ops) <to_rmcd>: Use
3900 TARGET_DEFAULT_FUNC.
3902 2014-02-19 Tom Tromey <tromey@redhat.com>
3904 * target-delegates.c: Rebuild.
3905 * target.c (init_dummy_target): Don't initialize to_attach.
3906 (target_attach): Unconditionally delegate.
3907 * target.h (struct target_ops) <to_attach>: Use
3908 TARGET_DEFAULT_FUNC.
3910 2014-02-19 Tom Tromey <tromey@redhat.com>
3912 * target-delegates.c: Rebuild.
3913 * target.c (target_detach): Unconditionally delegate.
3914 (init_dummy_target): Don't initialize to_detach.
3915 * target.h (struct target_ops) <to_detach>: Use
3916 TARGET_DEFAULT_IGNORE.
3918 2014-02-19 Tom Tromey <tromey@redhat.com>
3920 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
3922 (target_augmented_libraries_svr4_read): Add argument.
3923 * target.c (update_current_target): Update.
3924 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
3927 2014-02-19 Tom Tromey <tromey@redhat.com>
3929 * target.h (struct target_ops) <to_call_history_range>: Add
3931 * target.c (target_call_history_range): Add argument.
3932 * record-btrace.c (record_btrace_call_history_range): Add 'self'
3934 (record_btrace_call_history_from): Update.
3936 2014-02-19 Tom Tromey <tromey@redhat.com>
3938 * target.h (struct target_ops) <to_call_history_from>: Add
3940 * target.c (target_call_history_from): Add argument.
3941 * record-btrace.c (record_btrace_call_history_from): Add 'self'
3944 2014-02-19 Tom Tromey <tromey@redhat.com>
3946 * target.h (struct target_ops) <to_call_history>: Add argument.
3947 * target.c (target_call_history): Add argument.
3948 * record-btrace.c (record_btrace_call_history): Add 'self'
3951 2014-02-19 Tom Tromey <tromey@redhat.com>
3953 * target.h (struct target_ops) <to_insn_history_range>: Add
3955 * target.c (target_insn_history_range): Add argument.
3956 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
3958 (record_btrace_insn_history_from): Update.
3960 2014-02-19 Tom Tromey <tromey@redhat.com>
3962 * target.h (struct target_ops) <to_insn_history_from>: Add
3964 * target.c (target_insn_history_from): Add argument.
3965 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
3968 2014-02-19 Tom Tromey <tromey@redhat.com>
3970 * target.h (struct target_ops) <to_insn_history>: Add argument.
3971 * target.c (target_insn_history): Add argument.
3972 * record-btrace.c (record_btrace_insn_history): Add 'self'
3975 2014-02-19 Tom Tromey <tromey@redhat.com>
3977 * target.h (struct target_ops) <to_goto_record>: Add argument.
3978 * target.c (target_goto_record): Add argument.
3979 * record-full.c (record_full_goto): Add 'self' argument.
3980 * record-btrace.c (record_btrace_goto): Add 'self' argument.
3982 2014-02-19 Tom Tromey <tromey@redhat.com>
3984 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
3985 * target.c (target_goto_record_end): Add argument.
3986 * record-full.c (record_full_goto_end): Add 'self' argument.
3987 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
3989 2014-02-19 Tom Tromey <tromey@redhat.com>
3991 * target.h (struct target_ops) <to_goto_record_begin>: Add
3993 * target.c (target_goto_record_begin): Add argument.
3994 * record-full.c (record_full_goto_begin): Add 'self' argument.
3995 * record-btrace.c (record_btrace_goto_begin): Add 'self'
3998 2014-02-19 Tom Tromey <tromey@redhat.com>
4000 * target.h (struct target_ops) <to_record_is_replaying>: Add
4002 * target.c (target_record_is_replaying): Add argument.
4003 * record-full.c (record_full_is_replaying): Add 'self' argument.
4004 * record-btrace.c (record_btrace_is_replaying): Add 'self'
4006 (record_btrace_xfer_partial, record_btrace_store_registers)
4007 (record_btrace_prepare_to_store, record_btrace_resume)
4008 (record_btrace_wait, record_btrace_decr_pc_after_break)
4009 (record_btrace_find_new_threads, record_btrace_thread_alive):
4012 2014-02-19 Tom Tromey <tromey@redhat.com>
4014 * target.h (struct target_ops) <to_delete_record>: Add argument.
4015 * target.c (target_delete_record): Add argument.
4016 * record-full.c (record_full_delete): Add 'self' argument.
4018 2014-02-19 Tom Tromey <tromey@redhat.com>
4020 * target.h (struct target_ops) <to_save_record>: Add argument.
4021 * target.c (target_save_record): Add argument.
4022 * record-full.c (record_full_save): Add 'self' argument.
4023 (record_full_save): Add 'self' argument.
4025 2014-02-19 Tom Tromey <tromey@redhat.com>
4027 * target.h (struct target_ops) <to_info_record>: Add argument.
4028 * target.c (target_info_record): Add argument.
4029 * record.c (info_record_command): Add argument.
4030 * record-full.c (record_full_info): Add 'self' argument.
4031 * record-btrace.c (record_btrace_info): Add 'self' argument.
4033 2014-02-19 Tom Tromey <tromey@redhat.com>
4035 * target.h (struct target_ops) <to_stop_recording>: Add argument.
4036 * target.c (target_stop_recording): Add argument.
4037 * record.c (record_stop): Add argument.
4038 * record-btrace.c (record_btrace_stop_recording): Add 'self'
4041 2014-02-19 Tom Tromey <tromey@redhat.com>
4043 * target.h (struct target_ops) <to_read_btrace>: Add argument.
4044 * target.c (struct target_ops) <to_read_btrace>: Add argument.
4045 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
4047 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
4048 (_initialize_amd64_linux_nat): Use it.
4049 * i386-linux-nat.c (i386_linux_read_btrace): New function.
4050 (_initialize_i386_linux_nat): Use it.
4052 2014-02-19 Tom Tromey <tromey@redhat.com>
4054 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
4055 * target.c (target_teardown_btrace): Add argument.
4056 * remote.c (remote_teardown_btrace): Add 'self' argument.
4057 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
4059 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
4062 2014-02-19 Tom Tromey <tromey@redhat.com>
4064 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
4065 * target.c (target_disable_btrace): Add argument.
4066 * remote.c (remote_disable_btrace): Add 'self' argument.
4067 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
4069 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
4072 2014-02-19 Tom Tromey <tromey@redhat.com>
4074 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
4075 * target.c (target_enable_btrace): Add argument.
4076 * remote.c (remote_enable_btrace): Add 'self' argument.
4077 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
4079 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
4082 2014-02-19 Tom Tromey <tromey@redhat.com>
4084 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
4085 (target_can_use_agent): Add argument.
4086 * target.c (update_current_target): Update.
4087 * remote.c (remote_can_use_agent): Add 'self' argument.
4088 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
4090 2014-02-19 Tom Tromey <tromey@redhat.com>
4092 * target.h (struct target_ops) <to_use_agent>: Add argument.
4093 (target_use_agent): Add argument.
4094 * target.c (update_current_target): Update.
4095 * remote.c (remote_use_agent): Add 'self' argument.
4096 * inf-child.c (inf_child_use_agent): Add 'self' argument.
4098 2014-02-19 Tom Tromey <tromey@redhat.com>
4100 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
4101 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
4102 (target_traceframe_info): Add argument.
4103 * target.c (update_current_target): Update.
4104 * remote.c (remote_traceframe_info): Add 'self' argument.
4105 * ctf.c (ctf_traceframe_info): Add 'self' argument.
4107 2014-02-19 Tom Tromey <tromey@redhat.com>
4109 * target.h (target_static_tracepoint_markers_by_strid): Add
4111 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
4113 * target.c (update_current_target): Update.
4114 * remote.c (struct target_ops)
4115 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
4116 * linux-nat.c (struct target_ops)
4117 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
4119 2014-02-19 Tom Tromey <tromey@redhat.com>
4121 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4123 (target_static_tracepoint_marker_at): Add argument.
4124 * target.c (update_current_target): Update.
4125 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
4128 2014-02-19 Tom Tromey <tromey@redhat.com>
4130 * target.h (struct target_ops) <to_set_permissions>: Add argument.
4131 (target_set_permissions): Add argument.
4132 * target.c (update_current_target): Update.
4133 * remote.c (remote_set_permissions): Add 'self' argument.
4134 (remote_start_remote): Update.
4136 2014-02-19 Tom Tromey <tromey@redhat.com>
4138 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
4139 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
4140 (target_get_tib_address): Add argument.
4141 * target.c (update_current_target): Update.
4142 * remote.c (remote_get_tib_address): Add 'self' argument.
4144 2014-02-19 Tom Tromey <tromey@redhat.com>
4146 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
4147 (target_set_trace_notes): Add argument.
4148 * target.c (update_current_target): Update.
4149 * remote.c (remote_set_trace_notes): Add 'self' argument.
4151 2014-02-19 Tom Tromey <tromey@redhat.com>
4153 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
4155 (target_set_trace_buffer_size): Add argument.
4156 * target.c (update_current_target): Update.
4157 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
4159 2014-02-19 Tom Tromey <tromey@redhat.com>
4161 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
4163 (target_set_circular_trace_buffer): Add argument.
4164 * target.c (update_current_target): Update.
4165 * remote.c (remote_set_circular_trace_buffer): Add 'self'
4168 2014-02-19 Tom Tromey <tromey@redhat.com>
4170 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
4172 (target_set_disconnected_tracing): Add argument.
4173 * target.c (update_current_target): Update.
4174 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
4176 2014-02-19 Tom Tromey <tromey@redhat.com>
4178 * target.h (struct target_ops)
4179 <to_get_min_fast_tracepoint_insn_len>: Add argument.
4180 (target_get_min_fast_tracepoint_insn_len): Add argument.
4181 * target.c (update_current_target): Update.
4182 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
4185 2014-02-19 Tom Tromey <tromey@redhat.com>
4187 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
4189 (target_get_raw_trace_data): Add argument.
4190 * target.c (update_current_target): Update.
4191 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
4193 2014-02-19 Tom Tromey <tromey@redhat.com>
4195 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4197 (target_upload_trace_state_variables): Add argument.
4198 * target.c (update_current_target): Update.
4199 * remote.c (remote_upload_trace_state_variables): Add 'self'
4201 (remote_start_remote): Update.
4203 2014-02-19 Tom Tromey <tromey@redhat.com>
4205 * target.h (struct target_ops) <to_upload_tracepoints>: Add
4207 (target_upload_tracepoints): Add argument.
4208 * target.c (update_current_target): Update.
4209 * remote.c (remote_upload_tracepoints): Add 'self' argument.
4210 (remote_start_remote): Update.
4212 2014-02-19 Tom Tromey <tromey@redhat.com>
4214 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
4215 (target_save_trace_data): Add argument.
4216 * target.c (update_current_target): Update.
4217 * remote.c (remote_save_trace_data): Add 'self' argument.
4219 2014-02-19 Tom Tromey <tromey@redhat.com>
4221 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
4223 * target.h (struct target_ops)
4224 <to_get_trace_state_variable_value>: Add argument.
4225 (target_get_trace_state_variable_value): Add argument.
4226 * target.c (update_current_target): Update.
4227 * remote.c (remote_get_trace_state_variable_value): Add 'self'
4229 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
4231 2014-02-19 Tom Tromey <tromey@redhat.com>
4233 * tracepoint.c (tfile_trace_find): Add 'self' argument.
4234 * target.h (struct target_ops) <to_trace_find>: Add argument.
4235 (target_trace_find): Add argument.
4236 * target.c (update_current_target): Update.
4237 * remote.c (remote_trace_find): Add 'self' argument.
4238 * ctf.c (ctf_trace_find): Add 'self' argument.
4240 2014-02-19 Tom Tromey <tromey@redhat.com>
4242 * target.h (struct target_ops) <to_trace_stop>: Add argument.
4243 (target_trace_stop): Add argument.
4244 * target.c (update_current_target): Update.
4245 * remote.c (remote_trace_stop): Add 'self' argument.
4247 2014-02-19 Tom Tromey <tromey@redhat.com>
4249 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
4250 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
4252 (target_get_tracepoint_status): Add argument.
4253 * target.c (update_current_target): Update.
4254 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
4256 2014-02-19 Tom Tromey <tromey@redhat.com>
4258 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
4259 * target.h (struct target_ops) <to_get_trace_status>: Add
4261 (target_get_trace_status): Add argument.
4262 * target.c (update_current_target): Update.
4263 * remote.c (remote_get_trace_status): Add 'self' argument.
4264 (remote_start_remote, remote_can_download_tracepoint): Update.
4265 * ctf.c (ctf_get_trace_status): Add 'self' argument.
4267 2014-02-19 Tom Tromey <tromey@redhat.com>
4269 * target.h (struct target_ops) <to_trace_start>: Add argument.
4270 (target_trace_start): Add argument.
4271 * target.c (update_current_target): Update.
4272 * remote.c (remote_trace_start): Add 'self' argument.
4274 2014-02-19 Tom Tromey <tromey@redhat.com>
4276 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4278 (target_trace_set_readonly_regions): Add argument.
4279 * target.c (update_current_target): Update.
4280 * remote.c (remote_trace_set_readonly_regions): Add 'self'
4283 2014-02-19 Tom Tromey <tromey@redhat.com>
4285 * target.h (struct target_ops) <to_disable_tracepoint>: Add
4287 (target_disable_tracepoint): Add argument.
4288 * target.c (update_current_target): Update.
4289 * remote.c (remote_disable_tracepoint): Add 'self' argument.
4291 2014-02-19 Tom Tromey <tromey@redhat.com>
4293 * target.h (struct target_ops) <to_enable_tracepoint>: Add
4295 (target_enable_tracepoint): Add argument.
4296 * target.c (update_current_target): Update.
4297 * remote.c (remote_enable_tracepoint): Add 'self' argument.
4299 2014-02-19 Tom Tromey <tromey@redhat.com>
4301 * target.h (struct target_ops) <to_download_trace_state_variable>:
4303 (target_download_trace_state_variable): Add argument.
4304 * target.c (update_current_target): Update.
4305 * remote.c (remote_download_trace_state_variable): Add 'self'
4308 2014-02-19 Tom Tromey <tromey@redhat.com>
4310 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
4312 (target_can_download_tracepoint): Add argument.
4313 * target.c (update_current_target): Update.
4314 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
4316 2014-02-19 Tom Tromey <tromey@redhat.com>
4318 * target.h (struct target_ops) <to_download_tracepoint>: Add
4320 (target_download_tracepoint): Add argument.
4321 * target.c (update_current_target): Update.
4322 * remote.c (remote_download_tracepoint): Add 'self' argument.
4324 2014-02-19 Tom Tromey <tromey@redhat.com>
4326 * target.h (struct target_ops) <to_trace_init>: Add argument.
4327 (target_trace_init): Add argument.
4328 * target.c (update_current_target): Update.
4329 * remote.c (remote_trace_init): Add 'self' argument.
4331 2014-02-19 Tom Tromey <tromey@redhat.com>
4333 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
4334 * target.c (target_fileio_readlink): Add argument.
4335 * remote.c (remote_hostio_readlink): Add 'self' argument.
4336 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
4338 2014-02-19 Tom Tromey <tromey@redhat.com>
4340 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
4341 * target.c (target_fileio_unlink): Add argument.
4342 * remote.c (remote_hostio_unlink): Add 'self' argument.
4343 (remote_file_delete): Update.
4344 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
4346 2014-02-19 Tom Tromey <tromey@redhat.com>
4348 * target.h (struct target_ops) <to_fileio_close>: Add argument.
4349 * target.c (target_fileio_close): Add argument.
4350 * remote.c (remote_hostio_close): Add 'self' argument.
4351 (remote_hostio_close_cleanup): Update.
4352 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
4354 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
4356 2014-02-19 Tom Tromey <tromey@redhat.com>
4358 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
4359 * target.c (target_fileio_pread): Add argument.
4360 * remote.c (remote_hostio_pread): Add 'self' argument.
4361 (remote_bfd_iovec_pread, remote_file_get): Update.
4362 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
4364 2014-02-19 Tom Tromey <tromey@redhat.com>
4366 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
4367 * target.c (target_fileio_pwrite): Add argument.
4368 * remote.c (remote_hostio_pwrite): Add 'self' argument.
4369 (remote_file_put): Update.
4370 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
4372 2014-02-19 Tom Tromey <tromey@redhat.com>
4374 * target.h (struct target_ops) <to_fileio_open>: Add argument.
4375 * target.c (target_fileio_open): Add argument.
4376 * remote.c (remote_hostio_open): Add 'self' argument.
4377 (remote_bfd_iovec_open): Add 'self' argument.
4378 (remote_file_put): Add 'self' argument.
4379 (remote_file_get): Add 'self' argument.
4380 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
4382 2014-02-19 Tom Tromey <tromey@redhat.com>
4384 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4386 (target_can_run_breakpoint_commands): Add argument.
4387 * target.c (update_current_target): Update.
4388 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
4390 (remote_insert_breakpoint): Add 'self' argument.
4391 (remote_insert_hw_breakpoint): Add 'self' argument.
4392 (remote_can_run_breakpoint_commands): Add 'self' argument.
4394 2014-02-19 Tom Tromey <tromey@redhat.com>
4396 * target.h (struct target_ops)
4397 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
4398 (target_supports_evaluation_of_breakpoint_conditions): Add
4400 * target.c (update_current_target): Update.
4401 * remote.c (remote_supports_cond_breakpoints): Add 'self'
4403 (remote_insert_breakpoint): Add 'self' argument.
4404 (remote_insert_hw_breakpoint): Add 'self' argument.
4405 (remote_supports_cond_breakpoints): Add 'self' argument.
4407 2014-02-19 Tom Tromey <tromey@redhat.com>
4409 * target.h (struct target_ops) <to_supports_string_tracing>: Add
4411 (target_supports_string_tracing): Add argument.
4412 * target.c (update_current_target): Update.
4413 * remote.c (remote_supports_string_tracing): Add 'self' argument.
4415 2014-02-19 Tom Tromey <tromey@redhat.com>
4417 * target.h (struct target_ops)
4418 <to_supports_disable_randomization>: Add argument.
4419 * target.c (find_default_supports_disable_randomization): Add
4421 (target_supports_disable_randomization): Add argument.
4422 (find_default_supports_disable_randomization): Add 'self'
4424 * remote.c (extended_remote_supports_disable_randomization): Add
4426 (remote_supports_disable_randomization): Add 'self' argument.
4427 (extended_remote_create_inferior): Update.
4428 * linux-nat.c (linux_nat_supports_disable_randomization): Add
4431 2014-02-19 Tom Tromey <tromey@redhat.com>
4433 * target.h (struct target_ops)
4434 <to_supports_enable_disable_tracepoint>: Add argument.
4435 (target_supports_enable_disable_tracepoint): Add argument.
4436 * target.c (update_current_target): Update.
4437 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
4440 2014-02-19 Tom Tromey <tromey@redhat.com>
4442 * target.h (struct target_ops) <to_supports_multi_process>: Add
4444 (target_supports_multi_process): Add argument.
4445 * target.c (update_current_target): Update.
4446 * remote.c (remote_supports_multi_process): Add 'self' argument.
4447 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
4449 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
4452 2014-02-19 Tom Tromey <tromey@redhat.com>
4454 * target.h (struct target_ops) <to_execution_direction>: Add
4456 (target_execution_direction): Add argument.
4457 * target.c (default_execution_direction): Add 'self' argument.
4458 * record-full.c (record_full_execution_direction): Add 'self'
4461 2014-02-19 Tom Tromey <tromey@redhat.com>
4463 * target.h (struct target_ops) <to_can_execute_reverse>: Add
4465 (target_can_execute_reverse): Add argument.
4466 * remote.c (remote_can_execute_reverse): Add 'self' argument.
4467 * record-full.c (record_full_can_execute_reverse): Add 'self'
4469 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
4472 2014-02-19 Tom Tromey <tromey@redhat.com>
4474 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
4475 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
4477 (target_get_ada_task_ptid): Add argument.
4478 * target.c (update_current_target): Update.
4479 (default_get_ada_task_ptid): Add 'self' argument.
4480 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
4481 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
4482 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
4484 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
4486 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
4488 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
4490 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
4491 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
4494 2014-02-19 Tom Tromey <tromey@redhat.com>
4496 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
4497 (target_goto_bookmark): Add argument.
4498 * target.c (dummy_goto_bookmark): Add 'self' argument.
4499 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
4501 2014-02-19 Tom Tromey <tromey@redhat.com>
4503 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
4504 (target_get_bookmark): Add argument.
4505 * target.c (dummy_get_bookmark): Add 'self' argument.
4506 * record-full.c (record_full_get_bookmark): Add 'self' argument.
4508 2014-02-19 Tom Tromey <tromey@redhat.com>
4510 * target.h (struct target_ops) <to_make_corefile_notes>: Add
4512 (target_make_corefile_notes): Add argument.
4513 * target.c (dummy_make_corefile_notes): Add 'self' argument.
4514 * procfs.c (procfs_make_note_section): Add 'self' argument.
4515 (procfs_make_note_section): Add 'self' argument.
4516 (procfs_make_note_section): Add 'self' argument.
4517 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
4519 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
4520 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
4521 * exec.c (exec_make_note_section): Add 'self' argument.
4522 (exec_make_note_section): Add 'self' argument.
4524 2014-02-19 Tom Tromey <tromey@redhat.com>
4526 * target.h (struct target_ops) <to_find_memory_regions>: Add
4528 (target_find_memory_regions): Add argument.
4529 * target.c (dummy_find_memory_regions): Add 'self' argument.
4530 * procfs.c (proc_find_memory_regions): Add 'self' argument.
4531 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
4532 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
4533 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
4534 * exec. (exec_do_find_memory_regions): New global.
4535 (exec_set_find_memory_regions): Rewrite.
4536 (exec_find_memory_regions): New function.
4537 (init_exec_ops): Use exec_find_memory_regions.
4539 2014-02-19 Tom Tromey <tromey@redhat.com>
4541 * target.h (struct target_ops) <to_supports_non_stop>: Add
4543 * target.c (find_default_supports_non_stop): Add argument.
4544 (target_supports_non_stop): Add argument.
4545 (find_default_supports_non_stop): Add 'self' argument.
4546 * remote.c (remote_supports_non_stop): Add 'self' argument.
4547 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
4549 2014-02-19 Tom Tromey <tromey@redhat.com>
4551 * target.h (struct target_ops) <to_log_command>: Add argument.
4552 (target_log_command): Add argument.
4553 * serial.h (serial_log_command): Add 'self' argument.
4554 * serial.c (serial_log_command): Add 'self' argument.
4556 2014-02-19 Tom Tromey <tromey@redhat.com>
4558 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
4559 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
4561 (target_pid_to_exec_file): Add argument.
4562 * target.c (debug_to_pid_to_exec_file): Add argument.
4563 (update_current_target): Update.
4564 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
4565 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
4566 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
4567 (linux_handle_extended_wait): Update.
4568 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
4569 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
4570 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
4571 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
4573 2014-02-19 Tom Tromey <tromey@redhat.com>
4575 * target.h (struct target_ops) <to_rcmd>: Add argument.
4576 (target_rcmd): Add argument.
4577 * target.c (debug_to_rcmd): Add argument.
4578 (update_current_target, do_monitor_command): Update.
4579 * remote.c (remote_rcmd): Add 'self' argument.
4580 * monitor.c (monitor_rcmd): Add 'self' argument.
4582 2014-02-19 Tom Tromey <tromey@redhat.com>
4584 * windows-nat.c (windows_stop): Add 'self' argument.
4585 * target.h (struct target_ops) <to_stop>: Add argument.
4586 * target.c (target_stop): Add argument.
4587 (debug_to_stop): Add argument.
4588 (update_current_target): Update.
4589 * remote.c (remote_stop): Add 'self' argument.
4590 * remote-sim.c (gdbsim_stop): Add 'self' argument.
4591 (gdbsim_cntrl_c): Update.
4592 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
4593 * procfs.c (procfs_stop): Add 'self' argument.
4594 * nto-procfs.c (procfs_stop): Add 'self' argument.
4595 * monitor.c (monitor_stop): Add 'self' argument.
4596 (monitor_open): Update.
4597 * linux-nat.c (linux_nat_stop): Add argument.
4598 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
4599 * gnu-nat.c (gnu_stop): Add 'self' argument.
4600 * darwin-nat.c (darwin_stop): Add 'self' argument.
4602 2014-02-19 Tom Tromey <tromey@redhat.com>
4604 * target.h (struct target_ops) <to_thread_name>: Add argument.
4605 * target.c (target_thread_name): Add argument.
4606 (update_current_target): Update.
4607 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
4609 2014-02-19 Tom Tromey <tromey@redhat.com>
4611 * target.h (struct target_ops) <to_extra_thread_info>: Add
4613 (target_extra_thread_info): Add argument.
4614 * target.c (update_current_target): Update.
4615 * remote.c (remote_threads_extra_info): Add 'self' argument.
4616 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
4618 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
4619 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
4620 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
4622 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
4624 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
4626 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
4629 2014-02-19 Tom Tromey <tromey@redhat.com>
4631 * target.h (struct target_ops) <to_program_signals>: Add argument.
4632 * target.c (target_program_signals): Add argument.
4633 * remote.c (remote_program_signals): Add 'self' argument.
4635 2014-02-19 Tom Tromey <tromey@redhat.com>
4637 * target.h (struct target_ops) <to_pass_signals>: Add argument.
4638 * target.c (target_pass_signals): Add argument.
4639 * remote.c (remote_pass_signals): Add 'self' argument.
4640 (remote_start_remote): Update.
4641 * procfs.c (procfs_pass_signals): Add 'self' argument.
4642 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
4643 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
4644 (linux_nat_create_inferior, linux_nat_attach): Update.
4646 2014-02-19 Tom Tromey <tromey@redhat.com>
4648 * windows-nat.c (windows_can_run): Add 'self' argument.
4649 * target.h (struct target_ops) <to_can_run>: Add argument.
4650 (target_can_run): Add argument.
4651 * target.c (debug_to_can_run): Add argument.
4652 (update_current_target): Update.
4653 * nto-procfs.c (procfs_can_run): Add 'self' argument.
4654 * inf-child.c (inf_child_can_run): Add 'self' argument.
4655 * go32-nat.c (go32_can_run): Add 'self' argument.
4657 2014-02-19 Tom Tromey <tromey@redhat.com>
4659 * target.h (struct target_ops) <to_has_exited>: Add argument.
4660 (target_has_exited): Add argument.
4661 * target.c (debug_to_has_exited): Add argument.
4662 (update_current_target): Update.
4664 2014-02-19 Tom Tromey <tromey@redhat.com>
4666 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
4668 (target_set_syscall_catchpoint): Add argument.
4669 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
4671 * target.c (update_current_target): Update.
4673 2014-02-19 Tom Tromey <tromey@redhat.com>
4675 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
4677 (target_remove_exec_catchpoint): Add argument.
4678 * target.c (debug_to_remove_exec_catchpoint): Add argument.
4679 (update_current_target): Update.
4680 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
4683 2014-02-19 Tom Tromey <tromey@redhat.com>
4685 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
4687 (target_insert_exec_catchpoint): Add argument.
4688 * target.c (debug_to_insert_exec_catchpoint): Add argument.
4689 (update_current_target): Update.
4690 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
4693 2014-02-19 Tom Tromey <tromey@redhat.com>
4695 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
4697 (target_remove_vfork_catchpoint): Add argument.
4698 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
4699 (update_current_target): Update.
4700 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
4703 2014-02-19 Tom Tromey <tromey@redhat.com>
4705 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
4707 (target_insert_vfork_catchpoint): Add argument.
4708 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
4709 (update_current_target): Update.
4710 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
4713 2014-02-19 Tom Tromey <tromey@redhat.com>
4715 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
4717 (target_remove_fork_catchpoint): Add argument.
4718 * target.c (debug_to_remove_fork_catchpoint): Add argument.
4719 (update_current_target): Update.
4720 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
4723 2014-02-19 Tom Tromey <tromey@redhat.com>
4725 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
4727 (target_insert_fork_catchpoint): Add argument.
4728 * target.c (debug_to_insert_fork_catchpoint): Add argument.
4729 (update_current_target): Update.
4730 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
4733 2014-02-19 Tom Tromey <tromey@redhat.com>
4735 * target.h (struct target_ops) <to_post_startup_inferior>: Add
4737 (target_post_startup_inferior): Add argument.
4738 * target.c (debug_to_post_startup_inferior): Add argument.
4739 (update_current_target): Update.
4740 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
4742 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
4744 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
4746 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
4748 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
4750 (super_post_startup_inferior): Likewise.
4751 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
4753 (super_post_startup_inferior): Likewise.
4754 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
4755 Add 'self' argument.
4756 (super_post_startup_inferior): Likewise.
4758 2014-02-19 Tom Tromey <tromey@redhat.com>
4760 * target.h (struct target_ops) <to_load>: Add argument.
4761 * target.c (target_load): Add argument.
4762 (debug_to_load): Add argument.
4763 (update_current_target): Update.
4764 * remote.c (remote_load): Add 'self' argument.
4765 * remote-sim.c (gdbsim_load): Add 'self' argument.
4766 * remote-mips.c (mips_load): Add 'self' argument.
4767 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
4768 * monitor.c (monitor_load): Add 'self' argument.
4769 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
4771 2014-02-19 Tom Tromey <tromey@redhat.com>
4773 * target.h (struct target_ops) <to_terminal_info>: Add argument.
4774 (target_terminal_info): Add argument.
4775 * target.c (debug_to_terminal_info): Add argument.
4776 (default_terminal_info): Likewise.
4777 * inflow.c (child_terminal_info): Add 'self' argument.
4778 * inferior.h (child_terminal_info): Add 'self' argument.
4779 * go32-nat.c (go32_terminal_info): Add 'self' argument.
4781 2014-02-19 Tom Tromey <tromey@redhat.com>
4783 * target.h (struct target_ops) <to_terminal_save_ours>: Add
4785 (target_terminal_save_ours): Add argument.
4786 * target.c (debug_to_terminal_save_ours): Add argument.
4787 (update_current_target): Update.
4788 * inflow.c (terminal_save_ours): Add 'self' argument.
4789 * inferior.h (terminal_save_ours): Add 'self' argument.
4791 2014-02-19 Tom Tromey <tromey@redhat.com>
4793 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
4794 (target_terminal_ours): Add argument.
4795 * target.c (debug_to_terminal_ours): Add argument.
4796 (update_current_target): Update.
4797 * remote.c (remote_terminal_ours): Add 'self' argument.
4798 (remote_close): Update.
4799 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
4800 * inflow.c (terminal_ours): Add 'self' argument.
4801 * inferior.h (terminal_ours): Add 'self' argument.
4802 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
4804 2014-02-19 Pedro Alves <palves@redhat.com>
4805 Tom Tromey <tromey@redhat.com>
4807 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
4809 (target_terminal_ours_for_output): Add argument.
4810 * target.c (debug_to_terminal_ours_for_output): Add argument.
4811 (update_current_target): Update.
4812 * inflow.c (terminal_ours_for_output): Add 'self' argument.
4813 * inferior.h (terminal_ours_for_output): Add 'self' argument.
4814 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
4816 2014-02-19 Tom Tromey <tromey@redhat.com>
4818 * target.h (struct target_ops) <to_terminal_inferior>: Add
4820 * target.c (target_terminal_inferior): Add argument.
4821 (update_current_target): Update.
4822 * remote.c (remote_terminal_inferior): Add 'self' argument.
4823 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
4824 * inflow.c (terminal_inferior): Add 'self' argument.
4825 * inferior.h (terminal_inferior): Add 'self' argument.
4826 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
4827 (go32_terminal_inferior): Add 'self' argument.
4829 2014-02-19 Tom Tromey <tromey@redhat.com>
4831 * target.h (struct target_ops) <to_terminal_init>: Add argument.
4832 (target_terminal_init): Add argument.
4833 * target.c (debug_to_terminal_init): Add argument.
4834 (update_current_target): Update.
4835 * inflow.c (terminal_init_inferior): Add 'self' argument.
4836 * inferior.h (terminal_init_inferior): Add 'self' argument.
4837 * go32-nat.c (go32_terminal_init): Add 'self' argument.
4838 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
4840 2014-02-19 Tom Tromey <tromey@redhat.com>
4842 * target.h (struct target_ops)
4843 <to_can_accel_watchpoint_condition>: Add argument.
4844 (target_can_accel_watchpoint_condition): Add argument.
4845 * target.c (debug_to_can_accel_watchpoint_condition): Add
4847 (update_current_target): Update.
4848 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
4851 2014-02-19 Tom Tromey <tromey@redhat.com>
4853 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4855 (target_region_ok_for_hw_watchpoint): Add argument.
4856 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
4857 (default_region_ok_for_hw_watchpoint): Add argument.
4858 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
4859 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
4861 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
4863 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
4865 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
4867 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
4869 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
4871 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
4872 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
4874 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
4875 Add 'self' argument.
4877 2014-02-19 Tom Tromey <tromey@redhat.com>
4879 * target.h (struct target_ops) <to_insert_watchpoint>: Add
4881 (target_insert_watchpoint): Add argument.
4882 * target.c (debug_to_insert_watchpoint): Add argument.
4883 (update_current_target): Update.
4884 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
4885 * remote.c (remote_insert_watchpoint): Add 'self' argument.
4886 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
4887 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
4888 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
4889 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
4891 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
4892 (procfs_insert_hw_watchpoint): Add 'self' argument.
4893 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
4895 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
4897 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
4899 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
4900 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
4902 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
4905 2014-02-19 Tom Tromey <tromey@redhat.com>
4907 * target.h (struct target_ops) <to_remove_watchpoint>: Add
4909 (target_remove_watchpoint): Add argument.
4910 * target.c (debug_to_remove_watchpoint): Add argument.
4911 (update_current_target): Update.
4912 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
4913 * remote.c (remote_remove_watchpoint): Add 'self' argument.
4914 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
4915 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
4916 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
4917 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
4919 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
4920 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
4922 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
4924 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
4926 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
4927 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
4929 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
4932 2014-02-19 Tom Tromey <tromey@redhat.com>
4934 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
4936 (target_remove_hw_breakpoint): Add argument.
4937 * target.c (debug_to_remove_hw_breakpoint): Add argument.
4938 (update_current_target): Update.
4939 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
4940 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
4942 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
4943 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
4945 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
4948 2014-02-19 Tom Tromey <tromey@redhat.com>
4950 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
4952 (target_insert_hw_breakpoint): Add argument.
4953 * target.c (debug_to_insert_hw_breakpoint): Add argument.
4954 (update_current_target): Update.
4955 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
4956 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
4958 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
4959 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
4960 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
4962 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
4965 2014-02-19 Tom Tromey <tromey@redhat.com>
4967 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
4969 (target_can_use_hardware_watchpoint): Add argument.
4970 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
4971 (update_current_target): Update.
4972 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
4974 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
4976 * remote.c (remote_check_watch_resources): Add 'self' argument.
4977 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
4978 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
4980 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
4981 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
4983 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
4985 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
4987 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
4989 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
4991 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
4993 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
4994 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
4996 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
4999 2014-02-19 Tom Tromey <tromey@redhat.com>
5001 * target.h (struct target_ops) <to_post_attach>: Add argument.
5002 (target_post_attach): Add argument.
5003 * target.c (debug_to_post_attach): Add argument.
5004 (update_current_target): Update.
5005 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
5006 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
5007 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
5008 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
5009 * inf-child.c (inf_child_post_attach): Add 'self' argument.
5011 2014-02-19 Tom Tromey <tromey@redhat.com>
5013 * windows-nat.c (windows_close): Add 'self' argument.
5014 * tracepoint.c (tfile_close): Add 'self' argument.
5015 * target.h (struct target_ops) <to_close>: Add argument.
5016 * target.c (target_close): Add argument.
5017 (update_current_target): Update.
5018 * remote.c (remote_close): Add 'self' argument.
5019 * remote-sim.c (gdbsim_close): Add 'self' argument.
5020 * remote-mips.c (mips_close): Add 'self' argument.
5021 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
5022 * record-full.c (record_full_close): Add 'self' argument.
5023 * record-btrace.c (record_btrace_close): Add 'self' argument.
5024 * monitor.h (monitor_close): Add 'self' argument.
5025 * monitor.c (monitor_close): Add 'self' argument.
5026 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
5027 * linux-nat.c (linux_nat_close): Add argument.
5028 * go32-nat.c (go32_close): Add 'self' argument.
5029 * exec.c (exec_close_1): Add 'self' argument.
5030 * ctf.c (ctf_close): Add 'self' argument.
5031 * corelow.c (core_close): Add 'self' argument.
5032 (core_close_cleanup): Update.
5033 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
5034 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
5036 2014-02-19 Tom Tromey <tromey@redhat.com>
5038 * remote.c (remote_load): New function.
5039 (init_remote_ops): Use it.
5041 2014-02-19 Tom Tromey <tromey@redhat.com>
5043 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
5045 * common/linux-btrace.h (linux_supports_btrace): Update.
5046 * remote.c (remote_supports_btrace): Add "self" argument.
5047 * target-delegates.c: Rebuild.
5048 * target.c (target_supports_btrace): Remove.
5049 * target.h (struct target_ops) <to_supports_btrace>: Add
5050 target_ops argument.
5051 (target_supports_btrace): New define.
5053 2014-02-19 Tom Tromey <tromey@redhat.com>
5055 * record-full.c (record_full_beneath_to_resume_ops)
5056 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
5057 (record_full_beneath_to_wait)
5058 (record_full_beneath_to_store_registers_ops)
5059 (record_full_beneath_to_store_registers)
5060 (record_full_beneath_to_xfer_partial_ops)
5061 (record_full_beneath_to_xfer_partial)
5062 (record_full_beneath_to_insert_breakpoint_ops)
5063 (record_full_beneath_to_insert_breakpoint)
5064 (record_full_beneath_to_remove_breakpoint_ops)
5065 (record_full_beneath_to_remove_breakpoint)
5066 (record_full_beneath_to_stopped_by_watchpoint)
5067 (record_full_beneath_to_stopped_data_address)
5068 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
5069 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
5070 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
5071 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
5072 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
5073 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
5074 (tmp_to_stopped_data_address, tmp_to_async): Remove.
5075 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
5076 (record_full_resume, record_full_wait_1)
5077 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
5078 (record_full_store_registers, record_full_xfer_partial)
5079 (record_full_insert_breakpoint, record_full_remove_breakpoint)
5080 (record_full_async, record_full_core_xfer_partial): Use target
5082 * target-delegates.c: Rebuild.
5083 * target.c (current_xfer_partial): Remove.
5084 (update_current_target): Do not INHERIT or de_fault
5085 to_insert_breakpoint, to_remove_breakpoint,
5086 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
5087 to_is_async_p, to_async. Do not set to_xfer_partial field.
5088 (default_xfer_partial): Simplify.
5089 (current_xfer_partial): Remove.
5090 (target_wait, target_resume): Simplify.
5091 (find_default_can_async_p, find_default_is_async_p): Update.
5092 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
5093 to_xfer_partial, to_stopped_by_watchpoint,
5094 to_stopped_data_address.
5095 (target_store_registers): Simplify.
5096 (forward_target_remove_breakpoint)
5097 (forward_target_insert_breakpoint): Remove.
5098 (target_remove_breakpoint, target_insert_breakpoint)
5099 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
5100 * target.h (struct target_ops) <to_resume, to_wait,
5101 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
5102 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
5103 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
5105 (forward_target_remove_breakpoint)
5106 (forward_target_insert_breakpoint): Remove.
5107 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
5109 (record_btrace_insert_breakpoint): Delegate directly.
5111 2014-02-19 Tom Tromey <tromey@redhat.com>
5114 * target-delegates.c: New file.
5115 * target.c: Include target-delegates.c.
5116 (init_dummy_target): Call install_dummy_methods.
5117 (complete_target_initialization): Call install_delegators.
5118 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
5119 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
5120 * make-target-delegates: New file.
5122 2014-02-19 Tom Tromey <tromey@redhat.com>
5124 * record.c (find_record_target): Use find_target_at.
5125 * target.c (find_target_at): New function.
5126 * target.h (find_target_at): Declare.
5128 2014-02-19 Tom Tromey <tromey@redhat.com>
5130 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
5132 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
5134 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
5135 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
5137 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
5139 * linux-nat.c (save_sigtrap): Update.
5140 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
5141 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
5142 (linux_nat_close): Update.
5143 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
5145 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
5147 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
5148 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
5149 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
5150 (tmp_to_async): Add 'ops' argument.
5151 (record_full_stopped_by_watchpoint, record_full_async)
5152 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
5154 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
5155 (m32r_stopped_by_watchpoint): Add 'ops' argument.
5156 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
5157 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
5158 (remote_is_async_p, remote_async): Add 'ops' argument.
5159 (remote_stopped_data_address): Update.
5160 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
5161 * target.c (update_current_target)
5162 (find_default_can_async_p, find_default_is_async_p): Update.
5163 (init_dummy_target): Update.
5164 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
5165 * target.h (struct target_ops) <to_stopped_by_watchpoint,
5166 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
5167 (target_can_async_p, target_is_async_p, target_async)
5168 (target_stopped_by_watchpoint): Update.
5170 2014-02-19 Yao Qi <yao@codesourcery.com>
5173 * gdbarch.sh: Remove startup_gdbarch.
5174 * gdbarch.c: Regenerated.
5175 * gdbarch.h: Likewise.
5177 2014-02-17 Kevin Buettner <kevinb@redhat.com>
5179 * rl78-tdep.c (rl78_g10_register_name): New function.
5180 (rl78_return_value): Add g10 support.
5181 (rl78_gdbarch_init): Register rl78_g10_register_name for the
5184 2014-02-17 Doug Evans <xdje42@gmail.com>
5186 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
5187 (SUBDIR_GUILE_SRCS): Ditto.
5188 (scm-gsmob.o): Ditto.
5190 2014-02-17 Yao Qi <yao@codesourcery.com>
5192 * gnu-nat.c (ILL_RPC): Declare defined function.
5194 2014-02-17 Yao Qi <yao@codesourcery.com>
5196 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
5197 mach_msg_type_number_t.
5198 (gnu_write_inferior): Likewise.
5200 2014-02-17 Yao Qi <yao@codesourcery.com>
5202 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
5204 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
5205 (inf_validate_procs, inf_signal): Likewise.
5206 (S_exception_raise_request): Likewise.
5207 (do_mach_notify_dead_name): Likewise.
5208 (steal_exc_port): Likewise.
5209 (gnu_read_inferior): Change 'copy_count''s type to
5210 mach_msg_type_number_t.
5211 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
5214 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
5216 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
5217 flag. Adjust all users; in particular...
5218 (gnu_wait): ..., don't decrement its value in here...
5219 (gnu_create_inferior): ..., and instead set the flag in here,
5220 around the startup_inferior call, and call that one with
5221 START_INFERIOR_TRAPS_EXPECTED.
5223 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
5224 (ILL_RPC): ... new macro.
5225 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
5226 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
5227 (do_mach_notify_send_once, S_proc_setmsgport_reply)
5228 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
5229 functions with ILL_RPC macro.
5230 (S_proc_pid2task_reply, S_proc_task2pid_reply)
5231 (S_proc_task2proc_reply, S_proc_proc2task_reply)
5232 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
5233 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
5234 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
5235 (S_proc_getlogin_reply, S_proc_getsid_reply)
5236 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
5237 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
5238 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
5239 (S_proc_getnports_reply, S_proc_is_important_reply)
5240 (S_proc_get_code_reply): New stub functions, generated with
5243 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
5244 collected the type check structures.
5246 * reply_mig_hack.awk: Don't expect to see the auto keyword.
5248 2014-02-14 Doug Evans <dje@google.com>
5250 * target.c (target_write_partial): Fix result type.
5252 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
5254 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
5255 the proper offsets to access fpregset_t.
5257 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
5259 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
5260 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
5261 * h8300-tdep.c (setmachinelist): Remove global.
5262 * hppa-tdep.c (hppa_sigtramp): Remove global.
5263 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
5264 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
5265 * ravenscar-thread.c (update_target_observer): Remove global.
5266 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
5268 2014-02-12 Tom Tromey <tromey@redhat.com>
5270 * common/rsp-low.c: Update comments.
5271 * common/rsp-low.h: Update comments.
5273 2014-02-12 Tom Tromey <tromey@redhat.com>
5275 * common/rsp-low.c (convert_ascii_to_int): Remove.
5276 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
5278 2014-02-12 Tom Tromey <tromey@redhat.com>
5280 * common/rsp-low.h (unhexify): Don't declare.
5281 * common/rsp-low.c (unhexify): Remove.
5283 2014-02-12 Tom Tromey <tromey@redhat.com>
5285 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
5286 * common/rsp-low.c (convert_int_to_ascii): Remove.
5288 2014-02-12 Tom Tromey <tromey@redhat.com>
5290 * common/rsp-low.h (hexify): Don't declare.
5291 * common/rsp-low.c (hexify): Remove.
5293 2014-02-12 Tom Tromey <tromey@redhat.com>
5295 * common/rsp-low.c (hexify): Never take strlen of argument.
5297 2014-02-12 Tom Tromey <tromey@redhat.com>
5299 * common/rsp-low.c (bin2hex): Never take strlen of argument.
5300 * remote.c (extended_remote_run, remote_rcmd)
5301 (remote_download_trace_state_variable, remote_save_trace_data)
5302 (remote_set_trace_notes): Update.
5303 * tracepoint.c (encode_source_string, tfile_write_status)
5304 (tfile_write_uploaded_tsv): Update.
5306 2014-02-12 Tom Tromey <tromey@redhat.com>
5308 * tracepoint.c: Include rsp-low.h.
5309 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
5310 * remote.c: Include rsp-low.h.
5311 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
5312 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
5313 (remote_unescape_input): Move to common/rsp-low.c.
5314 * common/rsp-low.h: New file.
5315 * common/rsp-low.c: New file.
5316 * Makefile.in (SFILES): Add common/rsp-low.c.
5317 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
5318 (COMMON_OBS): Add rsp-low.o.
5319 (rsp-low.o): New target.
5321 2014-02-12 Tom Tromey <tromey@redhat.com>
5323 * utils.h: Include print-utils.h.
5324 (host_address_to_string, plongest, pulongest, phex, phex_nz)
5325 (int_string, core_addr_to_string, core_addr_to_string_nz)
5326 (hex_string, hex_string_custom): Don't declare.
5327 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
5328 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
5329 (hex_string_custom, int_string, core_addr_to_string)
5330 (core_addr_to_string_nz, host_address_to_string): Move to
5331 common/print-utils.c.
5332 * common/print-utils.h: New file.
5333 * common/print-utils.c: New file
5334 * Makefile.in (SFILES): Add common/print-utils.c.
5335 (HFILES_NO_SRCDIR): Add common/print-utils.h.
5336 (COMMON_OBS): Add print-utils.o.
5337 (print-utils.o): New target.
5339 2014-02-12 Tom Tromey <tromey@redhat.com>
5341 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
5343 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5345 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
5347 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5349 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
5350 if a PT_IO ptrace request returns sucessfully but indicates that 0
5351 bytes were transferred.
5353 2014-02-12 Pedro Alves <palves@redhat.com>
5354 Kevin Buettner <kevinb@redhat.com>
5356 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
5357 TYPE_INSTANCE_FLAG_CODE_SPACE.
5359 2014-02-12 Pedro Alves <palves@redhat.com>
5361 * h8300-tdep.c (pseudo_from_raw_register)
5362 (raw_from_pseudo_register): New functions.
5363 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
5366 2014-02-12 Pedro Alves <palves@redhat.com>
5368 * h8300-tdep.c (h8300_register_sim_regno): New function.
5369 (h8300_gdbarch_init): Install h8300_register_sim_regno as
5370 gdbarch_register_sim_regno hook.
5372 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
5374 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
5376 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
5378 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
5380 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5382 * obsd-tdep.h (obsd_init_abi): New prototype.
5383 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
5384 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
5385 (obsd_init_abi): New functions.
5386 * i386obsd-tdep.c: Include "obsd-tdep.h".
5387 (i386obsd_init_abi): Call obsd_init_abi.
5388 * amd64obsd-tdep.c: Include "obsd-tdep.h".
5389 (amd64obsd_init_abi): Call obsd_init_abi.
5390 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
5391 obsd-tdep.c to gdb_target_obs.
5393 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
5395 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
5396 double float arguments to 16-byte in the argument slots.
5398 2014-02-11 Doug Evans <xdje42@gmail.com>
5400 * configure.ac: Don't crash if pkg-config is not found and guile
5401 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
5403 * configure: Regenerate.
5405 2014-02-11 Yao Qi <yao@codesourcery.com>
5407 * aix-thread.c (aix_thread_xfer_partial): Update comments.
5408 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
5409 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
5410 * gnu-nat.c (gnu_xfer_memory): Likewise.
5411 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
5412 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5413 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5414 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
5416 2014-02-11 Yao Qi <yao@codesourcery.com>
5418 * target.h (enum target_xfer_error): Rename to ...
5419 (enum target_xfer_status): ... it. New. All users updated.
5420 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
5422 (TARGET_XFER_STATUS_ERROR_P): New macro.
5423 (target_xfer_error_to_string): Remove declaration.
5424 (target_xfer_status_to_string): Declare.
5425 (target_xfer_partial_ftype): Adjust it.
5426 (struct target_ops) <to_xfer_partial>: Return
5427 target_xfer_status. Add argument xfered_len. Update
5429 * target.c (target_xfer_error_to_string): Rename to ...
5430 (target_xfer_status_to_string): ... it. New. All callers
5432 (target_read_live_memory): Likewise. Call target_xfer_partial
5433 instead of target_read.
5434 (memory_xfer_live_readonly_partial): Return
5435 target_xfer_status. Add argument xfered_len.
5436 (raw_memory_xfer_partial): Likewise.
5437 (memory_xfer_partial_1): Likewise.
5438 (memory_xfer_partial): Likewise.
5439 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
5440 properly. Update debug message.
5441 (default_xfer_partial, current_xfer_partial): Likewise.
5442 (target_write_partial): Likewise.
5443 (target_read_partial): Likewise. All callers updated.
5444 (read_whatever_is_readable): Likewise.
5445 (target_write_with_progress): Likewise.
5446 (target_read_alloc_1): Likewise.
5448 * aix-thread.c (aix_thread_xfer_partial): Likewise.
5449 * auxv.c (procfs_xfer_auxv): Likewise.
5450 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
5451 * bfd-target.c (target_bfd_xfer_partial): Likewise.
5452 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
5453 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
5454 * corefile.c (read_memory): Adjust.
5455 * corelow.c (core_xfer_partial): Likewise.
5456 * ctf.c (ctf_xfer_partial): Likewise.
5457 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
5459 (darwin_xfer_partial): Likewise.
5460 * exec.c (section_table_xfer_memory_partial): Likewise. All
5462 (exec_xfer_partial): Likewise.
5463 * exec.h (section_table_xfer_memory_partial): Update
5465 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
5467 (gnu_xfer_partial): Likewise.
5468 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
5469 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
5470 (ia64_hpux_xfer_solib_got): Likewise.
5471 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
5472 type of 'partial_len' to ULONGEST.
5473 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
5474 * linux-nat.c (linux_xfer_siginfo ): Likewise.
5475 (linux_nat_xfer_partial): Likewise.
5476 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
5477 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
5478 * monitor.c (monitor_xfer_memory): Likewise.
5479 (monitor_xfer_partial): Likewise.
5480 * procfs.c (procfs_xfer_partial): Likewise.
5481 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5482 * record-full.c (record_full_xfer_partial): Likewise.
5483 (record_full_core_xfer_partial): Likewise.
5484 * remote-sim.c (gdbsim_xfer_memory): Likewise.
5485 (gdbsim_xfer_partial): Likewise.
5486 * remote.c (remote_write_bytes_aux): Likewise. All callers
5488 (remote_write_bytes, remote_read_bytes): Likewise. All
5490 (remote_flash_erase): Likewise. All callers updated.
5491 (remote_write_qxfer): Likewise. All callers updated.
5492 (remote_read_qxfer): Likewise. All callers updated.
5493 (remote_xfer_partial): Likewise.
5494 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5495 (rs6000_xfer_shared_libraries): Likewise.
5496 * sol-thread.c (sol_thread_xfer_partial): Likewise.
5497 (sol_thread_xfer_partial): Likewise.
5498 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5499 (sparc_xfer_partial): Likewise.
5500 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
5502 (spu_xfer_partial): Likewise.
5503 * spu-multiarch.c (spu_xfer_partial): Likewise.
5504 * tracepoint.c (tfile_xfer_partial): Likewise.
5505 * windows-nat.c (windows_xfer_memory): Likewise.
5506 (windows_xfer_shared_libraries): Likewise.
5507 (windows_xfer_partial): Likewise.
5508 * valprint.c: Replace 'target_xfer_error' with
5509 'target_xfer_status' in comments.
5511 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
5513 Checked in by Joel Brobecker <brobecker@adacore.com>.
5514 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
5516 2014-02-11 Joel Brobecker <brobecker@adacore.com>
5518 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
5519 function parameters.
5521 2014-02-10 Will Newton <will.newton@linaro.org>
5523 * elfread.c (elf_rel_plt_read): Look for a .got section if
5524 looking up .got.plt fails.
5525 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
5526 on address passed to elf_gnu_ifunc_record_cache.
5527 (elf_gnu_ifunc_resolve_addr): Likewise.
5528 (elf_gnu_ifunc_resolver_return_stop): Likewise.
5530 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
5532 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
5533 (X_RETTURN): New macro.
5534 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
5536 * sparc64-tdep.c (sparc64_init_abi): Hook
5537 sparc_in_function_epilogue_p.
5539 2014-02-10 Gary Benson <gbenson@redhat.com>
5541 * symfile-debug.c (debug_qf_expand_symtabs_matching):
5542 Rename name_matcher to symbol_matcher.
5544 2014-02-10 Gary Benson <gbenson@redhat.com>
5546 * symfile-debug.c (debug_qf_expand_symtabs_matching):
5547 Use expand_symtabs_file_matcher_ftype and
5548 expand_symtabs_symbol_matcher_ftype.
5550 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5552 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
5553 (struct ada_symbol_cache): New.
5554 (ada_free_symbol_cache): Forward declare.
5555 (struct ada_pspace_data): New.
5556 (ada_pspace_data_handle): New static global.
5557 (get_ada_pspace_data, ada_pspace_data_cleanup)
5558 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
5559 (cache_space, cache): Delete, now folded inside struct
5561 (ada_get_symbol_cache): New function.
5562 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
5564 (_initialize_ada_language): Remove initialization of cache_space.
5565 Move call to observer_attach_inferior_exit up, grouping it
5566 with the other observer registrations inside this function.
5567 Rename command to be more general. Add call to
5568 register_program_space_data_with_cleanup.
5570 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5572 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
5573 ada_new_objfile_observer.
5574 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
5575 (_initialize_tasks): Update uses of ada_new_objfile_observer
5576 and ada_tasks_normal_stop_observer.
5578 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5580 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
5581 returned by the 'Length attribute to integer.
5583 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5585 * ada-lang.c (_initialize_ada_language): Initialize
5586 cache_space obstack.
5588 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5590 * ada-lang.c (HASH_SIZE): New macro.
5591 (struct cache_entry): New type.
5592 (cache_space, cache): New static globals.
5593 (ada_clear_symbol_cache, find_entry): New functions.
5594 (lookup_cached_symbol, cache_symbol): Implement.
5595 (ada_new_objfile_observer, ada_free_objfile_observer): New.
5596 (_initialize_ada_language): Attach ada_new_objfile_observer
5597 and ada_free_objfile_observer.
5599 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5601 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
5602 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
5603 struct block * parameter.
5604 (ada_lookup_symbol_list_worker): Constify local variable "block".
5605 Remove cast which is no longer necessary.
5607 2014-02-10 Doug Evans <xdje42@gmail.com>
5609 Add Guile as an extension language.
5610 * NEWS: Mention Guile scripting.
5611 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
5612 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
5613 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
5614 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
5615 (CLIBS): Add GUILE_LIBS.
5616 (install-guile): New rule.
5617 (guile.o): New rule.
5618 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
5619 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
5620 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
5621 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
5622 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
5623 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
5624 (scm-type.o, scm-utils.o, scm-value.o): New rules.
5625 * configure.ac: New option --with-guile.
5626 * configure: Regenerate.
5627 * config.in: Regenerate.
5628 * auto-load.c: Remove #include "python/python.h". Add #include
5629 "gdb/section-scripts.h".
5630 (source_section_scripts): Handle Guile scripts.
5631 (_initialize_auto_load): Add name of Guile objfile script to
5632 scripts-directory help text.
5633 * breakpoint.c (condition_command): Tweak comment to include Scheme.
5634 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
5635 (struct breakpoint): New member scm_bp_object.
5636 * defs.h (enum command_control_type): New value guile_control.
5637 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
5639 (show_user): Update comment.
5640 (_initialize_cli_cmds): Update help text for "show user". Update help
5641 text for max-user-call-depth.
5642 * cli/cli-script.c: Remove #include "python/python.h". Add #include
5644 (multi_line_command_p): Add guile_control.
5645 (print_command_lines): Handle guile_control.
5646 (execute_control_command, recurse_read_control_structure): Ditto.
5647 (process_next_line): Recognize "guile" commands.
5648 * disasm.c (gdb_disassemble_info): Make non-static.
5649 * disasm.h: #include "dis-asm.h".
5650 (struct gdbarch): Add forward decl.
5651 (gdb_disassemble_info): Declare.
5652 * extension.c: #include "guile/guile.h".
5653 (extension_languages): Add guile.
5654 (get_ext_lang_defn): Handle EXT_LANG_GDB.
5655 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
5656 * gdbtypes.c (get_unsigned_type_max): New function.
5657 (get_signed_type_minmax): New function.
5658 * gdbtypes.h (get_unsigned_type_max): Declare.
5659 (get_signed_type_minmax): Declare.
5660 * guile/README: New file.
5661 * guile/guile-internal.h: New file.
5662 * guile/guile.c: New file.
5663 * guile/guile.h: New file.
5664 * guile/scm-arch.c: New file.
5665 * guile/scm-auto-load.c: New file.
5666 * guile/scm-block.c: New file.
5667 * guile/scm-breakpoint.c: New file.
5668 * guile/scm-disasm.c: New file.
5669 * guile/scm-exception.c: New file.
5670 * guile/scm-frame.c: New file.
5671 * guile/scm-gsmob.c: New file.
5672 * guile/scm-iterator.c: New file.
5673 * guile/scm-lazy-string.c: New file.
5674 * guile/scm-math.c: New file.
5675 * guile/scm-objfile.c: New file.
5676 * guile/scm-ports.c: New file.
5677 * guile/scm-pretty-print.c: New file.
5678 * guile/scm-safe-call.c: New file.
5679 * guile/scm-string.c: New file.
5680 * guile/scm-symbol.c: New file.
5681 * guile/scm-symtab.c: New file.
5682 * guile/scm-type.c: New file.
5683 * guile/scm-utils.c: New file.
5684 * guile/scm-value.c: New file.
5685 * guile/lib/gdb.scm: New file.
5686 * guile/lib/gdb/boot.scm: New file.
5687 * guile/lib/gdb/experimental.scm: New file.
5688 * guile/lib/gdb/init.scm: New file.
5689 * guile/lib/gdb/iterator.scm: New file.
5690 * guile/lib/gdb/printing.scm: New file.
5691 * guile/lib/gdb/types.scm: New file.
5692 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
5693 (VPATH): Add $(GUILE_SRCDIR).
5694 (GUILE_DIR): New variable.
5695 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
5696 (all): Add stamp-guile dependency.
5697 (stamp-guile): New rule.
5698 (clean-guile, install-guile, uninstall-guile): New rules.
5699 (install-only): Add install-guile dependency.
5700 (uninstall): Add uninstall-guile dependency.
5701 (clean): Add clean-guile dependency.
5703 2014-02-09 Doug Evans <xdje42@gmail.com>
5705 Revert this patch (which I approved, mea culpa).
5707 2014-02-08 Mark Kettenis <kettenis@gnu.org>
5709 * Makefile.in (all-lib): Remove.
5710 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
5712 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5714 Fix Python stack corruption.
5715 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
5718 2014-02-08 Mark Kettenis <kettenis@gnu.org>
5720 * Makefile.in (all-lib): Remove.
5721 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
5723 2014-02-07 Doug Evans <dje@google.com>
5725 * extension-priv.h (extension_language_script_ops): Add comment.
5726 (extension_language_ops): Add comment.
5727 (active_ext_lang_state): Fix typo in comment.
5729 2014-02-07 Pedro Alves <palves@redhat.com>
5731 PR breakpoints/16292
5732 * infrun.c (handle_signal_stop) <signal arrives while stepping
5733 over a breakpoint>: Switch back to the stepping thread.
5735 2014-02-07 Yao Qi <yao@codesourcery.com>
5737 * target.c (target_xfer_partial): Return zero if LEN is zero.
5739 2014-02-07 Yao Qi <yao@codesourcery.com>
5741 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
5742 (ld_so_xfer_auxv): Likewise.
5743 * bfd-target.c (target_bfd_xfer_partial): Likewise.
5744 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
5745 * corelow.c (core_xfer_partial): Likewise.
5746 * ctf.c (ctf_xfer_partial): Likewise.
5747 * darwin-nat.c (darwin_read_dyld_info): Likewise.
5748 (darwin_xfer_partial): Likewise.
5749 * exec.c (exec_xfer_partial): Likewise.
5750 * gnu-nat.c (gnu_xfer_partial): Likewise.
5751 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
5752 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
5753 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
5754 * linux-nat.c (linux_xfer_siginfo): Likewise.
5755 (linux_proc_xfer_spu): Likewise.
5756 * procfs.c (procfs_xfer_partial): Likewise.
5757 * record-full.c (record_full_xfer_partial): Likewise.
5758 (record_full_core_xfer_partial): Likewise.
5759 * remote-sim.c (gdbsim_xfer_partial): Likewise.
5760 * remote.c (remote_write_qxfer): Likewise.
5761 (remote_write_qxfer, remote_read_qxfer): Likewise.
5762 (remote_xfer_partial): Likewise.
5763 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5764 (rs6000_xfer_shared_libraries): Likewise.
5765 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5766 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
5767 (spu_xfer_partial): Likewise.
5768 * target.c (memory_xfer_partial_1): Likewise.
5769 * tracepoint.c (tfile_xfer_partial): Likewise.
5770 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
5771 (windows_xfer_partial): Likewise.
5773 2014-02-07 Yao Qi <yao@codesourcery.com>
5775 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
5777 (core_xfer_shared_libraries_aix): Likewise.
5778 * gdbarch.c, gdbarch.h: Regenerated.
5779 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
5780 ULONGEST. Change 'len_avail' type to ULONGEST.
5781 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
5782 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
5784 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
5786 2014-02-07 Yao Qi <yao@codesourcery.com>
5788 * corefile.c (memory_error): Get 'exception' from ERR and pass
5789 'exception' to throw_error.
5791 2014-02-06 Doug Evans <xdje42@gmail.com>
5793 * configure.ac (libpython checking): Remove all but python.o from
5794 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
5795 * configure: Regenerate.
5797 * Makefile.in (SFILES): Add extension.c.
5798 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
5799 (COMMON_OBS): Add extension.o.
5800 * extension.h: New file.
5801 * extension-priv.h: New file.
5802 * extension.c: New file.
5804 * python/python-internal.h: #include "extension.h".
5805 (gdbpy_auto_load_enabled): Declare.
5806 (gdbpy_apply_val_pretty_printer): Declare.
5807 (gdbpy_apply_frame_filter): Declare.
5808 (gdbpy_preserve_values): Declare.
5809 (gdbpy_breakpoint_cond_says_stop): Declare.
5810 (gdbpy_breakpoint_has_cond): Declare.
5811 (void source_python_script_for_objfile): Delete.
5812 * python/python.c: #include "extension-priv.h".
5813 Delete inclusion of "observer.h".
5814 (extension_language_python): Moved here and renamed from
5815 script_language_python in py-auto-load.c.
5816 Redefined to be of type extension_language_defn.
5817 (python_extension_script_ops): New global.
5818 (python_extension_ops): New global.
5819 (struct python_env): New member previous_active.
5820 (restore_python_env): Call restore_active_ext_lang.
5821 (ensure_python_env): Call set_active_ext_lang.
5822 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
5824 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
5826 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
5828 (gdbpy_eval_from_control_command): Renamed from
5829 eval_python_from_control_command, made static. New arg extlang.
5830 (gdbpy_source_script) Renamed from source_python_script, made static.
5832 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
5833 result to int. New arg extlang.
5834 (gdbpy_source_objfile_script): Renamed from
5835 source_python_script_for_objfile, made static. New arg extlang.
5836 (gdbpy_start_type_printers): Renamed from start_type_printers, made
5837 static. New args extlang, extlang_printers. Change result type to
5839 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
5840 static. New arg extlang. Rename arg printers to extlang_printers
5841 and change type to ext_lang_type_printers *.
5842 (gdbpy_free_type_printers): Renamed from free_type_printers, made
5843 static. Replace argument arg with extlang, extlang_printers.
5844 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
5845 (!HAVE_PYTHON, source_python_script): Delete.
5846 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
5847 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
5848 (!HAVE_PYTHON, start_type_printers): Delete.
5849 (!HAVE_PYTHON, apply_type_printers): Delete.
5850 (!HAVE_PYTHON, free_type_printers): Delete.
5851 (_initialize_python): Delete call to observer_attach_before_prompt.
5852 (finalize_python): Set/restore active extension language.
5853 (gdbpy_finish_initialization) Renamed from
5854 finish_python_initialization, made static. New arg extlang.
5855 (gdbpy_initialized): New function.
5856 * python/python.h: #include "extension.h". Delete #include
5857 "value.h", "mi/mi-cmds.h".
5858 (extension_language_python): Declare.
5859 (GDBPY_AUTO_FILE_NAME): Delete.
5860 (enum py_bt_status): Moved to extension.h and renamed to
5862 (enum frame_filter_flags): Moved to extension.h.
5863 (enum py_frame_args): Moved to extension.h and renamed to
5864 ext_lang_frame_args.
5865 (finish_python_initialization): Delete.
5866 (eval_python_from_control_command): Delete.
5867 (source_python_script): Delete.
5868 (apply_val_pretty_printer): Delete.
5869 (apply_frame_filter): Delete.
5870 (preserve_python_values): Delete.
5871 (gdbpy_script_language_defn): Delete.
5872 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
5873 (start_type_printers, apply_type_printers, free_type_printers): Delete.
5875 * auto-load.c: #include "extension.h".
5876 (GDB_AUTO_FILE_NAME): Delete.
5877 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
5878 (script_language_gdb): Delete, moved to extension.c and renamed to
5879 extension_language_gdb.
5880 (source_gdb_script_for_objfile): Delete.
5881 (auto_load_pspace_info): New member unsupported_script_warning_printed.
5882 (loaded_script): Change type of language member to
5883 struct extension_language_defn *.
5884 (init_loaded_scripts_info): Initialize
5885 unsupported_script_warning_printed.
5886 (maybe_add_script): Make static. Change type of language arg to
5887 struct extension_language_defn *.
5888 (clear_section_scripts): Reset unsupported_script_warning_printed.
5889 (auto_load_objfile_script_1): Rewrite to use extension language API.
5890 (auto_load_objfile_script): Make public. Remove support-compiled-in
5891 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
5892 (source_section_scripts): Rewrite to use extension language API.
5893 (load_auto_scripts_for_objfile): Rewrite to use
5894 auto_load_scripts_for_objfile.
5895 (collect_matching_scripts_data): Change type of language member to
5896 struct extension_language_defn *.
5897 (auto_load_info_scripts): Change type of language arg to
5898 struct extension_language_defn *.
5899 (unsupported_script_warning_print): New function.
5900 (script_not_found_warning_print): Make static.
5901 (_initialize_auto_load): Rewrite construction of scripts-directory
5903 * auto-load.h (struct objfile): Add forward decl.
5904 (struct script_language): Delete.
5905 (struct auto_load_pspace_info): Add forward decl.
5906 (struct extension_language_defn): Add forward decl.
5907 (maybe_add_script): Delete.
5908 (auto_load_objfile_script): Declare.
5909 (script_not_found_warning_print): Delete.
5910 (auto_load_info_scripts): Update prototype.
5911 (auto_load_gdb_scripts_enabled): Declare.
5912 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
5913 auto_load_python_scripts_enabled and made public.
5914 (script_language_python): Delete, moved to python.c.
5915 (gdbpy_script_language_defn): Delete.
5916 (info_auto_load_python_scripts): Update to use
5917 extension_language_python.
5919 * breakpoint.c (condition_command): Replace call to
5920 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
5921 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
5922 with call to breakpoint_ext_lang_cond_says_stop.
5923 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
5924 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
5925 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
5926 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
5928 (local_setattro): Print name of extension language with existing
5931 * valprint.c (val_print, value_print): Update to call
5932 apply_ext_lang_val_pretty_printer.
5933 * cp-valprint.c (cp_print_value): Update call to
5934 apply_ext_lang_val_pretty_printer.
5935 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
5936 (gdbpy_apply_val_pretty_printer): Renamed from
5937 apply_val_pretty_printer. New arg extlang.
5938 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
5940 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
5941 extension language API.
5942 * cli/cli-script.c (execute_control_command): Update to call
5943 eval_ext_lang_from_control_command.
5945 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
5946 enum ext_lang_bt_status values. Update call to
5947 apply_ext_lang_frame_filter.
5948 (mi_cmd_stack_list_locals): Ditto.
5949 (mi_cmd_stack_list_args): Ditto.
5950 (mi_cmd_stack_list_variables): Ditto.
5951 * mi/mi-main.c: Delete #include "python/python-internal.h".
5952 Add #include "extension.h".
5953 (mi_cmd_list_features): Replace reference to python internal variable
5954 gdb_python_initialized with call to ext_lang_initialized_p.
5956 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
5957 Update to use enum ext_lang_frame_args. Update to call
5958 apply_ext_lang_frame_filter.
5959 * python/py-framefilter.c (extract_sym): Update to use enum
5961 (extract_value, py_print_type, py_print_value): Ditto.
5962 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
5963 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
5964 (py_print_frame): Ditto.
5965 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
5966 New arg extlang. Update to use enum ext_lang_bt_status.
5968 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
5969 finish_python_initialization. Replace with call to
5970 finish_ext_lang_initialization.
5972 * typeprint.c (do_free_global_table): Update to call
5973 free_ext_lang_type_printers.
5974 (create_global_typedef_table): Update to call
5975 start_ext_lang_type_printers.
5976 (find_global_typedef): Update to call apply_ext_lang_type_printers.
5977 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
5978 (type_print_options): Change type of global_printers from "void *"
5979 to "struct ext_lang_type_printers *".
5981 * value.c (preserve_values): Update to call preserve_ext_lang_values.
5982 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
5983 (gdbpy_preserve_values): Renamed from preserve_python_values.
5985 (!HAVE_PYTHON, preserve_python_values): Delete.
5987 * utils.c (quit_flag): Delete, moved to extension.c.
5988 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
5991 * eval.c: Delete #include "python/python.h".
5992 * main.c: Delete #include "python/python.h".
5994 * defs.h: Update comment.
5996 2014-02-06 Joel Brobecker <brobecker@adacore.com>
6000 2014-02-05 Mark Kettenis <kettenis@gnu.org>
6002 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
6005 2014-02-05 Yao Qi <yao@codesourcery.com>
6007 * remote.c (remote_pass_signals): Remove local 'buf' and use
6009 (remote_program_signals): Likewise.
6011 2014-02-05 Yao Qi <yao@codesourcery.com>
6013 * ctf.c: Include "inferior.h" and "gdbthread.h".
6014 (CTF_PID): A new macro.
6015 (ctf_open): Call inferior_appeared and add_thread_silent.
6016 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
6017 (ctf_thread_alive): New function.
6018 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
6020 2014-02-05 Yao Qi <yao@codesourcery.com>
6024 2013-05-24 Yao Qi <yao@codesourcery.com>
6026 * tracepoint.c (TFILE_PID): Remove.
6027 (tfile_open): Don't add thread and inferior.
6028 (tfile_close): Don't set 'inferior_ptid'. Don't call
6029 exit_inferior_silent.
6030 (tfile_thread_alive): Remove.
6031 (init_tfile_ops): Don't set field 'to_thread_alive' of
6034 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
6036 * remote.c (remote_start_remote): Call remote_check_symbols even
6037 if only symbol-file (not file) has been given.
6039 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6041 * gdbarch.sh (skip_entrypoint): New callback.
6042 * gdbarch.c, gdbarch.h: Regenerate.
6043 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
6044 * infrun.c (fill_in_stop_func): Likewise.
6045 * ppc-linux-tdep.c: Include "elf/ppc64.h".
6046 (ppc_elfv2_elf_make_msymbol_special): New function.
6047 (ppc_elfv2_skip_entrypoint): Likewise.
6048 (ppc_linux_init_abi): Install them for ELFv2.
6050 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6052 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
6053 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
6054 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
6055 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
6056 structures returned in GPRs.
6058 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6060 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
6061 offset to the stack parameter list for the ELFv2 ABI.
6063 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6065 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
6066 set_gdbarch_convert_from_func_ptr_addr and
6067 set_gdbarch_elf_make_msymbol_special for ELFv1.
6068 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
6069 function descriptors on ELFv1.
6070 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
6071 set up r12 at function entry.
6073 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6075 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
6076 (struct gdbarch_tdep): New member elf_abi.
6078 * rs6000-tdep.c: Include "elf/ppc64.h".
6079 (rs6000_gdbarch_init): Detect ELF ABI version.
6081 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6083 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
6084 within a register pair holding a DFP 128-bit value on little-endian.
6085 (ppc64_sysv_abi_return_value_base): Likewise.
6086 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
6087 (dfp_pseudo_register_write): Likewise.
6089 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6091 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
6092 offset on little-endian when passing _Decimal32.
6093 (ppc64_sysv_abi_return_value_base): Likewise for return values.
6095 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6097 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
6098 of the overlapped FP register within the VSX register on little-
6100 (efpr_pseudo_register_write): Likewise.
6102 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6104 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
6105 offset on little-endian when passing small structures.
6107 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6109 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
6110 (struct ppc64_sysv_argpos): New data structure.
6111 (ppc64_sysv_abi_push_float): Remove.
6112 (ppc64_sysv_abi_push_val): New function.
6113 (ppc64_sysv_abi_push_integer): Likewise.
6114 (ppc64_sysv_abi_push_freg): Likewise.
6115 (ppc64_sysv_abi_push_vreg): Likewise.
6116 (ppc64_sysv_abi_push_param): Likewise.
6117 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
6118 (ppc64_sysv_abi_return_value_base): New function.
6119 (ppc64_sysv_abi_return_value): Refactor to use it.
6121 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6123 * NEWS: Document new target powerpc64le-*-linux*.
6125 2014-02-04 Mark Kettenis <kettenis@gnu.org>
6127 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
6128 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
6130 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
6131 register set used in ELF core dumps. Add floating-point register set.
6133 2014-02-03 Kevin Buettner <kevinb@redhat.com>
6135 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
6136 dwarf2_to_gdb[] table using symbolic constants. Adjust
6137 penultimate entry from number representing the PC register
6138 to symbolic constant representing the MDR register. Add
6139 constant for the PC register to the end of the table.
6141 2014-02-03 Mark Kettenis <kettenis@gnu.org>
6143 * bsd-kvm.c: Include <sys/param.h>
6145 2014-02-03 Mark Kettenis <kettenis@gnu.org>
6147 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
6149 2014-01-31 Joel Brobecker <brobecker@adacore.com>
6151 * ada-lang.h (clear_ada_sym_cache): Delete.
6153 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
6155 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
6157 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
6159 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
6160 the sigreturn register save area only if the syscall is
6163 2014-01-29 Joel Brobecker <brobecker@adacore.com>
6165 * valops.c (value_slice): Minor reformatting.
6167 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
6169 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
6171 2014-01-28 Joel Brobecker <brobecker@adacore.com>
6173 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
6175 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
6176 (ada_ignore_descriptive_types_p): New static global.
6177 (find_parallel_type_by_descriptive_type): Return immediately
6178 if ada_ignore_descriptive_types_p is set.
6179 (_initialize_ada_language): Register new commands "maintenance
6180 set ada", "maintenance show ada", "maintenance set ada
6181 ignore-descriptive-types" and "maintenance show ada
6182 ignore-descriptive-types".
6183 * NEWS: Add entry for new "maint ada set/show
6184 ignore-descriptive-types" commands.
6186 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
6188 * record-btrace.c (record_btrace_close): Call btrace_teardown
6191 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6193 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
6196 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6198 * ada-typeprint (type_is_full_subrange_of_target_type):
6200 (print_range): Add parameter bounds_prefered_p. If not set,
6201 try printing range types using the name of their base type.
6202 (print_range_type): Add parameter bounds_prefered_p.
6203 Use it in call to print_range.
6204 (print_array_type, ada_print_type): Update calls to print_range
6205 and print_range_type.
6207 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6209 * ada-typeprint.c (print_array_type, print_choices, print_range)
6210 (print_range_bound, print_dynamic_range_bound, print_range_type):
6213 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6215 * ada-typeprint.c (print_range): Add missing empty line
6216 after local declaration.
6218 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6220 * ada-valprint.c (print_optional_low_bound): Get index_type's
6221 target type for as long as it is a TYPE_CODE_RANGE.
6223 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6225 * procfs.c (procfs_make_note_section): Remove assertion and
6228 2014-01-24 Yao Qi <yao@codesourcery.com>
6230 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
6231 * corelow.c (get_core_siginfo): Likewise.
6233 2014-01-24 Yao Qi <yao@codesourcery.com>
6235 * remote.c (remote_write_bytes_aux): Change type of 'len' to
6236 ULONGEST. Don't check 'len' is negative.
6237 (remote_write_bytes): Change type of 'len' to ULONGEST.
6239 2014-01-23 Tom Tromey <tromey@redhat.com>
6242 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
6243 Handle exception from frame.block.
6244 (FrameVars.fetch_frame_locals): Likewise.
6246 2014-01-23 Tom Tromey <tromey@redhat.com>
6249 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
6250 on a NULL pointer. Move "goto error" to correct place.
6252 2014-01-23 Tom Tromey <tromey@redhat.com>
6255 * python/py-framefilter.c (apply_frame_filter): Call
6256 ensure_python_env after computing gdbarch.
6258 2014-01-23 Yao Qi <yao@codesourcery.com>
6260 * target.c (raw_memory_xfer_partial): Change argument type
6261 from void * to gdb_byte *.
6262 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
6264 2014-01-22 Doug Evans <dje@google.com>
6266 New gdbserver option --debug-format=timestamp.
6269 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
6271 * syscalls/s390x-linux.xml: New file.
6272 * syscalls/s390-linux.xml: New file.
6273 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
6274 (XML_SYSCALL_FILENAME_S390X): Likewise.
6275 (op_svc): New enum value for SVC opcode.
6276 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
6277 (s390_linux_get_syscall_number): New function.
6278 (s390_gdbarch_init): Register '*get_syscall_number' and the
6279 syscall xml file name.
6280 * data-directory/Makefile.in (SYSCALLS_FILES): Add
6281 "s390-linux.xml" and "s390x-linux.xml".
6282 * NEWS: Announce new feature.
6284 2014-01-22 Baruch Siach <baruch@tkos.co.il>
6286 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
6288 2014-01-22 Pedro Alves <palves@redhat.com>
6290 * xtensa-config.c: Include defs.h.
6292 2014-01-22 Joel Brobecker <brobecker@adacore.com>
6294 * common/common-utils.h: Add "ARI:" comment beside __func__
6297 2014-01-22 Joel Brobecker <brobecker@adacore.com>
6299 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
6300 documentation a bit.
6302 2014-01-21 Roland McGrath <mcgrathr@google.com>
6304 * configure.ac: Call AM_PROG_INSTALL_STRIP.
6305 * configure: Regenerate.
6306 * aclocal.m4: Regenerate.
6307 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
6308 New substituted variables.
6309 (install-strip): New target.
6310 (INSTALL_SCRIPT): New substituted variable.
6311 (FLAGS_TO_PASS): Add it.
6312 (install-only): Use $(INSTALL_SCRIPT) rather than
6313 $(INSTALL_PROGRAM) for gcore.
6315 2014-01-20 Tom Tromey <tromey@redhat.com>
6317 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
6320 2014-01-20 Tom Tromey <tromey@redhat.com>
6322 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
6323 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
6324 (deprecated_cmd_warning, complete_on_cmdlist): Update.
6325 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
6326 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
6327 (struct cmd_list_element) <flags>: Remove.
6328 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
6329 doc_allocated>: New fields.
6330 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
6332 * maint.c (maintenance_do_deprecate): Update.
6333 * top.c (execute_command): Update.
6335 2014-01-20 Baruch Siach <baruch@tkos.co.il>
6337 * xtensa-linux-nat.c: Include asm/ptrace.h.
6339 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6341 * Makefile.in (SFILES): Add d-support.c.
6342 (COMMON_OBS): Add d-support.o.
6343 * d-lang.h (d_parse_symbol): Add comment, now defined in
6345 * d-lang.c (parse_call_convention)
6346 (parse_attributes, parse_function_types)
6347 (parse_function_args, parse_type, parse_identifier)
6348 (call_convention_p, d_parse_symbol): Move functions to ...
6349 * d-support.c: ... New file.
6351 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6353 * d-lang.h (d_parse_symbol): Add declaration.
6354 * d-lang.c (extract_identifiers)
6355 (extract_type_info): Remove functions.
6356 (parse_call_convention, parse_attributes)
6357 (parse_function_types, parse_function_args)
6358 (parse_type, parse_identifier, call_convention_p)
6359 (d_parse_symbol): New functions.
6360 (d_demangle): Use d_parse_symbol to demangle D symbols.
6362 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6364 * d-lang.h (struct builtin_d_type): New data type.
6365 (builtin_d_type): Add declaration.
6366 * d-lang.c (d_language_arch_info, build_d_types)
6367 (builtin_d_type): New functions.
6368 (enum d_primitive_types): New data type.
6369 (d_language_defn): Change c_language_arch_info to
6370 d_language_arch_info.
6371 (d_type_data): New static variable.
6372 (_initialize_d_language): Initialize d_type_data.
6374 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6376 * d-lang.h (d_main_name): Add declaration.
6377 * d-lang.c (d_main_name): New function.
6378 * symtab.c (find_main_name): Add call to d_main_name.
6380 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6382 * d-lang.c (d_language_defn): Change macro_expansion_c to
6385 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6387 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6389 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
6391 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
6392 gdb_exception" declaration.
6393 * remote.c (getpkt_or_notif_sane): Likewise.
6395 2014-01-17 Doug Evans <dje@google.com>
6397 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
6398 function, contents of dirnames_to_char_ptr_vec_append moved here.
6399 (delim_string_to_char_ptr_vec): New function.
6400 (dirnames_to_char_ptr_vec_append): Rewrite.
6401 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
6403 2014-01-17 Doug Evans <dje@google.com>
6405 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
6407 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
6408 #include "common-utils.h".
6409 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
6410 * common/vec.h (VEC_ASSERT_PASS): Update.
6411 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
6412 (MACH_CHECK_ERROR): Update.
6414 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
6416 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
6418 * gdbarch.h: Regenerate.
6420 2014-01-16 Tom Tromey <tromey@redhat.com>
6422 * value.c (struct value) <regnum>: Move earlier.
6424 2014-01-16 Tom Tromey <tromey@redhat.com>
6426 * remote.c (extended_remote_create_inferior): Rename from
6427 extended_remote_create_inferior_1. Add "ops" argument. Remove
6430 2014-01-16 Pedro Alves <palves@redhat.com>
6432 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
6433 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
6436 2014-01-16 Doug Evans <dje@google.com>
6438 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
6440 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6442 * btrace.h (btrace_thread_flag): New.
6443 (struct btrace_thread_info) <flags>: New.
6444 * record-btrace.c (record_btrace_resume_thread)
6445 (record_btrace_find_thread_to_move, btrace_step_no_history)
6446 (btrace_step_stopped, record_btrace_start_replaying)
6447 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
6448 (record_btrace_find_resume_thread): New.
6449 (record_btrace_resume, record_btrace_wait): Extend.
6450 (record_btrace_can_execute_reverse): New.
6451 (record_btrace_open): Fail in non-stop mode.
6452 (record_btrace_set_replay): Split into this, ...
6453 (record_btrace_stop_replaying): ... this, ...
6454 (record_btrace_clear_histories): ... and this.
6455 (init_record_btrace_ops): Init to_can_execute_reverse.
6456 * NEWS: Announce it.
6458 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6460 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
6461 (forward_target_decr_pc_after_break)
6462 (target_decr_pc_after_break): New.
6463 * target.c (forward_target_decr_pc_after_break)
6464 (target_decr_pc_after_break): New.
6465 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
6466 instead of gdbarch_decr_pc_after_break.
6467 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
6468 instead of gdbarch_decr_pc_after_break.
6469 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
6470 instead of gdbarch_decr_pc_after_break.
6471 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
6472 instead of gdbarch_decr_pc_after_break.
6473 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
6474 instead of gdbarch_decr_pc_after_break.
6475 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
6476 instead of gdbarch_decr_pc_after_break.
6478 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6480 * btrace.c: Include regcache.h.
6481 (btrace_add_pc): New.
6482 (btrace_enable): Call btrace_add_pc.
6483 (btrace_is_empty): New.
6484 * btrace.h (btrace_is_empty): New.
6485 * record-btrace.c (require_btrace, record_btrace_info): Call
6488 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6490 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
6491 Support delta reads.
6492 (linux_disable_btrace): Change return type.
6493 * common/linux-btrace.h (linux_read_btrace): Change parameters
6494 and return type to allow error reporting. Update users.
6495 (linux_disable_btrace): Change return type. Update users.
6496 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
6498 (btrace_error): New.
6499 (btrace_block) <begin>: Comment on BEGIN == 0.
6500 * btrace.c (btrace_compute_ftrace): Start from the end of
6502 (btrace_stitch_trace, btrace_clear_history): New.
6503 (btrace_fetch): Read delta trace, return if replaying.
6504 (btrace_clear): Move clear history code to btrace_clear_history.
6505 (parse_xml_btrace): Throw an error if parsing failed.
6506 * target.h (struct target_ops) <to_read_btrace>: Change parameters
6507 and return type to allow error reporting.
6508 (target_read_btrace): Change parameters and return type to allow
6510 * target.c (target_read_btrace): Update.
6511 * remote.c (remote_read_btrace): Support delta reads. Pass
6513 * NEWS: Announce it.
6515 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6517 * record.h (record_btrace_frame_unwind)
6518 (record_btrace_tailcall_frame_unwind): New declarations.
6519 * dwarf2-frame: Include record.h
6520 (dwarf2_frame_cfa): Throw an error for btrace frames.
6521 * record-btrace.c: Include hashtab.h.
6522 (btrace_get_bfun_name): New.
6523 (btrace_call_history): Call btrace_get_bfun_name.
6524 (struct btrace_frame_cache): New.
6526 (bfcache_hash, bfcache_eq, bfcache_new): New.
6527 (btrace_get_frame_function): New.
6528 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
6529 (record_btrace_frame_this_id): Compute own id.
6530 (record_btrace_frame_prev_register): Provide PC, throw_error
6531 for all other registers.
6532 (record_btrace_frame_sniffer): Detect btrace frames.
6533 (record_btrace_tailcall_frame_sniffer): New.
6534 (record_btrace_frame_dealloc_cache): New.
6535 (record_btrace_frame_unwind): Add new functions.
6536 (record_btrace_tailcall_frame_unwind): New.
6537 (_initialize_record_btrace): Allocate cache.
6538 * btrace.c (btrace_clear): Call reinit_frame_cache.
6539 * NEWS: Announce it.
6541 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6543 * record-btrace.c (record_btrace_set_replay)
6544 (record_btrace_goto_begin, record_btrace_goto_end)
6545 (record_btrace_goto): New.
6546 (init_record_btrace_ops): Initialize them.
6547 * NEWS: Announce it.
6549 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6551 * record-btrace.c (record_btrace_find_new_threads)
6552 (record_btrace_thread_alive): New.
6553 (init_record_btrace_ops): Initialize to_find_new_threads and
6556 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6558 * record-btrace.c (record_btrace_resume): New.
6559 (record_btrace_wait): New.
6560 (init_record_btrace_ops): Initialize to_wait and to_resume.
6562 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6564 * record-btrace.c (record_btrace_xfer_partial)
6565 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
6566 (record_btrace_allow_memory_access): New.
6567 (init_record_btrace_ops): Initialize new methods.
6568 * target.c (raw_memory_xfer_partial): Bail out if target reports
6569 that this memory is not available.
6571 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6573 * target.h (target_ops) <to_insert_breakpoint>
6574 <to_remove_breakpoint>: Add target_ops parameter.
6575 (forward_target_insert_breakpoint): New.
6576 (forward_target_remove_breakpoint): New.
6577 (memory_remove_breakpoint, memory_insert_breakpoint):
6578 Add target_ops parameter.
6579 * target.c (target_insert_breakpoint): Split into this and ...
6580 (forward_target_insert_breakpoint): ... this.
6581 (target_remove_breakpoint): Split into this and ...
6582 (forward_target_remove_breakpoint): ... this.
6583 (debug_to_insert_breakpoint): Add target_ops parameter.
6584 Call forward_target_insert_breakpoint.
6585 (debug_to_remove_breakpoint): Add target_ops parameter.
6586 Call forward_target_remove_breakpoint.
6587 (update_current_target): Do not inherit or default to_insert_breakpoint
6588 and to_remove_breakpoint.
6589 * corelow.c (ignore): Add target_ops parameter.
6590 * exec.c (ignore): Add target_ops parameter.
6591 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
6592 Add target_ops parameter.
6593 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
6594 Add target_ops parameter.
6595 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
6596 Add target_ops parameter.
6597 * record-full.c (record_full_beneath_to_insert_breakpoint)
6598 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
6599 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
6600 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
6601 (record_full_core_remove_breakpoint): Add target_ops parameter.
6603 (record_full_beneath_to_insert_breakpoint_ops)
6604 (record_full_beneath_to_remove_breakpoint_ops)
6605 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
6606 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
6607 tmp_to_remove_breakpoint_ops,
6608 record_full_beneath_to_insert_breakpoint_ops, and
6609 record_full_beneath_to_remove_breakpoint_ops.
6610 * remote-m32r-sdi.c (m32r_insert_breakpoint)
6611 (m32r_remove_breakpoint): Add target_ops parameter.
6612 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
6613 Add target_ops parameter.
6614 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
6615 Add target_ops parameter.
6617 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6618 Markus Metzger <markus.t.metzger@intel.com>
6620 * record-btrace.c: Include frame-unwind.h.
6621 (record_btrace_frame_unwind_stop_reason)
6622 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
6623 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
6625 (init_record_btrace_ops): Install it.
6627 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6629 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
6632 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6634 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
6637 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6639 * frame-unwind.c: Include target.h.
6640 (frame_unwind_try_unwinder): New function with code from ...
6641 (frame_unwind_find_by_frame): ... here. New variable
6642 unwinder_from_target, call also target_get_unwinder)
6643 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
6644 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
6645 * target.h (struct target_ops): New fields to_get_unwinder and
6646 to_get_tailcall_unwinder.
6647 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
6649 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6651 * record-btrace.c (record_btrace_fetch_registers)
6652 (record_btrace_store_registers)
6653 (record_btrace_to_prepare_to_store): New.
6654 (init_record_btrace_ops): Add the above.
6656 2014-01-16 Tom Tromey <tromey@redhat.com>
6658 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
6659 * target.h (struct target_ops) <to_prepare_to_store>: Add
6661 (target_prepare_to_store): Add argument.
6662 * target.c (debug_to_prepare_to_store): Add argument.
6663 (update_current_target): Update.
6664 * remote.c (remote_prepare_to_store): Add 'self' argument.
6665 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
6666 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
6667 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
6668 * record-full.c (record_full_core_prepare_to_store): Add 'self'
6670 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
6671 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
6672 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
6673 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
6674 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
6676 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6678 * btrace.h (replay) <replay>: New.
6679 (btrace_is_replaying): New.
6680 * btrace.c (btrace_clear): Free replay iterator.
6681 (btrace_is_replaying): New.
6682 * record-btrace.c (record_btrace_is_replaying): New.
6683 (record_btrace_info): Print insn number if replaying.
6684 (record_btrace_insn_history): Start at replay position.
6685 (record_btrace_call_history): Start at replay position.
6686 (init_record_btrace_ops): Init to_record_is_replaying.
6688 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6690 * record-btrace.c (record_btrace_insn_history_range): Include
6692 (record_btrace_insn_history_from): Adjust range.
6693 (record_btrace_call_history_range): Include
6695 (record_btrace_call_history_from): Adjust range.
6696 * NEWS: Announce changes.
6698 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6700 * record.h (enum record_print_flag)
6701 <record_print_indent_calls>: New.
6702 * record.c (get_call_history_modifiers): Recognize /c modifier.
6703 (_initialize_record): Document /c modifier.
6704 * record-btrace.c (btrace_call_history): Add btinfo parameter.
6705 Reorder fields. Optionally indent the function name. Update
6707 * NEWS: Announce changes.
6709 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6711 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
6713 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6715 * btrace.c (ftrace_new_function): Start counting at one.
6716 * record-btrace.c (record_btrace_info): Adjust number of calls
6718 * NEWS: Announce it.
6720 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6722 * record-btrace.c (btrace_call_history_insn_range): Print
6723 insn range as [begin, end].
6725 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6727 * btrace.h (struct btrace_func_link): New.
6728 (enum btrace_function_flag): New.
6729 (struct btrace_inst): Rename to ...
6730 (struct btrace_insn): ...this. Update all users.
6731 (struct btrace_func) <ibegin, iend>: Remove.
6732 (struct btrace_func_link): New.
6733 (struct btrace_func): Rename to ...
6734 (struct btrace_function): ...this. Update all users.
6735 (struct btrace_function) <segment, flow, up, insn, insn_offset)
6736 (number, level, flags>: New.
6737 (struct btrace_insn_iterator): Rename to ...
6738 (struct btrace_insn_history): ...this.
6740 (struct btrace_insn_iterator, btrace_call_iterator): New.
6741 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
6742 (struct btrace_target_info) <begin, end, level>
6743 <insn_history, call_history>: New.
6744 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
6745 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
6746 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
6747 (btrace_call_number, btrace_call_begin, btrace_call_end)
6748 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
6749 (btrace_find_function_by_number, btrace_set_insn_history)
6750 (btrace_set_call_history): New.
6751 * btrace.c (btrace_init_insn_iterator)
6752 (btrace_init_func_iterator, compute_itrace): Remove.
6753 (ftrace_print_function_name, ftrace_print_filename)
6754 (ftrace_skip_file): Change
6756 (ftrace_init_func): Remove.
6757 (ftrace_debug): Use new btrace_function fields.
6758 (ftrace_function_switched): Also consider gaining and
6759 losing symbol information).
6760 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
6761 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
6762 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
6764 (ftrace_new_function): Move. Remove debug print.
6765 (ftrace_update_lines, ftrace_update_insns): New.
6766 (ftrace_update_function): Check for call, ret, and jump.
6767 (compute_ftrace): Renamed to ...
6768 (btrace_compute_ftrace): ...this. Rewritten to compute call
6770 (btrace_fetch, btrace_clear): Updated.
6771 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
6772 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
6773 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
6774 (btrace_call_number, btrace_call_begin, btrace_call_end)
6775 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
6776 (btrace_find_function_by_number, btrace_set_insn_history)
6777 (btrace_set_call_history): New.
6778 * record-btrace.c (require_btrace): Use new btrace thread
6780 (record_btrace_info, btrace_insn_history)
6781 (record_btrace_insn_history, record_btrace_insn_history_range):
6782 Use new btrace thread info fields and new iterator.
6783 (btrace_func_history_src_line): Rename to ...
6784 (btrace_call_history_src_line): ...this. Use new btrace
6786 (btrace_func_history): Rename to ...
6787 (btrace_call_history): ...this. Use new btrace thread info
6788 fields and new iterator.
6789 (record_btrace_call_history, record_btrace_call_history_range):
6790 Use new btrace thread info fields and new iterator.
6792 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6794 * frame.h (frame_id_build_unavailable_stack_special): New.
6795 * frame.c (frame_id_build_unavailable_stack_special): New.
6797 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6799 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
6800 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
6801 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
6803 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
6804 (i386_insn_is_jump, i386_jmp_p): New.
6805 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
6806 insn_is_jump to gdbarch.
6807 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
6808 * gdbarch.h: Regenerated.
6809 * gdbarch.c: Regenerated.
6810 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
6811 (default_insn_is_jump): New.
6812 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
6813 (default_insn_is_jump): New.
6815 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6817 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
6819 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
6820 (btrace_read_type) <btrace_read_new>: Change to ...
6821 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
6823 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6825 * common/linux-btrace.c (linux_read_btrace): Free trace from
6828 2014-01-15 Doug Evans <dje@google.com>
6830 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
6833 2014-01-15 Tom Tromey <tromey@redhat.com>
6835 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
6836 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
6837 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
6838 (set_objfile_main_name): New function.
6839 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
6840 language_of_main>: New fields.
6841 (set_objfile_main_name): Declare.
6842 * symtab.c (find_main_name): Loop over objfiles to find the main
6844 (set_main_name): Now static.
6845 (get_main_info): Add comment.
6846 * symtab.h (set_main_name): Don't declare.
6848 2014-01-15 Tom Tromey <tromey@redhat.com>
6850 * symtab.c (main_progspace_key): New global.
6851 (struct main_info): New.
6852 (name_of_main, language_of_main): Remove.
6853 (get_main_info, main_info_cleanup): New function.
6854 (set_main_name, main_name, main_language): Use get_main_info.
6855 (_initialize_symtab): Initialize main_progspace_key.
6857 2014-01-15 Tom Tromey <tromey@redhat.com>
6859 * dbxread.c (process_one_symbol): Update.
6860 * dwarf2read.c (read_partial_die): Update.
6861 * symfile.c (set_initial_language): Call main_language.
6862 * symtab.c (language_of_main): Now static.
6863 (set_main_name): Add 'lang' parameter.
6864 (find_main_name): Update.
6865 (main_language): New function.
6866 (symtab_observer_executable_changed): Update.
6867 * symtab.h (set_main_name): Update.
6868 (language_of_main): Remove.
6869 (main_language): Declare.
6871 2014-01-15 Tom Tromey <tromey@redhat.com>
6873 * symfile.c (init_entry_point_info): Use new "initialized" field.
6875 * objfiles.h (struct entry_point) <initialized>: New field.
6876 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
6877 (struct objfile) <ei>: ...here. Remove.
6878 * objfiles.c (entry_point_address_query): Update.
6880 2014-01-15 Tom Tromey <tromey@redhat.com>
6882 * objfiles.c (entry_point_address_query): Relocate entry point
6884 (objfile_relocate1): Do not relocate entry point address.
6885 * objfiles.h (struct entry_info) <entry_point>: Update comment.
6886 <the_bfd_section_index>: New field.
6887 * symfile.c (init_entry_point_info): Find the entry point's
6890 2014-01-15 Tom Tromey <tromey@redhat.com>
6892 * solib-frv.c (enable_break): Use entry_point_address_query.
6894 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6896 * NEWS: Add note on improved process record-replay on
6897 arm*-linux* targets.
6899 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6901 * arm-tdep.c (enum arm_record_result): New enum.
6902 (arm_record_unsupported_insn): New function.
6903 (arm_record_coproc_data_proc): Removed.
6904 (thumb2_record_ld_st_multiple): New function.
6905 (thumb2_record_ld_st_dual_ex_tbb): New function.
6906 (thumb2_record_data_proc_sreg_mimm): New function.
6907 (thumb2_record_ps_dest_generic): New function.
6908 (thumb2_record_branch_misc_cntrl): New function.
6909 (thumb2_record_str_single_data): New function.
6910 (thumb2_record_ld_mem_hints): New function.
6911 (thumb2_record_ld_word): New function.
6912 (thumb2_record_lmul_lmla_div): New function.
6913 (thumb2_record_decode_insn_handler): New function.
6914 (decode_insn): Add thumb32 instruction handlers.
6916 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6918 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
6919 (struct arm_linux_record_tdep): Declare.
6920 (arm_canonicalize_syscall): New function.
6921 (arm_all_but_pc_registers_record): New function.
6922 (arm_linux_syscall_record): New function.
6923 (arm_linux_init_abi): Add syscall recording constructs.
6924 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
6925 decoding. (arm_record_coproc_data_proc): Update arm syscall
6927 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
6928 <arm_syscall_record>: New field.
6929 * configure.tgt (arm*-*-linux*): Add linux-record.o to
6932 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6934 * arm-tdep.c (thumb_record_misc): Update to use sp as base
6935 register for push instruction recording.
6937 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6939 * arm-tdep.c (thumb_record_misc): Update to correct logical
6940 error while recording ldm, ldmia and pop instructions.
6942 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6944 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
6946 2014-01-15 Pedro Alves <palves@redhat.com>
6948 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
6949 (go32_resume, go32_fetch_registers, store_register)
6950 (go32_store_registers, go32_prepare_to_store)
6951 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
6952 (go32_create_inferior, go32_can_run, go32_terminal_init)
6953 (go32_terminal_inferior, go32_terminal_ours): Delete forward
6956 2014-01-15 Tom Tromey <tromey@redhat.com>
6958 * target.h (async_callback_ftype): New typedef.
6959 (struct target_ops) <to_async>: Use it.
6961 2014-01-15 Joel Brobecker <brobecker@adacore.com>
6963 * python/py-value.c (get_field_type): Remove unnecessary curly
6964 braces for single-statement if block.
6966 2014-01-15 Joel Brobecker <brobecker@adacore.com>
6968 * python/py-type.c (convert_field): Add missing empty line
6971 2014-01-14 Doug Evans <dje@google.com>
6973 * symfile.h (expand_symtabs_matching): Renamed from
6974 expand_partial_symbol_names. Update prototype.
6975 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
6976 * symfile.c (expand_symtabs_matching): Renamed from
6977 expand_partial_symbol_names. New args file_matcher, kind.
6978 Rename arg fun to symbol_matcher.
6979 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
6980 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
6981 ada_expand_partial_symbol_name.
6982 (ada_make_symbol_completion_list): Update to call
6983 expand_symtabs_matching.
6984 (ada_add_global_exceptions): Call expand_symtabs_matching.
6985 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
6986 call map_symbol_filenames.
6987 * symtab.c (sources_info): Update to call map_symbol_filenames.
6988 (search_symbols): Call expand_symtabs_matching.
6989 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
6990 (default_make_symbol_completion_list_break_on): Update to call
6991 expand_symtabs_matching.
6992 (make_source_files_completion_list): Update to call
6993 map_symbol_filenames.
6995 2014-01-14 Doug Evans <dje@google.com>
6997 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
6998 (expand_symtabs_symbol_matcher_ftype): New typedef.
6999 (quick_symbol_functions.expand_symtabs_matching): Update to use.
7000 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7001 * symfile.c (expand_partial_symbol_names): Update to use
7002 expand_symtabs_symbol_matcher_ftype.
7003 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
7004 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7005 Arg name_matcher renamed to symbol_matcher.
7006 * psymtab.c (recursively_search_psymtabs): Update to use
7007 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
7009 (expand_symtabs_matching_via_partial): Update to use
7010 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7011 Arg name_matcher renamed to symbol_matcher.
7013 2014-01-14 Doug Evans <dje@google.com>
7015 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
7016 (map_partial_symbol_filenames): Ditto.
7017 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
7018 (map_partial_symbol_filenames): Ditto.
7019 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
7020 (map_partial_symbol_filenames): Ditto.
7021 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
7022 (map_partial_symbol_filenames): Ditto.
7023 * symtab.c: Delete #include "psymtab.h".
7025 2014-01-14 Pedro Alves <palves@redhat.com>
7026 Tom Tromey <tromey@redhat.com>
7028 * infrun.c (use_displaced_stepping): Use find_record_target
7029 instead of RECORD_IS_USED.
7030 (adjust_pc_after_break): Use record_full_is_used instead of
7032 * record-btrace.c (record_btrace_open): Call record_preopen
7033 instead of checking RECORD_IS_USED.
7034 * record-full.c (record_full_shortname)
7035 (record_full_core_shortname): New globals.
7036 (record_full_is_used): New function.
7037 (find_full_open): Call record_preopen instead of checking
7039 (init_record_full_ops): Set the target's shortname to
7040 record_full_shortname.
7041 (init_record_full_core_ops): Set the target's shortname to
7042 record_full_core_shortname.
7043 * record-full.h (record_full_is_used): Declare.
7044 * record.c (find_record_target): Make extern.
7045 (record_preopen): New function.
7046 * record.h (RECORD_IS_USED): Delete macro.
7047 (find_record_target, record_preopen): Declare functions.
7049 2014-01-14 Yao Qi <yao@codesourcery.com>
7051 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
7052 'len''s type to ULONGEST.
7053 (core_xfer_shared_libraries_aix): Likewise.
7054 * gdbarch.c, gdbarch.h: Regenerated.
7055 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
7056 Change type of 'len' to ULONGEST.
7057 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7058 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7060 2014-01-14 Yao Qi <yao@codesourcery.com>
7062 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
7063 type of 'len' to ULONGEST.
7064 (linux_xfer_osdata_processgroups): Likewise.
7065 (linux_xfer_osdata_threads): Likewise.
7066 (linux_xfer_osdata_fds): Likewise.
7067 (linux_xfer_osdata_isockets): Likewise.
7068 (linux_xfer_osdata_shm): Likewise.
7069 (linux_xfer_osdata_sem): Likewise.
7070 (linux_xfer_osdata_msg): Likewise.
7071 (linux_common_xfer_osdata): Likewise.
7072 (struct osdata_type) <getter>: Likewise.
7073 * common/linux-osdata.h (linux_common_xfer_osdata): Update
7076 2014-01-14 Yao Qi <yao@codesourcery.com>
7078 * target.h (target_xfer_partial_ftype): Update.
7079 (struct target_ops) <to_xfer_partial>: Change 'len' type to
7081 * aix-thread.c (aix_thread_xfer_partial): Change type of
7082 argument 'len' to ULONGEST.
7083 * auxv.c (procfs_xfer_auxv): Likewise.
7084 (ld_so_xfer_auxv): Likewise.
7085 (memory_xfer_auxv): Likewise.
7086 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7087 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7088 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7089 * corelow.c (core_xfer_partial): Likewise.
7090 * ctf.c (ctf_xfer_partial): Likewise.
7091 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
7093 (darwin_read_dyld_info): Likewise.
7094 (darwin_xfer_partial): Likewise.
7095 * exec.c (section_table_xfer_memory_partial): Likewise.
7096 (exec_xfer_partial): Likewise.
7097 * exec.h (section_table_xfer_memory_partial): Update
7099 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
7100 instead of plongest.
7101 (gnu_xfer_partial): Likewise.
7102 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
7103 (ia64_hpux_xfer_solib_got): Likewise.
7104 (ia64_hpux_xfer_partial): Likewise.
7105 * ia64-linux-nat.c (ia64_linux_xfer_partial):
7106 * inf-ptrace.c (inf_ptrace_xfer_partial):
7107 * inf-ttrace.c (inf_ttrace_xfer_partial):
7108 * linux-nat.c (linux_xfer_siginfo): Likewise.
7109 (linux_nat_xfer_partial): Likewise.
7110 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
7111 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
7112 * monitor.c (monitor_xfer_memory): Likewise.
7113 (monitor_xfer_partial): Likewise.
7114 * procfs.c (procfs_xfer_partial): Likewise.
7115 * record-full.c (record_full_xfer_partial): Likewise.
7116 (record_full_core_xfer_partial): Likewise.
7117 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
7118 instead of plongest.
7119 (gdbsim_xfer_partial): Likewise.
7120 * remote.c (remote_xfer_partial): Likewise.
7121 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7122 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7124 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7125 (rs6000_xfer_shared_libraries): Likewise.
7126 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7127 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7128 (sparc_xfer_partial): Likewise.
7129 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7130 (spu_xfer_partial): Likewise.
7131 * spu-multiarch.c (spu_xfer_partial): Likewise.
7132 * target.c (target_read_live_memory): Likewise.
7133 (memory_xfer_live_readonly_partial): Likewise.
7134 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
7135 (target_xfer_partial, default_xfer_partial): Likewise.
7136 (current_xfer_partial): Likewise.
7137 * tracepoint.c (tfile_xfer_partial): Likewise.
7138 * windows-nat.c (windows_xfer_memory): Likewise. Call
7139 pulongest instead of plongest.
7140 (windows_xfer_partial): Likewise.
7141 (windows_xfer_shared_libraries): Likewise.
7143 2014-01-14 Yao Qi <yao@codesourcery.com>
7145 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
7146 target_xfer_partial_ftype.
7148 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
7152 * valops.c (value_struct_elt_bitpos): New function
7153 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
7154 object to 'None' if the field name is an empty string ("").
7155 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
7156 attribute to look for a field when 'name' is 'None'.
7157 (get_field_type): New function
7159 2014-01-13 Doug Evans <dje@google.com>
7162 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
7163 (try_open_dwop_file): Ditto.
7164 * gdb_bfd.c: #include "vec.h".
7165 (bfdp): New typedef.
7166 (struct gdb_bfd_data): New member included_bfds.
7167 (gdb_bfd_unref): Unref all included bfds.
7168 (gdb_bfd_record_inclusion): New function.
7169 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
7171 2014-01-13 Tom Tromey <tromey@redhat.com>
7173 * gdbcore.h (deprecated_core_resize_section_table): Remove.
7175 2014-01-13 Tom Tromey <tromey@redhat.com>
7177 * defs.h (use_windows): Remove.
7178 * gdb.c (main): Update.
7179 * main.c (captured_main, gdb_main): Update.
7180 * main.h (struct captured_main_args) <use_windows>: Remove.
7181 * top.c (use_windows): Remove.
7183 2014-01-13 Tom Tromey <tromey@redhat.com>
7185 * defs.h (deprecated_flush_hook): Remove.
7187 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7190 * linux-thread-db.c (try_thread_db_load): Add parameter
7191 check_auto_load_safe. Move here the file_is_auto_load_safe call.
7192 (try_thread_db_load_from_pdir_1): Move it there from here.
7193 (try_thread_db_load_from_sdir): Update caller.
7194 (try_thread_db_load_from_dir): Move it there from here.
7196 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
7198 * regformats/regdat.sh: Always rewrite the register file.
7200 2014-01-13 Pedro Alves <palves@redhat.com>
7202 * Makefile.in (CHECK_HEADERS): New variable.
7203 (check-headers:): New rule.
7205 2014-01-13 Tom Tromey <tromey@redhat.com>
7207 * cli/cli-setshow.c (do_set_command): Update.
7208 * defs.h (deprecated_set_hook): Remove.
7209 * top.c (deprecated_set_hook): Remove.
7211 2014-01-13 Pedro Alves <palves@redhat.com>
7213 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
7214 the tracepoint if the PC is a pseudo-register.
7216 2014-01-13 Tom Tromey <tromey@redhat.com>
7218 * defs.h (XCALLOC): Remove.
7219 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
7220 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
7221 * dwarf2loc.c (allocate_piece_closure): Likewise.
7222 * elfread.c (elf_symfile_segments): Likewise.
7223 (elf_symfile_segments): Likewise.
7224 * gdbtypes.c (copy_type_recursive): Likewise.
7225 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
7226 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
7227 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
7229 * mt-tdep.c (mt_gdbarch_init): Likewise.
7230 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
7232 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
7233 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
7234 * registry.c (registry_alloc_data): Likewise.
7235 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
7236 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7237 * serial.c (serial_fdopen_ops): Likewise.
7238 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
7240 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
7241 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
7244 2014-01-13 Tom Tromey <tromey@redhat.com>
7246 * defs.h (XMALLOC): Remove.
7247 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
7248 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
7249 * cli-out.c (struct ui_out *): Likewise.
7250 * cli/cli-dump.c (add_dump_command): Likewise.
7251 (add_dump_command): Likewise.
7252 * complaints.c (get_complaints): Likewise.
7253 (find_complaint): Likewise.
7254 * dwarf2-frame.c (execute_cfa_program): Likewise.
7255 * dwarf2read.c (abbrev_table_read_table): Likewise.
7256 * gdbarch.sh: Likewise.
7257 * gdbarch.c: Rebuild.
7258 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
7259 * interps.c (interp_new): Likewise.
7260 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
7261 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7262 * mi/mi-console.c (mi_console_file_new): Likewise.
7263 * mi/mi-interp.c (mi_interpreter_init): Likewise.
7264 * mi/mi-out.c (mi_out_new): Likewise.
7265 * mi/mi-parse.c (mi_parse): Likewise.
7266 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
7267 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7268 * observer.c (xalloc_observer_list_node): Likewise.
7269 * regcache.c (regcache_xmalloc_1): Likewise.
7270 * reggroups.c (reggroup_new): Likewise.
7271 (_initialize_reggroup): Likewise.
7272 * registry.c (register_data_with_cleanup): Likewise.
7273 * remote.c (remote_notif_stop_alloc_reply): Likewise.
7274 * ser-base.c (serial_ttystate): Likewise.
7275 * ser-mingw.c (make_pipe_state): Likewise.
7276 * ser-pipe.c (pipe_open): Likewise.
7277 * serial.c (serial_open): Likewise.
7278 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
7279 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
7280 (tui_alloc_win_info): Likewise.
7281 (tui_add_content_elements): Likewise.
7282 * tui/tui-file.c (tui_file_new): Likewise.
7283 * tui/tui-out.c (tui_out_new): Likewise.
7284 * ui-file.c (mem_file_new): Likewise.
7285 * ui-out.c (push_level): Likewise.
7286 (make_cleanup_ui_out_end): Likewise.
7287 (append_header_to_list): Likewise.
7288 (ui_out_new): Likewise.
7289 * user-regs.c (user_reg_add_builtin): Likewise.
7291 2014-01-13 Tom Tromey <tromey@redhat.com>
7293 * defs.h (XZALLOC): Remove.
7294 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
7295 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
7296 (get_ada_tasks_inferior_data): Likewise.
7297 * auto-load.c (get_auto_load_pspace_data): Likewise.
7298 * auxv.c (get_auxv_inferior_data): Likewise.
7299 * bfd-target.c (target_bfd_reopen): Likewise.
7300 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
7301 (deprecated_insert_raw_breakpoint): Likewise.
7302 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
7303 * corelow.c (core_open): Likewise.
7304 * darwin-nat.c (darwin_check_new_threads): Likewise.
7305 (darwin_attach_pid): Likewise.
7306 * dummy-frame.c (dummy_frame_push): Likewise.
7307 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
7308 * dwarf2loc.c (allocate_piece_closure): Likewise.
7309 * elfread.c (elf_symfile_segments): Likewise.
7310 * eval.c (ptrmath_type_p): Likewise.
7311 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
7312 * gdbtypes.c (alloc_type_arch): Likewise.
7313 (alloc_type_instance): Likewise.
7314 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
7315 * inf-child.c (inf_child_can_use_agent): Likewise.
7316 * inflow.c (get_inflow_inferior_data): Likewise.
7317 * infrun.c (save_infcall_suspend_state): Likewise.
7318 * jit.c (jit_reader_load): Likewise.
7319 (get_jit_objfile_data): Likewise.
7320 (get_jit_program_space_data): Likewise.
7321 (jit_object_open_impl): Likewise.
7322 (jit_symtab_open_impl): Likewise.
7323 (jit_block_open_impl): Likewise.
7324 (jit_frame_sniffer): Likewise.
7325 * linux-fork.c (add_fork): Likewise.
7326 * maint.c (make_command_stats_cleanup): Likewise.
7327 * objfiles.c (get_objfile_pspace_data): Likewise.
7328 * opencl-lang.c (struct lval_closure): Likewise.
7329 * osdata.c (osdata_start_osdata): Likewise.
7330 * progspace.c (new_address_space): Likewise.
7331 (add_program_space): Likewise.
7332 * remote-sim.c (get_sim_inferior_data): Likewise.
7333 * sh-tdep.c (sh_gdbarch_init): Likewise.
7334 * skip.c (Ignore): Likewise.
7335 (skip_delete_command): Likewise.
7336 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
7337 (library_list_start_library): Likewise.
7338 (solib_aix_current_sos): Likewise.
7339 * solib-darwin.c (get_darwin_info): Likewise.
7340 (darwin_current_sos): Likewise.
7341 * solib-dsbt.c (get_dsbt_info): Likewise.
7342 * solib-ia64-hpux.c (new_so_list): Likewise.
7343 (ia64_hpux_get_solib_linkage_addr): Likewise.
7344 * solib-spu.c (append_ocl_sos): Likewise.
7345 (spu_current_sos): Likewise.
7346 * solib-svr4.c (get_svr4_info): Likewise.
7347 (svr4_keep_data_in_core): Likewise.
7348 (library_list_start_library): Likewise.
7349 (svr4_default_sos): Likewise.
7350 (svr4_read_so_list): Likewise.
7351 * solib-target.c (library_list_start_library): Likewise.
7352 (solib_target_current_sos): Likewise.
7353 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7354 * symfile-debug.c (install_symfile_debug_logging): Likewise.
7355 * symfile.c (default_symfile_segments): Likewise.
7356 * target-descriptions.c (tdesc_data_init): Likewise.
7357 (tdesc_create_reg): Likewise.
7358 (struct tdesc_type *): Likewise.
7359 (tdesc_create_vector): Likewise.
7360 (tdesc_set_struct_size): Likewise.
7361 (struct tdesc_type *): Likewise.
7362 (tdesc_free_feature): Likewise.
7363 (tdesc_create_feature): Likewise.
7364 * windows-nat.c (windows_add_thread): Likewise.
7365 (windows_make_so): Likewise.
7366 * xml-support.c (gdb_xml_body_text): Likewise.
7367 (gdb_xml_create_parser_and_cleanup): Likewise.
7368 (xml_process_xincludes): Likewise.
7369 * xml-syscall.c (allocate_syscalls_info): Likewise.
7370 (syscall_create_syscall_desc): Likewise.
7372 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
7374 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
7375 function, with code from i386_stap_parse_special_token.
7376 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7377 (i386_stap_parse_special_token): Move code to the two functions
7380 2014-01-09 Pedro Alves <palves@redhat.com>
7381 Hui Zhu <hui@codesourcery.com>
7384 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
7385 bp_err_string. Don't mark the location shlib_disabled if the
7386 error thrown wasn't a generic or memory error. Catch errors
7387 thrown while inserting breakpoints in overlayed code. Output
7388 error message of software breakpoints.
7389 * remote.c (remote_insert_breakpoint): If this breakpoint has
7390 target-side commands but this stub doesn't support Z0 packets,
7391 throw NOT_SUPPORTED_ERROR error.
7392 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
7393 * target.h (target_insert_breakpoint): Extend comment.
7394 (target_insert_hw_breakpoint): Add comment.
7396 2014-01-08 Pedro Alves <palves@redhat.com>
7398 * remote.c (remote_add_thread): Add threads silently if starting
7400 (remote_notice_new_inferior): If in all-stop, and starting up,
7401 don't call notice_new_inferior.
7402 (get_current_thread): New function, factored out from ...
7403 (add_current_inferior_and_thread): ... this. Adjust.
7404 (remote_start_remote) <all-stop>: Fetch the thread list. If we
7405 found any thread, then select the remote's current thread as GDB's
7408 2014-01-08 Joel Brobecker <brobecker@adacore.com>
7410 * NEWS: Create a new section for the next release branch.
7411 Rename the section of the current branch, now that it has
7414 2014-01-08 Joel Brobecker <brobecker@adacore.com>
7416 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
7417 * version.in: Bump version to 7.7.50.DATE-cvs.
7419 2014-01-08 Yao Qi <yao@codesourcery.com>
7421 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
7422 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
7423 (spu_xfer_partial): Cast 'buf' to 'const char *'.
7425 2014-01-08 Yao Qi <yao@codesourcery.com>
7427 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
7428 return value of bfd_get_filename to symbol_file_add_from_bfd.
7430 2014-01-08 Pierre Muller <muller@sourceware.org>
7433 * coff-pe-read.c (struct read_pe_section_data): Add index field.
7434 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
7435 to prim_record_mininal_symbol_and_info.
7436 (add_pe_forwarded_sym): Use known section number of forwarded symbol
7437 in call to prim_record_minimal_symbol_and_info.
7438 (read_pe_exported_syms): Set index field of section_data.
7440 2014-01-07 Andrew Pinski <apinski@cavium.com>
7442 * features/aarch64-core.xml (cpsr): Change to be 64bit.
7443 * features/aarch64.c: Regenerate.
7445 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
7447 * target.c (return_null): Define.
7448 (update_current_target): Use it instead of return_zero for
7449 functions that return a pointer.
7451 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
7453 * source.c (add_path): Fix check for duplicated paths in the previously
7456 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
7458 * ada-lang.c: Remove duplicated include statements.
7459 * alphabsd-nat.c: Ditto.
7460 * amd64-darwin-tdep.c: Ditto.
7461 * amd64fbsd-nat.c: Ditto.
7462 * auto-load.c: Ditto.
7464 * breakpoint.c: Ditto.
7466 * fork-child.c: Ditto.
7467 * gdb_usleep.c: Ditto.
7468 * i386-darwin-tdep.c: Ditto.
7469 * i386fbsd-nat.c: Ditto.
7471 * inferior.c: Ditto.
7473 * linux-nat.c: Ditto.
7474 * linux-tdep.c: Ditto.
7475 * m68kbsd-nat.c: Ditto.
7476 * m68klinux-nat.c: Ditto.
7477 * microblaze-tdep.c: Ditto.
7478 * mips-linux-tdep.c: Ditto.
7479 * mn10300-tdep.c: Ditto.
7480 * nto-tdep.c: Ditto.
7481 * opencl-lang.c: Ditto.
7483 * printcmd.c: Ditto.
7484 * regcache.c: Ditto.
7485 * remote-m32r-sdi.c: Ditto.
7489 * tilegx-linux-nat.c: Ditto.
7490 * tilegx-tdep.c: Ditto.
7491 * tracepoint.c: Ditto.
7493 * vaxbsd-nat.c: Ditto.
7494 * windows-nat.c: Ditto.
7495 * xtensa-tdep.c: Ditto.
7497 2014-01-07 Yao Qi <yao@codesourcery.com>
7499 * spu-linux-nat.c (_initialize_spu_nat): Declare.
7501 2014-01-07 Yao Qi <yao@codesourcery.com>
7502 Joel Brobecker <brobecker@adacore.com>
7504 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
7505 (pdc_write_regs): Likewise.
7506 (fetch_regs_kernel_thread): Likewise.
7507 (store_regs_kernel_thread): Likewise.
7509 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7511 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
7512 tagged type objects to their actual type.
7514 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7516 * ada-valprint.c (print_field_values): Add "language" parameter.
7517 Update calls to print_field_values and print_variant_part.
7518 Pass new parameter "language" in call to val_print instead
7519 of "current_language". Replace call to ada_val_print by call
7521 (print_variant_part): Add "language" parameter.
7522 (ada_val_print_struct_union): Update call to print_field_values.
7524 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7526 * ada-valprint.c (ui_memcpy): Delete.
7527 (ada_print_floating): Update documentation. Add empty line
7528 between between function documentation and implementation.
7529 Delete variable "buffer". Use ui_file_xstrdup in place of
7530 ui_file_put. Minor adjustments following this change.
7532 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7534 * ada-valprint.c (ada_val_print_string): New function,
7535 extracted from ada_val_print_array.
7536 (ada_val_print_array): Replace extracted code by call
7537 to ada_val_print_string followed by a return. Move
7538 "else" branch to the function's top block.
7540 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7542 * ada-valprint.c (ada_val_print_array): Move implementation
7543 down. Rename parameter "offset" and "val" into "offset_aligned"
7544 and "original_value" respectively. Add parameter "offset".
7546 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7548 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
7549 re-organizing the code. Change the "???" message printed
7550 when target type is a TYPE_CODE_UNDEF into
7551 "<ref to undefined type>".
7553 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7555 * ada-valprint.c (print_record): Delete, implementation inlined...
7556 (ada_val_print_struct_union): ... here. Remove call to
7557 ada_check_typedef in inlined implementation.
7559 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7561 * ada-valprint.c (ada_val_print_gnat_array): New function,
7562 extracted from ada_val_print_1;
7563 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
7564 (ada_val_print_flt, ada_val_print_struct_union)
7565 (ada_val_print_ref): Likewise.
7566 (ada_val_print_1): Delete variables i and elttype.
7567 Replace extracted-out code by call to corresponding
7570 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7572 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
7574 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7576 * ada-valprint.c (ada_val_print_1): Replace calls to
7577 ada_val_print_1 by calls to val_print.
7579 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7581 * ada-valprint.c (ada_val_print_1): Add parameter "language".
7582 Update calls to self accordingly. Replace calls to c_val_print
7583 by calls to val_print.
7585 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7587 * ada-valprint.c (print_record): Delete declaration.
7588 (adjust_type_signedness, ada_val_print_1): Likewise.
7589 (ada_val_print): Move function implementation down.
7590 (print_variant_part, print_field_values, print_record):
7591 Move function implementation up.
7593 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7595 * python/py-type.c (typy_get_name): New function.
7596 (type_object_getset): Add entry for attribute "name".
7597 * NEWS: Add entry mentioning this new attribute.
7599 2014-01-07 Yao Qi <yao@codesourcery.com>
7601 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
7604 2014-01-07 Yao Qi <yao@codesourcery.com>
7606 * gnu-nat.c (info_port_rights): Add qualifier const to
7609 2014-01-07 Yao Qi <yao@codesourcery.com>
7611 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
7613 2014-01-07 Yao Qi <yao@codesourcery.com>
7615 * gnu-nat.c (make_inf) Update declaration.
7616 (make_inf): Make it static.
7617 (inf_set_traced): Likewise.
7618 (inf_port_to_thread, inf_task_died_status): Likewise.
7620 2014-01-07 Yao Qi <yao@codesourcery.com>
7622 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
7624 2014-01-07 Yao Qi <yao@codesourcery.com>
7626 * gnu-nat.c (_initialize_gnu_nat): Declare.
7628 2014-01-07 Yao Qi <yao@codesourcery.com>
7630 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
7632 (struct gdbarch_info) <byte_order>: Change type to
7634 <byte_order_for_code>: Likewise.
7635 * gdbarch.c, gdbarch.h: Regenerated.
7637 2014-01-06 Sasha Smundak <asmundak@google.com>
7639 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
7641 2014-01-06 Tom Tromey <tromey@redhat.com>
7643 * doublest.c (convert_doublest_to_floatformat): Use const, not
7645 * somread.c (som_symtab_read): Likewise.
7647 2014-01-07 Hui Zhu <hui@codesourcery.com>
7649 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
7650 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
7651 (gdb_bfd_fopen): Ditto.
7652 (gdb_bfd_openr): Ditto.
7653 (gdb_bfd_openw): Ditto.
7654 (gdb_bfd_openr_iovec): Ditto.
7655 (gdb_bfd_fdopenr): Ditto.
7656 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
7657 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
7659 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
7661 * symfile-mem.c (symbol_file_add_from_memory): Removed
7662 gdb_bfd_stash_filename.
7664 2014-01-03 Doug Evans <dje@google.com>
7666 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
7669 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7671 Update year range in copyright notice of all files.
7673 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7675 * top.c (print_gdb_version): Set copyright year to 2014.
7677 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7679 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
7681 For older changes see ChangeLog-2013.
7687 version-control: never