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