]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Missed ChangeLog entry in the previous commit.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
58992dc5
SC
12014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2
3 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4 best match method returned by find_overload_match is an xmethod.
5 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6 the best matching operator returned by find_overload_match is an
7 xmethod.
8 * valops.c: #include "extension.h".
9 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
10 Return void. The list of matching source methods is returned in
11 "fn_list" and a vector of matching debug method workers is
12 returned in "xm_worker_vec". Update all callers.
13 (value_find_oload_method_list): Likewise.
14 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
15 non-NULL, then the index of the best matching method in this
16 vector is returned. Update all callers.
17 (find_overload_match): Include xmethods while performing overload
18 resolution.
19
e81e7f5e
SC
202014-06-03 Siva Chandra Reddy <sivachandra@google.com>
21
22 * defs.h (enum lval_type): New enumerator "lval_xcallable".
23 * extension-priv.h (struct extension_language_ops): Add the
24 xmethod interface.
25 * extension.c (new_xmethod_worker, clone_xmethod_worker,
26 get_matching_xmethod_workers, get_xmethod_argtypes,
27 invoke_xmethod, free_xmethod_worker,
28 free_xmethod_worker_vec): New functions.
29 * extension.h: #include "common/vec.h".
30 New function declarations.
31 (struct xmethod_worker): New struct.
32 (VEC (xmethod_worker_ptr)): New vector type.
33 (xmethod_worker_ptr): New typedef.
34 (xmethod_worker_vec): Likewise.
35 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
36 builtin_type.
37 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
38 (struct builtin_type): New field "xmethod".
39 * valarith.c (value_ptradd): Assert that the value argument is not
40 lval_xcallable.
41 * valops.c (value_must_coerce_to_target): Return 0 for
42 lval_xcallable values.
43 * value.c (struct value): New field XM_WORKER in the field
44 LOCATION.
45 (value_address, value_raw_address): Return 0 for lval_xcallable
46 values.
47 (set_value_address): Assert that the value is not an
48 lval_xcallable.
49 (value_free): Free the associated xmethod worker when freeing
50 lval_xcallable values.
51 (set_value_component_location): Assert that the WHOLE value is not
52 lval_xcallable.
53 (value_of_xmethod, call_xmethod): New functions.
54 * value.h: Declare "struct xmethod_worker".
55 Declare new functions value_of_xmethod, call_xmethod.
56
ef370185
JB
572014-06-03 Joel Brobecker <brobecker@adacore.com>
58 Pedro Alves <palves@redhat.com>
59
60 PR breakpoints/17000
61 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
62 New function, extracted from software_breakpoint_inserted_here_p.
63 (software_breakpoint_inserted_here_p): Replace factored out code
64 by call to find_non_raw_software_breakpoint_inserted_here.
65 (bp_target_info_copy_insertion_state): New function.
66 (bkpt_insert_location): Handle the case of a single-step
67 breakpoint already inserted at the same address.
68 (bkpt_remove_location): Handle the case of a single-step
69 breakpoint still inserted at the same address.
70 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
71 breakpoint already inserted at the same address.
72 (deprecated_remove_raw_breakpoint): Handle the case of a
73 non-raw breakpoint still inserted at the same address.
74 (find_single_step_breakpoint): New function, extracted from
75 single_step_breakpoint_inserted_here_p.
76 (find_single_step_breakpoint): New function,
77 factored out from single_step_breakpoint_inserted_here_p.
78 (single_step_breakpoint_inserted_here_p): Reimplement.
79
1e2ccb61
BM
802014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
81
82 Pushed by Joel Brobecker <brobecker@adacore.com>
83 * source.c (show_substitute_path_command): Fix display of matching
84 substitution rules.
85
d3448d85
GB
862014-06-03 Gary Benson <gbenson@redhat.com>
87
88 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
89
06eb1586
DE
902014-06-02 Doug Evans <xdje42@gmail.com>
91
92 Add parameter support for Guile.
93 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
94 (SUBDIR_GUILE_SRCS): Add scm-param.c.
95 (scm-param.o): New rule.
96 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
97 (gdbscm_misc_error): Declare.
98 (gdbscm_canonicalize_command_name): Declare.
99 (gdbscm_scm_to_host_string): Declare.
100 (gdbscm_scm_from_host_string): Declare.
101 (gdbscm_initialize_parameters): Declare.
102 * guile/guile.c (initialize_gdb_module): Call
103 gdbscm_initialize_parameters.
104 * guile/lib/gdb.scm: Export parameter symbols.
105 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
106 cmdscm_canonicalize_name and made public. All callers updated.
107 * guile/scm-exception.c (gdbscm_misc_error): New function.
108 * guile/scm-param.c: New file.
109 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
110 (gdbscm_scm_to_host_string): New function.
111 (gdbscm_scm_from_host_string): New function.
112 * scm-utils.c (gdbscm_gc_dup_argv): New function.
113
e698b8c4
DE
1142014-06-02 Doug Evans <xdje42@gmail.com>
115
116 Add command support for Guile.
117 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
118 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
119 (scm-cmd.o): New rule.
120 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
121 (gdbscm_user_error_p): Declare.
122 (gdbscm_parse_command_name): Declare.
123 (gdbscm_valid_command_class_p): Declare.
124 (gdbscm_initialize_commands): Declare.
125 * guile/guile.c (initialize_gdb_module): Call
126 gdbscm_initialize_commands.
127 * guile/lib/gdb.scm: Export command symbols.
128 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
129 (throw-user-error): New function.
130 * guile/scm-cmd.c: New file.
131 * guile/scm-exception.c (user_error_symbol): New static global.
132 (gdbscm_user_error_p): New function.
133 (gdbscm_initialize_exceptions): Set user_error_symbol.
134 * scm-utils.c (gdbscm_gc_xstrdup): New function.
135
fb1f94b0
PM
1362014-06-02 Phil Muldoon <pmuldoon@redhat.com>
137
138 * top.c (command_loop): Handle comments here...
139 (command_line_input): ... not here.
140
ded03782
DE
1412014-06-02 Doug Evans <xdje42@gmail.com>
142
143 Add progspace support for Guile.
144 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
145 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
146 (scm-progspace.o): New rule.
147 * guile/guile-internal.h (pspace_smob): New typedef.
148 (psscm_pspace_smob_pretty_printers): Declare.
149 (psscm_pspace_smob_from_pspace): Declare.
150 (psscm_scm_from_pspace): Declare.
151 * guile/guile.c (initialize_gdb_module): Call
152 gdbscm_initialize_pspaces.
153 * guile/lib/gdb.scm: Export progspace symbols.
154 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
155 support.
156 (append-pretty-printer!): Ditto.
157 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
158 Implement.
159 * guile/scm-progspace.c: New file.
160
397998fc
AM
1612014-06-03 Alan Modra <amodra@gmail.com>
162
163 * ppc64-tdep.c (ppc64_standard_linkage8): New.
164 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
165
6aa5f3a6
DE
1662014-06-02 Doug Evans <dje@google.com>
167
168 Add support for skeletonless type units.
169 * dwarf2read.c (struct dwarf2_per_objfile): New member
170 n_allocated_type_units.
171 (struct dwarf2_per_objfile) <tu_stats>: New member
172 nr_all_type_units_reallocs.
173 (create_signatured_type_table_from_index): Initialize
174 n_allocated_type_units
175 (create_all_type_units): Ditto.
176 (add_type_unit): Move up in file. New arg slot.
177 All callers updated. Increase space for all_type_units more
178 efficiently.
179 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
180 (lookup_dwo_signatured_type): Handle skeletonless TUs.
181 (lookup_dwp_signatured_type): Ditto.
182 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
183 All callers updated.
184 (build_type_psymtabs_1): Leave type_unit_groups as
185 NULL if no TUs present.
186 (print_tu_stats): New function.
187 (process_skeletonless_type_unit): New function.
188 (process_dwo_file_for_skeletonless_type_units): New
189 function.
190 (process_skeletonless_type_units): New function.
191 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
192 Call print tu_stats if debugging enabled.
193
41fac0cf
PA
1942014-06-02 Pedro Alves <palves@redhat.com>
195
196 * breakpoint.c (build_target_command_list): Don't build a command
197 list if we have any duplicate location that isn't a dprintf.
198
cd1608cc
PA
1992014-06-02 Pedro Alves <palves@redhat.com>
200
201 * breakpoint.c (dprintf_breakpoint_hit): New function.
202 (initialize_breakpoint_ops): Install it as dprintf's
203 breakpoint_hit method.
204
486ef3b9
JB
2052014-06-02 Joel Brobecker <brobecker@adacore.com>
206
207 * source.c (substitute_path_rule_matches): Simplify using
208 filename_ncmp instead of FILENAME_CMP.
209
230cd560
JB
2102014-06-02 Joel Brobecker <brobecker@adacore.com>
211
212 * source.c (substitute_path_rule_matches): Remove trailing spaces.
213
16954d5d
LC
2142014-06-01 Ludovic Courtès <ludo@gnu.org>
215
216 * configure.ac: When Guile is available, check for the
217 availability of 'scm_new_smob'.
218 * configure, config.h.in: Regenerate.
219 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
220 function.
221
53e8a631
AB
2222014-05-30 Andrew Burgess <aburgess@broadcom.com>
223
224 * frame.c (struct frame_info): Add stop_string field.
225 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
226 (get_prev_frame_always): Old content moved into
227 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
228 TRY_CATCH, handle MEMORY_ERROR exceptions.
229 (frame_stop_reason_string): New function definition.
230 * frame.h (unwind_stop_reason_to_string): Extend comment to
231 mention frame_stop_reason_string.
232 (frame_stop_reason_string): New function declaration.
233 * stack.c (frame_info): Switch to frame_stop_reason_string.
234 (backtrace_command_1): Switch to frame_stop_reason_string.
235 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
236 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
237 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
238
70e38b8e
AB
2392014-05-30 Andrew Burgess <aburgess@broadcom.com>
240
241 * frame.c (frame_stop_reason_string): Rename to ...
242 (unwind_stop_reason_to_string): this.
243 * frame.h (frame_stop_reason_string): Rename to ...
244 (unwind_stop_reason_to_string): this.
245 * stack.c (frame_info): Update call to frame_stop_reason_string.
246 (backtrace_command_1): Likewise.
247 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
248 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
249
938f0e2f
AB
2502014-05-30 Andrew Burgess <aburgess@broadcom.com>
251
252 * frame.c (remove_prev_frame): New function.
253 (get_prev_frame_if_no_cycle): Create / discard cleanup using
254 remove_prev_frame.
255
a09dd441
PA
2562014-05-29 Pedro Alves <palves@redhat.com>
257
258 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
259 and make it const. When a single-step decays to a continue,
260 clear 'step', not 'hw_step'. Pass whether the caller wanted
261 to step to user_visible_resume_ptid, not what we ask the
262 target to do.
263
bdc36728
PA
2642014-05-29 Pedro Alves <palves@redhat.com>
265
266 * infrun.c (process_event_stop_test, handle_step_into_function)
267 (handle_step_into_function_backward): Adjust.
268 Don't set the even thread's stop_step and call stop_waiting before
269 calling end_stepping_range. Instead do that ...
270 (end_stepping_range): ... here. Take an ecs pointer parameter.
271
22bcd14b
PA
2722014-05-29 Pedro Alves <palves@redhat.com>
273
274 * infrun.c (stop_stepping): Rename to ...
275 (stop_waiting): ... this.
276 (proceed): Update comment.
277 (process_event_stop_test, handle_inferior_event)
278 (handle_signal_stop, handle_step_into_function)
279 (handle_step_into_function_backward): Update.
280
4ae57c05
PA
2812014-05-29 Pedro Alves <palves@redhat.com>
282
283 * infcall.c (run_inferior_call): Don't check whether the current
284 thread is running after the proceed call.
285
329ea579
PA
2862014-05-29 Pedro Alves <palves@redhat.com>
287 Tom Tromey <tromey@redhat.com>
288
289 * NEWS: Mention "maint set target-async", "set mi-async", and that
290 background execution commands are now always available.
291 * target.h (target_async_permitted): Update comment.
292 * target.c (target_async_permitted, target_async_permitted_1):
293 Default to 1.
294 (set_target_async_command): Rename to ...
295 (maint_set_target_async_command): ... this.
296 (show_target_async_command): Rename to ...
297 (maint_show_target_async_command): ... this.
298 (_initialize_target): Adjust.
299 * infcmd.c (prepare_execution_command): Make extern.
300 * inferior.h (prepare_execution_command): Declare.
301 * infrun.c (set_observer_mode): Leave target async alone.
302 * mi/mi-interp.c (mi_interpreter_init): Install
303 mi_on_sync_execution_done as sync_execution_done observer.
304 (mi_on_sync_execution_done): New function.
305 (mi_execute_command_input_handler): Don't print the prompt if we
306 just started a synchronous command with an async target.
307 (mi_on_resume): Check sync_execution before printing prompt.
308 * mi/mi-main.h (mi_async_p): Declare.
309 * mi/mi-main.c: Include gdbcmd.h.
310 (mi_async_p): New function.
311 (mi_async, mi_async_1): New globals.
312 (set_mi_async_command, show_mi_async_command, mi_async): New
313 functions.
314 (exec_continue): Call prepare_execution_command.
315 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
316 (mi_execute_async_cli_command): Use mi_async_p.
317 (_initialize_mi_main): Install "set mi-async". Make
318 "target-async" a deprecated alias.
319
92bcb5f9
PA
3202014-05-29 Pedro Alves <palves@redhat.com>
321
322 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
323 (_initialize_cli_interp): Adjust.
324 * event-loop.c: Include "observer.h".
325 (start_event_loop): Notify 'command_error' observers instead of
326 calling display_gdb_prompt. Remove FIXME comment.
327 * event-top.c (display_gdb_prompt): Remove call into the
328 interpreters.
329 * inf-loop.c: Include "observer.h".
330 (inferior_event_handler): Notify 'command_error' observers instead
331 of calling display_gdb_prompt.
332 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
333 observers instead of calling display_gdb_prompt.
334 * interps.c (interp_set): Don't call display_gdb_prompt.
335 (current_interp_display_prompt_p): Delete.
336 * interps.h (interp_prompt_p): Delete declaration.
337 (interp_prompt_p_ftype): Delete.
338 (struct interp_procs) <prompt_proc_p>: Delete field.
339 (current_interp_display_prompt_p): Delete declaration.
340 * mi-interp.c (mi_interpreter_prompt_p): Delete.
341 (_initialize_mi_interp): Adjust.
342 * tui-interp.c (tui_init): Install 'sync_execution_done' and
343 'command_error' observers.
344 (tui_on_sync_execution_done, tui_on_command_error): New
345 functions.
346 (tui_display_prompt_p): Delete.
347 (_initialize_tui_interp): Adjust.
348
fd664c91
PA
3492014-05-29 Pedro Alves <palves@redhat.com>
350
351 PR gdb/13860
352 * cli/cli-interp.c: Include infrun.h and observer.h.
353 (cli_uiout, cli_interp): New globals.
354 (cli_on_signal_received, cli_on_end_stepping_range)
355 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
356 functions.
357 (cli_interpreter_init): Install them as 'end_stepping_range',
358 'signal_received' 'signal_exited', 'exited' and 'no_history'
359 observers.
360 (_initialize_cli_interp): Remove cli_interp local.
361 * infrun.c (handle_inferior_event): Call the several stop reason
362 observers instead of printing the stop reason directly.
363 (end_stepping_range): New function.
364 (print_end_stepping_range_reason, print_signal_exited_reason)
365 (print_exited_reason, print_signal_received_reason)
366 (print_no_history_reason): Make static, and add an uiout
367 parameter. Print to that instead of to CURRENT_UIOUT.
368 * infrun.h (print_end_stepping_range_reason)
369 (print_signal_exited_reason, print_exited_reason)
370 (print_signal_received_reason print_no_history_reason): New
371 declarations.
372 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
373 'mi_uiout'.
374 <cli_uiout>: New field.
375 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
376 uiout for CLI output. Install 'signal_received',
377 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
378 observers.
379 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
380 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
381 (mi_on_no_history): New functions.
382 (ui_out_free_cleanup): Delete function.
383 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
384 instead use the one already stored in the MI interpreter data.
385 (mi_ui_out): Adjust.
386 * tui/tui-interp.c: Include infrun.h and observer.h.
387 (tui_interp): New global.
388 (tui_on_signal_received, tui_on_end_stepping_range)
389 (tui_on_signal_exited, tui_on_exited)
390 (tui_on_no_history): New functions.
391 (tui_init): Install them as 'end_stepping_range',
392 'signal_received' 'signal_exited', 'exited' and 'no_history'
393 observers.
394 (_initialize_tui_interp): Delete tui_interp local.
395
8817a6f2
PA
3962014-05-29 Pedro Alves <palves@redhat.com>
397
398 PR gdb/15713
399 * linux-nat.c (linux_nat_resume_callback): Rename the second
400 parameter to 'except'. Skip LP if it points to EXCEPT.
401 (linux_nat_resume): Don't mark the event lwp as not stopped
402 before resuming sibling lwps. Instead ask
403 linux_nat_resume_callback to skip the event lwp. Mark it as not
404 stopped after actually resuming it.
405 (linux_handle_syscall_trap): Mark the lwp as not stopped after
406 resuming it.
407 (wait_lwp): Mark the lwp as stopped here.
408 (stop_wait_callback): Mark the lwp as not stopped right after
409 resuming it. Don't mark lwps as stopped here.
410 (linux_nat_filter_event): Mark the lwp as stopped earlier.
411 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
412
251bde03
PA
4132014-05-29 Pedro Alves <palves@redhat.com>
414
415 PR PR15693
416 * infrun.c (resume): Determine how much to resume depending on
417 whether the caller wanted a step, not whether we can hardware step
418 the target. Mark all threads that we intend to run as running,
419 unless we're calling an inferior function.
420 (normal_stop): If the thread is running an infcall, don't finish
421 thread state.
422 * target.c (target_resume): Don't mark threads as running here.
423
7f3c0343
JB
4242014-05-28 Joel Brobecker <brobecker@adacore.com>
425
426 * serial.c (_initialize_serial): Remove support for
427 the "set remotebaud" and "show remotebaud" commands.
428 * NEWS: Add entry documenting the removal of that command.
429
ee34b3f9
YQ
4302014-05-28 Yao Qi <yao@codesourcery.com>
431
432 * charset.c: Fix typo in comments.
433
add6c04d
GB
4342014-05-27 Gary Benson <gbenson@redhat.com>
435
436 * utils.c (internal_vproblem): Prompt for a bug report.
437
92c48fc5
AW
4382014-05-26 Andy Wingo <wingo@igalia.com>
439
440 * guile/scm-arch.c (arscm_mark_arch_smob):
441 * guile/scm-block.c (bkscm_mark_block_smob)
442 (bkscm_mark_block_syms_progress_smob):
443 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
444 * guile/scm-exception.c (exscm_mark_exception_smob):
445 * guile/scm-frame.c (frscm_mark_frame_smob):
446 * guile/scm-iterator.c (itscm_mark_iterator_smob):
447 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
448 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
449 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
450 (ppscm_mark_pretty_printer_worker_smob):
451 * guile/scm-symbol.c (syscm_mark_symbol_smob):
452 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
453 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
454 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
455 mark functions.
456 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
457 function.
458
b2715b27
AW
4592014-05-26 Andy Wingo <wingo@igalia.com>
460 Doug Evans <xdje42@gmail.com>
461
462 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
463 empty_base_class. All uses updated.
464 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
465 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
466 Adapt all callers.
467 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
468 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
469 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
470 (gdbscm_gsmob_has_property_p, add_property_name)
471 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
472 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
473 (gdb-object-has-property?, gdb-object-properties): Remove.
474 (gdb-object-kind): Renamed from gsmob-kind.
475
214ab2da
AW
4762014-05-26 Andy Wingo <wingo@igalia.com>
477
478 * configure.ac (try_guile_versions): Allow building with guile 2.2.
479 * configure: Regenerate.
480
589fdceb
MM
4812014-05-23 Markus Metzger <markus.t.metzger@intel.com>
482
483 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
484
67b5c0c1
MM
4852014-05-23 Markus Metzger <markus.t.metzger@intel.com>
486
487 * record-btrace.c (record_btrace_allow_memory_access): Remove.
488 (replay_memory_access_read_only, replay_memory_access_read_write)
489 (replay_memory_access_types, replay_memory_access)
490 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
491 (cmd_set_record_btrace, cmd_show_record_btrace)
492 (cmd_show_replay_memory_access): New.
493 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
494 (record_btrace_remove_breakpoint): Replace
495 record_btrace_allow_memory_access with replay_memory_access.
496 (_initialize_record_btrace): Add commands.
497 * NEWS: Announce it.
498
036cd381
RR
4992014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
500
501 * aarch64-linux-nat.c (asm/ptrace.h): Include.
502
c77c1e42
RR
5032014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
504
505 * MAINTAINERS (Write After Approval): Move self back from
506 paper trail.
507
45741a9c
PA
5082014-05-22 Pedro Alves <palves@redhat.com>
509
510 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
511 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
512 (disable_randomization, enum exec_direction_kind)
513 (execution_direction, stop_registers, start_remote)
514 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
515 (wait_for_inferior, normal_stop, get_last_target_status)
516 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
517 (insert_step_resume_breakpoint_at_sal)
518 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
519 (set_step_info, print_stop_event, signal_stop_state)
520 (signal_print_state, signal_pass_state, signal_stop_update)
521 (signal_print_update, signal_pass_update)
522 (update_signals_program_target, clear_exit_convenience_vars)
523 (displaced_step_dump_bytes, update_observer_mode)
524 (signal_catch_update, gdb_signal_from_command): Move
525 declarations ...
526 * infrun.h: ... to this new file.
527 * amd64-tdep.c: Include infrun.h.
528 * annotate.c: Include infrun.h.
529 * arch-utils.c: Include infrun.h.
530 * arm-linux-tdep.c: Include infrun.h.
531 * arm-tdep.c: Include infrun.h.
532 * break-catch-sig.c: Include infrun.h.
533 * breakpoint.c: Include infrun.h.
534 * common/agent.c: Include infrun.h instead of inferior.h.
535 * corelow.c: Include infrun.h.
536 * event-top.c: Include infrun.h.
537 * go32-nat.c: Include infrun.h.
538 * i386-tdep.c: Include infrun.h.
539 * inf-loop.c: Include infrun.h.
540 * infcall.c: Include infrun.h.
541 * infcmd.c: Include infrun.h.
542 * infrun.c: Include infrun.h.
543 * linux-fork.c: Include infrun.h.
544 * linux-nat.c: Include infrun.h.
545 * linux-thread-db.c: Include infrun.h.
546 * monitor.c: Include infrun.h.
547 * nto-tdep.c: Include infrun.h.
548 * procfs.c: Include infrun.h.
549 * record-btrace.c: Include infrun.h.
550 * record-full.c: Include infrun.h.
551 * remote-m32r-sdi.c: Include infrun.h.
552 * remote-mips.c: Include infrun.h.
553 * remote-notif.c: Include infrun.h.
554 * remote-sim.c: Include infrun.h.
555 * remote.c: Include infrun.h.
556 * reverse.c: Include infrun.h.
557 * rs6000-tdep.c: Include infrun.h.
558 * s390-linux-tdep.c: Include infrun.h.
559 * solib-irix.c: Include infrun.h.
560 * solib-osf.c: Include infrun.h.
561 * solib-svr4.c: Include infrun.h.
562 * target.c: Include infrun.h.
563 * top.c: Include infrun.h.
564 * windows-nat.c: Include infrun.h.
565 * mi/mi-interp.c: Include infrun.h.
566 * mi/mi-main.c: Include infrun.h.
567 * python/py-threadevent.c: Include infrun.h.
568
98eb56a4
PA
5692014-05-22 Pedro Alves <palves@redhat.com>
570
571 * infrun.c (handle_inferior_event): Store the exit code for
572 --return-child-result here, instead of ...
573 (print_exited_reason): ... here.
574
17b2616c
PA
5752014-05-21 Pedro Alves <palves@redhat.com>
576
577 PR gdb/13860
578 * gdbthread.h (struct thread_control_state): New field
579 `command_interp'.
580 * infrun.c (follow_fork): Copy the new thread control field to the
581 child fork thread.
582 (clear_proceed_status_thread): Clear the new thread control field.
583 (proceed): Set the new thread control field.
584 * interps.h (command_interp): Declare.
585 * interps.c (command_interpreter): New global.
586 (command_interp): New function.
587 (interp_exec): Set `command_interpreter' while here.
588 * cli-out.c (cli_uiout_dtor): New function.
589 (cli_ui_out_impl): Install it.
590 * mi/mi-interp.c: Include cli-out.h.
591 (mi_cmd_interpreter_exec): Add comment.
592 (restore_current_uiout_cleanup): New function.
593 (ui_out_free_cleanup): New function.
594 (mi_on_normal_stop): If finishing an execution command started by
595 a CLI command, or any kind of breakpoint-like event triggered,
596 print the stop event to the output (CLI) stream.
597 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
598
5166082f
PA
5992014-05-21 Pedro Alves <palves@redhat.com>
600
601 * cli/cli-cmds.c (list_command): Handle the first "list" after the
602 current source line having changed.
603 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
604 * infrun.c (normal_stop): Adjust call to
605 set_current_sal_from_frame.
606 * source.c (clear_lines_listed_range): New function.
607 (set_current_source_symtab_and_line, identify_source_line): Clear
608 the lines listed range.
609 (line_info): Handle the first "info line" after the current source
610 line having changed.
611 * stack.c (print_stack_frame): Remove center handling.
612 (set_current_sal_from_frame): Remove 'center' parameter. Don't
613 center sal.line.
614
c1ee2fb3
PA
6152014-05-21 Pedro Alves <palves@redhat.com>
616
617 * inf-child.c (inf_child_mourn_inferior): New function.
618 * inf-child.h (inf_child_mourn_inferior): New declaration.
619 * darwin-nat.c (darwin_mourn_inferior): Use
620 inf_child_mourn_inferior.
621 * gnu-nat.c (gnu_mourn_inferior): Likewise.
622 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
623 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
624 * nto-procfs.c (procfs_mourn_inferior): Likewise.
625 * windows-nat.c (windows_mourn_inferior): Likewise.
626
5c6d4fb2
DE
6272014-05-21 Doug Evans <xdje42@gmail.com>
628
250748cb 629 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 630
4a2722c5
DE
6312014-05-21 Doug Evans <xdje42@gmail.com>
632
17292b30 633 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
634 (gdbscm_out_of_range_error): Ditto.
635 (gdbscm_memory_error): Ditto.
250748cb
DE
636 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
637 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
638 (gdbscm_out_of_range_error): Update.
639 (gdbscm_memory_error): Update.
640 (gdbscm_scm_to_target_string_unsafe): Delete.
641
6a3cb8e8
PA
6422014-05-21 Pedro Alves <palves@redhat.com>
643
644 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
645 globals.
646 (inf_child_open_target): New function.
647 (inf_child_open): Use inf_child_open_target to push the target
648 instead of erroring out.
649 (inf_child_disconnect, inf_child_close)
650 (inf_child_maybe_unpush_target): New functions.
651 (inf_child_target): Install inf_child_disconnect and
652 inf_child_close. Store a pointer to the returned object.
653 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
654 declarations.
655 * target.c (auto_connect_native_target): New global.
656 (show_default_run_target): New function.
657 (find_default_run_target): Return NULL if automatically connecting
658 to the native target is disabled.
659 (_initialize_target): Install set/show auto-connect-native-target.
660 * NEWS: Mention "set auto-connect-native-target", and "target
661 native".
662 * linux-nat.c (super_close): New global.
663 (linux_nat_close): Call super_close.
664 (linux_nat_add_target): Store a pointer to the base class's
665 to_close method.
666 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
667 inf_child_maybe_unpush.
668 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
669 already pushed.
670 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
671 the inferior. Use inf_child_maybe_unpush_target.
672 (inf_ttrace_attach): Don't push the target if it is already
673 pushed.
674 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
675 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
676 after mourning the inferior. Use inf_child_maybe_unpush_target.
677 (darwin_attach_pid): Don't push the target if it is already
678 pushed.
679 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
680 mourning the inferior. Use inf_child_maybe_unpush_target.
681 (gnu_detach): Use inf_child_maybe_unpush_target.
682 * go32-nat.c (go32_create_inferior): Don't push the target if it
683 is already pushed.
684 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
685 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
686 (procfs_open): Rename to ...
687 (procfs_open_1): ... this. Add target_ops parameter. Adjust
688 comments. Can target_preopen before changing node. Call
689 inf_child_open_target to push the target explicitly.
690 (procfs_attach): Don't push the target if it is already pushed.
691 (procfs_detach): Use inf_child_maybe_unpush_target.
692 (procfs_create_inferior): Don't push the target if it is already
693 pushed.
694 (nto_native_ops): New global.
695 (procfs_open): Reimplement.
696 (procfs_native_open): New function.
697 (init_procfs_targets): Install procfs_native_open as to_open of
698 "target native". Store a pointer to the "native" target in
699 nto_native_ops.
700 * procfs.c (procfs_attach): Don't push the target if it is already
701 pushed.
702 (procfs_detach): Use inf_child_maybe_unpush_target.
703 (procfs_mourn_inferior): Only unpush the target after mourning the
704 inferior. Use inf_child_maybe_unpush_target.
705 (procfs_init_inferior): Don't push the target if it is already
706 pushed.
707 * windows-nat.c (do_initial_windows_stuff): Don't push the target
708 if it is already pushed.
709
930ee1b1
PA
7102014-05-21 Pedro Alves <palves@redhat.com>
711
712 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
713 and "procfs" targets are now called "native" instead.
714
1f5d1b13
PA
7152014-05-21 Pedro Alves <palves@redhat.com>
716
717 * go32-nat.c (go32_open): Delete.
718 (go32_target): Don't override the to_open method.
719
132f8e03
PA
7202014-05-21 Pedro Alves <palves@redhat.com>
721
722 * nto-procfs.c (procfs_can_run): New function.
723 (nto_procfs_ops): New global.
724 (init_procfs_targets): New, based on procfs_target. Install
725 "target native" in addition to "target procfs".
726 (_initialize_procfs): Call init_procfs_targets instead of adding
727 the target here.
728
03c136c3
PA
7292014-05-21 Pedro Alves <palves@redhat.com>
730
731 * windows-nat.c (windows_target): Don't override to_shortname,
732 to_longname or to_doc.
733
a635d0f3
PA
7342014-05-21 Pedro Alves <palves@redhat.com>
735
736 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
737 to_doc.
738
4f9b5133
PA
7392014-05-21 Pedro Alves <palves@redhat.com>
740
741 * darwin-nat.c (_initialize_darwin_inferior): Don't override
742 to_shortname, to_longname or to_doc.
743
bc85afde
PA
7442014-05-21 Pedro Alves <palves@redhat.com>
745
746 * go32-nat.c (go32_target): Don't override to_shortname,
747 to_longname or to_doc.
748
4ebfc96e
PA
7492014-05-21 Pedro Alves <palves@redhat.com>
750
751 * inf-child.c (inf_child_open): Remove mention of "child".
752 (inf_child_target): Rename target to "native" instead of "child".
753
2648dfed
AA
7542014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
755
756 * Makefile.in (SFILES): Delete "regset.c".
757 (COMMON_OBS): Delete "regset.o".
758 * regset.c: Remove.
759 * regset.h (regset_alloc): Delete prototype.
760
b13feb94
AA
7612014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
762
763 * sparc-linux-tdep.c (sparc32_linux_gregset)
764 (sparc32_linux_fpregset): New static regset structures.
765 (sparc32_linux_init_abi): Drop dynamic regset allocations.
766 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
767 'fpregset' fields.
768 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
769 (sparc64_linux_fpregset): New static regset structures.
770 (sparc64_linux_init_abi): Drop dynamic regset allocations.
771 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
772 New static regset structures.
773 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
774 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
775 New static regset structures.
776 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
777 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
778 New static regset structures.
779 (sparc64obsd_init_abi): Drop dynamic regset allocations.
780 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
781 New static regset structures.
782 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
783
b4fd25c9
AA
7842014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
785
786 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
787 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
788 register maps ("regmaps") from "*regset" to "*regmap". Do this
789 for all regmap types and variables.
790 * sparc-linux-tdep.c (sparc32_linux_step_trap)
791 (sparc32_linux_supply_core_gregset)
792 (sparc32_linux_collect_core_gregset)
793 (sparc32_linux_supply_core_fpregset)
794 (sparc32_linux_collect_core_fpregset): Likewise.
795 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
796 (sparc_gregmap, sparc_fpregmap): ... these.
797 (sparc_supply_gregset, sparc_collect_gregset)
798 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
799 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
800 (_initialize_sparc_nat): Rename regmaps.
801 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
802 (sparc_gregmap, sparc_fpregmap): ... these.
803 (sparc_supply_gregset, sparc_collect_gregset)
804 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
805 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
806 Rename macros to...
807 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
808 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
809 Likewise.
810 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
811 Rename to...
812 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
813 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
814 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
815 regmaps.
816 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
817 (sparc32_bsd_fpregset): Rename to...
818 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
819 (sparc32_bsd_fpregmap): ... these.
820 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
821 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
822 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
823 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
824 (struct sparc_gregmap, struct sparc_fpregmap)
825 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
826 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
827 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
828 (sparc32_supply_regset, sparc32_collect_gregset)
829 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
830 prototypes.
831 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
832 (sparc64_linux_ptrace_gregmap): ... this.
833 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
834 (_initialize_sparc64_linux_nat): Rename regmaps.
835 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
836 (sparc64_linux_core_gregmap): ... this.
837 (sparc64_linux_supply_core_gregset)
838 (sparc64_linux_collect_core_gregset)
839 (sparc64_linux_supply_core_fpregset)
840 (sparc64_linux_collect_core_fpregset): Rename regmaps.
841 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
842 (sparc64_sol2_fpregset): Rename to...
843 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
844 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
845 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
846 regmaps.
847 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
848 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
849 (sparc64_bsd_fpregset): Rename to...
850 (struct sparc_gregmap, sparc64_sol2_gregmap)
851 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
852 (sparc64_bsd_fpregmap): ... these.
853 (sparc64_supply_gregset, sparc64_collect_gregset)
854 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
855 prototypes.
856 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
857 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
858 (sparc64fbsd_gregmap): ... this.
859 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
860 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
861 Rename regmaps.
862 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
863 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
864 (sparc64nbsd_collect_fpregset): Likewise.
865 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
866 (sparc64nbsd_gregmap): ... this.
867 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
868 regmaps.
869 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
870 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
871 (sparc64obsd_gregmap): ... this.
872 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
873 regmaps.
874 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
875 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
876 (sparc32nbsd_gregmap): ... this.
877 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
878 regmaps.
879
8fea3224
AA
8802014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
881
882 * score-tdep.c (score7_linux_gregset): New static regset
883 structure.
884 (score7_linux_regset_from_core_section): Remove dynamic regset
885 allocation.
886 (score_gdbarch_init): Drop allocation of tdep structure.
887 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
888
24534243
AA
8892014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
890
891 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
892 regset structures.
893 (am33_regset_from_core_section): Remove dynamic regset
894 allocations.
895
b7195f27
AA
8962014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
897
898 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
899 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
900 structures.
901 (mips_linux_regset_from_core_section): Remove dynamic regset
902 allocations.
903 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
904 'gregset64', 'fpregset', and 'fpregset64'.
905 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
906 deleted tdep fields.
907
ecc37a5a
AA
9082014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
909
910 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
911 regset structures.
912 (amd64_regset_from_core_section): Remove dynamic regset
913 allocations.
914 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
915 structure.
916 (amd64obsd_regset_from_core_section): Remove dynamic regset
917 allocation.
918 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
919 Likewise.
920 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
921 x86-common regset supply function.
922 * i386-tdep.c (i386_collect_gregset): Make static.
923 (i386_gregset): New global regset structure.
924 (i386_fpregset, i386_xstateregset): New static regset structures.
925 (i386_regset_from_core_section): Remove dynamic regset
926 allocations.
927 (i386_gdbarch_init): Remove initialization of tdep fields
928 'gregset', 'fpregset', and 'xstateregset'.
929 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
930 'fpregset', and 'xstateregset'.
931 (i386_collect_gregset): Remove prototype.
932 (i386_gregset): New declaration.
933 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
934 structure.
935 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
936 allocation.
937
b7611c43
AA
9382014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
939
940 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
941 (arm_linux_vfpregset): New static regset structures.
942 (arm_linux_regset_from_core_section): Remove dynamic allocation of
943 regset structures.
944 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
945 and 'vfpregset' fields.
946
a069a2bd
AA
9472014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
948
949 * aarch64-linux-tdep.c (aarch64_linux_gregset)
950 (aarch64_linux_fpregset): New static regset structures.
951 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
952 of regset structures.
953 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
954 'fpregset' fields.
955
09424cff
AA
9562014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
957
958 * regset.h (struct regset): Remove gdbarch field.
959 * regset.c (regset_alloc): Drop initialization of gdbarch field.
960 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
961 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
962 Likewise.
963 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
964 (ppc32_linux_fpregset, ppc32_linux_vrregset)
965 (ppc32_linux_vsxregset): Likewise.
966 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
967 via the regcache instead of the regset.
968 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
969 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
970 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
971 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
972 Likewise.
973
3ca7dae4
AA
9742014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
975
976 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
977 Constify structures.
978 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
979 (alphanbsd_aout_gregset): Likewise.
980 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
981 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
982 Likewise.
983 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
984 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
985 Likewise.
986 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
987 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
988 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
989 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
990 * m88k-tdep.c (m88k_gregset): Likewise.
991 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
992 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
993 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
994 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
995 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
996 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
997 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
998 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
999 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
1000 Likewise.
1001 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
1002 * sh-tdep.h (sh_corefile_gregset): Likewise.
1003 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
1004 * vax-tdep.c (vax_gregset): Likewise.
1005
5876f503
JK
10062014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1007
1008 Fix TLS access for -static -pthread.
1009 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
1010 (try_thread_db_load_1): Initialize it.
1011 (thread_db_get_thread_local_address): Call it if LM is zero.
1012 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
1013 * target.h (struct target_ops) (to_get_thread_local_address): Add
1014 load_module_addr comment.
1015
0256a6ac
PA
10162014-05-21 Pedro Alves <palves@redhat.com>
1017
1018 * dcache.c (dcache_read_memory_partial): If reading the cache line
1019 fails, fallback to reading just the memory the caller wanted.
1020
227533ac
DE
10212014-05-20 Doug Evans <dje@google.com>
1022
1023 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
1024 instead of get_current_arch.
1025
936d2992
PA
10262014-05-20 Pedro Alves <palves@redhat.com>
1027
1028 * NEWS: Mention that compare-sections now works with all targets.
1029
1030 * remote.c (PACKET_qCRC): New enum value.
1031 (remote_verify_memory): Don't send qCRC if the target has no
1032 execution. Use packet_support/packet_ok. If the target doesn't
1033 support the qCRC packet, fallback to a deep memory copy.
1034 (compare_sections_command): Say "target image" instead of "remote
1035 executable".
1036 (_initialize_remote): Add PACKET_qCRC to the list of config
1037 packets that have no associated command. Extend comment.
1038 * target.c (simple_verify_memory, default_verify_memory): New
1039 function.
1040 * target.h (struct target_ops) <to_verify_memory>: Default to
1041 default_verify_memory.
1042 (simple_verify_memory): New declaration.
1043 * target-delegates.c: Regenerate.
1044
e59fa00f
MM
10452014-05-20 Markus Metzger <markus.t.metzger@intel.com>
1046
1047 * record-btrace.c (record_btrace_step_thread): Check for empty history.
1048
f2205de0
HZ
10492014-05-20 Hui Zhu <hui@codesourcery.com>
1050 Yao Qi <yao@codesourcery.com>
1051
1052 PR backtrace/16558
1053 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
1054 and change address of sp and pc.
1055
c4e54771
TT
10562014-05-19 Tom Tromey <tromey@redhat.com>
1057
1058 * gdbtypes.c (rank_function): Use XNEWVEC.
1059 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
1060
73051182
DE
10612014-05-19 Doug Evans <dje@google.com>
1062
1063 * dwarf2read.c (build_type_psymtabs_1): Renamed from
1064 build_type_unit_groups and moved closer to only caller. Remove
1065 arguments. All references updated. Remove outdated .gdb_index
1066 comment.
1067 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
1068 build_type_psymtabs_1.
1069
8832e7e3
DE
10702014-05-19 Doug Evans <dje@google.com>
1071
1072 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
1073 n_type_unit_groups, all_type_unit_groups. All uses removed.
1074 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
1075 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
1076 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
1077 (add_type_unit_group_to_table): Delete.
1078
cd8ae15e
DE
10792014-05-19 Doug Evans <dje@google.com>
1080
1081 * eval.c (evaluate_subexp_standard): Add some comments.
1082
08f4850b
DE
10832014-05-17 Doug Evans <xdje42@gmail.com>
1084
1085 * progspace.c (remove_program_space): Delete, unused.
1086 * progspace.h (remove_program_space): Ditto.
1087
bed8455c
DE
10882014-05-17 Doug Evans <xdje42@gmail.com>
1089
1090 * inferior.c (prune_inferiors): Fix comment.
1091 (remove_inferior_command): Call prune_program_spaces.
1092
8d551b02
DE
10932014-05-16 Doug Evans <dje@google.com>
1094
1095 New command line option -D.
1096 * NEWS: Mention it.
1097 * main.c (set_gdb_data_directory): New function.
1098 (captured_main): Recognize -D. Flag error for --data-directory "".
1099 Call set_gdb_data_directory.
1100 (print_gdb_help): Print --data-directory, -D.
1101 * main.h (set_gdb_data_directory): Declare.
1102 * top.c (staged_gdb_datadir): New static global.
1103 (set_gdb_datadir): Call set_gdb_data_directory
1104 (show_gdb_datadir): New function.
1105 (init_main): Update init of data-directory parameter.
1106
18848e28
GF
11072014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
1108
1109 Import the "dirfd" gnulib module.
1110 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
1111 * gnulib/aclocal.m4: Update.
1112 * gnulib/config.in: Update.
1113 * gnulib/configure: Update.
1114 * gnulib/import/Makefile.am: Update.
1115 * gnulib/import/Makefile.in: Update.
1116 * gnulib/import/dirfd.c: New.
1117 * gnulib/import/m4/dirfd.m4: New.
1118 * gnulib/import/m4/gnulib-cache.m4: Update.
1119 * gnulib/import/m4/gnulib-comp.m4: Update.
1120
95c64f92
YQ
11212014-05-16 Pierre Muller <muller@sourceware.org>
1122 Yao Qi <yao@codesourcery.com>
1123
1124 * valprint.c (print_wchar): Move the code on checking whether
1125 W is a printable wide char to the default branch of switch
1126 statement below. Call wchar_printable instead of gdb_iswprint.
1127
cac395ea
TM
11282014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
1129
19679eca 1130 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
1131 ldr.w and ldrd instructions.
1132
83655187
DE
11332014-05-15 Doug Evans <dje@google.com>
1134
1135 * dwarf2read.c (read_structure_type): Delete outdated comments.
1136
dd756689
TT
11372014-05-14 Tom Tromey <tromey@redhat.com>
1138
1139 * macrocmd.c (print_macro_definition): Reindent.
1140
75ddda77
DE
11412014-05-13 Doug Evans <xdje42@gmail.com>
1142
1143 * python/py-cmd.c (cmdpy_completer): Add comment.
1144 (completers): Make const.
1145
b0f16a3e
SM
11462014-05-13 Simon Marchi <simon.marchi@ericsson.com>
1147
1148 * infrun.c (resume): Remove should_resume (unused). Move up
1149 declaration of resume_ptid.
1150
033c3379
TT
11512014-05-13 Tom Tromey <tromey@redhat.com>
1152
1153 * language.h (unop_type_check): Remove.
1154 (binop_type_check): Don't declare.
1155
9b44a3a5
AA
11562014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
1157
1158 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
1159 call to regcache_raw_collect.
1160
303a33fa
SM
11612014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1162
1163 * mi/mi-console.c (mi_console_raw_packet): Use the value from
1164 mi_console->quote as the quoting character.
1165
196100a0
SM
11662014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1167
1168 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
1169
f989a1c8
TT
11702014-04-29 Tom Tromey <tromey@redhat.com>
1171
1172 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
1173 "show debug varobj".
1174
9404b58f
KM
11752014-05-07 Kyle McMartin <kyle@redhat.com>
1176
1177 Pushed by Joel Brobecker <brobecker@adacore.com>.
1178 * aarch64-tdep.c (aarch64_software_single_step): New function.
1179 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
1180 with aarch64_software_single_step.
1181
5e49ba57
JB
11822014-05-05 Joel Brobecker <brobecker@adacore.com>
1183
1184 GDB 7.7.1 released.
1185
c888a17d
KS
11862014-05-05 Keith Seitz <keiths@redhat.com>
1187
1188 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
1189 variable or history value is successfully parsed.
1190
290a839c
YQ
11912014-05-05 Yao Qi <yao@codesourcery.com>
1192 Pedro Alves <palves@redhat.com>
1193
1194 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
1195 address of blocks that intersects the requested range. Trim
1196 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
1197 sections.
1198 * ctf.c (ctf_xfer_partial): Likewise.
1199
91256dc2
YQ
12002014-05-05 Yao Qi <yao@codesourcery.com>
1201
1202 * printcmd.c (display_command): Remove the check to
1203 target_has_execution.
1204
07284463
MK
12052014-05-03 Mark Kettenis <kettenis@gnu.org>
1206
1207 * ppcobsd-nat.c: Include "obsd-nat.h".
1208 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
1209 add_target.
1210 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
1211
30a1e6cc
SDJ
12122014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1213
1214 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
1215 and 16-bit signed and unsigned arguments. Update comment.
1216 (stap_parse_probe_arguments): Extend code to handle such
1217 arguments. Use warning instead of complaint to notify about
1218 unrecognized bitness.
1219
f33da99a
SDJ
12202014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1221
1222 PR breakpoints/16889
1223 * stap-probe.c (stap_parse_probe_arguments): Simplify
1224 check for non-prefixed probes (i.e., probes whose
1225 arguments do not start with "N@"). Always set the
1226 argument type to a sane value.
1227
95cf3b38
DT
12282014-05-01 David Taylor <dtaylor@emc.com>
1229
1230 * remote.c (compare_sections_command): Add -r option to compare
1231 all loadable read-only sections.
1232
1cfdf534
SC
12332014-04-30 Siva Chandra Reddy <sivachandra@google.com>
1234
1235 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
1236 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
1237 Update all callers.
1238 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
1239 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
1240 Remove unused CORE_ADDR argument. Update all callers.
1241
ca4f7f8b
PA
12422014-04-29 Pedro Alves <palves@redhat.com>
1243
1244 * remote.c (struct packet_config) <detect>: Extend comment.
1245 (add_packet_config_cmd): Don't set the config's detect or support
1246 fields here.
1247 (init_all_packet_configs): Also initialize the config's 'detect'
1248 field.
1249 (reset_all_packet_configs_support): New function.
1250 (remote_open_1): Call reset_all_packet_configs_support instead of
1251 init_all_packet_configs.
1252 (_initialize_remote): Initialize all packet configs. Assert that
1253 all packets have an associated command, except a few known
1254 outliers.
1255
11c1ba78
JB
12562014-04-28 Joel Brobecker <brobecker@adacore.com>
1257
1258 * dwarf2read.c (read_subrange_type): Handle dynamic
1259 DW_AT_lower_bound attributes.
1260
8739bc53
JB
12612014-04-28 Joel Brobecker <brobecker@adacore.com>
1262
1263 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
1264 dynamic bounds before computing its upper bound.
1265 (ada_discrete_type_low_bound): Same as above with the lower bound.
1266
6f8a3220
JB
12672014-04-28 Joel Brobecker <brobecker@adacore.com>
1268
1269 * dwarf2read.c (is_dynamic_type): Return true for dynamic
1270 range types. Adjust the array handling implementation to
1271 take advantage of this change.
1272 (resolve_dynamic_range): New function, mostly extracted from
1273 resolve_dynamic_bounds.
1274 (resolve_dynamic_array): New function, mostly extracted from
1275 resolve_dynamic_bounds.
1276 (resolve_dynamic_bounds): Delete.
1277 (resolve_dynamic_type): Reimplement. Add handling of
1278 TYPE_CODE_RANGE types.
1279
4d072ce4
JB
12802014-04-28 Joel Brobecker <brobecker@adacore.com>
1281
1282 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
1283 handling of parallel ___XA types.
1284
52865325
JB
12852014-04-28 Joel Brobecker <brobecker@adacore.com>
1286
1287 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
1288 unnecessary second call to static_unwrap_type.
1289
433e77fa
HZ
12902014-04-27 Hui Zhu <hui@codesourcery.com>
1291
1292 * stack.c (print_frame_info): Call do_gdb_disassembly with
1293 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
1294
b51a69ee
DE
12952014-04-26 Doug Evans <xdje42@gmail.com>
1296
1297 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
1298
7ae1a6a6
PA
12992014-04-25 Pedro Alves <palves@redhat.com>
1300
1301 PR server/16255
1302 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
1303 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
1304 and newline from built string.
1305 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
1306 (linux_ptrace_attach_fail_reason): ... this.
1307 * linux-nat.c (linux_nat_attach): Adjust to use
1308 linux_ptrace_attach_fail_reason.
1309
4082afcc
PA
13102014-04-25 Pedro Alves <palves@redhat.com>
1311
1312 * remote.c (struct remote_state): Remove multi_process_aware,
1313 non_stop_aware, cond_tracepoints, cond_breakpoints,
1314 breakpoint_commands, fast_tracepoints, static_tracepoints,
1315 install_in_trace, disconnected_tracing,
1316 enable_disable_tracepoints, string_tracing, and
1317 augmented_libraries_svr4_read fields.
1318 (remote_multi_process_p): Move further below in the file.
1319 (struct packet_config): Add comments.
1320 (update_packet_config): Delete function.
1321 (show_packet_config_cmd): Use packet_config_support.
1322 (add_packet_config_cmd): Use NULL as set callback.
1323 (packet_ok): "set remote foo-packet"-style commands no longer
1324 change config->supported -- adjust.
1325 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
1326 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
1327 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
1328 (PACKET_QNonStop, PACKET_multiprocess_feature)
1329 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
1330 (PACKET_DisconnectedTracing_feature)
1331 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
1332 (set_remote_protocol_packet_cmd): Delete function.
1333 (packet_config_support, packet_support): New functions.
1334 (set_remote_protocol_Z_packet_cmd): Don't call
1335 update_packet_config.
1336 (remote_query_attached, remote_pass_signals)
1337 (remote_program_signals, remote_threads_info)
1338 (remote_threads_extra_info, remote_start_remote): Use
1339 packet_support.
1340 (remote_start_remote): Use packet_config_support and
1341 packet_support.
1342 (init_all_packet_configs): Set all packets to unknown support,
1343 instead of calling update_packet_config.
1344 (remote_check_symbols): Use packet_support.
1345 (remote_supported_packet): Unconditionally set the packet config's
1346 support status.
1347 (remote_multi_process_feature, remote_non_stop_feature)
1348 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
1349 (remote_breakpoint_commands_feature)
1350 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
1351 (remote_install_in_trace_feature)
1352 (remote_disconnected_tracing_feature)
1353 (remote_enable_disable_tracepoint_feature)
1354 (remote_string_tracing_feature)
1355 (remote_augmented_libraries_svr4_read_feature): Delete functions.
1356 (remote_protocol_features): Adjust to use remote_supported_packet
1357 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
1358 "ConditionalTracepoints", "ConditionalBreakpoints",
1359 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
1360 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
1361 "EnableDisableTracepoints", and "tracenz".
1362 (remote_query_supported): Use packet_support.
1363 (remote_open_1): Adjust.
1364 (extended_remote_attach_1): Use packet_support. Switch on the
1365 result of packet_ok instead of checking whether the packet ended
1366 up disabled.
1367 (remote_vcont_resume): Use packet_support.
1368 (remote_resume, remote_stop_ns, fetch_register_using_p)
1369 (remote_prepare_to_store, store_register_using_P)
1370 (check_binary_download, remote_write_bytes): Use packet_support.
1371 (remote_vkill): Use packet_support. Switch on the result of
1372 packet_ok instead of checking whether the packet ended up
1373 disabled.
1374 (extended_remote_supports_disable_randomization): Use
1375 packet_support.
1376 (extended_remote_run): Switch on the result of packet_ok instead
1377 of checking whether the packet ended up disabled.
1378 (remote_insert_breakpoint, remote_remove_breakpoint)
1379 (remote_insert_watchpoint, remote_remove_watchpoint)
1380 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
1381 packet_support.
1382 (remote_search_memory): Use packet_config_support.
1383 (remote_get_thread_local_address, remote_get_tib_address)
1384 (remote_hostio_send_command, remote_can_execute_reverse): Use
1385 packet_support.
1386 (remote_supports_cond_tracepoints)
1387 (remote_supports_cond_breakpoints)
1388 (remote_supports_fast_tracepoints)
1389 (remote_supports_static_tracepoints)
1390 (remote_supports_install_in_trace)
1391 (remote_supports_enable_disable_tracepoint)
1392 (remote_supports_string_tracing)
1393 (remote_can_run_breakpoint_commands): Rewrite, checking whether
1394 the packet config says the feature is enabled or disabled.
1395 (remote_download_tracepoint, remote_trace_set_readonly_regions)
1396 (remote_get_trace_status): Use packet_support.
1397 (remote_set_disconnected_tracing): Adjust to check whether the
1398 feature is enabled with packet_support.
1399 (remote_set_trace_buffer_size, remote_use_agent)
1400 (remote_can_use_agent, remote_supports_btrace): Use
1401 packet_support.
1402 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
1403 Use packet_config_support.
1404 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
1405 the packet config says the feature is enabled or disabled.
1406 (set_range_stepping): Use packet_support.
1407
bdb52a22
TT
14082014-04-25 Tom Tromey <tromey@redhat.com>
1409
1410 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
1411 argument.
1412
e9475ead
SA
14132014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
1414
1415 * NEWS: Mention support for C99 variable length arrays.
1416
82eacd52
JB
14172014-04-24 Joel Brobecker <brobecker@adacore.com>
1418
1419 * ada-lang.c (standard_exc): Expand introductory comment.
1420
01f9f808
MS
14212014-04-24 Michael Sturm <michael.sturm@mintel.com>
1422 Walfred Tedeschi <walfred.tedeschi@intel.com>
1423
1424 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
1425 AVX512 registers.
1426 (amd64_linux_read_description): Add code to handle AVX512 xstate
1427 mask and return respective tdesc.
1428 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
1429 and features/i386/x32-avx512-linux.c.
1430 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
1431 (amd64_linux_core_read_description): Add code to handle AVX512
1432 xstate mask and return respective tdesc.
1433 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
1434 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
1435 calculation.
1436 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
1437 (tdesc_amd64_avx512_linux): New prototype.
1438 (tdesc_x32_avx512_linux): Likewise.
1439 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
1440 features/i386/x32-avx512.c.
1441 (amd64_ymm_avx512_names): New register names for pseudo
1442 registers YMM16-31.
1443 (amd64_ymmh_avx512_names): New register names for raw registers
1444 YMMH16-31.
1445 (amd64_k_names): New register names for K registers.
1446 (amd64_zmmh_names): New register names for ZMM raw registers.
1447 (amd64_zmm_names): New registers names for ZMM pseudo registers.
1448 (amd64_xmm_avx512_names): New register names for XMM16-31
1449 registers.
1450 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
1451 registers.
1452 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
1453 if feature is present.
1454 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
1455 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
1456 (AMD64_NUM_REGS): Adjust to new number of registers.
1457 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
1458 registers supplied via XSTATE by AVX512 registers.
1459 (i386_linux_read_description): Add case for AVX512.
1460 * i386-linux-tdep.c: Include i386-avx512-linux.c.
1461 (i386_linux_gregset_reg_offset): Add AVX512 registers.
1462 (i386_linux_core_read_description): Add case for AVX512.
1463 (i386_linux_init_abi): Install supported register note section
1464 for AVX512.
1465 (_initialize_i386_linux_tdep): Add call to tdesc init function for
1466 AVX512.
1467 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
1468 registers to be number of zmm7h + 1.
1469 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
1470 * i386-tdep.c: Include features/i386/i386-avx512.c.
1471 (i386_zmm_names): Add ZMM pseudo register names array.
1472 (i386_zmmh_names): Add ZMM raw register names array.
1473 (i386_k_names): Add K raw register names array.
1474 (num_lower_zmm_regs): Add constant for the number of lower ZMM
1475 registers. AVX512 has 16 more ZMM registers than there are YMM
1476 registers.
1477 (i386_zmmh_regnum_p): Add function to look up register number of
1478 ZMM raw registers.
1479 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
1480 (i386_k_regnum_p): Likewise for K raw registers.
1481 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
1482 registers added by AVX512.
1483 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
1484 registers added by AVX512.
1485 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
1486 added by AVX512.
1487 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
1488 (i386_pseudo_register_name): Add ZMM pseudo registers.
1489 (i386_zmm_type): Construct and return vector registers type for ZMM
1490 registers.
1491 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
1492 ZMM0-31 pseudo registers and K registers.
1493 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
1494 and YMM16-31 registers from register cache.
1495 (i386_pseudo_register_write): Add code to write K, ZMM and
1496 YMM16-31 registers.
1497 (i386_register_reggroup_p): Add code to include/exclude AVX512
1498 registers in/from respective register groups.
1499 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
1500 registers if feature is present in xcr0.
1501 (i386_gdbarch_init): Add code to initialize AVX512 feature
1502 variables in tdep structure, wire in pseudo registers and call
1503 initialize_tdesc_i386_avx512.
1504 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
1505 variables.
1506 (i386_regnum): Add AVX512 registers.
1507 (I386_SSE_NUM_REGS): New define for number of SSE registers.
1508 (I386_AVX_NUM_REGS): Likewise for AVX registers.
1509 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
1510 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
1511 512 bits wide.
1512 (i386_xmm_avx512_regnum_p): New prototype for register look up.
1513 (i386_ymm_avx512_regnum_p): Likewise.
1514 (i386_k_regnum_p): Likewise.
1515 (i386_zmm_regnum_p): Likewise.
1516 (i386_zmmh_regnum_p): Likewise.
1517 * i387-tdep.c : Update year in copyright notice.
1518 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
1519 XSAVE buffer.
1520 (XSAVE_YMM_AVX512_ADDR): New macro.
1521 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
1522 XSAVE buffer.
1523 (XSAVE_XMM_AVX512_ADDR): New macro.
1524 (xsave_avx512_k_offset): New table for K register offsets in
1525 XSAVE buffer.
1526 (XSAVE_AVX512_K_ADDR): New macro.
1527 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
1528 in XSAVE buffer.
1529 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
1530 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
1531 buffer.
1532 (i387_collect_xsave): Add code to collect AVX512 registers from
1533 XSAVE buffer.
1534 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
1535 of XMM16-31 registers.
1536 (I387_NUM_K_REGS): New define for number of K registers.
1537 (I387_K0_REGNUM): New define for K0 register number.
1538 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
1539 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
1540 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
1541 registers.
1542 (I387_YMM16H_REGNUM): New define for YMM16H register number.
1543 (I387_XMM16_REGNUM): New define for XMM16 register number.
1544 (I387_YMM0_REGNUM): New define for YMM0 register number.
1545 (I387_KEND_REGNUM): New define for last K register number.
1546 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
1547 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
1548 number.
1549 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
1550 number.
1551 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
1552 size.
1553 * features/Makefile: Add AVX512 related files.
1554 * features/i386/32bit-avx512.xml: New file.
1555 * features/i386/64bit-avx512.xml: Likewise.
1556 * features/i386/amd64-avx512-linux.c: Likewise.
1557 * features/i386/amd64-avx512-linux.xml: Likewise.
1558 * features/i386/amd64-avx512.c: Likewise.
1559 * features/i386/amd64-avx512.xml: Likewise.
1560 * features/i386/i386-avx512-linux.c: Likewise.
1561 * features/i386/i386-avx512-linux.xml: Likewise.
1562 * features/i386/i386-avx512.c: Likewise.
1563 * features/i386/i386-avx512.xml: Likewise.
1564 * features/i386/x32-avx512-linux.c: Likewise.
1565 * features/i386/x32-avx512-linux.xml: Likewise.
1566 * features/i386/x32-avx512.c: Likewise.
1567 * features/i386/x32-avx512.xml: Likewise.
1568 * regformats/i386/amd64-avx512-linux.dat: New file.
1569 * regformats/i386/amd64-avx512.dat: Likewise.
1570 * regformats/i386/i386-avx512-linux.dat: Likewise.
1571 * regformats/i386/i386-avx512.dat: Likewise.
1572 * regformats/i386/x32-avx512-linux.dat: Likewise.
1573 * regformats/i386/x32-avx512.dat: Likewise.
1574 * NEWS: Add note about new support for AVX512.
1575
1576
08351840
PA
15772014-04-23 Pedro Alves <palves@redhat.com>
1578
1579 * breakpoint.c (insert_bp_location): Tolerate errors if the
1580 breakpoint is set in a user-loaded objfile.
1581 (remove_breakpoint_1): Likewise. Also tolerate errors if the
1582 location is marked shlib_disabled. If the breakpoint is set in a
1583 user-loaded objfile is a GDB-side memory breakpoint, validate it
1584 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
1585 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
1586 flag.
1587 * mem-break.c (memory_validate_breakpoint): New function.
1588 * objfiles.c (userloaded_objfile_contains_address_p): New
1589 function.
1590 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
1591 * target.h (memory_validate_breakpoint): New declaration.
1592
076855f9
PA
15932014-04-23 Pedro Alves <palves@redhat.com>
1594
1595 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
1596 the breakpoint is set in a shared library, only suppress
1597 errors for software breakpoints, not hardware breakpoints.
1598
483805cf
PA
15992014-04-22 Pedro Alves <palves@redhat.com>
1600
1601 * infrun.c (schedlock_applies): New function, factored out from
1602 find_thread_needs_step_over.
1603 (find_thread_needs_step_over): Use it.
1604 (switch_back_to_stepped_thread): Always clear trap_expected if the
1605 step over is finished. Return early if scheduler locking applies.
1606 Look for the stepping thread and a potential step-over thread with
1607 a single loop.
1608 (currently_stepping_or_nexting_callback): Delete.
1609
a75fef0e
NC
16102014-04-22 Nick Clifton <nickc@redhat.com>
1611
1612 * NEWS: Mention that ARM sim now supports tracing.
1613
48b6e87e
YQ
16142014-04-22 Yao Qi <yao@codesourcery.com>
1615
1616 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
1617 to ...
1618 * tracefile.c (tracefile_fetch_registers): ... it. New
1619 function.
1620 * tracefile.h (tracefile_fetch_registers): Declare.
1621 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
1622 tracefile_fetch_registers.
1623
17617f2d
EZ
16242014-04-19 Eli Zaretskii <eliz@gnu.org>
1625
1626 PR gdb/14018
1627 * windows-nat.c (thread_rec): Don't display a warning when
1628 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
1629 fails for any reason, set th->suspended to -1, so that we don't
1630 try to resume such a thread. Also, don't return NULL in these
1631 cases, to avoid completely ruin the session due to "PC register is
1632 not available" error.
1633 (do_windows_fetch_inferior_registers): Check errors in
1634 GetThreadContext call.
1635 (windows_continue): Accept an additional argument KILLED; if not
1636 zero, ignore errors in the SetThreadContext call, since the
1637 inferior was killed and is shutting down.
1638 (windows_resume, get_windows_debug_event)
1639 (windows_create_inferior, windows_mourn_inferior)
1640 (windows_kill_inferior): All callers of windows_continue changed
1641 to adjust to its new calling sequence.
1642
5723a6fd
YQ
16432014-04-19 Yao Qi <yao@codesourcery.com>
1644
1645 * ctf.c (ctf_open): Call post_create_inferior.
1646
614d5099
YQ
16472014-04-19 Yao Qi <yao@codesourcery.com>
1648
1649 * ctf.c (handle_id): New static variable.
1650 (ctf_open_dir): Get handle_id from bt_context_add_trace return
1651 value. Get the declaration of event "register" and get length
1652 of field "contents".
1653
dac3e710
YQ
16542014-04-19 Yao Qi <yao@codesourcery.com>
1655
1656 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
1657
2bca57ba
SC
16582014-04-18 Siva Chandra Reddy <sivachandra@google.com>
1659
1660 * valops.c (oload_method_static): Remove unnecessary argument
1661 METHOD. Update all callers.
1662
51d48146
PA
16632014-04-18 Pedro alves <palves@redhat.com>
1664 Tom Tromey <tromey@redhat.com>
1665
1666 PR backtrace/15558
1667 * frame.c (get_prev_frame_1): Rename to ...
1668 (get_prev_frame_always): ... this, and make extern. Adjust.
1669 (skip_artificial_frames): Use get_prev_frame_always.
1670 (frame_unwind_caller_id, frame_pop, get_prev_frame)
1671 (get_frame_unwind_stop_reason): Adjust to rename.
1672 * frame.h (get_prev_frame_always): Declare.
1673 * inline-frame.c: Include frame.h.
1674 (inline_frame_this_id): Use get_prev_frame_always.
1675
1bdad2e0
TG
16762014-04-18 Tristan Gingold <gingold@adacore.com>
1677
1678 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
1679 code by using bfd_mach_o_get_base_address.
1680
7ce16bd4
UW
16812014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
1682
1683 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
1684 (spu_ax_pseudo_register_collect): New function.
1685 (spu_ax_pseudo_register_push_stack): Likewise.
1686 (spu_dwarf_reg_to_regnum): Likewise.
1687 (spu_gdbarch_init): Install them. Append DWARF unwinders.
1688
2ed3c037
UW
16892014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
1690
1691 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
1692 Replace FRAME argument with FRAME_ID.
1693 * gdbarch.c, gdbarch.h: Regenerate.
1694 * findvar.c (default_value_from_register): Add GDBARCH argument;
1695 replace FRAME by FRAME_ID. No longer call get_frame_id.
1696 (value_from_register): Update call to gdbarch_value_from_register.
1697 * value.h (default_value_from_register): Update prototype.
1698 * s390-linux-tdep.c (s390_value_from_register): Update interface
1699 and call to default_value_from_register.
1700 * spu-tdep.c (spu_value_from_register): Likewise.
1701
1702 * findvar.c (address_from_register): Remove TYPE argument.
1703 Do not call value_from_register; use gdbarch_value_from_register
1704 with null_frame_id instead.
1705 * value.h (address_from_register): Update prototype.
1706 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
1707 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
1708 address_from_register interface change.
1709
71e50e83
YQ
17102014-04-17 Yao Qi <yao@codesourcery.com>
1711
1712 * gdbtypes.h: Update comments to link to types and macros'
1713 definitions.
1714
7a23c549
SC
17152014-04-16 Siva Chandra Reddy <sivachandra@google.com>
1716
1717 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
1718
22869d73
KS
17192014-04-16 Keith Seitz <keiths@redhat.com>
1720
1721 PR gdb/15827
1722 * dwarf2read.c (skip_one_die): Check that all relative-offset
1723 sibling DIEs fall within range of the current reader's buffer.
1724 (read_partial_die): Likewise.
1725
c4f87ca6
KS
17262014-04-16 Keith Seitz <keiths@redhat.com>
1727
1728 PR c++/16597
1729 * cp-namespace.c (lookup_symbol_file): If the type name of
1730 `this' is NULL, return immediately.
1731
b50c8614
KS
17322014-04-14 Keith Seitz <keiths@redhat.com>
1733
1734 PR c++/16253
1735 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1736 from symbol_matches_domain in symtab.c. All local callers
1737 of symbol_matches_domain updated.
1738 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1739 search STRUCT_DOMAIN.
1740 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1741 independently. standard_lookup will do that automatically.
1742 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1743 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1744 (cp_lookup_symbol_in_namespace): Likewise.
1745 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1746 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1747 may return a STRUCT_DOMAIN match.
1748 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1749 * cp-support.c: Include language.h.
1750 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1751 VAR_DOMAIN.
1752 * psymtab.c (match_partial_symbol): Compare the requested
1753 domain with the symbol's domain directly.
1754 (lookup_partial_symbol): Likewise.
1755 * symtab.c (lookup_symbol_in_language): Explain when/why
1756 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1757 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1758 appropriate languages.
1759 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1760 and moved to ada-lang.c
1761 (lookup_block_symbol): Explain that this function only returns
1762 symbol matching the requested DOMAIN.
1763 Compare the requested domain with the symbol's domain directly.
1764 (iterate_over_symbols): Compare the requested domain with the
1765 symbol's domain directly.
1766 * symtab.h (symbol_matches_domain): Remove.
1767
3d567982
TT
17682014-04-14 Tom Tromey <tromey@redhat.com>
1769
1770 PR c++/15246:
1771 * c-exp.y (type_aggregate_p): New function.
1772 (qualified_name, classify_inner_name): Use it.
1773 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
1774 and TYPE_TARGET_TYPE of an enum type.
1775 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
1776 an enum type.
1777 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
1778 handle TYPE_DECLARED_CLASS.
1779 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
1780 types.
1781 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
1782 * valops.c (enum_constant_from_type): New function.
1783 (value_aggregate_elt): Use it.
1784 * cp-namespace.c (cp_lookup_nested_symbol): Handle
1785 TYPE_CODE_ENUM.
1786
c848d642
TT
17872014-04-14 Tom Tromey <tromey@redhat.com>
1788
1789 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
1790 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
1791 const.
1792 * value.h (value_aggregate_elt): Update.
1793
0626fc76
TT
17942014-04-14 Tom Tromey <tromey@redhat.com>
1795
1796 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
1797
5ecaaa66
SA
17982014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1799
1800 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1801 (evaluate_subexp_standard): Pass noside argument.
1802 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1803 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1804 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1805 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1806 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1807
1612e0c0
SA
18082014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1809
1810 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1811 points to a constant blob.
1812
c451ebe5
SA
18132014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1814
1815 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1816 property and store it as the high bound and flag the range accordingly.
1817 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1818 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1819 * gdbtypes.h (enum range_flags): New enum.
1820 (struct range_bounds): Add flags member.
1821
1d42e4c4
SA
18222014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1823
1824 * c-typeprint.c (c_type_print_varspec_suffix): Added
1825 check for not yet resolved high bound. If unresolved, print
1826 "variable length" string to the console instead of random
1827 length.
1828
9f1f738a
SA
18292014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1830
1831 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
1832 value.
1833 (ada_template_to_fixed_record_type_1): Likewise.
1834 (ada_to_fixed_type_1): Likewise.
1835 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1836 (cp_print_value): Likewise.
1837 * d-valprint.c (dynamic_array_type): Likewise.
1838 * findvar.c (address_of_variable): Likewise.
1839 * jv-valprint.c (java_value_print): Likewise.
1840 * valops.c (value_ind): Likewise.
1841 * value.c (coerce_ref): Likewise.
1842
3c8452d4
SA
18432014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1844
1845 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1846 value and retrieve the dynamic type size.
1847
4ad88275
SA
18482014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1849
1850 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1851 passed to sizeof is dynamic evaluate the argument to compute the length.
1852
80180f79
SA
18532014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1854 Joel Brobecker <brobecker@adacore.com>
1855
1856 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1857 (dwarf2_evaluate_property): New function.
1858 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1859 * dwarf2read.c (attr_to_dynamic_prop): New function.
1860 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1861 attribute.
1862 * gdbtypes.c: Include dwarf2loc.h.
1863 (is_dynamic_type): New function.
1864 (resolve_dynamic_type): New function.
1865 (resolve_dynamic_bounds): New function.
1866 (get_type_length): New function.
1867 (check_typedef): Use get_type_length to compute type length.
1868 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1869 (TYPE_LOW_BOUND_KIND): New macro.
1870 (is_dynamic_type): New function prototype.
1871 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1872 to resolve dynamic properties of the type. Update comment.
1873 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1874
a1556843
RH
18752014-04-14 Richard Henderson <rth@redhat.com>
1876
1877 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
1878
0be03e84
DE
18792014-04-12 Siva Chandra Reddy <sivachandra@google.com>
1880 Doug Evans <xdje42@gmail.com>
1881
1882 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
1883 dereference TYPE_CODE_REF values.
1884
6b662e19
JB
18852014-04-11 Joel Brobecker <brobecker@adacore.com>
1886
1887 Revert the following changes due to regressions:
1888
1889 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1890 (dwarf2_evaluate_property): New function.
1891 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1892 * dwarf2read.c (attr_to_dynamic_prop): New function.
1893 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1894 attribute.
1895 * gdbtypes.c: Include dwarf2loc.h.
1896 (is_dynamic_type): New function.
1897 (resolve_dynamic_type): New function.
1898 (resolve_dynamic_bounds): New function.
1899 (get_type_length): New function.
1900 (check_typedef): Use get_type_length to compute type length.
1901 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1902 (TYPE_LOW_BOUND_KIND): New macro.
1903 (is_dynamic_type): New function prototype.
1904 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1905 to resolve dynamic properties of the type. Update comment.
1906 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1907
1908 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1909 passed to sizeof is dynamic evaluate the argument to compute the length.
1910
1911 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1912 value and retrieve the dynamic type size.
1913
1914 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
1915 (ada_template_to_fixed_record_type_1): Likewise.
1916 (ada_to_fixed_type_1): Likewise.
1917 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1918 (cp_print_value): Likewise.
1919 * d-valprint.c (dynamic_array_type): Likewise.
1920 * eval.c (evaluate_subexp_with_coercion): Likewise.
1921 * findvar.c (address_of_variable): Likewise.
1922 * jv-valprint.c (java_value_print): Likewise.
1923 * valops.c (value_ind): Likewise.
1924 * value.c (coerce_ref): Likewise.
1925
1926 * c-typeprint.c (c_type_print_varspec_suffix): Added
1927 check for not yet resolved high bound. If unresolved, print
1928 "variable length" string to the console instead of random
1929 length.
1930
1931 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1932 property and store it as the high bound and flag the range accordingly.
1933 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1934 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1935 * gdbtypes.h (enum range_flags): New enum.
1936 (struct range_bounds): Add flags member.
1937
1938 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1939 points to a constant blob.
1940
1941 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1942 (evaluate_subexp_standard): Pass noside argument.
1943 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1944 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1945 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1946 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1947 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1948
245a5f0b
KS
19492014-04-11 Keith Seitz <keiths@redhat.com>
1950
1951 PR c++/16675
1952 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
1953 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
1954 reference types.
1955
3bce8237
SA
19562014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1957
1958 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1959 (evaluate_subexp_standard): Pass noside argument.
1960 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1961 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1962 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1963 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1964 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1965
92b09522
SA
19662014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1967
1968 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1969 points to a constant blob.
1970
e1969afb
SA
19712014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1972
1973 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1974 property and store it as the high bound and flag the range accordingly.
1975 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1976 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1977 * gdbtypes.h (enum range_flags): New enum.
1978 (struct range_bounds): Add flags member.
1979
b86138fb
SA
19802014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1981
1982 * c-typeprint.c (c_type_print_varspec_suffix): Added
1983 check for not yet resolved high bound. If unresolved, print
1984 "variable length" string to the console instead of random
1985 length.
1986
bcd629a4
SA
19872014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1988
1989 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
1990 (ada_template_to_fixed_record_type_1): Likewise.
1991 (ada_to_fixed_type_1): Likewise.
1992 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1993 (cp_print_value): Likewise.
1994 * d-valprint.c (dynamic_array_type): Likewise.
1995 * eval.c (evaluate_subexp_with_coercion): Likewise.
1996 * findvar.c (address_of_variable): Likewise.
1997 * jv-valprint.c (java_value_print): Likewise.
1998 * valops.c (value_ind): Likewise.
1999 * value.c (coerce_ref): Likewise.
2000
04b19544
SA
20012014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2002
2003 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2004 value and retrieve the dynamic type size.
2005
26cb189f
SA
20062014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2007
2008 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2009 passed to sizeof is dynamic evaluate the argument to compute the length.
2010
37c1ab67
SA
20112014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2012
2013 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2014 (dwarf2_evaluate_property): New function.
2015 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2016 * dwarf2read.c (attr_to_dynamic_prop): New function.
2017 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2018 attribute.
2019 * gdbtypes.c: Include dwarf2loc.h.
2020 (is_dynamic_type): New function.
2021 (resolve_dynamic_type): New function.
2022 (resolve_dynamic_bounds): New function.
2023 (get_type_length): New function.
2024 (check_typedef): Use get_type_length to compute type length.
2025 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2026 (TYPE_LOW_BOUND_KIND): New macro.
2027 (is_dynamic_type): New function prototype.
2028 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2029 to resolve dynamic properties of the type. Update comment.
2030 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2031
729efb13
SA
20322014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2033
2034 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
2035 declaring high/low bounds and change uses accordingly. Call
2036 create_range_type instead of create_static_range_type.
2037 * gdbtypes.c (create_range_type): New function.
2038 (create_range_type): Convert bounds into struct bound_prop and pass
2039 them to create_range_type.
2040 * gdbtypes.h (struct bound_prop): New struct.
2041 (create_range_type): New function prototype.
2042 (struct range_bounds): Use struct bound_prop instead of LONGEST for
2043 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
2044 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
2045 part of the bound.
2046 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
2047
0c9c3474
SA
20482014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2049
2050 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
2051 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
2052 * ada-lang.c: All uses of create_range_type updated.
2053 * coffread.c: All uses of create_range_type updated.
2054 * dwarf2read.c: All uses of create_range_type updated.
2055 * f-exp.y: All uses of create_range_type updated.
2056 * m2-valprint.c: All uses of create_range_type updated.
2057 * mdebugread.c: All uses of create_range_type updated.
2058 * stabsread.c: All uses of create_range_type updated.
2059 * valops.c: All uses of create_range_type updated.
2060 * valprint.c: All uses of create_range_type updated.
2061
9d497a19
PA
20622014-04-10 Pedro Alves <palves@redhat.com>
2063
2064 * breakpoint.c (single_step_breakpoints)
2065 (single_step_gdbarch): Move up in the file.
2066 (one_breakpoint_xfer_memory): New function, factored out from ...
2067 (breakpoint_xfer_memory): ... here. Also process single-step
2068 breakpoints.
2069
15a9128a
TG
20702014-04-09 Tristan Gingold <gingold@adacore.com>
2071
2072 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
2073 comments.
2074 (darwin_decode_exception_message): Free port only after use.
2075
9c97a070
PL
20762014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
2077
2078 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
2079 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
2080 when setting the size of call_length.
2081
7af389b8
SC
20822014-04-07 Siva Chandra Reddy <sivachandra@google.com>
2083
2084 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
2085 dereference TYPE_CODE_REF values.
2086
86ad98c3
JB
20872014-04-07 Joel Brobecker <brobecker@adacore.com>
2088
2089 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
2090 end of warning message.
2091
b0aeadb3
DE
20922014-04-03 Doug Evans <dje@google.com>
2093
2094 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
2095 of stub_comp_unit_die, stub_comp_dir is non-NULL.
2096
5979d6b6
AM
20972014-04-02 Alan Modra <amodra@gmail.com>
2098
2099 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
2100 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
2101 (struct symbol_file_add_from_memory_args): Add size field.
2102 (find_vdso_size): New function.
2103 (add_vsyscall_page): Attempt to find vdso size.
2104
0d60c288
DE
21052014-04-01 Doug Evans <dje@google.com>
2106
2107 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
2108
a41f2563
TG
21092014-04-01 Tristan Gingold <gingold@adacore.com>
2110
2111 * darwin-nat.c (darwin_encode_reply): Add prototype.
2112 (darwin_decode_exception_message): Reply to unknown inferiors.
2113 (darwin_decode_message): Handle message by id. Ignore message
2114 to unknown inferior.
2115 (darwin_wait): Discard unknown messages, add debug trace.
2116
11a865c8
DE
21172014-03-31 Doug Evans <dje@google.com>
2118
2119 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
2120 comp_dir_string.
2121
770e7fc7
DE
21222014-03-31 Doug Evans <dje@google.com>
2123
2124 New option "set print symbol-loading".
2125 * NEWS: Mention it.
2126 * solib.c (solib_read_symbols): Only print symbol loading messages
2127 if requested.
2128 (solib_add): If symbol loading is in "brief" mode, notify user
2129 symbols are being loaded.
2130 (reload_shared_libraries_1): Ditto.
2131 * symfile.c (print_symbol_loading_off): New static global.
2132 (print_symbol_loading_brief): New static global.
2133 (print_symbol_loading_full): New static global.
2134 (print_symbol_loading_enums): New static global.
2135 (print_symbol_loading): New static global.
2136 (print_symbol_loading_p): New function.
2137 (symbol_file_add_with_addrs): Only print symbol loading messages
2138 if requested.
2139 (_initialize_symfile): Register "print symbol-loading" set/show
2140 command.
2141 * symfile.h (print_symbol_loading_p): Declare.
2142
c32c64b7
DE
21432014-03-30 Doug Evans <xdje42@gmail.com>
2144
2145 * infrun.c (set_last_target_status): New function.
2146 (handle_inferior_event): Call it.
2147
7c0bc051
DE
21482014-03-30 Doug Evans <xdje42@gmail.com>
2149
2150 * inferior.h (enum stop_kind): Improve comment.
2151
8776cfe9
JB
21522014-03-28 Joel Brobecker <brobecker@adacore.com>
2153
2154 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
2155 a reference, strip the reference layer before calling
2156 the lang_ops value_has_mutated callback.
2157
410a0ff2
SDJ
21582014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
2159
2160 Remove some globals from our parser.
2161 * language.c (unk_lang_parser): Add "struct parser_state"
2162 argument.
2163 * language.h (struct language_defn) <la_parser>: Likewise.
2164 * parse.c (expout, expout_size, expout_ptr): Remove variables.
2165 (initialize_expout): Add "struct parser_state" argument.
2166 Rewrite function to use the parser state.
2167 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
2168 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
2169 write_exp_elt_longcst, write_exp_elt_dblcst,
2170 write_exp_elt_decfloatcst, write_exp_elt_type,
2171 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2172 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
2173 write_dollar_variable): Likewise.
2174 (parse_exp_in_context_1): Use parser state.
2175 (insert_type_address_space): Add "struct parser_state" argument.
2176 Use parser state.
2177 (increase_expout_size): New function.
2178 * parser-defs.h: Forward declare "struct language_defn" and
2179 "struct parser_state".
2180 (expout, expout_size, expout_ptr): Remove extern declarations.
2181 (parse_gdbarch, parse_language): Rewrite macro declarations to
2182 accept the parser state.
2183 (struct parser_state): New struct.
2184 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
2185 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
2186 write_exp_elt_decfloatcst, write_exp_elt_type,
2187 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2188 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
2189 write_exp_msymbol, write_dollar_variable,
2190 mark_struct_expression, insert_type_address_space): Add "struct
2191 parser_state" argument.
2192 (increase_expout_size): New function.
2193 * utils.c (do_clear_parser_state): New function.
2194 (make_cleanup_clear_parser_state): Likewise.
2195 * utils.h (make_cleanup_clear_parser_state): New function
2196 prototype.
2197 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
2198 Update calls to write_exp* in order to pass the parser state.
2199 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2200 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
2201 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2202 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2203 * stap-probe.c (stap_parse_register_operand): Likewise.
2204 (stap_parse_single_operand): Likewise.
2205 (stap_parse_argument_1): Likewise.
2206 (stap_parse_argument): Use parser state.
2207 * stap-probe.h: Include "parser-defs.h".
2208 (struct stap_parse_info) <pstate>: New field.
2209 * c-exp.y (parse_type): Rewrite to use parser state.
2210 (yyparse): Redefine to c_parse_internal.
2211 (pstate): New global variable.
2212 (parse_number): Add "struct parser_state" argument.
2213 (write_destructor_name): Likewise.
2214 (type_exp): Update calls to write_exp* and similars in order to
2215 use parser state.
2216 (exp1, exp, variable, qualified_name, space_identifier,
2217 typename, typebase): Likewise.
2218 (write_destructor_name, parse_number, lex_one_token,
2219 classify_name, classify_inner_name, c_parse): Add "struct
2220 parser_state" argument. Update function to use parser state.
2221 * c-lang.h: Forward declare "struct parser_state".
2222 (c_parse): Add "struct parser_state" argument.
2223 * ada-exp.y (parse_type): Rewrite macro to use parser state.
2224 (yyparse): Redefine macro to ada_parse_internal.
2225 (pstate): New variable.
2226 (write_int, write_object_renaming, write_var_or_type,
2227 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
2228 type_int, type_long, type_long_long, type_float, type_double,
2229 type_long_double, type_char, type_boolean, type_system_address):
2230 Add "struct parser_state" argument.
2231 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
2232 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
2233 var_or_type, aggregate, aggregate_component_list,
2234 positional_list, others, component_group,
2235 component_associations): Update calls to write_exp* and similar
2236 functions in order to use parser state.
2237 (ada_parse, write_var_from_sym, write_int,
2238 write_exp_op_with_string, write_object_renaming,
2239 find_primitive_type, write_selectors, write_ambiguous_var,
2240 write_var_or_type, write_name_assoc, type_int, type_long,
2241 type_long_long, type_float, type_double, type_long_double,
2242 type_char, type_boolean, type_system_address): Add "struct
2243 parser_state" argument. Adjust function to use parser state.
2244 * ada-lang.c (parse): Likewise.
2245 * ada-lang.h: Forward declare "struct parser_state".
2246 (ada_parse): Add "struct parser_state" argument.
2247 * ada-lex.l (processInt, processReal): Likewise. Adjust all
2248 calls to both functions.
2249 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
2250 parser state.
2251 (yyparse): Redefine macro to f_parse_internal.
2252 (pstate): New variable.
2253 (parse_number): Add "struct parser_state" argument.
2254 (type_exp, exp, subrange, typebase): Update calls to write_exp*
2255 and similars in order to use parser state.
2256 (parse_number): Adjust code to use parser state.
2257 (yylex): Likewise.
2258 (f_parse): New function.
2259 * f-lang.h: Forward declare "struct parser_state".
2260 (f_parse): Add "struct parser_state" argument.
2261 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
2262 parser state.
2263 (yyparse): Redefine macro for java_parse_internal.
2264 (pstate): New variable.
2265 (push_expression_name, push_expression_name, insert_exp): Add
2266 "struct parser_state" argument.
2267 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
2268 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
2269 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
2270 PostIncrementExpression, PostDecrementExpression,
2271 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
2272 UnaryExpressionNotPlusMinus, CastExpression,
2273 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
2274 RelationalExpression, EqualityExpression, AndExpression,
2275 ExclusiveOrExpression, InclusiveOrExpression,
2276 ConditionalAndExpression, ConditionalOrExpression,
2277 ConditionalExpression, Assignment, LeftHandSide): Update
2278 calls to write_exp* and similars in order to use parser state.
2279 (parse_number): Ajust code to use parser state.
2280 (yylex): Likewise.
2281 (java_parse): New function.
2282 (push_variable): Add "struct parser_state" argument. Adjust
2283 code to user parser state.
2284 (push_fieldnames, push_qualified_expression_name,
2285 push_expression_name, insert_exp): Likewise.
2286 * jv-lang.h: Forward declare "struct parser_state".
2287 (java_parse): Add "struct parser_state" argument.
2288 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
2289 parser state.
2290 (yyparse): Redefine macro to m2_parse_internal.
2291 (pstate): New variable.
2292 (type_exp, exp, fblock, variable, type): Update calls to
2293 write_exp* and similars to use parser state.
2294 (yylex): Likewise.
2295 (m2_parse): New function.
2296 * m2-lang.h: Forward declare "struct parser_state".
2297 (m2_parse): Add "struct parser_state" argument.
2298 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
2299 * objc-lang.h: Forward declare "struct parser_state".
2300 (end_msglist): Add "struct parser_state" argument.
2301 * p-exp.y (parse_type): Rewrite macro to use parser state.
2302 (yyparse): Redefine macro to pascal_parse_internal.
2303 (pstate): New variable.
2304 (parse_number): Add "struct parser_state" argument.
2305 (type_exp, exp1, exp, qualified_name, variable): Update calls to
2306 write_exp* and similars in order to use parser state.
2307 (parse_number, yylex): Adjust code to use parser state.
2308 (pascal_parse): New function.
2309 * p-lang.h: Forward declare "struct parser_state".
2310 (pascal_parse): Add "struct parser_state" argument.
2311 * go-exp.y (parse_type): Rewrite macro to use parser state.
2312 (yyparse): Redefine macro to go_parse_internal.
2313 (pstate): New variable.
2314 (parse_number): Add "struct parser_state" argument.
2315 (type_exp, exp1, exp, variable, type): Update calls to
2316 write_exp* and similars in order to use parser state.
2317 (parse_number, lex_one_token, classify_name, yylex): Adjust code
2318 to use parser state.
2319 (go_parse): Likewise.
2320 * go-lang.h: Forward declare "struct parser_state".
2321 (go_parse): Add "struct parser_state" argument.
2322
342587c4
DE
23232014-03-27 Doug Evans <dje@google.com>
2324
2325 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
2326
33e80786
DE
23272014-03-27 Doug Evans <dje@google.com>
2328
2329 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
2330 Remove argument abbrev_section. All callers updated.
2331
1dbab08b
DE
23322014-03-27 Doug Evans <dje@google.com>
2333
2334 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
2335 addr_base, ranges_base.
2336
318d3177
KS
23372014-03-26 Keith Seitz <keiths@redhat.com>
2338
2339 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
2340 types, not VAR_DOMAIN.
2341
1e54db15
SL
23422014-03-25 Sandra Loosemore <sandra@codesourcery.com>
2343
2344 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
2345 "ra" registers.
2346 * features/nios2-linux.c: Regenerated.
2347 * features/nios2.c: Regenerated.
2348
d3839ede
PA
23492014-03-25 Pedro Alves <palves@redhat.com>
2350
2351 * cli/cli-script.c (script_from_file): Force the interpreter to
2352 sync mode.
2353
7588d2ec
PL
23542014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2355
2356 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
2357 small stack allocation.
2358
a6290449
TG
23592014-03-24 Tristan Gingold <gingold@adacore.com>
2360
2361 * darwin-nat.c (exc_server): Remove unused prototype.
2362 (darwin_dump_message): Correctly display data on x86_64.
2363 (darwin_encode_reply): Fix style.
2364 Add comments and fix indentation.
2365
31ae9d24 23662014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
2367
2368 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
2369
6339bfc4
DE
23702014-03-22 Doug Evans <xdje42@gmail.com>
2371
2372 * infcmd.c: Whitespace fixes.
2373 (interrupt_command): Merge two function comments into one.
2374
0a07590b
DE
23752014-03-22 Doug Evans <xdje42@gmail.com>
2376
2377 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
2378 All uses updated.
2379
b55fbac4
YQ
23802014-03-22 Yao Qi <yao@codesourcery.com>
2381
2382 * remote.c (target_read_live_memory): Remove.
2383 (memory_xfer_live_readonly_partial): Rename it to
2384 remote_xfer_live_readonly_partial. Remove argument 'object'.
2385 All callers updated. Call remote_read_bytes_1
2386 instead of target_read_live_memory.
2387 * tracepoint.c (set_traceframe_number): Remove.
2388 (make_cleanup_restore_traceframe_number): Likewise .
2389 * tracepoint.h (set_traceframe_number): Remove declaration.
2390 (make_cleanup_restore_traceframe_number): Likewise.
2391
9217e74e
YQ
23922014-03-22 Yao Qi <yao@codesourcery.com>
2393
2394 * remote.c (remote_read_bytes): Move code on reading from the
2395 remote stub to ...
2396 (remote_read_bytes_1): ... here. New function.
2397
8acf9577
YQ
23982014-03-22 Yao Qi <yao@codesourcery.com>
2399
2400 * ctf.c (ctf_xfer_partial): Check the return value of
2401 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
2402 return TARGET_XFER_UNAVAILABLE.
2403 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2404 * target.c (target_read_live_memory): Move it to remote.c.
2405 (memory_xfer_live_readonly_partial): Likewise.
2406 (memory_xfer_partial_1): Move some code to remote_read_bytes.
2407 * remote.c (target_read_live_memory): Moved from target.c.
2408 (memory_xfer_live_readonly_partial): Likewise.
2409 (remote_read_bytes): Factored out from
2410 memory_xfer_partial_1.
2411
feef67ab
DE
24122014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
2413
2414 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
2415 NULL pointer.
2416
b65dc60b
PA
24172014-03-21 Pedro Alves <palves@redhat.com>
2418
2419 * infrun.c (normal_stop): Extend comment.
2420
b4ab256d
HZ
24212014-03-21 Hui Zhu <hui@codesourcery.com>
2422 Pedro Alves <palves@redhat.com>
2423
2424 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
2425 static buffer.
2426 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
2427 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
2428 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
2429
deba7593
MR
24302014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
2431
2432 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
2433 `z' formatted output modifier.
2434
1bff71c3
SDJ
24352014-03-20 Tom Tromey <tromey@redhat.com>
2436 Sergio Durigan Junior <sergiodj@redhat.com>
2437
2438 * probe.c (parse_probes): Turn assert into an ordinary error.
2439 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
2440 exceptions when parsing probes. Rearrange the code for clarity.
2441
90e28950
TT
24422014-03-20 Tom Tromey <tromey@redhat.com>
2443
2444 PR gdb/14135
2445 * top.c (execute_command): Only dispatch events if the command
2446 started the target.
2447
beb460e8
PA
24482014-03-20 Tom Tromey <tromey@redhat.com>
2449
2450 PR cli/15718
2451 * infcall.c: Include event-top.h.
2452 (run_inferior_call): Call async_disable_stdin if needed.
2453
99619bea
PA
24542014-03-20 Pedro Alves <palves@redhat.com>
2455
2456 * infrun.c (prepare_to_proceed): Delete.
2457 (thread_still_needs_step_over): New function.
2458 (find_thread_needs_step_over): New function.
2459 (proceed): If the current thread needs a step-over, set its
2460 steping_over_breakpoint flag. Adjust to use
2461 find_thread_needs_step_over instead of prepare_to_proceed.
2462 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
2463 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
2464 breakpoint.
2465 (switch_back_to_stepped_thread): Step over breakpoints of all
2466 threads not the stepping thread, before switching back to the
2467 stepping thread.
2468
2adfaa28
PA
24692014-03-20 Pedro Alves <palves@redhat.com>
2470
2471 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
2472 extern.
2473 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
2474 * infrun.c (saved_singlestep_ptid)
2475 (stepping_past_singlestep_breakpoint): Delete.
2476 (resume): Remove stepping_past_singlestep_breakpoint handling.
2477 (proceed): Store the prev_pc of the stepping thread too.
2478 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
2479 singlestep_pc.
2480 (enum infwait_states): Delete infwait_thread_hop_state.
2481 (struct execution_control_state) <hit_singlestep_breakpoint>: New
2482 field.
2483 (handle_inferior_event): Adjust.
2484 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
2485 handling and the thread-hop code. Before removing single-step
2486 breakpoints, check whether the thread hit a single-step breakpoint
2487 of another thread. If it did, the trap is not a random signal.
2488 (switch_back_to_stepped_thread): If the event thread hit a
2489 single-step breakpoint, unblock it before switching to the
2490 stepping thread. Handle the case of the stepped thread having
2491 advanced already.
2492 (keep_going): Handle the case of the current thread moving past a
2493 single-step breakpoint.
2494
31e77af2
PA
24952014-03-20 Pedro Alves <palves@redhat.com>
2496
2497 PR breakpoints/7143
2498 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
2499 are being stepped over.
2500 (breakpoint_address_match): Make extern.
2501 * breakpoint.h (breakpoint_address_match): New declaration.
2502 * inferior.h (stepping_past_instruction_at): New declaration.
2503 * infrun.c (struct step_over_info): New type.
2504 (step_over_info): New global.
2505 (set_step_over_info, clear_step_over_info)
2506 (stepping_past_instruction_at): New functions.
2507 (handle_inferior_event): Clear the step-over info when
2508 trap_expected is cleared.
2509 (resume): Remove now stale comment.
2510 (clear_proceed_status): Clear step-over info.
2511 (proceed): Adjust step-over handling to set or clear the step-over
2512 info instead of removing all breakpoints.
2513 (handle_signal_stop): When setting up a thread-hop, don't remove
2514 breakpoints here.
2515 (stop_stepping): Clear step-over info.
2516 (keep_going): Adjust step-over handling to set or clear step-over
2517 info and then always inserting breakpoints, instead of removing
2518 all breakpoints when stepping over one.
2519
b9f437de
PA
25202014-03-20 Pedro Alves <palves@redhat.com>
2521
2522 * infrun.c (previous_inferior_ptid): Adjust comment.
2523 (deferred_step_ptid): Delete.
2524 (infrun_thread_ptid_changed, prepare_to_proceed)
2525 (init_wait_for_inferior): Adjust.
2526 (handle_signal_stop): Delete deferred_step_ptid handling.
2527
06c868a8
JK
25282014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2529
2530 PR gdb/15358
2531 * defs.h (sync_quit_force_run): New declaration.
2532 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
2533 * event-top.c (async_sigterm_handler): New declaration.
2534 (async_sigterm_token): New variable.
2535 (async_init_signals): Create also async_sigterm_token.
2536 (async_sigterm_handler): New function.
2537 (sync_quit_force_run): New variable.
2538 (handle_sigterm): Replace quit_force call by other calls.
2539 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
2540
dea80df0
MR
25412014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
2542
2543 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
2544 offset into SPE pseudo registers.
2545
0c7e1a46
PA
25462014-03-18 Pedro Alves <palves@redhat.com>
2547
2548 PR gdb/13860
2549 * inferior.h (print_stop_event): Declare.
2550 * infrun.c (print_stop_event): New, factored out from ...
2551 (normal_stop): ... this.
2552 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
2553 of bpstat_print/print_stack_frame.
2554
9c1fcd01
TT
25552014-03-17 Tom Tromey <tromey@redhat.com>
2556
2557 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
2558
11aa919a
PMR
25592014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
2560
2561 * ada-lang.c (decode_constrained_packed_array): Perform a
2562 minimal coercion for reference with coerce_ref instead of
2563 ada_coerce_ref.
2564
d4ccb5e0
TG
25652014-03-17 Tristan Gingold <gingold@adacore.com>
2566
2567 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
2568 (darwin_solib_create_inferior_hook): Emit a warning if version
2569 is unhandled.
2570
49840f2a
UW
25712014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
2572
2573 * python/py-value.c (get_field_flag): Cast flag_name argument to
2574 PyObject_GetAttrString to support Python 2.4.
2575
ed4123e5
JK
25762014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2577
2578 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
2579 (Global Maintainers): Remove Jan Kratochvil.
2580
d6b64346
PA
25812014-03-14 Pedro Alves <palves@redhat.com>
2582
2583 * inferior.h (terminal_ours_for_output): Rename to ...
2584 (child_terminal_ours_for_output): ... this.
2585 (terminal_save_ours): Rename to ...
2586 (child_terminal_save_ours): ... this.
2587 (terminal_ours): Rename to ...
2588 (child_terminal_ours): ... this.
2589 (terminal_inferior): Rename to ...
2590 (child_terminal_inferior): ... this.
2591 (terminal_init_inferior): Rename to ...
2592 (child_terminal_init_inferior): ... this.
2593 (terminal_init_inferior_with_pgrp): Rename to ...
2594 (child_terminal_init_inferior_with_pgrp): ... this.
2595 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
2596 (child_terminal_init_with_pgrp): ... this.
2597 (terminal_save_ours): Rename to ...
2598 (child_terminal_save_ours): ... this.
2599 (terminal_init_inferior): Rename to ...
2600 (child_terminal_init): ... this. Adjust.
2601 (terminal_inferior): Rename to ...
2602 (child_terminal_inferior): ... this.
2603 (terminal_ours_for_output): Rename to ...
2604 (child_terminal_ours_for_output): ... this. Adjust.
2605 (terminal_ours): Rename to ...
2606 (child_terminal_ours): ... this.
2607 (terminal_ours_1): Rename to ...
2608 (child_terminal_ours_1): ... this. Adjust.
2609 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
2610 * windows-nat.c (do_initial_windows_stuff): Adjust.
2611 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
2612 (gnu_terminal_init): ... this. Adjust.
2613 (gnu_target): Adjust.
2614 * inf-child.c (inf_child_target): Adjust.
2615
5a1e8c7a
DE
26162014-03-13 Doug Evans <xdje42@gmail.com>
2617
2618 PR guile/16612
2619 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
2620 new eq?-hashtab.
2621
350e1a76
DE
26222014-03-13 Doug Evans <xdje42@gmail.com>
2623
2624 * value.c (record_latest_value): Call release_value_or_incref
2625 instead of release_value.
2626
a69900ae
PA
26272014-03-13 Pedro Alves <palves@redhat.com>
2628
2629 * procfs.c (procfs_target): Don't override to_shortname,
2630 to_longname or to_doc.
2631
5db9f0bd
PA
26322014-03-13 Pedro Alves <palves@redhat.com>
2633
2634 * inf-child.c (inf_child_open, inf_child_target): Don't mention
2635 Unix in user visible strings.
2636
5e3a2c38
SS
26372014-03-12 Stan Shebs <stan@codesourcery.com>
2638
2639 * gdbtypes.h: Annotate comments for Doxygen, add a page
2640 block comment with some general info.
2641
8bc2fe48
PA
26422014-03-12 Pedro Alves <palves@redhat.com>
2643
2644 * infcmd.c (prepare_execution_command): New function, factored out
2645 from several execution commands.
2646 (run_command_1, continue_command, step_1, jump_command)
2647 (signal_command, until_command, advance_command, finish_command)
2648 (attach_command): Use prepare_execution_command.
2649
638c5f49
OJ
26502014-03-12 Omair Javaid <omair.javaid@linaro.org>
2651
2652 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
2653 (MAX_BPTS): Define.
2654 (MAX_WPTS): Define.
2655 (struct arm_linux_thread_points): Removed.
2656 (struct arm_linux_process_info): New.
2657 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
2658 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
2659 (arm_linux_find_breakpoints_by_tid): Removed.
2660 (struct arch_lwp_info): New.
2661 (arm_linux_find_process_pid): New functions.
2662 (arm_linux_add_process): New functions.
2663 (arm_linux_process_info_get): New functions.
2664 (arm_linux_forget_process): New function.
2665 (arm_linux_get_debug_reg_state): New function.
2666 (struct update_registers_data): New.
2667 (update_registers_callback): New function.
2668 (arm_linux_insert_hw_breakpoint1): Updated.
2669 (arm_linux_remove_hw_breakpoint1): Updated.
2670 (arm_linux_insert_hw_breakpoint): Updated.
2671 (arm_linux_remove_hw_breakpoint): Updated.
2672 (arm_linux_insert_watchpoint): Updated.
2673 (arm_linux_remove_watchpoint): Updated.
2674 (arm_linux_new_thread): Updated.
2675 (arm_linux_prepare_to_resume): New function.
2676 (arm_linux_new_fork): New function.
2677 (_initialize_arm_linux_nat): Updated.
2678
6d03af93
PA
26792014-03-12 Pedro Alves <palves@redhat.com>
2680
2681 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
2682
b3ccfe11
TT
26832014-03-12 Tom Tromey <tromey@redhat.com>
2684
2685 * inf-child.c (return_zero): New function.
2686 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
2687 * aix-thread.c (aix_thread_inferior_created): New function.
2688 (aix_thread_attach): Remove.
2689 (init_aix_thread_ops): Don't set to_attach.
2690 (_initialize_aix_thread): Register inferior_created observer.
2691 * corelow.c (init_core_ops): Don't set to_attach or
2692 to_create_inferior.
2693 * exec.c (init_exec_ops): Don't set to_attach or
2694 to_create_inferior.
2695 * infcmd.c (run_command_1): Use find_run_target. Make direct
2696 target calls.
2697 (attach_command): Use find_attach_target. Make direct target
2698 calls.
2699 * record-btrace.c (init_record_btrace_ops): Don't set
2700 to_create_inferior.
2701 * record-full.c (record_full_can_async_p, record_full_is_async_p):
2702 Remove.
2703 (init_record_full_ops, init_record_full_core_ops): Update. Don't
2704 set to_create_inferior.
2705 * target.c (complete_target_initialization): Add assertion.
2706 (target_create_inferior): Remove.
2707 (find_default_attach, find_default_create_inferior): Remove.
2708 (find_attach_target, find_run_target): New functions.
2709 (find_default_is_async_p, find_default_can_async_p)
2710 (target_supports_non_stop, target_attach): Remove.
2711 (init_dummy_target): Don't set to_create_inferior or
2712 to_supports_non_stop.
2713 * target.h (struct target_ops) <to_attach>: Add comment. Remove
2714 TARGET_DEFAULT_FUNC.
2715 <to_create_inferior>: Add comment.
2716 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
2717 TARGET_DEFAULT_RETURN.
2718 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
2719 (find_attach_target, find_run_target): Declare.
2720 (target_create_inferior): Remove.
2721 (target_has_execution_1): Update comment.
2722 (target_supports_non_stop): Remove.
2723 * target-delegates.c: Rebuild.
2724
91f83b02
PA
27252014-03-12 Pedro Alves <palves@redhat.com>
2726
2727 * inf-child.h: Update comment to not mention Unix.
2728
f1aea813
PA
27292014-03-12 Pedro Alves <palves@redhat.com>
2730
2731 * inf-child.c: Update top comment to not mention Unix. Add
2732 generic comment describing how this target is meant to be used.
2733 (inf_child_post_attach, inf_child_post_startup_inferior)
2734 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
2735 Unix in comment.
2736
ee8e9165
PA
27372014-03-12 Pedro Alves <palves@redhat.com>
2738
2739 * nto-procfs.c: Include inf-child.h.
2740 (procfs_ops): Delete global.
2741 (procfs_can_run): Delete method.
2742 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
2743 target pointer instead of referencing procfs_ops.
2744 (procfs_prepare_to_store): Delete.
2745 (init_procfs_ops): Delete function.
2746 (procfs_target): New function, based on init_procfs_ops, but
2747 inherit inf_child_target.
2748 (_initialize_procfs): Use procfs_target.
2749
51a9c8c5
PA
27502014-03-12 Pedro Alves <palves@redhat.com>
2751
2752 * windows-nat.c: Include inf-child.h.
2753 (windows_ops): Delete global.
2754 (windows_open, windows_prepare_to_store, windows_can_run): Delete
2755 methods.
2756 (init_windows_ops): Delete function.
2757 (windows_target): New function, based on init_windows_ops, but
2758 inherit inf_child_target.
2759 (_initialize_windows_nat): Use windows_target. Install x86
2760 specific target methods here.
2761
c1966e26
DE
27622014-03-10 Doug Evans <xdje42@gmail.com>
2763
2764 * guile/guile.c (call_initialize_gdb_module): New function.
2765 (initialize_guile): Replace call to scm_init_guile with call to
2766 scm_with_guile.
2767
023db19c
JB
27682014-03-10 Joel Brobecker <brobecker@adacore.com>
2769
2770 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
2771 in call to TYPE_CODE macro.
2772
5ec18f2b
JG
27732014-03-10 Jerome Guitton <guitton@adacore.com>
2774
8668be63
JB
2775 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
2776 Resolve tagged types to full view.
5ec18f2b 2777
7d03f2eb
HZ
27782014-03-10 Hui Zhu <hui@codesourcery.com>
2779
2780 * target.h (target_insert_breakpoint): Remove "hardware" from its
2781 comments.
2782
c5164cbc
DE
27832014-03-07 Doug Evans <dje@google.com>
2784
2785 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
2786
c4a3fee2
DE
27872014-03-07 Doug Evans <dje@google.com>
2788
2789 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
2790 Remove unused local comp_dir_attr. Assert exactly one of
2791 stub_comp_unit_die, stub_comp_dir is non-NULL.
2792
3156469c
JB
27932014-03-07 Joel Brobecker <brobecker@adacore.com>
2794
2795 * target.h (complete_target_initialization, add_target):
2796 Add comment.
2797
c1a7b7c6
PA
27982014-03-07 Pedro Alves <palves@redhat.com>
2799
2800 * go32-nat.c: Include inf-child.h.
2801 (go32_ops): Delete global.
2802 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
2803 Delete methods.
2804 (go32_create_inferior): Push the passed in target pointer instead
2805 of referencing go32_ops.
2806 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
2807 (go32_target): New function, based on init_go32_ops, but inherit
2808 inf_child_target.
2809 (_initialize_go32_nat): Use go32_target. Move parts of
2810 init_go32_ops here.
2811
d3c1a85f
JB
28122014-03-06 Joel Brobecker <brobecker@adacore.com>
2813
2814 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
2815 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
2816 SYMBOL_VALUE_ADDRESS.
2817 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
2818
5fa1d40e
YQ
28192014-03-06 Yao Qi <yao@codesourcery.com>
2820
2821 * breakpoint.c (get_tracepoint_by_number): Remove argument
2822 optional_p. All callers updated. Adjust comments. Update
2823 output message.
2824 * breakpoint.h (get_tracepoint_by_number): Update declaration.
2825
0c13193f
YQ
28262014-03-06 Yao Qi <yao@codesourcery.com>
2827
2828 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
2829 early if get_number returns zero. Use 'p' instead of 'args'.
2830
2217da06
YQ
28312014-03-06 Yao Qi <yao@codesourcery.com>
2832
2833 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
2834 message.
2835
cc3da688
YQ
28362014-03-06 Yao Qi <yao@codesourcery.com>
2837
2838 PR breakpoints/16508
2839 * tracepoint.c (check_trace_running): New function.
2840 (trace_find_command): Move code to check_trace_running and
2841 call check_trace_running.
2842 (trace_find_pc_command): Likewise.
2843 (trace_find_tracepoint_command): Likewise.
2844 (trace_find_line_command): Likewise.
2845 (trace_find_range_command): Likewise.
2846 * tracepoint.h (check_trace_running): Likewise.
2847 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
2848
6a5f844b
YQ
28492014-03-06 Yao Qi <yao@codesourcery.com>
2850
2851 * target.h (struct target_ops) <to_traceframe_info>: Use
2852 TARGET_DEFAULT_NORETURN (tcomplain ()).
2853 * target-delegates.c: Regenerated.
2854
0f26cec1
PA
28552014-03-05 Pedro Alves <palves@redhat.com>
2856
2857 PR gdb/16575
2858 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
2859 void. Update comment.
2860 (dcache_xfer_memory): Delete.
2861 (dcache_read_memory_partial): New, based on the read bits of
2862 dcache_xfer_memory.
2863 (dcache_update): Add status parameter. Use ULONGEST for len, and
2864 adjust. Discard cache lines if the reason for the update was
2865 error.
2866 * dcache.h (dcache_xfer_memory): Delete declaration.
2867 (dcache_read_memory_partial): New declaration.
2868 (dcache_update): Update prototype.
2869 * target.c (raw_memory_xfer_partial): Update the dcache here.
2870 (memory_xfer_partial_1): Don't handle dcache writes here.
2871
b2b255bd
MF
28722014-03-05 Mike Frysinger <vapier@gentoo.org>
2873
2874 * remote-sim.c (gdbsim_load): Add const to prog.
2875
5d9cf8a4
TT
28762014-03-03 Tom Tromey <tromey@redhat.com>
2877
2878 * elfread.c (probe_key): Change to bfd_data.
2879 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
2880 now per-BFD, not per-objfile.
2881 * stap-probe.c (stap_probe_destroy): Update comment.
2882 (handle_stap_probe): Allocate on the per-BFD obstack.
2883
729662a5
TT
28842014-03-03 Tom Tromey <tromey@redhat.com>
2885
2886 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
2887 * breakpoint.c (create_longjmp_master_breakpoint): Use
2888 get_probe_address.
2889 (add_location_to_breakpoint, bkpt_probe_insert_location)
2890 (bkpt_probe_remove_location): Update.
2891 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
2892 * elfread.c (elf_symfile_relocate_probe): Remove.
2893 (elf_probe_fns): Update.
2894 (insert_exception_resume_breakpoint): Change type of "probe"
2895 parameter to bound_probe.
2896 (check_exception_resume): Update.
2897 * objfiles.c (objfile_relocate1): Don't relocate probes.
2898 * probe.c (bound_probe_s): New typedef.
2899 (parse_probes): Use get_probe_address. Set sal's objfile.
2900 (find_probe_by_pc): Return a bound_probe.
2901 (collect_probes): Return a VEC(bound_probe_s).
2902 (compare_probes): Update.
2903 (gen_ui_out_table_header_info): Change type of "probes"
2904 parameter. Update.
2905 (info_probes_for_ops): Update.
2906 (get_probe_address): New function.
2907 (probe_safe_evaluate_at_pc): Update.
2908 * probe.h (struct probe_ops) <get_probe_address>: New field.
2909 <set_semaphore, clear_semaphore>: Add objfile parameter.
2910 (struct probe) <objfile>: Remove field.
2911 <arch>: New field.
2912 <address>: Update comment.
2913 (struct bound_probe): New.
2914 (find_probe_by_pc): Return a bound_probe.
2915 (get_probe_address): Declare.
2916 * solib-svr4.c (struct probe_and_action) <address>: New field.
2917 (hash_probe_and_action, equal_probe_and_action): Update.
2918 (register_solib_event_probe): Add address parameter.
2919 (solib_event_probe_at): Update.
2920 (svr4_create_probe_breakpoints): Add objfile parameter. Use
2921 get_probe_address.
2922 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
2923 (stap_get_probe_address): New function.
2924 (stap_can_evaluate_probe_arguments, compute_probe_arg)
2925 (compile_probe_arg): Update.
2926 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
2927 address.
2928 (handle_stap_probe): Don't relocate the probe.
2929 (stap_relocate): Remove.
2930 (stap_gen_info_probes_table_values): Update.
2931 (stap_probe_ops): Remove stap_relocate.
2932 * symfile-debug.c (debug_sym_relocate_probe): Remove.
2933 (debug_sym_probe_fns): Update.
2934 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
2935 * symtab.c (init_sal): Use memset.
2936 * symtab.h (struct symtab_and_line) <objfile>: New field.
2937 * tracepoint.c (start_tracing, stop_tracing): Update.
2938
ff887920
TT
29392014-03-03 Tom Tromey <tromey@redhat.com>
2940
2941 * probe.h (parse_probes, find_probe_by_pc)
2942 (find_probes_in_objfile): Fix comments.
2943
f0407826
DE
29442014-03-02 Doug Evans <xdje42@gmail.com>
2945
2946 * infrun.c (handle_signal_stop): Replace test for
2947 TARGET_WAITKIND_STOPPED with an assert.
2948
35e6a711
DE
29492014-03-02 Doug Evans <xdje42@gmail.com>
2950
2951 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
2952
667f9d0b
DE
29532014-03-02 Doug Evans <xdje42@gmail.com>
2954
2955 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
2956
dc92ace0
MK
29572014-03-01 Mark Kettenis <kettenis@gnu.org>
2958
2959 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
2960
a900370f
MK
29612014-03-01 Mark Kettenis <kettenis@gnu.org>
2962
2963 * i386obsd-nat.c: Include "obsd-nat.h".
2964 (_initialize_i386obsd_nat): Call obsd_add_target instead of
2965 add_target.
2966 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
2967
b72a7981
MK
29682014-03-01 Mark Kettenis <kettenis@gnu.org>
2969
2970 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
2971
96c70aba
MK
29722014-03-01 Mark Kettenis <kettenis@gnu.org>
2973
2974 * mips64obsd-nat.c: Include "obsd-nath".
2975 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
2976 add_target
2977 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
2978
874a80af
MK
29792014-03-01 Mark Kettenis <kettenis@gnu.org>
2980
8fd408f1
MK
2981 * amd64obsd-nat.c: Include "obsd-nat,h.
2982 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
2983 add_target.
874a80af
MK
2984 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
2985
9cf95373
SC
29862014-02-28 Siva Chandra Reddy <sivachandra@google.com>
2987
2988 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
2989 (find_overload_match): Update call to find_oload_champ.
2990 (find_oload_champ_namespace_loop): Likewise
2991
863e4da4
MK
29922014-02-28 Mark Kettenis <kettenis@gnu.org>
2993
025cac40
MK
2994 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
2995
1ed586ce
MK
2996 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
2997 * config/sparc/obsd64.mh: New file.
2998 * sparc64obsd-nat.c: New file.
2999
863e4da4
MK
3000 * obsd-nat.h: New file.
3001 * obsd-nat.c: New file.
3002 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
3003 (ALLDEPFILES): Add obsd-nat.c.
3004
89de4da4
TT
30052014-02-28 Tom Tromey <tromey@redhat.com>
3006
3007 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
3008 * cli-out.h (cli_ui_out_impl): Now const.
3009 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
3010 * ui-out.c (struct ui_out) <impl>: Now const.
3011 (default_ui_out_impl): Now const.
3012 (ui_out_new): Make 'impl' parameter const.
3013 * ui-out.h (ui_out_new): Update.
3014
c725e7b6
MK
30152014-02-27 Mark Kettenis <kettenis@gnu.org>
3016
3017 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
3018
670b46b3
MK
30192014-02-27 Mark Kettenis <kettenis@gnu.org>
3020
3021 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
3022
c91550fc
JK
30232014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3024
3025 Additional PR 8882 fix.
3026 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
3027
2fa0369e
PA
30282014-02-27 Pedro Alves <palves@redhat.com>
3029
3030 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
3031 isn't set.
3032
d632a097
PA
30332014-02-27 Pedro Alves <palves@redhat.com>
3034
3035 PR 12702
3036 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
3037 * nat/linux-waitpid.c: Include string.h.
3038 (status_to_str): Moved here and made extern.
3039 * nat/linux-waitpid.h (status_to_str): New declaration.
3040
2ebd5a35
HZ
30412014-02-27 Hui Zhu <hui@codesourcery.com>
3042
3043 PR 12702
3044 * infrun.c (ptid_match): Move ...
3045 * common/ptid.c (ptid_match): ... here.
3046 * inferior.h (ptid_match): Move ...
3047 * common/ptid.h (ptid_match): ... here.
3048
3cdd631f
MK
30492014-02-27 Mark Kettenis <kettenis@gnu.org>
3050
3051 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
3052 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
3053 gdb_target_obs.
3054
bee30a64
MK
30552014-02-27 Mark Kettenis <kettenis@gnu.org>
3056
3057 * obsd-tdep.c (obsd_auxv_parse): New function.
3058 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
3059
3060 * gdbarch.sh (auxv_parse): New.
3061 * gdbarch.h: Regenerated.
3062 * gdbarch.c: Regenerated.
3063 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
3064
7a5a839f
LC
30652014-02-26 Ludovic Courtès <ludo@gnu.org>
3066
3067 * guile/scm-value.c (gdbscm_history_append_x): New function.
3068 (value_functions): Add it.
3069
31aa7e4e
JB
30702014-02-27 Joel Brobecker <brobecker@adacore.com>
3071
3072 * dwarf2read.c (attr_value_as_address): New function.
3073 (dwarf2_find_base_address, read_call_site_scope): Use
3074 attr_value_as_address in place of DW_ADDR.
3075 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
3076 the low and high addresses. Slight rework of the handling
3077 of the high pc being a constant form, and limit it to
3078 DWARF verson 4 or higher.
3079 (dwarf2_record_block_ranges): Likewise.
3080 (read_partial_die): Likewise.
3081 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
3082
9b333ba3
TT
30832014-02-26 Tom Tromey <tromey@redhat.com>
3084
3085 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
3086
5f6cac40
TT
30872014-02-26 Tom Tromey <tromey@redhat.com>
3088
3089 * elfread.c (elf_read_minimal_symbols): Return early if
3090 minimal symbols have already been read. Add "ei" parameter.
3091 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
3092 * minsyms.c (prim_record_minimal_symbol_full): Update.
3093 * objfiles.h (struct objstats) <n_minsyms>: Move...
3094 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
3095 * symmisc.c (print_objfile_statistics): Update.
3096
2750ef27
TT
30972014-02-26 Tom Tromey <tromey@redhat.com>
3098
3099 * elfread.c (elf_read_minimal_symbols): New function, from
3100 elf_symfile_read.
3101 (elf_symfile_read): Call it.
3102
34643a32
TT
31032014-02-26 Tom Tromey <tromey@redhat.com>
3104
3105 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
3106 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
3107 (lookup_minimal_symbol_solib_trampoline)
3108 (lookup_minimal_symbol_by_pc_section_1)
3109 (lookup_minimal_symbol_and_objfile): Update.
3110 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
3111 Don't allocate a minimal symbol if minsyms have already been read.
3112 (build_minimal_symbol_hash_tables): Update.
3113 (install_minimal_symbols): Do nothing if minsyms already read.
3114 Use the per-BFD obstack.
3115 (terminate_minimal_symbol_table): Use the per-BFD obstack.
3116 * objfiles.c (allocate_objfile): Call
3117 terminate_minimal_symbol_table later.
3118 (have_minimal_symbols): Update.
3119 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
3120 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
3121 Move from struct objfile.
3122 <minsyms_read>: New field.
3123 (struct objfile) <msymbols, minimal_symbol_count,
3124 msymbol_hash, msymbol_demangled_hash>: Move.
3125 (ALL_OBJFILE_MSYMBOLS): Update.
3126 * symfile.c (read_symbols): Set minsyms_read.
3127 (reread_symbols): Update.
3128 * symmisc.c (dump_objfile, dump_msymbols): Update.
3129
2273f0ac
TT
31302014-02-26 Tom Tromey <tromey@redhat.com>
3131
3132 * minsyms.c (msymbols_sort): Remove.
3133 * minsyms.h (msymbols_sort): Remove.
3134 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
3135 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
3136 * elfread.c (elf_symtab_read): Don't add section offsets.
3137 * xcoffread.c (record_minimal_symbol): Don't add section offset
3138 to minimal symbol address.
3139 * somread.c (text_offset, data_offset): Remove.
3140 (som_symtab_read): Don't add section offsets to minimal symbol
3141 addresses.
3142 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
3143 Don't add section offsets to minimal symbols.
3144 * coffread.c (coff_symtab_read): Don't add section offsets
3145 to minimal symbol addresses.
3146 * machoread.c (macho_symtab_add_minsym): Don't add section offset
3147 to minimal symbol addresses.
3148 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
3149 section offset to minimal symbol addresses.
3150 * mdebugread.c (parse_partial_symbols): Don't add section
3151 offset to minimal symbol addresses.
3152 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
3153 offset to minimal symbol addresses.
3154
77e371c0
TT
31552014-02-26 Tom Tromey <tromey@redhat.com>
3156
3157 * ada-lang.c (ada_main_name): Update.
3158 (ada_add_standard_exceptions): Update.
3159 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3160 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3161 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
3162 * auxv.c (ld_so_xfer_auxv): Update.
3163 * avr-tdep.c (avr_scan_prologue): Update.
3164 * ax-gdb.c (gen_var_ref): Update.
3165 * blockframe.c (get_pc_function_start)
3166 (find_pc_partial_function_gnu_ifunc): Update.
3167 * breakpoint.c (create_overlay_event_breakpoint)
3168 (create_longjmp_master_breakpoint)
3169 (create_std_terminate_master_breakpoint)
3170 (create_exception_master_breakpoint): Update.
3171 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3172 * c-valprint.c (c_val_print): Update.
3173 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3174 * common/agent.c (agent_look_up_symbols): Update.
3175 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3176 * dwarf2loc.c (call_site_to_target_addr): Update.
3177 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
3178 * elfread.c (elf_gnu_ifunc_record_cache)
3179 (elf_gnu_ifunc_resolve_by_got): Update.
3180 * findvar.c (default_read_var_value): Update.
3181 * frame.c (inside_main_func): Update.
3182 * frv-tdep.c (frv_frame_this_id): Update.
3183 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3184 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3185 Update.
3186 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
3187 (hppa_hpux_find_dummy_bpaddr): Update.
3188 * hppa-tdep.c (hppa_symbol_address): Update.
3189 * infcmd.c (until_next_command): Update.
3190 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
3191 Update.
3192 * linespec.c (minsym_found, add_minsym): Update.
3193 * linux-nat.c (get_signo): Update.
3194 * linux-thread-db.c (inferior_has_bug): Update.
3195 * m32c-tdep.c (m32c_return_value)
3196 (m32c_m16c_address_to_pointer): Update.
3197 * m32r-tdep.c (m32r_frame_this_id): Update.
3198 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3199 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3200 * maint.c (maintenance_translate_address): Update.
3201 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
3202 (frob_address): New function.
3203 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
3204 frob_address. Rename parameter to "pc_in".
3205 (compare_minimal_symbols, compact_minimal_symbols): Use raw
3206 addresses.
3207 (find_solib_trampoline_target, minimal_symbol_upper_bound):
3208 Update.
3209 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3210 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
3211 * objc-lang.c (find_objc_msgsend): Update.
3212 * objfiles.c (objfile_relocate1): Update.
3213 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3214 * p-valprint.c (pascal_val_print): Update.
3215 * parse.c (write_exp_msymbol): Update.
3216 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
3217 (ppc_elfv2_skip_entrypoint): Update.
3218 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3219 * printcmd.c (build_address_symbolic, msym_info)
3220 (address_info): Update.
3221 * proc-service.c (ps_pglobal_lookup): Update.
3222 * psymtab.c (find_pc_sect_psymtab_closer)
3223 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
3224 Change msymbol parameter to bound_minimal_symbol.
3225 * ravenscar-thread.c (get_running_thread_id): Update.
3226 * remote.c (remote_check_symbols): Update.
3227 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
3228 address.
3229 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3230 * solib-dsbt.c (lm_base): Update.
3231 * solib-frv.c (lm_base, main_got): Update.
3232 * solib-irix.c (locate_base): Update.
3233 * solib-som.c (som_solib_create_inferior_hook)
3234 (link_map_start): Update.
3235 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
3236 * solib-svr4.c (elf_locate_base, enable_break): Update.
3237 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3238 (flush_ea_cache): Update.
3239 * stabsread.c (define_symbol, scan_file_globals): Update.
3240 * stack.c (find_frame_funname): Update.
3241 * symfile-debug.c (debug_qf_expand_symtabs_matching)
3242 (debug_qf_find_pc_sect_symtab): Update.
3243 * symfile.c (simple_read_overlay_table)
3244 (simple_overlay_update): Update.
3245 * symfile.h (struct quick_symbol_functions)
3246 <find_pc_sect_symtab>: Change type of msymbol to
3247 bound_minimal_symbol.
3248 * symmisc.c (dump_msymbols): Update.
3249 * symtab.c (find_pc_sect_symtab_via_partial)
3250 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
3251 (search_symbols, print_msymbol_info): Update.
3252 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
3253 (MSYMBOL_VALUE_ADDRESS): Redefine.
3254 (BMSYMBOL_VALUE_ADDRESS): New macro.
3255 * tracepoint.c (scope_info): Update.
3256 * tui/tui-disasm.c (tui_find_disassembly_address)
3257 (tui_get_begin_asm_address): Update.
3258 * valops.c (find_function_in_inferior): Update.
3259 * value.c (value_static_field, value_fn_field): Update.
3260
3b7344d5
TT
32612014-02-26 Tom Tromey <tromey@redhat.com>
3262
3263 * ada-lang.c (ada_update_initial_language): Update.
3264 (ada_main_name, ada_has_this_exception_support): Update.
3265 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3266 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3267 * arm-tdep.c (arm_skip_stub): Update.
3268 * auxv.c (ld_so_xfer_auxv): Update.
3269 * avr-tdep.c (avr_scan_prologue): Update.
3270 * ax-gdb.c (gen_var_ref): Update.
3271 * breakpoint.c (struct breakpoint_objfile_data)
3272 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
3273 type to bound_minimal_symbol.
3274 (create_overlay_event_breakpoint)
3275 (create_longjmp_master_breakpoint)
3276 (create_std_terminate_master_breakpoint)
3277 (create_exception_master_breakpoint): Update.
3278 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3279 * c-exp.y (classify_name): Update.
3280 * coffread.c (coff_symfile_read): Update.
3281 * common/agent.c (agent_look_up_symbols): Update.
3282 * d-lang.c (d_main_name): Update.
3283 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3284 * dec-thread.c (enable_dec_thread): Update.
3285 * dwarf2loc.c (call_site_to_target_addr): Update.
3286 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
3287 * eval.c (evaluate_subexp_standard): Update.
3288 * findvar.c (struct minsym_lookup_data) <result>: Change type
3289 to bound_minimal_symbol.
3290 <objfile>: Remove.
3291 (minsym_lookup_iterator_cb, default_read_var_value): Update.
3292 * frame.c (inside_main_func): Update.
3293 * frv-tdep.c (frv_frame_this_id): Update.
3294 * gcore.c (call_target_sbrk): Update.
3295 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3296 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3297 Update.
3298 * go-lang.c (go_main_name): Update.
3299 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3300 (hppa_hpux_find_import_stub_for_addr): Update.
3301 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
3302 Update. Change return type.
3303 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
3304 type.
3305 * jit.c (jit_breakpoint_re_set_internal): Update.
3306 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
3307 Update.
3308 * linux-nat.c (get_signo): Update.
3309 * linux-thread-db.c (inferior_has_bug): Update
3310 * m32c-tdep.c (m32c_return_value)
3311 (m32c_m16c_address_to_pointer): Update.
3312 * m32r-tdep.c (m32r_frame_this_id): Update.
3313 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3314 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3315 * minsyms.c (lookup_minimal_symbol_internal): Rename to
3316 lookup_minimal_symbol. Change return type.
3317 (lookup_minimal_symbol): Remove.
3318 (lookup_bound_minimal_symbol): Update.
3319 (lookup_minimal_symbol_text): Change return type.
3320 (lookup_minimal_symbol_solib_trampoline): Change return type.
3321 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
3322 (lookup_minimal_symbol_solib_trampoline): Change return type.
3323 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3324 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3325 (value_nsstring, find_imps): Update.
3326 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3327 * p-lang.c (pascal_main_name): Update.
3328 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
3329 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3330 * proc-service.c (ps_pglobal_lookup): Update.
3331 * ravenscar-thread.c (get_running_thread_msymbol): Change
3332 return type.
3333 (has_ravenscar_runtime, get_running_thread_id): Update.
3334 * remote.c (remote_check_symbols): Update.
3335 * sol-thread.c (ps_pglobal_lookup): Update.
3336 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3337 * solib-dsbt.c (lm_base): Update.
3338 * solib-frv.c (lm_base, frv_relocate_section_addresses):
3339 Update.
3340 * solib-irix.c (locate_base): Update.
3341 * solib-som.c (som_solib_create_inferior_hook)
3342 (som_solib_desire_dynamic_linker_symbols, link_map_start):
3343 Update.
3344 * solib-spu.c (spu_enable_break): Update.
3345 * solib-svr4.c (elf_locate_base, enable_break): Update.
3346 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3347 (flush_ea_cache): Update.
3348 * stabsread.c (define_symbol): Update.
3349 * symfile.c (simple_read_overlay_table): Update.
3350 * symtab.c (find_pc_sect_line): Update.
3351 * tracepoint.c (scope_info): Update.
3352 * tui-disasm.c (tui_get_begin_asm_address): Update.
3353 * value.c (value_static_field): Update.
3354
40c1a007
TT
33552014-02-26 Tom Tromey <tromey@redhat.com>
3356
3357 * minsyms.c (prim_record_minimal_symbol_full): Use
3358 SET_MSYMBOL_VALUE_ADDRESS.
3359 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
3360 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
3361 SET_MSYMBOL_VALUE_ADDRESS.
3362 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3363 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
3364
efd66ac6
TT
33652014-02-26 Tom Tromey <tromey@redhat.com>
3366
3367 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
3368 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3369 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3370 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3371 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
3372 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
3373 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
3374 * ada-lang.c (ada_main_name): Update.
3375 (ada_lookup_simple_minsym): Update.
3376 (ada_make_symbol_completion_list): Update.
3377 (ada_add_standard_exceptions): Update.
3378 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
3379 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3380 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
3381 * arm-tdep.c (skip_prologue_function): Update.
3382 (arm_skip_stack_protector, arm_skip_stub): Update.
3383 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
3384 (arm_wince_skip_main_prologue): Update.
3385 * auxv.c (ld_so_xfer_auxv): Update.
3386 * avr-tdep.c (avr_scan_prologue): Update.
3387 * ax-gdb.c (gen_var_ref): Update.
3388 * block.c (call_site_for_pc): Update.
3389 * blockframe.c (get_pc_function_start): Update.
3390 (find_pc_partial_function_gnu_ifunc): Update.
3391 * breakpoint.c (create_overlay_event_breakpoint): Update.
3392 (create_longjmp_master_breakpoint): Update.
3393 (create_std_terminate_master_breakpoint): Update.
3394 (create_exception_master_breakpoint): Update.
3395 (resolve_sal_pc): Update.
3396 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3397 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
3398 Update.
3399 * c-valprint.c (c_val_print): Update.
3400 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3401 * coffread.c (coff_symfile_read): Update.
3402 * common/agent.c (agent_look_up_symbols): Update.
3403 * dbxread.c (find_stab_function_addr): Update.
3404 (end_psymtab): Update.
3405 * dwarf2loc.c (call_site_to_target_addr): Update.
3406 (func_verify_no_selftailcall): Update.
3407 (tailcall_dump): Update.
3408 (call_site_find_chain_1): Update.
3409 (dwarf_expr_reg_to_entry_parameter): Update.
3410 * elfread.c (elf_gnu_ifunc_record_cache): Update.
3411 (elf_gnu_ifunc_resolve_by_got): Update.
3412 * f-valprint.c (info_common_command): Update.
3413 * findvar.c (read_var_value): Update.
3414 * frame.c (get_prev_frame_1): Update.
3415 (inside_main_func): Update.
3416 * frv-tdep.c (frv_skip_main_prologue): Update.
3417 (frv_frame_this_id): Update.
3418 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3419 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
3420 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
3421 (gnuv3_skip_trampoline): Update.
3422 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
3423 (hppa64_hpux_in_solib_call_trampoline): Update.
3424 (hppa_hpux_skip_trampoline_code): Update.
3425 (hppa64_hpux_search_dummy_call_sequence): Update.
3426 (hppa_hpux_find_import_stub_for_addr): Update.
3427 (hppa_hpux_find_dummy_bpaddr): Update.
3428 * hppa-tdep.c (hppa_symbol_address)
3429 (hppa_lookup_stub_minimal_symbol): Update.
3430 * i386-tdep.c (i386_skip_main_prologue): Update.
3431 (i386_pe_skip_trampoline_code): Update.
3432 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
3433 * infcall.c (get_function_name): Update.
3434 * infcmd.c (until_next_command): Update.
3435 * jit.c (jit_breakpoint_re_set_internal): Update.
3436 (jit_inferior_init): Update.
3437 * linespec.c (minsym_found): Update.
3438 (add_minsym): Update.
3439 * linux-fork.c (info_checkpoints_command): Update.
3440 * linux-nat.c (get_signo): Update.
3441 * linux-thread-db.c (inferior_has_bug): Update.
3442 * m32c-tdep.c (m32c_return_value): Update.
3443 (m32c_m16c_address_to_pointer): Update.
3444 (m32c_m16c_pointer_to_address): Update.
3445 * m32r-tdep.c (m32r_frame_this_id): Update.
3446 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3447 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3448 * maint.c (maintenance_translate_address): Update.
3449 * minsyms.c (add_minsym_to_hash_table): Update.
3450 (add_minsym_to_demangled_hash_table): Update.
3451 (msymbol_objfile): Update.
3452 (lookup_minimal_symbol): Update.
3453 (iterate_over_minimal_symbols): Update.
3454 (lookup_minimal_symbol_text): Update.
3455 (lookup_minimal_symbol_by_pc_name): Update.
3456 (lookup_minimal_symbol_solib_trampoline): Update.
3457 (lookup_minimal_symbol_by_pc_section_1): Update.
3458 (lookup_minimal_symbol_and_objfile): Update.
3459 (prim_record_minimal_symbol_full): Update.
3460 (compare_minimal_symbols): Update.
3461 (compact_minimal_symbols): Update.
3462 (build_minimal_symbol_hash_tables): Update.
3463 (install_minimal_symbols): Update.
3464 (terminate_minimal_symbol_table): Update.
3465 (find_solib_trampoline_target): Update.
3466 (minimal_symbol_upper_bound): Update.
3467 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3468 * mips-tdep.c (mips_stub_frame_sniffer): Update.
3469 (mips_skip_pic_trampoline_code): Update.
3470 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
3471 * objc-lang.c (selectors_info): Update.
3472 (classes_info): Update.
3473 (find_methods): Update.
3474 (find_imps): Update.
3475 (find_objc_msgsend): Update.
3476 * objfiles.c (objfile_relocate1): Update.
3477 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
3478 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3479 * p-valprint.c (pascal_val_print): Update.
3480 * parse.c (write_exp_msymbol): Update.
3481 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
3482 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
3483 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3484 * printcmd.c (build_address_symbolic): Update.
3485 (sym_info): Update.
3486 (address_info): Update.
3487 * proc-service.c (ps_pglobal_lookup): Update.
3488 * psymtab.c (find_pc_sect_psymtab_closer): Update.
3489 (find_pc_sect_psymtab): Update.
3490 * python/py-framefilter.c (py_print_frame): Update.
3491 * ravenscar-thread.c (get_running_thread_id): Update.
3492 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
3493 Update.
3494 * remote.c (remote_check_symbols): Update.
3495 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
3496 (rs6000_skip_trampoline_code): Update.
3497 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
3498 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3499 * solib-dsbt.c (lm_base): Update.
3500 * solib-frv.c (lm_base): Update.
3501 (main_got): Update.
3502 * solib-irix.c (locate_base): Update.
3503 * solib-som.c (som_solib_create_inferior_hook): Update.
3504 (som_solib_desire_dynamic_linker_symbols): Update.
3505 (link_map_start): Update.
3506 * solib-spu.c (spu_enable_break): Update.
3507 (ocl_enable_break): Update.
3508 * solib-svr4.c (elf_locate_base): Update.
3509 (enable_break): Update.
3510 * spu-tdep.c (spu_get_overlay_table): Update.
3511 (spu_catch_start): Update.
3512 (flush_ea_cache): Update.
3513 * stabsread.c (define_symbol): Update.
3514 (scan_file_globals): Update.
3515 * stack.c (find_frame_funname): Update.
3516 (frame_info): Update.
3517 * symfile.c (simple_read_overlay_table): Update.
3518 (simple_overlay_update): Update.
3519 * symmisc.c (dump_msymbols): Update.
3520 * symtab.c (fixup_section): Update.
3521 (find_pc_sect_line): Update.
3522 (skip_prologue_sal): Update.
3523 (search_symbols): Update.
3524 (print_msymbol_info): Update.
3525 (rbreak_command): Update.
3526 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
3527 (completion_list_objc_symbol): Update.
3528 (default_make_symbol_completion_list_break_on): Update.
3529 * tracepoint.c (scope_info): Update.
3530 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
3531 (tui_get_begin_asm_address): Update.
3532 * valops.c (find_function_in_inferior): Update.
3533 * value.c (value_static_field): Update.
3534 (value_fn_field): Update.
3535
50e65b17
TT
35362014-02-26 Tom Tromey <tromey@redhat.com>
3537
3538 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
3539 bound minimal symbols. Move code that knows about minsym
3540 table layout...
3541 * minsyms.c (minimal_symbol_upper_bound): ... here. New
3542 function.
3543 * minsyms.h (minimal_symbol_upper_bound): Declare.
3544 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
3545 minimal_symbol_upper_bound.
3546
1b588015
JB
35472014-02-27 Joel Brobecker <brobecker@adacore.com>
3548
3549 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
3550 Use the type's name if its basic type does not have a tag.
3551
dbb9c2b1
JB
35522014-02-27 Joel Brobecker <brobecker@adacore.com>
3553
3554 * dwarf2read.c (read_subrange_type): Add comment.
3555
55426c9d
JB
35562014-02-27 Joel Brobecker <brobecker@adacore.com>
3557
3558 * dwarf2read.c (update_enumeration_type_from_children): New
3559 function, mostly extracted from process_structure_scope.
3560 (read_enumeration_type): Call update_enumeration_type_from_children.
3561 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
3562 and flag_flag_enum fields.
3563
f2fce0ca
PA
35642014-02-26 Pedro Alves <palves@redhat.com>
3565
3566 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
3567 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
3568 to_xfer_partial method.
3569
7a44e40e
PA
35702014-02-26 Pedro Alves <palves@redhat.com>
3571
3572 * target.c (complete_target_initialization): Don't install
3573 default_xfer_partial as to_xfer_partial hook.
3574 (nomemory): Delete.
3575 (update_current_target): Don't INHERIT nor de_fault
3576 deprecated_xfer_memory. Delete de_fault macro.
3577 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
3578 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
3579 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
3580 field.
3581
bd265cd0
PA
35822014-02-26 Pedro Alves <palves@redhat.com>
3583
3584 * go32-nat.c (my_write_child): New function.
3585 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
3586 (go32_xfer_partial): New function.
3587 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
3588 Instead install a to_xfer_partial hook.
3589
9d46c4e5
PA
35902014-02-26 Pedro Alves <palves@redhat.com>
3591
3592 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
3593 to_xfer_partial helper. Rewrite.
3594 (procfs_xfer_partial): New function.
3595 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
3596 Install a to_xfer_partial hook.
3597
a1583b1f
PA
35982014-02-26 Pedro Alves <palves@redhat.com>
3599
3600 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
3601 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
3602 (m32r_xfer_partial): New function.
3603 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
3604 Install a to_xfer_partial hook.
3605
6df1b29f
PA
36062014-02-26 Pedro Alves <palves@redhat.com>
3607
3608 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
3609 helper.
3610 (mips_xfer_partial): New function.
3611 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
3612 hook. Install a to_xfer_partial hook.
3613
dc53a7ad
JB
36142014-02-26 Joel Brobecker <brobecker@adacore.com>
3615
3616 * gdbtypes.h (create_array_type_with_stride): Add declaration.
3617 * gdbtypes.c (create_array_type_with_stride): New function,
3618 renaming create_array_type, but with an added parameter
3619 called "bit_stride".
3620 (create_array_type): Re-implement using
3621 create_array_type_with_stride.
3622 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
3623 and DW_AT_bit_stride attributes.
3624
12ab52e9
PA
36252014-02-26 Pedro Alves <palves@redhat.com>
3626
3627 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
3628 task-specific breakpoints.
3629
d16461ae
PA
36302014-02-25 Pedro Alves <palves@redhat.com>
3631
3632 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
3633 handling of object == TARGET_OBJECT_UNWIND_TABLE.
3634
a8b16220
SS
36352014-02-25 Stan Shebs <stan@codesourcery.com>
3636
3637 * defs.h: Annotate comments for Doxygen.
3638
b9e795ee
TT
36392014-02-25 Tom Tromey <tromey@redhat.com>
3640
3641 * target.h (target_ignore): Don't declare.
3642 * target.c (target_ignore): Remove.
3643
849c862e
JK
36442014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3645
3646 PR gdb/16626
3647 * auto-load.c (auto_load_objfile_script_1): Change filename to
3648 debugfile.
3649
475109d8
JB
36502014-02-25 Joel Brobecker <brobecker@adacore.com>
3651
3652 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
3653 documentation. Adjust prototype to match the target_ops
3654 to_xfer_partial method. Adjust implementation accordingly.
3655
e186c3bd
HZ
36562014-02-25 Hui Zhu <hui@codesourcery.com>
3657
3658 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
3659 to_traceframe_info.
3660
6d451942
KB
36612014-02-25 Kevin Buettner <kevinb@redhat.com>
3662
041ab8b4 3663 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
3664 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
3665 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
3666 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
3667 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
3668 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
3669 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
3670 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
3671 New constants.
3672 (rl78_register_type): Use a data pointer type for SP and
3673 new pseudo registers mentioned above. Use a 16 bit integer
3674 type for all other register pairs.
3675 (rl78_register_name, rl78_g10_register_name): Update for
3676 new pseudo registers.
3677 (rl78_pseudo_register_read): Likewise.
3678 (rl78_pseudo_register_write): Likewise.
3679 (rl78_dwarf_reg_to_regnum): Return register numbers representing
3680 to the newly added pseudo registers.
3681
eddf0bae
DE
36822014-02-24 Doug Evans <dje@google.com>
3683
3684 * value.c (record_latest_value): Fix comment.
3685 * printcmd.c (print_command_1): Remove code to handle -1 return from
3686 record_latest_value.
3687
e96027e0
PA
36882014-02-24 Pedro Alves <palves@redhat.com>
3689
3690 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
3691 deprecated_xfer_memory hook.
3692 (procfs_xfer_partial): Call procfs_xfer_memory instead
3693 of the deprecated_xfer_memory target hook.
3694 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
3695 helper.
3696
0837c976
YZ
36972014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
3698
3699 * windows-nat.c (windows_xfer_shared_libraries): Return
3700 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
3701 requested object is TARGET_OBJECT_LIBRARIES.
3702
bc113b4e
YQ
37032014-02-24 Yao Qi <yao@codesourcery.com>
3704
3705 * target.h (enum target_xfer_status)
3706 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
3707 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
3708 explicitly. New.
3709 * corefile.c (memory_error_message): User updated.
3710 * exec.c (section_table_read_available_memory): Likewise.
3711 * record-btrace.c (record_btrace_xfer_partial): Likewise.
3712 * target.c (target_xfer_status_to_string): Likewise.
3713 (raw_memory_xfer_partial): Likewise.
3714 (memory_xfer_partial_1, target_xfer_partial): Likewise.
3715 * valops.c (read_value_memory): Likewise.
3716 * exec.h: Update comments.
3717
01cb8804
YQ
37182014-02-24 Yao Qi <yao@codesourcery.com>
3719
3720 * target.c (target_xfer_status_to_string): Rename argument err
3721 to status.
3722 * target.h (target_xfer_status_to_string): Update declaration.
3723 Replace target_xfer_error_to_string with
3724 target_xfer_status_to_string in comment.
3725
93063aa6
YQ
37262014-02-24 Yao Qi <yao@codesourcery.com>
3727
3728 * mips-linux-nat.c (super_close): Update its type.
3729 (mips_linux_close): Pass 'self' to super_close.
3730
5c328c05
YQ
37312014-02-24 Yao Qi <yao@codesourcery.com>
3732
3733 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
3734 * corefile.c (read_memory): Adjusted.
3735 * target.c (target_write_with_progress): Adjusted.
3736
f73023dd
YQ
37372014-02-23 Yao Qi <yao@codesourcery.com>
3738
3739 Revert two patches:
3740
3741 2013-10-25 Yao Qi <yao@codesourcery.com>
3742
3743 * remote.c (remote_traceframe_info): Return early if
3744 traceframe is not selected.
3745
3746 2013-07-19 Yao Qi <yao@codesourcery.com>
3747
3748 * target.c (update_current_target): Change the default action
3749 of 'to_traceframe_info' from tcomplain to return_zero.
3750 * target.h (struct target_ops) <to_traceframe_info>: Add more
3751 comments.
3752
5a2eb0ef
YQ
37532014-02-23 Yao Qi <yao@codesourcery.com>
3754
3755 * valops.c (read_value_memory): Rewrite it. Call
3756 target_xfer_partial in a loop.
3757 * exec.h (section_table_available_memory): Remove declaration.
3758 Move comments to ...
3759 * exec.c (section_table_available_memory): ... here. Make it
3760 static.
3761
1ee79381
YQ
37622014-02-23 Yao Qi <yao@codesourcery.com>
3763
3764 * exec.c (section_table_read_available_memory): New function.
3765 * exec.h (section_table_read_available_memory): Declare.
3766 * ctf.c (ctf_xfer_partial): Call
3767 section_table_read_available_memory.
3768 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3769
1ca49d37
YQ
37702014-02-23 Yao Qi <yao@codesourcery.com>
3771
3772 * ctf.c (ctf_xfer_partial): Move code to ...
3773 * exec.c (exec_read_partial_read_only): ... it. New function.
3774 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3775 * tracefile.c: Include "exec.h".
3776 * exec.h (exec_read_partial_read_only): Declare.
3777
a283690e
YQ
37782014-02-23 Yao Qi <yao@codesourcery.com>
3779
3780 * tracefile-tfile.c (tfile_has_all_memory): Remove.
3781 (tfile_has_memory): Remove.
3782 (init_tfile_ops): Don't set fields to_has_all_memory and
3783 to_has_memory of tfile_ops.
3784 * tracefile.c (tracefile_has_all_memory): New function.
3785 (tracefile_has_memory): New function.
3786 (init_tracefile_ops): Initialize fields to_has_all_memory and
3787 to_has_memory of 'ops'.
3788
12e03cd0
YQ
37892014-02-23 Yao Qi <yao@codesourcery.com>
3790
3791 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
3792 (ctf_thread_alive, ctf_get_trace_status): Remove.
3793 (init_ctf_ops): Don't set some fields of ctf_ops. Call
3794 init_tracefile_ops.
3795 * tracefile-tfile.c (tfile_get_trace_status): Remove.
3796 (tfile_has_stack, tfile_has_registers): Remove.
3797 (tfile_thread_alive): Remove.
3798 (init_tfile_ops): Don't set some fields of tfile_ops. Call
3799 init_tracefile_ops.
3800 * tracefile.c (tracefile_has_stack): New function.
3801 (tracefile_has_registers): New function.
3802 (tracefile_thread_alive): New function.
3803 (tracefile_get_trace_status): New function.
3804 (init_tracefile_ops): New function.
3805 * tracefile.h (init_tracefile_ops): Declare.
3806
11395323
YQ
38072014-02-23 Yao Qi <yao@codesourcery.com>
3808
3809 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
3810 (O_LARGEFILE): Likewise.
3811 (tfile_ops): Likewise.
3812 (TRACE_HEADER_SIZE): Likewise.
3813 (trace_fd, trace_frames_offset, cur_offset): Likewise.
3814 (cur_data_size): Likewise.
3815 (tfile_read, tfile_open, tfile_interp_line): Likewise.
3816 (tfile_close, tfile_files_info): Likewise.
3817 (tfile_get_trace_status): Likewise.
3818 (tfile_get_tracepoint_status): Likewise.
3819 (tfile_get_traceframe_address): Likewise.
3820 (tfile_trace_find, match_blocktype): Likewise.
3821 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
3822 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
3823 (tfile_get_trace_state_variable_value): Likewise.
3824 (tfile_has_all_memory, tfile_has_memory): Likewise.
3825 (tfile_has_stack, tfile_has_registers): Likewise.
3826 (tfile_thread_alive, build_traceframe_info): Likewise.
3827 (tfile_traceframe_info, init_tfile_ops): Likewise.
3828 (_initialize_tracepoint): Don't call init_tfile_ops
3829 and add_target_with_completer.
3830 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
3831 exec.h, completer.h and filenames.h.
3832 (_initialize_tracefile_tfile): New function.
3833
7951c4eb
YQ
38342014-02-23 Yao Qi <yao@codesourcery.com>
3835
3836 * Makefile.in (REMOTE_OBS): Append tracefile.o and
3837 tracefile-tfile.o.
3838 (HFILES_NO_SRCDIR): Add tracefile.h.
3839 * ctf.c: Include "tracefile.h".
3840 * tracefile.h: New file.
3841 * tracefile.c: New file
3842 * tracefile-tfile.c: New file.
3843 * tracepoint.c: Include "tracefile.h".
3844 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
3845 (stop_reason_names): Add const.
3846 (trace_file_writer_xfree): Move it to tracefile.c.
3847 (trace_save, trace_save_command, trace_save_tfile): Likewise.
3848 (trace_save_ctf): Likewise.
3849 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
3850 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
3851 (tfile_write_header, tfile_write_regblock_type): Likewise.
3852 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
3853 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
3854 (tfile_write_raw_data, tfile_end): Likewise.
3855 (tfile_trace_file_writer_new): Likewise.
3856 (free_uploaded_tp): Make it extern.
3857 (free_uploaded_tsv): Make it extern.
3858 (_initialize_tracepoint): Move code to register command 'tsave'
3859 to tracefile.c.
3860 * tracepoint.h (stop_reason_names): Declare.
3861 (struct trace_frame_write_ops): Move it to tracefile.h.
3862 (struct trace_file_write_ops): Likewise.
3863 (struct trace_file_writer): Likewise.
3864 (free_uploaded_tsvs, free_uploaded_tps): Declare.
3865
184cd072
JK
38662014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3867
3868 PR gdb/16594
3869 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
3870 process name.
3871 (get_cores_used_by_process): New parameter num_cores, use it.
3872 (linux_xfer_osdata_processes): Pass num_cores to it.
3873 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
3874 process name.
3875
c63528fc
AK
38762014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
3877
3878 * target.c (memory_xfer_partial): Fix length arg in call to
3879 breakpoint_xfer_memory.
3880
d7b30f67
SDJ
38812014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
3882
3883 PR tdep/16397
3884 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
3885 number comes after the + or - signs. Adjust length of register
3886 name to be extracted.
3887
8838afaf
TT
38882014-02-20 Tom Tromey <tromey@redhat.com>
3889
3890 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
3891 (ada_varobj_ops): Mark "extern".
3892
05227d14
TT
38932014-02-20 Tom Tromey <tromey@redhat.com>
3894
3895 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
3896
1254eefc
DE
38972014-02-20 Doug Evans <xdje42@gmail.com>
3898
3899 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
3900 All callers updated.
3901 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
3902 All callers updated.
3903 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
3904 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
3905
adde2bff
DE
39062014-02-20 lin zuojian <manjian2006@gmail.com>
3907 Joel Brobecker <brobecker@adacore.com>
3908 Doug Evans <xdje42@gmail.com>
3909
3910 PR symtab/16581
3911 * dwarf2read.c (struct die_info): New member in_process.
3912 (reset_die_in_process): New function.
3913 (process_die): Set it at the start, reset when returning.
3914 (inherit_abstract_dies): Only call process_die if origin_child_die
3915 not already being processed.
3916
3be75f87
JB
39172014-02-20 Joel Brobecker <brobecker@adacore.com>
3918
3919 * windows-nat.c (handle_unload_dll): Add function documentation.
3920 (do_initial_windows_stuff): Add comment explaining why we wait
3921 until after inferior initialization has finished before
3922 processing all DLLs.
3923
47f7ffdb
JB
39242014-02-20 Joel Brobecker <brobecker@adacore.com>
3925
3926 * windows-nat.c (get_module_name): Delete.
3927 (windows_get_exec_module_filename): New function, mostly
3928 inspired from get_module_name.
3929 (windows_pid_to_exec_file): Replace call to get_module_name
3930 by call to windows_get_exec_module_filename.
3931
1cd9feab
JB
39322014-02-20 Joel Brobecker <brobecker@adacore.com>
3933
3934 * windows-nat.c (handle_load_dll): Rewrite this function's
3935 introductory comment. Remove code using get_module_name
3936 to get the DLL's name.
3937
ea39ad35
JB
39382014-02-20 Joel Brobecker <brobecker@adacore.com>
3939
3940 * windows-nat.c (get_windows_debug_event): Ignore
3941 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
3942 if windows_initialization_done == 0.
3943 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
3944 Adjust implementation to always load all DLLs.
3945 (do_initial_windows_stuff): Replace call to
3946 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
3947
95060284
JB
39482014-02-20 Joel Brobecker <brobecker@adacore.com>
3949
3950 * windows-nat.c (_initialize_windows_nat): Deprecate the
3951 "dll-symbols" command. Turn the "add-shared-symbol-files"
3952 and "assf" aliases into commands, and deprecate them as well.
3953 * NEWS: Add entry explaining that "dll-symbols" and its two
3954 aliases are now deprecated.
3955
8d4fdb12
JB
39562014-02-20 Joel Brobecker <brobecker@adacore.com>
3957
3958 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
3959 new-line in debug string. Remove trailing spaces.
3960
1b281443
SS
39612014-02-19 Stan Shebs <stan@codesourcery.com>
3962
3963 * darwin-nat.c (darwin_xfer_partial): Fix return type.
3964
f7bd0f78
SC
39652014-02-19 Siva Chandra Reddy <sivachandra@google.com>
3966
3967 * NEWS: Add entry for the new feature
3968 * python/py-value.c (valpy_binop): Call value_x_binop for struct
3969 and class values.
3970
399ebc3d
SS
39712014-02-19 Stan Shebs <stan@codesourcery.com>
3972
3973 * MAINTAINERS: List Yao Qi as nios2 maintainer.
3974
c658158d
PA
39752014-02-19 Pedro Alves <palves@redhat.com>
3976
3977 * common/ptid.h (struct ptid): Mention that process_stratum
3978 targets should prefer ptid.lwp.
3979
ba348170
PA
39802014-02-19 Pedro Alves <palves@redhat.com>
3981
3982 * remote.c (remote_thread_alive, write_ptid, read_ptid)
3983 (read_ptid, remote_newthread_step, remote_threads_extra_info)
3984 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
3985 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
3986 store remote thread ids rather than ptid.tid.
3987 (_initialize_remote): Adjust.
3988
ac01945b
TT
39892014-02-19 Tom Tromey <tromey@redhat.com>
3990
3991 * target.c (target_get_unwinder): Rewrite.
3992 (target_get_tailcall_unwinder): Rewrite.
3993 * record-btrace.c (record_btrace_to_get_unwinder): New function.
3994 (record_btrace_to_get_tailcall_unwinder): New function.
3995 (init_record_btrace_ops): Update.
3996 * target.h (struct target_ops) <to_get_unwinder,
3997 to_get_tailcall_unwinder>: Now function pointers. Use
3998 TARGET_DEFAULT_RETURN.
3999
8476dc92
TT
40002014-02-19 Tom Tromey <tromey@redhat.com>
4001
4002 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
4003 argument.
4004 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
4005
c0eca49f
TT
40062014-02-19 Tom Tromey <tromey@redhat.com>
4007
4008 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
4009 directly.
4010 * target-delegates.c: Rebuild.
4011 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
4012 TARGET_DEFAULT_FUNC.
4013 * target.c (default_target_decr_pc_after_break): Rename from
4014 forward_target_decr_pc_after_break. Simplify.
4015 (target_decr_pc_after_break): Rely on delegation.
4016
596b6b39
TT
40172014-02-19 Tom Tromey <tromey@redhat.com>
4018
4019 * target.c (update_current_target): Do not INHERIT to_doc or
4020 to_magic. Do not de_fault to_open or to_close.
4021
b427c1bc
TT
40222014-02-19 Tom Tromey <tromey@redhat.com>
4023
4024 * gcore.h (objfile_find_memory_regions): Declare.
4025 * gcore.c (objfile_find_memory_regions): No longer static. Add
4026 "self" argument.
4027 (_initialize_gcore): Don't call exec_set_find_memory_regions.
4028 * exec.c: Include gcore.h.
4029 (exec_set_find_memory_regions): Remove.
4030 (exec_find_memory_regions): Remove.
4031 (exec_do_find_memory_regions): Remove.
4032 (init_exec_ops): Update.
4033 * defs.h (exec_set_find_memory_regions): Remove.
4034
9b144037
TT
40352014-02-19 Tom Tromey <tromey@redhat.com>
4036
4037 * target-delegates.c: Rebuild.
4038 * target.h (struct target_ops) <to_extra_thread_info,
4039 to_thread_name, to_pid_to_exec_file, to_get_section_table,
4040 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
4041 not 0, in TARGET_DEFAULT_RETURN.
4042
555bbdeb
TT
40432014-02-19 Tom Tromey <tromey@redhat.com>
4044
4045 * target.c (complete_target_initialization): Remove casts. Use
4046 return_zero_has_execution.
4047 (return_zero): Add "ignore" argument.
4048 (return_zero_has_execution): New function.
4049 (init_dummy_target): Remove casts. Use
4050 return_zero_has_execution.
4051
be4ddd36
TT
40522014-02-19 Tom Tromey <tromey@redhat.com>
4053
4054 * target.c (update_current_target): Update comments. Do not
4055 INHERIT to_stratum.
4056
2117c711
TT
40572014-02-19 Tom Tromey <tromey@redhat.com>
4058
4059 * arm-linux-nat.c (arm_linux_read_description): Delegate when
4060 needed.
4061 * corelow.c (core_read_description): Delegate when needed.
4062 * remote.c (remote_read_description): Delegate when needed.
4063 * target-delegates.c: Rebuild.
4064 * target.c (target_read_description): Rewrite.
4065 * target.h (struct target_ops) <to_read_description>: Update
4066 comment. Use TARGET_DEFAULT_RETURN.
4067
e88ef65c
TT
40682014-02-19 Tom Tromey <tromey@redhat.com>
4069
4070 * target-delegates.c: Rebuild.
4071 * target.c (update_current_target): Don't inherit or default
4072 to_can_run.
4073 (find_default_run_target): Check against delegate_can_run.
4074 * target.h (struct target_ops) <to_can_run>: Use
4075 TARGET_DEFAULT_RETURN.
4076
86a0854a
TT
40772014-02-19 Tom Tromey <tromey@redhat.com>
4078
4079 * target-delegates.c: Rebuild.
4080 * target.c (target_disconnect): Unconditionally delegate.
4081 * target.h (struct target_ops) <to_disconnect>: Use
4082 TARGET_DEFAULT_NORETURN.
4083
ee97f592
TT
40842014-02-19 Tom Tromey <tromey@redhat.com>
4085
4086 * record.c (record_stop): Unconditionally delegate.
4087 * target-delegates.c: Rebuild.
4088 * target.c (target_stop_recording): Unconditionally delegate.
4089 * target.h (struct target_ops) <to_stop_recording>: Use
4090 TARGET_DEFAULT_IGNORE.
4091
6dc7fcf4
TT
40922014-02-19 Tom Tromey <tromey@redhat.com>
4093
4094 * target-delegates.c: Rebuild.
4095 * target.c (target_enable_btrace): Unconditionally delegate.
4096 * target.h (struct target_ops) <to_enable_btrace>: Use
4097 TARGET_DEFAULT_NORETURN.
4098
eb5b20d4
TT
40992014-02-19 Tom Tromey <tromey@redhat.com>
4100
4101 * target-delegates.c: Rebuild.
4102 * target.c (target_read_btrace): Unconditionally delegate.
4103 * target.h (struct target_ops) <to_read_btrace>: Use
4104 TARGET_DEFAULT_NORETURN.
4105
9ace480d
TT
41062014-02-19 Tom Tromey <tromey@redhat.com>
4107
4108 * target-delegates.c: Rebuild.
4109 * target.c (target_teardown_btrace): Unconditionally delegate.
4110 * target.h (struct target_ops) <to_teardown_btrace>: Use
4111 TARGET_DEFAULT_NORETURN.
4112
8dc292d3
TT
41132014-02-19 Tom Tromey <tromey@redhat.com>
4114
4115 * target-delegates.c: Rebuild.
4116 * target.c (target_disable_btrace): Unconditionally delegate.
4117 * target.h (struct target_ops) <to_disable_btrace>: Use
4118 TARGET_DEFAULT_NORETURN.
4119
58a5184e
TT
41202014-02-19 Tom Tromey <tromey@redhat.com>
4121
4122 * target-delegates.c: Rebuild.
4123 * target.c (default_search_memory): New function.
4124 (simple_search_memory): Update comment.
4125 (target_search_memory): Unconditionally delegate.
4126 * target.h (struct target_ops) <to_search_memory>: Use
4127 TARGET_DEFAULT_FUNC.
4128
8de71aab
TT
41292014-02-19 Tom Tromey <tromey@redhat.com>
4130
4131 * auxv.c (default_auxv_parse): No longer static.
4132 (target_auxv_parse): Unconditionally delegate.
4133 * auxv.h (default_auxv_parse): Declare.
4134 * target-delegates.c: Rebuild.
4135 * target.c: Include auxv.h.
4136 * target.h (struct target_ops) <to_auxv_parse>: Use
4137 TARGET_DEFAULT_FUNC.
4138
6b2c5a57
TT
41392014-02-19 Tom Tromey <tromey@redhat.com>
4140
4141 * target-delegates.c: Rebuild.
4142 * target.c (target_memory_map): Unconditionally delegate.
4143 * target.h (struct target_ops) <to_memory_map>: Use
4144 TARGET_DEFAULT_RETURN.
4145
cbffc065
TT
41462014-02-19 Tom Tromey <tromey@redhat.com>
4147
4148 * target-delegates.c: Rebuild.
4149 * target.c (target_thread_alive): Unconditionally delegate.
4150 * target.h (struct target_ops) <to_thread_alive>: Use
4151 TARGET_DEFAULT_RETURN.
4152
f09e2107
TT
41532014-02-19 Tom Tromey <tromey@redhat.com>
4154
4155 * target-delegates.c: Rebuild.
4156 * target.c (target_save_record): Unconditionally delegate.
4157 * target.h (struct target_ops) <to_save_record>: Use
4158 TARGET_DEFAULT_NORETURN.
4159
07366925
TT
41602014-02-19 Tom Tromey <tromey@redhat.com>
4161
4162 * target-delegates.c: Rebuild.
4163 * target.c (target_delete_record): Unconditionally delegate.
4164 * target.h (struct target_ops) <to_delete_record>: Use
4165 TARGET_DEFAULT_NORETURN.
4166
dd2e9d25
TT
41672014-02-19 Tom Tromey <tromey@redhat.com>
4168
4169 * target-delegates.c: Rebuild.
4170 * target.c (target_record_is_replaying): Unconditionally
4171 delegate.
4172 * target.h (struct target_ops) <to_record_is_replaying>: Use
4173 TARGET_DEFAULT_RETURN.
4174
671e76cc
TT
41752014-02-19 Tom Tromey <tromey@redhat.com>
4176
4177 * target-delegates.c: Rebuild.
4178 * target.c (target_goto_record_begin): Unconditionally delegate.
4179 * target.h (struct target_ops) <to_goto_record_begin>: Use
4180 TARGET_DEFAULT_NORETURN.
4181
e9179bb3
TT
41822014-02-19 Tom Tromey <tromey@redhat.com>
4183
4184 * target-delegates.c: Rebuild.
4185 * target.c (target_goto_record_end): Unconditionally delegate.
4186 * target.h (struct target_ops) <to_goto_record_end>: Use
4187 TARGET_DEFAULT_NORETURN.
4188
05969c84
TT
41892014-02-19 Tom Tromey <tromey@redhat.com>
4190
4191 * target-delegates.c: Rebuild.
4192 * target.c (target_goto_record): Unconditionally delegate.
4193 * target.h (struct target_ops) <to_goto_record>: Use
4194 TARGET_DEFAULT_NORETURN.
4195
3679abfa
TT
41962014-02-19 Tom Tromey <tromey@redhat.com>
4197
4198 * target-delegates.c: Rebuild.
4199 * target.c (target_insn_history): Unconditionally delegate.
4200 * target.h (struct target_ops) <to_insn_history>: Use
4201 TARGET_DEFAULT_NORETURN.
4202
8444ab58
TT
42032014-02-19 Tom Tromey <tromey@redhat.com>
4204
4205 * target-delegates.c: Rebuild.
4206 * target.c (target_insn_history_from): Unconditionally delegate.
4207 * target.h (struct target_ops) <to_insn_history_from>: Use
4208 TARGET_DEFAULT_NORETURN.
4209
c29302cc
TT
42102014-02-19 Tom Tromey <tromey@redhat.com>
4211
4212 * target-delegates.c: Rebuild.
4213 * target.c (target_insn_history_range): Unconditionally delegate.
4214 * target.h (struct target_ops) <to_insn_history_range>: Use
4215 TARGET_DEFAULT_NORETURN.
4216
170049d4
TT
42172014-02-19 Tom Tromey <tromey@redhat.com>
4218
4219 * target-delegates.c: Rebuild.
4220 * target.c (target_call_history): Unconditionally delegate.
4221 * target.h (struct target_ops) <to_call_history>: Use
4222 TARGET_DEFAULT_NORETURN.
4223
16fc27d6
TT
42242014-02-19 Tom Tromey <tromey@redhat.com>
4225
4226 * target-delegates.c: Rebuild.
4227 * target.c (target_call_history_from): Unconditionally delegate.
4228 * target.h (struct target_ops) <to_call_history_from>: Use
4229 TARGET_DEFAULT_NORETURN.
4230
115d9817
TT
42312014-02-19 Tom Tromey <tromey@redhat.com>
4232
4233 * target-delegates.c: Rebuild.
4234 * target.c (target_call_history_range): Unconditionally delegate.
4235 * target.h (struct target_ops) <to_call_history_range>: Use
4236 TARGET_DEFAULT_NORETURN.
4237
eb276a6b
TT
42382014-02-19 Tom Tromey <tromey@redhat.com>
4239
4240 * target-delegates.c: Rebuild.
4241 * target.c (target_verify_memory): Unconditionally delegate.
4242 * target.h (struct target_ops) <to_verify_memory>: Use
4243 TARGET_DEFAULT_NORETURN.
4244
9e538d0d
TT
42452014-02-19 Tom Tromey <tromey@redhat.com>
4246
4247 * target-delegates.c: Rebuild.
4248 * target.c (target_core_of_thread): Unconditionally delegate.
4249 * target.h (struct target_ops) <to_core_of_thread>: Use
4250 TARGET_DEFAULT_RETURN.
4251
f6fb2925
TT
42522014-02-19 Tom Tromey <tromey@redhat.com>
4253
4254 * target-delegates.c: Rebuild.
4255 * target.c (target_flash_done): Unconditionally delegate.
4256 * target.h (struct target_ops) <to_flash_done>: Use
4257 TARGET_DEFAULT_NORETURN.
4258
e8a6c6ac
TT
42592014-02-19 Tom Tromey <tromey@redhat.com>
4260
4261 * target-delegates.c: Rebuild.
4262 * target.c (target_flash_erase): Unconditionally delegate.
4263 * target.h (struct target_ops) <to_flash_erase>: Use
4264 TARGET_DEFAULT_NORETURN.
4265
7e35c012
TT
42662014-02-19 Tom Tromey <tromey@redhat.com>
4267
4268 * target-delegates.c: Rebuild.
4269 * target.c (target_get_section_table): Unconditionally delegate.
4270 * target.h (struct target_ops) <to_get_section_table>: Use
4271 TARGET_DEFAULT_RETURN.
4272
770234d3
TT
42732014-02-19 Tom Tromey <tromey@redhat.com>
4274
4275 * target-delegates.c: Rebuild.
4276 * target.c (target_pid_to_str): Unconditionally delegate.
4277 (init_dummy_target): Don't initialize to_pid_to_str.
4278 (default_pid_to_str): Rename from dummy_pid_to_str.
4279 * target.h (struct target_ops) <to_pid_to_str>: Use
4280 TARGET_DEFAULT_FUNC.
4281
09b0dc2b
TT
42822014-02-19 Tom Tromey <tromey@redhat.com>
4283
4284 * target-delegates.c: Rebuild.
4285 * target.c (target_find_new_threads): Unconditionally delegate.
4286 * target.h (struct target_ops) <to_find_new_threads>: Use
4287 TARGET_DEFAULT_RETURN.
4288
7d4f8efa
TT
42892014-02-19 Tom Tromey <tromey@redhat.com>
4290
4291 * target-delegates.c: Rebuild.
4292 * target.c (target_program_signals): Unconditionally delegate.
4293 * target.h (struct target_ops) <to_program_signals>: Use
4294 TARGET_DEFAULT_IGNORE.
4295
035cad7f
TT
42962014-02-19 Tom Tromey <tromey@redhat.com>
4297
4298 * target-delegates.c: Rebuild.
4299 * target.c (target_pass_signals): Unconditionally delegate.
4300 * target.h (struct target_ops) <to_pass_signals>: Use
4301 TARGET_DEFAULT_IGNORE.
4302
8d657035
TT
43032014-02-19 Tom Tromey <tromey@redhat.com>
4304
4305 * target-delegates.c: Rebuild.
4306 * target.c (default_mourn_inferior): New function.
4307 (target_mourn_inferior): Unconditionally delegate.
4308 * target.h (struct target_ops) <to_mourn_inferior>: Use
4309 TARGET_DEFAULT_FUNC.
4310
098dba18
TT
43112014-02-19 Tom Tromey <tromey@redhat.com>
4312
4313 * target-delegates.c: Rebuild.
4314 * target.c (default_follow_fork): New function.
4315 (target_follow_fork): Unconditionally delegate.
4316 * target.h (struct target_ops) <to_follow_fork>: Use
4317 TARGET_DEFAULT_FUNC.
4318
423a4807
TT
43192014-02-19 Tom Tromey <tromey@redhat.com>
4320
4321 * target-delegates.c: Rebuild.
4322 * target.c (target_kill): Unconditionally delegate.
4323 * target.h (struct target_ops) <to_kill>: Use
4324 TARGET_DEFAULT_NORETURN.
4325
6c7e5e5c
TT
43262014-02-19 Tom Tromey <tromey@redhat.com>
4327
4328 * target-delegates.c: Rebuild.
4329 * target.c (target_masked_watch_num_registers): Unconditionally
4330 delegate.
4331 * target.h (struct target_ops) <to_masked_watch_num_registers>:
4332 Use TARGET_DEFAULT_RETURN.
4333
8b1c364c
TT
43342014-02-19 Tom Tromey <tromey@redhat.com>
4335
4336 * target-delegates.c: Rebuild.
4337 * target.c (target_remove_mask_watchpoint): Unconditionally
4338 delegate.
4339 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
4340 TARGET_DEFAULT_RETURN.
4341
cd4ae029
TT
43422014-02-19 Tom Tromey <tromey@redhat.com>
4343
4344 * target-delegates.c: Rebuild.
4345 * target.c (target_insert_mask_watchpoint): Unconditionally
4346 delegate.
4347 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
4348 TARGET_DEFAULT_RETURN.
4349
a134316b
TT
43502014-02-19 Tom Tromey <tromey@redhat.com>
4351
4352 * target-delegates.c: Rebuild.
4353 * target.c (target_ranged_break_num_registers): Unconditionally
4354 delegate.
4355 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4356 Use TARGET_DEFAULT_RETURN.
4357
ad5989bd
TT
43582014-02-19 Tom Tromey <tromey@redhat.com>
4359
4360 * target-delegates.c: Rebuild.
4361 * target.c (target_fetch_registers): Unconditionally delegate.
4362 * target.h (struct target_ops) <to_fetch_registers>: Use
4363 TARGET_DEFAULT_NORETURN.
4364
46ee7e8d
TT
43652014-02-19 Tom Tromey <tromey@redhat.com>
4366
4367 * target-delegates.c: Rebuild.
4368 * target.c (update_current_target): Don't inherit or default
4369 to_stop.
4370 * target.h (struct target_ops) <to_stop>: Use
4371 TARGET_DEFAULT_IGNORE.
4372
843f59ed
TT
43732014-02-19 Tom Tromey <tromey@redhat.com>
4374
4375 * target-delegates.c: Rebuild.
4376 * target.c (update_current_target): Don't inherit or default
4377 to_can_run_breakpoint_commands.
4378 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4379 Use TARGET_DEFAULT_RETURN.
4380
ccfde2a0
TT
43812014-02-19 Tom Tromey <tromey@redhat.com>
4382
4383 * target-delegates.c: Rebuild.
4384 * target.c (update_current_target): Don't inherit or default
4385 to_supports_evaluation_of_breakpoint_conditions.
4386 * target.h (struct target_ops)
4387 <to_supports_evaluation_of_breakpoint_conditions>: Use
4388 TARGET_DEFAULT_RETURN.
4389
0de91722
TT
43902014-02-19 Tom Tromey <tromey@redhat.com>
4391
4392 * target-delegates.c: Rebuild.
4393 * target.c (update_current_target): Don't inherit or default
4394 to_augmented_libraries_svr4_read.
4395 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4396 Use TARGET_DEFAULT_RETURN.
4397
9a7d8b48
TT
43982014-02-19 Tom Tromey <tromey@redhat.com>
4399
4400 * target-delegates.c: Rebuild.
4401 * target.c (update_current_target): Don't inherit or default
4402 to_can_use_agent.
4403 * target.h (struct target_ops) <to_can_use_agent>: Use
4404 TARGET_DEFAULT_RETURN.
4405
d9db5b21
TT
44062014-02-19 Tom Tromey <tromey@redhat.com>
4407
4408 * target-delegates.c: Rebuild.
4409 * target.c (update_current_target): Don't inherit or default
4410 to_use_agent.
4411 * target.h (struct target_ops) <to_use_agent>: Use
4412 TARGET_DEFAULT_NORETURN.
4413
92155eeb
TT
44142014-02-19 Tom Tromey <tromey@redhat.com>
4415
4416 * target-delegates.c: Rebuild.
4417 * target.c (update_current_target): Don't inherit or default
4418 to_traceframe_info.
4419 (return_null): Remove.
4420 * target.h (struct target_ops) <to_traceframe_info>: Use
4421 TARGET_DEFAULT_RETURN.
4422
d6522a22
TT
44232014-02-19 Tom Tromey <tromey@redhat.com>
4424
4425 * target-delegates.c: Rebuild.
4426 * target.c (update_current_target): Don't inherit or default
4427 to_static_tracepoint_markers_by_strid.
4428 * target.h (struct target_ops)
4429 <to_static_tracepoint_markers_by_strid>: Use
4430 TARGET_DEFAULT_NORETURN.
4431
4c3e4425
TT
44322014-02-19 Tom Tromey <tromey@redhat.com>
4433
4434 * target-delegates.c: Rebuild.
4435 * target.c (update_current_target): Don't inherit or default
4436 to_static_tracepoint_marker_at.
4437 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4438 Use TARGET_DEFAULT_RETURN.
4439
dcd6917f
TT
44402014-02-19 Tom Tromey <tromey@redhat.com>
4441
4442 * target-delegates.c: Rebuild.
4443 * target.c (update_current_target): Don't inherit or default
4444 to_set_permissions.
4445 * target.h (struct target_ops) <to_set_permissions>: Use
4446 TARGET_DEFAULT_IGNORE.
4447
22bcceee
TT
44482014-02-19 Tom Tromey <tromey@redhat.com>
4449
4450 * target-delegates.c: Rebuild.
4451 * target.c (update_current_target): Don't inherit or default
4452 to_get_tib_address.
4453 * target.h (struct target_ops) <to_get_tib_address>: Use
4454 TARGET_DEFAULT_NORETURN.
4455
8586ccaa
TT
44562014-02-19 Tom Tromey <tromey@redhat.com>
4457
4458 * target-delegates.c: Rebuild.
4459 * target.c (update_current_target): Don't inherit or default
4460 to_set_trace_notes.
4461 * target.h (struct target_ops) <to_set_trace_notes>: Use
4462 TARGET_DEFAULT_RETURN.
4463
91df8d1d
TT
44642014-02-19 Tom Tromey <tromey@redhat.com>
4465
4466 * target-delegates.c: Rebuild.
4467 * target.c (update_current_target): Don't initialize
4468 to_set_trace_buffer_size.
4469 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
4470 TARGET_DEFAULT_IGNORE.
4471
8d526939
TT
44722014-02-19 Tom Tromey <tromey@redhat.com>
4473
4474 * target-delegates.c: Rebuild.
4475 * target.c (update_current_target): Don't inherit or default
4476 to_set_circular_trace_buffer.
4477 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
4478 TARGET_DEFAULT_IGNORE.
4479
0bcfeddf
TT
44802014-02-19 Tom Tromey <tromey@redhat.com>
4481
4482 * target-delegates.c: Rebuild.
4483 * target.c (update_current_target): Don't inherit or default
4484 to_set_disconnected_tracing.
4485 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
4486 TARGET_DEFAULT_IGNORE.
4487
9249843f
TT
44882014-02-19 Tom Tromey <tromey@redhat.com>
4489
4490 * target-delegates.c: Rebuild.
4491 * target.c (update_current_target): Don't inherit or default
4492 to_get_min_fast_tracepoint_insn_len.
4493 (return_minus_one): Remove.
4494 * target.h (struct target_ops)
4495 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
4496
ace92e7d
TT
44972014-02-19 Tom Tromey <tromey@redhat.com>
4498
4499 * target-delegates.c: Rebuild.
4500 * target.c (update_current_target): Don't inherit or default
4501 to_get_raw_trace_data.
4502 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
4503 TARGET_DEFAULT_NORETURN.
4504
08120467
TT
45052014-02-19 Tom Tromey <tromey@redhat.com>
4506
4507 * target-delegates.c: Rebuild.
4508 * target.c (update_current_target): Don't inherit or default
4509 to_upload_trace_state_variables.
4510 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4511 Use TARGET_DEFAULT_RETURN.
4512
1e949b00
TT
45132014-02-19 Tom Tromey <tromey@redhat.com>
4514
4515 * target-delegates.c: Rebuild.
4516 * target.c (update_current_target): Don't inherit or default
4517 to_upload_tracepoints.
4518 * target.h (struct target_ops) <to_upload_tracepoints>: Use
4519 TARGET_DEFAULT_RETURN.
4520
a2e6c147
TT
45212014-02-19 Tom Tromey <tromey@redhat.com>
4522
4523 * target-delegates.c: Rebuild.
4524 * target.c (update_current_target): Don't inherit or default
4525 to_save_trace_data.
4526 * target.h (struct target_ops) <to_save_trace_data>: Use
4527 TARGET_DEFAULT_NORETURN.
4528
959bcd0b
TT
45292014-02-19 Tom Tromey <tromey@redhat.com>
4530
4531 * target-delegates.c: Rebuild.
4532 * target.c (update_current_target): Don't inherit or default
4533 to_get_trace_state_variable_value.
4534 * target.h (struct target_ops)
4535 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
4536
afc94e66
TT
45372014-02-19 Tom Tromey <tromey@redhat.com>
4538
4539 * target-delegates.c: Rebuild.
4540 * target.c (update_current_target): Don't inherit or default
4541 to_trace_find.
4542 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
4543
e51c07ea
TT
45442014-02-19 Tom Tromey <tromey@redhat.com>
4545
4546 * target-delegates.c: Rebuild.
4547 * target.c (update_current_target): Don't inherit or default
4548 to_trace_stop.
4549 * target.h (struct target_ops) <to_trace_stop>: Use
4550 TARGET_DEFAULT_NORETURN.
4551
6fea14cd
TT
45522014-02-19 Tom Tromey <tromey@redhat.com>
4553
4554 * target-delegates.c: Rebuild.
4555 * target.c (update_current_target): Don't inherit or default
4556 to_get_tracepoint_status.
4557 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
4558 TARGET_DEFAULT_NORETURN.
4559
4072d4ff
TT
45602014-02-19 Tom Tromey <tromey@redhat.com>
4561
4562 * target-delegates.c: Rebuild.
4563 * target.c (update_current_target): Don't inherit or default
4564 to_get_trace_status.
4565 * target.h (struct target_ops) <to_get_trace_status>: Use
4566 TARGET_DEFAULT_RETURN.
4567
25da2e80
TT
45682014-02-19 Tom Tromey <tromey@redhat.com>
4569
4570 * target-delegates.c: Rebuild.
4571 * target.c (update_current_target): Don't inherit or default
4572 to_trace_start.
4573 * target.h (struct target_ops) <to_trace_start>: Use
4574 TARGET_DEFAULT_NORETURN.
4575
86dd181d
TT
45762014-02-19 Tom Tromey <tromey@redhat.com>
4577
4578 * target-delegates.c: Rebuild.
4579 * target.c (update_current_target): Don't inherit or default
4580 to_trace_set_readonly_regions.
4581 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4582 Use TARGET_DEFAULT_NORETURN.
4583
05c41993
TT
45842014-02-19 Tom Tromey <tromey@redhat.com>
4585
4586 * target-delegates.c: Rebuild.
4587 * target.c (update_current_target): Don't inherit or default
4588 to_disable_tracepoint.
4589 * target.h (struct target_ops) <to_disable_tracepoint>: Use
4590 TARGET_DEFAULT_NORETURN.
4591
151f70f1
TT
45922014-02-19 Tom Tromey <tromey@redhat.com>
4593
4594 * target-delegates.c: Rebuild.
4595 * target.c (update_current_target): Don't inherit or default
4596 to_enable_tracepoint.
4597 * target.h (struct target_ops) <to_enable_tracepoint>: Use
4598 TARGET_DEFAULT_NORETURN.
4599
94eb98b9
TT
46002014-02-19 Tom Tromey <tromey@redhat.com>
4601
4602 * target-delegates.c: Rebuild.
4603 * target.c (update_current_target): Don't inherit or default
4604 to_download_trace_state_variable.
4605 * target.h (struct target_ops) <to_download_trace_state_variable>:
4606 Use TARGET_DEFAULT_NORETURN.
4607
719acc4a
TT
46082014-02-19 Tom Tromey <tromey@redhat.com>
4609
4610 * target-delegates.c: Rebuild.
4611 * target.c (update_current_target): Don't inherit or default
4612 to_can_download_tracepoint.
4613 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
4614 TARGET_DEFAULT_RETURN.
4615
9a980a22
TT
46162014-02-19 Tom Tromey <tromey@redhat.com>
4617
4618 * target-delegates.c: Rebuild.
4619 * target.c (update_current_target): Don't inherit or default
4620 to_download_tracepoint.
4621 * target.h (struct target_ops) <to_download_tracepoint>: Use
4622 TARGET_DEFAULT_NORETURN.
4623
5536135b
TT
46242014-02-19 Tom Tromey <tromey@redhat.com>
4625
4626 * target-delegates.c: Rebuild.
4627 * target.c (update_current_target): Don't inherit or default
4628 to_trace_init.
4629 * target.h (struct target_ops) <to_trace_init>: Use
4630 TARGET_DEFAULT_RETURN.
4631
9409d39e
TT
46322014-02-19 Tom Tromey <tromey@redhat.com>
4633
4634 * target-delegates.c: Rebuild.
4635 * target.c (update_current_target): Don't inherit or default
4636 to_supports_string_tracing.
4637 * target.h (struct target_ops) <to_supports_string_tracing>: Use
4638 TARGET_DEFAULT_RETURN.
4639
aab1b22d
TT
46402014-02-19 Tom Tromey <tromey@redhat.com>
4641
4642 * target-delegates.c: Rebuild.
4643 * target.c (update_current_target): Don't inherit or default
4644 to_supports_enable_disable_tracepoint.
4645 * target.h (struct target_ops)
4646 <to_supports_enable_disable_tracepoint>: Use
4647 TARGET_DEFAULT_RETURN.
4648
a7304748
TT
46492014-02-19 Tom Tromey <tromey@redhat.com>
4650
4651 * target-delegates.c: Rebuild.
4652 * target.c (update_current_target): Don't inherit or default
4653 to_supports_multi_process.
4654 * target.h (struct target_ops) <to_supports_multi_process>: Use
4655 TARGET_DEFAULT_RETURN.
4656
4229b31d
TT
46572014-02-19 Tom Tromey <tromey@redhat.com>
4658
4659 * target-delegates.c: Rebuild.
4660 * target.c (update_current_target): Don't inherit or default
4661 to_get_ada_task_ptid.
4662 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
4663 TARGET_DEFAULT_FUNC.
4664
43eba180
TT
46652014-02-19 Tom Tromey <tromey@redhat.com>
4666
4667 * target-delegates.c: Rebuild.
4668 * target.c (update_current_target): Don't inherit or default
4669 to_thread_architecture.
4670 * target.h (struct target_ops) <to_thread_architecture>: Use
4671 TARGET_DEFAULT_FUNC.
4672
fe31bf5b
TT
46732014-02-19 Tom Tromey <tromey@redhat.com>
4674
4675 * target-delegates.c: Rebuild.
4676 * target.c (update_current_target): Don't inherit or default
4677 to_execution_direction.
4678 * target.h (struct target_ops) <to_execution_direction>: Use
4679 TARGET_DEFAULT_FUNC.
4680
53e1cfc7
TT
46812014-02-19 Tom Tromey <tromey@redhat.com>
4682
4683 * target-delegates.c: Rebuild.
4684 * target.c (update_current_target): Don't inherit or default
4685 to_can_execute_reverse.
4686 * target.h (struct target_ops) <to_can_execute_reverse>: Use
4687 TARGET_DEFAULT_RETURN.
4688 (target_can_execute_reverse): Unconditionally delegate.
4689
9bb9d61d
TT
46902014-02-19 Tom Tromey <tromey@redhat.com>
4691
4692 * target-delegates.c: Rebuild.
4693 * target.c (update_current_target): Don't inherit or default
4694 to_goto_bookmark.
4695 (dummy_goto_bookmark): Remove.
4696 (init_dummy_target): Don't inherit or default to_goto_bookmark.
4697 * target.h (struct target_ops) <to_goto_bookmark>: Use
4698 TARGET_DEFAULT_NORETURN.
4699
3dbafbbb
TT
47002014-02-19 Tom Tromey <tromey@redhat.com>
4701
4702 * target-delegates.c: Rebuild.
4703 * target.c (update_current_target): Don't inherit or default
4704 to_get_bookmark.
4705 (dummy_get_bookmark): Remove.
4706 (init_dummy_target): Don't inherit or default to_get_bookmark.
4707 * target.h (struct target_ops) <to_get_bookmark>: Use
4708 TARGET_DEFAULT_NORETURN
4709
16f796b1
TT
47102014-02-19 Tom Tromey <tromey@redhat.com>
4711
4712 * target-delegates.c: Rebuild.
4713 * target.c (update_current_target): Don't inherit or default
4714 to_make_corefile_notes.
4715 (init_dummy_target): Don't initialize to_make_corefile_notes.
4716 * target.h (struct target_ops) <to_make_corefile_notes>: Use
4717 TARGET_DEFAULT_FUNC.
4718
0b5a2719
TT
47192014-02-19 Tom Tromey <tromey@redhat.com>
4720
4721 * target-delegates.c: Rebuild.
4722 * target.c (update_current_target): Don't inherit or default
4723 to_find_memory_regions.
4724 (init_dummy_target): Don't initialize to_find_memory_regions.
4725 * target.h (struct target_ops) <to_find_memory_regions>: Use
4726 TARGET_DEFAULT_FUNC.
4727
d9cb0195
TT
47282014-02-19 Tom Tromey <tromey@redhat.com>
4729
4730 * target-delegates.c: Rebuild.
4731 * target.c (update_current_target): Don't inherit or default
4732 to_log_command.
4733 * target.h (struct target_ops) <to_log_command>: Use
4734 TARGET_DEFAULT_IGNORE.
4735 (target_log_command): Unconditionally delegate.
4736
830ca330
TT
47372014-02-19 Tom Tromey <tromey@redhat.com>
4738
4739 * target-delegates.c: Rebuild.
4740 * target.c (update_current_target): Don't inherit or default
4741 to_pid_to_exec_file.
4742 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
4743 TARGET_DEFAULT_RETURN.
4744
825828fc
TT
47452014-02-19 Tom Tromey <tromey@redhat.com>
4746
4747 * target-delegates.c: Rebuild.
4748 * target.c (update_current_target): Don't inherit or default
4749 to_thread_name.
4750 (target_thread_name): Unconditionally delegate.
4751 * target.h (struct target_ops) <to_thread_name>: Use
4752 TARGET_DEFAULT_RETURN.
4753
4a7e6dda
TT
47542014-02-19 Tom Tromey <tromey@redhat.com>
4755
4756 * target-delegates.c: Rebuild.
4757 * target.c (update_current_target): Don't inherit or default
4758 to_extra_thread_info.
4759 * target.h (struct target_ops) <to_extra_thread_info>: Use
4760 TARGET_DEFAULT_RETURN.
4761
0db88c1d
TT
47622014-02-19 Tom Tromey <tromey@redhat.com>
4763
4764 * target-delegates.c: Rebuild.
4765 * target.c (update_current_target): Don't inherit or default
4766 to_has_exited.
4767 * target.h (struct target_ops) <to_has_exited>: Use
4768 TARGET_DEFAULT_RETURN..
4769
6a9fa051
TT
47702014-02-19 Tom Tromey <tromey@redhat.com>
4771
4772 * target-delegates.c: Rebuild.
4773 * target.c (update_current_target): Don't inherit or default
4774 to_set_syscall_catchpoint.
4775 (return_one): Remove.
4776 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
4777 TARGET_DEFAULT_RETURN.
4778
62f64d7a
TT
47792014-02-19 Tom Tromey <tromey@redhat.com>
4780
4781 * target-delegates.c: Rebuild.
4782 * target.c (update_current_target): Don't inherit or default
4783 to_insert_exec_catchpoint.
4784 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
4785 TARGET_DEFAULT_RETURN.
4786
cda0f38c
TT
47872014-01-08 Tom Tromey <tromey@redhat.com>
4788
4789 * target-delegates.c: Rebuild.
4790 * target.c (update_current_target): Don't inherit or default
4791 to_insert_exec_catchpoint.
4792 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
4793 TARGET_DEFAULT_RETURN.
4794
95c3375e
TT
47952014-02-19 Tom Tromey <tromey@redhat.com>
4796
4797 * target-delegates.c: Rebuild.
4798 * target.c (update_current_target): Don't inherit or default
4799 to_remove_vfork_catchpoint.
4800 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
4801 TARGET_DEFAULT_RETURN.
4802
7e18a8dc
TT
48032014-02-19 Tom Tromey <tromey@redhat.com>
4804
4805 * target-delegates.c: Rebuild.
4806 * target.c (update_current_target): Don't inherit or default
4807 to_insert_vfork_catchpoint.
4808 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
4809 TARGET_DEFAULT_RETURN.
4810
e1a21fb7
TT
48112014-02-19 Tom Tromey <tromey@redhat.com>
4812
4813 * target-delegates.c: Rebuild.
4814 * target.c (update_current_target): Don't inherit or default
4815 to_remove_fork_catchpoint.
4816 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
4817 TARGET_DEFAULT_RETURN.
4818
5958ebeb
TT
48192014-02-19 Tom Tromey <tromey@redhat.com>
4820
4821 * target-delegates.c: Rebuild.
4822 * target.c (update_current_target): Don't inherit or default
4823 to_insert_fork_catchpoint.
4824 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
4825 TARGET_DEFAULT_RETURN.
4826
340ba4bf
TT
48272014-02-19 Tom Tromey <tromey@redhat.com>
4828
4829 * target-delegates.c: Rebuild.
4830 * target.c (update_current_target): Don't inherit or default
4831 to_post_startup_inferior.
4832 * target.h (struct target_ops) <to_post_startup_inferior>: Use
4833 TARGET_DEFAULT_IGNORE.
4834
7634da87
TT
48352014-02-19 Tom Tromey <tromey@redhat.com>
4836
4837 * target-delegates.c: Rebuild.
4838 * target.c (update_current_target): Don't inherit or default
4839 to_load.
4840 * target.h (struct target_ops) <to_load>: Use
4841 TARGET_DEFAULT_NORETURN.
4842
e19e919f
TT
48432014-02-19 Tom Tromey <tromey@redhat.com>
4844
4845 * target-delegates.c: Rebuild.
4846 * target.c (update_current_target): Don't inherit or default
4847 to_terminal_info.
4848 * target.h (struct target_ops) <to_terminal_info>: Use
4849 TARGET_DEFAULT_FUNC.
4850
c6ea8f79
TT
48512014-02-19 Tom Tromey <tromey@redhat.com>
4852
4853 * target-delegates.c: Rebuild.
4854 * target.c (update_current_target): Don't inherit or default
4855 to_terminal_save_ours.
4856 * target.h (struct target_ops) <to_terminal_save_ours>: Use
4857 TARGET_DEFAULT_IGNORE.
4858
e4a733f1
TT
48592014-02-19 Tom Tromey <tromey@redhat.com>
4860
4861 * target-delegates.c: Rebuild.
4862 * target.c (update_current_target): Don't inherit or default
4863 to_terminal_ours.
4864 * target.h (struct target_ops) <to_terminal_ours>: Use
4865 TARGET_DEFAULT_IGNORE.
4866
74fcbef9
TT
48672014-02-19 Tom Tromey <tromey@redhat.com>
4868
4869 * target-delegates.c: Rebuild.
4870 * target.c (update_current_target): Don't inherit or default
4871 to_terminal_ours_for_output.
4872 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
4873 TARGET_DEFAULT_IGNORE.
4874
ddeaacc9
TT
48752014-02-19 Tom Tromey <tromey@redhat.com>
4876
4877 * target-delegates.c: Rebuild.
4878 * target.c (update_current_target): Don't inherit or default
4879 to_terminal_inferior.
4880 * target.h (struct target_ops) <to_terminal_inferior>: Use
4881 TARGET_DEFAULT_IGNORE.
4882
0343661d
TT
48832014-02-19 Tom Tromey <tromey@redhat.com>
4884
4885 * target-delegates.c: Rebuild.
4886 * target.c (update_current_target): Don't inherit or default
4887 to_terminal_init.
4888 * target.h (struct target_ops) <to_terminal_init>: Use
4889 TARGET_DEFAULT_IGNORE.
4890
77cdffe9
TT
48912014-02-19 Tom Tromey <tromey@redhat.com>
4892
4893 * target-delegates.c: Rebuild.
4894 * target.c (update_current_target): Don't inherit or default
4895 to_can_accel_watchpoint_condition.
4896 * target.h (struct target_ops)
4897 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
4898
d03655e4
TT
48992014-02-19 Tom Tromey <tromey@redhat.com>
4900
4901 * target-delegates.c: Rebuild.
4902 * target.c (update_current_target): Don't inherit or default
4903 to_region_ok_for_hw_watchpoint.
4904 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4905 Use TARGET_DEFAULT_FUNC.
4906
65f160a9
TT
49072014-02-19 Tom Tromey <tromey@redhat.com>
4908
4909 * target-delegates.c: Rebuild.
4910 * target.c (update_current_target): Don't inherit or default
4911 to_watchpoint_addr_within_range.
4912 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
4913 Use TARGET_DEFAULT_FUNC.
4914
61dd109f
TT
49152014-02-19 Tom Tromey <tromey@redhat.com>
4916
4917 * target-delegates.c: Rebuild.
4918 * target.c (update_current_target): Don't inherit or default
4919 to_remove_watchpoint.
4920 * target.h (struct target_ops) <to_remove_watchpoint>: Use
4921 TARGET_DEFAULT_NORETURN.
4922
016facd4
TT
49232014-02-19 Tom Tromey <tromey@redhat.com>
4924
4925 * target-delegates.c: Rebuild.
4926 * target.c (update_current_target): Don't inherit or default
4927 to_insert_watchpoint.
4928 * target.h (struct target_ops) <to_insert_watchpoint>: Use
4929 TARGET_DEFAULT_RETURN.
4930
418dabac
TT
49312014-02-19 Tom Tromey <tromey@redhat.com>
4932
4933 * target-delegates.c: Rebuild.
4934 * target.c (update_current_target): Don't inherit or default
4935 to_remove_hw_breakpoint.
4936 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
4937 TARGET_DEFAULT_RETURN.
4938
61b371f9
TT
49392014-02-19 Tom Tromey <tromey@redhat.com>
4940
4941 * target-delegates.c: Rebuild.
4942 * target.c (update_current_target): Don't inherit or default
4943 to_insert_hw_breakpoint.
4944 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
4945 TARGET_DEFAULT_RETURN.
4946
52b51d06
TT
49472014-02-19 Tom Tromey <tromey@redhat.com>
4948
4949 * target-delegates.c: Rebuild.
4950 * target.c (update_current_target): Don't inherit or default
4951 to_can_use_hw_breakpoint.
4952 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
4953 TARGET_DEFAULT_RETURN.
4954
f86e59b2
TT
49552014-02-19 Tom Tromey <tromey@redhat.com>
4956
4957 * target-delegates.c: Rebuild.
4958 * target.c (update_current_target): Don't inherit or default
4959 to_files_info.
4960 * target.h (struct target_ops) <to_files_info>: Use
4961 TARGET_DEFAULT_IGNORE.
4962
6c628163
TT
49632014-02-19 Tom Tromey <tromey@redhat.com>
4964
4965 * target-delegates.c: Rebuild.
4966 * target.c (update_current_target): Don't inherit or default
4967 to_store.
4968 * target.h (struct target_ops) <to_store>: Use
4969 TARGET_DEFAULT_NORETURN.
4970
bebd3233
TT
49712014-02-19 Tom Tromey <tromey@redhat.com>
4972
4973 * target-delegates.c: Rebuild.
4974 * target.c (update_current_target): Don't inherit or default
4975 to_post_attach.
4976 * target.h (struct target_ops) <to_post_attach>: Use
4977 TARGET_DEFAULT_IGNORE.
4978
a53f3625
TT
49792014-02-19 Tom Tromey <tromey@redhat.com>
4980
4981 * target-delegates.c: Rebuild.
4982 * target.c (update_current_target): Don't inherit or default
4983 to_rcmd.
4984 (default_rcmd): New function.
4985 (do_monitor_command): Unconditionally delegate.
4986 * target.h (struct target_ops) <to_rmcd>: Use
4987 TARGET_DEFAULT_FUNC.
4988
e9a29200
TT
49892014-02-19 Tom Tromey <tromey@redhat.com>
4990
4991 * target-delegates.c: Rebuild.
4992 * target.c (init_dummy_target): Don't initialize to_attach.
4993 (target_attach): Unconditionally delegate.
4994 * target.h (struct target_ops) <to_attach>: Use
4995 TARGET_DEFAULT_FUNC.
4996
09da0d0a
TT
49972014-02-19 Tom Tromey <tromey@redhat.com>
4998
4999 * target-delegates.c: Rebuild.
5000 * target.c (target_detach): Unconditionally delegate.
5001 (init_dummy_target): Don't initialize to_detach.
5002 * target.h (struct target_ops) <to_detach>: Use
5003 TARGET_DEFAULT_IGNORE.
5004
5436ff03
TT
50052014-02-19 Tom Tromey <tromey@redhat.com>
5006
5007 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5008 Add argument.
5009 (target_augmented_libraries_svr4_read): Add argument.
5010 * target.c (update_current_target): Update.
5011 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
5012 argument.
5013
f0d960ea
TT
50142014-02-19 Tom Tromey <tromey@redhat.com>
5015
5016 * target.h (struct target_ops) <to_call_history_range>: Add
5017 argument.
5018 * target.c (target_call_history_range): Add argument.
5019 * record-btrace.c (record_btrace_call_history_range): Add 'self'
5020 argument.
5021 (record_btrace_call_history_from): Update.
5022
ec0aea04
TT
50232014-02-19 Tom Tromey <tromey@redhat.com>
5024
5025 * target.h (struct target_ops) <to_call_history_from>: Add
5026 argument.
5027 * target.c (target_call_history_from): Add argument.
5028 * record-btrace.c (record_btrace_call_history_from): Add 'self'
5029 argument.
5030
5df2fcba
TT
50312014-02-19 Tom Tromey <tromey@redhat.com>
5032
5033 * target.h (struct target_ops) <to_call_history>: Add argument.
5034 * target.c (target_call_history): Add argument.
5035 * record-btrace.c (record_btrace_call_history): Add 'self'
5036 argument.
5037
4e99c6b7
TT
50382014-02-19 Tom Tromey <tromey@redhat.com>
5039
5040 * target.h (struct target_ops) <to_insn_history_range>: Add
5041 argument.
5042 * target.c (target_insn_history_range): Add argument.
5043 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
5044 argument.
5045 (record_btrace_insn_history_from): Update.
5046
9abc3ff3
TT
50472014-02-19 Tom Tromey <tromey@redhat.com>
5048
5049 * target.h (struct target_ops) <to_insn_history_from>: Add
5050 argument.
5051 * target.c (target_insn_history_from): Add argument.
5052 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
5053 argument.
5054
7a6c5609
TT
50552014-02-19 Tom Tromey <tromey@redhat.com>
5056
5057 * target.h (struct target_ops) <to_insn_history>: Add argument.
5058 * target.c (target_insn_history): Add argument.
5059 * record-btrace.c (record_btrace_insn_history): Add 'self'
5060 argument.
5061
606183ac
TT
50622014-02-19 Tom Tromey <tromey@redhat.com>
5063
5064 * target.h (struct target_ops) <to_goto_record>: Add argument.
5065 * target.c (target_goto_record): Add argument.
5066 * record-full.c (record_full_goto): Add 'self' argument.
5067 * record-btrace.c (record_btrace_goto): Add 'self' argument.
5068
307a1b91
TT
50692014-02-19 Tom Tromey <tromey@redhat.com>
5070
5071 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
5072 * target.c (target_goto_record_end): Add argument.
5073 * record-full.c (record_full_goto_end): Add 'self' argument.
5074 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
5075
08475817
TT
50762014-02-19 Tom Tromey <tromey@redhat.com>
5077
5078 * target.h (struct target_ops) <to_goto_record_begin>: Add
5079 argument.
5080 * target.c (target_goto_record_begin): Add argument.
5081 * record-full.c (record_full_goto_begin): Add 'self' argument.
5082 * record-btrace.c (record_btrace_goto_begin): Add 'self'
5083 argument.
5084
1c63c994
TT
50852014-02-19 Tom Tromey <tromey@redhat.com>
5086
5087 * target.h (struct target_ops) <to_record_is_replaying>: Add
5088 argument.
5089 * target.c (target_record_is_replaying): Add argument.
5090 * record-full.c (record_full_is_replaying): Add 'self' argument.
5091 * record-btrace.c (record_btrace_is_replaying): Add 'self'
5092 argument.
5093 (record_btrace_xfer_partial, record_btrace_store_registers)
5094 (record_btrace_prepare_to_store, record_btrace_resume)
5095 (record_btrace_wait, record_btrace_decr_pc_after_break)
5096 (record_btrace_find_new_threads, record_btrace_thread_alive):
5097 Update.
5098
d1b55219
TT
50992014-02-19 Tom Tromey <tromey@redhat.com>
5100
5101 * target.h (struct target_ops) <to_delete_record>: Add argument.
5102 * target.c (target_delete_record): Add argument.
5103 * record-full.c (record_full_delete): Add 'self' argument.
5104
1390f529
TT
51052014-02-19 Tom Tromey <tromey@redhat.com>
5106
5107 * target.h (struct target_ops) <to_save_record>: Add argument.
5108 * target.c (target_save_record): Add argument.
5109 * record-full.c (record_full_save): Add 'self' argument.
5110 (record_full_save): Add 'self' argument.
5111
630d6a4a
TT
51122014-02-19 Tom Tromey <tromey@redhat.com>
5113
5114 * target.h (struct target_ops) <to_info_record>: Add argument.
5115 * target.c (target_info_record): Add argument.
5116 * record.c (info_record_command): Add argument.
5117 * record-full.c (record_full_info): Add 'self' argument.
5118 * record-btrace.c (record_btrace_info): Add 'self' argument.
5119
c6cd7c02
TT
51202014-02-19 Tom Tromey <tromey@redhat.com>
5121
5122 * target.h (struct target_ops) <to_stop_recording>: Add argument.
5123 * target.c (target_stop_recording): Add argument.
5124 * record.c (record_stop): Add argument.
5125 * record-btrace.c (record_btrace_stop_recording): Add 'self'
5126 argument.
5127
39c49f83
TT
51282014-02-19 Tom Tromey <tromey@redhat.com>
5129
5130 * target.h (struct target_ops) <to_read_btrace>: Add argument.
5131 * target.c (struct target_ops) <to_read_btrace>: Add argument.
5132 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
5133 argument.
5134 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
5135 (_initialize_amd64_linux_nat): Use it.
5136 * i386-linux-nat.c (i386_linux_read_btrace): New function.
5137 (_initialize_i386_linux_nat): Use it.
5138
1777056d
TT
51392014-02-19 Tom Tromey <tromey@redhat.com>
5140
5141 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
5142 * target.c (target_teardown_btrace): Add argument.
5143 * remote.c (remote_teardown_btrace): Add 'self' argument.
5144 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
5145 argument.
5146 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
5147 argument.
5148
25e95349
TT
51492014-02-19 Tom Tromey <tromey@redhat.com>
5150
5151 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
5152 * target.c (target_disable_btrace): Add argument.
5153 * remote.c (remote_disable_btrace): Add 'self' argument.
5154 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
5155 argument.
5156 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
5157 argument.
5158
e3c49f88
TT
51592014-02-19 Tom Tromey <tromey@redhat.com>
5160
5161 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
5162 * target.c (target_enable_btrace): Add argument.
5163 * remote.c (remote_enable_btrace): Add 'self' argument.
5164 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
5165 argument.
5166 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
5167 argument.
5168
fe38f897
TT
51692014-02-19 Tom Tromey <tromey@redhat.com>
5170
5171 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
5172 (target_can_use_agent): Add argument.
5173 * target.c (update_current_target): Update.
5174 * remote.c (remote_can_use_agent): Add 'self' argument.
5175 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
5176
2c152180
TT
51772014-02-19 Tom Tromey <tromey@redhat.com>
5178
5179 * target.h (struct target_ops) <to_use_agent>: Add argument.
5180 (target_use_agent): Add argument.
5181 * target.c (update_current_target): Update.
5182 * remote.c (remote_use_agent): Add 'self' argument.
5183 * inf-child.c (inf_child_use_agent): Add 'self' argument.
5184
a893e81f
TT
51852014-02-19 Tom Tromey <tromey@redhat.com>
5186
5187 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
5188 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
5189 (target_traceframe_info): Add argument.
5190 * target.c (update_current_target): Update.
5191 * remote.c (remote_traceframe_info): Add 'self' argument.
5192 * ctf.c (ctf_traceframe_info): Add 'self' argument.
5193
c686c57f
TT
51942014-02-19 Tom Tromey <tromey@redhat.com>
5195
5196 * target.h (target_static_tracepoint_markers_by_strid): Add
5197 argument.
5198 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
5199 'self' argument.
5200 * target.c (update_current_target): Update.
5201 * remote.c (struct target_ops)
5202 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5203 * linux-nat.c (struct target_ops)
5204 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5205
61fc905d
TT
52062014-02-19 Tom Tromey <tromey@redhat.com>
5207
5208 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5209 Add argument.
5210 (target_static_tracepoint_marker_at): Add argument.
5211 * target.c (update_current_target): Update.
5212 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
5213 argument.
5214
c378d69d
TT
52152014-02-19 Tom Tromey <tromey@redhat.com>
5216
5217 * target.h (struct target_ops) <to_set_permissions>: Add argument.
5218 (target_set_permissions): Add argument.
5219 * target.c (update_current_target): Update.
5220 * remote.c (remote_set_permissions): Add 'self' argument.
5221 (remote_start_remote): Update.
5222
bd7ae0f5
TT
52232014-02-19 Tom Tromey <tromey@redhat.com>
5224
5225 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
5226 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
5227 (target_get_tib_address): Add argument.
5228 * target.c (update_current_target): Update.
5229 * remote.c (remote_get_tib_address): Add 'self' argument.
5230
d9e68a2c
TT
52312014-02-19 Tom Tromey <tromey@redhat.com>
5232
5233 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
5234 (target_set_trace_notes): Add argument.
5235 * target.c (update_current_target): Update.
5236 * remote.c (remote_set_trace_notes): Add 'self' argument.
5237
4da384be
TT
52382014-02-19 Tom Tromey <tromey@redhat.com>
5239
5240 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
5241 argument.
5242 (target_set_trace_buffer_size): Add argument.
5243 * target.c (update_current_target): Update.
5244 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
5245
736d5b1f
TT
52462014-02-19 Tom Tromey <tromey@redhat.com>
5247
5248 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
5249 argument.
5250 (target_set_circular_trace_buffer): Add argument.
5251 * target.c (update_current_target): Update.
5252 * remote.c (remote_set_circular_trace_buffer): Add 'self'
5253 argument.
5254
37b25738
TT
52552014-02-19 Tom Tromey <tromey@redhat.com>
5256
5257 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
5258 argument.
5259 (target_set_disconnected_tracing): Add argument.
5260 * target.c (update_current_target): Update.
5261 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
5262
0e67620a
TT
52632014-02-19 Tom Tromey <tromey@redhat.com>
5264
5265 * target.h (struct target_ops)
5266 <to_get_min_fast_tracepoint_insn_len>: Add argument.
5267 (target_get_min_fast_tracepoint_insn_len): Add argument.
5268 * target.c (update_current_target): Update.
5269 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
5270 argument.
5271
88ee6f45
TT
52722014-02-19 Tom Tromey <tromey@redhat.com>
5273
5274 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
5275 argument.
5276 (target_get_raw_trace_data): Add argument.
5277 * target.c (update_current_target): Update.
5278 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
5279
181e3713
TT
52802014-02-19 Tom Tromey <tromey@redhat.com>
5281
5282 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5283 Add argument.
5284 (target_upload_trace_state_variables): Add argument.
5285 * target.c (update_current_target): Update.
5286 * remote.c (remote_upload_trace_state_variables): Add 'self'
5287 argument.
5288 (remote_start_remote): Update.
5289
ab6617cc
TT
52902014-02-19 Tom Tromey <tromey@redhat.com>
5291
5292 * target.h (struct target_ops) <to_upload_tracepoints>: Add
5293 argument.
5294 (target_upload_tracepoints): Add argument.
5295 * target.c (update_current_target): Update.
5296 * remote.c (remote_upload_tracepoints): Add 'self' argument.
5297 (remote_start_remote): Update.
5298
dc3decaf
TT
52992014-02-19 Tom Tromey <tromey@redhat.com>
5300
5301 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
5302 (target_save_trace_data): Add argument.
5303 * target.c (update_current_target): Update.
5304 * remote.c (remote_save_trace_data): Add 'self' argument.
5305
4011015b
TT
53062014-02-19 Tom Tromey <tromey@redhat.com>
5307
5308 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
5309 argument.
5310 * target.h (struct target_ops)
5311 <to_get_trace_state_variable_value>: Add argument.
5312 (target_get_trace_state_variable_value): Add argument.
5313 * target.c (update_current_target): Update.
5314 * remote.c (remote_get_trace_state_variable_value): Add 'self'
5315 argument.
5316 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
5317
bd4c6793
TT
53182014-02-19 Tom Tromey <tromey@redhat.com>
5319
5320 * tracepoint.c (tfile_trace_find): Add 'self' argument.
5321 * target.h (struct target_ops) <to_trace_find>: Add argument.
5322 (target_trace_find): Add argument.
5323 * target.c (update_current_target): Update.
5324 * remote.c (remote_trace_find): Add 'self' argument.
5325 * ctf.c (ctf_trace_find): Add 'self' argument.
5326
74499f1b
TT
53272014-02-19 Tom Tromey <tromey@redhat.com>
5328
5329 * target.h (struct target_ops) <to_trace_stop>: Add argument.
5330 (target_trace_stop): Add argument.
5331 * target.c (update_current_target): Update.
5332 * remote.c (remote_trace_stop): Add 'self' argument.
5333
db90e85c
TT
53342014-02-19 Tom Tromey <tromey@redhat.com>
5335
5336 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
5337 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
5338 argument.
5339 (target_get_tracepoint_status): Add argument.
5340 * target.c (update_current_target): Update.
5341 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
5342
8bd200f1
TT
53432014-02-19 Tom Tromey <tromey@redhat.com>
5344
5345 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
5346 * target.h (struct target_ops) <to_get_trace_status>: Add
5347 argument.
5348 (target_get_trace_status): Add argument.
5349 * target.c (update_current_target): Update.
5350 * remote.c (remote_get_trace_status): Add 'self' argument.
5351 (remote_start_remote, remote_can_download_tracepoint): Update.
5352 * ctf.c (ctf_get_trace_status): Add 'self' argument.
5353
e2d1aae3
TT
53542014-02-19 Tom Tromey <tromey@redhat.com>
5355
5356 * target.h (struct target_ops) <to_trace_start>: Add argument.
5357 (target_trace_start): Add argument.
5358 * target.c (update_current_target): Update.
5359 * remote.c (remote_trace_start): Add 'self' argument.
5360
583f9a86
TT
53612014-02-19 Tom Tromey <tromey@redhat.com>
5362
5363 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5364 Add argument.
5365 (target_trace_set_readonly_regions): Add argument.
5366 * target.c (update_current_target): Update.
5367 * remote.c (remote_trace_set_readonly_regions): Add 'self'
5368 argument.
5369
780b049c
TT
53702014-02-19 Tom Tromey <tromey@redhat.com>
5371
5372 * target.h (struct target_ops) <to_disable_tracepoint>: Add
5373 argument.
5374 (target_disable_tracepoint): Add argument.
5375 * target.c (update_current_target): Update.
5376 * remote.c (remote_disable_tracepoint): Add 'self' argument.
5377
46670d57
TT
53782014-02-19 Tom Tromey <tromey@redhat.com>
5379
5380 * target.h (struct target_ops) <to_enable_tracepoint>: Add
5381 argument.
5382 (target_enable_tracepoint): Add argument.
5383 * target.c (update_current_target): Update.
5384 * remote.c (remote_enable_tracepoint): Add 'self' argument.
5385
559d2b81
TT
53862014-02-19 Tom Tromey <tromey@redhat.com>
5387
5388 * target.h (struct target_ops) <to_download_trace_state_variable>:
5389 Add argument.
5390 (target_download_trace_state_variable): Add argument.
5391 * target.c (update_current_target): Update.
5392 * remote.c (remote_download_trace_state_variable): Add 'self'
5393 argument.
5394
a52a8357
TT
53952014-02-19 Tom Tromey <tromey@redhat.com>
5396
5397 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
5398 argument.
5399 (target_can_download_tracepoint): Add argument.
5400 * target.c (update_current_target): Update.
5401 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
5402
548f7808
TT
54032014-02-19 Tom Tromey <tromey@redhat.com>
5404
5405 * target.h (struct target_ops) <to_download_tracepoint>: Add
5406 argument.
5407 (target_download_tracepoint): Add argument.
5408 * target.c (update_current_target): Update.
5409 * remote.c (remote_download_tracepoint): Add 'self' argument.
5410
ecae04e1
TT
54112014-02-19 Tom Tromey <tromey@redhat.com>
5412
5413 * target.h (struct target_ops) <to_trace_init>: Add argument.
5414 (target_trace_init): Add argument.
5415 * target.c (update_current_target): Update.
5416 * remote.c (remote_trace_init): Add 'self' argument.
5417
fab5aa7c
TT
54182014-02-19 Tom Tromey <tromey@redhat.com>
5419
5420 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
5421 * target.c (target_fileio_readlink): Add argument.
5422 * remote.c (remote_hostio_readlink): Add 'self' argument.
5423 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
5424
dbbca37d
TT
54252014-02-19 Tom Tromey <tromey@redhat.com>
5426
5427 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
5428 * target.c (target_fileio_unlink): Add argument.
5429 * remote.c (remote_hostio_unlink): Add 'self' argument.
5430 (remote_file_delete): Update.
5431 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
5432
df39ea25
TT
54332014-02-19 Tom Tromey <tromey@redhat.com>
5434
5435 * target.h (struct target_ops) <to_fileio_close>: Add argument.
5436 * target.c (target_fileio_close): Add argument.
5437 * remote.c (remote_hostio_close): Add 'self' argument.
5438 (remote_hostio_close_cleanup): Update.
5439 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
5440 Update.
5441 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
5442
a3be983c
TT
54432014-02-19 Tom Tromey <tromey@redhat.com>
5444
5445 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
5446 * target.c (target_fileio_pread): Add argument.
5447 * remote.c (remote_hostio_pread): Add 'self' argument.
5448 (remote_bfd_iovec_pread, remote_file_get): Update.
5449 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
5450
0d866f62
TT
54512014-02-19 Tom Tromey <tromey@redhat.com>
5452
5453 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
5454 * target.c (target_fileio_pwrite): Add argument.
5455 * remote.c (remote_hostio_pwrite): Add 'self' argument.
5456 (remote_file_put): Update.
5457 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
5458
cd897586
TT
54592014-02-19 Tom Tromey <tromey@redhat.com>
5460
5461 * target.h (struct target_ops) <to_fileio_open>: Add argument.
5462 * target.c (target_fileio_open): Add argument.
5463 * remote.c (remote_hostio_open): Add 'self' argument.
5464 (remote_bfd_iovec_open): Add 'self' argument.
5465 (remote_file_put): Add 'self' argument.
5466 (remote_file_get): Add 'self' argument.
5467 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
5468
78eff0ec
TT
54692014-02-19 Tom Tromey <tromey@redhat.com>
5470
5471 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5472 Add argument.
5473 (target_can_run_breakpoint_commands): Add argument.
5474 * target.c (update_current_target): Update.
5475 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
5476 argument.
5477 (remote_insert_breakpoint): Add 'self' argument.
5478 (remote_insert_hw_breakpoint): Add 'self' argument.
5479 (remote_can_run_breakpoint_commands): Add 'self' argument.
5480
efcc2da7
TT
54812014-02-19 Tom Tromey <tromey@redhat.com>
5482
5483 * target.h (struct target_ops)
5484 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
5485 (target_supports_evaluation_of_breakpoint_conditions): Add
5486 argument.
5487 * target.c (update_current_target): Update.
5488 * remote.c (remote_supports_cond_breakpoints): Add 'self'
5489 argument.
5490 (remote_insert_breakpoint): Add 'self' argument.
5491 (remote_insert_hw_breakpoint): Add 'self' argument.
5492 (remote_supports_cond_breakpoints): Add 'self' argument.
5493
6de37a3a
TT
54942014-02-19 Tom Tromey <tromey@redhat.com>
5495
5496 * target.h (struct target_ops) <to_supports_string_tracing>: Add
5497 argument.
5498 (target_supports_string_tracing): Add argument.
5499 * target.c (update_current_target): Update.
5500 * remote.c (remote_supports_string_tracing): Add 'self' argument.
5501
2bfc0540
TT
55022014-02-19 Tom Tromey <tromey@redhat.com>
5503
5504 * target.h (struct target_ops)
5505 <to_supports_disable_randomization>: Add argument.
5506 * target.c (find_default_supports_disable_randomization): Add
5507 argument.
5508 (target_supports_disable_randomization): Add argument.
5509 (find_default_supports_disable_randomization): Add 'self'
5510 argument.
5511 * remote.c (extended_remote_supports_disable_randomization): Add
5512 'self' argument.
5513 (remote_supports_disable_randomization): Add 'self' argument.
5514 (extended_remote_create_inferior): Update.
5515 * linux-nat.c (linux_nat_supports_disable_randomization): Add
5516 'self' argument.
5517
7d178d6a
TT
55182014-02-19 Tom Tromey <tromey@redhat.com>
5519
5520 * target.h (struct target_ops)
5521 <to_supports_enable_disable_tracepoint>: Add argument.
5522 (target_supports_enable_disable_tracepoint): Add argument.
5523 * target.c (update_current_target): Update.
5524 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
5525 argument.
5526
86ce2668
TT
55272014-02-19 Tom Tromey <tromey@redhat.com>
5528
5529 * target.h (struct target_ops) <to_supports_multi_process>: Add
5530 argument.
5531 (target_supports_multi_process): Add argument.
5532 * target.c (update_current_target): Update.
5533 * remote.c (remote_supports_multi_process): Add 'self' argument.
5534 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
5535 argument.
5536 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
5537 argument.
5538
4c612759
TT
55392014-02-19 Tom Tromey <tromey@redhat.com>
5540
5541 * target.h (struct target_ops) <to_execution_direction>: Add
5542 argument.
5543 (target_execution_direction): Add argument.
5544 * target.c (default_execution_direction): Add 'self' argument.
5545 * record-full.c (record_full_execution_direction): Add 'self'
5546 argument.
5547
19db3e69
TT
55482014-02-19 Tom Tromey <tromey@redhat.com>
5549
5550 * target.h (struct target_ops) <to_can_execute_reverse>: Add
5551 argument.
5552 (target_can_execute_reverse): Add argument.
5553 * remote.c (remote_can_execute_reverse): Add 'self' argument.
5554 * record-full.c (record_full_can_execute_reverse): Add 'self'
5555 argument.
5556 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
5557 argument.
5558
1e6b91a4
TT
55592014-02-19 Tom Tromey <tromey@redhat.com>
5560
5561 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
5562 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
5563 argument.
5564 (target_get_ada_task_ptid): Add argument.
5565 * target.c (update_current_target): Update.
5566 (default_get_ada_task_ptid): Add 'self' argument.
5567 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
5568 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
5569 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
5570 argument.
5571 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
5572 argument.
5573 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
5574 argument.
5575 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
5576 argument.
5577 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
5578 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
5579 argument.
5580
3c80fb48
TT
55812014-02-19 Tom Tromey <tromey@redhat.com>
5582
5583 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
5584 (target_goto_bookmark): Add argument.
5585 * target.c (dummy_goto_bookmark): Add 'self' argument.
5586 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
5587
dd0e2830
TT
55882014-02-19 Tom Tromey <tromey@redhat.com>
5589
5590 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
5591 (target_get_bookmark): Add argument.
5592 * target.c (dummy_get_bookmark): Add 'self' argument.
5593 * record-full.c (record_full_get_bookmark): Add 'self' argument.
5594
fc6691b2
TT
55952014-02-19 Tom Tromey <tromey@redhat.com>
5596
5597 * target.h (struct target_ops) <to_make_corefile_notes>: Add
5598 argument.
5599 (target_make_corefile_notes): Add argument.
5600 * target.c (dummy_make_corefile_notes): Add 'self' argument.
5601 * procfs.c (procfs_make_note_section): Add 'self' argument.
5602 (procfs_make_note_section): Add 'self' argument.
5603 (procfs_make_note_section): Add 'self' argument.
5604 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
5605 argument.
5606 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
5607 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
5608 * exec.c (exec_make_note_section): Add 'self' argument.
5609 (exec_make_note_section): Add 'self' argument.
5610
2e73927c
TT
56112014-02-19 Tom Tromey <tromey@redhat.com>
5612
5613 * target.h (struct target_ops) <to_find_memory_regions>: Add
5614 argument.
5615 (target_find_memory_regions): Add argument.
5616 * target.c (dummy_find_memory_regions): Add 'self' argument.
5617 * procfs.c (proc_find_memory_regions): Add 'self' argument.
5618 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
5619 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
5620 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
5621 * exec. (exec_do_find_memory_regions): New global.
5622 (exec_set_find_memory_regions): Rewrite.
5623 (exec_find_memory_regions): New function.
5624 (init_exec_ops): Use exec_find_memory_regions.
5625
2a9a2795
TT
56262014-02-19 Tom Tromey <tromey@redhat.com>
5627
5628 * target.h (struct target_ops) <to_supports_non_stop>: Add
5629 argument.
5630 * target.c (find_default_supports_non_stop): Add argument.
5631 (target_supports_non_stop): Add argument.
5632 (find_default_supports_non_stop): Add 'self' argument.
5633 * remote.c (remote_supports_non_stop): Add 'self' argument.
5634 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
5635
4ab76ea3
TT
56362014-02-19 Tom Tromey <tromey@redhat.com>
5637
5638 * target.h (struct target_ops) <to_log_command>: Add argument.
5639 (target_log_command): Add argument.
5640 * serial.h (serial_log_command): Add 'self' argument.
5641 * serial.c (serial_log_command): Add 'self' argument.
5642
8dd27370
TT
56432014-02-19 Tom Tromey <tromey@redhat.com>
5644
5645 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
5646 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
5647 argument.
5648 (target_pid_to_exec_file): Add argument.
5649 * target.c (debug_to_pid_to_exec_file): Add argument.
5650 (update_current_target): Update.
5651 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
5652 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
5653 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
5654 (linux_handle_extended_wait): Update.
5655 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
5656 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
5657 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
5658 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
5659
1aac633b
TT
56602014-02-19 Tom Tromey <tromey@redhat.com>
5661
5662 * target.h (struct target_ops) <to_rcmd>: Add argument.
5663 (target_rcmd): Add argument.
5664 * target.c (debug_to_rcmd): Add argument.
5665 (update_current_target, do_monitor_command): Update.
5666 * remote.c (remote_rcmd): Add 'self' argument.
5667 * monitor.c (monitor_rcmd): Add 'self' argument.
5668
1eab8a48
TT
56692014-02-19 Tom Tromey <tromey@redhat.com>
5670
5671 * windows-nat.c (windows_stop): Add 'self' argument.
5672 * target.h (struct target_ops) <to_stop>: Add argument.
5673 * target.c (target_stop): Add argument.
5674 (debug_to_stop): Add argument.
5675 (update_current_target): Update.
5676 * remote.c (remote_stop): Add 'self' argument.
5677 * remote-sim.c (gdbsim_stop): Add 'self' argument.
5678 (gdbsim_cntrl_c): Update.
5679 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
5680 * procfs.c (procfs_stop): Add 'self' argument.
5681 * nto-procfs.c (procfs_stop): Add 'self' argument.
5682 * monitor.c (monitor_stop): Add 'self' argument.
5683 (monitor_open): Update.
5684 * linux-nat.c (linux_nat_stop): Add argument.
5685 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
5686 * gnu-nat.c (gnu_stop): Add 'self' argument.
5687 * darwin-nat.c (darwin_stop): Add 'self' argument.
5688
503a628d
TT
56892014-02-19 Tom Tromey <tromey@redhat.com>
5690
5691 * target.h (struct target_ops) <to_thread_name>: Add argument.
5692 * target.c (target_thread_name): Add argument.
5693 (update_current_target): Update.
5694 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
5695
c15906d8
TT
56962014-02-19 Tom Tromey <tromey@redhat.com>
5697
5698 * target.h (struct target_ops) <to_extra_thread_info>: Add
5699 argument.
5700 (target_extra_thread_info): Add argument.
5701 * target.c (update_current_target): Update.
5702 * remote.c (remote_threads_extra_info): Add 'self' argument.
5703 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
5704 argument.
5705 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
5706 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
5707 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
5708 argument.
5709 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
5710 argument.
5711 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
5712 argument.
5713 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
5714 argument.
5715
daf5e9b6
TT
57162014-02-19 Tom Tromey <tromey@redhat.com>
5717
5718 * target.h (struct target_ops) <to_program_signals>: Add argument.
5719 * target.c (target_program_signals): Add argument.
5720 * remote.c (remote_program_signals): Add 'self' argument.
5721
94bedb42
TT
57222014-02-19 Tom Tromey <tromey@redhat.com>
5723
5724 * target.h (struct target_ops) <to_pass_signals>: Add argument.
5725 * target.c (target_pass_signals): Add argument.
5726 * remote.c (remote_pass_signals): Add 'self' argument.
5727 (remote_start_remote): Update.
5728 * procfs.c (procfs_pass_signals): Add 'self' argument.
5729 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
5730 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
5731 (linux_nat_create_inferior, linux_nat_attach): Update.
5732
da82bd6b
TT
57332014-02-19 Tom Tromey <tromey@redhat.com>
5734
5735 * windows-nat.c (windows_can_run): Add 'self' argument.
5736 * target.h (struct target_ops) <to_can_run>: Add argument.
5737 (target_can_run): Add argument.
5738 * target.c (debug_to_can_run): Add argument.
5739 (update_current_target): Update.
5740 * nto-procfs.c (procfs_can_run): Add 'self' argument.
5741 * inf-child.c (inf_child_can_run): Add 'self' argument.
5742 * go32-nat.c (go32_can_run): Add 'self' argument.
5743
d796e1d6
TT
57442014-02-19 Tom Tromey <tromey@redhat.com>
5745
5746 * target.h (struct target_ops) <to_has_exited>: Add argument.
5747 (target_has_exited): Add argument.
5748 * target.c (debug_to_has_exited): Add argument.
5749 (update_current_target): Update.
5750
ff214e67
TT
57512014-02-19 Tom Tromey <tromey@redhat.com>
5752
5753 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
5754 argument.
5755 (target_set_syscall_catchpoint): Add argument.
5756 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
5757 argument.
5758 * target.c (update_current_target): Update.
5759
758e29d2
TT
57602014-02-19 Tom Tromey <tromey@redhat.com>
5761
5762 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
5763 argument.
5764 (target_remove_exec_catchpoint): Add argument.
5765 * target.c (debug_to_remove_exec_catchpoint): Add argument.
5766 (update_current_target): Update.
5767 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
5768 argument.
5769
ba025e51
TT
57702014-02-19 Tom Tromey <tromey@redhat.com>
5771
5772 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
5773 argument.
5774 (target_insert_exec_catchpoint): Add argument.
5775 * target.c (debug_to_insert_exec_catchpoint): Add argument.
5776 (update_current_target): Update.
5777 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
5778 argument.
5779
e98cf0cd
TT
57802014-02-19 Tom Tromey <tromey@redhat.com>
5781
5782 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
5783 argument.
5784 (target_remove_vfork_catchpoint): Add argument.
5785 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
5786 (update_current_target): Update.
5787 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
5788 argument.
5789
3ecc7da0
TT
57902014-02-19 Tom Tromey <tromey@redhat.com>
5791
5792 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
5793 argument.
5794 (target_insert_vfork_catchpoint): Add argument.
5795 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
5796 (update_current_target): Update.
5797 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
5798 argument.
5799
973fc227
TT
58002014-02-19 Tom Tromey <tromey@redhat.com>
5801
5802 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
5803 argument.
5804 (target_remove_fork_catchpoint): Add argument.
5805 * target.c (debug_to_remove_fork_catchpoint): Add argument.
5806 (update_current_target): Update.
5807 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
5808 argument.
5809
a863b201
TT
58102014-02-19 Tom Tromey <tromey@redhat.com>
5811
5812 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
5813 argument.
5814 (target_insert_fork_catchpoint): Add argument.
5815 * target.c (debug_to_insert_fork_catchpoint): Add argument.
5816 (update_current_target): Update.
5817 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
5818 argument.
5819
2e97a79e
TT
58202014-02-19 Tom Tromey <tromey@redhat.com>
5821
5822 * target.h (struct target_ops) <to_post_startup_inferior>: Add
5823 argument.
5824 (target_post_startup_inferior): Add argument.
5825 * target.c (debug_to_post_startup_inferior): Add argument.
5826 (update_current_target): Update.
5827 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
5828 argument.
5829 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
5830 argument.
5831 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
5832 argument.
5833 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
5834 argument.
5835 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
5836 'self' argument.
5837 (super_post_startup_inferior): Likewise.
5838 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
5839 'self' argument.
5840 (super_post_startup_inferior): Likewise.
5841 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
5842 Add 'self' argument.
5843 (super_post_startup_inferior): Likewise.
5844
71a9f134
TT
58452014-02-19 Tom Tromey <tromey@redhat.com>
5846
5847 * target.h (struct target_ops) <to_load>: Add argument.
5848 * target.c (target_load): Add argument.
5849 (debug_to_load): Add argument.
5850 (update_current_target): Update.
5851 * remote.c (remote_load): Add 'self' argument.
5852 * remote-sim.c (gdbsim_load): Add 'self' argument.
5853 * remote-mips.c (mips_load): Add 'self' argument.
5854 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
5855 * monitor.c (monitor_load): Add 'self' argument.
5856 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
5857
0a4f40a2
TT
58582014-02-19 Tom Tromey <tromey@redhat.com>
5859
5860 * target.h (struct target_ops) <to_terminal_info>: Add argument.
5861 (target_terminal_info): Add argument.
5862 * target.c (debug_to_terminal_info): Add argument.
5863 (default_terminal_info): Likewise.
5864 * inflow.c (child_terminal_info): Add 'self' argument.
5865 * inferior.h (child_terminal_info): Add 'self' argument.
5866 * go32-nat.c (go32_terminal_info): Add 'self' argument.
5867
ae3bd431
TT
58682014-02-19 Tom Tromey <tromey@redhat.com>
5869
5870 * target.h (struct target_ops) <to_terminal_save_ours>: Add
5871 argument.
5872 (target_terminal_save_ours): Add argument.
5873 * target.c (debug_to_terminal_save_ours): Add argument.
5874 (update_current_target): Update.
5875 * inflow.c (terminal_save_ours): Add 'self' argument.
5876 * inferior.h (terminal_save_ours): Add 'self' argument.
5877
e3594fd1
TT
58782014-02-19 Tom Tromey <tromey@redhat.com>
5879
5880 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
5881 (target_terminal_ours): Add argument.
5882 * target.c (debug_to_terminal_ours): Add argument.
5883 (update_current_target): Update.
5884 * remote.c (remote_terminal_ours): Add 'self' argument.
5885 (remote_close): Update.
5886 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
5887 * inflow.c (terminal_ours): Add 'self' argument.
5888 * inferior.h (terminal_ours): Add 'self' argument.
5889 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
5890
2e1e1a19
TT
58912014-02-19 Pedro Alves <palves@redhat.com>
5892 Tom Tromey <tromey@redhat.com>
5893
5894 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
5895 argument.
5896 (target_terminal_ours_for_output): Add argument.
5897 * target.c (debug_to_terminal_ours_for_output): Add argument.
5898 (update_current_target): Update.
5899 * inflow.c (terminal_ours_for_output): Add 'self' argument.
5900 * inferior.h (terminal_ours_for_output): Add 'self' argument.
5901 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
5902
d2f640d4
TT
59032014-02-19 Tom Tromey <tromey@redhat.com>
5904
5905 * target.h (struct target_ops) <to_terminal_inferior>: Add
5906 argument.
5907 * target.c (target_terminal_inferior): Add argument.
5908 (update_current_target): Update.
5909 * remote.c (remote_terminal_inferior): Add 'self' argument.
5910 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
5911 * inflow.c (terminal_inferior): Add 'self' argument.
5912 * inferior.h (terminal_inferior): Add 'self' argument.
5913 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
5914 (go32_terminal_inferior): Add 'self' argument.
5915
c42bf286
TT
59162014-02-19 Tom Tromey <tromey@redhat.com>
5917
5918 * target.h (struct target_ops) <to_terminal_init>: Add argument.
5919 (target_terminal_init): Add argument.
5920 * target.c (debug_to_terminal_init): Add argument.
5921 (update_current_target): Update.
5922 * inflow.c (terminal_init_inferior): Add 'self' argument.
5923 * inferior.h (terminal_init_inferior): Add 'self' argument.
5924 * go32-nat.c (go32_terminal_init): Add 'self' argument.
5925 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
5926
c3a5ff89
TT
59272014-02-19 Tom Tromey <tromey@redhat.com>
5928
5929 * target.h (struct target_ops)
5930 <to_can_accel_watchpoint_condition>: Add argument.
5931 (target_can_accel_watchpoint_condition): Add argument.
5932 * target.c (debug_to_can_accel_watchpoint_condition): Add
5933 argument.
5934 (update_current_target): Update.
5935 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
5936 'self' argument.
5937
31568a15
TT
59382014-02-19 Tom Tromey <tromey@redhat.com>
5939
5940 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5941 Add argument.
5942 (target_region_ok_for_hw_watchpoint): Add argument.
5943 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
5944 (default_region_ok_for_hw_watchpoint): Add argument.
5945 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
5946 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
5947 argument.
5948 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
5949 argument.
5950 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
5951 argument.
5952 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
5953 'self' argument.
5954 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
5955 'self' argument.
5956 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
5957 'self' argument.
5958 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
5959 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
5960 'self' argument.
5961 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
5962 Add 'self' argument.
5963
7bb99c53
TT
59642014-02-19 Tom Tromey <tromey@redhat.com>
5965
5966 * target.h (struct target_ops) <to_insert_watchpoint>: Add
5967 argument.
5968 (target_insert_watchpoint): Add argument.
5969 * target.c (debug_to_insert_watchpoint): Add argument.
5970 (update_current_target): Update.
5971 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
5972 * remote.c (remote_insert_watchpoint): Add 'self' argument.
5973 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
5974 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
5975 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
5976 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
5977 argument.
5978 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
5979 (procfs_insert_hw_watchpoint): Add 'self' argument.
5980 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
5981 argument.
5982 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
5983 argument.
5984 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
5985 argument.
5986 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
5987 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
5988 argument.
5989 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
5990 'self' argument.
5991
11b5219a
TT
59922014-02-19 Tom Tromey <tromey@redhat.com>
5993
5994 * target.h (struct target_ops) <to_remove_watchpoint>: Add
5995 argument.
5996 (target_remove_watchpoint): Add argument.
5997 * target.c (debug_to_remove_watchpoint): Add argument.
5998 (update_current_target): Update.
5999 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
6000 * remote.c (remote_remove_watchpoint): Add 'self' argument.
6001 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
6002 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
6003 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
6004 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
6005 argument.
6006 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
6007 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
6008 argument.
6009 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
6010 argument.
6011 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
6012 argument.
6013 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
6014 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
6015 argument.
6016 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
6017 'self' argument.
6018
a64dc96c
TT
60192014-02-19 Tom Tromey <tromey@redhat.com>
6020
6021 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
6022 argument.
6023 (target_remove_hw_breakpoint): Add argument.
6024 * target.c (debug_to_remove_hw_breakpoint): Add argument.
6025 (update_current_target): Update.
6026 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
6027 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
6028 argument.
6029 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
6030 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
6031 argument.
6032 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
6033 'self' argument.
6034
23a26771
TT
60352014-02-19 Tom Tromey <tromey@redhat.com>
6036
6037 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
6038 argument.
6039 (target_insert_hw_breakpoint): Add argument.
6040 * target.c (debug_to_insert_hw_breakpoint): Add argument.
6041 (update_current_target): Update.
6042 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
6043 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
6044 argument.
6045 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
6046 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
6047 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
6048 argument.
6049 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
6050 'self' argument.
6051
5461485a
TT
60522014-02-19 Tom Tromey <tromey@redhat.com>
6053
6054 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
6055 argument.
6056 (target_can_use_hardware_watchpoint): Add argument.
6057 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
6058 (update_current_target): Update.
6059 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
6060 argument.
6061 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
6062 argument.
6063 * remote.c (remote_check_watch_resources): Add 'self' argument.
6064 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
6065 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
6066 argument.
6067 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
6068 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
6069 argument.
6070 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
6071 argument.
6072 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
6073 argument.
6074 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
6075 argument.
6076 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
6077 argument.
6078 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
6079 argument.
6080 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
6081 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
6082 argument.
6083 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
6084 'self' argument.
6085
f045800c
TT
60862014-02-19 Tom Tromey <tromey@redhat.com>
6087
6088 * target.h (struct target_ops) <to_post_attach>: Add argument.
6089 (target_post_attach): Add argument.
6090 * target.c (debug_to_post_attach): Add argument.
6091 (update_current_target): Update.
6092 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
6093 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
6094 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
6095 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
6096 * inf-child.c (inf_child_post_attach): Add 'self' argument.
6097
de90e03d
TT
60982014-02-19 Tom Tromey <tromey@redhat.com>
6099
6100 * windows-nat.c (windows_close): Add 'self' argument.
6101 * tracepoint.c (tfile_close): Add 'self' argument.
6102 * target.h (struct target_ops) <to_close>: Add argument.
6103 * target.c (target_close): Add argument.
6104 (update_current_target): Update.
6105 * remote.c (remote_close): Add 'self' argument.
6106 * remote-sim.c (gdbsim_close): Add 'self' argument.
6107 * remote-mips.c (mips_close): Add 'self' argument.
6108 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
6109 * record-full.c (record_full_close): Add 'self' argument.
6110 * record-btrace.c (record_btrace_close): Add 'self' argument.
6111 * monitor.h (monitor_close): Add 'self' argument.
6112 * monitor.c (monitor_close): Add 'self' argument.
6113 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
6114 * linux-nat.c (linux_nat_close): Add argument.
6115 * go32-nat.c (go32_close): Add 'self' argument.
6116 * exec.c (exec_close_1): Add 'self' argument.
6117 * ctf.c (ctf_close): Add 'self' argument.
6118 * corelow.c (core_close): Add 'self' argument.
6119 (core_close_cleanup): Update.
6120 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
6121 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
6122
9dd130a0
TT
61232014-02-19 Tom Tromey <tromey@redhat.com>
6124
6125 * remote.c (remote_load): New function.
6126 (init_remote_ops): Use it.
6127
46917d26
TT
61282014-02-19 Tom Tromey <tromey@redhat.com>
6129
6130 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
6131 argument.
6132 * common/linux-btrace.h (linux_supports_btrace): Update.
6133 * remote.c (remote_supports_btrace): Add "self" argument.
6134 * target-delegates.c: Rebuild.
6135 * target.c (target_supports_btrace): Remove.
6136 * target.h (struct target_ops) <to_supports_btrace>: Add
6137 target_ops argument.
6138 (target_supports_btrace): New define.
6139
6b84065d
TT
61402014-02-19 Tom Tromey <tromey@redhat.com>
6141
6142 * record-full.c (record_full_beneath_to_resume_ops)
6143 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
6144 (record_full_beneath_to_wait)
6145 (record_full_beneath_to_store_registers_ops)
6146 (record_full_beneath_to_store_registers)
6147 (record_full_beneath_to_xfer_partial_ops)
6148 (record_full_beneath_to_xfer_partial)
6149 (record_full_beneath_to_insert_breakpoint_ops)
6150 (record_full_beneath_to_insert_breakpoint)
6151 (record_full_beneath_to_remove_breakpoint_ops)
6152 (record_full_beneath_to_remove_breakpoint)
6153 (record_full_beneath_to_stopped_by_watchpoint)
6154 (record_full_beneath_to_stopped_data_address)
6155 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
6156 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
6157 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
6158 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
6159 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
6160 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
6161 (tmp_to_stopped_data_address, tmp_to_async): Remove.
6162 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
6163 (record_full_resume, record_full_wait_1)
6164 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
6165 (record_full_store_registers, record_full_xfer_partial)
6166 (record_full_insert_breakpoint, record_full_remove_breakpoint)
6167 (record_full_async, record_full_core_xfer_partial): Use target
6168 delegation.
6169 * target-delegates.c: Rebuild.
6170 * target.c (current_xfer_partial): Remove.
6171 (update_current_target): Do not INHERIT or de_fault
6172 to_insert_breakpoint, to_remove_breakpoint,
6173 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
6174 to_is_async_p, to_async. Do not set to_xfer_partial field.
6175 (default_xfer_partial): Simplify.
6176 (current_xfer_partial): Remove.
6177 (target_wait, target_resume): Simplify.
6178 (find_default_can_async_p, find_default_is_async_p): Update.
6179 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
6180 to_xfer_partial, to_stopped_by_watchpoint,
6181 to_stopped_data_address.
6182 (target_store_registers): Simplify.
6183 (forward_target_remove_breakpoint)
6184 (forward_target_insert_breakpoint): Remove.
6185 (target_remove_breakpoint, target_insert_breakpoint)
6186 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
6187 * target.h (struct target_ops) <to_resume, to_wait,
6188 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
6189 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
6190 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
6191 markup.
6192 (forward_target_remove_breakpoint)
6193 (forward_target_insert_breakpoint): Remove.
6194 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
6195 directly.
6196 (record_btrace_insert_breakpoint): Delegate directly.
6197
1101cb7b
TT
61982014-02-19 Tom Tromey <tromey@redhat.com>
6199
6200 PR build/7701:
6201 * target-delegates.c: New file.
6202 * target.c: Include target-delegates.c.
6203 (init_dummy_target): Call install_dummy_methods.
6204 (complete_target_initialization): Call install_delegators.
6205 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
6206 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
6207 * make-target-delegates: New file.
6208
8b06beed
TT
62092014-02-19 Tom Tromey <tromey@redhat.com>
6210
6211 * record.c (find_record_target): Use find_target_at.
6212 * target.c (find_target_at): New function.
6213 * target.h (find_target_at): Declare.
6214
6a109b6b
TT
62152014-02-19 Tom Tromey <tromey@redhat.com>
6216
6217 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
6218 Add 'ops' argument.
6219 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
6220 'ops' argument.
6221 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
6222 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
6223 'ops' argument.
6224 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
6225 argument.
6226 * linux-nat.c (save_sigtrap): Update.
6227 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
6228 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
6229 (linux_nat_close): Update.
6230 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
6231 argument.
6232 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
6233 argument.
6234 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
6235 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
6236 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
6237 (tmp_to_async): Add 'ops' argument.
6238 (record_full_stopped_by_watchpoint, record_full_async)
6239 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
6240 argument.
6241 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
6242 (m32r_stopped_by_watchpoint): Add 'ops' argument.
6243 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
6244 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
6245 (remote_is_async_p, remote_async): Add 'ops' argument.
6246 (remote_stopped_data_address): Update.
6247 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
6248 * target.c (update_current_target)
6249 (find_default_can_async_p, find_default_is_async_p): Update.
6250 (init_dummy_target): Update.
6251 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
6252 * target.h (struct target_ops) <to_stopped_by_watchpoint,
6253 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
6254 (target_can_async_p, target_is_async_p, target_async)
6255 (target_stopped_by_watchpoint): Update.
6256
e095146b
YQ
62572014-02-19 Yao Qi <yao@codesourcery.com>
6258
6259 PR gdb/16220
6260 * gdbarch.sh: Remove startup_gdbarch.
6261 * gdbarch.c: Regenerated.
6262 * gdbarch.h: Likewise.
6263
bc3c6b36
KB
62642014-02-17 Kevin Buettner <kevinb@redhat.com>
6265
6266 * rl78-tdep.c (rl78_g10_register_name): New function.
6267 (rl78_return_value): Add g10 support.
6268 (rl78_gdbarch_init): Register rl78_g10_register_name for the
6269 g10.
6270
98dc0167 62712014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
6272
6273 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
6274 (SUBDIR_GUILE_SRCS): Ditto.
6275 (scm-gsmob.o): Ditto.
6276
842c05cd
YQ
62772014-02-17 Yao Qi <yao@codesourcery.com>
6278
6279 * gnu-nat.c (ILL_RPC): Declare defined function.
6280
25c0bd04
YQ
62812014-02-17 Yao Qi <yao@codesourcery.com>
6282
6283 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
6284 mach_msg_type_number_t.
6285 (gnu_write_inferior): Likewise.
6286
a9a758e3
YQ
62872014-02-17 Yao Qi <yao@codesourcery.com>
6288
6289 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
6290 in format string.
6291 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
6292 (inf_validate_procs, inf_signal): Likewise.
6293 (S_exception_raise_request): Likewise.
6294 (do_mach_notify_dead_name): Likewise.
6295 (steal_exc_port): Likewise.
6296 (gnu_read_inferior): Change 'copy_count''s type to
6297 mach_msg_type_number_t.
6298 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
6299 format string.
6300
bae8023e
TS
63012014-02-16 Thomas Schwinge <thomas@codesourcery.com>
6302
c82f56d9
TS
6303 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
6304 flag. Adjust all users; in particular...
6305 (gnu_wait): ..., don't decrement its value in here...
6306 (gnu_create_inferior): ..., and instead set the flag in here,
6307 around the startup_inferior call, and call that one with
6308 START_INFERIOR_TRAPS_EXPECTED.
6309
3398af6a
TS
6310 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
6311 (ILL_RPC): ... new macro.
6312 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
6313 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
6314 (do_mach_notify_send_once, S_proc_setmsgport_reply)
6315 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
6316 functions with ILL_RPC macro.
6317 (S_proc_pid2task_reply, S_proc_task2pid_reply)
6318 (S_proc_task2proc_reply, S_proc_proc2task_reply)
6319 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
6320 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
6321 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
6322 (S_proc_getlogin_reply, S_proc_getsid_reply)
6323 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
6324 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
6325 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
6326 (S_proc_getnports_reply, S_proc_is_important_reply)
6327 (S_proc_get_code_reply): New stub functions, generated with
6328 ILL_RPC macro.
6329
d47642c9
TS
6330 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
6331 collected the type check structures.
6332
bae8023e
TS
6333 * reply_mig_hack.awk: Don't expect to see the auto keyword.
6334
8a55ffb0
DE
63352014-02-14 Doug Evans <dje@google.com>
6336
6337 * target.c (target_write_partial): Fix result type.
6338
c2853f3d
JM
63392014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
6340
6341 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
6342 the proper offsets to access fpregset_t.
6343
ac61d2db
SA
63442014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
6345
6346 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
6347 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
6348 * h8300-tdep.c (setmachinelist): Remove global.
6349 * hppa-tdep.c (hppa_sigtramp): Remove global.
6350 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
6351 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
6352 * ravenscar-thread.c (update_target_observer): Remove global.
6353 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
6354
9d2d0b8b
TT
63552014-02-12 Tom Tromey <tromey@redhat.com>
6356
6357 * common/rsp-low.c: Update comments.
6358 * common/rsp-low.h: Update comments.
6359
a7191e8b
TT
63602014-02-12 Tom Tromey <tromey@redhat.com>
6361
6362 * common/rsp-low.c (convert_ascii_to_int): Remove.
6363 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
6364
ff0e980e
TT
63652014-02-12 Tom Tromey <tromey@redhat.com>
6366
6367 * common/rsp-low.h (unhexify): Don't declare.
6368 * common/rsp-low.c (unhexify): Remove.
6369
e9371aff
TT
63702014-02-12 Tom Tromey <tromey@redhat.com>
6371
6372 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
6373 * common/rsp-low.c (convert_int_to_ascii): Remove.
6374
971dc0b8
TT
63752014-02-12 Tom Tromey <tromey@redhat.com>
6376
6377 * common/rsp-low.h (hexify): Don't declare.
6378 * common/rsp-low.c (hexify): Remove.
6379
0a822afb
TT
63802014-02-12 Tom Tromey <tromey@redhat.com>
6381
6382 * common/rsp-low.c (hexify): Never take strlen of argument.
6383
9f1b45b0
TT
63842014-02-12 Tom Tromey <tromey@redhat.com>
6385
6386 * common/rsp-low.c (bin2hex): Never take strlen of argument.
6387 * remote.c (extended_remote_run, remote_rcmd)
6388 (remote_download_trace_state_variable, remote_save_trace_data)
6389 (remote_set_trace_notes): Update.
6390 * tracepoint.c (encode_source_string, tfile_write_status)
6391 (tfile_write_uploaded_tsv): Update.
6392
9c3d6531
TT
63932014-02-12 Tom Tromey <tromey@redhat.com>
6394
6395 * tracepoint.c: Include rsp-low.h.
6396 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
6397 * remote.c: Include rsp-low.h.
6398 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
6399 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
6400 (remote_unescape_input): Move to common/rsp-low.c.
6401 * common/rsp-low.h: New file.
6402 * common/rsp-low.c: New file.
6403 * Makefile.in (SFILES): Add common/rsp-low.c.
6404 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
6405 (COMMON_OBS): Add rsp-low.o.
6406 (rsp-low.o): New target.
6407
01fd3ea5
TT
64082014-02-12 Tom Tromey <tromey@redhat.com>
6409
6410 * utils.h: Include print-utils.h.
6411 (host_address_to_string, plongest, pulongest, phex, phex_nz)
6412 (int_string, core_addr_to_string, core_addr_to_string_nz)
6413 (hex_string, hex_string_custom): Don't declare.
6414 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
6415 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
6416 (hex_string_custom, int_string, core_addr_to_string)
6417 (core_addr_to_string_nz, host_address_to_string): Move to
6418 common/print-utils.c.
6419 * common/print-utils.h: New file.
6420 * common/print-utils.c: New file
6421 * Makefile.in (SFILES): Add common/print-utils.c.
6422 (HFILES_NO_SRCDIR): Add common/print-utils.h.
6423 (COMMON_OBS): Add print-utils.o.
6424 (print-utils.o): New target.
6425
9fb50108
TT
64262014-02-12 Tom Tromey <tromey@redhat.com>
6427
6428 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
6429
0548b5db
MK
64302014-02-12 Mark Kettenis <kettenis@gnu.org>
6431
6432 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
6433
493443a4
MK
64342014-02-12 Mark Kettenis <kettenis@gnu.org>
6435
6436 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
6437 if a PT_IO ptrace request returns sucessfully but indicates that 0
6438 bytes were transferred.
6439
706d0883
PA
64402014-02-12 Pedro Alves <palves@redhat.com>
6441 Kevin Buettner <kevinb@redhat.com>
6442
6443 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
6444 TYPE_INSTANCE_FLAG_CODE_SPACE.
6445
5caa2f0b
PA
64462014-02-12 Pedro Alves <palves@redhat.com>
6447
6448 * h8300-tdep.c (pseudo_from_raw_register)
6449 (raw_from_pseudo_register): New functions.
6450 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
6451 them.
6452
76fd5f74
PA
64532014-02-12 Pedro Alves <palves@redhat.com>
6454
6455 * h8300-tdep.c (h8300_register_sim_regno): New function.
6456 (h8300_gdbarch_init): Install h8300_register_sim_regno as
6457 gdbarch_register_sim_regno hook.
6458
8f008406
SA
64592014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6460
6461 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
6462
195abc10
SA
64632014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6464
6465 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
6466
93ffa5b9
MK
64672014-02-12 Mark Kettenis <kettenis@gnu.org>
6468
6469 * obsd-tdep.h (obsd_init_abi): New prototype.
6470 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
6471 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
6472 (obsd_init_abi): New functions.
6473 * i386obsd-tdep.c: Include "obsd-tdep.h".
6474 (i386obsd_init_abi): Call obsd_init_abi.
6475 * amd64obsd-tdep.c: Include "obsd-tdep.h".
6476 (amd64obsd_init_abi): Call obsd_init_abi.
6477 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
6478 obsd-tdep.c to gdb_target_obs.
6479
49caec94
JM
64802014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
6481
6482 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
6483 double float arguments to 16-byte in the argument slots.
6484
e1402065
DE
64852014-02-11 Doug Evans <xdje42@gmail.com>
6486
6487 * configure.ac: Don't crash if pkg-config is not found and guile
6488 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
6489 in guile checks.
6490 * configure: Regenerate.
6491
edcc890f
YQ
64922014-02-11 Yao Qi <yao@codesourcery.com>
6493
6494 * aix-thread.c (aix_thread_xfer_partial): Update comments.
6495 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
6496 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
6497 * gnu-nat.c (gnu_xfer_memory): Likewise.
6498 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
6499 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6500 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6501 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6502
9b409511
YQ
65032014-02-11 Yao Qi <yao@codesourcery.com>
6504
6505 * target.h (enum target_xfer_error): Rename to ...
6506 (enum target_xfer_status): ... it. New. All users updated.
6507 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
6508 New.
6509 (TARGET_XFER_STATUS_ERROR_P): New macro.
6510 (target_xfer_error_to_string): Remove declaration.
6511 (target_xfer_status_to_string): Declare.
6512 (target_xfer_partial_ftype): Adjust it.
6513 (struct target_ops) <to_xfer_partial>: Return
6514 target_xfer_status. Add argument xfered_len. Update
6515 comments.
6516 * target.c (target_xfer_error_to_string): Rename to ...
6517 (target_xfer_status_to_string): ... it. New. All callers
6518 updated.
6519 (target_read_live_memory): Likewise. Call target_xfer_partial
6520 instead of target_read.
6521 (memory_xfer_live_readonly_partial): Return
6522 target_xfer_status. Add argument xfered_len.
6523 (raw_memory_xfer_partial): Likewise.
6524 (memory_xfer_partial_1): Likewise.
6525 (memory_xfer_partial): Likewise.
6526 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
6527 properly. Update debug message.
6528 (default_xfer_partial, current_xfer_partial): Likewise.
6529 (target_write_partial): Likewise.
6530 (target_read_partial): Likewise. All callers updated.
6531 (read_whatever_is_readable): Likewise.
6532 (target_write_with_progress): Likewise.
6533 (target_read_alloc_1): Likewise.
6534
6535 * aix-thread.c (aix_thread_xfer_partial): Likewise.
6536 * auxv.c (procfs_xfer_auxv): Likewise.
6537 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
6538 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6539 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6540 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
6541 * corefile.c (read_memory): Adjust.
6542 * corelow.c (core_xfer_partial): Likewise.
6543 * ctf.c (ctf_xfer_partial): Likewise.
6544 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
6545 updated.
6546 (darwin_xfer_partial): Likewise.
6547 * exec.c (section_table_xfer_memory_partial): Likewise. All
6548 callers updated.
6549 (exec_xfer_partial): Likewise.
6550 * exec.h (section_table_xfer_memory_partial): Update
6551 declaration.
6552 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
6553 negative.
6554 (gnu_xfer_partial): Likewise.
6555 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
6556 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
6557 (ia64_hpux_xfer_solib_got): Likewise.
6558 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
6559 type of 'partial_len' to ULONGEST.
6560 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
6561 * linux-nat.c (linux_xfer_siginfo ): Likewise.
6562 (linux_nat_xfer_partial): Likewise.
6563 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
6564 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
6565 * monitor.c (monitor_xfer_memory): Likewise.
6566 (monitor_xfer_partial): Likewise.
6567 * procfs.c (procfs_xfer_partial): Likewise.
6568 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6569 * record-full.c (record_full_xfer_partial): Likewise.
6570 (record_full_core_xfer_partial): Likewise.
6571 * remote-sim.c (gdbsim_xfer_memory): Likewise.
6572 (gdbsim_xfer_partial): Likewise.
6573 * remote.c (remote_write_bytes_aux): Likewise. All callers
6574 updated.
6575 (remote_write_bytes, remote_read_bytes): Likewise. All
6576 callers updated.
6577 (remote_flash_erase): Likewise. All callers updated.
6578 (remote_write_qxfer): Likewise. All callers updated.
6579 (remote_read_qxfer): Likewise. All callers updated.
6580 (remote_xfer_partial): Likewise.
6581 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6582 (rs6000_xfer_shared_libraries): Likewise.
6583 * sol-thread.c (sol_thread_xfer_partial): Likewise.
6584 (sol_thread_xfer_partial): Likewise.
6585 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6586 (sparc_xfer_partial): Likewise.
6587 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
6588 updated.
6589 (spu_xfer_partial): Likewise.
6590 * spu-multiarch.c (spu_xfer_partial): Likewise.
6591 * tracepoint.c (tfile_xfer_partial): Likewise.
6592 * windows-nat.c (windows_xfer_memory): Likewise.
6593 (windows_xfer_shared_libraries): Likewise.
6594 (windows_xfer_partial): Likewise.
6595 * valprint.c: Replace 'target_xfer_error' with
6596 'target_xfer_status' in comments.
6597
a8e63083
JB
65982014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
6599
6600 Checked in by Joel Brobecker <brobecker@adacore.com>.
6601 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
6602
e86b67d3
JB
66032014-02-11 Joel Brobecker <brobecker@adacore.com>
6604
6605 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
6606 function parameters.
6607
4b7d1f7f
WN
66082014-02-10 Will Newton <will.newton@linaro.org>
6609
6610 * elfread.c (elf_rel_plt_read): Look for a .got section if
6611 looking up .got.plt fails.
6612 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
6613 on address passed to elf_gnu_ifunc_record_cache.
6614 (elf_gnu_ifunc_resolve_addr): Likewise.
6615 (elf_gnu_ifunc_resolver_return_stop): Likewise.
6616
961842b2
JM
66172014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
6618
6619 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
6620 (X_RETTURN): New macro.
6621 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
6622
6623 * sparc64-tdep.c (sparc64_init_abi): Hook
6624 sparc_in_function_epilogue_p.
6625
3f03e7b1
GB
66262014-02-10 Gary Benson <gbenson@redhat.com>
6627
6628 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6629 Rename name_matcher to symbol_matcher.
6630
96f861ef
GB
66312014-02-10 Gary Benson <gbenson@redhat.com>
6632
6633 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6634 Use expand_symtabs_file_matcher_ftype and
6635 expand_symtabs_symbol_matcher_ftype.
6636
ee01b665
JB
66372014-02-10 Joel Brobecker <brobecker@adacore.com>
6638
6639 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
6640 (struct ada_symbol_cache): New.
6641 (ada_free_symbol_cache): Forward declare.
6642 (struct ada_pspace_data): New.
6643 (ada_pspace_data_handle): New static global.
6644 (get_ada_pspace_data, ada_pspace_data_cleanup)
6645 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
6646 (cache_space, cache): Delete, now folded inside struct
6647 ada_pspace_data.
6648 (ada_get_symbol_cache): New function.
6649 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
6650 implementation.
6651 (_initialize_ada_language): Remove initialization of cache_space.
6652 Move call to observer_attach_inferior_exit up, grouping it
6653 with the other observer registrations inside this function.
6654 Rename command to be more general. Add call to
6655 register_program_space_data_with_cleanup.
6656
143adbbf
JB
66572014-02-10 Joel Brobecker <brobecker@adacore.com>
6658
6659 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
6660 ada_new_objfile_observer.
6661 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
6662 (_initialize_tasks): Update uses of ada_new_objfile_observer
6663 and ada_tasks_normal_stop_observer.
6664
aa4fb036
JB
66652014-02-10 Joel Brobecker <brobecker@adacore.com>
6666
6667 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
6668 returned by the 'Length attribute to integer.
6669
9dee8cc6
JB
66702014-02-10 Joel Brobecker <brobecker@adacore.com>
6671
6672 * ada-lang.c (_initialize_ada_language): Initialize
6673 cache_space obstack.
6674
3d9434b5
JB
66752014-02-10 Joel Brobecker <brobecker@adacore.com>
6676
6677 * ada-lang.c (HASH_SIZE): New macro.
6678 (struct cache_entry): New type.
6679 (cache_space, cache): New static globals.
6680 (ada_clear_symbol_cache, find_entry): New functions.
6681 (lookup_cached_symbol, cache_symbol): Implement.
6682 (ada_new_objfile_observer, ada_free_objfile_observer): New.
6683 (_initialize_ada_language): Attach ada_new_objfile_observer
6684 and ada_free_objfile_observer.
6685
f0c5f9b2
JB
66862014-02-10 Joel Brobecker <brobecker@adacore.com>
6687
6688 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
6689 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
6690 struct block * parameter.
6691 (ada_lookup_symbol_list_worker): Constify local variable "block".
6692 Remove cast which is no longer necessary.
6693
ed3ef339
DE
66942014-02-10 Doug Evans <xdje42@gmail.com>
6695
6696 Add Guile as an extension language.
6697 * NEWS: Mention Guile scripting.
6698 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
6699 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
6700 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
6701 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
6702 (CLIBS): Add GUILE_LIBS.
6703 (install-guile): New rule.
6704 (guile.o): New rule.
6705 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
6706 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
6707 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
6708 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
6709 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
6710 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
6711 (scm-type.o, scm-utils.o, scm-value.o): New rules.
6712 * configure.ac: New option --with-guile.
6713 * configure: Regenerate.
6714 * config.in: Regenerate.
6715 * auto-load.c: Remove #include "python/python.h". Add #include
6716 "gdb/section-scripts.h".
6717 (source_section_scripts): Handle Guile scripts.
6718 (_initialize_auto_load): Add name of Guile objfile script to
6719 scripts-directory help text.
6720 * breakpoint.c (condition_command): Tweak comment to include Scheme.
6721 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
6722 (struct breakpoint): New member scm_bp_object.
6723 * defs.h (enum command_control_type): New value guile_control.
6724 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
6725 "extension.h".
6726 (show_user): Update comment.
6727 (_initialize_cli_cmds): Update help text for "show user". Update help
6728 text for max-user-call-depth.
6729 * cli/cli-script.c: Remove #include "python/python.h". Add #include
6730 "extension.h".
6731 (multi_line_command_p): Add guile_control.
6732 (print_command_lines): Handle guile_control.
6733 (execute_control_command, recurse_read_control_structure): Ditto.
6734 (process_next_line): Recognize "guile" commands.
6735 * disasm.c (gdb_disassemble_info): Make non-static.
6736 * disasm.h: #include "dis-asm.h".
6737 (struct gdbarch): Add forward decl.
6738 (gdb_disassemble_info): Declare.
6739 * extension.c: #include "guile/guile.h".
6740 (extension_languages): Add guile.
6741 (get_ext_lang_defn): Handle EXT_LANG_GDB.
6742 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
6743 * gdbtypes.c (get_unsigned_type_max): New function.
6744 (get_signed_type_minmax): New function.
6745 * gdbtypes.h (get_unsigned_type_max): Declare.
6746 (get_signed_type_minmax): Declare.
6747 * guile/README: New file.
6748 * guile/guile-internal.h: New file.
6749 * guile/guile.c: New file.
6750 * guile/guile.h: New file.
6751 * guile/scm-arch.c: New file.
6752 * guile/scm-auto-load.c: New file.
6753 * guile/scm-block.c: New file.
6754 * guile/scm-breakpoint.c: New file.
6755 * guile/scm-disasm.c: New file.
6756 * guile/scm-exception.c: New file.
6757 * guile/scm-frame.c: New file.
6758 * guile/scm-gsmob.c: New file.
6759 * guile/scm-iterator.c: New file.
6760 * guile/scm-lazy-string.c: New file.
6761 * guile/scm-math.c: New file.
6762 * guile/scm-objfile.c: New file.
6763 * guile/scm-ports.c: New file.
6764 * guile/scm-pretty-print.c: New file.
6765 * guile/scm-safe-call.c: New file.
6766 * guile/scm-string.c: New file.
6767 * guile/scm-symbol.c: New file.
6768 * guile/scm-symtab.c: New file.
6769 * guile/scm-type.c: New file.
6770 * guile/scm-utils.c: New file.
6771 * guile/scm-value.c: New file.
6772 * guile/lib/gdb.scm: New file.
6773 * guile/lib/gdb/boot.scm: New file.
6774 * guile/lib/gdb/experimental.scm: New file.
6775 * guile/lib/gdb/init.scm: New file.
6776 * guile/lib/gdb/iterator.scm: New file.
6777 * guile/lib/gdb/printing.scm: New file.
6778 * guile/lib/gdb/types.scm: New file.
6779 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
6780 (VPATH): Add $(GUILE_SRCDIR).
6781 (GUILE_DIR): New variable.
6782 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
6783 (all): Add stamp-guile dependency.
6784 (stamp-guile): New rule.
6785 (clean-guile, install-guile, uninstall-guile): New rules.
6786 (install-only): Add install-guile dependency.
6787 (uninstall): Add uninstall-guile dependency.
6788 (clean): Add clean-guile dependency.
6789
ac020ec5
DE
67902014-02-09 Doug Evans <xdje42@gmail.com>
6791
6792 Revert this patch (which I approved, mea culpa).
6793
6794 2014-02-08 Mark Kettenis <kettenis@gnu.org>
6795
6796 * Makefile.in (all-lib): Remove.
6797 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
6798
2a081c59
JK
67992014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6800
6801 Fix Python stack corruption.
6802 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
6803 gdb_py_longest.
6804
0a6bd22d
MK
68052014-02-08 Mark Kettenis <kettenis@gnu.org>
6806
6807 * Makefile.in (all-lib): Remove.
6808 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
6809
1a860409
DE
68102014-02-07 Doug Evans <dje@google.com>
6811
6812 * extension-priv.h (extension_language_script_ops): Add comment.
6813 (extension_language_ops): Add comment.
caf5a491 6814 (active_ext_lang_state): Fix typo in comment.
1a860409 6815
d137e6dc
PA
68162014-02-07 Pedro Alves <palves@redhat.com>
6817
0dcb32c3 6818 PR breakpoints/16292
d137e6dc
PA
6819 * infrun.c (handle_signal_stop) <signal arrives while stepping
6820 over a breakpoint>: Switch back to the stepping thread.
6821
ce6d0892
YQ
68222014-02-07 Yao Qi <yao@codesourcery.com>
6823
6824 * target.c (target_xfer_partial): Return zero if LEN is zero.
6825
2ed4b548
YQ
68262014-02-07 Yao Qi <yao@codesourcery.com>
6827
6828 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
6829 (ld_so_xfer_auxv): Likewise.
6830 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6831 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6832 * corelow.c (core_xfer_partial): Likewise.
6833 * ctf.c (ctf_xfer_partial): Likewise.
6834 * darwin-nat.c (darwin_read_dyld_info): Likewise.
6835 (darwin_xfer_partial): Likewise.
6836 * exec.c (exec_xfer_partial): Likewise.
6837 * gnu-nat.c (gnu_xfer_partial): Likewise.
6838 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
6839 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
6840 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
6841 * linux-nat.c (linux_xfer_siginfo): Likewise.
6842 (linux_proc_xfer_spu): Likewise.
6843 * procfs.c (procfs_xfer_partial): Likewise.
6844 * record-full.c (record_full_xfer_partial): Likewise.
6845 (record_full_core_xfer_partial): Likewise.
6846 * remote-sim.c (gdbsim_xfer_partial): Likewise.
6847 * remote.c (remote_write_qxfer): Likewise.
6848 (remote_write_qxfer, remote_read_qxfer): Likewise.
6849 (remote_xfer_partial): Likewise.
6850 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6851 (rs6000_xfer_shared_libraries): Likewise.
6852 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6853 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6854 (spu_xfer_partial): Likewise.
6855 * target.c (memory_xfer_partial_1): Likewise.
6856 * tracepoint.c (tfile_xfer_partial): Likewise.
6857 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
6858 (windows_xfer_partial): Likewise.
6859
c09f20e4
YQ
68602014-02-07 Yao Qi <yao@codesourcery.com>
6861
6862 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
6863 comments.
6864 (core_xfer_shared_libraries_aix): Likewise.
6865 * gdbarch.c, gdbarch.h: Regenerated.
6866 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
6867 ULONGEST. Change 'len_avail' type to ULONGEST.
6868 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
6869 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
6870 declaration.
6871 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
6872
8635b3bf
YQ
68732014-02-07 Yao Qi <yao@codesourcery.com>
6874
6875 * corefile.c (memory_error): Get 'exception' from ERR and pass
6876 'exception' to throw_error.
6877
6dddc817
DE
68782014-02-06 Doug Evans <xdje42@gmail.com>
6879
6880 * configure.ac (libpython checking): Remove all but python.o from
6881 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
6882 * configure: Regenerate.
6883
6884 * Makefile.in (SFILES): Add extension.c.
6885 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
6886 (COMMON_OBS): Add extension.o.
6887 * extension.h: New file.
6888 * extension-priv.h: New file.
6889 * extension.c: New file.
6890
6891 * python/python-internal.h: #include "extension.h".
6892 (gdbpy_auto_load_enabled): Declare.
6893 (gdbpy_apply_val_pretty_printer): Declare.
6894 (gdbpy_apply_frame_filter): Declare.
6895 (gdbpy_preserve_values): Declare.
6896 (gdbpy_breakpoint_cond_says_stop): Declare.
6897 (gdbpy_breakpoint_has_cond): Declare.
6898 (void source_python_script_for_objfile): Delete.
6899 * python/python.c: #include "extension-priv.h".
6900 Delete inclusion of "observer.h".
6901 (extension_language_python): Moved here and renamed from
6902 script_language_python in py-auto-load.c.
6903 Redefined to be of type extension_language_defn.
6904 (python_extension_script_ops): New global.
6905 (python_extension_ops): New global.
6906 (struct python_env): New member previous_active.
6907 (restore_python_env): Call restore_active_ext_lang.
6908 (ensure_python_env): Call set_active_ext_lang.
6909 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
6910 New arg extlang.
6911 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
6912 New arg extlang.
6913 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
6914 New arg extlang.
6915 (gdbpy_eval_from_control_command): Renamed from
6916 eval_python_from_control_command, made static. New arg extlang.
6917 (gdbpy_source_script) Renamed from source_python_script, made static.
6918 New arg extlang.
6919 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
6920 result to int. New arg extlang.
6921 (gdbpy_source_objfile_script): Renamed from
6922 source_python_script_for_objfile, made static. New arg extlang.
6923 (gdbpy_start_type_printers): Renamed from start_type_printers, made
6924 static. New args extlang, extlang_printers. Change result type to
6925 "void".
6926 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
6927 static. New arg extlang. Rename arg printers to extlang_printers
6928 and change type to ext_lang_type_printers *.
6929 (gdbpy_free_type_printers): Renamed from free_type_printers, made
6930 static. Replace argument arg with extlang, extlang_printers.
6931 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
6932 (!HAVE_PYTHON, source_python_script): Delete.
6933 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
6934 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
6935 (!HAVE_PYTHON, start_type_printers): Delete.
6936 (!HAVE_PYTHON, apply_type_printers): Delete.
6937 (!HAVE_PYTHON, free_type_printers): Delete.
6938 (_initialize_python): Delete call to observer_attach_before_prompt.
6939 (finalize_python): Set/restore active extension language.
6940 (gdbpy_finish_initialization) Renamed from
6941 finish_python_initialization, made static. New arg extlang.
6942 (gdbpy_initialized): New function.
6943 * python/python.h: #include "extension.h". Delete #include
6944 "value.h", "mi/mi-cmds.h".
6945 (extension_language_python): Declare.
6946 (GDBPY_AUTO_FILE_NAME): Delete.
6947 (enum py_bt_status): Moved to extension.h and renamed to
6948 ext_lang_bt_status.
6949 (enum frame_filter_flags): Moved to extension.h.
6950 (enum py_frame_args): Moved to extension.h and renamed to
6951 ext_lang_frame_args.
6952 (finish_python_initialization): Delete.
6953 (eval_python_from_control_command): Delete.
6954 (source_python_script): Delete.
6955 (apply_val_pretty_printer): Delete.
6956 (apply_frame_filter): Delete.
6957 (preserve_python_values): Delete.
6958 (gdbpy_script_language_defn): Delete.
6959 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
6960 (start_type_printers, apply_type_printers, free_type_printers): Delete.
6961
6962 * auto-load.c: #include "extension.h".
6963 (GDB_AUTO_FILE_NAME): Delete.
6964 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
6965 (script_language_gdb): Delete, moved to extension.c and renamed to
6966 extension_language_gdb.
6967 (source_gdb_script_for_objfile): Delete.
6968 (auto_load_pspace_info): New member unsupported_script_warning_printed.
6969 (loaded_script): Change type of language member to
6970 struct extension_language_defn *.
6971 (init_loaded_scripts_info): Initialize
6972 unsupported_script_warning_printed.
6973 (maybe_add_script): Make static. Change type of language arg to
6974 struct extension_language_defn *.
6975 (clear_section_scripts): Reset unsupported_script_warning_printed.
6976 (auto_load_objfile_script_1): Rewrite to use extension language API.
6977 (auto_load_objfile_script): Make public. Remove support-compiled-in
6978 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
6979 (source_section_scripts): Rewrite to use extension language API.
6980 (load_auto_scripts_for_objfile): Rewrite to use
6981 auto_load_scripts_for_objfile.
6982 (collect_matching_scripts_data): Change type of language member to
6983 struct extension_language_defn *.
6984 (auto_load_info_scripts): Change type of language arg to
6985 struct extension_language_defn *.
6986 (unsupported_script_warning_print): New function.
6987 (script_not_found_warning_print): Make static.
6988 (_initialize_auto_load): Rewrite construction of scripts-directory
6989 help.
6990 * auto-load.h (struct objfile): Add forward decl.
6991 (struct script_language): Delete.
6992 (struct auto_load_pspace_info): Add forward decl.
6993 (struct extension_language_defn): Add forward decl.
6994 (maybe_add_script): Delete.
6995 (auto_load_objfile_script): Declare.
6996 (script_not_found_warning_print): Delete.
6997 (auto_load_info_scripts): Update prototype.
6998 (auto_load_gdb_scripts_enabled): Declare.
6999 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
7000 auto_load_python_scripts_enabled and made public.
7001 (script_language_python): Delete, moved to python.c.
7002 (gdbpy_script_language_defn): Delete.
7003 (info_auto_load_python_scripts): Update to use
7004 extension_language_python.
7005
7006 * breakpoint.c (condition_command): Replace call to
7007 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
7008 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
7009 with call to breakpoint_ext_lang_cond_says_stop.
7010 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
7011 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
7012 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
7013 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
7014 New arg slang.
7015 (local_setattro): Print name of extension language with existing
7016 stop condition.
7017
7018 * valprint.c (val_print, value_print): Update to call
7019 apply_ext_lang_val_pretty_printer.
7020 * cp-valprint.c (cp_print_value): Update call to
7021 apply_ext_lang_val_pretty_printer.
7022 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
7023 (gdbpy_apply_val_pretty_printer): Renamed from
7024 apply_val_pretty_printer. New arg extlang.
7025 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
7026
7027 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
7028 extension language API.
7029 * cli/cli-script.c (execute_control_command): Update to call
7030 eval_ext_lang_from_control_command.
7031
7032 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
7033 enum ext_lang_bt_status values. Update call to
7034 apply_ext_lang_frame_filter.
7035 (mi_cmd_stack_list_locals): Ditto.
7036 (mi_cmd_stack_list_args): Ditto.
7037 (mi_cmd_stack_list_variables): Ditto.
7038 * mi/mi-main.c: Delete #include "python/python-internal.h".
7039 Add #include "extension.h".
7040 (mi_cmd_list_features): Replace reference to python internal variable
7041 gdb_python_initialized with call to ext_lang_initialized_p.
7042
7043 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
7044 Update to use enum ext_lang_frame_args. Update to call
7045 apply_ext_lang_frame_filter.
7046 * python/py-framefilter.c (extract_sym): Update to use enum
7047 ext_lang_bt_status.
7048 (extract_value, py_print_type, py_print_value): Ditto.
7049 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
7050 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
7051 (py_print_frame): Ditto.
7052 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
7053 New arg extlang. Update to use enum ext_lang_bt_status.
7054
7055 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
7056 finish_python_initialization. Replace with call to
7057 finish_ext_lang_initialization.
7058
7059 * typeprint.c (do_free_global_table): Update to call
7060 free_ext_lang_type_printers.
7061 (create_global_typedef_table): Update to call
7062 start_ext_lang_type_printers.
7063 (find_global_typedef): Update to call apply_ext_lang_type_printers.
7064 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
7065 (type_print_options): Change type of global_printers from "void *"
7066 to "struct ext_lang_type_printers *".
7067
7068 * value.c (preserve_values): Update to call preserve_ext_lang_values.
7069 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
7070 (gdbpy_preserve_values): Renamed from preserve_python_values.
7071 New arg extlang.
7072 (!HAVE_PYTHON, preserve_python_values): Delete.
7073
7074 * utils.c (quit_flag): Delete, moved to extension.c.
7075 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
7076 extension.c.
7077
7078 * eval.c: Delete #include "python/python.h".
7079 * main.c: Delete #include "python/python.h".
7080
7081 * defs.h: Update comment.
7082
6af79985
JB
70832014-02-06 Joel Brobecker <brobecker@adacore.com>
7084
7085 GDB 7.7 released.
7086
12c5175d
MK
70872014-02-05 Mark Kettenis <kettenis@gnu.org>
7088
7089 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
7090 defined.
7091
8dc5b319
YQ
70922014-02-05 Yao Qi <yao@codesourcery.com>
7093
7094 * remote.c (remote_pass_signals): Remove local 'buf' and use
7095 rs->buf.
7096 (remote_program_signals): Likewise.
7097
de7b2893
YQ
70982014-02-05 Yao Qi <yao@codesourcery.com>
7099
7100 * ctf.c: Include "inferior.h" and "gdbthread.h".
7101 (CTF_PID): A new macro.
7102 (ctf_open): Call inferior_appeared and add_thread_silent.
7103 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
7104 (ctf_thread_alive): New function.
7105 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
7106
66d032ac
YQ
71072014-02-05 Yao Qi <yao@codesourcery.com>
7108
7109 Revert this patch:
7110
7111 2013-05-24 Yao Qi <yao@codesourcery.com>
7112
7113 * tracepoint.c (TFILE_PID): Remove.
7114 (tfile_open): Don't add thread and inferior.
7115 (tfile_close): Don't set 'inferior_ptid'. Don't call
7116 exit_inferior_silent.
7117 (tfile_thread_alive): Remove.
7118 (init_tfile_ops): Don't set field 'to_thread_alive' of
7119 tfile_ops.
7120
f4ccffad
CE
71212014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
7122
7123 * remote.c (remote_start_remote): Call remote_check_symbols even
7124 if only symbol-file (not file) has been given.
7125
591a12a1
UW
71262014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
7127
7128 * gdbarch.sh (skip_entrypoint): New callback.
7129 * gdbarch.c, gdbarch.h: Regenerate.
7130 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
7131 * infrun.c (fill_in_stop_func): Likewise.
7132 * ppc-linux-tdep.c: Include "elf/ppc64.h".
7133 (ppc_elfv2_elf_make_msymbol_special): New function.
7134 (ppc_elfv2_skip_entrypoint): Likewise.
7135 (ppc_linux_init_abi): Install them for ELFv2.
7136
cc0e89c5
UW
71372014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
7138
7139 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
7140 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
7141 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
7142 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
7143 structures returned in GPRs.
7144
52f548e4
UW
71452014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
7146
7147 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
7148 offset to the stack parameter list for the ELFv2 ABI.
7149
d4094b6a
UW
71502014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
7151
7152 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
7153 set_gdbarch_convert_from_func_ptr_addr and
7154 set_gdbarch_elf_make_msymbol_special for ELFv1.
7155 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
7156 function descriptors on ELFv1.
7157 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
7158 set up r12 at function entry.
7159
cd453cd0
UW
71602014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
7161
7162 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
7163 (struct gdbarch_tdep): New member elf_abi.
7164
7165 * rs6000-tdep.c: Include "elf/ppc64.h".
7166 (rs6000_gdbarch_init): Detect ELF ABI version.
7167
0ff3e01f
UW
71682014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
7169
7170 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
7171 within a register pair holding a DFP 128-bit value on little-endian.
7172 (ppc64_sysv_abi_return_value_base): Likewise.
7173 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
7174 (dfp_pseudo_register_write): Likewise.
7175
5b757e5d
UW
71762014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
7177
7178 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
7179 offset on little-endian when passing _Decimal32.
7180 (ppc64_sysv_abi_return_value_base): Likewise for return values.
7181
084ee545
UW
71822014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
7183
7184 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
7185 of the overlapped FP register within the VSX register on little-
7186 endian platforms.
7187 (efpr_pseudo_register_write): Likewise.
7188
d63167af
UW
71892014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
7190
7191 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
7192 offset on little-endian when passing small structures.
7193
e765b44c
UW
71942014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
7195
7196 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
7197 (struct ppc64_sysv_argpos): New data structure.
7198 (ppc64_sysv_abi_push_float): Remove.
7199 (ppc64_sysv_abi_push_val): New function.
7200 (ppc64_sysv_abi_push_integer): Likewise.
7201 (ppc64_sysv_abi_push_freg): Likewise.
7202 (ppc64_sysv_abi_push_vreg): Likewise.
7203 (ppc64_sysv_abi_push_param): Likewise.
7204 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
7205 (ppc64_sysv_abi_return_value_base): New function.
7206 (ppc64_sysv_abi_return_value): Refactor to use it.
7207
36c24d95
UW
72082014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
7209
7210 * NEWS: Document new target powerpc64le-*-linux*.
7211
26fd9228
MK
72122014-02-04 Mark Kettenis <kettenis@gnu.org>
7213
7214 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
7215 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
7216 core dumps.
7217 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
7218 register set used in ELF core dumps. Add floating-point register set.
7219
c5bb7362
KB
72202014-02-03 Kevin Buettner <kevinb@redhat.com>
7221
7222 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
7223 dwarf2_to_gdb[] table using symbolic constants. Adjust
7224 penultimate entry from number representing the PC register
7225 to symbolic constant representing the MDR register. Add
7226 constant for the PC register to the end of the table.
7227
af09351e
MK
72282014-02-03 Mark Kettenis <kettenis@gnu.org>
7229
7230 * bsd-kvm.c: Include <sys/param.h>
7231
8507e05d
MK
72322014-02-03 Mark Kettenis <kettenis@gnu.org>
7233
7234 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
7235
ae56bfb8
JB
72362014-01-31 Joel Brobecker <brobecker@adacore.com>
7237
7238 * ada-lang.h (clear_ada_sym_cache): Delete.
7239
718ee4dc
UW
72402014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
7241
7242 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
7243
401e27fd
JM
72442014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
7245
7246 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
7247 the sigreturn register save area only if the syscall is
7248 sigreturn.
7249
a7c88acd
JB
72502014-01-29 Joel Brobecker <brobecker@adacore.com>
7251
7252 * valops.c (value_slice): Minor reformatting.
7253
fa0079ea
UW
72542014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
7255
7256 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
7257
c6044dd1
JB
72582014-01-28 Joel Brobecker <brobecker@adacore.com>
7259
7260 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
7261 New static globals.
7262 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
7263 (ada_ignore_descriptive_types_p): New static global.
7264 (find_parallel_type_by_descriptive_type): Return immediately
7265 if ada_ignore_descriptive_types_p is set.
7266 (_initialize_ada_language): Register new commands "maintenance
7267 set ada", "maintenance show ada", "maintenance set ada
7268 ignore-descriptive-types" and "maintenance show ada
7269 ignore-descriptive-types".
7270 * NEWS: Add entry for new "maint ada set/show
7271 ignore-descriptive-types" commands.
7272
568e808b
MM
72732014-01-27 Markus Metzger <markus.t.metzger@intel.com>
7274
7275 * record-btrace.c (record_btrace_close): Call btrace_teardown
7276 for all threads.
7277
467d141b
JB
72782014-01-27 Joel Brobecker <brobecker@adacore.com>
7279
7280 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
7281 "ui-out.h".
7282
fb151210
JB
72832014-01-27 Joel Brobecker <brobecker@adacore.com>
7284
7285 * ada-typeprint (type_is_full_subrange_of_target_type):
7286 New function.
7287 (print_range): Add parameter bounds_prefered_p. If not set,
7288 try printing range types using the name of their base type.
7289 (print_range_type): Add parameter bounds_prefered_p.
7290 Use it in call to print_range.
7291 (print_array_type, ada_print_type): Update calls to print_range
7292 and print_range_type.
7293
aba02109
JB
72942014-01-27 Joel Brobecker <brobecker@adacore.com>
7295
7296 * ada-typeprint.c (print_array_type, print_choices, print_range)
7297 (print_range_bound, print_dynamic_range_bound, print_range_type):
7298 Remove declaration.
7299
e62e21fd
JB
73002014-01-27 Joel Brobecker <brobecker@adacore.com>
7301
7302 * ada-typeprint.c (print_range): Add missing empty line
7303 after local declaration.
7304
859cf5d1
JB
73052014-01-27 Joel Brobecker <brobecker@adacore.com>
7306
7307 * ada-valprint.c (print_optional_low_bound): Get index_type's
7308 target type for as long as it is a TYPE_CODE_RANGE.
7309
25790f6f
JB
73102014-01-27 Joel Brobecker <brobecker@adacore.com>
7311
7312 * procfs.c (procfs_make_note_section): Remove assertion and
7313 associated comment.
7314
6b6aa828
YQ
73152014-01-24 Yao Qi <yao@codesourcery.com>
7316
7317 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
7318 * corelow.c (get_core_siginfo): Likewise.
7319
5d6df423
YQ
73202014-01-24 Yao Qi <yao@codesourcery.com>
7321
7322 * remote.c (remote_write_bytes_aux): Change type of 'len' to
7323 ULONGEST. Don't check 'len' is negative.
7324 (remote_write_bytes): Change type of 'len' to ULONGEST.
7325
83b645b8
TT
73262014-01-23 Tom Tromey <tromey@redhat.com>
7327
7328 PR python/16485:
7329 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
7330 Handle exception from frame.block.
7331 (FrameVars.fetch_frame_locals): Likewise.
7332
0740f8d8
TT
73332014-01-23 Tom Tromey <tromey@redhat.com>
7334
7335 PR python/16487:
7336 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
7337 on a NULL pointer. Move "goto error" to correct place.
7338
21909fa1
TT
73392014-01-23 Tom Tromey <tromey@redhat.com>
7340
7341 PR python/16491:
7342 * python/py-framefilter.c (apply_frame_filter): Call
7343 ensure_python_env after computing gdbarch.
7344
17fde6d0
YQ
73452014-01-23 Yao Qi <yao@codesourcery.com>
7346
7347 * target.c (raw_memory_xfer_partial): Change argument type
7348 from void * to gdb_byte *.
7349 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
7350
87ce2a04
DE
73512014-01-22 Doug Evans <dje@google.com>
7352
7353 New gdbserver option --debug-format=timestamp.
7354 * NEWS: Mention it.
7355
237b092b
AA
73562014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
7357
7358 * syscalls/s390x-linux.xml: New file.
7359 * syscalls/s390-linux.xml: New file.
7360 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
7361 (XML_SYSCALL_FILENAME_S390X): Likewise.
7362 (op_svc): New enum value for SVC opcode.
7363 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
7364 (s390_linux_get_syscall_number): New function.
7365 (s390_gdbarch_init): Register '*get_syscall_number' and the
7366 syscall xml file name.
7367 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7368 "s390-linux.xml" and "s390x-linux.xml".
7369 * NEWS: Announce new feature.
7370
54bff650
BS
73712014-01-22 Baruch Siach <baruch@tkos.co.il>
7372
7373 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
7374
14e361d7
PA
73752014-01-22 Pedro Alves <palves@redhat.com>
7376
7377 * xtensa-config.c: Include defs.h.
7378
46bbb3ed
JB
73792014-01-22 Joel Brobecker <brobecker@adacore.com>
7380
7381 * common/common-utils.h: Add "ARI:" comment beside __func__
7382 reference.
7383
3a80edfc
JB
73842014-01-22 Joel Brobecker <brobecker@adacore.com>
7385
7386 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
7387 documentation a bit.
7388
4869db5e
RM
73892014-01-21 Roland McGrath <mcgrathr@google.com>
7390
7391 * configure.ac: Call AM_PROG_INSTALL_STRIP.
7392 * configure: Regenerate.
7393 * aclocal.m4: Regenerate.
7394 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
7395 New substituted variables.
7396 (install-strip): New target.
7397 (INSTALL_SCRIPT): New substituted variable.
7398 (FLAGS_TO_PASS): Add it.
7399 (install-only): Use $(INSTALL_SCRIPT) rather than
7400 $(INSTALL_PROGRAM) for gcore.
7401
9ea4267d
TT
74022014-01-20 Tom Tromey <tromey@redhat.com>
7403
7404 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
7405 together.
7406
1f2bdf09
TT
74072014-01-20 Tom Tromey <tromey@redhat.com>
7408
7409 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
7410 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
7411 (deprecated_cmd_warning, complete_on_cmdlist): Update.
7412 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
7413 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
7414 (struct cmd_list_element) <flags>: Remove.
7415 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
7416 doc_allocated>: New fields.
7417 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
7418 bitfields.
7419 * maint.c (maintenance_do_deprecate): Update.
7420 * top.c (execute_command): Update.
7421
e671835b
BS
74222014-01-20 Baruch Siach <baruch@tkos.co.il>
7423
7424 * xtensa-linux-nat.c: Include asm/ptrace.h.
7425
50367cd2
IB
74262014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7427
7428 * Makefile.in (SFILES): Add d-support.c.
7429 (COMMON_OBS): Add d-support.o.
7430 * d-lang.h (d_parse_symbol): Add comment, now defined in
7431 d-support.c.
7432 * d-lang.c (parse_call_convention)
7433 (parse_attributes, parse_function_types)
7434 (parse_function_args, parse_type, parse_identifier)
7435 (call_convention_p, d_parse_symbol): Move functions to ...
7436 * d-support.c: ... New file.
7437
ec9f644a
IB
74382014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7439
7440 * d-lang.h (d_parse_symbol): Add declaration.
7441 * d-lang.c (extract_identifiers)
7442 (extract_type_info): Remove functions.
7443 (parse_call_convention, parse_attributes)
7444 (parse_function_types, parse_function_args)
7445 (parse_type, parse_identifier, call_convention_p)
7446 (d_parse_symbol): New functions.
7447 (d_demangle): Use d_parse_symbol to demangle D symbols.
7448
94b1b47e
IB
74492014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7450
7451 * d-lang.h (struct builtin_d_type): New data type.
7452 (builtin_d_type): Add declaration.
7453 * d-lang.c (d_language_arch_info, build_d_types)
7454 (builtin_d_type): New functions.
7455 (enum d_primitive_types): New data type.
7456 (d_language_defn): Change c_language_arch_info to
7457 d_language_arch_info.
7458 (d_type_data): New static variable.
7459 (_initialize_d_language): Initialize d_type_data.
7460
63778547
IB
74612014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7462
7463 * d-lang.h (d_main_name): Add declaration.
7464 * d-lang.c (d_main_name): New function.
7465 * symtab.c (find_main_name): Add call to d_main_name.
7466
3271ba66
IB
74672014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7468
7469 * d-lang.c (d_language_defn): Change macro_expansion_c to
7470 macro_expansion_no.
7471
d36b3012
IB
74722014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7473
7474 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7475
c90a6fb7
SDJ
74762014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
7477
7478 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
7479 gdb_exception" declaration.
7480 * remote.c (getpkt_or_notif_sane): Likewise.
7481
749234e5
DE
74822014-01-17 Doug Evans <dje@google.com>
7483
7484 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
7485 function, contents of dirnames_to_char_ptr_vec_append moved here.
7486 (delim_string_to_char_ptr_vec): New function.
7487 (dirnames_to_char_ptr_vec_append): Rewrite.
7488 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
7489
df049a58
DE
74902014-01-17 Doug Evans <dje@google.com>
7491
7492 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
7493 and moved here ...
7494 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
7495 #include "common-utils.h".
7496 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
7497 * common/vec.h (VEC_ASSERT_PASS): Update.
7498 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
7499 (MACH_CHECK_ERROR): Update.
7500
69f97648
SM
75012014-01-17 Simon Marchi <simon.marchi@ericsson.com>
7502
7503 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
7504 comments.
7505 * gdbarch.h: Regenerate.
7506
98b1cfdc
TT
75072014-01-16 Tom Tromey <tromey@redhat.com>
7508
7509 * value.c (struct value) <regnum>: Move earlier.
7510
77a19445
TT
75112014-01-16 Tom Tromey <tromey@redhat.com>
7512
7513 * remote.c (extended_remote_create_inferior): Rename from
7514 extended_remote_create_inferior_1. Add "ops" argument. Remove
7515 old implementation.
7516
62261490
PA
75172014-01-16 Pedro Alves <palves@redhat.com>
7518
7519 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
7520 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
7521 the backchain.
7522
4d65956b
DE
75232014-01-16 Doug Evans <dje@google.com>
7524
7525 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
7526
52834460
MM
75272014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7528
7529 * btrace.h (btrace_thread_flag): New.
7530 (struct btrace_thread_info) <flags>: New.
7531 * record-btrace.c (record_btrace_resume_thread)
7532 (record_btrace_find_thread_to_move, btrace_step_no_history)
7533 (btrace_step_stopped, record_btrace_start_replaying)
7534 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
7535 (record_btrace_find_resume_thread): New.
7536 (record_btrace_resume, record_btrace_wait): Extend.
7537 (record_btrace_can_execute_reverse): New.
7538 (record_btrace_open): Fail in non-stop mode.
7539 (record_btrace_set_replay): Split into this, ...
7540 (record_btrace_stop_replaying): ... this, ...
7541 (record_btrace_clear_histories): ... and this.
7542 (init_record_btrace_ops): Init to_can_execute_reverse.
7543 * NEWS: Announce it.
7544
118e6252
MM
75452014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7546
7547 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
7548 (forward_target_decr_pc_after_break)
7549 (target_decr_pc_after_break): New.
7550 * target.c (forward_target_decr_pc_after_break)
7551 (target_decr_pc_after_break): New.
7552 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
7553 instead of gdbarch_decr_pc_after_break.
7554 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7555 instead of gdbarch_decr_pc_after_break.
7556 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
7557 instead of gdbarch_decr_pc_after_break.
7558 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7559 instead of gdbarch_decr_pc_after_break.
7560 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
7561 instead of gdbarch_decr_pc_after_break.
7562 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
7563 instead of gdbarch_decr_pc_after_break.
7564
6e07b1d2
MM
75652014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7566
7567 * btrace.c: Include regcache.h.
7568 (btrace_add_pc): New.
7569 (btrace_enable): Call btrace_add_pc.
7570 (btrace_is_empty): New.
7571 * btrace.h (btrace_is_empty): New.
7572 * record-btrace.c (require_btrace, record_btrace_info): Call
7573 btrace_is_empty.
7574
969c39fb
MM
75752014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7576
7577 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
7578 Support delta reads.
7579 (linux_disable_btrace): Change return type.
7580 * common/linux-btrace.h (linux_read_btrace): Change parameters
7581 and return type to allow error reporting. Update users.
7582 (linux_disable_btrace): Change return type. Update users.
7583 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
7584 New.
7585 (btrace_error): New.
7586 (btrace_block) <begin>: Comment on BEGIN == 0.
7587 * btrace.c (btrace_compute_ftrace): Start from the end of
7588 the current trace.
7589 (btrace_stitch_trace, btrace_clear_history): New.
7590 (btrace_fetch): Read delta trace, return if replaying.
7591 (btrace_clear): Move clear history code to btrace_clear_history.
7592 (parse_xml_btrace): Throw an error if parsing failed.
7593 * target.h (struct target_ops) <to_read_btrace>: Change parameters
7594 and return type to allow error reporting.
7595 (target_read_btrace): Change parameters and return type to allow
7596 error reporting.
7597 * target.c (target_read_btrace): Update.
7598 * remote.c (remote_read_btrace): Support delta reads. Pass
7599 errors on.
7600 * NEWS: Announce it.
7601
0b722aec
MM
76022014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7603
7604 * record.h (record_btrace_frame_unwind)
7605 (record_btrace_tailcall_frame_unwind): New declarations.
7606 * dwarf2-frame: Include record.h
7607 (dwarf2_frame_cfa): Throw an error for btrace frames.
7608 * record-btrace.c: Include hashtab.h.
7609 (btrace_get_bfun_name): New.
7610 (btrace_call_history): Call btrace_get_bfun_name.
7611 (struct btrace_frame_cache): New.
7612 (bfcache): New.
7613 (bfcache_hash, bfcache_eq, bfcache_new): New.
7614 (btrace_get_frame_function): New.
7615 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
7616 (record_btrace_frame_this_id): Compute own id.
7617 (record_btrace_frame_prev_register): Provide PC, throw_error
7618 for all other registers.
7619 (record_btrace_frame_sniffer): Detect btrace frames.
7620 (record_btrace_tailcall_frame_sniffer): New.
7621 (record_btrace_frame_dealloc_cache): New.
7622 (record_btrace_frame_unwind): Add new functions.
7623 (record_btrace_tailcall_frame_unwind): New.
7624 (_initialize_record_btrace): Allocate cache.
7625 * btrace.c (btrace_clear): Call reinit_frame_cache.
7626 * NEWS: Announce it.
7627
066ce621
MM
76282014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7629
7630 * record-btrace.c (record_btrace_set_replay)
7631 (record_btrace_goto_begin, record_btrace_goto_end)
7632 (record_btrace_goto): New.
7633 (init_record_btrace_ops): Initialize them.
7634 * NEWS: Announce it.
7635
e2887aa3
MM
76362014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7637
7638 * record-btrace.c (record_btrace_find_new_threads)
7639 (record_btrace_thread_alive): New.
7640 (init_record_btrace_ops): Initialize to_find_new_threads and
7641 to_thread_alive.
7642
b2f4cfde
MM
76432014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7644
7645 * record-btrace.c (record_btrace_resume): New.
7646 (record_btrace_wait): New.
7647 (init_record_btrace_ops): Initialize to_wait and to_resume.
7648
633785ff
MM
76492014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7650
7651 * record-btrace.c (record_btrace_xfer_partial)
7652 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
7653 (record_btrace_allow_memory_access): New.
7654 (init_record_btrace_ops): Initialize new methods.
7655 * target.c (raw_memory_xfer_partial): Bail out if target reports
7656 that this memory is not available.
7657
3db08215
MM
76582014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7659
7660 * target.h (target_ops) <to_insert_breakpoint>
7661 <to_remove_breakpoint>: Add target_ops parameter.
7662 (forward_target_insert_breakpoint): New.
7663 (forward_target_remove_breakpoint): New.
7664 (memory_remove_breakpoint, memory_insert_breakpoint):
7665 Add target_ops parameter.
7666 * target.c (target_insert_breakpoint): Split into this and ...
7667 (forward_target_insert_breakpoint): ... this.
7668 (target_remove_breakpoint): Split into this and ...
7669 (forward_target_remove_breakpoint): ... this.
7670 (debug_to_insert_breakpoint): Add target_ops parameter.
7671 Call forward_target_insert_breakpoint.
7672 (debug_to_remove_breakpoint): Add target_ops parameter.
7673 Call forward_target_remove_breakpoint.
7674 (update_current_target): Do not inherit or default to_insert_breakpoint
7675 and to_remove_breakpoint.
7676 * corelow.c (ignore): Add target_ops parameter.
7677 * exec.c (ignore): Add target_ops parameter.
7678 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
7679 Add target_ops parameter.
7680 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
7681 Add target_ops parameter.
7682 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
7683 Add target_ops parameter.
7684 * record-full.c (record_full_beneath_to_insert_breakpoint)
7685 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
7686 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
7687 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
7688 (record_full_core_remove_breakpoint): Add target_ops parameter.
7689 Update users.
7690 (record_full_beneath_to_insert_breakpoint_ops)
7691 (record_full_beneath_to_remove_breakpoint_ops)
7692 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
7693 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
7694 tmp_to_remove_breakpoint_ops,
7695 record_full_beneath_to_insert_breakpoint_ops, and
7696 record_full_beneath_to_remove_breakpoint_ops.
7697 * remote-m32r-sdi.c (m32r_insert_breakpoint)
7698 (m32r_remove_breakpoint): Add target_ops parameter.
7699 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
7700 Add target_ops parameter.
7701 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
7702 Add target_ops parameter.
7703
cecac1ab
MM
77042014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7705 Markus Metzger <markus.t.metzger@intel.com>
7706
7707 * record-btrace.c: Include frame-unwind.h.
7708 (record_btrace_frame_unwind_stop_reason)
7709 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
7710 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
7711 New.
7712 (init_record_btrace_ops): Install it.
7713
824344ca
MM
77142014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7715
7716 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
7717 get_prev_frame_1.
7718
32261e52
MM
77192014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7720
7721 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
7722 earlier.
7723
ea001bdc
MM
77242014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7725
7726 * frame-unwind.c: Include target.h.
7727 (frame_unwind_try_unwinder): New function with code from ...
7728 (frame_unwind_find_by_frame): ... here. New variable
7729 unwinder_from_target, call also target_get_unwinder)
7730 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
7731 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
7732 * target.h (struct target_ops): New fields to_get_unwinder and
7733 to_get_tailcall_unwinder.
7734 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
7735
1f3ef581
MM
77362014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7737
7738 * record-btrace.c (record_btrace_fetch_registers)
7739 (record_btrace_store_registers)
7740 (record_btrace_to_prepare_to_store): New.
7741 (init_record_btrace_ops): Add the above.
7742
f32dbf8c
MM
77432014-01-16 Tom Tromey <tromey@redhat.com>
7744
7745 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
7746 * target.h (struct target_ops) <to_prepare_to_store>: Add
7747 argument.
7748 (target_prepare_to_store): Add argument.
7749 * target.c (debug_to_prepare_to_store): Add argument.
7750 (update_current_target): Update.
7751 * remote.c (remote_prepare_to_store): Add 'self' argument.
7752 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
7753 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
7754 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
7755 * record-full.c (record_full_core_prepare_to_store): Add 'self'
7756 argument.
7757 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
7758 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
7759 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
7760 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
7761 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
7762
07bbe694
MM
77632014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7764
7765 * btrace.h (replay) <replay>: New.
7766 (btrace_is_replaying): New.
7767 * btrace.c (btrace_clear): Free replay iterator.
7768 (btrace_is_replaying): New.
7769 * record-btrace.c (record_btrace_is_replaying): New.
7770 (record_btrace_info): Print insn number if replaying.
7771 (record_btrace_insn_history): Start at replay position.
7772 (record_btrace_call_history): Start at replay position.
7773 (init_record_btrace_ops): Init to_record_is_replaying.
7774
0688d04e
MM
77752014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7776
7777 * record-btrace.c (record_btrace_insn_history_range): Include
7778 end.
7779 (record_btrace_insn_history_from): Adjust range.
7780 (record_btrace_call_history_range): Include
7781 end.
7782 (record_btrace_call_history_from): Adjust range.
7783 * NEWS: Announce changes.
7784
8710b709
MM
77852014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7786
7787 * record.h (enum record_print_flag)
7788 <record_print_indent_calls>: New.
7789 * record.c (get_call_history_modifiers): Recognize /c modifier.
7790 (_initialize_record): Document /c modifier.
7791 * record-btrace.c (btrace_call_history): Add btinfo parameter.
7792 Reorder fields. Optionally indent the function name. Update
7793 all users.
7794 * NEWS: Announce changes.
7795
d0fa7535
MM
77962014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7797
7798 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
7799
5de9129b
MM
78002014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7801
7802 * btrace.c (ftrace_new_function): Start counting at one.
7803 * record-btrace.c (record_btrace_info): Adjust number of calls
7804 and insns.
7805 * NEWS: Announce it.
7806
7acbe133
MM
78072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7808
7809 * record-btrace.c (btrace_call_history_insn_range): Print
7810 insn range as [begin, end].
7811
23a7fe75
MM
78122014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7813
7814 * btrace.h (struct btrace_func_link): New.
7815 (enum btrace_function_flag): New.
7816 (struct btrace_inst): Rename to ...
7817 (struct btrace_insn): ...this. Update all users.
7818 (struct btrace_func) <ibegin, iend>: Remove.
7819 (struct btrace_func_link): New.
7820 (struct btrace_func): Rename to ...
7821 (struct btrace_function): ...this. Update all users.
7822 (struct btrace_function) <segment, flow, up, insn, insn_offset)
7823 (number, level, flags>: New.
7824 (struct btrace_insn_iterator): Rename to ...
7825 (struct btrace_insn_history): ...this.
7826 Update all users.
7827 (struct btrace_insn_iterator, btrace_call_iterator): New.
7828 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
7829 (struct btrace_target_info) <begin, end, level>
7830 <insn_history, call_history>: New.
7831 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
7832 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
7833 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
7834 (btrace_call_number, btrace_call_begin, btrace_call_end)
7835 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
7836 (btrace_find_function_by_number, btrace_set_insn_history)
7837 (btrace_set_call_history): New.
7838 * btrace.c (btrace_init_insn_iterator)
7839 (btrace_init_func_iterator, compute_itrace): Remove.
7840 (ftrace_print_function_name, ftrace_print_filename)
7841 (ftrace_skip_file): Change
7842 parameter to const.
7843 (ftrace_init_func): Remove.
7844 (ftrace_debug): Use new btrace_function fields.
7845 (ftrace_function_switched): Also consider gaining and
7846 losing symbol information).
7847 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
7848 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
7849 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
7850 New.
7851 (ftrace_new_function): Move. Remove debug print.
7852 (ftrace_update_lines, ftrace_update_insns): New.
7853 (ftrace_update_function): Check for call, ret, and jump.
7854 (compute_ftrace): Renamed to ...
7855 (btrace_compute_ftrace): ...this. Rewritten to compute call
7856 stack.
7857 (btrace_fetch, btrace_clear): Updated.
7858 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
7859 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
7860 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
7861 (btrace_call_number, btrace_call_begin, btrace_call_end)
7862 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
7863 (btrace_find_function_by_number, btrace_set_insn_history)
7864 (btrace_set_call_history): New.
7865 * record-btrace.c (require_btrace): Use new btrace thread
7866 info fields.
7867 (record_btrace_info, btrace_insn_history)
7868 (record_btrace_insn_history, record_btrace_insn_history_range):
7869 Use new btrace thread info fields and new iterator.
7870 (btrace_func_history_src_line): Rename to ...
7871 (btrace_call_history_src_line): ...this. Use new btrace
7872 thread info fields.
7873 (btrace_func_history): Rename to ...
7874 (btrace_call_history): ...this. Use new btrace thread info
7875 fields and new iterator.
7876 (record_btrace_call_history, record_btrace_call_history_range):
7877 Use new btrace thread info fields and new iterator.
7878
8372a7cb
MM
78792014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7880
7881 * frame.h (frame_id_build_unavailable_stack_special): New.
7882 * frame.c (frame_id_build_unavailable_stack_special): New.
7883
c2170eef
MM
78842014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7885
7886 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
7887 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
7888 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
7889 to gdbarch.
7890 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
7891 (i386_insn_is_jump, i386_jmp_p): New.
7892 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
7893 insn_is_jump to gdbarch.
7894 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
7895 * gdbarch.h: Regenerated.
7896 * gdbarch.c: Regenerated.
7897 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
7898 (default_insn_is_jump): New.
7899 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
7900 (default_insn_is_jump): New.
7901
864089d2
MM
79022014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7903
7904 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
7905 Change to ...
7906 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
7907 (btrace_read_type) <btrace_read_new>: Change to ...
7908 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
7909
ed9edfb5
MM
79102014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7911
7912 * common/linux-btrace.c (linux_read_btrace): Free trace from
7913 previous iteration.
7914
fbcbc3fd
DE
79152014-01-15 Doug Evans <dje@google.com>
7916
7917 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
7918 uint32_t.
7919
3d548a53
TT
79202014-01-15 Tom Tromey <tromey@redhat.com>
7921
7922 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
7923 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
7924 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
7925 (set_objfile_main_name): New function.
7926 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
7927 language_of_main>: New fields.
7928 (set_objfile_main_name): Declare.
7929 * symtab.c (find_main_name): Loop over objfiles to find the main
7930 name and language.
7931 (set_main_name): Now static.
7932 (get_main_info): Add comment.
7933 * symtab.h (set_main_name): Don't declare.
7934
32ac0d11
TT
79352014-01-15 Tom Tromey <tromey@redhat.com>
7936
7937 * symtab.c (main_progspace_key): New global.
7938 (struct main_info): New.
7939 (name_of_main, language_of_main): Remove.
7940 (get_main_info, main_info_cleanup): New function.
7941 (set_main_name, main_name, main_language): Use get_main_info.
7942 (_initialize_symtab): Initialize main_progspace_key.
7943
9e6c82ad
TT
79442014-01-15 Tom Tromey <tromey@redhat.com>
7945
7946 * dbxread.c (process_one_symbol): Update.
7947 * dwarf2read.c (read_partial_die): Update.
7948 * symfile.c (set_initial_language): Call main_language.
7949 * symtab.c (language_of_main): Now static.
7950 (set_main_name): Add 'lang' parameter.
7951 (find_main_name): Update.
7952 (main_language): New function.
7953 (symtab_observer_executable_changed): Update.
7954 * symtab.h (set_main_name): Update.
7955 (language_of_main): Remove.
7956 (main_language): Declare.
7957
6ef55de7
TT
79582014-01-15 Tom Tromey <tromey@redhat.com>
7959
7960 * symfile.c (init_entry_point_info): Use new "initialized" field.
7961 Update.
7962 * objfiles.h (struct entry_point) <initialized>: New field.
7963 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
7964 (struct objfile) <ei>: ...here. Remove.
7965 * objfiles.c (entry_point_address_query): Update.
7966
53eddfa6
TT
79672014-01-15 Tom Tromey <tromey@redhat.com>
7968
7969 * objfiles.c (entry_point_address_query): Relocate entry point
7970 address.
7971 (objfile_relocate1): Do not relocate entry point address.
7972 * objfiles.h (struct entry_info) <entry_point>: Update comment.
7973 <the_bfd_section_index>: New field.
7974 * symfile.c (init_entry_point_info): Find the entry point's
7975 section.
7976
d56e56aa
TT
79772014-01-15 Tom Tromey <tromey@redhat.com>
7978
7979 * solib-frv.c (enable_break): Use entry_point_address_query.
7980
33a97bbe
OJ
79812014-01-15 Omair Javaid <omair.javaid@linaro.org>
7982
7983 * NEWS: Add note on improved process record-replay on
7984 arm*-linux* targets.
7985
c6ec2b30
OJ
79862014-01-15 Omair Javaid <omair.javaid@linaro.org>
7987
7988 * arm-tdep.c (enum arm_record_result): New enum.
7989 (arm_record_unsupported_insn): New function.
7990 (arm_record_coproc_data_proc): Removed.
7991 (thumb2_record_ld_st_multiple): New function.
7992 (thumb2_record_ld_st_dual_ex_tbb): New function.
7993 (thumb2_record_data_proc_sreg_mimm): New function.
7994 (thumb2_record_ps_dest_generic): New function.
7995 (thumb2_record_branch_misc_cntrl): New function.
7996 (thumb2_record_str_single_data): New function.
7997 (thumb2_record_ld_mem_hints): New function.
7998 (thumb2_record_ld_word): New function.
7999 (thumb2_record_lmul_lmla_div): New function.
8000 (thumb2_record_decode_insn_handler): New function.
8001 (decode_insn): Add thumb32 instruction handlers.
8002
97dfe206
OJ
80032014-01-15 Omair Javaid <omair.javaid@linaro.org>
8004
8005 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
8006 (struct arm_linux_record_tdep): Declare.
8007 (arm_canonicalize_syscall): New function.
8008 (arm_all_but_pc_registers_record): New function.
8009 (arm_linux_syscall_record): New function.
8010 (arm_linux_init_abi): Add syscall recording constructs.
8011 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
8012 decoding. (arm_record_coproc_data_proc): Update arm syscall
8013 decoding.
8014 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
8015 <arm_syscall_record>: New field.
8016 * configure.tgt (arm*-*-linux*): Add linux-record.o to
8017 gdb_target_obs.
8018
9904a494
OJ
80192014-01-15 Omair Javaid <omair.javaid@linaro.org>
8020
8021 * arm-tdep.c (thumb_record_misc): Update to use sp as base
8022 register for push instruction recording.
8023
f969241e
OJ
80242014-01-15 Omair Javaid <omair.javaid@linaro.org>
8025
8026 * arm-tdep.c (thumb_record_misc): Update to correct logical
8027 error while recording ldm, ldmia and pop instructions.
8028
bfbbec00
OJ
80292014-01-15 Omair Javaid <omair.javaid@linaro.org>
8030
8031 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
8032
e40adcc9
PA
80332014-01-15 Pedro Alves <palves@redhat.com>
8034
8035 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
8036 (go32_resume, go32_fetch_registers, store_register)
8037 (go32_store_registers, go32_prepare_to_store)
8038 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
8039 (go32_create_inferior, go32_can_run, go32_terminal_init)
8040 (go32_terminal_inferior, go32_terminal_ours): Delete forward
8041 declarations.
8042
b0a16e66
TT
80432014-01-15 Tom Tromey <tromey@redhat.com>
8044
8045 * target.h (async_callback_ftype): New typedef.
8046 (struct target_ops) <to_async>: Use it.
8047
bf7105a4
JB
80482014-01-15 Joel Brobecker <brobecker@adacore.com>
8049
8050 * python/py-value.c (get_field_type): Remove unnecessary curly
8051 braces for single-statement if block.
8052
a8f35c2e
JB
80532014-01-15 Joel Brobecker <brobecker@adacore.com>
8054
8055 * python/py-type.c (convert_field): Add missing empty line
8056 after declarations.
8057
bb4142cf
DE
80582014-01-14 Doug Evans <dje@google.com>
8059
8060 * symfile.h (expand_symtabs_matching): Renamed from
8061 expand_partial_symbol_names. Update prototype.
8062 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8063 * symfile.c (expand_symtabs_matching): Renamed from
8064 expand_partial_symbol_names. New args file_matcher, kind.
8065 Rename arg fun to symbol_matcher.
8066 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8067 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
8068 ada_expand_partial_symbol_name.
8069 (ada_make_symbol_completion_list): Update to call
8070 expand_symtabs_matching.
8071 (ada_add_global_exceptions): Call expand_symtabs_matching.
8072 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
8073 call map_symbol_filenames.
8074 * symtab.c (sources_info): Update to call map_symbol_filenames.
8075 (search_symbols): Call expand_symtabs_matching.
8076 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
8077 (default_make_symbol_completion_list_break_on): Update to call
8078 expand_symtabs_matching.
8079 (make_source_files_completion_list): Update to call
8080 map_symbol_filenames.
8081
206f2a57
DE
80822014-01-14 Doug Evans <dje@google.com>
8083
8084 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
8085 (expand_symtabs_symbol_matcher_ftype): New typedef.
8086 (quick_symbol_functions.expand_symtabs_matching): Update to use.
8087 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8088 * symfile.c (expand_partial_symbol_names): Update to use
8089 expand_symtabs_symbol_matcher_ftype.
8090 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
8091 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8092 Arg name_matcher renamed to symbol_matcher.
8093 * psymtab.c (recursively_search_psymtabs): Update to use
8094 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
8095 sym_matcher.
8096 (expand_symtabs_matching_via_partial): Update to use
8097 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8098 Arg name_matcher renamed to symbol_matcher.
8099
540c2971
DE
81002014-01-14 Doug Evans <dje@google.com>
8101
8102 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
8103 (map_partial_symbol_filenames): Ditto.
8104 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
8105 (map_partial_symbol_filenames): Ditto.
8106 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
8107 (map_partial_symbol_filenames): Ditto.
8108 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
8109 (map_partial_symbol_filenames): Ditto.
8110 * symtab.c: Delete #include "psymtab.h".
8111
8213266a
PA
81122014-01-14 Pedro Alves <palves@redhat.com>
8113 Tom Tromey <tromey@redhat.com>
8114
8115 * infrun.c (use_displaced_stepping): Use find_record_target
8116 instead of RECORD_IS_USED.
8117 (adjust_pc_after_break): Use record_full_is_used instead of
8118 RECORD_IS_USED.
8119 * record-btrace.c (record_btrace_open): Call record_preopen
8120 instead of checking RECORD_IS_USED.
8121 * record-full.c (record_full_shortname)
8122 (record_full_core_shortname): New globals.
8123 (record_full_is_used): New function.
8124 (find_full_open): Call record_preopen instead of checking
8125 RECORD_IS_USED.
8126 (init_record_full_ops): Set the target's shortname to
8127 record_full_shortname.
8128 (init_record_full_core_ops): Set the target's shortname to
8129 record_full_core_shortname.
8130 * record-full.h (record_full_is_used): Declare.
8131 * record.c (find_record_target): Make extern.
8132 (record_preopen): New function.
8133 * record.h (RECORD_IS_USED): Delete macro.
8134 (find_record_target, record_preopen): Declare functions.
8135
7ec1862d
YQ
81362014-01-14 Yao Qi <yao@codesourcery.com>
8137
8138 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
8139 'len''s type to ULONGEST.
8140 (core_xfer_shared_libraries_aix): Likewise.
8141 * gdbarch.c, gdbarch.h: Regenerated.
8142 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
8143 Change type of 'len' to ULONGEST.
8144 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8145 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
8146
dea80a27
YQ
81472014-01-14 Yao Qi <yao@codesourcery.com>
8148
8149 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
8150 type of 'len' to ULONGEST.
8151 (linux_xfer_osdata_processgroups): Likewise.
8152 (linux_xfer_osdata_threads): Likewise.
8153 (linux_xfer_osdata_fds): Likewise.
8154 (linux_xfer_osdata_isockets): Likewise.
8155 (linux_xfer_osdata_shm): Likewise.
8156 (linux_xfer_osdata_sem): Likewise.
8157 (linux_xfer_osdata_msg): Likewise.
8158 (linux_common_xfer_osdata): Likewise.
8159 (struct osdata_type) <getter>: Likewise.
8160 * common/linux-osdata.h (linux_common_xfer_osdata): Update
8161 the declaration.
8162
b55e14c7
YQ
81632014-01-14 Yao Qi <yao@codesourcery.com>
8164
8165 * target.h (target_xfer_partial_ftype): Update.
8166 (struct target_ops) <to_xfer_partial>: Change 'len' type to
8167 ULONGEST.
8168 * aix-thread.c (aix_thread_xfer_partial): Change type of
8169 argument 'len' to ULONGEST.
8170 * auxv.c (procfs_xfer_auxv): Likewise.
8171 (ld_so_xfer_auxv): Likewise.
8172 (memory_xfer_auxv): Likewise.
8173 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8174 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8175 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8176 * corelow.c (core_xfer_partial): Likewise.
8177 * ctf.c (ctf_xfer_partial): Likewise.
8178 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
8179 '%u'.
8180 (darwin_read_dyld_info): Likewise.
8181 (darwin_xfer_partial): Likewise.
8182 * exec.c (section_table_xfer_memory_partial): Likewise.
8183 (exec_xfer_partial): Likewise.
8184 * exec.h (section_table_xfer_memory_partial): Update
8185 declaration.
8186 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
8187 instead of plongest.
8188 (gnu_xfer_partial): Likewise.
8189 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
8190 (ia64_hpux_xfer_solib_got): Likewise.
8191 (ia64_hpux_xfer_partial): Likewise.
8192 * ia64-linux-nat.c (ia64_linux_xfer_partial):
8193 * inf-ptrace.c (inf_ptrace_xfer_partial):
8194 * inf-ttrace.c (inf_ttrace_xfer_partial):
8195 * linux-nat.c (linux_xfer_siginfo): Likewise.
8196 (linux_nat_xfer_partial): Likewise.
8197 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
8198 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
8199 * monitor.c (monitor_xfer_memory): Likewise.
8200 (monitor_xfer_partial): Likewise.
8201 * procfs.c (procfs_xfer_partial): Likewise.
8202 * record-full.c (record_full_xfer_partial): Likewise.
8203 (record_full_core_xfer_partial): Likewise.
8204 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
8205 instead of plongest.
8206 (gdbsim_xfer_partial): Likewise.
8207 * remote.c (remote_xfer_partial): Likewise.
8208 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8209 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8210 declaration.
8211 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8212 (rs6000_xfer_shared_libraries): Likewise.
8213 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8214 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8215 (sparc_xfer_partial): Likewise.
8216 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8217 (spu_xfer_partial): Likewise.
8218 * spu-multiarch.c (spu_xfer_partial): Likewise.
8219 * target.c (target_read_live_memory): Likewise.
8220 (memory_xfer_live_readonly_partial): Likewise.
8221 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
8222 (target_xfer_partial, default_xfer_partial): Likewise.
8223 (current_xfer_partial): Likewise.
8224 * tracepoint.c (tfile_xfer_partial): Likewise.
8225 * windows-nat.c (windows_xfer_memory): Likewise. Call
8226 pulongest instead of plongest.
8227 (windows_xfer_partial): Likewise.
8228 (windows_xfer_shared_libraries): Likewise.
8229
05804640
YQ
82302014-01-14 Yao Qi <yao@codesourcery.com>
8231
8232 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
8233 target_xfer_partial_ftype.
8234
b5b08fb4
SC
82352014-01-13 Siva Chandra Reddy <sivachandra@google.com>
8236
8237 PR python/15464
8238 PR python/16113
8239 * valops.c (value_struct_elt_bitpos): New function
8240 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
8241 object to 'None' if the field name is an empty string ("").
8242 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
8243 attribute to look for a field when 'name' is 'None'.
8244 (get_field_type): New function
8245
13aaf454
DE
82462014-01-13 Doug Evans <dje@google.com>
8247
8248 PR symtab/16426
8249 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
8250 (try_open_dwop_file): Ditto.
8251 * gdb_bfd.c: #include "vec.h".
8252 (bfdp): New typedef.
8253 (struct gdb_bfd_data): New member included_bfds.
8254 (gdb_bfd_unref): Unref all included bfds.
8255 (gdb_bfd_record_inclusion): New function.
8256 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
8257
c2cec97c
TT
82582014-01-13 Tom Tromey <tromey@redhat.com>
8259
8260 * gdbcore.h (deprecated_core_resize_section_table): Remove.
8261
78e5999d
TT
82622014-01-13 Tom Tromey <tromey@redhat.com>
8263
8264 * defs.h (use_windows): Remove.
8265 * gdb.c (main): Update.
8266 * main.c (captured_main, gdb_main): Update.
8267 * main.h (struct captured_main_args) <use_windows>: Remove.
8268 * top.c (use_windows): Remove.
8269
f2052bbe
TT
82702014-01-13 Tom Tromey <tromey@redhat.com>
8271
8272 * defs.h (deprecated_flush_hook): Remove.
8273
fde4f8ed
JK
82742014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8275
8276 PR threads/16216
8277 * linux-thread-db.c (try_thread_db_load): Add parameter
8278 check_auto_load_safe. Move here the file_is_auto_load_safe call.
8279 (try_thread_db_load_from_pdir_1): Move it there from here.
8280 (try_thread_db_load_from_sdir): Update caller.
8281 (try_thread_db_load_from_dir): Move it there from here.
8282
bdf61915
PP
82832014-01-13 Patrick Palka <patrick@parcs.ath.cx>
8284
8285 * regformats/regdat.sh: Always rewrite the register file.
8286
f71e1a8d
PA
82872014-01-13 Pedro Alves <palves@redhat.com>
8288
8289 * Makefile.in (CHECK_HEADERS): New variable.
8290 (check-headers:): New rule.
8291
42c85435
TT
82922014-01-13 Tom Tromey <tromey@redhat.com>
8293
8294 * cli/cli-setshow.c (do_set_command): Update.
8295 * defs.h (deprecated_set_hook): Remove.
8296 * top.c (deprecated_set_hook): Remove.
8297
f8de5129
PA
82982014-01-13 Pedro Alves <palves@redhat.com>
8299
8300 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
8301 the tracepoint if the PC is a pseudo-register.
8302
fc270c35
TT
83032014-01-13 Tom Tromey <tromey@redhat.com>
8304
8305 * defs.h (XCALLOC): Remove.
8306 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
8307 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
8308 * dwarf2loc.c (allocate_piece_closure): Likewise.
8309 * elfread.c (elf_symfile_segments): Likewise.
8310 (elf_symfile_segments): Likewise.
8311 * gdbtypes.c (copy_type_recursive): Likewise.
8312 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
8313 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
8314 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
8315 XCALLOC.
8316 * mt-tdep.c (mt_gdbarch_init): Likewise.
8317 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
8318 XCALLOC.
8319 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
8320 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
8321 * registry.c (registry_alloc_data): Likewise.
8322 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
8323 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8324 * serial.c (serial_fdopen_ops): Likewise.
8325 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
8326 XCALLOC.
8327 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
8328 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
8329 not XCALLOC.
8330
70ba0933
TT
83312014-01-13 Tom Tromey <tromey@redhat.com>
8332
8333 * defs.h (XMALLOC): Remove.
8334 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
8335 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8336 * cli-out.c (struct ui_out *): Likewise.
8337 * cli/cli-dump.c (add_dump_command): Likewise.
8338 (add_dump_command): Likewise.
8339 * complaints.c (get_complaints): Likewise.
8340 (find_complaint): Likewise.
8341 * dwarf2-frame.c (execute_cfa_program): Likewise.
8342 * dwarf2read.c (abbrev_table_read_table): Likewise.
8343 * gdbarch.sh: Likewise.
8344 * gdbarch.c: Rebuild.
8345 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
8346 * interps.c (interp_new): Likewise.
8347 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8348 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8349 * mi/mi-console.c (mi_console_file_new): Likewise.
8350 * mi/mi-interp.c (mi_interpreter_init): Likewise.
8351 * mi/mi-out.c (mi_out_new): Likewise.
8352 * mi/mi-parse.c (mi_parse): Likewise.
8353 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8354 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8355 * observer.c (xalloc_observer_list_node): Likewise.
8356 * regcache.c (regcache_xmalloc_1): Likewise.
8357 * reggroups.c (reggroup_new): Likewise.
8358 (_initialize_reggroup): Likewise.
8359 * registry.c (register_data_with_cleanup): Likewise.
8360 * remote.c (remote_notif_stop_alloc_reply): Likewise.
8361 * ser-base.c (serial_ttystate): Likewise.
8362 * ser-mingw.c (make_pipe_state): Likewise.
8363 * ser-pipe.c (pipe_open): Likewise.
8364 * serial.c (serial_open): Likewise.
8365 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8366 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
8367 (tui_alloc_win_info): Likewise.
8368 (tui_add_content_elements): Likewise.
8369 * tui/tui-file.c (tui_file_new): Likewise.
8370 * tui/tui-out.c (tui_out_new): Likewise.
8371 * ui-file.c (mem_file_new): Likewise.
8372 * ui-out.c (push_level): Likewise.
8373 (make_cleanup_ui_out_end): Likewise.
8374 (append_header_to_list): Likewise.
8375 (ui_out_new): Likewise.
8376 * user-regs.c (user_reg_add_builtin): Likewise.
8377
41bf6aca
TT
83782014-01-13 Tom Tromey <tromey@redhat.com>
8379
8380 * defs.h (XZALLOC): Remove.
8381 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
8382 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
8383 (get_ada_tasks_inferior_data): Likewise.
8384 * auto-load.c (get_auto_load_pspace_data): Likewise.
8385 * auxv.c (get_auxv_inferior_data): Likewise.
8386 * bfd-target.c (target_bfd_reopen): Likewise.
8387 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
8388 (deprecated_insert_raw_breakpoint): Likewise.
8389 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
8390 * corelow.c (core_open): Likewise.
8391 * darwin-nat.c (darwin_check_new_threads): Likewise.
8392 (darwin_attach_pid): Likewise.
8393 * dummy-frame.c (dummy_frame_push): Likewise.
8394 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
8395 * dwarf2loc.c (allocate_piece_closure): Likewise.
8396 * elfread.c (elf_symfile_segments): Likewise.
8397 * eval.c (ptrmath_type_p): Likewise.
8398 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
8399 * gdbtypes.c (alloc_type_arch): Likewise.
8400 (alloc_type_instance): Likewise.
8401 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
8402 * inf-child.c (inf_child_can_use_agent): Likewise.
8403 * inflow.c (get_inflow_inferior_data): Likewise.
8404 * infrun.c (save_infcall_suspend_state): Likewise.
8405 * jit.c (jit_reader_load): Likewise.
8406 (get_jit_objfile_data): Likewise.
8407 (get_jit_program_space_data): Likewise.
8408 (jit_object_open_impl): Likewise.
8409 (jit_symtab_open_impl): Likewise.
8410 (jit_block_open_impl): Likewise.
8411 (jit_frame_sniffer): Likewise.
8412 * linux-fork.c (add_fork): Likewise.
8413 * maint.c (make_command_stats_cleanup): Likewise.
8414 * objfiles.c (get_objfile_pspace_data): Likewise.
8415 * opencl-lang.c (struct lval_closure): Likewise.
8416 * osdata.c (osdata_start_osdata): Likewise.
8417 * progspace.c (new_address_space): Likewise.
8418 (add_program_space): Likewise.
8419 * remote-sim.c (get_sim_inferior_data): Likewise.
8420 * sh-tdep.c (sh_gdbarch_init): Likewise.
8421 * skip.c (Ignore): Likewise.
8422 (skip_delete_command): Likewise.
8423 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
8424 (library_list_start_library): Likewise.
8425 (solib_aix_current_sos): Likewise.
8426 * solib-darwin.c (get_darwin_info): Likewise.
8427 (darwin_current_sos): Likewise.
8428 * solib-dsbt.c (get_dsbt_info): Likewise.
8429 * solib-ia64-hpux.c (new_so_list): Likewise.
8430 (ia64_hpux_get_solib_linkage_addr): Likewise.
8431 * solib-spu.c (append_ocl_sos): Likewise.
8432 (spu_current_sos): Likewise.
8433 * solib-svr4.c (get_svr4_info): Likewise.
8434 (svr4_keep_data_in_core): Likewise.
8435 (library_list_start_library): Likewise.
8436 (svr4_default_sos): Likewise.
8437 (svr4_read_so_list): Likewise.
8438 * solib-target.c (library_list_start_library): Likewise.
8439 (solib_target_current_sos): Likewise.
8440 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8441 * symfile-debug.c (install_symfile_debug_logging): Likewise.
8442 * symfile.c (default_symfile_segments): Likewise.
8443 * target-descriptions.c (tdesc_data_init): Likewise.
8444 (tdesc_create_reg): Likewise.
8445 (struct tdesc_type *): Likewise.
8446 (tdesc_create_vector): Likewise.
8447 (tdesc_set_struct_size): Likewise.
8448 (struct tdesc_type *): Likewise.
8449 (tdesc_free_feature): Likewise.
8450 (tdesc_create_feature): Likewise.
8451 * windows-nat.c (windows_add_thread): Likewise.
8452 (windows_make_so): Likewise.
8453 * xml-support.c (gdb_xml_body_text): Likewise.
8454 (gdb_xml_create_parser_and_cleanup): Likewise.
8455 (xml_process_xincludes): Likewise.
8456 * xml-syscall.c (allocate_syscalls_info): Likewise.
8457 (syscall_create_syscall_desc): Likewise.
8458
5acfdbae
SDJ
84592014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
8460
8461 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
8462 function, with code from i386_stap_parse_special_token.
8463 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8464 (i386_stap_parse_special_token): Move code to the two functions
8465 above; simplify it.
8466
0000e5cc
PA
84672014-01-09 Pedro Alves <palves@redhat.com>
8468 Hui Zhu <hui@codesourcery.com>
8469
8470 PR gdb/16101
8471 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
8472 bp_err_string. Don't mark the location shlib_disabled if the
8473 error thrown wasn't a generic or memory error. Catch errors
8474 thrown while inserting breakpoints in overlayed code. Output
8475 error message of software breakpoints.
8476 * remote.c (remote_insert_breakpoint): If this breakpoint has
8477 target-side commands but this stub doesn't support Z0 packets,
8478 throw NOT_SUPPORTED_ERROR error.
8479 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
8480 * target.h (target_insert_breakpoint): Extend comment.
8481 (target_insert_hw_breakpoint): Add comment.
8482
b7ea362b
PA
84832014-01-08 Pedro Alves <palves@redhat.com>
8484
8485 * remote.c (remote_add_thread): Add threads silently if starting
8486 up.
8487 (remote_notice_new_inferior): If in all-stop, and starting up,
8488 don't call notice_new_inferior.
8489 (get_current_thread): New function, factored out from ...
8490 (add_current_inferior_and_thread): ... this. Adjust.
8491 (remote_start_remote) <all-stop>: Fetch the thread list. If we
8492 found any thread, then select the remote's current thread as GDB's
8493 current thread too.
8494
b7bba001
JB
84952014-01-08 Joel Brobecker <brobecker@adacore.com>
8496
8497 * NEWS: Create a new section for the next release branch.
8498 Rename the section of the current branch, now that it has
8499 been cut.
8500
16dfbded
JB
85012014-01-08 Joel Brobecker <brobecker@adacore.com>
8502
8503 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
8504 * version.in: Bump version to 7.7.50.DATE-cvs.
8505
22c90ac1
YQ
85062014-01-08 Yao Qi <yao@codesourcery.com>
8507
8508 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
8509 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
8510 (spu_xfer_partial): Cast 'buf' to 'const char *'.
8511
d64ad97c
YQ
85122014-01-08 Yao Qi <yao@codesourcery.com>
8513
8514 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
8515 return value of bfd_get_filename to symbol_file_add_from_bfd.
8516
f93ba80c
PM
85172014-01-08 Pierre Muller <muller@sourceware.org>
8518
8519 Fix PR16201.
8520 * coff-pe-read.c (struct read_pe_section_data): Add index field.
8521 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
8522 to prim_record_mininal_symbol_and_info.
8523 (add_pe_forwarded_sym): Use known section number of forwarded symbol
8524 in call to prim_record_minimal_symbol_and_info.
8525 (read_pe_exported_syms): Set index field of section_data.
8526
a4d9ba85
AP
85272014-01-07 Andrew Pinski <apinski@cavium.com>
8528
8529 * features/aarch64-core.xml (cpsr): Change to be 64bit.
8530 * features/aarch64.c: Regenerate.
8531
1b67eb02
AS
85322014-01-07 Andreas Schwab <schwab@linux-m68k.org>
8533
8534 * target.c (return_null): Define.
8535 (update_current_target): Use it instead of return_zero for
8536 functions that return a pointer.
8537
5e3f4fab
EBM
85382014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
8539
8540 * source.c (add_path): Fix check for duplicated paths in the previously
8541 included paths.
8542
e2616788
HK
85432014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
8544
8545 * ada-lang.c: Remove duplicated include statements.
8546 * alphabsd-nat.c: Ditto.
8547 * amd64-darwin-tdep.c: Ditto.
8548 * amd64fbsd-nat.c: Ditto.
8549 * auto-load.c: Ditto.
8550 * ax-gdb.c: Ditto.
8551 * breakpoint.c: Ditto.
8552 * dbxread.c: Ditto.
8553 * fork-child.c: Ditto.
8554 * gdb_usleep.c: Ditto.
8555 * i386-darwin-tdep.c: Ditto.
8556 * i386fbsd-nat.c: Ditto.
8557 * infcmd.c: Ditto.
8558 * inferior.c: Ditto.
8559 * jv-lang.c: Ditto.
8560 * linux-nat.c: Ditto.
8561 * linux-tdep.c: Ditto.
8562 * m68kbsd-nat.c: Ditto.
8563 * m68klinux-nat.c: Ditto.
8564 * microblaze-tdep.c: Ditto.
8565 * mips-linux-tdep.c: Ditto.
8566 * mn10300-tdep.c: Ditto.
8567 * nto-tdep.c: Ditto.
8568 * opencl-lang.c: Ditto.
8569 * osdata.c: Ditto.
8570 * printcmd.c: Ditto.
8571 * regcache.c: Ditto.
8572 * remote-m32r-sdi.c: Ditto.
8573 * remote.c: Ditto.
8574 * symfile.c: Ditto.
8575 * symtab.c: Ditto.
8576 * tilegx-linux-nat.c: Ditto.
8577 * tilegx-tdep.c: Ditto.
8578 * tracepoint.c: Ditto.
8579 * valops.c: Ditto.
8580 * vaxbsd-nat.c: Ditto.
8581 * windows-nat.c: Ditto.
8582 * xtensa-tdep.c: Ditto.
8583
bd1f7788
YQ
85842014-01-07 Yao Qi <yao@codesourcery.com>
8585
8586 * spu-linux-nat.c (_initialize_spu_nat): Declare.
8587
79301218
JB
85882014-01-07 Yao Qi <yao@codesourcery.com>
8589 Joel Brobecker <brobecker@adacore.com>
8590
8591 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
8592 (pdc_write_regs): Likewise.
8593 (fetch_regs_kernel_thread): Likewise.
8594 (store_regs_kernel_thread): Likewise.
8595
85962014-01-07 Joel Brobecker <brobecker@adacore.com>
8597
8598 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
8599 tagged type objects to their actual type.
8600
8e355c5d
JB
86012014-01-07 Joel Brobecker <brobecker@adacore.com>
8602
8603 * ada-valprint.c (print_field_values): Add "language" parameter.
8604 Update calls to print_field_values and print_variant_part.
8605 Pass new parameter "language" in call to val_print instead
8606 of "current_language". Replace call to ada_val_print by call
8607 to val_print.
8608 (print_variant_part): Add "language" parameter.
8609 (ada_val_print_struct_union): Update call to print_field_values.
8610
4fbf5aa5
JB
86112014-01-07 Joel Brobecker <brobecker@adacore.com>
8612
8613 * ada-valprint.c (ui_memcpy): Delete.
8614 (ada_print_floating): Update documentation. Add empty line
8615 between between function documentation and implementation.
8616 Delete variable "buffer". Use ui_file_xstrdup in place of
8617 ui_file_put. Minor adjustments following this change.
8618
71855601
JB
86192014-01-07 Joel Brobecker <brobecker@adacore.com>
8620
8621 * ada-valprint.c (ada_val_print_string): New function,
8622 extracted from ada_val_print_array.
8623 (ada_val_print_array): Replace extracted code by call
8624 to ada_val_print_string followed by a return. Move
8625 "else" branch to the function's top block.
8626
4eb27a30
JB
86272014-01-07 Joel Brobecker <brobecker@adacore.com>
8628
8629 * ada-valprint.c (ada_val_print_array): Move implementation
8630 down. Rename parameter "offset" and "val" into "offset_aligned"
8631 and "original_value" respectively. Add parameter "offset".
8632
34b27950
JB
86332014-01-07 Joel Brobecker <brobecker@adacore.com>
8634
8635 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
8636 re-organizing the code. Change the "???" message printed
8637 when target type is a TYPE_CODE_UNDEF into
8638 "<ref to undefined type>".
8639
079e4591
JB
86402014-01-07 Joel Brobecker <brobecker@adacore.com>
8641
8642 * ada-valprint.c (print_record): Delete, implementation inlined...
8643 (ada_val_print_struct_union): ... here. Remove call to
8644 ada_check_typedef in inlined implementation.
8645
8004dfd1
JB
86462014-01-07 Joel Brobecker <brobecker@adacore.com>
8647
8648 * ada-valprint.c (ada_val_print_gnat_array): New function,
8649 extracted from ada_val_print_1;
8650 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
8651 (ada_val_print_flt, ada_val_print_struct_union)
8652 (ada_val_print_ref): Likewise.
8653 (ada_val_print_1): Delete variables i and elttype.
8654 Replace extracted-out code by call to corresponding
8655 new functions.
8656
760a2db0
JB
86572014-01-07 Joel Brobecker <brobecker@adacore.com>
8658
8659 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
8660
3a92c861
JB
86612014-01-07 Joel Brobecker <brobecker@adacore.com>
8662
8663 * ada-valprint.c (ada_val_print_1): Replace calls to
8664 ada_val_print_1 by calls to val_print.
8665
cd1630f9
JB
86662014-01-07 Joel Brobecker <brobecker@adacore.com>
8667
8668 * ada-valprint.c (ada_val_print_1): Add parameter "language".
8669 Update calls to self accordingly. Replace calls to c_val_print
8670 by calls to val_print.
8671
bdf779a0
JB
86722014-01-07 Joel Brobecker <brobecker@adacore.com>
8673
8674 * ada-valprint.c (print_record): Delete declaration.
8675 (adjust_type_signedness, ada_val_print_1): Likewise.
8676 (ada_val_print): Move function implementation down.
8677 (print_variant_part, print_field_values, print_record):
8678 Move function implementation up.
8679
c0d48811
JB
86802014-01-07 Joel Brobecker <brobecker@adacore.com>
8681
8682 * python/py-type.c (typy_get_name): New function.
8683 (type_object_getset): Add entry for attribute "name".
8684 * NEWS: Add entry mentioning this new attribute.
8685
c26e9cbb
YQ
86862014-01-07 Yao Qi <yao@codesourcery.com>
8687
8688 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
8689 statement.
8690
0cc6f43d
YQ
86912014-01-07 Yao Qi <yao@codesourcery.com>
8692
8693 * gnu-nat.c (info_port_rights): Add qualifier const to
8694 argument args.
8695
eec03155
YQ
86962014-01-07 Yao Qi <yao@codesourcery.com>
8697
8698 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
8699
f04a82ef
YQ
87002014-01-07 Yao Qi <yao@codesourcery.com>
8701
8702 * gnu-nat.c (make_inf) Update declaration.
8703 (make_inf): Make it static.
8704 (inf_set_traced): Likewise.
8705 (inf_port_to_thread, inf_task_died_status): Likewise.
8706
d57dda0a
YQ
87072014-01-07 Yao Qi <yao@codesourcery.com>
8708
8709 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
8710
3aa8c969
YQ
87112014-01-07 Yao Qi <yao@codesourcery.com>
8712
8713 * gnu-nat.c (_initialize_gnu_nat): Declare.
8714
94123b4f
YQ
87152014-01-07 Yao Qi <yao@codesourcery.com>
8716
8717 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
8718 'enum bfd_endian'.
8719 (struct gdbarch_info) <byte_order>: Change type to
8720 'enum bfd_endian'.
8721 <byte_order_for_code>: Likewise.
8722 * gdbarch.c, gdbarch.h: Regenerated.
8723
dc81d70a
TT
87242014-01-06 Sasha Smundak <asmundak@google.com>
8725
8726 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
8727
cc2f3c35
TT
87282014-01-06 Tom Tromey <tromey@redhat.com>
8729
8730 * doublest.c (convert_doublest_to_floatformat): Use const, not
8731 CONST.
8732 * somread.c (som_symtab_read): Likewise.
8733
adcf2eed
HZ
87342014-01-07 Hui Zhu <hui@codesourcery.com>
8735
8736 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
8737 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
8738 (gdb_bfd_fopen): Ditto.
8739 (gdb_bfd_openr): Ditto.
8740 (gdb_bfd_openw): Ditto.
8741 (gdb_bfd_openr_iovec): Ditto.
8742 (gdb_bfd_fdopenr): Ditto.
8743 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
8744 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
8745 with xstrdup.
8746 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
8747 with xstrdup.
8748 * symfile-mem.c (symbol_file_add_from_memory): Removed
8749 gdb_bfd_stash_filename.
8750
50722198
DE
87512014-01-03 Doug Evans <dje@google.com>
8752
8753 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
8754 output.
8755
2fa4b862
JB
87562014-01-01 Joel Brobecker <brobecker@adacore.com>
8757
8758 Update year range in copyright notice of all files.
8759
28498c42
JB
87602014-01-01 Joel Brobecker <brobecker@adacore.com>
8761
8762 * top.c (print_gdb_version): Set copyright year to 2014.
8763
7b6e1046
JB
87642014-01-01 Joel Brobecker <brobecker@adacore.com>
8765
8766 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
8767
df96af55 8768For older changes see ChangeLog-2013.
c906108c
SS
8769\f
8770Local Variables:
8771mode: change-log
8772left-margin: 8
8773fill-column: 74
8774version-control: never
57da7796 8775coding: utf-8
c906108c 8776End: