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