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