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