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