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