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