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