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