1 2014-05-29 Pedro Alves <palves@redhat.com>
4 * linux-nat.c (linux_nat_resume_callback): Rename the second
5 parameter to 'except'. Skip LP if it points to EXCEPT.
6 (linux_nat_resume): Don't mark the event lwp as not stopped
7 before resuming sibling lwps. Instead ask
8 linux_nat_resume_callback to skip the event lwp. Mark it as not
9 stopped after actually resuming it.
10 (linux_handle_syscall_trap): Mark the lwp as not stopped after
12 (wait_lwp): Mark the lwp as stopped here.
13 (stop_wait_callback): Mark the lwp as not stopped right after
14 resuming it. Don't mark lwps as stopped here.
15 (linux_nat_filter_event): Mark the lwp as stopped earlier.
16 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
18 2014-05-29 Pedro Alves <palves@redhat.com>
21 * infrun.c (resume): Determine how much to resume depending on
22 whether the caller wanted a step, not whether we can hardware step
23 the target. Mark all threads that we intend to run as running,
24 unless we're calling an inferior function.
25 (normal_stop): If the thread is running an infcall, don't finish
27 * target.c (target_resume): Don't mark threads as running here.
29 2014-05-28 Joel Brobecker <brobecker@adacore.com>
31 * serial.c (_initialize_serial): Remove support for
32 the "set remotebaud" and "show remotebaud" commands.
33 * NEWS: Add entry documenting the removal of that command.
35 2014-05-28 Yao Qi <yao@codesourcery.com>
37 * charset.c: Fix typo in comments.
39 2014-05-27 Gary Benson <gbenson@redhat.com>
41 * utils.c (internal_vproblem): Prompt for a bug report.
43 2014-05-26 Andy Wingo <wingo@igalia.com>
45 * guile/scm-arch.c (arscm_mark_arch_smob):
46 * guile/scm-block.c (bkscm_mark_block_smob)
47 (bkscm_mark_block_syms_progress_smob):
48 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
49 * guile/scm-exception.c (exscm_mark_exception_smob):
50 * guile/scm-frame.c (frscm_mark_frame_smob):
51 * guile/scm-iterator.c (itscm_mark_iterator_smob):
52 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
53 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
54 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
55 (ppscm_mark_pretty_printer_worker_smob):
56 * guile/scm-symbol.c (syscm_mark_symbol_smob):
57 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
58 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
59 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
61 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
64 2014-05-26 Andy Wingo <wingo@igalia.com>
65 Doug Evans <xdje42@gmail.com>
67 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
68 empty_base_class. All uses updated.
69 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
70 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
72 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
73 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
74 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
75 (gdbscm_gsmob_has_property_p, add_property_name)
76 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
77 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
78 (gdb-object-has-property?, gdb-object-properties): Remove.
79 (gdb-object-kind): Renamed from gsmob-kind.
81 2014-05-26 Andy Wingo <wingo@igalia.com>
83 * configure.ac (try_guile_versions): Allow building with guile 2.2.
84 * configure: Regenerate.
86 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
88 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
90 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
92 * record-btrace.c (record_btrace_allow_memory_access): Remove.
93 (replay_memory_access_read_only, replay_memory_access_read_write)
94 (replay_memory_access_types, replay_memory_access)
95 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
96 (cmd_set_record_btrace, cmd_show_record_btrace)
97 (cmd_show_replay_memory_access): New.
98 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
99 (record_btrace_remove_breakpoint): Replace
100 record_btrace_allow_memory_access with replay_memory_access.
101 (_initialize_record_btrace): Add commands.
104 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
106 * aarch64-linux-nat.c (asm/ptrace.h): Include.
108 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
110 * MAINTAINERS (Write After Approval): Move self back from
113 2014-05-22 Pedro Alves <palves@redhat.com>
115 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
116 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
117 (disable_randomization, enum exec_direction_kind)
118 (execution_direction, stop_registers, start_remote)
119 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
120 (wait_for_inferior, normal_stop, get_last_target_status)
121 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
122 (insert_step_resume_breakpoint_at_sal)
123 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
124 (set_step_info, print_stop_event, signal_stop_state)
125 (signal_print_state, signal_pass_state, signal_stop_update)
126 (signal_print_update, signal_pass_update)
127 (update_signals_program_target, clear_exit_convenience_vars)
128 (displaced_step_dump_bytes, update_observer_mode)
129 (signal_catch_update, gdb_signal_from_command): Move
131 * infrun.h: ... to this new file.
132 * amd64-tdep.c: Include infrun.h.
133 * annotate.c: Include infrun.h.
134 * arch-utils.c: Include infrun.h.
135 * arm-linux-tdep.c: Include infrun.h.
136 * arm-tdep.c: Include infrun.h.
137 * break-catch-sig.c: Include infrun.h.
138 * breakpoint.c: Include infrun.h.
139 * common/agent.c: Include infrun.h instead of inferior.h.
140 * corelow.c: Include infrun.h.
141 * event-top.c: Include infrun.h.
142 * go32-nat.c: Include infrun.h.
143 * i386-tdep.c: Include infrun.h.
144 * inf-loop.c: Include infrun.h.
145 * infcall.c: Include infrun.h.
146 * infcmd.c: Include infrun.h.
147 * infrun.c: Include infrun.h.
148 * linux-fork.c: Include infrun.h.
149 * linux-nat.c: Include infrun.h.
150 * linux-thread-db.c: Include infrun.h.
151 * monitor.c: Include infrun.h.
152 * nto-tdep.c: Include infrun.h.
153 * procfs.c: Include infrun.h.
154 * record-btrace.c: Include infrun.h.
155 * record-full.c: Include infrun.h.
156 * remote-m32r-sdi.c: Include infrun.h.
157 * remote-mips.c: Include infrun.h.
158 * remote-notif.c: Include infrun.h.
159 * remote-sim.c: Include infrun.h.
160 * remote.c: Include infrun.h.
161 * reverse.c: Include infrun.h.
162 * rs6000-tdep.c: Include infrun.h.
163 * s390-linux-tdep.c: Include infrun.h.
164 * solib-irix.c: Include infrun.h.
165 * solib-osf.c: Include infrun.h.
166 * solib-svr4.c: Include infrun.h.
167 * target.c: Include infrun.h.
168 * top.c: Include infrun.h.
169 * windows-nat.c: Include infrun.h.
170 * mi/mi-interp.c: Include infrun.h.
171 * mi/mi-main.c: Include infrun.h.
172 * python/py-threadevent.c: Include infrun.h.
174 2014-05-22 Pedro Alves <palves@redhat.com>
176 * infrun.c (handle_inferior_event): Store the exit code for
177 --return-child-result here, instead of ...
178 (print_exited_reason): ... here.
180 2014-05-21 Pedro Alves <palves@redhat.com>
183 * gdbthread.h (struct thread_control_state): New field
185 * infrun.c (follow_fork): Copy the new thread control field to the
187 (clear_proceed_status_thread): Clear the new thread control field.
188 (proceed): Set the new thread control field.
189 * interps.h (command_interp): Declare.
190 * interps.c (command_interpreter): New global.
191 (command_interp): New function.
192 (interp_exec): Set `command_interpreter' while here.
193 * cli-out.c (cli_uiout_dtor): New function.
194 (cli_ui_out_impl): Install it.
195 * mi/mi-interp.c: Include cli-out.h.
196 (mi_cmd_interpreter_exec): Add comment.
197 (restore_current_uiout_cleanup): New function.
198 (ui_out_free_cleanup): New function.
199 (mi_on_normal_stop): If finishing an execution command started by
200 a CLI command, or any kind of breakpoint-like event triggered,
201 print the stop event to the output (CLI) stream.
202 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
204 2014-05-21 Pedro Alves <palves@redhat.com>
206 * cli/cli-cmds.c (list_command): Handle the first "list" after the
207 current source line having changed.
208 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
209 * infrun.c (normal_stop): Adjust call to
210 set_current_sal_from_frame.
211 * source.c (clear_lines_listed_range): New function.
212 (set_current_source_symtab_and_line, identify_source_line): Clear
213 the lines listed range.
214 (line_info): Handle the first "info line" after the current source
216 * stack.c (print_stack_frame): Remove center handling.
217 (set_current_sal_from_frame): Remove 'center' parameter. Don't
220 2014-05-21 Pedro Alves <palves@redhat.com>
222 * inf-child.c (inf_child_mourn_inferior): New function.
223 * inf-child.h (inf_child_mourn_inferior): New declaration.
224 * darwin-nat.c (darwin_mourn_inferior): Use
225 inf_child_mourn_inferior.
226 * gnu-nat.c (gnu_mourn_inferior): Likewise.
227 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
228 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
229 * nto-procfs.c (procfs_mourn_inferior): Likewise.
230 * windows-nat.c (windows_mourn_inferior): Likewise.
232 2014-05-21 Doug Evans <xdje42@gmail.com>
234 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
236 2014-05-21 Doug Evans <xdje42@gmail.com>
238 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
239 (gdbscm_out_of_range_error): Ditto.
240 (gdbscm_memory_error): Ditto.
241 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
242 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
243 (gdbscm_out_of_range_error): Update.
244 (gdbscm_memory_error): Update.
245 (gdbscm_scm_to_target_string_unsafe): Delete.
247 2014-05-21 Pedro Alves <palves@redhat.com>
249 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
251 (inf_child_open_target): New function.
252 (inf_child_open): Use inf_child_open_target to push the target
253 instead of erroring out.
254 (inf_child_disconnect, inf_child_close)
255 (inf_child_maybe_unpush_target): New functions.
256 (inf_child_target): Install inf_child_disconnect and
257 inf_child_close. Store a pointer to the returned object.
258 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
260 * target.c (auto_connect_native_target): New global.
261 (show_default_run_target): New function.
262 (find_default_run_target): Return NULL if automatically connecting
263 to the native target is disabled.
264 (_initialize_target): Install set/show auto-connect-native-target.
265 * NEWS: Mention "set auto-connect-native-target", and "target
267 * linux-nat.c (super_close): New global.
268 (linux_nat_close): Call super_close.
269 (linux_nat_add_target): Store a pointer to the base class's
271 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
272 inf_child_maybe_unpush.
273 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
275 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
276 the inferior. Use inf_child_maybe_unpush_target.
277 (inf_ttrace_attach): Don't push the target if it is already
279 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
280 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
281 after mourning the inferior. Use inf_child_maybe_unpush_target.
282 (darwin_attach_pid): Don't push the target if it is already
284 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
285 mourning the inferior. Use inf_child_maybe_unpush_target.
286 (gnu_detach): Use inf_child_maybe_unpush_target.
287 * go32-nat.c (go32_create_inferior): Don't push the target if it
289 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
290 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
291 (procfs_open): Rename to ...
292 (procfs_open_1): ... this. Add target_ops parameter. Adjust
293 comments. Can target_preopen before changing node. Call
294 inf_child_open_target to push the target explicitly.
295 (procfs_attach): Don't push the target if it is already pushed.
296 (procfs_detach): Use inf_child_maybe_unpush_target.
297 (procfs_create_inferior): Don't push the target if it is already
299 (nto_native_ops): New global.
300 (procfs_open): Reimplement.
301 (procfs_native_open): New function.
302 (init_procfs_targets): Install procfs_native_open as to_open of
303 "target native". Store a pointer to the "native" target in
305 * procfs.c (procfs_attach): Don't push the target if it is already
307 (procfs_detach): Use inf_child_maybe_unpush_target.
308 (procfs_mourn_inferior): Only unpush the target after mourning the
309 inferior. Use inf_child_maybe_unpush_target.
310 (procfs_init_inferior): Don't push the target if it is already
312 * windows-nat.c (do_initial_windows_stuff): Don't push the target
313 if it is already pushed.
315 2014-05-21 Pedro Alves <palves@redhat.com>
317 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
318 and "procfs" targets are now called "native" instead.
320 2014-05-21 Pedro Alves <palves@redhat.com>
322 * go32-nat.c (go32_open): Delete.
323 (go32_target): Don't override the to_open method.
325 2014-05-21 Pedro Alves <palves@redhat.com>
327 * nto-procfs.c (procfs_can_run): New function.
328 (nto_procfs_ops): New global.
329 (init_procfs_targets): New, based on procfs_target. Install
330 "target native" in addition to "target procfs".
331 (_initialize_procfs): Call init_procfs_targets instead of adding
334 2014-05-21 Pedro Alves <palves@redhat.com>
336 * windows-nat.c (windows_target): Don't override to_shortname,
337 to_longname or to_doc.
339 2014-05-21 Pedro Alves <palves@redhat.com>
341 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
344 2014-05-21 Pedro Alves <palves@redhat.com>
346 * darwin-nat.c (_initialize_darwin_inferior): Don't override
347 to_shortname, to_longname or to_doc.
349 2014-05-21 Pedro Alves <palves@redhat.com>
351 * go32-nat.c (go32_target): Don't override to_shortname,
352 to_longname or to_doc.
354 2014-05-21 Pedro Alves <palves@redhat.com>
356 * inf-child.c (inf_child_open): Remove mention of "child".
357 (inf_child_target): Rename target to "native" instead of "child".
359 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
361 * Makefile.in (SFILES): Delete "regset.c".
362 (COMMON_OBS): Delete "regset.o".
364 * regset.h (regset_alloc): Delete prototype.
366 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
368 * sparc-linux-tdep.c (sparc32_linux_gregset)
369 (sparc32_linux_fpregset): New static regset structures.
370 (sparc32_linux_init_abi): Drop dynamic regset allocations.
371 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
373 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
374 (sparc64_linux_fpregset): New static regset structures.
375 (sparc64_linux_init_abi): Drop dynamic regset allocations.
376 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
377 New static regset structures.
378 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
379 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
380 New static regset structures.
381 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
382 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
383 New static regset structures.
384 (sparc64obsd_init_abi): Drop dynamic regset allocations.
385 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
386 New static regset structures.
387 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
389 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
391 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
392 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
393 register maps ("regmaps") from "*regset" to "*regmap". Do this
394 for all regmap types and variables.
395 * sparc-linux-tdep.c (sparc32_linux_step_trap)
396 (sparc32_linux_supply_core_gregset)
397 (sparc32_linux_collect_core_gregset)
398 (sparc32_linux_supply_core_fpregset)
399 (sparc32_linux_collect_core_fpregset): Likewise.
400 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
401 (sparc_gregmap, sparc_fpregmap): ... these.
402 (sparc_supply_gregset, sparc_collect_gregset)
403 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
404 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
405 (_initialize_sparc_nat): Rename regmaps.
406 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
407 (sparc_gregmap, sparc_fpregmap): ... these.
408 (sparc_supply_gregset, sparc_collect_gregset)
409 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
410 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
412 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
413 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
415 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
417 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
418 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
419 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
421 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
422 (sparc32_bsd_fpregset): Rename to...
423 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
424 (sparc32_bsd_fpregmap): ... these.
425 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
426 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
427 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
428 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
429 (struct sparc_gregmap, struct sparc_fpregmap)
430 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
431 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
432 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
433 (sparc32_supply_regset, sparc32_collect_gregset)
434 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
436 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
437 (sparc64_linux_ptrace_gregmap): ... this.
438 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
439 (_initialize_sparc64_linux_nat): Rename regmaps.
440 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
441 (sparc64_linux_core_gregmap): ... this.
442 (sparc64_linux_supply_core_gregset)
443 (sparc64_linux_collect_core_gregset)
444 (sparc64_linux_supply_core_fpregset)
445 (sparc64_linux_collect_core_fpregset): Rename regmaps.
446 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
447 (sparc64_sol2_fpregset): Rename to...
448 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
449 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
450 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
452 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
453 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
454 (sparc64_bsd_fpregset): Rename to...
455 (struct sparc_gregmap, sparc64_sol2_gregmap)
456 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
457 (sparc64_bsd_fpregmap): ... these.
458 (sparc64_supply_gregset, sparc64_collect_gregset)
459 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
461 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
462 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
463 (sparc64fbsd_gregmap): ... this.
464 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
465 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
467 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
468 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
469 (sparc64nbsd_collect_fpregset): Likewise.
470 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
471 (sparc64nbsd_gregmap): ... this.
472 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
474 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
475 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
476 (sparc64obsd_gregmap): ... this.
477 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
479 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
480 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
481 (sparc32nbsd_gregmap): ... this.
482 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
485 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
487 * score-tdep.c (score7_linux_gregset): New static regset
489 (score7_linux_regset_from_core_section): Remove dynamic regset
491 (score_gdbarch_init): Drop allocation of tdep structure.
492 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
494 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
496 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
498 (am33_regset_from_core_section): Remove dynamic regset
501 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
503 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
504 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
506 (mips_linux_regset_from_core_section): Remove dynamic regset
508 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
509 'gregset64', 'fpregset', and 'fpregset64'.
510 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
513 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
515 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
517 (amd64_regset_from_core_section): Remove dynamic regset
519 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
521 (amd64obsd_regset_from_core_section): Remove dynamic regset
523 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
525 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
526 x86-common regset supply function.
527 * i386-tdep.c (i386_collect_gregset): Make static.
528 (i386_gregset): New global regset structure.
529 (i386_fpregset, i386_xstateregset): New static regset structures.
530 (i386_regset_from_core_section): Remove dynamic regset
532 (i386_gdbarch_init): Remove initialization of tdep fields
533 'gregset', 'fpregset', and 'xstateregset'.
534 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
535 'fpregset', and 'xstateregset'.
536 (i386_collect_gregset): Remove prototype.
537 (i386_gregset): New declaration.
538 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
540 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
543 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
545 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
546 (arm_linux_vfpregset): New static regset structures.
547 (arm_linux_regset_from_core_section): Remove dynamic allocation of
549 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
550 and 'vfpregset' fields.
552 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
554 * aarch64-linux-tdep.c (aarch64_linux_gregset)
555 (aarch64_linux_fpregset): New static regset structures.
556 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
557 of regset structures.
558 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
561 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
563 * regset.h (struct regset): Remove gdbarch field.
564 * regset.c (regset_alloc): Drop initialization of gdbarch field.
565 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
566 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
568 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
569 (ppc32_linux_fpregset, ppc32_linux_vrregset)
570 (ppc32_linux_vsxregset): Likewise.
571 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
572 via the regcache instead of the regset.
573 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
574 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
575 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
576 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
579 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
581 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
583 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
584 (alphanbsd_aout_gregset): Likewise.
585 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
586 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
588 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
589 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
591 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
592 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
593 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
594 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
595 * m88k-tdep.c (m88k_gregset): Likewise.
596 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
597 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
598 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
599 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
600 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
601 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
602 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
603 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
604 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
606 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
607 * sh-tdep.h (sh_corefile_gregset): Likewise.
608 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
609 * vax-tdep.c (vax_gregset): Likewise.
611 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
613 Fix TLS access for -static -pthread.
614 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
615 (try_thread_db_load_1): Initialize it.
616 (thread_db_get_thread_local_address): Call it if LM is zero.
617 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
618 * target.h (struct target_ops) (to_get_thread_local_address): Add
619 load_module_addr comment.
621 2014-05-21 Pedro Alves <palves@redhat.com>
623 * dcache.c (dcache_read_memory_partial): If reading the cache line
624 fails, fallback to reading just the memory the caller wanted.
626 2014-05-20 Doug Evans <dje@google.com>
628 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
629 instead of get_current_arch.
631 2014-05-20 Pedro Alves <palves@redhat.com>
633 * NEWS: Mention that compare-sections now works with all targets.
635 * remote.c (PACKET_qCRC): New enum value.
636 (remote_verify_memory): Don't send qCRC if the target has no
637 execution. Use packet_support/packet_ok. If the target doesn't
638 support the qCRC packet, fallback to a deep memory copy.
639 (compare_sections_command): Say "target image" instead of "remote
641 (_initialize_remote): Add PACKET_qCRC to the list of config
642 packets that have no associated command. Extend comment.
643 * target.c (simple_verify_memory, default_verify_memory): New
645 * target.h (struct target_ops) <to_verify_memory>: Default to
646 default_verify_memory.
647 (simple_verify_memory): New declaration.
648 * target-delegates.c: Regenerate.
650 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
652 * record-btrace.c (record_btrace_step_thread): Check for empty history.
654 2014-05-20 Hui Zhu <hui@codesourcery.com>
655 Yao Qi <yao@codesourcery.com>
658 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
659 and change address of sp and pc.
661 2014-05-19 Tom Tromey <tromey@redhat.com>
663 * gdbtypes.c (rank_function): Use XNEWVEC.
664 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
666 2014-05-19 Doug Evans <dje@google.com>
668 * dwarf2read.c (build_type_psymtabs_1): Renamed from
669 build_type_unit_groups and moved closer to only caller. Remove
670 arguments. All references updated. Remove outdated .gdb_index
672 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
673 build_type_psymtabs_1.
675 2014-05-19 Doug Evans <dje@google.com>
677 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
678 n_type_unit_groups, all_type_unit_groups. All uses removed.
679 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
680 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
681 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
682 (add_type_unit_group_to_table): Delete.
684 2014-05-19 Doug Evans <dje@google.com>
686 * eval.c (evaluate_subexp_standard): Add some comments.
688 2014-05-17 Doug Evans <xdje42@gmail.com>
690 * progspace.c (remove_program_space): Delete, unused.
691 * progspace.h (remove_program_space): Ditto.
693 2014-05-17 Doug Evans <xdje42@gmail.com>
695 * inferior.c (prune_inferiors): Fix comment.
696 (remove_inferior_command): Call prune_program_spaces.
698 2014-05-16 Doug Evans <dje@google.com>
700 New command line option -D.
702 * main.c (set_gdb_data_directory): New function.
703 (captured_main): Recognize -D. Flag error for --data-directory "".
704 Call set_gdb_data_directory.
705 (print_gdb_help): Print --data-directory, -D.
706 * main.h (set_gdb_data_directory): Declare.
707 * top.c (staged_gdb_datadir): New static global.
708 (set_gdb_datadir): Call set_gdb_data_directory
709 (show_gdb_datadir): New function.
710 (init_main): Update init of data-directory parameter.
712 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
714 Import the "dirfd" gnulib module.
715 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
716 * gnulib/aclocal.m4: Update.
717 * gnulib/config.in: Update.
718 * gnulib/configure: Update.
719 * gnulib/import/Makefile.am: Update.
720 * gnulib/import/Makefile.in: Update.
721 * gnulib/import/dirfd.c: New.
722 * gnulib/import/m4/dirfd.m4: New.
723 * gnulib/import/m4/gnulib-cache.m4: Update.
724 * gnulib/import/m4/gnulib-comp.m4: Update.
726 2014-05-16 Pierre Muller <muller@sourceware.org>
727 Yao Qi <yao@codesourcery.com>
729 * valprint.c (print_wchar): Move the code on checking whether
730 W is a printable wide char to the default branch of switch
731 statement below. Call wchar_printable instead of gdb_iswprint.
733 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
735 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
736 ldr.w and ldrd instructions.
738 2014-05-15 Doug Evans <dje@google.com>
740 * dwarf2read.c (read_structure_type): Delete outdated comments.
742 2014-05-14 Tom Tromey <tromey@redhat.com>
744 * macrocmd.c (print_macro_definition): Reindent.
746 2014-05-13 Doug Evans <xdje42@gmail.com>
748 * python/py-cmd.c (cmdpy_completer): Add comment.
749 (completers): Make const.
751 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
753 * infrun.c (resume): Remove should_resume (unused). Move up
754 declaration of resume_ptid.
756 2014-05-13 Tom Tromey <tromey@redhat.com>
758 * language.h (unop_type_check): Remove.
759 (binop_type_check): Don't declare.
761 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
763 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
764 call to regcache_raw_collect.
766 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
768 * mi/mi-console.c (mi_console_raw_packet): Use the value from
769 mi_console->quote as the quoting character.
771 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
773 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
775 2014-04-29 Tom Tromey <tromey@redhat.com>
777 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
780 2014-05-07 Kyle McMartin <kyle@redhat.com>
782 Pushed by Joel Brobecker <brobecker@adacore.com>.
783 * aarch64-tdep.c (aarch64_software_single_step): New function.
784 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
785 with aarch64_software_single_step.
787 2014-05-05 Joel Brobecker <brobecker@adacore.com>
791 2014-05-05 Keith Seitz <keiths@redhat.com>
793 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
794 variable or history value is successfully parsed.
796 2014-05-05 Yao Qi <yao@codesourcery.com>
797 Pedro Alves <palves@redhat.com>
799 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
800 address of blocks that intersects the requested range. Trim
801 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
803 * ctf.c (ctf_xfer_partial): Likewise.
805 2014-05-05 Yao Qi <yao@codesourcery.com>
807 * printcmd.c (display_command): Remove the check to
808 target_has_execution.
810 2014-05-03 Mark Kettenis <kettenis@gnu.org>
812 * ppcobsd-nat.c: Include "obsd-nat.h".
813 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
815 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
817 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
819 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
820 and 16-bit signed and unsigned arguments. Update comment.
821 (stap_parse_probe_arguments): Extend code to handle such
822 arguments. Use warning instead of complaint to notify about
823 unrecognized bitness.
825 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
828 * stap-probe.c (stap_parse_probe_arguments): Simplify
829 check for non-prefixed probes (i.e., probes whose
830 arguments do not start with "N@"). Always set the
831 argument type to a sane value.
833 2014-05-01 David Taylor <dtaylor@emc.com>
835 * remote.c (compare_sections_command): Add -r option to compare
836 all loadable read-only sections.
838 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
840 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
841 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
843 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
844 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
845 Remove unused CORE_ADDR argument. Update all callers.
847 2014-04-29 Pedro Alves <palves@redhat.com>
849 * remote.c (struct packet_config) <detect>: Extend comment.
850 (add_packet_config_cmd): Don't set the config's detect or support
852 (init_all_packet_configs): Also initialize the config's 'detect'
854 (reset_all_packet_configs_support): New function.
855 (remote_open_1): Call reset_all_packet_configs_support instead of
856 init_all_packet_configs.
857 (_initialize_remote): Initialize all packet configs. Assert that
858 all packets have an associated command, except a few known
861 2014-04-28 Joel Brobecker <brobecker@adacore.com>
863 * dwarf2read.c (read_subrange_type): Handle dynamic
864 DW_AT_lower_bound attributes.
866 2014-04-28 Joel Brobecker <brobecker@adacore.com>
868 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
869 dynamic bounds before computing its upper bound.
870 (ada_discrete_type_low_bound): Same as above with the lower bound.
872 2014-04-28 Joel Brobecker <brobecker@adacore.com>
874 * dwarf2read.c (is_dynamic_type): Return true for dynamic
875 range types. Adjust the array handling implementation to
876 take advantage of this change.
877 (resolve_dynamic_range): New function, mostly extracted from
878 resolve_dynamic_bounds.
879 (resolve_dynamic_array): New function, mostly extracted from
880 resolve_dynamic_bounds.
881 (resolve_dynamic_bounds): Delete.
882 (resolve_dynamic_type): Reimplement. Add handling of
883 TYPE_CODE_RANGE types.
885 2014-04-28 Joel Brobecker <brobecker@adacore.com>
887 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
888 handling of parallel ___XA types.
890 2014-04-28 Joel Brobecker <brobecker@adacore.com>
892 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
893 unnecessary second call to static_unwrap_type.
895 2014-04-27 Hui Zhu <hui@codesourcery.com>
897 * stack.c (print_frame_info): Call do_gdb_disassembly with
898 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
900 2014-04-26 Doug Evans <xdje42@gmail.com>
902 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
904 2014-04-25 Pedro Alves <palves@redhat.com>
907 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
908 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
909 and newline from built string.
910 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
911 (linux_ptrace_attach_fail_reason): ... this.
912 * linux-nat.c (linux_nat_attach): Adjust to use
913 linux_ptrace_attach_fail_reason.
915 2014-04-25 Pedro Alves <palves@redhat.com>
917 * remote.c (struct remote_state): Remove multi_process_aware,
918 non_stop_aware, cond_tracepoints, cond_breakpoints,
919 breakpoint_commands, fast_tracepoints, static_tracepoints,
920 install_in_trace, disconnected_tracing,
921 enable_disable_tracepoints, string_tracing, and
922 augmented_libraries_svr4_read fields.
923 (remote_multi_process_p): Move further below in the file.
924 (struct packet_config): Add comments.
925 (update_packet_config): Delete function.
926 (show_packet_config_cmd): Use packet_config_support.
927 (add_packet_config_cmd): Use NULL as set callback.
928 (packet_ok): "set remote foo-packet"-style commands no longer
929 change config->supported -- adjust.
930 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
931 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
932 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
933 (PACKET_QNonStop, PACKET_multiprocess_feature)
934 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
935 (PACKET_DisconnectedTracing_feature)
936 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
937 (set_remote_protocol_packet_cmd): Delete function.
938 (packet_config_support, packet_support): New functions.
939 (set_remote_protocol_Z_packet_cmd): Don't call
940 update_packet_config.
941 (remote_query_attached, remote_pass_signals)
942 (remote_program_signals, remote_threads_info)
943 (remote_threads_extra_info, remote_start_remote): Use
945 (remote_start_remote): Use packet_config_support and
947 (init_all_packet_configs): Set all packets to unknown support,
948 instead of calling update_packet_config.
949 (remote_check_symbols): Use packet_support.
950 (remote_supported_packet): Unconditionally set the packet config's
952 (remote_multi_process_feature, remote_non_stop_feature)
953 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
954 (remote_breakpoint_commands_feature)
955 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
956 (remote_install_in_trace_feature)
957 (remote_disconnected_tracing_feature)
958 (remote_enable_disable_tracepoint_feature)
959 (remote_string_tracing_feature)
960 (remote_augmented_libraries_svr4_read_feature): Delete functions.
961 (remote_protocol_features): Adjust to use remote_supported_packet
962 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
963 "ConditionalTracepoints", "ConditionalBreakpoints",
964 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
965 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
966 "EnableDisableTracepoints", and "tracenz".
967 (remote_query_supported): Use packet_support.
968 (remote_open_1): Adjust.
969 (extended_remote_attach_1): Use packet_support. Switch on the
970 result of packet_ok instead of checking whether the packet ended
972 (remote_vcont_resume): Use packet_support.
973 (remote_resume, remote_stop_ns, fetch_register_using_p)
974 (remote_prepare_to_store, store_register_using_P)
975 (check_binary_download, remote_write_bytes): Use packet_support.
976 (remote_vkill): Use packet_support. Switch on the result of
977 packet_ok instead of checking whether the packet ended up
979 (extended_remote_supports_disable_randomization): Use
981 (extended_remote_run): Switch on the result of packet_ok instead
982 of checking whether the packet ended up disabled.
983 (remote_insert_breakpoint, remote_remove_breakpoint)
984 (remote_insert_watchpoint, remote_remove_watchpoint)
985 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
987 (remote_search_memory): Use packet_config_support.
988 (remote_get_thread_local_address, remote_get_tib_address)
989 (remote_hostio_send_command, remote_can_execute_reverse): Use
991 (remote_supports_cond_tracepoints)
992 (remote_supports_cond_breakpoints)
993 (remote_supports_fast_tracepoints)
994 (remote_supports_static_tracepoints)
995 (remote_supports_install_in_trace)
996 (remote_supports_enable_disable_tracepoint)
997 (remote_supports_string_tracing)
998 (remote_can_run_breakpoint_commands): Rewrite, checking whether
999 the packet config says the feature is enabled or disabled.
1000 (remote_download_tracepoint, remote_trace_set_readonly_regions)
1001 (remote_get_trace_status): Use packet_support.
1002 (remote_set_disconnected_tracing): Adjust to check whether the
1003 feature is enabled with packet_support.
1004 (remote_set_trace_buffer_size, remote_use_agent)
1005 (remote_can_use_agent, remote_supports_btrace): Use
1007 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
1008 Use packet_config_support.
1009 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
1010 the packet config says the feature is enabled or disabled.
1011 (set_range_stepping): Use packet_support.
1013 2014-04-25 Tom Tromey <tromey@redhat.com>
1015 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
1018 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
1020 * NEWS: Mention support for C99 variable length arrays.
1022 2014-04-24 Joel Brobecker <brobecker@adacore.com>
1024 * ada-lang.c (standard_exc): Expand introductory comment.
1026 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
1027 Walfred Tedeschi <walfred.tedeschi@intel.com>
1029 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
1031 (amd64_linux_read_description): Add code to handle AVX512 xstate
1032 mask and return respective tdesc.
1033 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
1034 and features/i386/x32-avx512-linux.c.
1035 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
1036 (amd64_linux_core_read_description): Add code to handle AVX512
1037 xstate mask and return respective tdesc.
1038 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
1039 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
1041 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
1042 (tdesc_amd64_avx512_linux): New prototype.
1043 (tdesc_x32_avx512_linux): Likewise.
1044 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
1045 features/i386/x32-avx512.c.
1046 (amd64_ymm_avx512_names): New register names for pseudo
1048 (amd64_ymmh_avx512_names): New register names for raw registers
1050 (amd64_k_names): New register names for K registers.
1051 (amd64_zmmh_names): New register names for ZMM raw registers.
1052 (amd64_zmm_names): New registers names for ZMM pseudo registers.
1053 (amd64_xmm_avx512_names): New register names for XMM16-31
1055 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
1057 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
1058 if feature is present.
1059 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
1060 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
1061 (AMD64_NUM_REGS): Adjust to new number of registers.
1062 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
1063 registers supplied via XSTATE by AVX512 registers.
1064 (i386_linux_read_description): Add case for AVX512.
1065 * i386-linux-tdep.c: Include i386-avx512-linux.c.
1066 (i386_linux_gregset_reg_offset): Add AVX512 registers.
1067 (i386_linux_core_read_description): Add case for AVX512.
1068 (i386_linux_init_abi): Install supported register note section
1070 (_initialize_i386_linux_tdep): Add call to tdesc init function for
1072 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
1073 registers to be number of zmm7h + 1.
1074 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
1075 * i386-tdep.c: Include features/i386/i386-avx512.c.
1076 (i386_zmm_names): Add ZMM pseudo register names array.
1077 (i386_zmmh_names): Add ZMM raw register names array.
1078 (i386_k_names): Add K raw register names array.
1079 (num_lower_zmm_regs): Add constant for the number of lower ZMM
1080 registers. AVX512 has 16 more ZMM registers than there are YMM
1082 (i386_zmmh_regnum_p): Add function to look up register number of
1084 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
1085 (i386_k_regnum_p): Likewise for K raw registers.
1086 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
1087 registers added by AVX512.
1088 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
1089 registers added by AVX512.
1090 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
1092 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
1093 (i386_pseudo_register_name): Add ZMM pseudo registers.
1094 (i386_zmm_type): Construct and return vector registers type for ZMM
1096 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
1097 ZMM0-31 pseudo registers and K registers.
1098 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
1099 and YMM16-31 registers from register cache.
1100 (i386_pseudo_register_write): Add code to write K, ZMM and
1102 (i386_register_reggroup_p): Add code to include/exclude AVX512
1103 registers in/from respective register groups.
1104 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
1105 registers if feature is present in xcr0.
1106 (i386_gdbarch_init): Add code to initialize AVX512 feature
1107 variables in tdep structure, wire in pseudo registers and call
1108 initialize_tdesc_i386_avx512.
1109 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
1111 (i386_regnum): Add AVX512 registers.
1112 (I386_SSE_NUM_REGS): New define for number of SSE registers.
1113 (I386_AVX_NUM_REGS): Likewise for AVX registers.
1114 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
1115 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
1117 (i386_xmm_avx512_regnum_p): New prototype for register look up.
1118 (i386_ymm_avx512_regnum_p): Likewise.
1119 (i386_k_regnum_p): Likewise.
1120 (i386_zmm_regnum_p): Likewise.
1121 (i386_zmmh_regnum_p): Likewise.
1122 * i387-tdep.c : Update year in copyright notice.
1123 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
1125 (XSAVE_YMM_AVX512_ADDR): New macro.
1126 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
1128 (XSAVE_XMM_AVX512_ADDR): New macro.
1129 (xsave_avx512_k_offset): New table for K register offsets in
1131 (XSAVE_AVX512_K_ADDR): New macro.
1132 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
1134 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
1135 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
1137 (i387_collect_xsave): Add code to collect AVX512 registers from
1139 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
1140 of XMM16-31 registers.
1141 (I387_NUM_K_REGS): New define for number of K registers.
1142 (I387_K0_REGNUM): New define for K0 register number.
1143 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
1144 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
1145 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
1147 (I387_YMM16H_REGNUM): New define for YMM16H register number.
1148 (I387_XMM16_REGNUM): New define for XMM16 register number.
1149 (I387_YMM0_REGNUM): New define for YMM0 register number.
1150 (I387_KEND_REGNUM): New define for last K register number.
1151 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
1152 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
1154 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
1156 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
1158 * features/Makefile: Add AVX512 related files.
1159 * features/i386/32bit-avx512.xml: New file.
1160 * features/i386/64bit-avx512.xml: Likewise.
1161 * features/i386/amd64-avx512-linux.c: Likewise.
1162 * features/i386/amd64-avx512-linux.xml: Likewise.
1163 * features/i386/amd64-avx512.c: Likewise.
1164 * features/i386/amd64-avx512.xml: Likewise.
1165 * features/i386/i386-avx512-linux.c: Likewise.
1166 * features/i386/i386-avx512-linux.xml: Likewise.
1167 * features/i386/i386-avx512.c: Likewise.
1168 * features/i386/i386-avx512.xml: Likewise.
1169 * features/i386/x32-avx512-linux.c: Likewise.
1170 * features/i386/x32-avx512-linux.xml: Likewise.
1171 * features/i386/x32-avx512.c: Likewise.
1172 * features/i386/x32-avx512.xml: Likewise.
1173 * regformats/i386/amd64-avx512-linux.dat: New file.
1174 * regformats/i386/amd64-avx512.dat: Likewise.
1175 * regformats/i386/i386-avx512-linux.dat: Likewise.
1176 * regformats/i386/i386-avx512.dat: Likewise.
1177 * regformats/i386/x32-avx512-linux.dat: Likewise.
1178 * regformats/i386/x32-avx512.dat: Likewise.
1179 * NEWS: Add note about new support for AVX512.
1182 2014-04-23 Pedro Alves <palves@redhat.com>
1184 * breakpoint.c (insert_bp_location): Tolerate errors if the
1185 breakpoint is set in a user-loaded objfile.
1186 (remove_breakpoint_1): Likewise. Also tolerate errors if the
1187 location is marked shlib_disabled. If the breakpoint is set in a
1188 user-loaded objfile is a GDB-side memory breakpoint, validate it
1189 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
1190 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
1192 * mem-break.c (memory_validate_breakpoint): New function.
1193 * objfiles.c (userloaded_objfile_contains_address_p): New
1195 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
1196 * target.h (memory_validate_breakpoint): New declaration.
1198 2014-04-23 Pedro Alves <palves@redhat.com>
1200 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
1201 the breakpoint is set in a shared library, only suppress
1202 errors for software breakpoints, not hardware breakpoints.
1204 2014-04-22 Pedro Alves <palves@redhat.com>
1206 * infrun.c (schedlock_applies): New function, factored out from
1207 find_thread_needs_step_over.
1208 (find_thread_needs_step_over): Use it.
1209 (switch_back_to_stepped_thread): Always clear trap_expected if the
1210 step over is finished. Return early if scheduler locking applies.
1211 Look for the stepping thread and a potential step-over thread with
1213 (currently_stepping_or_nexting_callback): Delete.
1215 2014-04-22 Nick Clifton <nickc@redhat.com>
1217 * NEWS: Mention that ARM sim now supports tracing.
1219 2014-04-22 Yao Qi <yao@codesourcery.com>
1221 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
1223 * tracefile.c (tracefile_fetch_registers): ... it. New
1225 * tracefile.h (tracefile_fetch_registers): Declare.
1226 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
1227 tracefile_fetch_registers.
1229 2014-04-19 Eli Zaretskii <eliz@gnu.org>
1232 * windows-nat.c (thread_rec): Don't display a warning when
1233 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
1234 fails for any reason, set th->suspended to -1, so that we don't
1235 try to resume such a thread. Also, don't return NULL in these
1236 cases, to avoid completely ruin the session due to "PC register is
1237 not available" error.
1238 (do_windows_fetch_inferior_registers): Check errors in
1239 GetThreadContext call.
1240 (windows_continue): Accept an additional argument KILLED; if not
1241 zero, ignore errors in the SetThreadContext call, since the
1242 inferior was killed and is shutting down.
1243 (windows_resume, get_windows_debug_event)
1244 (windows_create_inferior, windows_mourn_inferior)
1245 (windows_kill_inferior): All callers of windows_continue changed
1246 to adjust to its new calling sequence.
1248 2014-04-19 Yao Qi <yao@codesourcery.com>
1250 * ctf.c (ctf_open): Call post_create_inferior.
1252 2014-04-19 Yao Qi <yao@codesourcery.com>
1254 * ctf.c (handle_id): New static variable.
1255 (ctf_open_dir): Get handle_id from bt_context_add_trace return
1256 value. Get the declaration of event "register" and get length
1257 of field "contents".
1259 2014-04-19 Yao Qi <yao@codesourcery.com>
1261 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
1263 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
1265 * valops.c (oload_method_static): Remove unnecessary argument
1266 METHOD. Update all callers.
1268 2014-04-18 Pedro alves <palves@redhat.com>
1269 Tom Tromey <tromey@redhat.com>
1272 * frame.c (get_prev_frame_1): Rename to ...
1273 (get_prev_frame_always): ... this, and make extern. Adjust.
1274 (skip_artificial_frames): Use get_prev_frame_always.
1275 (frame_unwind_caller_id, frame_pop, get_prev_frame)
1276 (get_frame_unwind_stop_reason): Adjust to rename.
1277 * frame.h (get_prev_frame_always): Declare.
1278 * inline-frame.c: Include frame.h.
1279 (inline_frame_this_id): Use get_prev_frame_always.
1281 2014-04-18 Tristan Gingold <gingold@adacore.com>
1283 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
1284 code by using bfd_mach_o_get_base_address.
1286 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1288 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
1289 (spu_ax_pseudo_register_collect): New function.
1290 (spu_ax_pseudo_register_push_stack): Likewise.
1291 (spu_dwarf_reg_to_regnum): Likewise.
1292 (spu_gdbarch_init): Install them. Append DWARF unwinders.
1294 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1296 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
1297 Replace FRAME argument with FRAME_ID.
1298 * gdbarch.c, gdbarch.h: Regenerate.
1299 * findvar.c (default_value_from_register): Add GDBARCH argument;
1300 replace FRAME by FRAME_ID. No longer call get_frame_id.
1301 (value_from_register): Update call to gdbarch_value_from_register.
1302 * value.h (default_value_from_register): Update prototype.
1303 * s390-linux-tdep.c (s390_value_from_register): Update interface
1304 and call to default_value_from_register.
1305 * spu-tdep.c (spu_value_from_register): Likewise.
1307 * findvar.c (address_from_register): Remove TYPE argument.
1308 Do not call value_from_register; use gdbarch_value_from_register
1309 with null_frame_id instead.
1310 * value.h (address_from_register): Update prototype.
1311 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
1312 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
1313 address_from_register interface change.
1315 2014-04-17 Yao Qi <yao@codesourcery.com>
1317 * gdbtypes.h: Update comments to link to types and macros'
1320 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
1322 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
1324 2014-04-16 Keith Seitz <keiths@redhat.com>
1327 * dwarf2read.c (skip_one_die): Check that all relative-offset
1328 sibling DIEs fall within range of the current reader's buffer.
1329 (read_partial_die): Likewise.
1331 2014-04-16 Keith Seitz <keiths@redhat.com>
1334 * cp-namespace.c (lookup_symbol_file): If the type name of
1335 `this' is NULL, return immediately.
1337 2014-04-14 Keith Seitz <keiths@redhat.com>
1340 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1341 from symbol_matches_domain in symtab.c. All local callers
1342 of symbol_matches_domain updated.
1343 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1344 search STRUCT_DOMAIN.
1345 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1346 independently. standard_lookup will do that automatically.
1347 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1348 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1349 (cp_lookup_symbol_in_namespace): Likewise.
1350 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1351 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1352 may return a STRUCT_DOMAIN match.
1353 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1354 * cp-support.c: Include language.h.
1355 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1357 * psymtab.c (match_partial_symbol): Compare the requested
1358 domain with the symbol's domain directly.
1359 (lookup_partial_symbol): Likewise.
1360 * symtab.c (lookup_symbol_in_language): Explain when/why
1361 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1362 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1363 appropriate languages.
1364 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1365 and moved to ada-lang.c
1366 (lookup_block_symbol): Explain that this function only returns
1367 symbol matching the requested DOMAIN.
1368 Compare the requested domain with the symbol's domain directly.
1369 (iterate_over_symbols): Compare the requested domain with the
1370 symbol's domain directly.
1371 * symtab.h (symbol_matches_domain): Remove.
1373 2014-04-14 Tom Tromey <tromey@redhat.com>
1376 * c-exp.y (type_aggregate_p): New function.
1377 (qualified_name, classify_inner_name): Use it.
1378 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
1379 and TYPE_TARGET_TYPE of an enum type.
1380 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
1382 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
1383 handle TYPE_DECLARED_CLASS.
1384 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
1386 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
1387 * valops.c (enum_constant_from_type): New function.
1388 (value_aggregate_elt): Use it.
1389 * cp-namespace.c (cp_lookup_nested_symbol): Handle
1392 2014-04-14 Tom Tromey <tromey@redhat.com>
1394 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
1395 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
1397 * value.h (value_aggregate_elt): Update.
1399 2014-04-14 Tom Tromey <tromey@redhat.com>
1401 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
1403 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1405 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1406 (evaluate_subexp_standard): Pass noside argument.
1407 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1408 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1409 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1410 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1411 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1413 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1415 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1416 points to a constant blob.
1418 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1420 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1421 property and store it as the high bound and flag the range accordingly.
1422 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1423 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1424 * gdbtypes.h (enum range_flags): New enum.
1425 (struct range_bounds): Add flags member.
1427 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1429 * c-typeprint.c (c_type_print_varspec_suffix): Added
1430 check for not yet resolved high bound. If unresolved, print
1431 "variable length" string to the console instead of random
1434 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1436 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
1438 (ada_template_to_fixed_record_type_1): Likewise.
1439 (ada_to_fixed_type_1): Likewise.
1440 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1441 (cp_print_value): Likewise.
1442 * d-valprint.c (dynamic_array_type): Likewise.
1443 * findvar.c (address_of_variable): Likewise.
1444 * jv-valprint.c (java_value_print): Likewise.
1445 * valops.c (value_ind): Likewise.
1446 * value.c (coerce_ref): Likewise.
1448 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1450 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1451 value and retrieve the dynamic type size.
1453 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1455 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1456 passed to sizeof is dynamic evaluate the argument to compute the length.
1458 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1459 Joel Brobecker <brobecker@adacore.com>
1461 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1462 (dwarf2_evaluate_property): New function.
1463 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1464 * dwarf2read.c (attr_to_dynamic_prop): New function.
1465 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1467 * gdbtypes.c: Include dwarf2loc.h.
1468 (is_dynamic_type): New function.
1469 (resolve_dynamic_type): New function.
1470 (resolve_dynamic_bounds): New function.
1471 (get_type_length): New function.
1472 (check_typedef): Use get_type_length to compute type length.
1473 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1474 (TYPE_LOW_BOUND_KIND): New macro.
1475 (is_dynamic_type): New function prototype.
1476 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1477 to resolve dynamic properties of the type. Update comment.
1478 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1480 2014-04-14 Richard Henderson <rth@redhat.com>
1482 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
1484 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
1485 Doug Evans <xdje42@gmail.com>
1487 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
1488 dereference TYPE_CODE_REF values.
1490 2014-04-11 Joel Brobecker <brobecker@adacore.com>
1492 Revert the following changes due to regressions:
1494 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1495 (dwarf2_evaluate_property): New function.
1496 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1497 * dwarf2read.c (attr_to_dynamic_prop): New function.
1498 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1500 * gdbtypes.c: Include dwarf2loc.h.
1501 (is_dynamic_type): New function.
1502 (resolve_dynamic_type): New function.
1503 (resolve_dynamic_bounds): New function.
1504 (get_type_length): New function.
1505 (check_typedef): Use get_type_length to compute type length.
1506 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1507 (TYPE_LOW_BOUND_KIND): New macro.
1508 (is_dynamic_type): New function prototype.
1509 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1510 to resolve dynamic properties of the type. Update comment.
1511 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1513 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1514 passed to sizeof is dynamic evaluate the argument to compute the length.
1516 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1517 value and retrieve the dynamic type size.
1519 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
1520 (ada_template_to_fixed_record_type_1): Likewise.
1521 (ada_to_fixed_type_1): Likewise.
1522 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1523 (cp_print_value): Likewise.
1524 * d-valprint.c (dynamic_array_type): Likewise.
1525 * eval.c (evaluate_subexp_with_coercion): Likewise.
1526 * findvar.c (address_of_variable): Likewise.
1527 * jv-valprint.c (java_value_print): Likewise.
1528 * valops.c (value_ind): Likewise.
1529 * value.c (coerce_ref): Likewise.
1531 * c-typeprint.c (c_type_print_varspec_suffix): Added
1532 check for not yet resolved high bound. If unresolved, print
1533 "variable length" string to the console instead of random
1536 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1537 property and store it as the high bound and flag the range accordingly.
1538 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1539 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1540 * gdbtypes.h (enum range_flags): New enum.
1541 (struct range_bounds): Add flags member.
1543 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1544 points to a constant blob.
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 Keith Seitz <keiths@redhat.com>
1557 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
1558 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
1561 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1563 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1564 (evaluate_subexp_standard): Pass noside argument.
1565 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1566 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1567 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1568 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1569 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1571 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1573 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1574 points to a constant blob.
1576 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1578 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1579 property and store it as the high bound and flag the range accordingly.
1580 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1581 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1582 * gdbtypes.h (enum range_flags): New enum.
1583 (struct range_bounds): Add flags member.
1585 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1587 * c-typeprint.c (c_type_print_varspec_suffix): Added
1588 check for not yet resolved high bound. If unresolved, print
1589 "variable length" string to the console instead of random
1592 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1594 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
1595 (ada_template_to_fixed_record_type_1): Likewise.
1596 (ada_to_fixed_type_1): Likewise.
1597 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1598 (cp_print_value): Likewise.
1599 * d-valprint.c (dynamic_array_type): Likewise.
1600 * eval.c (evaluate_subexp_with_coercion): Likewise.
1601 * findvar.c (address_of_variable): Likewise.
1602 * jv-valprint.c (java_value_print): Likewise.
1603 * valops.c (value_ind): Likewise.
1604 * value.c (coerce_ref): Likewise.
1606 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1608 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1609 value and retrieve the dynamic type size.
1611 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1613 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1614 passed to sizeof is dynamic evaluate the argument to compute the length.
1616 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1618 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1619 (dwarf2_evaluate_property): New function.
1620 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1621 * dwarf2read.c (attr_to_dynamic_prop): New function.
1622 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1624 * gdbtypes.c: Include dwarf2loc.h.
1625 (is_dynamic_type): New function.
1626 (resolve_dynamic_type): New function.
1627 (resolve_dynamic_bounds): New function.
1628 (get_type_length): New function.
1629 (check_typedef): Use get_type_length to compute type length.
1630 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1631 (TYPE_LOW_BOUND_KIND): New macro.
1632 (is_dynamic_type): New function prototype.
1633 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1634 to resolve dynamic properties of the type. Update comment.
1635 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1637 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1639 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
1640 declaring high/low bounds and change uses accordingly. Call
1641 create_range_type instead of create_static_range_type.
1642 * gdbtypes.c (create_range_type): New function.
1643 (create_range_type): Convert bounds into struct bound_prop and pass
1644 them to create_range_type.
1645 * gdbtypes.h (struct bound_prop): New struct.
1646 (create_range_type): New function prototype.
1647 (struct range_bounds): Use struct bound_prop instead of LONGEST for
1648 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
1649 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
1651 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
1653 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1655 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
1656 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
1657 * ada-lang.c: All uses of create_range_type updated.
1658 * coffread.c: All uses of create_range_type updated.
1659 * dwarf2read.c: All uses of create_range_type updated.
1660 * f-exp.y: All uses of create_range_type updated.
1661 * m2-valprint.c: All uses of create_range_type updated.
1662 * mdebugread.c: All uses of create_range_type updated.
1663 * stabsread.c: All uses of create_range_type updated.
1664 * valops.c: All uses of create_range_type updated.
1665 * valprint.c: All uses of create_range_type updated.
1667 2014-04-10 Pedro Alves <palves@redhat.com>
1669 * breakpoint.c (single_step_breakpoints)
1670 (single_step_gdbarch): Move up in the file.
1671 (one_breakpoint_xfer_memory): New function, factored out from ...
1672 (breakpoint_xfer_memory): ... here. Also process single-step
1675 2014-04-09 Tristan Gingold <gingold@adacore.com>
1677 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
1679 (darwin_decode_exception_message): Free port only after use.
1681 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
1683 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
1684 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
1685 when setting the size of call_length.
1687 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
1689 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
1690 dereference TYPE_CODE_REF values.
1692 2014-04-07 Joel Brobecker <brobecker@adacore.com>
1694 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
1695 end of warning message.
1697 2014-04-03 Doug Evans <dje@google.com>
1699 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
1700 of stub_comp_unit_die, stub_comp_dir is non-NULL.
1702 2014-04-02 Alan Modra <amodra@gmail.com>
1704 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
1705 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
1706 (struct symbol_file_add_from_memory_args): Add size field.
1707 (find_vdso_size): New function.
1708 (add_vsyscall_page): Attempt to find vdso size.
1710 2014-04-01 Doug Evans <dje@google.com>
1712 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
1714 2014-04-01 Tristan Gingold <gingold@adacore.com>
1716 * darwin-nat.c (darwin_encode_reply): Add prototype.
1717 (darwin_decode_exception_message): Reply to unknown inferiors.
1718 (darwin_decode_message): Handle message by id. Ignore message
1719 to unknown inferior.
1720 (darwin_wait): Discard unknown messages, add debug trace.
1722 2014-03-31 Doug Evans <dje@google.com>
1724 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
1727 2014-03-31 Doug Evans <dje@google.com>
1729 New option "set print symbol-loading".
1731 * solib.c (solib_read_symbols): Only print symbol loading messages
1733 (solib_add): If symbol loading is in "brief" mode, notify user
1734 symbols are being loaded.
1735 (reload_shared_libraries_1): Ditto.
1736 * symfile.c (print_symbol_loading_off): New static global.
1737 (print_symbol_loading_brief): New static global.
1738 (print_symbol_loading_full): New static global.
1739 (print_symbol_loading_enums): New static global.
1740 (print_symbol_loading): New static global.
1741 (print_symbol_loading_p): New function.
1742 (symbol_file_add_with_addrs): Only print symbol loading messages
1744 (_initialize_symfile): Register "print symbol-loading" set/show
1746 * symfile.h (print_symbol_loading_p): Declare.
1748 2014-03-30 Doug Evans <xdje42@gmail.com>
1750 * infrun.c (set_last_target_status): New function.
1751 (handle_inferior_event): Call it.
1753 2014-03-30 Doug Evans <xdje42@gmail.com>
1755 * inferior.h (enum stop_kind): Improve comment.
1757 2014-03-28 Joel Brobecker <brobecker@adacore.com>
1759 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
1760 a reference, strip the reference layer before calling
1761 the lang_ops value_has_mutated callback.
1763 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
1765 Remove some globals from our parser.
1766 * language.c (unk_lang_parser): Add "struct parser_state"
1768 * language.h (struct language_defn) <la_parser>: Likewise.
1769 * parse.c (expout, expout_size, expout_ptr): Remove variables.
1770 (initialize_expout): Add "struct parser_state" argument.
1771 Rewrite function to use the parser state.
1772 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
1773 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
1774 write_exp_elt_longcst, write_exp_elt_dblcst,
1775 write_exp_elt_decfloatcst, write_exp_elt_type,
1776 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
1777 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
1778 write_dollar_variable): Likewise.
1779 (parse_exp_in_context_1): Use parser state.
1780 (insert_type_address_space): Add "struct parser_state" argument.
1782 (increase_expout_size): New function.
1783 * parser-defs.h: Forward declare "struct language_defn" and
1784 "struct parser_state".
1785 (expout, expout_size, expout_ptr): Remove extern declarations.
1786 (parse_gdbarch, parse_language): Rewrite macro declarations to
1787 accept the parser state.
1788 (struct parser_state): New struct.
1789 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
1790 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
1791 write_exp_elt_decfloatcst, write_exp_elt_type,
1792 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
1793 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
1794 write_exp_msymbol, write_dollar_variable,
1795 mark_struct_expression, insert_type_address_space): Add "struct
1796 parser_state" argument.
1797 (increase_expout_size): New function.
1798 * utils.c (do_clear_parser_state): New function.
1799 (make_cleanup_clear_parser_state): Likewise.
1800 * utils.h (make_cleanup_clear_parser_state): New function
1802 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
1803 Update calls to write_exp* in order to pass the parser state.
1804 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1805 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
1806 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1807 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1808 * stap-probe.c (stap_parse_register_operand): Likewise.
1809 (stap_parse_single_operand): Likewise.
1810 (stap_parse_argument_1): Likewise.
1811 (stap_parse_argument): Use parser state.
1812 * stap-probe.h: Include "parser-defs.h".
1813 (struct stap_parse_info) <pstate>: New field.
1814 * c-exp.y (parse_type): Rewrite to use parser state.
1815 (yyparse): Redefine to c_parse_internal.
1816 (pstate): New global variable.
1817 (parse_number): Add "struct parser_state" argument.
1818 (write_destructor_name): Likewise.
1819 (type_exp): Update calls to write_exp* and similars in order to
1821 (exp1, exp, variable, qualified_name, space_identifier,
1822 typename, typebase): Likewise.
1823 (write_destructor_name, parse_number, lex_one_token,
1824 classify_name, classify_inner_name, c_parse): Add "struct
1825 parser_state" argument. Update function to use parser state.
1826 * c-lang.h: Forward declare "struct parser_state".
1827 (c_parse): Add "struct parser_state" argument.
1828 * ada-exp.y (parse_type): Rewrite macro to use parser state.
1829 (yyparse): Redefine macro to ada_parse_internal.
1830 (pstate): New variable.
1831 (write_int, write_object_renaming, write_var_or_type,
1832 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
1833 type_int, type_long, type_long_long, type_float, type_double,
1834 type_long_double, type_char, type_boolean, type_system_address):
1835 Add "struct parser_state" argument.
1836 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
1837 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
1838 var_or_type, aggregate, aggregate_component_list,
1839 positional_list, others, component_group,
1840 component_associations): Update calls to write_exp* and similar
1841 functions in order to use parser state.
1842 (ada_parse, write_var_from_sym, write_int,
1843 write_exp_op_with_string, write_object_renaming,
1844 find_primitive_type, write_selectors, write_ambiguous_var,
1845 write_var_or_type, write_name_assoc, type_int, type_long,
1846 type_long_long, type_float, type_double, type_long_double,
1847 type_char, type_boolean, type_system_address): Add "struct
1848 parser_state" argument. Adjust function to use parser state.
1849 * ada-lang.c (parse): Likewise.
1850 * ada-lang.h: Forward declare "struct parser_state".
1851 (ada_parse): Add "struct parser_state" argument.
1852 * ada-lex.l (processInt, processReal): Likewise. Adjust all
1853 calls to both functions.
1854 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
1856 (yyparse): Redefine macro to f_parse_internal.
1857 (pstate): New variable.
1858 (parse_number): Add "struct parser_state" argument.
1859 (type_exp, exp, subrange, typebase): Update calls to write_exp*
1860 and similars in order to use parser state.
1861 (parse_number): Adjust code to use parser state.
1863 (f_parse): New function.
1864 * f-lang.h: Forward declare "struct parser_state".
1865 (f_parse): Add "struct parser_state" argument.
1866 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
1868 (yyparse): Redefine macro for java_parse_internal.
1869 (pstate): New variable.
1870 (push_expression_name, push_expression_name, insert_exp): Add
1871 "struct parser_state" argument.
1872 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
1873 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
1874 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
1875 PostIncrementExpression, PostDecrementExpression,
1876 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
1877 UnaryExpressionNotPlusMinus, CastExpression,
1878 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
1879 RelationalExpression, EqualityExpression, AndExpression,
1880 ExclusiveOrExpression, InclusiveOrExpression,
1881 ConditionalAndExpression, ConditionalOrExpression,
1882 ConditionalExpression, Assignment, LeftHandSide): Update
1883 calls to write_exp* and similars in order to use parser state.
1884 (parse_number): Ajust code to use parser state.
1886 (java_parse): New function.
1887 (push_variable): Add "struct parser_state" argument. Adjust
1888 code to user parser state.
1889 (push_fieldnames, push_qualified_expression_name,
1890 push_expression_name, insert_exp): Likewise.
1891 * jv-lang.h: Forward declare "struct parser_state".
1892 (java_parse): Add "struct parser_state" argument.
1893 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
1895 (yyparse): Redefine macro to m2_parse_internal.
1896 (pstate): New variable.
1897 (type_exp, exp, fblock, variable, type): Update calls to
1898 write_exp* and similars to use parser state.
1900 (m2_parse): New function.
1901 * m2-lang.h: Forward declare "struct parser_state".
1902 (m2_parse): Add "struct parser_state" argument.
1903 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
1904 * objc-lang.h: Forward declare "struct parser_state".
1905 (end_msglist): Add "struct parser_state" argument.
1906 * p-exp.y (parse_type): Rewrite macro to use parser state.
1907 (yyparse): Redefine macro to pascal_parse_internal.
1908 (pstate): New variable.
1909 (parse_number): Add "struct parser_state" argument.
1910 (type_exp, exp1, exp, qualified_name, variable): Update calls to
1911 write_exp* and similars in order to use parser state.
1912 (parse_number, yylex): Adjust code to use parser state.
1913 (pascal_parse): New function.
1914 * p-lang.h: Forward declare "struct parser_state".
1915 (pascal_parse): Add "struct parser_state" argument.
1916 * go-exp.y (parse_type): Rewrite macro to use parser state.
1917 (yyparse): Redefine macro to go_parse_internal.
1918 (pstate): New variable.
1919 (parse_number): Add "struct parser_state" argument.
1920 (type_exp, exp1, exp, variable, type): Update calls to
1921 write_exp* and similars in order to use parser state.
1922 (parse_number, lex_one_token, classify_name, yylex): Adjust code
1923 to use parser state.
1924 (go_parse): Likewise.
1925 * go-lang.h: Forward declare "struct parser_state".
1926 (go_parse): Add "struct parser_state" argument.
1928 2014-03-27 Doug Evans <dje@google.com>
1930 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
1932 2014-03-27 Doug Evans <dje@google.com>
1934 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
1935 Remove argument abbrev_section. All callers updated.
1937 2014-03-27 Doug Evans <dje@google.com>
1939 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
1940 addr_base, ranges_base.
1942 2014-03-26 Keith Seitz <keiths@redhat.com>
1944 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
1945 types, not VAR_DOMAIN.
1947 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
1949 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
1951 * features/nios2-linux.c: Regenerated.
1952 * features/nios2.c: Regenerated.
1954 2014-03-25 Pedro Alves <palves@redhat.com>
1956 * cli/cli-script.c (script_from_file): Force the interpreter to
1959 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
1961 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
1962 small stack allocation.
1964 2014-03-24 Tristan Gingold <gingold@adacore.com>
1966 * darwin-nat.c (exc_server): Remove unused prototype.
1967 (darwin_dump_message): Correctly display data on x86_64.
1968 (darwin_encode_reply): Fix style.
1969 Add comments and fix indentation.
1971 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
1973 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
1975 2014-03-22 Doug Evans <xdje42@gmail.com>
1977 * infcmd.c: Whitespace fixes.
1978 (interrupt_command): Merge two function comments into one.
1980 2014-03-22 Doug Evans <xdje42@gmail.com>
1982 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
1985 2014-03-22 Yao Qi <yao@codesourcery.com>
1987 * remote.c (target_read_live_memory): Remove.
1988 (memory_xfer_live_readonly_partial): Rename it to
1989 remote_xfer_live_readonly_partial. Remove argument 'object'.
1990 All callers updated. Call remote_read_bytes_1
1991 instead of target_read_live_memory.
1992 * tracepoint.c (set_traceframe_number): Remove.
1993 (make_cleanup_restore_traceframe_number): Likewise .
1994 * tracepoint.h (set_traceframe_number): Remove declaration.
1995 (make_cleanup_restore_traceframe_number): Likewise.
1997 2014-03-22 Yao Qi <yao@codesourcery.com>
1999 * remote.c (remote_read_bytes): Move code on reading from the
2001 (remote_read_bytes_1): ... here. New function.
2003 2014-03-22 Yao Qi <yao@codesourcery.com>
2005 * ctf.c (ctf_xfer_partial): Check the return value of
2006 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
2007 return TARGET_XFER_UNAVAILABLE.
2008 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2009 * target.c (target_read_live_memory): Move it to remote.c.
2010 (memory_xfer_live_readonly_partial): Likewise.
2011 (memory_xfer_partial_1): Move some code to remote_read_bytes.
2012 * remote.c (target_read_live_memory): Moved from target.c.
2013 (memory_xfer_live_readonly_partial): Likewise.
2014 (remote_read_bytes): Factored out from
2015 memory_xfer_partial_1.
2017 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
2019 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
2022 2014-03-21 Pedro Alves <palves@redhat.com>
2024 * infrun.c (normal_stop): Extend comment.
2026 2014-03-21 Hui Zhu <hui@codesourcery.com>
2027 Pedro Alves <palves@redhat.com>
2029 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
2031 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
2032 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
2033 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
2035 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
2037 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
2038 `z' formatted output modifier.
2040 2014-03-20 Tom Tromey <tromey@redhat.com>
2041 Sergio Durigan Junior <sergiodj@redhat.com>
2043 * probe.c (parse_probes): Turn assert into an ordinary error.
2044 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
2045 exceptions when parsing probes. Rearrange the code for clarity.
2047 2014-03-20 Tom Tromey <tromey@redhat.com>
2050 * top.c (execute_command): Only dispatch events if the command
2053 2014-03-20 Tom Tromey <tromey@redhat.com>
2056 * infcall.c: Include event-top.h.
2057 (run_inferior_call): Call async_disable_stdin if needed.
2059 2014-03-20 Pedro Alves <palves@redhat.com>
2061 * infrun.c (prepare_to_proceed): Delete.
2062 (thread_still_needs_step_over): New function.
2063 (find_thread_needs_step_over): New function.
2064 (proceed): If the current thread needs a step-over, set its
2065 steping_over_breakpoint flag. Adjust to use
2066 find_thread_needs_step_over instead of prepare_to_proceed.
2067 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
2068 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
2070 (switch_back_to_stepped_thread): Step over breakpoints of all
2071 threads not the stepping thread, before switching back to the
2074 2014-03-20 Pedro Alves <palves@redhat.com>
2076 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
2078 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
2079 * infrun.c (saved_singlestep_ptid)
2080 (stepping_past_singlestep_breakpoint): Delete.
2081 (resume): Remove stepping_past_singlestep_breakpoint handling.
2082 (proceed): Store the prev_pc of the stepping thread too.
2083 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
2085 (enum infwait_states): Delete infwait_thread_hop_state.
2086 (struct execution_control_state) <hit_singlestep_breakpoint>: New
2088 (handle_inferior_event): Adjust.
2089 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
2090 handling and the thread-hop code. Before removing single-step
2091 breakpoints, check whether the thread hit a single-step breakpoint
2092 of another thread. If it did, the trap is not a random signal.
2093 (switch_back_to_stepped_thread): If the event thread hit a
2094 single-step breakpoint, unblock it before switching to the
2095 stepping thread. Handle the case of the stepped thread having
2097 (keep_going): Handle the case of the current thread moving past a
2098 single-step breakpoint.
2100 2014-03-20 Pedro Alves <palves@redhat.com>
2103 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
2104 are being stepped over.
2105 (breakpoint_address_match): Make extern.
2106 * breakpoint.h (breakpoint_address_match): New declaration.
2107 * inferior.h (stepping_past_instruction_at): New declaration.
2108 * infrun.c (struct step_over_info): New type.
2109 (step_over_info): New global.
2110 (set_step_over_info, clear_step_over_info)
2111 (stepping_past_instruction_at): New functions.
2112 (handle_inferior_event): Clear the step-over info when
2113 trap_expected is cleared.
2114 (resume): Remove now stale comment.
2115 (clear_proceed_status): Clear step-over info.
2116 (proceed): Adjust step-over handling to set or clear the step-over
2117 info instead of removing all breakpoints.
2118 (handle_signal_stop): When setting up a thread-hop, don't remove
2120 (stop_stepping): Clear step-over info.
2121 (keep_going): Adjust step-over handling to set or clear step-over
2122 info and then always inserting breakpoints, instead of removing
2123 all breakpoints when stepping over one.
2125 2014-03-20 Pedro Alves <palves@redhat.com>
2127 * infrun.c (previous_inferior_ptid): Adjust comment.
2128 (deferred_step_ptid): Delete.
2129 (infrun_thread_ptid_changed, prepare_to_proceed)
2130 (init_wait_for_inferior): Adjust.
2131 (handle_signal_stop): Delete deferred_step_ptid handling.
2133 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2136 * defs.h (sync_quit_force_run): New declaration.
2137 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
2138 * event-top.c (async_sigterm_handler): New declaration.
2139 (async_sigterm_token): New variable.
2140 (async_init_signals): Create also async_sigterm_token.
2141 (async_sigterm_handler): New function.
2142 (sync_quit_force_run): New variable.
2143 (handle_sigterm): Replace quit_force call by other calls.
2144 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
2146 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
2148 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
2149 offset into SPE pseudo registers.
2151 2014-03-18 Pedro Alves <palves@redhat.com>
2154 * inferior.h (print_stop_event): Declare.
2155 * infrun.c (print_stop_event): New, factored out from ...
2156 (normal_stop): ... this.
2157 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
2158 of bpstat_print/print_stack_frame.
2160 2014-03-17 Tom Tromey <tromey@redhat.com>
2162 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
2164 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
2166 * ada-lang.c (decode_constrained_packed_array): Perform a
2167 minimal coercion for reference with coerce_ref instead of
2170 2014-03-17 Tristan Gingold <gingold@adacore.com>
2172 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
2173 (darwin_solib_create_inferior_hook): Emit a warning if version
2176 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
2178 * python/py-value.c (get_field_flag): Cast flag_name argument to
2179 PyObject_GetAttrString to support Python 2.4.
2181 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2183 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
2184 (Global Maintainers): Remove Jan Kratochvil.
2186 2014-03-14 Pedro Alves <palves@redhat.com>
2188 * inferior.h (terminal_ours_for_output): Rename to ...
2189 (child_terminal_ours_for_output): ... this.
2190 (terminal_save_ours): Rename to ...
2191 (child_terminal_save_ours): ... this.
2192 (terminal_ours): Rename to ...
2193 (child_terminal_ours): ... this.
2194 (terminal_inferior): Rename to ...
2195 (child_terminal_inferior): ... this.
2196 (terminal_init_inferior): Rename to ...
2197 (child_terminal_init_inferior): ... this.
2198 (terminal_init_inferior_with_pgrp): Rename to ...
2199 (child_terminal_init_inferior_with_pgrp): ... this.
2200 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
2201 (child_terminal_init_with_pgrp): ... this.
2202 (terminal_save_ours): Rename to ...
2203 (child_terminal_save_ours): ... this.
2204 (terminal_init_inferior): Rename to ...
2205 (child_terminal_init): ... this. Adjust.
2206 (terminal_inferior): Rename to ...
2207 (child_terminal_inferior): ... this.
2208 (terminal_ours_for_output): Rename to ...
2209 (child_terminal_ours_for_output): ... this. Adjust.
2210 (terminal_ours): Rename to ...
2211 (child_terminal_ours): ... this.
2212 (terminal_ours_1): Rename to ...
2213 (child_terminal_ours_1): ... this. Adjust.
2214 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
2215 * windows-nat.c (do_initial_windows_stuff): Adjust.
2216 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
2217 (gnu_terminal_init): ... this. Adjust.
2218 (gnu_target): Adjust.
2219 * inf-child.c (inf_child_target): Adjust.
2221 2014-03-13 Doug Evans <xdje42@gmail.com>
2224 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
2227 2014-03-13 Doug Evans <xdje42@gmail.com>
2229 * value.c (record_latest_value): Call release_value_or_incref
2230 instead of release_value.
2232 2014-03-13 Pedro Alves <palves@redhat.com>
2234 * procfs.c (procfs_target): Don't override to_shortname,
2235 to_longname or to_doc.
2237 2014-03-13 Pedro Alves <palves@redhat.com>
2239 * inf-child.c (inf_child_open, inf_child_target): Don't mention
2240 Unix in user visible strings.
2242 2014-03-12 Stan Shebs <stan@codesourcery.com>
2244 * gdbtypes.h: Annotate comments for Doxygen, add a page
2245 block comment with some general info.
2247 2014-03-12 Pedro Alves <palves@redhat.com>
2249 * infcmd.c (prepare_execution_command): New function, factored out
2250 from several execution commands.
2251 (run_command_1, continue_command, step_1, jump_command)
2252 (signal_command, until_command, advance_command, finish_command)
2253 (attach_command): Use prepare_execution_command.
2255 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
2257 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
2260 (struct arm_linux_thread_points): Removed.
2261 (struct arm_linux_process_info): New.
2262 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
2263 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
2264 (arm_linux_find_breakpoints_by_tid): Removed.
2265 (struct arch_lwp_info): New.
2266 (arm_linux_find_process_pid): New functions.
2267 (arm_linux_add_process): New functions.
2268 (arm_linux_process_info_get): New functions.
2269 (arm_linux_forget_process): New function.
2270 (arm_linux_get_debug_reg_state): New function.
2271 (struct update_registers_data): New.
2272 (update_registers_callback): New function.
2273 (arm_linux_insert_hw_breakpoint1): Updated.
2274 (arm_linux_remove_hw_breakpoint1): Updated.
2275 (arm_linux_insert_hw_breakpoint): Updated.
2276 (arm_linux_remove_hw_breakpoint): Updated.
2277 (arm_linux_insert_watchpoint): Updated.
2278 (arm_linux_remove_watchpoint): Updated.
2279 (arm_linux_new_thread): Updated.
2280 (arm_linux_prepare_to_resume): New function.
2281 (arm_linux_new_fork): New function.
2282 (_initialize_arm_linux_nat): Updated.
2284 2014-03-12 Pedro Alves <palves@redhat.com>
2286 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
2288 2014-03-12 Tom Tromey <tromey@redhat.com>
2290 * inf-child.c (return_zero): New function.
2291 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
2292 * aix-thread.c (aix_thread_inferior_created): New function.
2293 (aix_thread_attach): Remove.
2294 (init_aix_thread_ops): Don't set to_attach.
2295 (_initialize_aix_thread): Register inferior_created observer.
2296 * corelow.c (init_core_ops): Don't set to_attach or
2298 * exec.c (init_exec_ops): Don't set to_attach or
2300 * infcmd.c (run_command_1): Use find_run_target. Make direct
2302 (attach_command): Use find_attach_target. Make direct target
2304 * record-btrace.c (init_record_btrace_ops): Don't set
2306 * record-full.c (record_full_can_async_p, record_full_is_async_p):
2308 (init_record_full_ops, init_record_full_core_ops): Update. Don't
2309 set to_create_inferior.
2310 * target.c (complete_target_initialization): Add assertion.
2311 (target_create_inferior): Remove.
2312 (find_default_attach, find_default_create_inferior): Remove.
2313 (find_attach_target, find_run_target): New functions.
2314 (find_default_is_async_p, find_default_can_async_p)
2315 (target_supports_non_stop, target_attach): Remove.
2316 (init_dummy_target): Don't set to_create_inferior or
2317 to_supports_non_stop.
2318 * target.h (struct target_ops) <to_attach>: Add comment. Remove
2319 TARGET_DEFAULT_FUNC.
2320 <to_create_inferior>: Add comment.
2321 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
2322 TARGET_DEFAULT_RETURN.
2323 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
2324 (find_attach_target, find_run_target): Declare.
2325 (target_create_inferior): Remove.
2326 (target_has_execution_1): Update comment.
2327 (target_supports_non_stop): Remove.
2328 * target-delegates.c: Rebuild.
2330 2014-03-12 Pedro Alves <palves@redhat.com>
2332 * inf-child.h: Update comment to not mention Unix.
2334 2014-03-12 Pedro Alves <palves@redhat.com>
2336 * inf-child.c: Update top comment to not mention Unix. Add
2337 generic comment describing how this target is meant to be used.
2338 (inf_child_post_attach, inf_child_post_startup_inferior)
2339 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
2342 2014-03-12 Pedro Alves <palves@redhat.com>
2344 * nto-procfs.c: Include inf-child.h.
2345 (procfs_ops): Delete global.
2346 (procfs_can_run): Delete method.
2347 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
2348 target pointer instead of referencing procfs_ops.
2349 (procfs_prepare_to_store): Delete.
2350 (init_procfs_ops): Delete function.
2351 (procfs_target): New function, based on init_procfs_ops, but
2352 inherit inf_child_target.
2353 (_initialize_procfs): Use procfs_target.
2355 2014-03-12 Pedro Alves <palves@redhat.com>
2357 * windows-nat.c: Include inf-child.h.
2358 (windows_ops): Delete global.
2359 (windows_open, windows_prepare_to_store, windows_can_run): Delete
2361 (init_windows_ops): Delete function.
2362 (windows_target): New function, based on init_windows_ops, but
2363 inherit inf_child_target.
2364 (_initialize_windows_nat): Use windows_target. Install x86
2365 specific target methods here.
2367 2014-03-10 Doug Evans <xdje42@gmail.com>
2369 * guile/guile.c (call_initialize_gdb_module): New function.
2370 (initialize_guile): Replace call to scm_init_guile with call to
2373 2014-03-10 Joel Brobecker <brobecker@adacore.com>
2375 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
2376 in call to TYPE_CODE macro.
2378 2014-03-10 Jerome Guitton <guitton@adacore.com>
2380 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
2381 Resolve tagged types to full view.
2383 2014-03-10 Hui Zhu <hui@codesourcery.com>
2385 * target.h (target_insert_breakpoint): Remove "hardware" from its
2388 2014-03-07 Doug Evans <dje@google.com>
2390 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
2392 2014-03-07 Doug Evans <dje@google.com>
2394 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
2395 Remove unused local comp_dir_attr. Assert exactly one of
2396 stub_comp_unit_die, stub_comp_dir is non-NULL.
2398 2014-03-07 Joel Brobecker <brobecker@adacore.com>
2400 * target.h (complete_target_initialization, add_target):
2403 2014-03-07 Pedro Alves <palves@redhat.com>
2405 * go32-nat.c: Include inf-child.h.
2406 (go32_ops): Delete global.
2407 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
2409 (go32_create_inferior): Push the passed in target pointer instead
2410 of referencing go32_ops.
2411 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
2412 (go32_target): New function, based on init_go32_ops, but inherit
2414 (_initialize_go32_nat): Use go32_target. Move parts of
2417 2014-03-06 Joel Brobecker <brobecker@adacore.com>
2419 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
2420 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
2421 SYMBOL_VALUE_ADDRESS.
2422 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
2424 2014-03-06 Yao Qi <yao@codesourcery.com>
2426 * breakpoint.c (get_tracepoint_by_number): Remove argument
2427 optional_p. All callers updated. Adjust comments. Update
2429 * breakpoint.h (get_tracepoint_by_number): Update declaration.
2431 2014-03-06 Yao Qi <yao@codesourcery.com>
2433 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
2434 early if get_number returns zero. Use 'p' instead of 'args'.
2436 2014-03-06 Yao Qi <yao@codesourcery.com>
2438 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
2441 2014-03-06 Yao Qi <yao@codesourcery.com>
2443 PR breakpoints/16508
2444 * tracepoint.c (check_trace_running): New function.
2445 (trace_find_command): Move code to check_trace_running and
2446 call check_trace_running.
2447 (trace_find_pc_command): Likewise.
2448 (trace_find_tracepoint_command): Likewise.
2449 (trace_find_line_command): Likewise.
2450 (trace_find_range_command): Likewise.
2451 * tracepoint.h (check_trace_running): Likewise.
2452 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
2454 2014-03-06 Yao Qi <yao@codesourcery.com>
2456 * target.h (struct target_ops) <to_traceframe_info>: Use
2457 TARGET_DEFAULT_NORETURN (tcomplain ()).
2458 * target-delegates.c: Regenerated.
2460 2014-03-05 Pedro Alves <palves@redhat.com>
2463 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
2464 void. Update comment.
2465 (dcache_xfer_memory): Delete.
2466 (dcache_read_memory_partial): New, based on the read bits of
2468 (dcache_update): Add status parameter. Use ULONGEST for len, and
2469 adjust. Discard cache lines if the reason for the update was
2471 * dcache.h (dcache_xfer_memory): Delete declaration.
2472 (dcache_read_memory_partial): New declaration.
2473 (dcache_update): Update prototype.
2474 * target.c (raw_memory_xfer_partial): Update the dcache here.
2475 (memory_xfer_partial_1): Don't handle dcache writes here.
2477 2014-03-05 Mike Frysinger <vapier@gentoo.org>
2479 * remote-sim.c (gdbsim_load): Add const to prog.
2481 2014-03-03 Tom Tromey <tromey@redhat.com>
2483 * elfread.c (probe_key): Change to bfd_data.
2484 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
2485 now per-BFD, not per-objfile.
2486 * stap-probe.c (stap_probe_destroy): Update comment.
2487 (handle_stap_probe): Allocate on the per-BFD obstack.
2489 2014-03-03 Tom Tromey <tromey@redhat.com>
2491 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
2492 * breakpoint.c (create_longjmp_master_breakpoint): Use
2494 (add_location_to_breakpoint, bkpt_probe_insert_location)
2495 (bkpt_probe_remove_location): Update.
2496 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
2497 * elfread.c (elf_symfile_relocate_probe): Remove.
2498 (elf_probe_fns): Update.
2499 (insert_exception_resume_breakpoint): Change type of "probe"
2500 parameter to bound_probe.
2501 (check_exception_resume): Update.
2502 * objfiles.c (objfile_relocate1): Don't relocate probes.
2503 * probe.c (bound_probe_s): New typedef.
2504 (parse_probes): Use get_probe_address. Set sal's objfile.
2505 (find_probe_by_pc): Return a bound_probe.
2506 (collect_probes): Return a VEC(bound_probe_s).
2507 (compare_probes): Update.
2508 (gen_ui_out_table_header_info): Change type of "probes"
2510 (info_probes_for_ops): Update.
2511 (get_probe_address): New function.
2512 (probe_safe_evaluate_at_pc): Update.
2513 * probe.h (struct probe_ops) <get_probe_address>: New field.
2514 <set_semaphore, clear_semaphore>: Add objfile parameter.
2515 (struct probe) <objfile>: Remove field.
2517 <address>: Update comment.
2518 (struct bound_probe): New.
2519 (find_probe_by_pc): Return a bound_probe.
2520 (get_probe_address): Declare.
2521 * solib-svr4.c (struct probe_and_action) <address>: New field.
2522 (hash_probe_and_action, equal_probe_and_action): Update.
2523 (register_solib_event_probe): Add address parameter.
2524 (solib_event_probe_at): Update.
2525 (svr4_create_probe_breakpoints): Add objfile parameter. Use
2527 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
2528 (stap_get_probe_address): New function.
2529 (stap_can_evaluate_probe_arguments, compute_probe_arg)
2530 (compile_probe_arg): Update.
2531 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
2533 (handle_stap_probe): Don't relocate the probe.
2534 (stap_relocate): Remove.
2535 (stap_gen_info_probes_table_values): Update.
2536 (stap_probe_ops): Remove stap_relocate.
2537 * symfile-debug.c (debug_sym_relocate_probe): Remove.
2538 (debug_sym_probe_fns): Update.
2539 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
2540 * symtab.c (init_sal): Use memset.
2541 * symtab.h (struct symtab_and_line) <objfile>: New field.
2542 * tracepoint.c (start_tracing, stop_tracing): Update.
2544 2014-03-03 Tom Tromey <tromey@redhat.com>
2546 * probe.h (parse_probes, find_probe_by_pc)
2547 (find_probes_in_objfile): Fix comments.
2549 2014-03-02 Doug Evans <xdje42@gmail.com>
2551 * infrun.c (handle_signal_stop): Replace test for
2552 TARGET_WAITKIND_STOPPED with an assert.
2554 2014-03-02 Doug Evans <xdje42@gmail.com>
2556 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
2558 2014-03-02 Doug Evans <xdje42@gmail.com>
2560 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
2562 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2564 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
2566 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2568 * i386obsd-nat.c: Include "obsd-nat.h".
2569 (_initialize_i386obsd_nat): Call obsd_add_target instead of
2571 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
2573 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2575 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
2577 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2579 * mips64obsd-nat.c: Include "obsd-nath".
2580 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
2582 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
2584 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2586 * amd64obsd-nat.c: Include "obsd-nat,h.
2587 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
2589 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
2591 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
2593 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
2594 (find_overload_match): Update call to find_oload_champ.
2595 (find_oload_champ_namespace_loop): Likewise
2597 2014-02-28 Mark Kettenis <kettenis@gnu.org>
2599 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
2601 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
2602 * config/sparc/obsd64.mh: New file.
2603 * sparc64obsd-nat.c: New file.
2605 * obsd-nat.h: New file.
2606 * obsd-nat.c: New file.
2607 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
2608 (ALLDEPFILES): Add obsd-nat.c.
2610 2014-02-28 Tom Tromey <tromey@redhat.com>
2612 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
2613 * cli-out.h (cli_ui_out_impl): Now const.
2614 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
2615 * ui-out.c (struct ui_out) <impl>: Now const.
2616 (default_ui_out_impl): Now const.
2617 (ui_out_new): Make 'impl' parameter const.
2618 * ui-out.h (ui_out_new): Update.
2620 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2622 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
2624 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2626 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
2628 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2630 Additional PR 8882 fix.
2631 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
2633 2014-02-27 Pedro Alves <palves@redhat.com>
2635 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
2638 2014-02-27 Pedro Alves <palves@redhat.com>
2641 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
2642 * nat/linux-waitpid.c: Include string.h.
2643 (status_to_str): Moved here and made extern.
2644 * nat/linux-waitpid.h (status_to_str): New declaration.
2646 2014-02-27 Hui Zhu <hui@codesourcery.com>
2649 * infrun.c (ptid_match): Move ...
2650 * common/ptid.c (ptid_match): ... here.
2651 * inferior.h (ptid_match): Move ...
2652 * common/ptid.h (ptid_match): ... here.
2654 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2656 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
2657 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
2660 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2662 * obsd-tdep.c (obsd_auxv_parse): New function.
2663 (obsd_init_abi): Set auxv_parse.
2665 * gdbarch.sh (auxv_parse): New.
2666 * gdbarch.h: Regenerated.
2667 * gdbarch.c: Regenerated.
2668 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
2670 2014-02-26 Ludovic Courtès <ludo@gnu.org>
2672 * guile/scm-value.c (gdbscm_history_append_x): New function.
2673 (value_functions): Add it.
2675 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2677 * dwarf2read.c (attr_value_as_address): New function.
2678 (dwarf2_find_base_address, read_call_site_scope): Use
2679 attr_value_as_address in place of DW_ADDR.
2680 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
2681 the low and high addresses. Slight rework of the handling
2682 of the high pc being a constant form, and limit it to
2683 DWARF verson 4 or higher.
2684 (dwarf2_record_block_ranges): Likewise.
2685 (read_partial_die): Likewise.
2686 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
2688 2014-02-26 Tom Tromey <tromey@redhat.com>
2690 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
2692 2014-02-26 Tom Tromey <tromey@redhat.com>
2694 * elfread.c (elf_read_minimal_symbols): Return early if
2695 minimal symbols have already been read. Add "ei" parameter.
2696 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
2697 * minsyms.c (prim_record_minimal_symbol_full): Update.
2698 * objfiles.h (struct objstats) <n_minsyms>: Move...
2699 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
2700 * symmisc.c (print_objfile_statistics): Update.
2702 2014-02-26 Tom Tromey <tromey@redhat.com>
2704 * elfread.c (elf_read_minimal_symbols): New function, from
2706 (elf_symfile_read): Call it.
2708 2014-02-26 Tom Tromey <tromey@redhat.com>
2710 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
2711 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
2712 (lookup_minimal_symbol_solib_trampoline)
2713 (lookup_minimal_symbol_by_pc_section_1)
2714 (lookup_minimal_symbol_and_objfile): Update.
2715 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
2716 Don't allocate a minimal symbol if minsyms have already been read.
2717 (build_minimal_symbol_hash_tables): Update.
2718 (install_minimal_symbols): Do nothing if minsyms already read.
2719 Use the per-BFD obstack.
2720 (terminate_minimal_symbol_table): Use the per-BFD obstack.
2721 * objfiles.c (allocate_objfile): Call
2722 terminate_minimal_symbol_table later.
2723 (have_minimal_symbols): Update.
2724 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
2725 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
2726 Move from struct objfile.
2727 <minsyms_read>: New field.
2728 (struct objfile) <msymbols, minimal_symbol_count,
2729 msymbol_hash, msymbol_demangled_hash>: Move.
2730 (ALL_OBJFILE_MSYMBOLS): Update.
2731 * symfile.c (read_symbols): Set minsyms_read.
2732 (reread_symbols): Update.
2733 * symmisc.c (dump_objfile, dump_msymbols): Update.
2735 2014-02-26 Tom Tromey <tromey@redhat.com>
2737 * minsyms.c (msymbols_sort): Remove.
2738 * minsyms.h (msymbols_sort): Remove.
2739 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
2740 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
2741 * elfread.c (elf_symtab_read): Don't add section offsets.
2742 * xcoffread.c (record_minimal_symbol): Don't add section offset
2743 to minimal symbol address.
2744 * somread.c (text_offset, data_offset): Remove.
2745 (som_symtab_read): Don't add section offsets to minimal symbol
2747 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
2748 Don't add section offsets to minimal symbols.
2749 * coffread.c (coff_symtab_read): Don't add section offsets
2750 to minimal symbol addresses.
2751 * machoread.c (macho_symtab_add_minsym): Don't add section offset
2752 to minimal symbol addresses.
2753 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
2754 section offset to minimal symbol addresses.
2755 * mdebugread.c (parse_partial_symbols): Don't add section
2756 offset to minimal symbol addresses.
2757 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
2758 offset to minimal symbol addresses.
2760 2014-02-26 Tom Tromey <tromey@redhat.com>
2762 * ada-lang.c (ada_main_name): Update.
2763 (ada_add_standard_exceptions): Update.
2764 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
2765 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2766 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
2767 * auxv.c (ld_so_xfer_auxv): Update.
2768 * avr-tdep.c (avr_scan_prologue): Update.
2769 * ax-gdb.c (gen_var_ref): Update.
2770 * blockframe.c (get_pc_function_start)
2771 (find_pc_partial_function_gnu_ifunc): Update.
2772 * breakpoint.c (create_overlay_event_breakpoint)
2773 (create_longjmp_master_breakpoint)
2774 (create_std_terminate_master_breakpoint)
2775 (create_exception_master_breakpoint): Update.
2776 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2777 * c-valprint.c (c_val_print): Update.
2778 * coff-pe-read.c (add_pe_forwarded_sym): Update.
2779 * common/agent.c (agent_look_up_symbols): Update.
2780 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
2781 * dwarf2loc.c (call_site_to_target_addr): Update.
2782 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
2783 * elfread.c (elf_gnu_ifunc_record_cache)
2784 (elf_gnu_ifunc_resolve_by_got): Update.
2785 * findvar.c (default_read_var_value): Update.
2786 * frame.c (inside_main_func): Update.
2787 * frv-tdep.c (frv_frame_this_id): Update.
2788 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2789 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2791 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
2792 (hppa_hpux_find_dummy_bpaddr): Update.
2793 * hppa-tdep.c (hppa_symbol_address): Update.
2794 * infcmd.c (until_next_command): Update.
2795 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
2797 * linespec.c (minsym_found, add_minsym): Update.
2798 * linux-nat.c (get_signo): Update.
2799 * linux-thread-db.c (inferior_has_bug): Update.
2800 * m32c-tdep.c (m32c_return_value)
2801 (m32c_m16c_address_to_pointer): Update.
2802 * m32r-tdep.c (m32r_frame_this_id): Update.
2803 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2804 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2805 * maint.c (maintenance_translate_address): Update.
2806 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
2807 (frob_address): New function.
2808 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
2809 frob_address. Rename parameter to "pc_in".
2810 (compare_minimal_symbols, compact_minimal_symbols): Use raw
2812 (find_solib_trampoline_target, minimal_symbol_upper_bound):
2814 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2815 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
2816 * objc-lang.c (find_objc_msgsend): Update.
2817 * objfiles.c (objfile_relocate1): Update.
2818 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2819 * p-valprint.c (pascal_val_print): Update.
2820 * parse.c (write_exp_msymbol): Update.
2821 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
2822 (ppc_elfv2_skip_entrypoint): Update.
2823 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2824 * printcmd.c (build_address_symbolic, msym_info)
2825 (address_info): Update.
2826 * proc-service.c (ps_pglobal_lookup): Update.
2827 * psymtab.c (find_pc_sect_psymtab_closer)
2828 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
2829 Change msymbol parameter to bound_minimal_symbol.
2830 * ravenscar-thread.c (get_running_thread_id): Update.
2831 * remote.c (remote_check_symbols): Update.
2832 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
2834 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2835 * solib-dsbt.c (lm_base): Update.
2836 * solib-frv.c (lm_base, main_got): Update.
2837 * solib-irix.c (locate_base): Update.
2838 * solib-som.c (som_solib_create_inferior_hook)
2839 (link_map_start): Update.
2840 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
2841 * solib-svr4.c (elf_locate_base, enable_break): Update.
2842 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2843 (flush_ea_cache): Update.
2844 * stabsread.c (define_symbol, scan_file_globals): Update.
2845 * stack.c (find_frame_funname): Update.
2846 * symfile-debug.c (debug_qf_expand_symtabs_matching)
2847 (debug_qf_find_pc_sect_symtab): Update.
2848 * symfile.c (simple_read_overlay_table)
2849 (simple_overlay_update): Update.
2850 * symfile.h (struct quick_symbol_functions)
2851 <find_pc_sect_symtab>: Change type of msymbol to
2852 bound_minimal_symbol.
2853 * symmisc.c (dump_msymbols): Update.
2854 * symtab.c (find_pc_sect_symtab_via_partial)
2855 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
2856 (search_symbols, print_msymbol_info): Update.
2857 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
2858 (MSYMBOL_VALUE_ADDRESS): Redefine.
2859 (BMSYMBOL_VALUE_ADDRESS): New macro.
2860 * tracepoint.c (scope_info): Update.
2861 * tui/tui-disasm.c (tui_find_disassembly_address)
2862 (tui_get_begin_asm_address): Update.
2863 * valops.c (find_function_in_inferior): Update.
2864 * value.c (value_static_field, value_fn_field): Update.
2866 2014-02-26 Tom Tromey <tromey@redhat.com>
2868 * ada-lang.c (ada_update_initial_language): Update.
2869 (ada_main_name, ada_has_this_exception_support): Update.
2870 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
2871 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2872 * arm-tdep.c (arm_skip_stub): Update.
2873 * auxv.c (ld_so_xfer_auxv): Update.
2874 * avr-tdep.c (avr_scan_prologue): Update.
2875 * ax-gdb.c (gen_var_ref): Update.
2876 * breakpoint.c (struct breakpoint_objfile_data)
2877 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
2878 type to bound_minimal_symbol.
2879 (create_overlay_event_breakpoint)
2880 (create_longjmp_master_breakpoint)
2881 (create_std_terminate_master_breakpoint)
2882 (create_exception_master_breakpoint): Update.
2883 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2884 * c-exp.y (classify_name): Update.
2885 * coffread.c (coff_symfile_read): Update.
2886 * common/agent.c (agent_look_up_symbols): Update.
2887 * d-lang.c (d_main_name): Update.
2888 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
2889 * dec-thread.c (enable_dec_thread): Update.
2890 * dwarf2loc.c (call_site_to_target_addr): Update.
2891 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
2892 * eval.c (evaluate_subexp_standard): Update.
2893 * findvar.c (struct minsym_lookup_data) <result>: Change type
2894 to bound_minimal_symbol.
2896 (minsym_lookup_iterator_cb, default_read_var_value): Update.
2897 * frame.c (inside_main_func): Update.
2898 * frv-tdep.c (frv_frame_this_id): Update.
2899 * gcore.c (call_target_sbrk): Update.
2900 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2901 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2903 * go-lang.c (go_main_name): Update.
2904 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
2905 (hppa_hpux_find_import_stub_for_addr): Update.
2906 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
2907 Update. Change return type.
2908 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
2910 * jit.c (jit_breakpoint_re_set_internal): Update.
2911 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
2913 * linux-nat.c (get_signo): Update.
2914 * linux-thread-db.c (inferior_has_bug): Update
2915 * m32c-tdep.c (m32c_return_value)
2916 (m32c_m16c_address_to_pointer): Update.
2917 * m32r-tdep.c (m32r_frame_this_id): Update.
2918 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2919 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2920 * minsyms.c (lookup_minimal_symbol_internal): Rename to
2921 lookup_minimal_symbol. Change return type.
2922 (lookup_minimal_symbol): Remove.
2923 (lookup_bound_minimal_symbol): Update.
2924 (lookup_minimal_symbol_text): Change return type.
2925 (lookup_minimal_symbol_solib_trampoline): Change return type.
2926 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
2927 (lookup_minimal_symbol_solib_trampoline): Change return type.
2928 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2929 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2930 (value_nsstring, find_imps): Update.
2931 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2932 * p-lang.c (pascal_main_name): Update.
2933 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
2934 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2935 * proc-service.c (ps_pglobal_lookup): Update.
2936 * ravenscar-thread.c (get_running_thread_msymbol): Change
2938 (has_ravenscar_runtime, get_running_thread_id): Update.
2939 * remote.c (remote_check_symbols): Update.
2940 * sol-thread.c (ps_pglobal_lookup): Update.
2941 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2942 * solib-dsbt.c (lm_base): Update.
2943 * solib-frv.c (lm_base, frv_relocate_section_addresses):
2945 * solib-irix.c (locate_base): Update.
2946 * solib-som.c (som_solib_create_inferior_hook)
2947 (som_solib_desire_dynamic_linker_symbols, link_map_start):
2949 * solib-spu.c (spu_enable_break): Update.
2950 * solib-svr4.c (elf_locate_base, enable_break): Update.
2951 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2952 (flush_ea_cache): Update.
2953 * stabsread.c (define_symbol): Update.
2954 * symfile.c (simple_read_overlay_table): Update.
2955 * symtab.c (find_pc_sect_line): Update.
2956 * tracepoint.c (scope_info): Update.
2957 * tui-disasm.c (tui_get_begin_asm_address): Update.
2958 * value.c (value_static_field): Update.
2960 2014-02-26 Tom Tromey <tromey@redhat.com>
2962 * minsyms.c (prim_record_minimal_symbol_full): Use
2963 SET_MSYMBOL_VALUE_ADDRESS.
2964 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
2965 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
2966 SET_MSYMBOL_VALUE_ADDRESS.
2967 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2968 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
2970 2014-02-26 Tom Tromey <tromey@redhat.com>
2972 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
2973 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
2974 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
2975 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
2976 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
2977 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
2978 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
2979 * ada-lang.c (ada_main_name): Update.
2980 (ada_lookup_simple_minsym): Update.
2981 (ada_make_symbol_completion_list): Update.
2982 (ada_add_standard_exceptions): Update.
2983 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
2984 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2985 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
2986 * arm-tdep.c (skip_prologue_function): Update.
2987 (arm_skip_stack_protector, arm_skip_stub): Update.
2988 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
2989 (arm_wince_skip_main_prologue): Update.
2990 * auxv.c (ld_so_xfer_auxv): Update.
2991 * avr-tdep.c (avr_scan_prologue): Update.
2992 * ax-gdb.c (gen_var_ref): Update.
2993 * block.c (call_site_for_pc): Update.
2994 * blockframe.c (get_pc_function_start): Update.
2995 (find_pc_partial_function_gnu_ifunc): Update.
2996 * breakpoint.c (create_overlay_event_breakpoint): Update.
2997 (create_longjmp_master_breakpoint): Update.
2998 (create_std_terminate_master_breakpoint): Update.
2999 (create_exception_master_breakpoint): Update.
3000 (resolve_sal_pc): Update.
3001 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3002 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
3004 * c-valprint.c (c_val_print): Update.
3005 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3006 * coffread.c (coff_symfile_read): Update.
3007 * common/agent.c (agent_look_up_symbols): Update.
3008 * dbxread.c (find_stab_function_addr): Update.
3009 (end_psymtab): Update.
3010 * dwarf2loc.c (call_site_to_target_addr): Update.
3011 (func_verify_no_selftailcall): Update.
3012 (tailcall_dump): Update.
3013 (call_site_find_chain_1): Update.
3014 (dwarf_expr_reg_to_entry_parameter): Update.
3015 * elfread.c (elf_gnu_ifunc_record_cache): Update.
3016 (elf_gnu_ifunc_resolve_by_got): Update.
3017 * f-valprint.c (info_common_command): Update.
3018 * findvar.c (read_var_value): Update.
3019 * frame.c (get_prev_frame_1): Update.
3020 (inside_main_func): Update.
3021 * frv-tdep.c (frv_skip_main_prologue): Update.
3022 (frv_frame_this_id): Update.
3023 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3024 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
3025 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
3026 (gnuv3_skip_trampoline): Update.
3027 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
3028 (hppa64_hpux_in_solib_call_trampoline): Update.
3029 (hppa_hpux_skip_trampoline_code): Update.
3030 (hppa64_hpux_search_dummy_call_sequence): Update.
3031 (hppa_hpux_find_import_stub_for_addr): Update.
3032 (hppa_hpux_find_dummy_bpaddr): Update.
3033 * hppa-tdep.c (hppa_symbol_address)
3034 (hppa_lookup_stub_minimal_symbol): Update.
3035 * i386-tdep.c (i386_skip_main_prologue): Update.
3036 (i386_pe_skip_trampoline_code): Update.
3037 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
3038 * infcall.c (get_function_name): Update.
3039 * infcmd.c (until_next_command): Update.
3040 * jit.c (jit_breakpoint_re_set_internal): Update.
3041 (jit_inferior_init): Update.
3042 * linespec.c (minsym_found): Update.
3043 (add_minsym): Update.
3044 * linux-fork.c (info_checkpoints_command): Update.
3045 * linux-nat.c (get_signo): Update.
3046 * linux-thread-db.c (inferior_has_bug): Update.
3047 * m32c-tdep.c (m32c_return_value): Update.
3048 (m32c_m16c_address_to_pointer): Update.
3049 (m32c_m16c_pointer_to_address): Update.
3050 * m32r-tdep.c (m32r_frame_this_id): Update.
3051 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3052 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3053 * maint.c (maintenance_translate_address): Update.
3054 * minsyms.c (add_minsym_to_hash_table): Update.
3055 (add_minsym_to_demangled_hash_table): Update.
3056 (msymbol_objfile): Update.
3057 (lookup_minimal_symbol): Update.
3058 (iterate_over_minimal_symbols): Update.
3059 (lookup_minimal_symbol_text): Update.
3060 (lookup_minimal_symbol_by_pc_name): Update.
3061 (lookup_minimal_symbol_solib_trampoline): Update.
3062 (lookup_minimal_symbol_by_pc_section_1): Update.
3063 (lookup_minimal_symbol_and_objfile): Update.
3064 (prim_record_minimal_symbol_full): Update.
3065 (compare_minimal_symbols): Update.
3066 (compact_minimal_symbols): Update.
3067 (build_minimal_symbol_hash_tables): Update.
3068 (install_minimal_symbols): Update.
3069 (terminate_minimal_symbol_table): Update.
3070 (find_solib_trampoline_target): Update.
3071 (minimal_symbol_upper_bound): Update.
3072 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3073 * mips-tdep.c (mips_stub_frame_sniffer): Update.
3074 (mips_skip_pic_trampoline_code): Update.
3075 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
3076 * objc-lang.c (selectors_info): Update.
3077 (classes_info): Update.
3078 (find_methods): Update.
3079 (find_imps): Update.
3080 (find_objc_msgsend): Update.
3081 * objfiles.c (objfile_relocate1): Update.
3082 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
3083 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3084 * p-valprint.c (pascal_val_print): Update.
3085 * parse.c (write_exp_msymbol): Update.
3086 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
3087 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
3088 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3089 * printcmd.c (build_address_symbolic): Update.
3091 (address_info): Update.
3092 * proc-service.c (ps_pglobal_lookup): Update.
3093 * psymtab.c (find_pc_sect_psymtab_closer): Update.
3094 (find_pc_sect_psymtab): Update.
3095 * python/py-framefilter.c (py_print_frame): Update.
3096 * ravenscar-thread.c (get_running_thread_id): Update.
3097 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
3099 * remote.c (remote_check_symbols): Update.
3100 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
3101 (rs6000_skip_trampoline_code): Update.
3102 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
3103 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3104 * solib-dsbt.c (lm_base): Update.
3105 * solib-frv.c (lm_base): Update.
3107 * solib-irix.c (locate_base): Update.
3108 * solib-som.c (som_solib_create_inferior_hook): Update.
3109 (som_solib_desire_dynamic_linker_symbols): Update.
3110 (link_map_start): Update.
3111 * solib-spu.c (spu_enable_break): Update.
3112 (ocl_enable_break): Update.
3113 * solib-svr4.c (elf_locate_base): Update.
3114 (enable_break): Update.
3115 * spu-tdep.c (spu_get_overlay_table): Update.
3116 (spu_catch_start): Update.
3117 (flush_ea_cache): Update.
3118 * stabsread.c (define_symbol): Update.
3119 (scan_file_globals): Update.
3120 * stack.c (find_frame_funname): Update.
3121 (frame_info): Update.
3122 * symfile.c (simple_read_overlay_table): Update.
3123 (simple_overlay_update): Update.
3124 * symmisc.c (dump_msymbols): Update.
3125 * symtab.c (fixup_section): Update.
3126 (find_pc_sect_line): Update.
3127 (skip_prologue_sal): Update.
3128 (search_symbols): Update.
3129 (print_msymbol_info): Update.
3130 (rbreak_command): Update.
3131 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
3132 (completion_list_objc_symbol): Update.
3133 (default_make_symbol_completion_list_break_on): Update.
3134 * tracepoint.c (scope_info): Update.
3135 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
3136 (tui_get_begin_asm_address): Update.
3137 * valops.c (find_function_in_inferior): Update.
3138 * value.c (value_static_field): Update.
3139 (value_fn_field): Update.
3141 2014-02-26 Tom Tromey <tromey@redhat.com>
3143 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
3144 bound minimal symbols. Move code that knows about minsym
3146 * minsyms.c (minimal_symbol_upper_bound): ... here. New
3148 * minsyms.h (minimal_symbol_upper_bound): Declare.
3149 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
3150 minimal_symbol_upper_bound.
3152 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3154 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
3155 Use the type's name if its basic type does not have a tag.
3157 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3159 * dwarf2read.c (read_subrange_type): Add comment.
3161 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3163 * dwarf2read.c (update_enumeration_type_from_children): New
3164 function, mostly extracted from process_structure_scope.
3165 (read_enumeration_type): Call update_enumeration_type_from_children.
3166 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
3167 and flag_flag_enum fields.
3169 2014-02-26 Pedro Alves <palves@redhat.com>
3171 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
3172 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
3173 to_xfer_partial method.
3175 2014-02-26 Pedro Alves <palves@redhat.com>
3177 * target.c (complete_target_initialization): Don't install
3178 default_xfer_partial as to_xfer_partial hook.
3180 (update_current_target): Don't INHERIT nor de_fault
3181 deprecated_xfer_memory. Delete de_fault macro.
3182 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
3183 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
3184 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
3187 2014-02-26 Pedro Alves <palves@redhat.com>
3189 * go32-nat.c (my_write_child): New function.
3190 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
3191 (go32_xfer_partial): New function.
3192 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
3193 Instead install a to_xfer_partial hook.
3195 2014-02-26 Pedro Alves <palves@redhat.com>
3197 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
3198 to_xfer_partial helper. Rewrite.
3199 (procfs_xfer_partial): New function.
3200 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
3201 Install a to_xfer_partial hook.
3203 2014-02-26 Pedro Alves <palves@redhat.com>
3205 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
3206 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
3207 (m32r_xfer_partial): New function.
3208 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
3209 Install a to_xfer_partial hook.
3211 2014-02-26 Pedro Alves <palves@redhat.com>
3213 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
3215 (mips_xfer_partial): New function.
3216 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
3217 hook. Install a to_xfer_partial hook.
3219 2014-02-26 Joel Brobecker <brobecker@adacore.com>
3221 * gdbtypes.h (create_array_type_with_stride): Add declaration.
3222 * gdbtypes.c (create_array_type_with_stride): New function,
3223 renaming create_array_type, but with an added parameter
3224 called "bit_stride".
3225 (create_array_type): Re-implement using
3226 create_array_type_with_stride.
3227 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
3228 and DW_AT_bit_stride attributes.
3230 2014-02-26 Pedro Alves <palves@redhat.com>
3232 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
3233 task-specific breakpoints.
3235 2014-02-25 Pedro Alves <palves@redhat.com>
3237 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
3238 handling of object == TARGET_OBJECT_UNWIND_TABLE.
3240 2014-02-25 Stan Shebs <stan@codesourcery.com>
3242 * defs.h: Annotate comments for Doxygen.
3244 2014-02-25 Tom Tromey <tromey@redhat.com>
3246 * target.h (target_ignore): Don't declare.
3247 * target.c (target_ignore): Remove.
3249 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3252 * auto-load.c (auto_load_objfile_script_1): Change filename to
3255 2014-02-25 Joel Brobecker <brobecker@adacore.com>
3257 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
3258 documentation. Adjust prototype to match the target_ops
3259 to_xfer_partial method. Adjust implementation accordingly.
3261 2014-02-25 Hui Zhu <hui@codesourcery.com>
3263 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
3266 2014-02-25 Kevin Buettner <kevinb@redhat.com>
3268 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
3269 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
3270 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
3271 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
3272 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
3273 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
3274 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
3275 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
3277 (rl78_register_type): Use a data pointer type for SP and
3278 new pseudo registers mentioned above. Use a 16 bit integer
3279 type for all other register pairs.
3280 (rl78_register_name, rl78_g10_register_name): Update for
3281 new pseudo registers.
3282 (rl78_pseudo_register_read): Likewise.
3283 (rl78_pseudo_register_write): Likewise.
3284 (rl78_dwarf_reg_to_regnum): Return register numbers representing
3285 to the newly added pseudo registers.
3287 2014-02-24 Doug Evans <dje@google.com>
3289 * value.c (record_latest_value): Fix comment.
3290 * printcmd.c (print_command_1): Remove code to handle -1 return from
3291 record_latest_value.
3293 2014-02-24 Pedro Alves <palves@redhat.com>
3295 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
3296 deprecated_xfer_memory hook.
3297 (procfs_xfer_partial): Call procfs_xfer_memory instead
3298 of the deprecated_xfer_memory target hook.
3299 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
3302 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
3304 * windows-nat.c (windows_xfer_shared_libraries): Return
3305 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
3306 requested object is TARGET_OBJECT_LIBRARIES.
3308 2014-02-24 Yao Qi <yao@codesourcery.com>
3310 * target.h (enum target_xfer_status)
3311 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
3312 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
3314 * corefile.c (memory_error_message): User updated.
3315 * exec.c (section_table_read_available_memory): Likewise.
3316 * record-btrace.c (record_btrace_xfer_partial): Likewise.
3317 * target.c (target_xfer_status_to_string): Likewise.
3318 (raw_memory_xfer_partial): Likewise.
3319 (memory_xfer_partial_1, target_xfer_partial): Likewise.
3320 * valops.c (read_value_memory): Likewise.
3321 * exec.h: Update comments.
3323 2014-02-24 Yao Qi <yao@codesourcery.com>
3325 * target.c (target_xfer_status_to_string): Rename argument err
3327 * target.h (target_xfer_status_to_string): Update declaration.
3328 Replace target_xfer_error_to_string with
3329 target_xfer_status_to_string in comment.
3331 2014-02-24 Yao Qi <yao@codesourcery.com>
3333 * mips-linux-nat.c (super_close): Update its type.
3334 (mips_linux_close): Pass 'self' to super_close.
3336 2014-02-24 Yao Qi <yao@codesourcery.com>
3338 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
3339 * corefile.c (read_memory): Adjusted.
3340 * target.c (target_write_with_progress): Adjusted.
3342 2014-02-23 Yao Qi <yao@codesourcery.com>
3346 2013-10-25 Yao Qi <yao@codesourcery.com>
3348 * remote.c (remote_traceframe_info): Return early if
3349 traceframe is not selected.
3351 2013-07-19 Yao Qi <yao@codesourcery.com>
3353 * target.c (update_current_target): Change the default action
3354 of 'to_traceframe_info' from tcomplain to return_zero.
3355 * target.h (struct target_ops) <to_traceframe_info>: Add more
3358 2014-02-23 Yao Qi <yao@codesourcery.com>
3360 * valops.c (read_value_memory): Rewrite it. Call
3361 target_xfer_partial in a loop.
3362 * exec.h (section_table_available_memory): Remove declaration.
3363 Move comments to ...
3364 * exec.c (section_table_available_memory): ... here. Make it
3367 2014-02-23 Yao Qi <yao@codesourcery.com>
3369 * exec.c (section_table_read_available_memory): New function.
3370 * exec.h (section_table_read_available_memory): Declare.
3371 * ctf.c (ctf_xfer_partial): Call
3372 section_table_read_available_memory.
3373 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3375 2014-02-23 Yao Qi <yao@codesourcery.com>
3377 * ctf.c (ctf_xfer_partial): Move code to ...
3378 * exec.c (exec_read_partial_read_only): ... it. New function.
3379 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3380 * tracefile.c: Include "exec.h".
3381 * exec.h (exec_read_partial_read_only): Declare.
3383 2014-02-23 Yao Qi <yao@codesourcery.com>
3385 * tracefile-tfile.c (tfile_has_all_memory): Remove.
3386 (tfile_has_memory): Remove.
3387 (init_tfile_ops): Don't set fields to_has_all_memory and
3388 to_has_memory of tfile_ops.
3389 * tracefile.c (tracefile_has_all_memory): New function.
3390 (tracefile_has_memory): New function.
3391 (init_tracefile_ops): Initialize fields to_has_all_memory and
3392 to_has_memory of 'ops'.
3394 2014-02-23 Yao Qi <yao@codesourcery.com>
3396 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
3397 (ctf_thread_alive, ctf_get_trace_status): Remove.
3398 (init_ctf_ops): Don't set some fields of ctf_ops. Call
3400 * tracefile-tfile.c (tfile_get_trace_status): Remove.
3401 (tfile_has_stack, tfile_has_registers): Remove.
3402 (tfile_thread_alive): Remove.
3403 (init_tfile_ops): Don't set some fields of tfile_ops. Call
3405 * tracefile.c (tracefile_has_stack): New function.
3406 (tracefile_has_registers): New function.
3407 (tracefile_thread_alive): New function.
3408 (tracefile_get_trace_status): New function.
3409 (init_tracefile_ops): New function.
3410 * tracefile.h (init_tracefile_ops): Declare.
3412 2014-02-23 Yao Qi <yao@codesourcery.com>
3414 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
3415 (O_LARGEFILE): Likewise.
3416 (tfile_ops): Likewise.
3417 (TRACE_HEADER_SIZE): Likewise.
3418 (trace_fd, trace_frames_offset, cur_offset): Likewise.
3419 (cur_data_size): Likewise.
3420 (tfile_read, tfile_open, tfile_interp_line): Likewise.
3421 (tfile_close, tfile_files_info): Likewise.
3422 (tfile_get_trace_status): Likewise.
3423 (tfile_get_tracepoint_status): Likewise.
3424 (tfile_get_traceframe_address): Likewise.
3425 (tfile_trace_find, match_blocktype): Likewise.
3426 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
3427 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
3428 (tfile_get_trace_state_variable_value): Likewise.
3429 (tfile_has_all_memory, tfile_has_memory): Likewise.
3430 (tfile_has_stack, tfile_has_registers): Likewise.
3431 (tfile_thread_alive, build_traceframe_info): Likewise.
3432 (tfile_traceframe_info, init_tfile_ops): Likewise.
3433 (_initialize_tracepoint): Don't call init_tfile_ops
3434 and add_target_with_completer.
3435 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
3436 exec.h, completer.h and filenames.h.
3437 (_initialize_tracefile_tfile): New function.
3439 2014-02-23 Yao Qi <yao@codesourcery.com>
3441 * Makefile.in (REMOTE_OBS): Append tracefile.o and
3443 (HFILES_NO_SRCDIR): Add tracefile.h.
3444 * ctf.c: Include "tracefile.h".
3445 * tracefile.h: New file.
3446 * tracefile.c: New file
3447 * tracefile-tfile.c: New file.
3448 * tracepoint.c: Include "tracefile.h".
3449 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
3450 (stop_reason_names): Add const.
3451 (trace_file_writer_xfree): Move it to tracefile.c.
3452 (trace_save, trace_save_command, trace_save_tfile): Likewise.
3453 (trace_save_ctf): Likewise.
3454 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
3455 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
3456 (tfile_write_header, tfile_write_regblock_type): Likewise.
3457 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
3458 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
3459 (tfile_write_raw_data, tfile_end): Likewise.
3460 (tfile_trace_file_writer_new): Likewise.
3461 (free_uploaded_tp): Make it extern.
3462 (free_uploaded_tsv): Make it extern.
3463 (_initialize_tracepoint): Move code to register command 'tsave'
3465 * tracepoint.h (stop_reason_names): Declare.
3466 (struct trace_frame_write_ops): Move it to tracefile.h.
3467 (struct trace_file_write_ops): Likewise.
3468 (struct trace_file_writer): Likewise.
3469 (free_uploaded_tsvs, free_uploaded_tps): Declare.
3471 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3474 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
3476 (get_cores_used_by_process): New parameter num_cores, use it.
3477 (linux_xfer_osdata_processes): Pass num_cores to it.
3478 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
3481 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
3483 * target.c (memory_xfer_partial): Fix length arg in call to
3484 breakpoint_xfer_memory.
3486 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
3489 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
3490 number comes after the + or - signs. Adjust length of register
3491 name to be extracted.
3493 2014-02-20 Tom Tromey <tromey@redhat.com>
3495 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
3496 (ada_varobj_ops): Mark "extern".
3498 2014-02-20 Tom Tromey <tromey@redhat.com>
3500 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
3502 2014-02-20 Doug Evans <xdje42@gmail.com>
3504 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
3505 All callers updated.
3506 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
3507 All callers updated.
3508 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
3509 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
3511 2014-02-20 lin zuojian <manjian2006@gmail.com>
3512 Joel Brobecker <brobecker@adacore.com>
3513 Doug Evans <xdje42@gmail.com>
3516 * dwarf2read.c (struct die_info): New member in_process.
3517 (reset_die_in_process): New function.
3518 (process_die): Set it at the start, reset when returning.
3519 (inherit_abstract_dies): Only call process_die if origin_child_die
3520 not already being processed.
3522 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3524 * windows-nat.c (handle_unload_dll): Add function documentation.
3525 (do_initial_windows_stuff): Add comment explaining why we wait
3526 until after inferior initialization has finished before
3527 processing all DLLs.
3529 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3531 * windows-nat.c (get_module_name): Delete.
3532 (windows_get_exec_module_filename): New function, mostly
3533 inspired from get_module_name.
3534 (windows_pid_to_exec_file): Replace call to get_module_name
3535 by call to windows_get_exec_module_filename.
3537 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3539 * windows-nat.c (handle_load_dll): Rewrite this function's
3540 introductory comment. Remove code using get_module_name
3541 to get the DLL's name.
3543 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3545 * windows-nat.c (get_windows_debug_event): Ignore
3546 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
3547 if windows_initialization_done == 0.
3548 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
3549 Adjust implementation to always load all DLLs.
3550 (do_initial_windows_stuff): Replace call to
3551 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
3553 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3555 * windows-nat.c (_initialize_windows_nat): Deprecate the
3556 "dll-symbols" command. Turn the "add-shared-symbol-files"
3557 and "assf" aliases into commands, and deprecate them as well.
3558 * NEWS: Add entry explaining that "dll-symbols" and its two
3559 aliases are now deprecated.
3561 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3563 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
3564 new-line in debug string. Remove trailing spaces.
3566 2014-02-19 Stan Shebs <stan@codesourcery.com>
3568 * darwin-nat.c (darwin_xfer_partial): Fix return type.
3570 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
3572 * NEWS: Add entry for the new feature
3573 * python/py-value.c (valpy_binop): Call value_x_binop for struct
3576 2014-02-19 Stan Shebs <stan@codesourcery.com>
3578 * MAINTAINERS: List Yao Qi as nios2 maintainer.
3580 2014-02-19 Pedro Alves <palves@redhat.com>
3582 * common/ptid.h (struct ptid): Mention that process_stratum
3583 targets should prefer ptid.lwp.
3585 2014-02-19 Pedro Alves <palves@redhat.com>
3587 * remote.c (remote_thread_alive, write_ptid, read_ptid)
3588 (read_ptid, remote_newthread_step, remote_threads_extra_info)
3589 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
3590 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
3591 store remote thread ids rather than ptid.tid.
3592 (_initialize_remote): Adjust.
3594 2014-02-19 Tom Tromey <tromey@redhat.com>
3596 * target.c (target_get_unwinder): Rewrite.
3597 (target_get_tailcall_unwinder): Rewrite.
3598 * record-btrace.c (record_btrace_to_get_unwinder): New function.
3599 (record_btrace_to_get_tailcall_unwinder): New function.
3600 (init_record_btrace_ops): Update.
3601 * target.h (struct target_ops) <to_get_unwinder,
3602 to_get_tailcall_unwinder>: Now function pointers. Use
3603 TARGET_DEFAULT_RETURN.
3605 2014-02-19 Tom Tromey <tromey@redhat.com>
3607 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
3609 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
3611 2014-02-19 Tom Tromey <tromey@redhat.com>
3613 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
3615 * target-delegates.c: Rebuild.
3616 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
3617 TARGET_DEFAULT_FUNC.
3618 * target.c (default_target_decr_pc_after_break): Rename from
3619 forward_target_decr_pc_after_break. Simplify.
3620 (target_decr_pc_after_break): Rely on delegation.
3622 2014-02-19 Tom Tromey <tromey@redhat.com>
3624 * target.c (update_current_target): Do not INHERIT to_doc or
3625 to_magic. Do not de_fault to_open or to_close.
3627 2014-02-19 Tom Tromey <tromey@redhat.com>
3629 * gcore.h (objfile_find_memory_regions): Declare.
3630 * gcore.c (objfile_find_memory_regions): No longer static. Add
3632 (_initialize_gcore): Don't call exec_set_find_memory_regions.
3633 * exec.c: Include gcore.h.
3634 (exec_set_find_memory_regions): Remove.
3635 (exec_find_memory_regions): Remove.
3636 (exec_do_find_memory_regions): Remove.
3637 (init_exec_ops): Update.
3638 * defs.h (exec_set_find_memory_regions): Remove.
3640 2014-02-19 Tom Tromey <tromey@redhat.com>
3642 * target-delegates.c: Rebuild.
3643 * target.h (struct target_ops) <to_extra_thread_info,
3644 to_thread_name, to_pid_to_exec_file, to_get_section_table,
3645 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
3646 not 0, in TARGET_DEFAULT_RETURN.
3648 2014-02-19 Tom Tromey <tromey@redhat.com>
3650 * target.c (complete_target_initialization): Remove casts. Use
3651 return_zero_has_execution.
3652 (return_zero): Add "ignore" argument.
3653 (return_zero_has_execution): New function.
3654 (init_dummy_target): Remove casts. Use
3655 return_zero_has_execution.
3657 2014-02-19 Tom Tromey <tromey@redhat.com>
3659 * target.c (update_current_target): Update comments. Do not
3662 2014-02-19 Tom Tromey <tromey@redhat.com>
3664 * arm-linux-nat.c (arm_linux_read_description): Delegate when
3666 * corelow.c (core_read_description): Delegate when needed.
3667 * remote.c (remote_read_description): Delegate when needed.
3668 * target-delegates.c: Rebuild.
3669 * target.c (target_read_description): Rewrite.
3670 * target.h (struct target_ops) <to_read_description>: Update
3671 comment. Use TARGET_DEFAULT_RETURN.
3673 2014-02-19 Tom Tromey <tromey@redhat.com>
3675 * target-delegates.c: Rebuild.
3676 * target.c (update_current_target): Don't inherit or default
3678 (find_default_run_target): Check against delegate_can_run.
3679 * target.h (struct target_ops) <to_can_run>: Use
3680 TARGET_DEFAULT_RETURN.
3682 2014-02-19 Tom Tromey <tromey@redhat.com>
3684 * target-delegates.c: Rebuild.
3685 * target.c (target_disconnect): Unconditionally delegate.
3686 * target.h (struct target_ops) <to_disconnect>: Use
3687 TARGET_DEFAULT_NORETURN.
3689 2014-02-19 Tom Tromey <tromey@redhat.com>
3691 * record.c (record_stop): Unconditionally delegate.
3692 * target-delegates.c: Rebuild.
3693 * target.c (target_stop_recording): Unconditionally delegate.
3694 * target.h (struct target_ops) <to_stop_recording>: Use
3695 TARGET_DEFAULT_IGNORE.
3697 2014-02-19 Tom Tromey <tromey@redhat.com>
3699 * target-delegates.c: Rebuild.
3700 * target.c (target_enable_btrace): Unconditionally delegate.
3701 * target.h (struct target_ops) <to_enable_btrace>: Use
3702 TARGET_DEFAULT_NORETURN.
3704 2014-02-19 Tom Tromey <tromey@redhat.com>
3706 * target-delegates.c: Rebuild.
3707 * target.c (target_read_btrace): Unconditionally delegate.
3708 * target.h (struct target_ops) <to_read_btrace>: Use
3709 TARGET_DEFAULT_NORETURN.
3711 2014-02-19 Tom Tromey <tromey@redhat.com>
3713 * target-delegates.c: Rebuild.
3714 * target.c (target_teardown_btrace): Unconditionally delegate.
3715 * target.h (struct target_ops) <to_teardown_btrace>: Use
3716 TARGET_DEFAULT_NORETURN.
3718 2014-02-19 Tom Tromey <tromey@redhat.com>
3720 * target-delegates.c: Rebuild.
3721 * target.c (target_disable_btrace): Unconditionally delegate.
3722 * target.h (struct target_ops) <to_disable_btrace>: Use
3723 TARGET_DEFAULT_NORETURN.
3725 2014-02-19 Tom Tromey <tromey@redhat.com>
3727 * target-delegates.c: Rebuild.
3728 * target.c (default_search_memory): New function.
3729 (simple_search_memory): Update comment.
3730 (target_search_memory): Unconditionally delegate.
3731 * target.h (struct target_ops) <to_search_memory>: Use
3732 TARGET_DEFAULT_FUNC.
3734 2014-02-19 Tom Tromey <tromey@redhat.com>
3736 * auxv.c (default_auxv_parse): No longer static.
3737 (target_auxv_parse): Unconditionally delegate.
3738 * auxv.h (default_auxv_parse): Declare.
3739 * target-delegates.c: Rebuild.
3740 * target.c: Include auxv.h.
3741 * target.h (struct target_ops) <to_auxv_parse>: Use
3742 TARGET_DEFAULT_FUNC.
3744 2014-02-19 Tom Tromey <tromey@redhat.com>
3746 * target-delegates.c: Rebuild.
3747 * target.c (target_memory_map): Unconditionally delegate.
3748 * target.h (struct target_ops) <to_memory_map>: Use
3749 TARGET_DEFAULT_RETURN.
3751 2014-02-19 Tom Tromey <tromey@redhat.com>
3753 * target-delegates.c: Rebuild.
3754 * target.c (target_thread_alive): Unconditionally delegate.
3755 * target.h (struct target_ops) <to_thread_alive>: Use
3756 TARGET_DEFAULT_RETURN.
3758 2014-02-19 Tom Tromey <tromey@redhat.com>
3760 * target-delegates.c: Rebuild.
3761 * target.c (target_save_record): Unconditionally delegate.
3762 * target.h (struct target_ops) <to_save_record>: Use
3763 TARGET_DEFAULT_NORETURN.
3765 2014-02-19 Tom Tromey <tromey@redhat.com>
3767 * target-delegates.c: Rebuild.
3768 * target.c (target_delete_record): Unconditionally delegate.
3769 * target.h (struct target_ops) <to_delete_record>: Use
3770 TARGET_DEFAULT_NORETURN.
3772 2014-02-19 Tom Tromey <tromey@redhat.com>
3774 * target-delegates.c: Rebuild.
3775 * target.c (target_record_is_replaying): Unconditionally
3777 * target.h (struct target_ops) <to_record_is_replaying>: Use
3778 TARGET_DEFAULT_RETURN.
3780 2014-02-19 Tom Tromey <tromey@redhat.com>
3782 * target-delegates.c: Rebuild.
3783 * target.c (target_goto_record_begin): Unconditionally delegate.
3784 * target.h (struct target_ops) <to_goto_record_begin>: Use
3785 TARGET_DEFAULT_NORETURN.
3787 2014-02-19 Tom Tromey <tromey@redhat.com>
3789 * target-delegates.c: Rebuild.
3790 * target.c (target_goto_record_end): Unconditionally delegate.
3791 * target.h (struct target_ops) <to_goto_record_end>: Use
3792 TARGET_DEFAULT_NORETURN.
3794 2014-02-19 Tom Tromey <tromey@redhat.com>
3796 * target-delegates.c: Rebuild.
3797 * target.c (target_goto_record): Unconditionally delegate.
3798 * target.h (struct target_ops) <to_goto_record>: Use
3799 TARGET_DEFAULT_NORETURN.
3801 2014-02-19 Tom Tromey <tromey@redhat.com>
3803 * target-delegates.c: Rebuild.
3804 * target.c (target_insn_history): Unconditionally delegate.
3805 * target.h (struct target_ops) <to_insn_history>: Use
3806 TARGET_DEFAULT_NORETURN.
3808 2014-02-19 Tom Tromey <tromey@redhat.com>
3810 * target-delegates.c: Rebuild.
3811 * target.c (target_insn_history_from): Unconditionally delegate.
3812 * target.h (struct target_ops) <to_insn_history_from>: Use
3813 TARGET_DEFAULT_NORETURN.
3815 2014-02-19 Tom Tromey <tromey@redhat.com>
3817 * target-delegates.c: Rebuild.
3818 * target.c (target_insn_history_range): Unconditionally delegate.
3819 * target.h (struct target_ops) <to_insn_history_range>: Use
3820 TARGET_DEFAULT_NORETURN.
3822 2014-02-19 Tom Tromey <tromey@redhat.com>
3824 * target-delegates.c: Rebuild.
3825 * target.c (target_call_history): Unconditionally delegate.
3826 * target.h (struct target_ops) <to_call_history>: Use
3827 TARGET_DEFAULT_NORETURN.
3829 2014-02-19 Tom Tromey <tromey@redhat.com>
3831 * target-delegates.c: Rebuild.
3832 * target.c (target_call_history_from): Unconditionally delegate.
3833 * target.h (struct target_ops) <to_call_history_from>: Use
3834 TARGET_DEFAULT_NORETURN.
3836 2014-02-19 Tom Tromey <tromey@redhat.com>
3838 * target-delegates.c: Rebuild.
3839 * target.c (target_call_history_range): Unconditionally delegate.
3840 * target.h (struct target_ops) <to_call_history_range>: Use
3841 TARGET_DEFAULT_NORETURN.
3843 2014-02-19 Tom Tromey <tromey@redhat.com>
3845 * target-delegates.c: Rebuild.
3846 * target.c (target_verify_memory): Unconditionally delegate.
3847 * target.h (struct target_ops) <to_verify_memory>: Use
3848 TARGET_DEFAULT_NORETURN.
3850 2014-02-19 Tom Tromey <tromey@redhat.com>
3852 * target-delegates.c: Rebuild.
3853 * target.c (target_core_of_thread): Unconditionally delegate.
3854 * target.h (struct target_ops) <to_core_of_thread>: Use
3855 TARGET_DEFAULT_RETURN.
3857 2014-02-19 Tom Tromey <tromey@redhat.com>
3859 * target-delegates.c: Rebuild.
3860 * target.c (target_flash_done): Unconditionally delegate.
3861 * target.h (struct target_ops) <to_flash_done>: Use
3862 TARGET_DEFAULT_NORETURN.
3864 2014-02-19 Tom Tromey <tromey@redhat.com>
3866 * target-delegates.c: Rebuild.
3867 * target.c (target_flash_erase): Unconditionally delegate.
3868 * target.h (struct target_ops) <to_flash_erase>: Use
3869 TARGET_DEFAULT_NORETURN.
3871 2014-02-19 Tom Tromey <tromey@redhat.com>
3873 * target-delegates.c: Rebuild.
3874 * target.c (target_get_section_table): Unconditionally delegate.
3875 * target.h (struct target_ops) <to_get_section_table>: Use
3876 TARGET_DEFAULT_RETURN.
3878 2014-02-19 Tom Tromey <tromey@redhat.com>
3880 * target-delegates.c: Rebuild.
3881 * target.c (target_pid_to_str): Unconditionally delegate.
3882 (init_dummy_target): Don't initialize to_pid_to_str.
3883 (default_pid_to_str): Rename from dummy_pid_to_str.
3884 * target.h (struct target_ops) <to_pid_to_str>: Use
3885 TARGET_DEFAULT_FUNC.
3887 2014-02-19 Tom Tromey <tromey@redhat.com>
3889 * target-delegates.c: Rebuild.
3890 * target.c (target_find_new_threads): Unconditionally delegate.
3891 * target.h (struct target_ops) <to_find_new_threads>: Use
3892 TARGET_DEFAULT_RETURN.
3894 2014-02-19 Tom Tromey <tromey@redhat.com>
3896 * target-delegates.c: Rebuild.
3897 * target.c (target_program_signals): Unconditionally delegate.
3898 * target.h (struct target_ops) <to_program_signals>: Use
3899 TARGET_DEFAULT_IGNORE.
3901 2014-02-19 Tom Tromey <tromey@redhat.com>
3903 * target-delegates.c: Rebuild.
3904 * target.c (target_pass_signals): Unconditionally delegate.
3905 * target.h (struct target_ops) <to_pass_signals>: Use
3906 TARGET_DEFAULT_IGNORE.
3908 2014-02-19 Tom Tromey <tromey@redhat.com>
3910 * target-delegates.c: Rebuild.
3911 * target.c (default_mourn_inferior): New function.
3912 (target_mourn_inferior): Unconditionally delegate.
3913 * target.h (struct target_ops) <to_mourn_inferior>: Use
3914 TARGET_DEFAULT_FUNC.
3916 2014-02-19 Tom Tromey <tromey@redhat.com>
3918 * target-delegates.c: Rebuild.
3919 * target.c (default_follow_fork): New function.
3920 (target_follow_fork): Unconditionally delegate.
3921 * target.h (struct target_ops) <to_follow_fork>: Use
3922 TARGET_DEFAULT_FUNC.
3924 2014-02-19 Tom Tromey <tromey@redhat.com>
3926 * target-delegates.c: Rebuild.
3927 * target.c (target_kill): Unconditionally delegate.
3928 * target.h (struct target_ops) <to_kill>: Use
3929 TARGET_DEFAULT_NORETURN.
3931 2014-02-19 Tom Tromey <tromey@redhat.com>
3933 * target-delegates.c: Rebuild.
3934 * target.c (target_masked_watch_num_registers): Unconditionally
3936 * target.h (struct target_ops) <to_masked_watch_num_registers>:
3937 Use TARGET_DEFAULT_RETURN.
3939 2014-02-19 Tom Tromey <tromey@redhat.com>
3941 * target-delegates.c: Rebuild.
3942 * target.c (target_remove_mask_watchpoint): Unconditionally
3944 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
3945 TARGET_DEFAULT_RETURN.
3947 2014-02-19 Tom Tromey <tromey@redhat.com>
3949 * target-delegates.c: Rebuild.
3950 * target.c (target_insert_mask_watchpoint): Unconditionally
3952 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
3953 TARGET_DEFAULT_RETURN.
3955 2014-02-19 Tom Tromey <tromey@redhat.com>
3957 * target-delegates.c: Rebuild.
3958 * target.c (target_ranged_break_num_registers): Unconditionally
3960 * target.h (struct target_ops) <to_ranged_break_num_registers>:
3961 Use TARGET_DEFAULT_RETURN.
3963 2014-02-19 Tom Tromey <tromey@redhat.com>
3965 * target-delegates.c: Rebuild.
3966 * target.c (target_fetch_registers): Unconditionally delegate.
3967 * target.h (struct target_ops) <to_fetch_registers>: Use
3968 TARGET_DEFAULT_NORETURN.
3970 2014-02-19 Tom Tromey <tromey@redhat.com>
3972 * target-delegates.c: Rebuild.
3973 * target.c (update_current_target): Don't inherit or default
3975 * target.h (struct target_ops) <to_stop>: Use
3976 TARGET_DEFAULT_IGNORE.
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_can_run_breakpoint_commands.
3983 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
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
3990 to_supports_evaluation_of_breakpoint_conditions.
3991 * target.h (struct target_ops)
3992 <to_supports_evaluation_of_breakpoint_conditions>: Use
3993 TARGET_DEFAULT_RETURN.
3995 2014-02-19 Tom Tromey <tromey@redhat.com>
3997 * target-delegates.c: Rebuild.
3998 * target.c (update_current_target): Don't inherit or default
3999 to_augmented_libraries_svr4_read.
4000 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4001 Use TARGET_DEFAULT_RETURN.
4003 2014-02-19 Tom Tromey <tromey@redhat.com>
4005 * target-delegates.c: Rebuild.
4006 * target.c (update_current_target): Don't inherit or default
4008 * target.h (struct target_ops) <to_can_use_agent>: 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
4016 * target.h (struct target_ops) <to_use_agent>: Use
4017 TARGET_DEFAULT_NORETURN.
4019 2014-02-19 Tom Tromey <tromey@redhat.com>
4021 * target-delegates.c: Rebuild.
4022 * target.c (update_current_target): Don't inherit or default
4024 (return_null): Remove.
4025 * target.h (struct target_ops) <to_traceframe_info>: Use
4026 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
4032 to_static_tracepoint_markers_by_strid.
4033 * target.h (struct target_ops)
4034 <to_static_tracepoint_markers_by_strid>: Use
4035 TARGET_DEFAULT_NORETURN.
4037 2014-02-19 Tom Tromey <tromey@redhat.com>
4039 * target-delegates.c: Rebuild.
4040 * target.c (update_current_target): Don't inherit or default
4041 to_static_tracepoint_marker_at.
4042 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4043 Use TARGET_DEFAULT_RETURN.
4045 2014-02-19 Tom Tromey <tromey@redhat.com>
4047 * target-delegates.c: Rebuild.
4048 * target.c (update_current_target): Don't inherit or default
4050 * target.h (struct target_ops) <to_set_permissions>: Use
4051 TARGET_DEFAULT_IGNORE.
4053 2014-02-19 Tom Tromey <tromey@redhat.com>
4055 * target-delegates.c: Rebuild.
4056 * target.c (update_current_target): Don't inherit or default
4058 * target.h (struct target_ops) <to_get_tib_address>: Use
4059 TARGET_DEFAULT_NORETURN.
4061 2014-02-19 Tom Tromey <tromey@redhat.com>
4063 * target-delegates.c: Rebuild.
4064 * target.c (update_current_target): Don't inherit or default
4066 * target.h (struct target_ops) <to_set_trace_notes>: Use
4067 TARGET_DEFAULT_RETURN.
4069 2014-02-19 Tom Tromey <tromey@redhat.com>
4071 * target-delegates.c: Rebuild.
4072 * target.c (update_current_target): Don't initialize
4073 to_set_trace_buffer_size.
4074 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
4075 TARGET_DEFAULT_IGNORE.
4077 2014-02-19 Tom Tromey <tromey@redhat.com>
4079 * target-delegates.c: Rebuild.
4080 * target.c (update_current_target): Don't inherit or default
4081 to_set_circular_trace_buffer.
4082 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
4083 TARGET_DEFAULT_IGNORE.
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_set_disconnected_tracing.
4090 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
4091 TARGET_DEFAULT_IGNORE.
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_get_min_fast_tracepoint_insn_len.
4098 (return_minus_one): Remove.
4099 * target.h (struct target_ops)
4100 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
4102 2014-02-19 Tom Tromey <tromey@redhat.com>
4104 * target-delegates.c: Rebuild.
4105 * target.c (update_current_target): Don't inherit or default
4106 to_get_raw_trace_data.
4107 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
4108 TARGET_DEFAULT_NORETURN.
4110 2014-02-19 Tom Tromey <tromey@redhat.com>
4112 * target-delegates.c: Rebuild.
4113 * target.c (update_current_target): Don't inherit or default
4114 to_upload_trace_state_variables.
4115 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4116 Use TARGET_DEFAULT_RETURN.
4118 2014-02-19 Tom Tromey <tromey@redhat.com>
4120 * target-delegates.c: Rebuild.
4121 * target.c (update_current_target): Don't inherit or default
4122 to_upload_tracepoints.
4123 * target.h (struct target_ops) <to_upload_tracepoints>: Use
4124 TARGET_DEFAULT_RETURN.
4126 2014-02-19 Tom Tromey <tromey@redhat.com>
4128 * target-delegates.c: Rebuild.
4129 * target.c (update_current_target): Don't inherit or default
4131 * target.h (struct target_ops) <to_save_trace_data>: Use
4132 TARGET_DEFAULT_NORETURN.
4134 2014-02-19 Tom Tromey <tromey@redhat.com>
4136 * target-delegates.c: Rebuild.
4137 * target.c (update_current_target): Don't inherit or default
4138 to_get_trace_state_variable_value.
4139 * target.h (struct target_ops)
4140 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
4142 2014-02-19 Tom Tromey <tromey@redhat.com>
4144 * target-delegates.c: Rebuild.
4145 * target.c (update_current_target): Don't inherit or default
4147 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
4149 2014-02-19 Tom Tromey <tromey@redhat.com>
4151 * target-delegates.c: Rebuild.
4152 * target.c (update_current_target): Don't inherit or default
4154 * target.h (struct target_ops) <to_trace_stop>: Use
4155 TARGET_DEFAULT_NORETURN.
4157 2014-02-19 Tom Tromey <tromey@redhat.com>
4159 * target-delegates.c: Rebuild.
4160 * target.c (update_current_target): Don't inherit or default
4161 to_get_tracepoint_status.
4162 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
4163 TARGET_DEFAULT_NORETURN.
4165 2014-02-19 Tom Tromey <tromey@redhat.com>
4167 * target-delegates.c: Rebuild.
4168 * target.c (update_current_target): Don't inherit or default
4169 to_get_trace_status.
4170 * target.h (struct target_ops) <to_get_trace_status>: Use
4171 TARGET_DEFAULT_RETURN.
4173 2014-02-19 Tom Tromey <tromey@redhat.com>
4175 * target-delegates.c: Rebuild.
4176 * target.c (update_current_target): Don't inherit or default
4178 * target.h (struct target_ops) <to_trace_start>: Use
4179 TARGET_DEFAULT_NORETURN.
4181 2014-02-19 Tom Tromey <tromey@redhat.com>
4183 * target-delegates.c: Rebuild.
4184 * target.c (update_current_target): Don't inherit or default
4185 to_trace_set_readonly_regions.
4186 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4187 Use TARGET_DEFAULT_NORETURN.
4189 2014-02-19 Tom Tromey <tromey@redhat.com>
4191 * target-delegates.c: Rebuild.
4192 * target.c (update_current_target): Don't inherit or default
4193 to_disable_tracepoint.
4194 * target.h (struct target_ops) <to_disable_tracepoint>: Use
4195 TARGET_DEFAULT_NORETURN.
4197 2014-02-19 Tom Tromey <tromey@redhat.com>
4199 * target-delegates.c: Rebuild.
4200 * target.c (update_current_target): Don't inherit or default
4201 to_enable_tracepoint.
4202 * target.h (struct target_ops) <to_enable_tracepoint>: Use
4203 TARGET_DEFAULT_NORETURN.
4205 2014-02-19 Tom Tromey <tromey@redhat.com>
4207 * target-delegates.c: Rebuild.
4208 * target.c (update_current_target): Don't inherit or default
4209 to_download_trace_state_variable.
4210 * target.h (struct target_ops) <to_download_trace_state_variable>:
4211 Use TARGET_DEFAULT_NORETURN.
4213 2014-02-19 Tom Tromey <tromey@redhat.com>
4215 * target-delegates.c: Rebuild.
4216 * target.c (update_current_target): Don't inherit or default
4217 to_can_download_tracepoint.
4218 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
4219 TARGET_DEFAULT_RETURN.
4221 2014-02-19 Tom Tromey <tromey@redhat.com>
4223 * target-delegates.c: Rebuild.
4224 * target.c (update_current_target): Don't inherit or default
4225 to_download_tracepoint.
4226 * target.h (struct target_ops) <to_download_tracepoint>: Use
4227 TARGET_DEFAULT_NORETURN.
4229 2014-02-19 Tom Tromey <tromey@redhat.com>
4231 * target-delegates.c: Rebuild.
4232 * target.c (update_current_target): Don't inherit or default
4234 * target.h (struct target_ops) <to_trace_init>: 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_string_tracing.
4242 * target.h (struct target_ops) <to_supports_string_tracing>: 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_supports_enable_disable_tracepoint.
4250 * target.h (struct target_ops)
4251 <to_supports_enable_disable_tracepoint>: Use
4252 TARGET_DEFAULT_RETURN.
4254 2014-02-19 Tom Tromey <tromey@redhat.com>
4256 * target-delegates.c: Rebuild.
4257 * target.c (update_current_target): Don't inherit or default
4258 to_supports_multi_process.
4259 * target.h (struct target_ops) <to_supports_multi_process>: Use
4260 TARGET_DEFAULT_RETURN.
4262 2014-02-19 Tom Tromey <tromey@redhat.com>
4264 * target-delegates.c: Rebuild.
4265 * target.c (update_current_target): Don't inherit or default
4266 to_get_ada_task_ptid.
4267 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
4268 TARGET_DEFAULT_FUNC.
4270 2014-02-19 Tom Tromey <tromey@redhat.com>
4272 * target-delegates.c: Rebuild.
4273 * target.c (update_current_target): Don't inherit or default
4274 to_thread_architecture.
4275 * target.h (struct target_ops) <to_thread_architecture>: Use
4276 TARGET_DEFAULT_FUNC.
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
4282 to_execution_direction.
4283 * target.h (struct target_ops) <to_execution_direction>: Use
4284 TARGET_DEFAULT_FUNC.
4286 2014-02-19 Tom Tromey <tromey@redhat.com>
4288 * target-delegates.c: Rebuild.
4289 * target.c (update_current_target): Don't inherit or default
4290 to_can_execute_reverse.
4291 * target.h (struct target_ops) <to_can_execute_reverse>: Use
4292 TARGET_DEFAULT_RETURN.
4293 (target_can_execute_reverse): Unconditionally delegate.
4295 2014-02-19 Tom Tromey <tromey@redhat.com>
4297 * target-delegates.c: Rebuild.
4298 * target.c (update_current_target): Don't inherit or default
4300 (dummy_goto_bookmark): Remove.
4301 (init_dummy_target): Don't inherit or default to_goto_bookmark.
4302 * target.h (struct target_ops) <to_goto_bookmark>: Use
4303 TARGET_DEFAULT_NORETURN.
4305 2014-02-19 Tom Tromey <tromey@redhat.com>
4307 * target-delegates.c: Rebuild.
4308 * target.c (update_current_target): Don't inherit or default
4310 (dummy_get_bookmark): Remove.
4311 (init_dummy_target): Don't inherit or default to_get_bookmark.
4312 * target.h (struct target_ops) <to_get_bookmark>: Use
4313 TARGET_DEFAULT_NORETURN
4315 2014-02-19 Tom Tromey <tromey@redhat.com>
4317 * target-delegates.c: Rebuild.
4318 * target.c (update_current_target): Don't inherit or default
4319 to_make_corefile_notes.
4320 (init_dummy_target): Don't initialize to_make_corefile_notes.
4321 * target.h (struct target_ops) <to_make_corefile_notes>: Use
4322 TARGET_DEFAULT_FUNC.
4324 2014-02-19 Tom Tromey <tromey@redhat.com>
4326 * target-delegates.c: Rebuild.
4327 * target.c (update_current_target): Don't inherit or default
4328 to_find_memory_regions.
4329 (init_dummy_target): Don't initialize to_find_memory_regions.
4330 * target.h (struct target_ops) <to_find_memory_regions>: Use
4331 TARGET_DEFAULT_FUNC.
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.h (struct target_ops) <to_log_command>: Use
4339 TARGET_DEFAULT_IGNORE.
4340 (target_log_command): Unconditionally delegate.
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_pid_to_exec_file.
4347 * target.h (struct target_ops) <to_pid_to_exec_file>: 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_thread_name): Unconditionally delegate.
4356 * target.h (struct target_ops) <to_thread_name>: Use
4357 TARGET_DEFAULT_RETURN.
4359 2014-02-19 Tom Tromey <tromey@redhat.com>
4361 * target-delegates.c: Rebuild.
4362 * target.c (update_current_target): Don't inherit or default
4363 to_extra_thread_info.
4364 * target.h (struct target_ops) <to_extra_thread_info>: 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
4372 * target.h (struct target_ops) <to_has_exited>: Use
4373 TARGET_DEFAULT_RETURN..
4375 2014-02-19 Tom Tromey <tromey@redhat.com>
4377 * target-delegates.c: Rebuild.
4378 * target.c (update_current_target): Don't inherit or default
4379 to_set_syscall_catchpoint.
4380 (return_one): Remove.
4381 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
4382 TARGET_DEFAULT_RETURN.
4384 2014-02-19 Tom Tromey <tromey@redhat.com>
4386 * target-delegates.c: Rebuild.
4387 * target.c (update_current_target): Don't inherit or default
4388 to_insert_exec_catchpoint.
4389 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
4390 TARGET_DEFAULT_RETURN.
4392 2014-01-08 Tom Tromey <tromey@redhat.com>
4394 * target-delegates.c: Rebuild.
4395 * target.c (update_current_target): Don't inherit or default
4396 to_insert_exec_catchpoint.
4397 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
4398 TARGET_DEFAULT_RETURN.
4400 2014-02-19 Tom Tromey <tromey@redhat.com>
4402 * target-delegates.c: Rebuild.
4403 * target.c (update_current_target): Don't inherit or default
4404 to_remove_vfork_catchpoint.
4405 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
4406 TARGET_DEFAULT_RETURN.
4408 2014-02-19 Tom Tromey <tromey@redhat.com>
4410 * target-delegates.c: Rebuild.
4411 * target.c (update_current_target): Don't inherit or default
4412 to_insert_vfork_catchpoint.
4413 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
4414 TARGET_DEFAULT_RETURN.
4416 2014-02-19 Tom Tromey <tromey@redhat.com>
4418 * target-delegates.c: Rebuild.
4419 * target.c (update_current_target): Don't inherit or default
4420 to_remove_fork_catchpoint.
4421 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
4422 TARGET_DEFAULT_RETURN.
4424 2014-02-19 Tom Tromey <tromey@redhat.com>
4426 * target-delegates.c: Rebuild.
4427 * target.c (update_current_target): Don't inherit or default
4428 to_insert_fork_catchpoint.
4429 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
4430 TARGET_DEFAULT_RETURN.
4432 2014-02-19 Tom Tromey <tromey@redhat.com>
4434 * target-delegates.c: Rebuild.
4435 * target.c (update_current_target): Don't inherit or default
4436 to_post_startup_inferior.
4437 * target.h (struct target_ops) <to_post_startup_inferior>: Use
4438 TARGET_DEFAULT_IGNORE.
4440 2014-02-19 Tom Tromey <tromey@redhat.com>
4442 * target-delegates.c: Rebuild.
4443 * target.c (update_current_target): Don't inherit or default
4445 * target.h (struct target_ops) <to_load>: Use
4446 TARGET_DEFAULT_NORETURN.
4448 2014-02-19 Tom Tromey <tromey@redhat.com>
4450 * target-delegates.c: Rebuild.
4451 * target.c (update_current_target): Don't inherit or default
4453 * target.h (struct target_ops) <to_terminal_info>: Use
4454 TARGET_DEFAULT_FUNC.
4456 2014-02-19 Tom Tromey <tromey@redhat.com>
4458 * target-delegates.c: Rebuild.
4459 * target.c (update_current_target): Don't inherit or default
4460 to_terminal_save_ours.
4461 * target.h (struct target_ops) <to_terminal_save_ours>: Use
4462 TARGET_DEFAULT_IGNORE.
4464 2014-02-19 Tom Tromey <tromey@redhat.com>
4466 * target-delegates.c: Rebuild.
4467 * target.c (update_current_target): Don't inherit or default
4469 * target.h (struct target_ops) <to_terminal_ours>: Use
4470 TARGET_DEFAULT_IGNORE.
4472 2014-02-19 Tom Tromey <tromey@redhat.com>
4474 * target-delegates.c: Rebuild.
4475 * target.c (update_current_target): Don't inherit or default
4476 to_terminal_ours_for_output.
4477 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
4478 TARGET_DEFAULT_IGNORE.
4480 2014-02-19 Tom Tromey <tromey@redhat.com>
4482 * target-delegates.c: Rebuild.
4483 * target.c (update_current_target): Don't inherit or default
4484 to_terminal_inferior.
4485 * target.h (struct target_ops) <to_terminal_inferior>: Use
4486 TARGET_DEFAULT_IGNORE.
4488 2014-02-19 Tom Tromey <tromey@redhat.com>
4490 * target-delegates.c: Rebuild.
4491 * target.c (update_current_target): Don't inherit or default
4493 * target.h (struct target_ops) <to_terminal_init>: Use
4494 TARGET_DEFAULT_IGNORE.
4496 2014-02-19 Tom Tromey <tromey@redhat.com>
4498 * target-delegates.c: Rebuild.
4499 * target.c (update_current_target): Don't inherit or default
4500 to_can_accel_watchpoint_condition.
4501 * target.h (struct target_ops)
4502 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
4504 2014-02-19 Tom Tromey <tromey@redhat.com>
4506 * target-delegates.c: Rebuild.
4507 * target.c (update_current_target): Don't inherit or default
4508 to_region_ok_for_hw_watchpoint.
4509 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4510 Use TARGET_DEFAULT_FUNC.
4512 2014-02-19 Tom Tromey <tromey@redhat.com>
4514 * target-delegates.c: Rebuild.
4515 * target.c (update_current_target): Don't inherit or default
4516 to_watchpoint_addr_within_range.
4517 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
4518 Use TARGET_DEFAULT_FUNC.
4520 2014-02-19 Tom Tromey <tromey@redhat.com>
4522 * target-delegates.c: Rebuild.
4523 * target.c (update_current_target): Don't inherit or default
4524 to_remove_watchpoint.
4525 * target.h (struct target_ops) <to_remove_watchpoint>: Use
4526 TARGET_DEFAULT_NORETURN.
4528 2014-02-19 Tom Tromey <tromey@redhat.com>
4530 * target-delegates.c: Rebuild.
4531 * target.c (update_current_target): Don't inherit or default
4532 to_insert_watchpoint.
4533 * target.h (struct target_ops) <to_insert_watchpoint>: Use
4534 TARGET_DEFAULT_RETURN.
4536 2014-02-19 Tom Tromey <tromey@redhat.com>
4538 * target-delegates.c: Rebuild.
4539 * target.c (update_current_target): Don't inherit or default
4540 to_remove_hw_breakpoint.
4541 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
4542 TARGET_DEFAULT_RETURN.
4544 2014-02-19 Tom Tromey <tromey@redhat.com>
4546 * target-delegates.c: Rebuild.
4547 * target.c (update_current_target): Don't inherit or default
4548 to_insert_hw_breakpoint.
4549 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
4550 TARGET_DEFAULT_RETURN.
4552 2014-02-19 Tom Tromey <tromey@redhat.com>
4554 * target-delegates.c: Rebuild.
4555 * target.c (update_current_target): Don't inherit or default
4556 to_can_use_hw_breakpoint.
4557 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
4558 TARGET_DEFAULT_RETURN.
4560 2014-02-19 Tom Tromey <tromey@redhat.com>
4562 * target-delegates.c: Rebuild.
4563 * target.c (update_current_target): Don't inherit or default
4565 * target.h (struct target_ops) <to_files_info>: Use
4566 TARGET_DEFAULT_IGNORE.
4568 2014-02-19 Tom Tromey <tromey@redhat.com>
4570 * target-delegates.c: Rebuild.
4571 * target.c (update_current_target): Don't inherit or default
4573 * target.h (struct target_ops) <to_store>: Use
4574 TARGET_DEFAULT_NORETURN.
4576 2014-02-19 Tom Tromey <tromey@redhat.com>
4578 * target-delegates.c: Rebuild.
4579 * target.c (update_current_target): Don't inherit or default
4581 * target.h (struct target_ops) <to_post_attach>: Use
4582 TARGET_DEFAULT_IGNORE.
4584 2014-02-19 Tom Tromey <tromey@redhat.com>
4586 * target-delegates.c: Rebuild.
4587 * target.c (update_current_target): Don't inherit or default
4589 (default_rcmd): New function.
4590 (do_monitor_command): Unconditionally delegate.
4591 * target.h (struct target_ops) <to_rmcd>: Use
4592 TARGET_DEFAULT_FUNC.
4594 2014-02-19 Tom Tromey <tromey@redhat.com>
4596 * target-delegates.c: Rebuild.
4597 * target.c (init_dummy_target): Don't initialize to_attach.
4598 (target_attach): Unconditionally delegate.
4599 * target.h (struct target_ops) <to_attach>: Use
4600 TARGET_DEFAULT_FUNC.
4602 2014-02-19 Tom Tromey <tromey@redhat.com>
4604 * target-delegates.c: Rebuild.
4605 * target.c (target_detach): Unconditionally delegate.
4606 (init_dummy_target): Don't initialize to_detach.
4607 * target.h (struct target_ops) <to_detach>: Use
4608 TARGET_DEFAULT_IGNORE.
4610 2014-02-19 Tom Tromey <tromey@redhat.com>
4612 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4614 (target_augmented_libraries_svr4_read): Add argument.
4615 * target.c (update_current_target): Update.
4616 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
4619 2014-02-19 Tom Tromey <tromey@redhat.com>
4621 * target.h (struct target_ops) <to_call_history_range>: Add
4623 * target.c (target_call_history_range): Add argument.
4624 * record-btrace.c (record_btrace_call_history_range): Add 'self'
4626 (record_btrace_call_history_from): Update.
4628 2014-02-19 Tom Tromey <tromey@redhat.com>
4630 * target.h (struct target_ops) <to_call_history_from>: Add
4632 * target.c (target_call_history_from): Add argument.
4633 * record-btrace.c (record_btrace_call_history_from): Add 'self'
4636 2014-02-19 Tom Tromey <tromey@redhat.com>
4638 * target.h (struct target_ops) <to_call_history>: Add argument.
4639 * target.c (target_call_history): Add argument.
4640 * record-btrace.c (record_btrace_call_history): Add 'self'
4643 2014-02-19 Tom Tromey <tromey@redhat.com>
4645 * target.h (struct target_ops) <to_insn_history_range>: Add
4647 * target.c (target_insn_history_range): Add argument.
4648 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
4650 (record_btrace_insn_history_from): Update.
4652 2014-02-19 Tom Tromey <tromey@redhat.com>
4654 * target.h (struct target_ops) <to_insn_history_from>: Add
4656 * target.c (target_insn_history_from): Add argument.
4657 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
4660 2014-02-19 Tom Tromey <tromey@redhat.com>
4662 * target.h (struct target_ops) <to_insn_history>: Add argument.
4663 * target.c (target_insn_history): Add argument.
4664 * record-btrace.c (record_btrace_insn_history): Add 'self'
4667 2014-02-19 Tom Tromey <tromey@redhat.com>
4669 * target.h (struct target_ops) <to_goto_record>: Add argument.
4670 * target.c (target_goto_record): Add argument.
4671 * record-full.c (record_full_goto): Add 'self' argument.
4672 * record-btrace.c (record_btrace_goto): Add 'self' argument.
4674 2014-02-19 Tom Tromey <tromey@redhat.com>
4676 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
4677 * target.c (target_goto_record_end): Add argument.
4678 * record-full.c (record_full_goto_end): Add 'self' argument.
4679 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
4681 2014-02-19 Tom Tromey <tromey@redhat.com>
4683 * target.h (struct target_ops) <to_goto_record_begin>: Add
4685 * target.c (target_goto_record_begin): Add argument.
4686 * record-full.c (record_full_goto_begin): Add 'self' argument.
4687 * record-btrace.c (record_btrace_goto_begin): Add 'self'
4690 2014-02-19 Tom Tromey <tromey@redhat.com>
4692 * target.h (struct target_ops) <to_record_is_replaying>: Add
4694 * target.c (target_record_is_replaying): Add argument.
4695 * record-full.c (record_full_is_replaying): Add 'self' argument.
4696 * record-btrace.c (record_btrace_is_replaying): Add 'self'
4698 (record_btrace_xfer_partial, record_btrace_store_registers)
4699 (record_btrace_prepare_to_store, record_btrace_resume)
4700 (record_btrace_wait, record_btrace_decr_pc_after_break)
4701 (record_btrace_find_new_threads, record_btrace_thread_alive):
4704 2014-02-19 Tom Tromey <tromey@redhat.com>
4706 * target.h (struct target_ops) <to_delete_record>: Add argument.
4707 * target.c (target_delete_record): Add argument.
4708 * record-full.c (record_full_delete): Add 'self' argument.
4710 2014-02-19 Tom Tromey <tromey@redhat.com>
4712 * target.h (struct target_ops) <to_save_record>: Add argument.
4713 * target.c (target_save_record): Add argument.
4714 * record-full.c (record_full_save): Add 'self' argument.
4715 (record_full_save): Add 'self' argument.
4717 2014-02-19 Tom Tromey <tromey@redhat.com>
4719 * target.h (struct target_ops) <to_info_record>: Add argument.
4720 * target.c (target_info_record): Add argument.
4721 * record.c (info_record_command): Add argument.
4722 * record-full.c (record_full_info): Add 'self' argument.
4723 * record-btrace.c (record_btrace_info): Add 'self' argument.
4725 2014-02-19 Tom Tromey <tromey@redhat.com>
4727 * target.h (struct target_ops) <to_stop_recording>: Add argument.
4728 * target.c (target_stop_recording): Add argument.
4729 * record.c (record_stop): Add argument.
4730 * record-btrace.c (record_btrace_stop_recording): Add 'self'
4733 2014-02-19 Tom Tromey <tromey@redhat.com>
4735 * target.h (struct target_ops) <to_read_btrace>: Add argument.
4736 * target.c (struct target_ops) <to_read_btrace>: Add argument.
4737 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
4739 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
4740 (_initialize_amd64_linux_nat): Use it.
4741 * i386-linux-nat.c (i386_linux_read_btrace): New function.
4742 (_initialize_i386_linux_nat): Use it.
4744 2014-02-19 Tom Tromey <tromey@redhat.com>
4746 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
4747 * target.c (target_teardown_btrace): Add argument.
4748 * remote.c (remote_teardown_btrace): Add 'self' argument.
4749 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
4751 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
4754 2014-02-19 Tom Tromey <tromey@redhat.com>
4756 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
4757 * target.c (target_disable_btrace): Add argument.
4758 * remote.c (remote_disable_btrace): Add 'self' argument.
4759 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
4761 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
4764 2014-02-19 Tom Tromey <tromey@redhat.com>
4766 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
4767 * target.c (target_enable_btrace): Add argument.
4768 * remote.c (remote_enable_btrace): Add 'self' argument.
4769 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
4771 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
4774 2014-02-19 Tom Tromey <tromey@redhat.com>
4776 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
4777 (target_can_use_agent): Add argument.
4778 * target.c (update_current_target): Update.
4779 * remote.c (remote_can_use_agent): Add 'self' argument.
4780 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
4782 2014-02-19 Tom Tromey <tromey@redhat.com>
4784 * target.h (struct target_ops) <to_use_agent>: Add argument.
4785 (target_use_agent): Add argument.
4786 * target.c (update_current_target): Update.
4787 * remote.c (remote_use_agent): Add 'self' argument.
4788 * inf-child.c (inf_child_use_agent): Add 'self' argument.
4790 2014-02-19 Tom Tromey <tromey@redhat.com>
4792 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
4793 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
4794 (target_traceframe_info): Add argument.
4795 * target.c (update_current_target): Update.
4796 * remote.c (remote_traceframe_info): Add 'self' argument.
4797 * ctf.c (ctf_traceframe_info): Add 'self' argument.
4799 2014-02-19 Tom Tromey <tromey@redhat.com>
4801 * target.h (target_static_tracepoint_markers_by_strid): Add
4803 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
4805 * target.c (update_current_target): Update.
4806 * remote.c (struct target_ops)
4807 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
4808 * linux-nat.c (struct target_ops)
4809 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
4811 2014-02-19 Tom Tromey <tromey@redhat.com>
4813 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4815 (target_static_tracepoint_marker_at): Add argument.
4816 * target.c (update_current_target): Update.
4817 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
4820 2014-02-19 Tom Tromey <tromey@redhat.com>
4822 * target.h (struct target_ops) <to_set_permissions>: Add argument.
4823 (target_set_permissions): Add argument.
4824 * target.c (update_current_target): Update.
4825 * remote.c (remote_set_permissions): Add 'self' argument.
4826 (remote_start_remote): Update.
4828 2014-02-19 Tom Tromey <tromey@redhat.com>
4830 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
4831 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
4832 (target_get_tib_address): Add argument.
4833 * target.c (update_current_target): Update.
4834 * remote.c (remote_get_tib_address): Add 'self' argument.
4836 2014-02-19 Tom Tromey <tromey@redhat.com>
4838 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
4839 (target_set_trace_notes): Add argument.
4840 * target.c (update_current_target): Update.
4841 * remote.c (remote_set_trace_notes): Add 'self' argument.
4843 2014-02-19 Tom Tromey <tromey@redhat.com>
4845 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
4847 (target_set_trace_buffer_size): Add argument.
4848 * target.c (update_current_target): Update.
4849 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
4851 2014-02-19 Tom Tromey <tromey@redhat.com>
4853 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
4855 (target_set_circular_trace_buffer): Add argument.
4856 * target.c (update_current_target): Update.
4857 * remote.c (remote_set_circular_trace_buffer): Add 'self'
4860 2014-02-19 Tom Tromey <tromey@redhat.com>
4862 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
4864 (target_set_disconnected_tracing): Add argument.
4865 * target.c (update_current_target): Update.
4866 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
4868 2014-02-19 Tom Tromey <tromey@redhat.com>
4870 * target.h (struct target_ops)
4871 <to_get_min_fast_tracepoint_insn_len>: Add argument.
4872 (target_get_min_fast_tracepoint_insn_len): Add argument.
4873 * target.c (update_current_target): Update.
4874 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
4877 2014-02-19 Tom Tromey <tromey@redhat.com>
4879 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
4881 (target_get_raw_trace_data): Add argument.
4882 * target.c (update_current_target): Update.
4883 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
4885 2014-02-19 Tom Tromey <tromey@redhat.com>
4887 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4889 (target_upload_trace_state_variables): Add argument.
4890 * target.c (update_current_target): Update.
4891 * remote.c (remote_upload_trace_state_variables): Add 'self'
4893 (remote_start_remote): Update.
4895 2014-02-19 Tom Tromey <tromey@redhat.com>
4897 * target.h (struct target_ops) <to_upload_tracepoints>: Add
4899 (target_upload_tracepoints): Add argument.
4900 * target.c (update_current_target): Update.
4901 * remote.c (remote_upload_tracepoints): Add 'self' argument.
4902 (remote_start_remote): Update.
4904 2014-02-19 Tom Tromey <tromey@redhat.com>
4906 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
4907 (target_save_trace_data): Add argument.
4908 * target.c (update_current_target): Update.
4909 * remote.c (remote_save_trace_data): Add 'self' argument.
4911 2014-02-19 Tom Tromey <tromey@redhat.com>
4913 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
4915 * target.h (struct target_ops)
4916 <to_get_trace_state_variable_value>: Add argument.
4917 (target_get_trace_state_variable_value): Add argument.
4918 * target.c (update_current_target): Update.
4919 * remote.c (remote_get_trace_state_variable_value): Add 'self'
4921 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
4923 2014-02-19 Tom Tromey <tromey@redhat.com>
4925 * tracepoint.c (tfile_trace_find): Add 'self' argument.
4926 * target.h (struct target_ops) <to_trace_find>: Add argument.
4927 (target_trace_find): Add argument.
4928 * target.c (update_current_target): Update.
4929 * remote.c (remote_trace_find): Add 'self' argument.
4930 * ctf.c (ctf_trace_find): Add 'self' argument.
4932 2014-02-19 Tom Tromey <tromey@redhat.com>
4934 * target.h (struct target_ops) <to_trace_stop>: Add argument.
4935 (target_trace_stop): Add argument.
4936 * target.c (update_current_target): Update.
4937 * remote.c (remote_trace_stop): Add 'self' argument.
4939 2014-02-19 Tom Tromey <tromey@redhat.com>
4941 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
4942 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
4944 (target_get_tracepoint_status): Add argument.
4945 * target.c (update_current_target): Update.
4946 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
4948 2014-02-19 Tom Tromey <tromey@redhat.com>
4950 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
4951 * target.h (struct target_ops) <to_get_trace_status>: Add
4953 (target_get_trace_status): Add argument.
4954 * target.c (update_current_target): Update.
4955 * remote.c (remote_get_trace_status): Add 'self' argument.
4956 (remote_start_remote, remote_can_download_tracepoint): Update.
4957 * ctf.c (ctf_get_trace_status): Add 'self' argument.
4959 2014-02-19 Tom Tromey <tromey@redhat.com>
4961 * target.h (struct target_ops) <to_trace_start>: Add argument.
4962 (target_trace_start): Add argument.
4963 * target.c (update_current_target): Update.
4964 * remote.c (remote_trace_start): Add 'self' argument.
4966 2014-02-19 Tom Tromey <tromey@redhat.com>
4968 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4970 (target_trace_set_readonly_regions): Add argument.
4971 * target.c (update_current_target): Update.
4972 * remote.c (remote_trace_set_readonly_regions): Add 'self'
4975 2014-02-19 Tom Tromey <tromey@redhat.com>
4977 * target.h (struct target_ops) <to_disable_tracepoint>: Add
4979 (target_disable_tracepoint): Add argument.
4980 * target.c (update_current_target): Update.
4981 * remote.c (remote_disable_tracepoint): Add 'self' argument.
4983 2014-02-19 Tom Tromey <tromey@redhat.com>
4985 * target.h (struct target_ops) <to_enable_tracepoint>: Add
4987 (target_enable_tracepoint): Add argument.
4988 * target.c (update_current_target): Update.
4989 * remote.c (remote_enable_tracepoint): Add 'self' argument.
4991 2014-02-19 Tom Tromey <tromey@redhat.com>
4993 * target.h (struct target_ops) <to_download_trace_state_variable>:
4995 (target_download_trace_state_variable): Add argument.
4996 * target.c (update_current_target): Update.
4997 * remote.c (remote_download_trace_state_variable): Add 'self'
5000 2014-02-19 Tom Tromey <tromey@redhat.com>
5002 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
5004 (target_can_download_tracepoint): Add argument.
5005 * target.c (update_current_target): Update.
5006 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
5008 2014-02-19 Tom Tromey <tromey@redhat.com>
5010 * target.h (struct target_ops) <to_download_tracepoint>: Add
5012 (target_download_tracepoint): Add argument.
5013 * target.c (update_current_target): Update.
5014 * remote.c (remote_download_tracepoint): Add 'self' argument.
5016 2014-02-19 Tom Tromey <tromey@redhat.com>
5018 * target.h (struct target_ops) <to_trace_init>: Add argument.
5019 (target_trace_init): Add argument.
5020 * target.c (update_current_target): Update.
5021 * remote.c (remote_trace_init): Add 'self' argument.
5023 2014-02-19 Tom Tromey <tromey@redhat.com>
5025 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
5026 * target.c (target_fileio_readlink): Add argument.
5027 * remote.c (remote_hostio_readlink): Add 'self' argument.
5028 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
5030 2014-02-19 Tom Tromey <tromey@redhat.com>
5032 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
5033 * target.c (target_fileio_unlink): Add argument.
5034 * remote.c (remote_hostio_unlink): Add 'self' argument.
5035 (remote_file_delete): Update.
5036 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
5038 2014-02-19 Tom Tromey <tromey@redhat.com>
5040 * target.h (struct target_ops) <to_fileio_close>: Add argument.
5041 * target.c (target_fileio_close): Add argument.
5042 * remote.c (remote_hostio_close): Add 'self' argument.
5043 (remote_hostio_close_cleanup): Update.
5044 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
5046 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
5048 2014-02-19 Tom Tromey <tromey@redhat.com>
5050 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
5051 * target.c (target_fileio_pread): Add argument.
5052 * remote.c (remote_hostio_pread): Add 'self' argument.
5053 (remote_bfd_iovec_pread, remote_file_get): Update.
5054 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
5056 2014-02-19 Tom Tromey <tromey@redhat.com>
5058 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
5059 * target.c (target_fileio_pwrite): Add argument.
5060 * remote.c (remote_hostio_pwrite): Add 'self' argument.
5061 (remote_file_put): Update.
5062 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
5064 2014-02-19 Tom Tromey <tromey@redhat.com>
5066 * target.h (struct target_ops) <to_fileio_open>: Add argument.
5067 * target.c (target_fileio_open): Add argument.
5068 * remote.c (remote_hostio_open): Add 'self' argument.
5069 (remote_bfd_iovec_open): Add 'self' argument.
5070 (remote_file_put): Add 'self' argument.
5071 (remote_file_get): Add 'self' argument.
5072 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
5074 2014-02-19 Tom Tromey <tromey@redhat.com>
5076 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5078 (target_can_run_breakpoint_commands): Add argument.
5079 * target.c (update_current_target): Update.
5080 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
5082 (remote_insert_breakpoint): Add 'self' argument.
5083 (remote_insert_hw_breakpoint): Add 'self' argument.
5084 (remote_can_run_breakpoint_commands): Add 'self' argument.
5086 2014-02-19 Tom Tromey <tromey@redhat.com>
5088 * target.h (struct target_ops)
5089 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
5090 (target_supports_evaluation_of_breakpoint_conditions): Add
5092 * target.c (update_current_target): Update.
5093 * remote.c (remote_supports_cond_breakpoints): Add 'self'
5095 (remote_insert_breakpoint): Add 'self' argument.
5096 (remote_insert_hw_breakpoint): Add 'self' argument.
5097 (remote_supports_cond_breakpoints): Add 'self' argument.
5099 2014-02-19 Tom Tromey <tromey@redhat.com>
5101 * target.h (struct target_ops) <to_supports_string_tracing>: Add
5103 (target_supports_string_tracing): Add argument.
5104 * target.c (update_current_target): Update.
5105 * remote.c (remote_supports_string_tracing): Add 'self' argument.
5107 2014-02-19 Tom Tromey <tromey@redhat.com>
5109 * target.h (struct target_ops)
5110 <to_supports_disable_randomization>: Add argument.
5111 * target.c (find_default_supports_disable_randomization): Add
5113 (target_supports_disable_randomization): Add argument.
5114 (find_default_supports_disable_randomization): Add 'self'
5116 * remote.c (extended_remote_supports_disable_randomization): Add
5118 (remote_supports_disable_randomization): Add 'self' argument.
5119 (extended_remote_create_inferior): Update.
5120 * linux-nat.c (linux_nat_supports_disable_randomization): Add
5123 2014-02-19 Tom Tromey <tromey@redhat.com>
5125 * target.h (struct target_ops)
5126 <to_supports_enable_disable_tracepoint>: Add argument.
5127 (target_supports_enable_disable_tracepoint): Add argument.
5128 * target.c (update_current_target): Update.
5129 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
5132 2014-02-19 Tom Tromey <tromey@redhat.com>
5134 * target.h (struct target_ops) <to_supports_multi_process>: Add
5136 (target_supports_multi_process): Add argument.
5137 * target.c (update_current_target): Update.
5138 * remote.c (remote_supports_multi_process): Add 'self' argument.
5139 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
5141 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
5144 2014-02-19 Tom Tromey <tromey@redhat.com>
5146 * target.h (struct target_ops) <to_execution_direction>: Add
5148 (target_execution_direction): Add argument.
5149 * target.c (default_execution_direction): Add 'self' argument.
5150 * record-full.c (record_full_execution_direction): Add 'self'
5153 2014-02-19 Tom Tromey <tromey@redhat.com>
5155 * target.h (struct target_ops) <to_can_execute_reverse>: Add
5157 (target_can_execute_reverse): Add argument.
5158 * remote.c (remote_can_execute_reverse): Add 'self' argument.
5159 * record-full.c (record_full_can_execute_reverse): Add 'self'
5161 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
5164 2014-02-19 Tom Tromey <tromey@redhat.com>
5166 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
5167 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
5169 (target_get_ada_task_ptid): Add argument.
5170 * target.c (update_current_target): Update.
5171 (default_get_ada_task_ptid): Add 'self' argument.
5172 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
5173 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
5174 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
5176 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
5178 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
5180 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
5182 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
5183 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
5186 2014-02-19 Tom Tromey <tromey@redhat.com>
5188 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
5189 (target_goto_bookmark): Add argument.
5190 * target.c (dummy_goto_bookmark): Add 'self' argument.
5191 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
5193 2014-02-19 Tom Tromey <tromey@redhat.com>
5195 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
5196 (target_get_bookmark): Add argument.
5197 * target.c (dummy_get_bookmark): Add 'self' argument.
5198 * record-full.c (record_full_get_bookmark): Add 'self' argument.
5200 2014-02-19 Tom Tromey <tromey@redhat.com>
5202 * target.h (struct target_ops) <to_make_corefile_notes>: Add
5204 (target_make_corefile_notes): Add argument.
5205 * target.c (dummy_make_corefile_notes): Add 'self' argument.
5206 * procfs.c (procfs_make_note_section): Add 'self' argument.
5207 (procfs_make_note_section): Add 'self' argument.
5208 (procfs_make_note_section): Add 'self' argument.
5209 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
5211 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
5212 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
5213 * exec.c (exec_make_note_section): Add 'self' argument.
5214 (exec_make_note_section): Add 'self' argument.
5216 2014-02-19 Tom Tromey <tromey@redhat.com>
5218 * target.h (struct target_ops) <to_find_memory_regions>: Add
5220 (target_find_memory_regions): Add argument.
5221 * target.c (dummy_find_memory_regions): Add 'self' argument.
5222 * procfs.c (proc_find_memory_regions): Add 'self' argument.
5223 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
5224 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
5225 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
5226 * exec. (exec_do_find_memory_regions): New global.
5227 (exec_set_find_memory_regions): Rewrite.
5228 (exec_find_memory_regions): New function.
5229 (init_exec_ops): Use exec_find_memory_regions.
5231 2014-02-19 Tom Tromey <tromey@redhat.com>
5233 * target.h (struct target_ops) <to_supports_non_stop>: Add
5235 * target.c (find_default_supports_non_stop): Add argument.
5236 (target_supports_non_stop): Add argument.
5237 (find_default_supports_non_stop): Add 'self' argument.
5238 * remote.c (remote_supports_non_stop): Add 'self' argument.
5239 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
5241 2014-02-19 Tom Tromey <tromey@redhat.com>
5243 * target.h (struct target_ops) <to_log_command>: Add argument.
5244 (target_log_command): Add argument.
5245 * serial.h (serial_log_command): Add 'self' argument.
5246 * serial.c (serial_log_command): Add 'self' argument.
5248 2014-02-19 Tom Tromey <tromey@redhat.com>
5250 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
5251 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
5253 (target_pid_to_exec_file): Add argument.
5254 * target.c (debug_to_pid_to_exec_file): Add argument.
5255 (update_current_target): Update.
5256 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
5257 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
5258 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
5259 (linux_handle_extended_wait): Update.
5260 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
5261 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
5262 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
5263 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
5265 2014-02-19 Tom Tromey <tromey@redhat.com>
5267 * target.h (struct target_ops) <to_rcmd>: Add argument.
5268 (target_rcmd): Add argument.
5269 * target.c (debug_to_rcmd): Add argument.
5270 (update_current_target, do_monitor_command): Update.
5271 * remote.c (remote_rcmd): Add 'self' argument.
5272 * monitor.c (monitor_rcmd): Add 'self' argument.
5274 2014-02-19 Tom Tromey <tromey@redhat.com>
5276 * windows-nat.c (windows_stop): Add 'self' argument.
5277 * target.h (struct target_ops) <to_stop>: Add argument.
5278 * target.c (target_stop): Add argument.
5279 (debug_to_stop): Add argument.
5280 (update_current_target): Update.
5281 * remote.c (remote_stop): Add 'self' argument.
5282 * remote-sim.c (gdbsim_stop): Add 'self' argument.
5283 (gdbsim_cntrl_c): Update.
5284 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
5285 * procfs.c (procfs_stop): Add 'self' argument.
5286 * nto-procfs.c (procfs_stop): Add 'self' argument.
5287 * monitor.c (monitor_stop): Add 'self' argument.
5288 (monitor_open): Update.
5289 * linux-nat.c (linux_nat_stop): Add argument.
5290 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
5291 * gnu-nat.c (gnu_stop): Add 'self' argument.
5292 * darwin-nat.c (darwin_stop): Add 'self' argument.
5294 2014-02-19 Tom Tromey <tromey@redhat.com>
5296 * target.h (struct target_ops) <to_thread_name>: Add argument.
5297 * target.c (target_thread_name): Add argument.
5298 (update_current_target): Update.
5299 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
5301 2014-02-19 Tom Tromey <tromey@redhat.com>
5303 * target.h (struct target_ops) <to_extra_thread_info>: Add
5305 (target_extra_thread_info): Add argument.
5306 * target.c (update_current_target): Update.
5307 * remote.c (remote_threads_extra_info): Add 'self' argument.
5308 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
5310 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
5311 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
5312 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
5314 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
5316 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
5318 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
5321 2014-02-19 Tom Tromey <tromey@redhat.com>
5323 * target.h (struct target_ops) <to_program_signals>: Add argument.
5324 * target.c (target_program_signals): Add argument.
5325 * remote.c (remote_program_signals): Add 'self' argument.
5327 2014-02-19 Tom Tromey <tromey@redhat.com>
5329 * target.h (struct target_ops) <to_pass_signals>: Add argument.
5330 * target.c (target_pass_signals): Add argument.
5331 * remote.c (remote_pass_signals): Add 'self' argument.
5332 (remote_start_remote): Update.
5333 * procfs.c (procfs_pass_signals): Add 'self' argument.
5334 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
5335 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
5336 (linux_nat_create_inferior, linux_nat_attach): Update.
5338 2014-02-19 Tom Tromey <tromey@redhat.com>
5340 * windows-nat.c (windows_can_run): Add 'self' argument.
5341 * target.h (struct target_ops) <to_can_run>: Add argument.
5342 (target_can_run): Add argument.
5343 * target.c (debug_to_can_run): Add argument.
5344 (update_current_target): Update.
5345 * nto-procfs.c (procfs_can_run): Add 'self' argument.
5346 * inf-child.c (inf_child_can_run): Add 'self' argument.
5347 * go32-nat.c (go32_can_run): Add 'self' argument.
5349 2014-02-19 Tom Tromey <tromey@redhat.com>
5351 * target.h (struct target_ops) <to_has_exited>: Add argument.
5352 (target_has_exited): Add argument.
5353 * target.c (debug_to_has_exited): Add argument.
5354 (update_current_target): Update.
5356 2014-02-19 Tom Tromey <tromey@redhat.com>
5358 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
5360 (target_set_syscall_catchpoint): Add argument.
5361 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
5363 * target.c (update_current_target): Update.
5365 2014-02-19 Tom Tromey <tromey@redhat.com>
5367 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
5369 (target_remove_exec_catchpoint): Add argument.
5370 * target.c (debug_to_remove_exec_catchpoint): Add argument.
5371 (update_current_target): Update.
5372 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
5375 2014-02-19 Tom Tromey <tromey@redhat.com>
5377 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
5379 (target_insert_exec_catchpoint): Add argument.
5380 * target.c (debug_to_insert_exec_catchpoint): Add argument.
5381 (update_current_target): Update.
5382 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
5385 2014-02-19 Tom Tromey <tromey@redhat.com>
5387 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
5389 (target_remove_vfork_catchpoint): Add argument.
5390 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
5391 (update_current_target): Update.
5392 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
5395 2014-02-19 Tom Tromey <tromey@redhat.com>
5397 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
5399 (target_insert_vfork_catchpoint): Add argument.
5400 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
5401 (update_current_target): Update.
5402 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
5405 2014-02-19 Tom Tromey <tromey@redhat.com>
5407 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
5409 (target_remove_fork_catchpoint): Add argument.
5410 * target.c (debug_to_remove_fork_catchpoint): Add argument.
5411 (update_current_target): Update.
5412 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
5415 2014-02-19 Tom Tromey <tromey@redhat.com>
5417 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
5419 (target_insert_fork_catchpoint): Add argument.
5420 * target.c (debug_to_insert_fork_catchpoint): Add argument.
5421 (update_current_target): Update.
5422 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
5425 2014-02-19 Tom Tromey <tromey@redhat.com>
5427 * target.h (struct target_ops) <to_post_startup_inferior>: Add
5429 (target_post_startup_inferior): Add argument.
5430 * target.c (debug_to_post_startup_inferior): Add argument.
5431 (update_current_target): Update.
5432 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
5434 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
5436 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
5438 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
5440 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
5442 (super_post_startup_inferior): Likewise.
5443 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
5445 (super_post_startup_inferior): Likewise.
5446 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
5447 Add 'self' argument.
5448 (super_post_startup_inferior): Likewise.
5450 2014-02-19 Tom Tromey <tromey@redhat.com>
5452 * target.h (struct target_ops) <to_load>: Add argument.
5453 * target.c (target_load): Add argument.
5454 (debug_to_load): Add argument.
5455 (update_current_target): Update.
5456 * remote.c (remote_load): Add 'self' argument.
5457 * remote-sim.c (gdbsim_load): Add 'self' argument.
5458 * remote-mips.c (mips_load): Add 'self' argument.
5459 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
5460 * monitor.c (monitor_load): Add 'self' argument.
5461 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
5463 2014-02-19 Tom Tromey <tromey@redhat.com>
5465 * target.h (struct target_ops) <to_terminal_info>: Add argument.
5466 (target_terminal_info): Add argument.
5467 * target.c (debug_to_terminal_info): Add argument.
5468 (default_terminal_info): Likewise.
5469 * inflow.c (child_terminal_info): Add 'self' argument.
5470 * inferior.h (child_terminal_info): Add 'self' argument.
5471 * go32-nat.c (go32_terminal_info): Add 'self' argument.
5473 2014-02-19 Tom Tromey <tromey@redhat.com>
5475 * target.h (struct target_ops) <to_terminal_save_ours>: Add
5477 (target_terminal_save_ours): Add argument.
5478 * target.c (debug_to_terminal_save_ours): Add argument.
5479 (update_current_target): Update.
5480 * inflow.c (terminal_save_ours): Add 'self' argument.
5481 * inferior.h (terminal_save_ours): Add 'self' argument.
5483 2014-02-19 Tom Tromey <tromey@redhat.com>
5485 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
5486 (target_terminal_ours): Add argument.
5487 * target.c (debug_to_terminal_ours): Add argument.
5488 (update_current_target): Update.
5489 * remote.c (remote_terminal_ours): Add 'self' argument.
5490 (remote_close): Update.
5491 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
5492 * inflow.c (terminal_ours): Add 'self' argument.
5493 * inferior.h (terminal_ours): Add 'self' argument.
5494 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
5496 2014-02-19 Pedro Alves <palves@redhat.com>
5497 Tom Tromey <tromey@redhat.com>
5499 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
5501 (target_terminal_ours_for_output): Add argument.
5502 * target.c (debug_to_terminal_ours_for_output): Add argument.
5503 (update_current_target): Update.
5504 * inflow.c (terminal_ours_for_output): Add 'self' argument.
5505 * inferior.h (terminal_ours_for_output): Add 'self' argument.
5506 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
5508 2014-02-19 Tom Tromey <tromey@redhat.com>
5510 * target.h (struct target_ops) <to_terminal_inferior>: Add
5512 * target.c (target_terminal_inferior): Add argument.
5513 (update_current_target): Update.
5514 * remote.c (remote_terminal_inferior): Add 'self' argument.
5515 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
5516 * inflow.c (terminal_inferior): Add 'self' argument.
5517 * inferior.h (terminal_inferior): Add 'self' argument.
5518 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
5519 (go32_terminal_inferior): Add 'self' argument.
5521 2014-02-19 Tom Tromey <tromey@redhat.com>
5523 * target.h (struct target_ops) <to_terminal_init>: Add argument.
5524 (target_terminal_init): Add argument.
5525 * target.c (debug_to_terminal_init): Add argument.
5526 (update_current_target): Update.
5527 * inflow.c (terminal_init_inferior): Add 'self' argument.
5528 * inferior.h (terminal_init_inferior): Add 'self' argument.
5529 * go32-nat.c (go32_terminal_init): Add 'self' argument.
5530 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
5532 2014-02-19 Tom Tromey <tromey@redhat.com>
5534 * target.h (struct target_ops)
5535 <to_can_accel_watchpoint_condition>: Add argument.
5536 (target_can_accel_watchpoint_condition): Add argument.
5537 * target.c (debug_to_can_accel_watchpoint_condition): Add
5539 (update_current_target): Update.
5540 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
5543 2014-02-19 Tom Tromey <tromey@redhat.com>
5545 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5547 (target_region_ok_for_hw_watchpoint): Add argument.
5548 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
5549 (default_region_ok_for_hw_watchpoint): Add argument.
5550 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
5551 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
5553 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
5555 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
5557 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
5559 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
5561 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
5563 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
5564 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
5566 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
5567 Add 'self' argument.
5569 2014-02-19 Tom Tromey <tromey@redhat.com>
5571 * target.h (struct target_ops) <to_insert_watchpoint>: Add
5573 (target_insert_watchpoint): Add argument.
5574 * target.c (debug_to_insert_watchpoint): Add argument.
5575 (update_current_target): Update.
5576 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
5577 * remote.c (remote_insert_watchpoint): Add 'self' argument.
5578 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
5579 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
5580 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
5581 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
5583 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
5584 (procfs_insert_hw_watchpoint): Add 'self' argument.
5585 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
5587 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
5589 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
5591 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
5592 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
5594 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
5597 2014-02-19 Tom Tromey <tromey@redhat.com>
5599 * target.h (struct target_ops) <to_remove_watchpoint>: Add
5601 (target_remove_watchpoint): Add argument.
5602 * target.c (debug_to_remove_watchpoint): Add argument.
5603 (update_current_target): Update.
5604 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
5605 * remote.c (remote_remove_watchpoint): Add 'self' argument.
5606 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
5607 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
5608 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
5609 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
5611 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
5612 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
5614 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
5616 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
5618 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
5619 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
5621 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
5624 2014-02-19 Tom Tromey <tromey@redhat.com>
5626 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
5628 (target_remove_hw_breakpoint): Add argument.
5629 * target.c (debug_to_remove_hw_breakpoint): Add argument.
5630 (update_current_target): Update.
5631 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
5632 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
5634 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
5635 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
5637 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
5640 2014-02-19 Tom Tromey <tromey@redhat.com>
5642 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
5644 (target_insert_hw_breakpoint): Add argument.
5645 * target.c (debug_to_insert_hw_breakpoint): Add argument.
5646 (update_current_target): Update.
5647 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
5648 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
5650 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
5651 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
5652 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
5654 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
5657 2014-02-19 Tom Tromey <tromey@redhat.com>
5659 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
5661 (target_can_use_hardware_watchpoint): Add argument.
5662 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
5663 (update_current_target): Update.
5664 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
5666 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
5668 * remote.c (remote_check_watch_resources): Add 'self' argument.
5669 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
5670 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
5672 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
5673 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
5675 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
5677 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
5679 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
5681 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
5683 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
5685 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
5686 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
5688 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
5691 2014-02-19 Tom Tromey <tromey@redhat.com>
5693 * target.h (struct target_ops) <to_post_attach>: Add argument.
5694 (target_post_attach): Add argument.
5695 * target.c (debug_to_post_attach): Add argument.
5696 (update_current_target): Update.
5697 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
5698 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
5699 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
5700 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
5701 * inf-child.c (inf_child_post_attach): Add 'self' argument.
5703 2014-02-19 Tom Tromey <tromey@redhat.com>
5705 * windows-nat.c (windows_close): Add 'self' argument.
5706 * tracepoint.c (tfile_close): Add 'self' argument.
5707 * target.h (struct target_ops) <to_close>: Add argument.
5708 * target.c (target_close): Add argument.
5709 (update_current_target): Update.
5710 * remote.c (remote_close): Add 'self' argument.
5711 * remote-sim.c (gdbsim_close): Add 'self' argument.
5712 * remote-mips.c (mips_close): Add 'self' argument.
5713 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
5714 * record-full.c (record_full_close): Add 'self' argument.
5715 * record-btrace.c (record_btrace_close): Add 'self' argument.
5716 * monitor.h (monitor_close): Add 'self' argument.
5717 * monitor.c (monitor_close): Add 'self' argument.
5718 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
5719 * linux-nat.c (linux_nat_close): Add argument.
5720 * go32-nat.c (go32_close): Add 'self' argument.
5721 * exec.c (exec_close_1): Add 'self' argument.
5722 * ctf.c (ctf_close): Add 'self' argument.
5723 * corelow.c (core_close): Add 'self' argument.
5724 (core_close_cleanup): Update.
5725 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
5726 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
5728 2014-02-19 Tom Tromey <tromey@redhat.com>
5730 * remote.c (remote_load): New function.
5731 (init_remote_ops): Use it.
5733 2014-02-19 Tom Tromey <tromey@redhat.com>
5735 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
5737 * common/linux-btrace.h (linux_supports_btrace): Update.
5738 * remote.c (remote_supports_btrace): Add "self" argument.
5739 * target-delegates.c: Rebuild.
5740 * target.c (target_supports_btrace): Remove.
5741 * target.h (struct target_ops) <to_supports_btrace>: Add
5742 target_ops argument.
5743 (target_supports_btrace): New define.
5745 2014-02-19 Tom Tromey <tromey@redhat.com>
5747 * record-full.c (record_full_beneath_to_resume_ops)
5748 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
5749 (record_full_beneath_to_wait)
5750 (record_full_beneath_to_store_registers_ops)
5751 (record_full_beneath_to_store_registers)
5752 (record_full_beneath_to_xfer_partial_ops)
5753 (record_full_beneath_to_xfer_partial)
5754 (record_full_beneath_to_insert_breakpoint_ops)
5755 (record_full_beneath_to_insert_breakpoint)
5756 (record_full_beneath_to_remove_breakpoint_ops)
5757 (record_full_beneath_to_remove_breakpoint)
5758 (record_full_beneath_to_stopped_by_watchpoint)
5759 (record_full_beneath_to_stopped_data_address)
5760 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
5761 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
5762 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
5763 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
5764 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
5765 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
5766 (tmp_to_stopped_data_address, tmp_to_async): Remove.
5767 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
5768 (record_full_resume, record_full_wait_1)
5769 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
5770 (record_full_store_registers, record_full_xfer_partial)
5771 (record_full_insert_breakpoint, record_full_remove_breakpoint)
5772 (record_full_async, record_full_core_xfer_partial): Use target
5774 * target-delegates.c: Rebuild.
5775 * target.c (current_xfer_partial): Remove.
5776 (update_current_target): Do not INHERIT or de_fault
5777 to_insert_breakpoint, to_remove_breakpoint,
5778 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
5779 to_is_async_p, to_async. Do not set to_xfer_partial field.
5780 (default_xfer_partial): Simplify.
5781 (current_xfer_partial): Remove.
5782 (target_wait, target_resume): Simplify.
5783 (find_default_can_async_p, find_default_is_async_p): Update.
5784 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
5785 to_xfer_partial, to_stopped_by_watchpoint,
5786 to_stopped_data_address.
5787 (target_store_registers): Simplify.
5788 (forward_target_remove_breakpoint)
5789 (forward_target_insert_breakpoint): Remove.
5790 (target_remove_breakpoint, target_insert_breakpoint)
5791 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
5792 * target.h (struct target_ops) <to_resume, to_wait,
5793 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
5794 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
5795 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
5797 (forward_target_remove_breakpoint)
5798 (forward_target_insert_breakpoint): Remove.
5799 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
5801 (record_btrace_insert_breakpoint): Delegate directly.
5803 2014-02-19 Tom Tromey <tromey@redhat.com>
5806 * target-delegates.c: New file.
5807 * target.c: Include target-delegates.c.
5808 (init_dummy_target): Call install_dummy_methods.
5809 (complete_target_initialization): Call install_delegators.
5810 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
5811 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
5812 * make-target-delegates: New file.
5814 2014-02-19 Tom Tromey <tromey@redhat.com>
5816 * record.c (find_record_target): Use find_target_at.
5817 * target.c (find_target_at): New function.
5818 * target.h (find_target_at): Declare.
5820 2014-02-19 Tom Tromey <tromey@redhat.com>
5822 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
5824 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
5826 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
5827 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
5829 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
5831 * linux-nat.c (save_sigtrap): Update.
5832 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
5833 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
5834 (linux_nat_close): Update.
5835 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
5837 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
5839 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
5840 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
5841 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
5842 (tmp_to_async): Add 'ops' argument.
5843 (record_full_stopped_by_watchpoint, record_full_async)
5844 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
5846 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
5847 (m32r_stopped_by_watchpoint): Add 'ops' argument.
5848 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
5849 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
5850 (remote_is_async_p, remote_async): Add 'ops' argument.
5851 (remote_stopped_data_address): Update.
5852 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
5853 * target.c (update_current_target)
5854 (find_default_can_async_p, find_default_is_async_p): Update.
5855 (init_dummy_target): Update.
5856 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
5857 * target.h (struct target_ops) <to_stopped_by_watchpoint,
5858 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
5859 (target_can_async_p, target_is_async_p, target_async)
5860 (target_stopped_by_watchpoint): Update.
5862 2014-02-19 Yao Qi <yao@codesourcery.com>
5865 * gdbarch.sh: Remove startup_gdbarch.
5866 * gdbarch.c: Regenerated.
5867 * gdbarch.h: Likewise.
5869 2014-02-17 Kevin Buettner <kevinb@redhat.com>
5871 * rl78-tdep.c (rl78_g10_register_name): New function.
5872 (rl78_return_value): Add g10 support.
5873 (rl78_gdbarch_init): Register rl78_g10_register_name for the
5876 2014-02-17 Doug Evans <xdje42@gmail.com>
5878 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
5879 (SUBDIR_GUILE_SRCS): Ditto.
5880 (scm-gsmob.o): Ditto.
5882 2014-02-17 Yao Qi <yao@codesourcery.com>
5884 * gnu-nat.c (ILL_RPC): Declare defined function.
5886 2014-02-17 Yao Qi <yao@codesourcery.com>
5888 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
5889 mach_msg_type_number_t.
5890 (gnu_write_inferior): Likewise.
5892 2014-02-17 Yao Qi <yao@codesourcery.com>
5894 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
5896 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
5897 (inf_validate_procs, inf_signal): Likewise.
5898 (S_exception_raise_request): Likewise.
5899 (do_mach_notify_dead_name): Likewise.
5900 (steal_exc_port): Likewise.
5901 (gnu_read_inferior): Change 'copy_count''s type to
5902 mach_msg_type_number_t.
5903 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
5906 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
5908 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
5909 flag. Adjust all users; in particular...
5910 (gnu_wait): ..., don't decrement its value in here...
5911 (gnu_create_inferior): ..., and instead set the flag in here,
5912 around the startup_inferior call, and call that one with
5913 START_INFERIOR_TRAPS_EXPECTED.
5915 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
5916 (ILL_RPC): ... new macro.
5917 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
5918 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
5919 (do_mach_notify_send_once, S_proc_setmsgport_reply)
5920 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
5921 functions with ILL_RPC macro.
5922 (S_proc_pid2task_reply, S_proc_task2pid_reply)
5923 (S_proc_task2proc_reply, S_proc_proc2task_reply)
5924 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
5925 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
5926 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
5927 (S_proc_getlogin_reply, S_proc_getsid_reply)
5928 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
5929 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
5930 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
5931 (S_proc_getnports_reply, S_proc_is_important_reply)
5932 (S_proc_get_code_reply): New stub functions, generated with
5935 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
5936 collected the type check structures.
5938 * reply_mig_hack.awk: Don't expect to see the auto keyword.
5940 2014-02-14 Doug Evans <dje@google.com>
5942 * target.c (target_write_partial): Fix result type.
5944 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
5946 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
5947 the proper offsets to access fpregset_t.
5949 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
5951 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
5952 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
5953 * h8300-tdep.c (setmachinelist): Remove global.
5954 * hppa-tdep.c (hppa_sigtramp): Remove global.
5955 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
5956 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
5957 * ravenscar-thread.c (update_target_observer): Remove global.
5958 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
5960 2014-02-12 Tom Tromey <tromey@redhat.com>
5962 * common/rsp-low.c: Update comments.
5963 * common/rsp-low.h: Update comments.
5965 2014-02-12 Tom Tromey <tromey@redhat.com>
5967 * common/rsp-low.c (convert_ascii_to_int): Remove.
5968 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
5970 2014-02-12 Tom Tromey <tromey@redhat.com>
5972 * common/rsp-low.h (unhexify): Don't declare.
5973 * common/rsp-low.c (unhexify): Remove.
5975 2014-02-12 Tom Tromey <tromey@redhat.com>
5977 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
5978 * common/rsp-low.c (convert_int_to_ascii): Remove.
5980 2014-02-12 Tom Tromey <tromey@redhat.com>
5982 * common/rsp-low.h (hexify): Don't declare.
5983 * common/rsp-low.c (hexify): Remove.
5985 2014-02-12 Tom Tromey <tromey@redhat.com>
5987 * common/rsp-low.c (hexify): Never take strlen of argument.
5989 2014-02-12 Tom Tromey <tromey@redhat.com>
5991 * common/rsp-low.c (bin2hex): Never take strlen of argument.
5992 * remote.c (extended_remote_run, remote_rcmd)
5993 (remote_download_trace_state_variable, remote_save_trace_data)
5994 (remote_set_trace_notes): Update.
5995 * tracepoint.c (encode_source_string, tfile_write_status)
5996 (tfile_write_uploaded_tsv): Update.
5998 2014-02-12 Tom Tromey <tromey@redhat.com>
6000 * tracepoint.c: Include rsp-low.h.
6001 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
6002 * remote.c: Include rsp-low.h.
6003 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
6004 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
6005 (remote_unescape_input): Move to common/rsp-low.c.
6006 * common/rsp-low.h: New file.
6007 * common/rsp-low.c: New file.
6008 * Makefile.in (SFILES): Add common/rsp-low.c.
6009 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
6010 (COMMON_OBS): Add rsp-low.o.
6011 (rsp-low.o): New target.
6013 2014-02-12 Tom Tromey <tromey@redhat.com>
6015 * utils.h: Include print-utils.h.
6016 (host_address_to_string, plongest, pulongest, phex, phex_nz)
6017 (int_string, core_addr_to_string, core_addr_to_string_nz)
6018 (hex_string, hex_string_custom): Don't declare.
6019 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
6020 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
6021 (hex_string_custom, int_string, core_addr_to_string)
6022 (core_addr_to_string_nz, host_address_to_string): Move to
6023 common/print-utils.c.
6024 * common/print-utils.h: New file.
6025 * common/print-utils.c: New file
6026 * Makefile.in (SFILES): Add common/print-utils.c.
6027 (HFILES_NO_SRCDIR): Add common/print-utils.h.
6028 (COMMON_OBS): Add print-utils.o.
6029 (print-utils.o): New target.
6031 2014-02-12 Tom Tromey <tromey@redhat.com>
6033 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
6035 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6037 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
6039 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6041 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
6042 if a PT_IO ptrace request returns sucessfully but indicates that 0
6043 bytes were transferred.
6045 2014-02-12 Pedro Alves <palves@redhat.com>
6046 Kevin Buettner <kevinb@redhat.com>
6048 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
6049 TYPE_INSTANCE_FLAG_CODE_SPACE.
6051 2014-02-12 Pedro Alves <palves@redhat.com>
6053 * h8300-tdep.c (pseudo_from_raw_register)
6054 (raw_from_pseudo_register): New functions.
6055 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
6058 2014-02-12 Pedro Alves <palves@redhat.com>
6060 * h8300-tdep.c (h8300_register_sim_regno): New function.
6061 (h8300_gdbarch_init): Install h8300_register_sim_regno as
6062 gdbarch_register_sim_regno hook.
6064 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6066 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
6068 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6070 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
6072 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6074 * obsd-tdep.h (obsd_init_abi): New prototype.
6075 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
6076 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
6077 (obsd_init_abi): New functions.
6078 * i386obsd-tdep.c: Include "obsd-tdep.h".
6079 (i386obsd_init_abi): Call obsd_init_abi.
6080 * amd64obsd-tdep.c: Include "obsd-tdep.h".
6081 (amd64obsd_init_abi): Call obsd_init_abi.
6082 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
6083 obsd-tdep.c to gdb_target_obs.
6085 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
6087 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
6088 double float arguments to 16-byte in the argument slots.
6090 2014-02-11 Doug Evans <xdje42@gmail.com>
6092 * configure.ac: Don't crash if pkg-config is not found and guile
6093 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
6095 * configure: Regenerate.
6097 2014-02-11 Yao Qi <yao@codesourcery.com>
6099 * aix-thread.c (aix_thread_xfer_partial): Update comments.
6100 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
6101 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
6102 * gnu-nat.c (gnu_xfer_memory): Likewise.
6103 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
6104 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6105 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6106 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6108 2014-02-11 Yao Qi <yao@codesourcery.com>
6110 * target.h (enum target_xfer_error): Rename to ...
6111 (enum target_xfer_status): ... it. New. All users updated.
6112 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
6114 (TARGET_XFER_STATUS_ERROR_P): New macro.
6115 (target_xfer_error_to_string): Remove declaration.
6116 (target_xfer_status_to_string): Declare.
6117 (target_xfer_partial_ftype): Adjust it.
6118 (struct target_ops) <to_xfer_partial>: Return
6119 target_xfer_status. Add argument xfered_len. Update
6121 * target.c (target_xfer_error_to_string): Rename to ...
6122 (target_xfer_status_to_string): ... it. New. All callers
6124 (target_read_live_memory): Likewise. Call target_xfer_partial
6125 instead of target_read.
6126 (memory_xfer_live_readonly_partial): Return
6127 target_xfer_status. Add argument xfered_len.
6128 (raw_memory_xfer_partial): Likewise.
6129 (memory_xfer_partial_1): Likewise.
6130 (memory_xfer_partial): Likewise.
6131 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
6132 properly. Update debug message.
6133 (default_xfer_partial, current_xfer_partial): Likewise.
6134 (target_write_partial): Likewise.
6135 (target_read_partial): Likewise. All callers updated.
6136 (read_whatever_is_readable): Likewise.
6137 (target_write_with_progress): Likewise.
6138 (target_read_alloc_1): Likewise.
6140 * aix-thread.c (aix_thread_xfer_partial): Likewise.
6141 * auxv.c (procfs_xfer_auxv): Likewise.
6142 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
6143 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6144 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6145 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
6146 * corefile.c (read_memory): Adjust.
6147 * corelow.c (core_xfer_partial): Likewise.
6148 * ctf.c (ctf_xfer_partial): Likewise.
6149 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
6151 (darwin_xfer_partial): Likewise.
6152 * exec.c (section_table_xfer_memory_partial): Likewise. All
6154 (exec_xfer_partial): Likewise.
6155 * exec.h (section_table_xfer_memory_partial): Update
6157 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
6159 (gnu_xfer_partial): Likewise.
6160 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
6161 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
6162 (ia64_hpux_xfer_solib_got): Likewise.
6163 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
6164 type of 'partial_len' to ULONGEST.
6165 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
6166 * linux-nat.c (linux_xfer_siginfo ): Likewise.
6167 (linux_nat_xfer_partial): Likewise.
6168 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
6169 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
6170 * monitor.c (monitor_xfer_memory): Likewise.
6171 (monitor_xfer_partial): Likewise.
6172 * procfs.c (procfs_xfer_partial): Likewise.
6173 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6174 * record-full.c (record_full_xfer_partial): Likewise.
6175 (record_full_core_xfer_partial): Likewise.
6176 * remote-sim.c (gdbsim_xfer_memory): Likewise.
6177 (gdbsim_xfer_partial): Likewise.
6178 * remote.c (remote_write_bytes_aux): Likewise. All callers
6180 (remote_write_bytes, remote_read_bytes): Likewise. All
6182 (remote_flash_erase): Likewise. All callers updated.
6183 (remote_write_qxfer): Likewise. All callers updated.
6184 (remote_read_qxfer): Likewise. All callers updated.
6185 (remote_xfer_partial): Likewise.
6186 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6187 (rs6000_xfer_shared_libraries): Likewise.
6188 * sol-thread.c (sol_thread_xfer_partial): Likewise.
6189 (sol_thread_xfer_partial): Likewise.
6190 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6191 (sparc_xfer_partial): Likewise.
6192 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
6194 (spu_xfer_partial): Likewise.
6195 * spu-multiarch.c (spu_xfer_partial): Likewise.
6196 * tracepoint.c (tfile_xfer_partial): Likewise.
6197 * windows-nat.c (windows_xfer_memory): Likewise.
6198 (windows_xfer_shared_libraries): Likewise.
6199 (windows_xfer_partial): Likewise.
6200 * valprint.c: Replace 'target_xfer_error' with
6201 'target_xfer_status' in comments.
6203 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
6205 Checked in by Joel Brobecker <brobecker@adacore.com>.
6206 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
6208 2014-02-11 Joel Brobecker <brobecker@adacore.com>
6210 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
6211 function parameters.
6213 2014-02-10 Will Newton <will.newton@linaro.org>
6215 * elfread.c (elf_rel_plt_read): Look for a .got section if
6216 looking up .got.plt fails.
6217 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
6218 on address passed to elf_gnu_ifunc_record_cache.
6219 (elf_gnu_ifunc_resolve_addr): Likewise.
6220 (elf_gnu_ifunc_resolver_return_stop): Likewise.
6222 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
6224 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
6225 (X_RETTURN): New macro.
6226 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
6228 * sparc64-tdep.c (sparc64_init_abi): Hook
6229 sparc_in_function_epilogue_p.
6231 2014-02-10 Gary Benson <gbenson@redhat.com>
6233 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6234 Rename name_matcher to symbol_matcher.
6236 2014-02-10 Gary Benson <gbenson@redhat.com>
6238 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6239 Use expand_symtabs_file_matcher_ftype and
6240 expand_symtabs_symbol_matcher_ftype.
6242 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6244 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
6245 (struct ada_symbol_cache): New.
6246 (ada_free_symbol_cache): Forward declare.
6247 (struct ada_pspace_data): New.
6248 (ada_pspace_data_handle): New static global.
6249 (get_ada_pspace_data, ada_pspace_data_cleanup)
6250 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
6251 (cache_space, cache): Delete, now folded inside struct
6253 (ada_get_symbol_cache): New function.
6254 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
6256 (_initialize_ada_language): Remove initialization of cache_space.
6257 Move call to observer_attach_inferior_exit up, grouping it
6258 with the other observer registrations inside this function.
6259 Rename command to be more general. Add call to
6260 register_program_space_data_with_cleanup.
6262 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6264 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
6265 ada_new_objfile_observer.
6266 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
6267 (_initialize_tasks): Update uses of ada_new_objfile_observer
6268 and ada_tasks_normal_stop_observer.
6270 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6272 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
6273 returned by the 'Length attribute to integer.
6275 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6277 * ada-lang.c (_initialize_ada_language): Initialize
6278 cache_space obstack.
6280 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6282 * ada-lang.c (HASH_SIZE): New macro.
6283 (struct cache_entry): New type.
6284 (cache_space, cache): New static globals.
6285 (ada_clear_symbol_cache, find_entry): New functions.
6286 (lookup_cached_symbol, cache_symbol): Implement.
6287 (ada_new_objfile_observer, ada_free_objfile_observer): New.
6288 (_initialize_ada_language): Attach ada_new_objfile_observer
6289 and ada_free_objfile_observer.
6291 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6293 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
6294 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
6295 struct block * parameter.
6296 (ada_lookup_symbol_list_worker): Constify local variable "block".
6297 Remove cast which is no longer necessary.
6299 2014-02-10 Doug Evans <xdje42@gmail.com>
6301 Add Guile as an extension language.
6302 * NEWS: Mention Guile scripting.
6303 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
6304 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
6305 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
6306 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
6307 (CLIBS): Add GUILE_LIBS.
6308 (install-guile): New rule.
6309 (guile.o): New rule.
6310 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
6311 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
6312 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
6313 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
6314 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
6315 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
6316 (scm-type.o, scm-utils.o, scm-value.o): New rules.
6317 * configure.ac: New option --with-guile.
6318 * configure: Regenerate.
6319 * config.in: Regenerate.
6320 * auto-load.c: Remove #include "python/python.h". Add #include
6321 "gdb/section-scripts.h".
6322 (source_section_scripts): Handle Guile scripts.
6323 (_initialize_auto_load): Add name of Guile objfile script to
6324 scripts-directory help text.
6325 * breakpoint.c (condition_command): Tweak comment to include Scheme.
6326 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
6327 (struct breakpoint): New member scm_bp_object.
6328 * defs.h (enum command_control_type): New value guile_control.
6329 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
6331 (show_user): Update comment.
6332 (_initialize_cli_cmds): Update help text for "show user". Update help
6333 text for max-user-call-depth.
6334 * cli/cli-script.c: Remove #include "python/python.h". Add #include
6336 (multi_line_command_p): Add guile_control.
6337 (print_command_lines): Handle guile_control.
6338 (execute_control_command, recurse_read_control_structure): Ditto.
6339 (process_next_line): Recognize "guile" commands.
6340 * disasm.c (gdb_disassemble_info): Make non-static.
6341 * disasm.h: #include "dis-asm.h".
6342 (struct gdbarch): Add forward decl.
6343 (gdb_disassemble_info): Declare.
6344 * extension.c: #include "guile/guile.h".
6345 (extension_languages): Add guile.
6346 (get_ext_lang_defn): Handle EXT_LANG_GDB.
6347 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
6348 * gdbtypes.c (get_unsigned_type_max): New function.
6349 (get_signed_type_minmax): New function.
6350 * gdbtypes.h (get_unsigned_type_max): Declare.
6351 (get_signed_type_minmax): Declare.
6352 * guile/README: New file.
6353 * guile/guile-internal.h: New file.
6354 * guile/guile.c: New file.
6355 * guile/guile.h: New file.
6356 * guile/scm-arch.c: New file.
6357 * guile/scm-auto-load.c: New file.
6358 * guile/scm-block.c: New file.
6359 * guile/scm-breakpoint.c: New file.
6360 * guile/scm-disasm.c: New file.
6361 * guile/scm-exception.c: New file.
6362 * guile/scm-frame.c: New file.
6363 * guile/scm-gsmob.c: New file.
6364 * guile/scm-iterator.c: New file.
6365 * guile/scm-lazy-string.c: New file.
6366 * guile/scm-math.c: New file.
6367 * guile/scm-objfile.c: New file.
6368 * guile/scm-ports.c: New file.
6369 * guile/scm-pretty-print.c: New file.
6370 * guile/scm-safe-call.c: New file.
6371 * guile/scm-string.c: New file.
6372 * guile/scm-symbol.c: New file.
6373 * guile/scm-symtab.c: New file.
6374 * guile/scm-type.c: New file.
6375 * guile/scm-utils.c: New file.
6376 * guile/scm-value.c: New file.
6377 * guile/lib/gdb.scm: New file.
6378 * guile/lib/gdb/boot.scm: New file.
6379 * guile/lib/gdb/experimental.scm: New file.
6380 * guile/lib/gdb/init.scm: New file.
6381 * guile/lib/gdb/iterator.scm: New file.
6382 * guile/lib/gdb/printing.scm: New file.
6383 * guile/lib/gdb/types.scm: New file.
6384 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
6385 (VPATH): Add $(GUILE_SRCDIR).
6386 (GUILE_DIR): New variable.
6387 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
6388 (all): Add stamp-guile dependency.
6389 (stamp-guile): New rule.
6390 (clean-guile, install-guile, uninstall-guile): New rules.
6391 (install-only): Add install-guile dependency.
6392 (uninstall): Add uninstall-guile dependency.
6393 (clean): Add clean-guile dependency.
6395 2014-02-09 Doug Evans <xdje42@gmail.com>
6397 Revert this patch (which I approved, mea culpa).
6399 2014-02-08 Mark Kettenis <kettenis@gnu.org>
6401 * Makefile.in (all-lib): Remove.
6402 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
6404 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6406 Fix Python stack corruption.
6407 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
6410 2014-02-08 Mark Kettenis <kettenis@gnu.org>
6412 * Makefile.in (all-lib): Remove.
6413 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
6415 2014-02-07 Doug Evans <dje@google.com>
6417 * extension-priv.h (extension_language_script_ops): Add comment.
6418 (extension_language_ops): Add comment.
6419 (active_ext_lang_state): Fix typo in comment.
6421 2014-02-07 Pedro Alves <palves@redhat.com>
6423 PR breakpoints/16292
6424 * infrun.c (handle_signal_stop) <signal arrives while stepping
6425 over a breakpoint>: Switch back to the stepping thread.
6427 2014-02-07 Yao Qi <yao@codesourcery.com>
6429 * target.c (target_xfer_partial): Return zero if LEN is zero.
6431 2014-02-07 Yao Qi <yao@codesourcery.com>
6433 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
6434 (ld_so_xfer_auxv): Likewise.
6435 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6436 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6437 * corelow.c (core_xfer_partial): Likewise.
6438 * ctf.c (ctf_xfer_partial): Likewise.
6439 * darwin-nat.c (darwin_read_dyld_info): Likewise.
6440 (darwin_xfer_partial): Likewise.
6441 * exec.c (exec_xfer_partial): Likewise.
6442 * gnu-nat.c (gnu_xfer_partial): Likewise.
6443 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
6444 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
6445 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
6446 * linux-nat.c (linux_xfer_siginfo): Likewise.
6447 (linux_proc_xfer_spu): Likewise.
6448 * procfs.c (procfs_xfer_partial): Likewise.
6449 * record-full.c (record_full_xfer_partial): Likewise.
6450 (record_full_core_xfer_partial): Likewise.
6451 * remote-sim.c (gdbsim_xfer_partial): Likewise.
6452 * remote.c (remote_write_qxfer): Likewise.
6453 (remote_write_qxfer, remote_read_qxfer): Likewise.
6454 (remote_xfer_partial): Likewise.
6455 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6456 (rs6000_xfer_shared_libraries): Likewise.
6457 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6458 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6459 (spu_xfer_partial): Likewise.
6460 * target.c (memory_xfer_partial_1): Likewise.
6461 * tracepoint.c (tfile_xfer_partial): Likewise.
6462 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
6463 (windows_xfer_partial): Likewise.
6465 2014-02-07 Yao Qi <yao@codesourcery.com>
6467 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
6469 (core_xfer_shared_libraries_aix): Likewise.
6470 * gdbarch.c, gdbarch.h: Regenerated.
6471 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
6472 ULONGEST. Change 'len_avail' type to ULONGEST.
6473 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
6474 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
6476 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
6478 2014-02-07 Yao Qi <yao@codesourcery.com>
6480 * corefile.c (memory_error): Get 'exception' from ERR and pass
6481 'exception' to throw_error.
6483 2014-02-06 Doug Evans <xdje42@gmail.com>
6485 * configure.ac (libpython checking): Remove all but python.o from
6486 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
6487 * configure: Regenerate.
6489 * Makefile.in (SFILES): Add extension.c.
6490 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
6491 (COMMON_OBS): Add extension.o.
6492 * extension.h: New file.
6493 * extension-priv.h: New file.
6494 * extension.c: New file.
6496 * python/python-internal.h: #include "extension.h".
6497 (gdbpy_auto_load_enabled): Declare.
6498 (gdbpy_apply_val_pretty_printer): Declare.
6499 (gdbpy_apply_frame_filter): Declare.
6500 (gdbpy_preserve_values): Declare.
6501 (gdbpy_breakpoint_cond_says_stop): Declare.
6502 (gdbpy_breakpoint_has_cond): Declare.
6503 (void source_python_script_for_objfile): Delete.
6504 * python/python.c: #include "extension-priv.h".
6505 Delete inclusion of "observer.h".
6506 (extension_language_python): Moved here and renamed from
6507 script_language_python in py-auto-load.c.
6508 Redefined to be of type extension_language_defn.
6509 (python_extension_script_ops): New global.
6510 (python_extension_ops): New global.
6511 (struct python_env): New member previous_active.
6512 (restore_python_env): Call restore_active_ext_lang.
6513 (ensure_python_env): Call set_active_ext_lang.
6514 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
6516 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
6518 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
6520 (gdbpy_eval_from_control_command): Renamed from
6521 eval_python_from_control_command, made static. New arg extlang.
6522 (gdbpy_source_script) Renamed from source_python_script, made static.
6524 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
6525 result to int. New arg extlang.
6526 (gdbpy_source_objfile_script): Renamed from
6527 source_python_script_for_objfile, made static. New arg extlang.
6528 (gdbpy_start_type_printers): Renamed from start_type_printers, made
6529 static. New args extlang, extlang_printers. Change result type to
6531 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
6532 static. New arg extlang. Rename arg printers to extlang_printers
6533 and change type to ext_lang_type_printers *.
6534 (gdbpy_free_type_printers): Renamed from free_type_printers, made
6535 static. Replace argument arg with extlang, extlang_printers.
6536 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
6537 (!HAVE_PYTHON, source_python_script): Delete.
6538 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
6539 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
6540 (!HAVE_PYTHON, start_type_printers): Delete.
6541 (!HAVE_PYTHON, apply_type_printers): Delete.
6542 (!HAVE_PYTHON, free_type_printers): Delete.
6543 (_initialize_python): Delete call to observer_attach_before_prompt.
6544 (finalize_python): Set/restore active extension language.
6545 (gdbpy_finish_initialization) Renamed from
6546 finish_python_initialization, made static. New arg extlang.
6547 (gdbpy_initialized): New function.
6548 * python/python.h: #include "extension.h". Delete #include
6549 "value.h", "mi/mi-cmds.h".
6550 (extension_language_python): Declare.
6551 (GDBPY_AUTO_FILE_NAME): Delete.
6552 (enum py_bt_status): Moved to extension.h and renamed to
6554 (enum frame_filter_flags): Moved to extension.h.
6555 (enum py_frame_args): Moved to extension.h and renamed to
6556 ext_lang_frame_args.
6557 (finish_python_initialization): Delete.
6558 (eval_python_from_control_command): Delete.
6559 (source_python_script): Delete.
6560 (apply_val_pretty_printer): Delete.
6561 (apply_frame_filter): Delete.
6562 (preserve_python_values): Delete.
6563 (gdbpy_script_language_defn): Delete.
6564 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
6565 (start_type_printers, apply_type_printers, free_type_printers): Delete.
6567 * auto-load.c: #include "extension.h".
6568 (GDB_AUTO_FILE_NAME): Delete.
6569 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
6570 (script_language_gdb): Delete, moved to extension.c and renamed to
6571 extension_language_gdb.
6572 (source_gdb_script_for_objfile): Delete.
6573 (auto_load_pspace_info): New member unsupported_script_warning_printed.
6574 (loaded_script): Change type of language member to
6575 struct extension_language_defn *.
6576 (init_loaded_scripts_info): Initialize
6577 unsupported_script_warning_printed.
6578 (maybe_add_script): Make static. Change type of language arg to
6579 struct extension_language_defn *.
6580 (clear_section_scripts): Reset unsupported_script_warning_printed.
6581 (auto_load_objfile_script_1): Rewrite to use extension language API.
6582 (auto_load_objfile_script): Make public. Remove support-compiled-in
6583 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
6584 (source_section_scripts): Rewrite to use extension language API.
6585 (load_auto_scripts_for_objfile): Rewrite to use
6586 auto_load_scripts_for_objfile.
6587 (collect_matching_scripts_data): Change type of language member to
6588 struct extension_language_defn *.
6589 (auto_load_info_scripts): Change type of language arg to
6590 struct extension_language_defn *.
6591 (unsupported_script_warning_print): New function.
6592 (script_not_found_warning_print): Make static.
6593 (_initialize_auto_load): Rewrite construction of scripts-directory
6595 * auto-load.h (struct objfile): Add forward decl.
6596 (struct script_language): Delete.
6597 (struct auto_load_pspace_info): Add forward decl.
6598 (struct extension_language_defn): Add forward decl.
6599 (maybe_add_script): Delete.
6600 (auto_load_objfile_script): Declare.
6601 (script_not_found_warning_print): Delete.
6602 (auto_load_info_scripts): Update prototype.
6603 (auto_load_gdb_scripts_enabled): Declare.
6604 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
6605 auto_load_python_scripts_enabled and made public.
6606 (script_language_python): Delete, moved to python.c.
6607 (gdbpy_script_language_defn): Delete.
6608 (info_auto_load_python_scripts): Update to use
6609 extension_language_python.
6611 * breakpoint.c (condition_command): Replace call to
6612 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
6613 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
6614 with call to breakpoint_ext_lang_cond_says_stop.
6615 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
6616 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
6617 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
6618 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
6620 (local_setattro): Print name of extension language with existing
6623 * valprint.c (val_print, value_print): Update to call
6624 apply_ext_lang_val_pretty_printer.
6625 * cp-valprint.c (cp_print_value): Update call to
6626 apply_ext_lang_val_pretty_printer.
6627 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
6628 (gdbpy_apply_val_pretty_printer): Renamed from
6629 apply_val_pretty_printer. New arg extlang.
6630 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
6632 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
6633 extension language API.
6634 * cli/cli-script.c (execute_control_command): Update to call
6635 eval_ext_lang_from_control_command.
6637 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
6638 enum ext_lang_bt_status values. Update call to
6639 apply_ext_lang_frame_filter.
6640 (mi_cmd_stack_list_locals): Ditto.
6641 (mi_cmd_stack_list_args): Ditto.
6642 (mi_cmd_stack_list_variables): Ditto.
6643 * mi/mi-main.c: Delete #include "python/python-internal.h".
6644 Add #include "extension.h".
6645 (mi_cmd_list_features): Replace reference to python internal variable
6646 gdb_python_initialized with call to ext_lang_initialized_p.
6648 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
6649 Update to use enum ext_lang_frame_args. Update to call
6650 apply_ext_lang_frame_filter.
6651 * python/py-framefilter.c (extract_sym): Update to use enum
6653 (extract_value, py_print_type, py_print_value): Ditto.
6654 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
6655 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
6656 (py_print_frame): Ditto.
6657 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
6658 New arg extlang. Update to use enum ext_lang_bt_status.
6660 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
6661 finish_python_initialization. Replace with call to
6662 finish_ext_lang_initialization.
6664 * typeprint.c (do_free_global_table): Update to call
6665 free_ext_lang_type_printers.
6666 (create_global_typedef_table): Update to call
6667 start_ext_lang_type_printers.
6668 (find_global_typedef): Update to call apply_ext_lang_type_printers.
6669 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
6670 (type_print_options): Change type of global_printers from "void *"
6671 to "struct ext_lang_type_printers *".
6673 * value.c (preserve_values): Update to call preserve_ext_lang_values.
6674 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
6675 (gdbpy_preserve_values): Renamed from preserve_python_values.
6677 (!HAVE_PYTHON, preserve_python_values): Delete.
6679 * utils.c (quit_flag): Delete, moved to extension.c.
6680 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
6683 * eval.c: Delete #include "python/python.h".
6684 * main.c: Delete #include "python/python.h".
6686 * defs.h: Update comment.
6688 2014-02-06 Joel Brobecker <brobecker@adacore.com>
6692 2014-02-05 Mark Kettenis <kettenis@gnu.org>
6694 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
6697 2014-02-05 Yao Qi <yao@codesourcery.com>
6699 * remote.c (remote_pass_signals): Remove local 'buf' and use
6701 (remote_program_signals): Likewise.
6703 2014-02-05 Yao Qi <yao@codesourcery.com>
6705 * ctf.c: Include "inferior.h" and "gdbthread.h".
6706 (CTF_PID): A new macro.
6707 (ctf_open): Call inferior_appeared and add_thread_silent.
6708 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
6709 (ctf_thread_alive): New function.
6710 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
6712 2014-02-05 Yao Qi <yao@codesourcery.com>
6716 2013-05-24 Yao Qi <yao@codesourcery.com>
6718 * tracepoint.c (TFILE_PID): Remove.
6719 (tfile_open): Don't add thread and inferior.
6720 (tfile_close): Don't set 'inferior_ptid'. Don't call
6721 exit_inferior_silent.
6722 (tfile_thread_alive): Remove.
6723 (init_tfile_ops): Don't set field 'to_thread_alive' of
6726 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
6728 * remote.c (remote_start_remote): Call remote_check_symbols even
6729 if only symbol-file (not file) has been given.
6731 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6733 * gdbarch.sh (skip_entrypoint): New callback.
6734 * gdbarch.c, gdbarch.h: Regenerate.
6735 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
6736 * infrun.c (fill_in_stop_func): Likewise.
6737 * ppc-linux-tdep.c: Include "elf/ppc64.h".
6738 (ppc_elfv2_elf_make_msymbol_special): New function.
6739 (ppc_elfv2_skip_entrypoint): Likewise.
6740 (ppc_linux_init_abi): Install them for ELFv2.
6742 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6744 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
6745 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
6746 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
6747 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
6748 structures returned in GPRs.
6750 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6752 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
6753 offset to the stack parameter list for the ELFv2 ABI.
6755 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6757 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
6758 set_gdbarch_convert_from_func_ptr_addr and
6759 set_gdbarch_elf_make_msymbol_special for ELFv1.
6760 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
6761 function descriptors on ELFv1.
6762 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
6763 set up r12 at function entry.
6765 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6767 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
6768 (struct gdbarch_tdep): New member elf_abi.
6770 * rs6000-tdep.c: Include "elf/ppc64.h".
6771 (rs6000_gdbarch_init): Detect ELF ABI version.
6773 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6775 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
6776 within a register pair holding a DFP 128-bit value on little-endian.
6777 (ppc64_sysv_abi_return_value_base): Likewise.
6778 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
6779 (dfp_pseudo_register_write): Likewise.
6781 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6783 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
6784 offset on little-endian when passing _Decimal32.
6785 (ppc64_sysv_abi_return_value_base): Likewise for return values.
6787 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6789 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
6790 of the overlapped FP register within the VSX register on little-
6792 (efpr_pseudo_register_write): Likewise.
6794 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6796 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
6797 offset on little-endian when passing small structures.
6799 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6801 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
6802 (struct ppc64_sysv_argpos): New data structure.
6803 (ppc64_sysv_abi_push_float): Remove.
6804 (ppc64_sysv_abi_push_val): New function.
6805 (ppc64_sysv_abi_push_integer): Likewise.
6806 (ppc64_sysv_abi_push_freg): Likewise.
6807 (ppc64_sysv_abi_push_vreg): Likewise.
6808 (ppc64_sysv_abi_push_param): Likewise.
6809 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
6810 (ppc64_sysv_abi_return_value_base): New function.
6811 (ppc64_sysv_abi_return_value): Refactor to use it.
6813 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6815 * NEWS: Document new target powerpc64le-*-linux*.
6817 2014-02-04 Mark Kettenis <kettenis@gnu.org>
6819 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
6820 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
6822 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
6823 register set used in ELF core dumps. Add floating-point register set.
6825 2014-02-03 Kevin Buettner <kevinb@redhat.com>
6827 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
6828 dwarf2_to_gdb[] table using symbolic constants. Adjust
6829 penultimate entry from number representing the PC register
6830 to symbolic constant representing the MDR register. Add
6831 constant for the PC register to the end of the table.
6833 2014-02-03 Mark Kettenis <kettenis@gnu.org>
6835 * bsd-kvm.c: Include <sys/param.h>
6837 2014-02-03 Mark Kettenis <kettenis@gnu.org>
6839 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
6841 2014-01-31 Joel Brobecker <brobecker@adacore.com>
6843 * ada-lang.h (clear_ada_sym_cache): Delete.
6845 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
6847 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
6849 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
6851 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
6852 the sigreturn register save area only if the syscall is
6855 2014-01-29 Joel Brobecker <brobecker@adacore.com>
6857 * valops.c (value_slice): Minor reformatting.
6859 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
6861 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
6863 2014-01-28 Joel Brobecker <brobecker@adacore.com>
6865 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
6867 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
6868 (ada_ignore_descriptive_types_p): New static global.
6869 (find_parallel_type_by_descriptive_type): Return immediately
6870 if ada_ignore_descriptive_types_p is set.
6871 (_initialize_ada_language): Register new commands "maintenance
6872 set ada", "maintenance show ada", "maintenance set ada
6873 ignore-descriptive-types" and "maintenance show ada
6874 ignore-descriptive-types".
6875 * NEWS: Add entry for new "maint ada set/show
6876 ignore-descriptive-types" commands.
6878 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
6880 * record-btrace.c (record_btrace_close): Call btrace_teardown
6883 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6885 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
6888 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6890 * ada-typeprint (type_is_full_subrange_of_target_type):
6892 (print_range): Add parameter bounds_prefered_p. If not set,
6893 try printing range types using the name of their base type.
6894 (print_range_type): Add parameter bounds_prefered_p.
6895 Use it in call to print_range.
6896 (print_array_type, ada_print_type): Update calls to print_range
6897 and print_range_type.
6899 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6901 * ada-typeprint.c (print_array_type, print_choices, print_range)
6902 (print_range_bound, print_dynamic_range_bound, print_range_type):
6905 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6907 * ada-typeprint.c (print_range): Add missing empty line
6908 after local declaration.
6910 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6912 * ada-valprint.c (print_optional_low_bound): Get index_type's
6913 target type for as long as it is a TYPE_CODE_RANGE.
6915 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6917 * procfs.c (procfs_make_note_section): Remove assertion and
6920 2014-01-24 Yao Qi <yao@codesourcery.com>
6922 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
6923 * corelow.c (get_core_siginfo): Likewise.
6925 2014-01-24 Yao Qi <yao@codesourcery.com>
6927 * remote.c (remote_write_bytes_aux): Change type of 'len' to
6928 ULONGEST. Don't check 'len' is negative.
6929 (remote_write_bytes): Change type of 'len' to ULONGEST.
6931 2014-01-23 Tom Tromey <tromey@redhat.com>
6934 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
6935 Handle exception from frame.block.
6936 (FrameVars.fetch_frame_locals): Likewise.
6938 2014-01-23 Tom Tromey <tromey@redhat.com>
6941 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
6942 on a NULL pointer. Move "goto error" to correct place.
6944 2014-01-23 Tom Tromey <tromey@redhat.com>
6947 * python/py-framefilter.c (apply_frame_filter): Call
6948 ensure_python_env after computing gdbarch.
6950 2014-01-23 Yao Qi <yao@codesourcery.com>
6952 * target.c (raw_memory_xfer_partial): Change argument type
6953 from void * to gdb_byte *.
6954 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
6956 2014-01-22 Doug Evans <dje@google.com>
6958 New gdbserver option --debug-format=timestamp.
6961 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
6963 * syscalls/s390x-linux.xml: New file.
6964 * syscalls/s390-linux.xml: New file.
6965 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
6966 (XML_SYSCALL_FILENAME_S390X): Likewise.
6967 (op_svc): New enum value for SVC opcode.
6968 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
6969 (s390_linux_get_syscall_number): New function.
6970 (s390_gdbarch_init): Register '*get_syscall_number' and the
6971 syscall xml file name.
6972 * data-directory/Makefile.in (SYSCALLS_FILES): Add
6973 "s390-linux.xml" and "s390x-linux.xml".
6974 * NEWS: Announce new feature.
6976 2014-01-22 Baruch Siach <baruch@tkos.co.il>
6978 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
6980 2014-01-22 Pedro Alves <palves@redhat.com>
6982 * xtensa-config.c: Include defs.h.
6984 2014-01-22 Joel Brobecker <brobecker@adacore.com>
6986 * common/common-utils.h: Add "ARI:" comment beside __func__
6989 2014-01-22 Joel Brobecker <brobecker@adacore.com>
6991 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
6992 documentation a bit.
6994 2014-01-21 Roland McGrath <mcgrathr@google.com>
6996 * configure.ac: Call AM_PROG_INSTALL_STRIP.
6997 * configure: Regenerate.
6998 * aclocal.m4: Regenerate.
6999 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
7000 New substituted variables.
7001 (install-strip): New target.
7002 (INSTALL_SCRIPT): New substituted variable.
7003 (FLAGS_TO_PASS): Add it.
7004 (install-only): Use $(INSTALL_SCRIPT) rather than
7005 $(INSTALL_PROGRAM) for gcore.
7007 2014-01-20 Tom Tromey <tromey@redhat.com>
7009 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
7012 2014-01-20 Tom Tromey <tromey@redhat.com>
7014 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
7015 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
7016 (deprecated_cmd_warning, complete_on_cmdlist): Update.
7017 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
7018 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
7019 (struct cmd_list_element) <flags>: Remove.
7020 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
7021 doc_allocated>: New fields.
7022 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
7024 * maint.c (maintenance_do_deprecate): Update.
7025 * top.c (execute_command): Update.
7027 2014-01-20 Baruch Siach <baruch@tkos.co.il>
7029 * xtensa-linux-nat.c: Include asm/ptrace.h.
7031 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7033 * Makefile.in (SFILES): Add d-support.c.
7034 (COMMON_OBS): Add d-support.o.
7035 * d-lang.h (d_parse_symbol): Add comment, now defined in
7037 * d-lang.c (parse_call_convention)
7038 (parse_attributes, parse_function_types)
7039 (parse_function_args, parse_type, parse_identifier)
7040 (call_convention_p, d_parse_symbol): Move functions to ...
7041 * d-support.c: ... New file.
7043 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7045 * d-lang.h (d_parse_symbol): Add declaration.
7046 * d-lang.c (extract_identifiers)
7047 (extract_type_info): Remove functions.
7048 (parse_call_convention, parse_attributes)
7049 (parse_function_types, parse_function_args)
7050 (parse_type, parse_identifier, call_convention_p)
7051 (d_parse_symbol): New functions.
7052 (d_demangle): Use d_parse_symbol to demangle D symbols.
7054 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7056 * d-lang.h (struct builtin_d_type): New data type.
7057 (builtin_d_type): Add declaration.
7058 * d-lang.c (d_language_arch_info, build_d_types)
7059 (builtin_d_type): New functions.
7060 (enum d_primitive_types): New data type.
7061 (d_language_defn): Change c_language_arch_info to
7062 d_language_arch_info.
7063 (d_type_data): New static variable.
7064 (_initialize_d_language): Initialize d_type_data.
7066 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7068 * d-lang.h (d_main_name): Add declaration.
7069 * d-lang.c (d_main_name): New function.
7070 * symtab.c (find_main_name): Add call to d_main_name.
7072 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7074 * d-lang.c (d_language_defn): Change macro_expansion_c to
7077 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7079 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7081 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
7083 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
7084 gdb_exception" declaration.
7085 * remote.c (getpkt_or_notif_sane): Likewise.
7087 2014-01-17 Doug Evans <dje@google.com>
7089 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
7090 function, contents of dirnames_to_char_ptr_vec_append moved here.
7091 (delim_string_to_char_ptr_vec): New function.
7092 (dirnames_to_char_ptr_vec_append): Rewrite.
7093 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
7095 2014-01-17 Doug Evans <dje@google.com>
7097 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
7099 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
7100 #include "common-utils.h".
7101 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
7102 * common/vec.h (VEC_ASSERT_PASS): Update.
7103 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
7104 (MACH_CHECK_ERROR): Update.
7106 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
7108 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
7110 * gdbarch.h: Regenerate.
7112 2014-01-16 Tom Tromey <tromey@redhat.com>
7114 * value.c (struct value) <regnum>: Move earlier.
7116 2014-01-16 Tom Tromey <tromey@redhat.com>
7118 * remote.c (extended_remote_create_inferior): Rename from
7119 extended_remote_create_inferior_1. Add "ops" argument. Remove
7122 2014-01-16 Pedro Alves <palves@redhat.com>
7124 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
7125 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
7128 2014-01-16 Doug Evans <dje@google.com>
7130 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
7132 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7134 * btrace.h (btrace_thread_flag): New.
7135 (struct btrace_thread_info) <flags>: New.
7136 * record-btrace.c (record_btrace_resume_thread)
7137 (record_btrace_find_thread_to_move, btrace_step_no_history)
7138 (btrace_step_stopped, record_btrace_start_replaying)
7139 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
7140 (record_btrace_find_resume_thread): New.
7141 (record_btrace_resume, record_btrace_wait): Extend.
7142 (record_btrace_can_execute_reverse): New.
7143 (record_btrace_open): Fail in non-stop mode.
7144 (record_btrace_set_replay): Split into this, ...
7145 (record_btrace_stop_replaying): ... this, ...
7146 (record_btrace_clear_histories): ... and this.
7147 (init_record_btrace_ops): Init to_can_execute_reverse.
7148 * NEWS: Announce it.
7150 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7152 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
7153 (forward_target_decr_pc_after_break)
7154 (target_decr_pc_after_break): New.
7155 * target.c (forward_target_decr_pc_after_break)
7156 (target_decr_pc_after_break): New.
7157 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
7158 instead of gdbarch_decr_pc_after_break.
7159 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7160 instead of gdbarch_decr_pc_after_break.
7161 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
7162 instead of gdbarch_decr_pc_after_break.
7163 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7164 instead of gdbarch_decr_pc_after_break.
7165 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
7166 instead of gdbarch_decr_pc_after_break.
7167 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
7168 instead of gdbarch_decr_pc_after_break.
7170 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7172 * btrace.c: Include regcache.h.
7173 (btrace_add_pc): New.
7174 (btrace_enable): Call btrace_add_pc.
7175 (btrace_is_empty): New.
7176 * btrace.h (btrace_is_empty): New.
7177 * record-btrace.c (require_btrace, record_btrace_info): Call
7180 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7182 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
7183 Support delta reads.
7184 (linux_disable_btrace): Change return type.
7185 * common/linux-btrace.h (linux_read_btrace): Change parameters
7186 and return type to allow error reporting. Update users.
7187 (linux_disable_btrace): Change return type. Update users.
7188 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
7190 (btrace_error): New.
7191 (btrace_block) <begin>: Comment on BEGIN == 0.
7192 * btrace.c (btrace_compute_ftrace): Start from the end of
7194 (btrace_stitch_trace, btrace_clear_history): New.
7195 (btrace_fetch): Read delta trace, return if replaying.
7196 (btrace_clear): Move clear history code to btrace_clear_history.
7197 (parse_xml_btrace): Throw an error if parsing failed.
7198 * target.h (struct target_ops) <to_read_btrace>: Change parameters
7199 and return type to allow error reporting.
7200 (target_read_btrace): Change parameters and return type to allow
7202 * target.c (target_read_btrace): Update.
7203 * remote.c (remote_read_btrace): Support delta reads. Pass
7205 * NEWS: Announce it.
7207 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7209 * record.h (record_btrace_frame_unwind)
7210 (record_btrace_tailcall_frame_unwind): New declarations.
7211 * dwarf2-frame: Include record.h
7212 (dwarf2_frame_cfa): Throw an error for btrace frames.
7213 * record-btrace.c: Include hashtab.h.
7214 (btrace_get_bfun_name): New.
7215 (btrace_call_history): Call btrace_get_bfun_name.
7216 (struct btrace_frame_cache): New.
7218 (bfcache_hash, bfcache_eq, bfcache_new): New.
7219 (btrace_get_frame_function): New.
7220 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
7221 (record_btrace_frame_this_id): Compute own id.
7222 (record_btrace_frame_prev_register): Provide PC, throw_error
7223 for all other registers.
7224 (record_btrace_frame_sniffer): Detect btrace frames.
7225 (record_btrace_tailcall_frame_sniffer): New.
7226 (record_btrace_frame_dealloc_cache): New.
7227 (record_btrace_frame_unwind): Add new functions.
7228 (record_btrace_tailcall_frame_unwind): New.
7229 (_initialize_record_btrace): Allocate cache.
7230 * btrace.c (btrace_clear): Call reinit_frame_cache.
7231 * NEWS: Announce it.
7233 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7235 * record-btrace.c (record_btrace_set_replay)
7236 (record_btrace_goto_begin, record_btrace_goto_end)
7237 (record_btrace_goto): New.
7238 (init_record_btrace_ops): Initialize them.
7239 * NEWS: Announce it.
7241 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7243 * record-btrace.c (record_btrace_find_new_threads)
7244 (record_btrace_thread_alive): New.
7245 (init_record_btrace_ops): Initialize to_find_new_threads and
7248 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7250 * record-btrace.c (record_btrace_resume): New.
7251 (record_btrace_wait): New.
7252 (init_record_btrace_ops): Initialize to_wait and to_resume.
7254 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7256 * record-btrace.c (record_btrace_xfer_partial)
7257 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
7258 (record_btrace_allow_memory_access): New.
7259 (init_record_btrace_ops): Initialize new methods.
7260 * target.c (raw_memory_xfer_partial): Bail out if target reports
7261 that this memory is not available.
7263 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7265 * target.h (target_ops) <to_insert_breakpoint>
7266 <to_remove_breakpoint>: Add target_ops parameter.
7267 (forward_target_insert_breakpoint): New.
7268 (forward_target_remove_breakpoint): New.
7269 (memory_remove_breakpoint, memory_insert_breakpoint):
7270 Add target_ops parameter.
7271 * target.c (target_insert_breakpoint): Split into this and ...
7272 (forward_target_insert_breakpoint): ... this.
7273 (target_remove_breakpoint): Split into this and ...
7274 (forward_target_remove_breakpoint): ... this.
7275 (debug_to_insert_breakpoint): Add target_ops parameter.
7276 Call forward_target_insert_breakpoint.
7277 (debug_to_remove_breakpoint): Add target_ops parameter.
7278 Call forward_target_remove_breakpoint.
7279 (update_current_target): Do not inherit or default to_insert_breakpoint
7280 and to_remove_breakpoint.
7281 * corelow.c (ignore): Add target_ops parameter.
7282 * exec.c (ignore): Add target_ops parameter.
7283 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
7284 Add target_ops parameter.
7285 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
7286 Add target_ops parameter.
7287 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
7288 Add target_ops parameter.
7289 * record-full.c (record_full_beneath_to_insert_breakpoint)
7290 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
7291 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
7292 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
7293 (record_full_core_remove_breakpoint): Add target_ops parameter.
7295 (record_full_beneath_to_insert_breakpoint_ops)
7296 (record_full_beneath_to_remove_breakpoint_ops)
7297 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
7298 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
7299 tmp_to_remove_breakpoint_ops,
7300 record_full_beneath_to_insert_breakpoint_ops, and
7301 record_full_beneath_to_remove_breakpoint_ops.
7302 * remote-m32r-sdi.c (m32r_insert_breakpoint)
7303 (m32r_remove_breakpoint): Add target_ops parameter.
7304 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
7305 Add target_ops parameter.
7306 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
7307 Add target_ops parameter.
7309 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7310 Markus Metzger <markus.t.metzger@intel.com>
7312 * record-btrace.c: Include frame-unwind.h.
7313 (record_btrace_frame_unwind_stop_reason)
7314 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
7315 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
7317 (init_record_btrace_ops): Install it.
7319 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7321 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
7324 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7326 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
7329 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7331 * frame-unwind.c: Include target.h.
7332 (frame_unwind_try_unwinder): New function with code from ...
7333 (frame_unwind_find_by_frame): ... here. New variable
7334 unwinder_from_target, call also target_get_unwinder)
7335 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
7336 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
7337 * target.h (struct target_ops): New fields to_get_unwinder and
7338 to_get_tailcall_unwinder.
7339 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
7341 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7343 * record-btrace.c (record_btrace_fetch_registers)
7344 (record_btrace_store_registers)
7345 (record_btrace_to_prepare_to_store): New.
7346 (init_record_btrace_ops): Add the above.
7348 2014-01-16 Tom Tromey <tromey@redhat.com>
7350 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
7351 * target.h (struct target_ops) <to_prepare_to_store>: Add
7353 (target_prepare_to_store): Add argument.
7354 * target.c (debug_to_prepare_to_store): Add argument.
7355 (update_current_target): Update.
7356 * remote.c (remote_prepare_to_store): Add 'self' argument.
7357 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
7358 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
7359 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
7360 * record-full.c (record_full_core_prepare_to_store): Add 'self'
7362 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
7363 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
7364 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
7365 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
7366 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
7368 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7370 * btrace.h (replay) <replay>: New.
7371 (btrace_is_replaying): New.
7372 * btrace.c (btrace_clear): Free replay iterator.
7373 (btrace_is_replaying): New.
7374 * record-btrace.c (record_btrace_is_replaying): New.
7375 (record_btrace_info): Print insn number if replaying.
7376 (record_btrace_insn_history): Start at replay position.
7377 (record_btrace_call_history): Start at replay position.
7378 (init_record_btrace_ops): Init to_record_is_replaying.
7380 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7382 * record-btrace.c (record_btrace_insn_history_range): Include
7384 (record_btrace_insn_history_from): Adjust range.
7385 (record_btrace_call_history_range): Include
7387 (record_btrace_call_history_from): Adjust range.
7388 * NEWS: Announce changes.
7390 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7392 * record.h (enum record_print_flag)
7393 <record_print_indent_calls>: New.
7394 * record.c (get_call_history_modifiers): Recognize /c modifier.
7395 (_initialize_record): Document /c modifier.
7396 * record-btrace.c (btrace_call_history): Add btinfo parameter.
7397 Reorder fields. Optionally indent the function name. Update
7399 * NEWS: Announce changes.
7401 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7403 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
7405 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7407 * btrace.c (ftrace_new_function): Start counting at one.
7408 * record-btrace.c (record_btrace_info): Adjust number of calls
7410 * NEWS: Announce it.
7412 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7414 * record-btrace.c (btrace_call_history_insn_range): Print
7415 insn range as [begin, end].
7417 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7419 * btrace.h (struct btrace_func_link): New.
7420 (enum btrace_function_flag): New.
7421 (struct btrace_inst): Rename to ...
7422 (struct btrace_insn): ...this. Update all users.
7423 (struct btrace_func) <ibegin, iend>: Remove.
7424 (struct btrace_func_link): New.
7425 (struct btrace_func): Rename to ...
7426 (struct btrace_function): ...this. Update all users.
7427 (struct btrace_function) <segment, flow, up, insn, insn_offset)
7428 (number, level, flags>: New.
7429 (struct btrace_insn_iterator): Rename to ...
7430 (struct btrace_insn_history): ...this.
7432 (struct btrace_insn_iterator, btrace_call_iterator): New.
7433 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
7434 (struct btrace_target_info) <begin, end, level>
7435 <insn_history, call_history>: New.
7436 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
7437 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
7438 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
7439 (btrace_call_number, btrace_call_begin, btrace_call_end)
7440 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
7441 (btrace_find_function_by_number, btrace_set_insn_history)
7442 (btrace_set_call_history): New.
7443 * btrace.c (btrace_init_insn_iterator)
7444 (btrace_init_func_iterator, compute_itrace): Remove.
7445 (ftrace_print_function_name, ftrace_print_filename)
7446 (ftrace_skip_file): Change
7448 (ftrace_init_func): Remove.
7449 (ftrace_debug): Use new btrace_function fields.
7450 (ftrace_function_switched): Also consider gaining and
7451 losing symbol information).
7452 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
7453 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
7454 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
7456 (ftrace_new_function): Move. Remove debug print.
7457 (ftrace_update_lines, ftrace_update_insns): New.
7458 (ftrace_update_function): Check for call, ret, and jump.
7459 (compute_ftrace): Renamed to ...
7460 (btrace_compute_ftrace): ...this. Rewritten to compute call
7462 (btrace_fetch, btrace_clear): Updated.
7463 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
7464 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
7465 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
7466 (btrace_call_number, btrace_call_begin, btrace_call_end)
7467 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
7468 (btrace_find_function_by_number, btrace_set_insn_history)
7469 (btrace_set_call_history): New.
7470 * record-btrace.c (require_btrace): Use new btrace thread
7472 (record_btrace_info, btrace_insn_history)
7473 (record_btrace_insn_history, record_btrace_insn_history_range):
7474 Use new btrace thread info fields and new iterator.
7475 (btrace_func_history_src_line): Rename to ...
7476 (btrace_call_history_src_line): ...this. Use new btrace
7478 (btrace_func_history): Rename to ...
7479 (btrace_call_history): ...this. Use new btrace thread info
7480 fields and new iterator.
7481 (record_btrace_call_history, record_btrace_call_history_range):
7482 Use new btrace thread info fields and new iterator.
7484 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7486 * frame.h (frame_id_build_unavailable_stack_special): New.
7487 * frame.c (frame_id_build_unavailable_stack_special): New.
7489 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7491 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
7492 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
7493 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
7495 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
7496 (i386_insn_is_jump, i386_jmp_p): New.
7497 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
7498 insn_is_jump to gdbarch.
7499 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
7500 * gdbarch.h: Regenerated.
7501 * gdbarch.c: Regenerated.
7502 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
7503 (default_insn_is_jump): New.
7504 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
7505 (default_insn_is_jump): New.
7507 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7509 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
7511 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
7512 (btrace_read_type) <btrace_read_new>: Change to ...
7513 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
7515 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7517 * common/linux-btrace.c (linux_read_btrace): Free trace from
7520 2014-01-15 Doug Evans <dje@google.com>
7522 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
7525 2014-01-15 Tom Tromey <tromey@redhat.com>
7527 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
7528 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
7529 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
7530 (set_objfile_main_name): New function.
7531 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
7532 language_of_main>: New fields.
7533 (set_objfile_main_name): Declare.
7534 * symtab.c (find_main_name): Loop over objfiles to find the main
7536 (set_main_name): Now static.
7537 (get_main_info): Add comment.
7538 * symtab.h (set_main_name): Don't declare.
7540 2014-01-15 Tom Tromey <tromey@redhat.com>
7542 * symtab.c (main_progspace_key): New global.
7543 (struct main_info): New.
7544 (name_of_main, language_of_main): Remove.
7545 (get_main_info, main_info_cleanup): New function.
7546 (set_main_name, main_name, main_language): Use get_main_info.
7547 (_initialize_symtab): Initialize main_progspace_key.
7549 2014-01-15 Tom Tromey <tromey@redhat.com>
7551 * dbxread.c (process_one_symbol): Update.
7552 * dwarf2read.c (read_partial_die): Update.
7553 * symfile.c (set_initial_language): Call main_language.
7554 * symtab.c (language_of_main): Now static.
7555 (set_main_name): Add 'lang' parameter.
7556 (find_main_name): Update.
7557 (main_language): New function.
7558 (symtab_observer_executable_changed): Update.
7559 * symtab.h (set_main_name): Update.
7560 (language_of_main): Remove.
7561 (main_language): Declare.
7563 2014-01-15 Tom Tromey <tromey@redhat.com>
7565 * symfile.c (init_entry_point_info): Use new "initialized" field.
7567 * objfiles.h (struct entry_point) <initialized>: New field.
7568 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
7569 (struct objfile) <ei>: ...here. Remove.
7570 * objfiles.c (entry_point_address_query): Update.
7572 2014-01-15 Tom Tromey <tromey@redhat.com>
7574 * objfiles.c (entry_point_address_query): Relocate entry point
7576 (objfile_relocate1): Do not relocate entry point address.
7577 * objfiles.h (struct entry_info) <entry_point>: Update comment.
7578 <the_bfd_section_index>: New field.
7579 * symfile.c (init_entry_point_info): Find the entry point's
7582 2014-01-15 Tom Tromey <tromey@redhat.com>
7584 * solib-frv.c (enable_break): Use entry_point_address_query.
7586 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7588 * NEWS: Add note on improved process record-replay on
7589 arm*-linux* targets.
7591 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7593 * arm-tdep.c (enum arm_record_result): New enum.
7594 (arm_record_unsupported_insn): New function.
7595 (arm_record_coproc_data_proc): Removed.
7596 (thumb2_record_ld_st_multiple): New function.
7597 (thumb2_record_ld_st_dual_ex_tbb): New function.
7598 (thumb2_record_data_proc_sreg_mimm): New function.
7599 (thumb2_record_ps_dest_generic): New function.
7600 (thumb2_record_branch_misc_cntrl): New function.
7601 (thumb2_record_str_single_data): New function.
7602 (thumb2_record_ld_mem_hints): New function.
7603 (thumb2_record_ld_word): New function.
7604 (thumb2_record_lmul_lmla_div): New function.
7605 (thumb2_record_decode_insn_handler): New function.
7606 (decode_insn): Add thumb32 instruction handlers.
7608 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7610 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
7611 (struct arm_linux_record_tdep): Declare.
7612 (arm_canonicalize_syscall): New function.
7613 (arm_all_but_pc_registers_record): New function.
7614 (arm_linux_syscall_record): New function.
7615 (arm_linux_init_abi): Add syscall recording constructs.
7616 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
7617 decoding. (arm_record_coproc_data_proc): Update arm syscall
7619 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
7620 <arm_syscall_record>: New field.
7621 * configure.tgt (arm*-*-linux*): Add linux-record.o to
7624 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7626 * arm-tdep.c (thumb_record_misc): Update to use sp as base
7627 register for push instruction recording.
7629 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7631 * arm-tdep.c (thumb_record_misc): Update to correct logical
7632 error while recording ldm, ldmia and pop instructions.
7634 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7636 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
7638 2014-01-15 Pedro Alves <palves@redhat.com>
7640 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
7641 (go32_resume, go32_fetch_registers, store_register)
7642 (go32_store_registers, go32_prepare_to_store)
7643 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
7644 (go32_create_inferior, go32_can_run, go32_terminal_init)
7645 (go32_terminal_inferior, go32_terminal_ours): Delete forward
7648 2014-01-15 Tom Tromey <tromey@redhat.com>
7650 * target.h (async_callback_ftype): New typedef.
7651 (struct target_ops) <to_async>: Use it.
7653 2014-01-15 Joel Brobecker <brobecker@adacore.com>
7655 * python/py-value.c (get_field_type): Remove unnecessary curly
7656 braces for single-statement if block.
7658 2014-01-15 Joel Brobecker <brobecker@adacore.com>
7660 * python/py-type.c (convert_field): Add missing empty line
7663 2014-01-14 Doug Evans <dje@google.com>
7665 * symfile.h (expand_symtabs_matching): Renamed from
7666 expand_partial_symbol_names. Update prototype.
7667 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
7668 * symfile.c (expand_symtabs_matching): Renamed from
7669 expand_partial_symbol_names. New args file_matcher, kind.
7670 Rename arg fun to symbol_matcher.
7671 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
7672 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
7673 ada_expand_partial_symbol_name.
7674 (ada_make_symbol_completion_list): Update to call
7675 expand_symtabs_matching.
7676 (ada_add_global_exceptions): Call expand_symtabs_matching.
7677 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
7678 call map_symbol_filenames.
7679 * symtab.c (sources_info): Update to call map_symbol_filenames.
7680 (search_symbols): Call expand_symtabs_matching.
7681 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
7682 (default_make_symbol_completion_list_break_on): Update to call
7683 expand_symtabs_matching.
7684 (make_source_files_completion_list): Update to call
7685 map_symbol_filenames.
7687 2014-01-14 Doug Evans <dje@google.com>
7689 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
7690 (expand_symtabs_symbol_matcher_ftype): New typedef.
7691 (quick_symbol_functions.expand_symtabs_matching): Update to use.
7692 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7693 * symfile.c (expand_partial_symbol_names): Update to use
7694 expand_symtabs_symbol_matcher_ftype.
7695 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
7696 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7697 Arg name_matcher renamed to symbol_matcher.
7698 * psymtab.c (recursively_search_psymtabs): Update to use
7699 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
7701 (expand_symtabs_matching_via_partial): Update to use
7702 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7703 Arg name_matcher renamed to symbol_matcher.
7705 2014-01-14 Doug Evans <dje@google.com>
7707 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
7708 (map_partial_symbol_filenames): Ditto.
7709 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
7710 (map_partial_symbol_filenames): Ditto.
7711 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
7712 (map_partial_symbol_filenames): Ditto.
7713 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
7714 (map_partial_symbol_filenames): Ditto.
7715 * symtab.c: Delete #include "psymtab.h".
7717 2014-01-14 Pedro Alves <palves@redhat.com>
7718 Tom Tromey <tromey@redhat.com>
7720 * infrun.c (use_displaced_stepping): Use find_record_target
7721 instead of RECORD_IS_USED.
7722 (adjust_pc_after_break): Use record_full_is_used instead of
7724 * record-btrace.c (record_btrace_open): Call record_preopen
7725 instead of checking RECORD_IS_USED.
7726 * record-full.c (record_full_shortname)
7727 (record_full_core_shortname): New globals.
7728 (record_full_is_used): New function.
7729 (find_full_open): Call record_preopen instead of checking
7731 (init_record_full_ops): Set the target's shortname to
7732 record_full_shortname.
7733 (init_record_full_core_ops): Set the target's shortname to
7734 record_full_core_shortname.
7735 * record-full.h (record_full_is_used): Declare.
7736 * record.c (find_record_target): Make extern.
7737 (record_preopen): New function.
7738 * record.h (RECORD_IS_USED): Delete macro.
7739 (find_record_target, record_preopen): Declare functions.
7741 2014-01-14 Yao Qi <yao@codesourcery.com>
7743 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
7744 'len''s type to ULONGEST.
7745 (core_xfer_shared_libraries_aix): Likewise.
7746 * gdbarch.c, gdbarch.h: Regenerated.
7747 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
7748 Change type of 'len' to ULONGEST.
7749 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7750 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7752 2014-01-14 Yao Qi <yao@codesourcery.com>
7754 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
7755 type of 'len' to ULONGEST.
7756 (linux_xfer_osdata_processgroups): Likewise.
7757 (linux_xfer_osdata_threads): Likewise.
7758 (linux_xfer_osdata_fds): Likewise.
7759 (linux_xfer_osdata_isockets): Likewise.
7760 (linux_xfer_osdata_shm): Likewise.
7761 (linux_xfer_osdata_sem): Likewise.
7762 (linux_xfer_osdata_msg): Likewise.
7763 (linux_common_xfer_osdata): Likewise.
7764 (struct osdata_type) <getter>: Likewise.
7765 * common/linux-osdata.h (linux_common_xfer_osdata): Update
7768 2014-01-14 Yao Qi <yao@codesourcery.com>
7770 * target.h (target_xfer_partial_ftype): Update.
7771 (struct target_ops) <to_xfer_partial>: Change 'len' type to
7773 * aix-thread.c (aix_thread_xfer_partial): Change type of
7774 argument 'len' to ULONGEST.
7775 * auxv.c (procfs_xfer_auxv): Likewise.
7776 (ld_so_xfer_auxv): Likewise.
7777 (memory_xfer_auxv): Likewise.
7778 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7779 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7780 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7781 * corelow.c (core_xfer_partial): Likewise.
7782 * ctf.c (ctf_xfer_partial): Likewise.
7783 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
7785 (darwin_read_dyld_info): Likewise.
7786 (darwin_xfer_partial): Likewise.
7787 * exec.c (section_table_xfer_memory_partial): Likewise.
7788 (exec_xfer_partial): Likewise.
7789 * exec.h (section_table_xfer_memory_partial): Update
7791 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
7792 instead of plongest.
7793 (gnu_xfer_partial): Likewise.
7794 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
7795 (ia64_hpux_xfer_solib_got): Likewise.
7796 (ia64_hpux_xfer_partial): Likewise.
7797 * ia64-linux-nat.c (ia64_linux_xfer_partial):
7798 * inf-ptrace.c (inf_ptrace_xfer_partial):
7799 * inf-ttrace.c (inf_ttrace_xfer_partial):
7800 * linux-nat.c (linux_xfer_siginfo): Likewise.
7801 (linux_nat_xfer_partial): Likewise.
7802 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
7803 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
7804 * monitor.c (monitor_xfer_memory): Likewise.
7805 (monitor_xfer_partial): Likewise.
7806 * procfs.c (procfs_xfer_partial): Likewise.
7807 * record-full.c (record_full_xfer_partial): Likewise.
7808 (record_full_core_xfer_partial): Likewise.
7809 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
7810 instead of plongest.
7811 (gdbsim_xfer_partial): Likewise.
7812 * remote.c (remote_xfer_partial): Likewise.
7813 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7814 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7816 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7817 (rs6000_xfer_shared_libraries): Likewise.
7818 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7819 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7820 (sparc_xfer_partial): Likewise.
7821 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7822 (spu_xfer_partial): Likewise.
7823 * spu-multiarch.c (spu_xfer_partial): Likewise.
7824 * target.c (target_read_live_memory): Likewise.
7825 (memory_xfer_live_readonly_partial): Likewise.
7826 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
7827 (target_xfer_partial, default_xfer_partial): Likewise.
7828 (current_xfer_partial): Likewise.
7829 * tracepoint.c (tfile_xfer_partial): Likewise.
7830 * windows-nat.c (windows_xfer_memory): Likewise. Call
7831 pulongest instead of plongest.
7832 (windows_xfer_partial): Likewise.
7833 (windows_xfer_shared_libraries): Likewise.
7835 2014-01-14 Yao Qi <yao@codesourcery.com>
7837 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
7838 target_xfer_partial_ftype.
7840 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
7844 * valops.c (value_struct_elt_bitpos): New function
7845 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
7846 object to 'None' if the field name is an empty string ("").
7847 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
7848 attribute to look for a field when 'name' is 'None'.
7849 (get_field_type): New function
7851 2014-01-13 Doug Evans <dje@google.com>
7854 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
7855 (try_open_dwop_file): Ditto.
7856 * gdb_bfd.c: #include "vec.h".
7857 (bfdp): New typedef.
7858 (struct gdb_bfd_data): New member included_bfds.
7859 (gdb_bfd_unref): Unref all included bfds.
7860 (gdb_bfd_record_inclusion): New function.
7861 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
7863 2014-01-13 Tom Tromey <tromey@redhat.com>
7865 * gdbcore.h (deprecated_core_resize_section_table): Remove.
7867 2014-01-13 Tom Tromey <tromey@redhat.com>
7869 * defs.h (use_windows): Remove.
7870 * gdb.c (main): Update.
7871 * main.c (captured_main, gdb_main): Update.
7872 * main.h (struct captured_main_args) <use_windows>: Remove.
7873 * top.c (use_windows): Remove.
7875 2014-01-13 Tom Tromey <tromey@redhat.com>
7877 * defs.h (deprecated_flush_hook): Remove.
7879 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7882 * linux-thread-db.c (try_thread_db_load): Add parameter
7883 check_auto_load_safe. Move here the file_is_auto_load_safe call.
7884 (try_thread_db_load_from_pdir_1): Move it there from here.
7885 (try_thread_db_load_from_sdir): Update caller.
7886 (try_thread_db_load_from_dir): Move it there from here.
7888 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
7890 * regformats/regdat.sh: Always rewrite the register file.
7892 2014-01-13 Pedro Alves <palves@redhat.com>
7894 * Makefile.in (CHECK_HEADERS): New variable.
7895 (check-headers:): New rule.
7897 2014-01-13 Tom Tromey <tromey@redhat.com>
7899 * cli/cli-setshow.c (do_set_command): Update.
7900 * defs.h (deprecated_set_hook): Remove.
7901 * top.c (deprecated_set_hook): Remove.
7903 2014-01-13 Pedro Alves <palves@redhat.com>
7905 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
7906 the tracepoint if the PC is a pseudo-register.
7908 2014-01-13 Tom Tromey <tromey@redhat.com>
7910 * defs.h (XCALLOC): Remove.
7911 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
7912 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
7913 * dwarf2loc.c (allocate_piece_closure): Likewise.
7914 * elfread.c (elf_symfile_segments): Likewise.
7915 (elf_symfile_segments): Likewise.
7916 * gdbtypes.c (copy_type_recursive): Likewise.
7917 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
7918 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
7919 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
7921 * mt-tdep.c (mt_gdbarch_init): Likewise.
7922 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
7924 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
7925 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
7926 * registry.c (registry_alloc_data): Likewise.
7927 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
7928 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7929 * serial.c (serial_fdopen_ops): Likewise.
7930 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
7932 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
7933 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
7936 2014-01-13 Tom Tromey <tromey@redhat.com>
7938 * defs.h (XMALLOC): Remove.
7939 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
7940 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
7941 * cli-out.c (struct ui_out *): Likewise.
7942 * cli/cli-dump.c (add_dump_command): Likewise.
7943 (add_dump_command): Likewise.
7944 * complaints.c (get_complaints): Likewise.
7945 (find_complaint): Likewise.
7946 * dwarf2-frame.c (execute_cfa_program): Likewise.
7947 * dwarf2read.c (abbrev_table_read_table): Likewise.
7948 * gdbarch.sh: Likewise.
7949 * gdbarch.c: Rebuild.
7950 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
7951 * interps.c (interp_new): Likewise.
7952 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
7953 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7954 * mi/mi-console.c (mi_console_file_new): Likewise.
7955 * mi/mi-interp.c (mi_interpreter_init): Likewise.
7956 * mi/mi-out.c (mi_out_new): Likewise.
7957 * mi/mi-parse.c (mi_parse): Likewise.
7958 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
7959 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7960 * observer.c (xalloc_observer_list_node): Likewise.
7961 * regcache.c (regcache_xmalloc_1): Likewise.
7962 * reggroups.c (reggroup_new): Likewise.
7963 (_initialize_reggroup): Likewise.
7964 * registry.c (register_data_with_cleanup): Likewise.
7965 * remote.c (remote_notif_stop_alloc_reply): Likewise.
7966 * ser-base.c (serial_ttystate): Likewise.
7967 * ser-mingw.c (make_pipe_state): Likewise.
7968 * ser-pipe.c (pipe_open): Likewise.
7969 * serial.c (serial_open): Likewise.
7970 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
7971 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
7972 (tui_alloc_win_info): Likewise.
7973 (tui_add_content_elements): Likewise.
7974 * tui/tui-file.c (tui_file_new): Likewise.
7975 * tui/tui-out.c (tui_out_new): Likewise.
7976 * ui-file.c (mem_file_new): Likewise.
7977 * ui-out.c (push_level): Likewise.
7978 (make_cleanup_ui_out_end): Likewise.
7979 (append_header_to_list): Likewise.
7980 (ui_out_new): Likewise.
7981 * user-regs.c (user_reg_add_builtin): Likewise.
7983 2014-01-13 Tom Tromey <tromey@redhat.com>
7985 * defs.h (XZALLOC): Remove.
7986 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
7987 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
7988 (get_ada_tasks_inferior_data): Likewise.
7989 * auto-load.c (get_auto_load_pspace_data): Likewise.
7990 * auxv.c (get_auxv_inferior_data): Likewise.
7991 * bfd-target.c (target_bfd_reopen): Likewise.
7992 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
7993 (deprecated_insert_raw_breakpoint): Likewise.
7994 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
7995 * corelow.c (core_open): Likewise.
7996 * darwin-nat.c (darwin_check_new_threads): Likewise.
7997 (darwin_attach_pid): Likewise.
7998 * dummy-frame.c (dummy_frame_push): Likewise.
7999 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
8000 * dwarf2loc.c (allocate_piece_closure): Likewise.
8001 * elfread.c (elf_symfile_segments): Likewise.
8002 * eval.c (ptrmath_type_p): Likewise.
8003 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
8004 * gdbtypes.c (alloc_type_arch): Likewise.
8005 (alloc_type_instance): Likewise.
8006 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
8007 * inf-child.c (inf_child_can_use_agent): Likewise.
8008 * inflow.c (get_inflow_inferior_data): Likewise.
8009 * infrun.c (save_infcall_suspend_state): Likewise.
8010 * jit.c (jit_reader_load): Likewise.
8011 (get_jit_objfile_data): Likewise.
8012 (get_jit_program_space_data): Likewise.
8013 (jit_object_open_impl): Likewise.
8014 (jit_symtab_open_impl): Likewise.
8015 (jit_block_open_impl): Likewise.
8016 (jit_frame_sniffer): Likewise.
8017 * linux-fork.c (add_fork): Likewise.
8018 * maint.c (make_command_stats_cleanup): Likewise.
8019 * objfiles.c (get_objfile_pspace_data): Likewise.
8020 * opencl-lang.c (struct lval_closure): Likewise.
8021 * osdata.c (osdata_start_osdata): Likewise.
8022 * progspace.c (new_address_space): Likewise.
8023 (add_program_space): Likewise.
8024 * remote-sim.c (get_sim_inferior_data): Likewise.
8025 * sh-tdep.c (sh_gdbarch_init): Likewise.
8026 * skip.c (Ignore): Likewise.
8027 (skip_delete_command): Likewise.
8028 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
8029 (library_list_start_library): Likewise.
8030 (solib_aix_current_sos): Likewise.
8031 * solib-darwin.c (get_darwin_info): Likewise.
8032 (darwin_current_sos): Likewise.
8033 * solib-dsbt.c (get_dsbt_info): Likewise.
8034 * solib-ia64-hpux.c (new_so_list): Likewise.
8035 (ia64_hpux_get_solib_linkage_addr): Likewise.
8036 * solib-spu.c (append_ocl_sos): Likewise.
8037 (spu_current_sos): Likewise.
8038 * solib-svr4.c (get_svr4_info): Likewise.
8039 (svr4_keep_data_in_core): Likewise.
8040 (library_list_start_library): Likewise.
8041 (svr4_default_sos): Likewise.
8042 (svr4_read_so_list): Likewise.
8043 * solib-target.c (library_list_start_library): Likewise.
8044 (solib_target_current_sos): Likewise.
8045 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8046 * symfile-debug.c (install_symfile_debug_logging): Likewise.
8047 * symfile.c (default_symfile_segments): Likewise.
8048 * target-descriptions.c (tdesc_data_init): Likewise.
8049 (tdesc_create_reg): Likewise.
8050 (struct tdesc_type *): Likewise.
8051 (tdesc_create_vector): Likewise.
8052 (tdesc_set_struct_size): Likewise.
8053 (struct tdesc_type *): Likewise.
8054 (tdesc_free_feature): Likewise.
8055 (tdesc_create_feature): Likewise.
8056 * windows-nat.c (windows_add_thread): Likewise.
8057 (windows_make_so): Likewise.
8058 * xml-support.c (gdb_xml_body_text): Likewise.
8059 (gdb_xml_create_parser_and_cleanup): Likewise.
8060 (xml_process_xincludes): Likewise.
8061 * xml-syscall.c (allocate_syscalls_info): Likewise.
8062 (syscall_create_syscall_desc): Likewise.
8064 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
8066 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
8067 function, with code from i386_stap_parse_special_token.
8068 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8069 (i386_stap_parse_special_token): Move code to the two functions
8072 2014-01-09 Pedro Alves <palves@redhat.com>
8073 Hui Zhu <hui@codesourcery.com>
8076 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
8077 bp_err_string. Don't mark the location shlib_disabled if the
8078 error thrown wasn't a generic or memory error. Catch errors
8079 thrown while inserting breakpoints in overlayed code. Output
8080 error message of software breakpoints.
8081 * remote.c (remote_insert_breakpoint): If this breakpoint has
8082 target-side commands but this stub doesn't support Z0 packets,
8083 throw NOT_SUPPORTED_ERROR error.
8084 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
8085 * target.h (target_insert_breakpoint): Extend comment.
8086 (target_insert_hw_breakpoint): Add comment.
8088 2014-01-08 Pedro Alves <palves@redhat.com>
8090 * remote.c (remote_add_thread): Add threads silently if starting
8092 (remote_notice_new_inferior): If in all-stop, and starting up,
8093 don't call notice_new_inferior.
8094 (get_current_thread): New function, factored out from ...
8095 (add_current_inferior_and_thread): ... this. Adjust.
8096 (remote_start_remote) <all-stop>: Fetch the thread list. If we
8097 found any thread, then select the remote's current thread as GDB's
8100 2014-01-08 Joel Brobecker <brobecker@adacore.com>
8102 * NEWS: Create a new section for the next release branch.
8103 Rename the section of the current branch, now that it has
8106 2014-01-08 Joel Brobecker <brobecker@adacore.com>
8108 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
8109 * version.in: Bump version to 7.7.50.DATE-cvs.
8111 2014-01-08 Yao Qi <yao@codesourcery.com>
8113 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
8114 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
8115 (spu_xfer_partial): Cast 'buf' to 'const char *'.
8117 2014-01-08 Yao Qi <yao@codesourcery.com>
8119 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
8120 return value of bfd_get_filename to symbol_file_add_from_bfd.
8122 2014-01-08 Pierre Muller <muller@sourceware.org>
8125 * coff-pe-read.c (struct read_pe_section_data): Add index field.
8126 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
8127 to prim_record_mininal_symbol_and_info.
8128 (add_pe_forwarded_sym): Use known section number of forwarded symbol
8129 in call to prim_record_minimal_symbol_and_info.
8130 (read_pe_exported_syms): Set index field of section_data.
8132 2014-01-07 Andrew Pinski <apinski@cavium.com>
8134 * features/aarch64-core.xml (cpsr): Change to be 64bit.
8135 * features/aarch64.c: Regenerate.
8137 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
8139 * target.c (return_null): Define.
8140 (update_current_target): Use it instead of return_zero for
8141 functions that return a pointer.
8143 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
8145 * source.c (add_path): Fix check for duplicated paths in the previously
8148 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
8150 * ada-lang.c: Remove duplicated include statements.
8151 * alphabsd-nat.c: Ditto.
8152 * amd64-darwin-tdep.c: Ditto.
8153 * amd64fbsd-nat.c: Ditto.
8154 * auto-load.c: Ditto.
8156 * breakpoint.c: Ditto.
8158 * fork-child.c: Ditto.
8159 * gdb_usleep.c: Ditto.
8160 * i386-darwin-tdep.c: Ditto.
8161 * i386fbsd-nat.c: Ditto.
8163 * inferior.c: Ditto.
8165 * linux-nat.c: Ditto.
8166 * linux-tdep.c: Ditto.
8167 * m68kbsd-nat.c: Ditto.
8168 * m68klinux-nat.c: Ditto.
8169 * microblaze-tdep.c: Ditto.
8170 * mips-linux-tdep.c: Ditto.
8171 * mn10300-tdep.c: Ditto.
8172 * nto-tdep.c: Ditto.
8173 * opencl-lang.c: Ditto.
8175 * printcmd.c: Ditto.
8176 * regcache.c: Ditto.
8177 * remote-m32r-sdi.c: Ditto.
8181 * tilegx-linux-nat.c: Ditto.
8182 * tilegx-tdep.c: Ditto.
8183 * tracepoint.c: Ditto.
8185 * vaxbsd-nat.c: Ditto.
8186 * windows-nat.c: Ditto.
8187 * xtensa-tdep.c: Ditto.
8189 2014-01-07 Yao Qi <yao@codesourcery.com>
8191 * spu-linux-nat.c (_initialize_spu_nat): Declare.
8193 2014-01-07 Yao Qi <yao@codesourcery.com>
8194 Joel Brobecker <brobecker@adacore.com>
8196 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
8197 (pdc_write_regs): Likewise.
8198 (fetch_regs_kernel_thread): Likewise.
8199 (store_regs_kernel_thread): Likewise.
8201 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8203 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
8204 tagged type objects to their actual type.
8206 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8208 * ada-valprint.c (print_field_values): Add "language" parameter.
8209 Update calls to print_field_values and print_variant_part.
8210 Pass new parameter "language" in call to val_print instead
8211 of "current_language". Replace call to ada_val_print by call
8213 (print_variant_part): Add "language" parameter.
8214 (ada_val_print_struct_union): Update call to print_field_values.
8216 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8218 * ada-valprint.c (ui_memcpy): Delete.
8219 (ada_print_floating): Update documentation. Add empty line
8220 between between function documentation and implementation.
8221 Delete variable "buffer". Use ui_file_xstrdup in place of
8222 ui_file_put. Minor adjustments following this change.
8224 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8226 * ada-valprint.c (ada_val_print_string): New function,
8227 extracted from ada_val_print_array.
8228 (ada_val_print_array): Replace extracted code by call
8229 to ada_val_print_string followed by a return. Move
8230 "else" branch to the function's top block.
8232 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8234 * ada-valprint.c (ada_val_print_array): Move implementation
8235 down. Rename parameter "offset" and "val" into "offset_aligned"
8236 and "original_value" respectively. Add parameter "offset".
8238 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8240 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
8241 re-organizing the code. Change the "???" message printed
8242 when target type is a TYPE_CODE_UNDEF into
8243 "<ref to undefined type>".
8245 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8247 * ada-valprint.c (print_record): Delete, implementation inlined...
8248 (ada_val_print_struct_union): ... here. Remove call to
8249 ada_check_typedef in inlined implementation.
8251 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8253 * ada-valprint.c (ada_val_print_gnat_array): New function,
8254 extracted from ada_val_print_1;
8255 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
8256 (ada_val_print_flt, ada_val_print_struct_union)
8257 (ada_val_print_ref): Likewise.
8258 (ada_val_print_1): Delete variables i and elttype.
8259 Replace extracted-out code by call to corresponding
8262 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8264 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
8266 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8268 * ada-valprint.c (ada_val_print_1): Replace calls to
8269 ada_val_print_1 by calls to val_print.
8271 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8273 * ada-valprint.c (ada_val_print_1): Add parameter "language".
8274 Update calls to self accordingly. Replace calls to c_val_print
8275 by calls to val_print.
8277 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8279 * ada-valprint.c (print_record): Delete declaration.
8280 (adjust_type_signedness, ada_val_print_1): Likewise.
8281 (ada_val_print): Move function implementation down.
8282 (print_variant_part, print_field_values, print_record):
8283 Move function implementation up.
8285 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8287 * python/py-type.c (typy_get_name): New function.
8288 (type_object_getset): Add entry for attribute "name".
8289 * NEWS: Add entry mentioning this new attribute.
8291 2014-01-07 Yao Qi <yao@codesourcery.com>
8293 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
8296 2014-01-07 Yao Qi <yao@codesourcery.com>
8298 * gnu-nat.c (info_port_rights): Add qualifier const to
8301 2014-01-07 Yao Qi <yao@codesourcery.com>
8303 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
8305 2014-01-07 Yao Qi <yao@codesourcery.com>
8307 * gnu-nat.c (make_inf) Update declaration.
8308 (make_inf): Make it static.
8309 (inf_set_traced): Likewise.
8310 (inf_port_to_thread, inf_task_died_status): Likewise.
8312 2014-01-07 Yao Qi <yao@codesourcery.com>
8314 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
8316 2014-01-07 Yao Qi <yao@codesourcery.com>
8318 * gnu-nat.c (_initialize_gnu_nat): Declare.
8320 2014-01-07 Yao Qi <yao@codesourcery.com>
8322 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
8324 (struct gdbarch_info) <byte_order>: Change type to
8326 <byte_order_for_code>: Likewise.
8327 * gdbarch.c, gdbarch.h: Regenerated.
8329 2014-01-06 Sasha Smundak <asmundak@google.com>
8331 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
8333 2014-01-06 Tom Tromey <tromey@redhat.com>
8335 * doublest.c (convert_doublest_to_floatformat): Use const, not
8337 * somread.c (som_symtab_read): Likewise.
8339 2014-01-07 Hui Zhu <hui@codesourcery.com>
8341 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
8342 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
8343 (gdb_bfd_fopen): Ditto.
8344 (gdb_bfd_openr): Ditto.
8345 (gdb_bfd_openw): Ditto.
8346 (gdb_bfd_openr_iovec): Ditto.
8347 (gdb_bfd_fdopenr): Ditto.
8348 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
8349 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
8351 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
8353 * symfile-mem.c (symbol_file_add_from_memory): Removed
8354 gdb_bfd_stash_filename.
8356 2014-01-03 Doug Evans <dje@google.com>
8358 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
8361 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8363 Update year range in copyright notice of all files.
8365 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8367 * top.c (print_gdb_version): Set copyright year to 2014.
8369 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8371 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
8373 For older changes see ChangeLog-2013.
8379 version-control: never