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