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