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