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