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