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