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