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