]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Add target_ops argument to to_load
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
71a9f134
TT
12014-02-19 Tom Tromey <tromey@redhat.com>
2
3 * target.h (struct target_ops) <to_load>: Add argument.
4 * target.c (target_load): Add argument.
5 (debug_to_load): Add argument.
6 (update_current_target): Update.
7 * remote.c (remote_load): Add 'self' argument.
8 * remote-sim.c (gdbsim_load): Add 'self' argument.
9 * remote-mips.c (mips_load): Add 'self' argument.
10 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11 * monitor.c (monitor_load): Add 'self' argument.
12 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13
0a4f40a2
TT
142014-02-19 Tom Tromey <tromey@redhat.com>
15
16 * target.h (struct target_ops) <to_terminal_info>: Add argument.
17 (target_terminal_info): Add argument.
18 * target.c (debug_to_terminal_info): Add argument.
19 (default_terminal_info): Likewise.
20 * inflow.c (child_terminal_info): Add 'self' argument.
21 * inferior.h (child_terminal_info): Add 'self' argument.
22 * go32-nat.c (go32_terminal_info): Add 'self' argument.
23
ae3bd431
TT
242014-02-19 Tom Tromey <tromey@redhat.com>
25
26 * target.h (struct target_ops) <to_terminal_save_ours>: Add
27 argument.
28 (target_terminal_save_ours): Add argument.
29 * target.c (debug_to_terminal_save_ours): Add argument.
30 (update_current_target): Update.
31 * inflow.c (terminal_save_ours): Add 'self' argument.
32 * inferior.h (terminal_save_ours): Add 'self' argument.
33
e3594fd1
TT
342014-02-19 Tom Tromey <tromey@redhat.com>
35
36 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
37 (target_terminal_ours): Add argument.
38 * target.c (debug_to_terminal_ours): Add argument.
39 (update_current_target): Update.
40 * remote.c (remote_terminal_ours): Add 'self' argument.
41 (remote_close): Update.
42 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
43 * inflow.c (terminal_ours): Add 'self' argument.
44 * inferior.h (terminal_ours): Add 'self' argument.
45 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
46
2e1e1a19
TT
472014-02-19 Pedro Alves <palves@redhat.com>
48 Tom Tromey <tromey@redhat.com>
49
50 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
51 argument.
52 (target_terminal_ours_for_output): Add argument.
53 * target.c (debug_to_terminal_ours_for_output): Add argument.
54 (update_current_target): Update.
55 * inflow.c (terminal_ours_for_output): Add 'self' argument.
56 * inferior.h (terminal_ours_for_output): Add 'self' argument.
57 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
58
d2f640d4
TT
592014-02-19 Tom Tromey <tromey@redhat.com>
60
61 * target.h (struct target_ops) <to_terminal_inferior>: Add
62 argument.
63 * target.c (target_terminal_inferior): Add argument.
64 (update_current_target): Update.
65 * remote.c (remote_terminal_inferior): Add 'self' argument.
66 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
67 * inflow.c (terminal_inferior): Add 'self' argument.
68 * inferior.h (terminal_inferior): Add 'self' argument.
69 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
70 (go32_terminal_inferior): Add 'self' argument.
71
c42bf286
TT
722014-02-19 Tom Tromey <tromey@redhat.com>
73
74 * target.h (struct target_ops) <to_terminal_init>: Add argument.
75 (target_terminal_init): Add argument.
76 * target.c (debug_to_terminal_init): Add argument.
77 (update_current_target): Update.
78 * inflow.c (terminal_init_inferior): Add 'self' argument.
79 * inferior.h (terminal_init_inferior): Add 'self' argument.
80 * go32-nat.c (go32_terminal_init): Add 'self' argument.
81 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
82
c3a5ff89
TT
832014-02-19 Tom Tromey <tromey@redhat.com>
84
85 * target.h (struct target_ops)
86 <to_can_accel_watchpoint_condition>: Add argument.
87 (target_can_accel_watchpoint_condition): Add argument.
88 * target.c (debug_to_can_accel_watchpoint_condition): Add
89 argument.
90 (update_current_target): Update.
91 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
92 'self' argument.
93
31568a15
TT
942014-02-19 Tom Tromey <tromey@redhat.com>
95
96 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
97 Add argument.
98 (target_region_ok_for_hw_watchpoint): Add argument.
99 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
100 (default_region_ok_for_hw_watchpoint): Add argument.
101 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
102 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
103 argument.
104 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
105 argument.
106 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
107 argument.
108 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
109 'self' argument.
110 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
111 'self' argument.
112 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
113 'self' argument.
114 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
115 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
116 'self' argument.
117 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
118 Add 'self' argument.
119
7bb99c53
TT
1202014-02-19 Tom Tromey <tromey@redhat.com>
121
122 * target.h (struct target_ops) <to_insert_watchpoint>: Add
123 argument.
124 (target_insert_watchpoint): Add argument.
125 * target.c (debug_to_insert_watchpoint): Add argument.
126 (update_current_target): Update.
127 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
128 * remote.c (remote_insert_watchpoint): Add 'self' argument.
129 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
130 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
131 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
132 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
133 argument.
134 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
135 (procfs_insert_hw_watchpoint): Add 'self' argument.
136 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
137 argument.
138 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
139 argument.
140 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
141 argument.
142 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
143 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
144 argument.
145 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
146 'self' argument.
147
11b5219a
TT
1482014-02-19 Tom Tromey <tromey@redhat.com>
149
150 * target.h (struct target_ops) <to_remove_watchpoint>: Add
151 argument.
152 (target_remove_watchpoint): Add argument.
153 * target.c (debug_to_remove_watchpoint): Add argument.
154 (update_current_target): Update.
155 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
156 * remote.c (remote_remove_watchpoint): Add 'self' argument.
157 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
158 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
159 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
160 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
161 argument.
162 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
163 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
164 argument.
165 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
166 argument.
167 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
168 argument.
169 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
170 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
171 argument.
172 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
173 'self' argument.
174
a64dc96c
TT
1752014-02-19 Tom Tromey <tromey@redhat.com>
176
177 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
178 argument.
179 (target_remove_hw_breakpoint): Add argument.
180 * target.c (debug_to_remove_hw_breakpoint): Add argument.
181 (update_current_target): Update.
182 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
183 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
184 argument.
185 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
186 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
187 argument.
188 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
189 'self' argument.
190
23a26771
TT
1912014-02-19 Tom Tromey <tromey@redhat.com>
192
193 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
194 argument.
195 (target_insert_hw_breakpoint): Add argument.
196 * target.c (debug_to_insert_hw_breakpoint): Add argument.
197 (update_current_target): Update.
198 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
199 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
200 argument.
201 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
202 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
203 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
204 argument.
205 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
206 'self' argument.
207
5461485a
TT
2082014-02-19 Tom Tromey <tromey@redhat.com>
209
210 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
211 argument.
212 (target_can_use_hardware_watchpoint): Add argument.
213 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
214 (update_current_target): Update.
215 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
216 argument.
217 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
218 argument.
219 * remote.c (remote_check_watch_resources): Add 'self' argument.
220 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
221 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
222 argument.
223 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
224 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
225 argument.
226 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
227 argument.
228 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
229 argument.
230 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
231 argument.
232 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
233 argument.
234 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
235 argument.
236 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
237 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
238 argument.
239 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
240 'self' argument.
241
f045800c
TT
2422014-02-19 Tom Tromey <tromey@redhat.com>
243
244 * target.h (struct target_ops) <to_post_attach>: Add argument.
245 (target_post_attach): Add argument.
246 * target.c (debug_to_post_attach): Add argument.
247 (update_current_target): Update.
248 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
249 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
250 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
251 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
252 * inf-child.c (inf_child_post_attach): Add 'self' argument.
253
de90e03d
TT
2542014-02-19 Tom Tromey <tromey@redhat.com>
255
256 * windows-nat.c (windows_close): Add 'self' argument.
257 * tracepoint.c (tfile_close): Add 'self' argument.
258 * target.h (struct target_ops) <to_close>: Add argument.
259 * target.c (target_close): Add argument.
260 (update_current_target): Update.
261 * remote.c (remote_close): Add 'self' argument.
262 * remote-sim.c (gdbsim_close): Add 'self' argument.
263 * remote-mips.c (mips_close): Add 'self' argument.
264 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
265 * record-full.c (record_full_close): Add 'self' argument.
266 * record-btrace.c (record_btrace_close): Add 'self' argument.
267 * monitor.h (monitor_close): Add 'self' argument.
268 * monitor.c (monitor_close): Add 'self' argument.
269 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
270 * linux-nat.c (linux_nat_close): Add argument.
271 * go32-nat.c (go32_close): Add 'self' argument.
272 * exec.c (exec_close_1): Add 'self' argument.
273 * ctf.c (ctf_close): Add 'self' argument.
274 * corelow.c (core_close): Add 'self' argument.
275 (core_close_cleanup): Update.
276 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
277 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
278
9dd130a0
TT
2792014-02-19 Tom Tromey <tromey@redhat.com>
280
281 * remote.c (remote_load): New function.
282 (init_remote_ops): Use it.
283
46917d26
TT
2842014-02-19 Tom Tromey <tromey@redhat.com>
285
286 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
287 argument.
288 * common/linux-btrace.h (linux_supports_btrace): Update.
289 * remote.c (remote_supports_btrace): Add "self" argument.
290 * target-delegates.c: Rebuild.
291 * target.c (target_supports_btrace): Remove.
292 * target.h (struct target_ops) <to_supports_btrace>: Add
293 target_ops argument.
294 (target_supports_btrace): New define.
295
6b84065d
TT
2962014-02-19 Tom Tromey <tromey@redhat.com>
297
298 * record-full.c (record_full_beneath_to_resume_ops)
299 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
300 (record_full_beneath_to_wait)
301 (record_full_beneath_to_store_registers_ops)
302 (record_full_beneath_to_store_registers)
303 (record_full_beneath_to_xfer_partial_ops)
304 (record_full_beneath_to_xfer_partial)
305 (record_full_beneath_to_insert_breakpoint_ops)
306 (record_full_beneath_to_insert_breakpoint)
307 (record_full_beneath_to_remove_breakpoint_ops)
308 (record_full_beneath_to_remove_breakpoint)
309 (record_full_beneath_to_stopped_by_watchpoint)
310 (record_full_beneath_to_stopped_data_address)
311 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
312 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
313 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
314 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
315 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
316 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
317 (tmp_to_stopped_data_address, tmp_to_async): Remove.
318 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
319 (record_full_resume, record_full_wait_1)
320 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
321 (record_full_store_registers, record_full_xfer_partial)
322 (record_full_insert_breakpoint, record_full_remove_breakpoint)
323 (record_full_async, record_full_core_xfer_partial): Use target
324 delegation.
325 * target-delegates.c: Rebuild.
326 * target.c (current_xfer_partial): Remove.
327 (update_current_target): Do not INHERIT or de_fault
328 to_insert_breakpoint, to_remove_breakpoint,
329 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
330 to_is_async_p, to_async. Do not set to_xfer_partial field.
331 (default_xfer_partial): Simplify.
332 (current_xfer_partial): Remove.
333 (target_wait, target_resume): Simplify.
334 (find_default_can_async_p, find_default_is_async_p): Update.
335 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
336 to_xfer_partial, to_stopped_by_watchpoint,
337 to_stopped_data_address.
338 (target_store_registers): Simplify.
339 (forward_target_remove_breakpoint)
340 (forward_target_insert_breakpoint): Remove.
341 (target_remove_breakpoint, target_insert_breakpoint)
342 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
343 * target.h (struct target_ops) <to_resume, to_wait,
344 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
345 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
346 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
347 markup.
348 (forward_target_remove_breakpoint)
349 (forward_target_insert_breakpoint): Remove.
350 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
351 directly.
352 (record_btrace_insert_breakpoint): Delegate directly.
353
1101cb7b
TT
3542014-02-19 Tom Tromey <tromey@redhat.com>
355
356 PR build/7701:
357 * target-delegates.c: New file.
358 * target.c: Include target-delegates.c.
359 (init_dummy_target): Call install_dummy_methods.
360 (complete_target_initialization): Call install_delegators.
361 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
362 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
363 * make-target-delegates: New file.
364
8b06beed
TT
3652014-02-19 Tom Tromey <tromey@redhat.com>
366
367 * record.c (find_record_target): Use find_target_at.
368 * target.c (find_target_at): New function.
369 * target.h (find_target_at): Declare.
370
6a109b6b
TT
3712014-02-19 Tom Tromey <tromey@redhat.com>
372
373 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
374 Add 'ops' argument.
375 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
376 'ops' argument.
377 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
378 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
379 'ops' argument.
380 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
381 argument.
382 * linux-nat.c (save_sigtrap): Update.
383 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
384 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
385 (linux_nat_close): Update.
386 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
387 argument.
388 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
389 argument.
390 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
391 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
392 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
393 (tmp_to_async): Add 'ops' argument.
394 (record_full_stopped_by_watchpoint, record_full_async)
395 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
396 argument.
397 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
398 (m32r_stopped_by_watchpoint): Add 'ops' argument.
399 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
400 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
401 (remote_is_async_p, remote_async): Add 'ops' argument.
402 (remote_stopped_data_address): Update.
403 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
404 * target.c (update_current_target)
405 (find_default_can_async_p, find_default_is_async_p): Update.
406 (init_dummy_target): Update.
407 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
408 * target.h (struct target_ops) <to_stopped_by_watchpoint,
409 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
410 (target_can_async_p, target_is_async_p, target_async)
411 (target_stopped_by_watchpoint): Update.
412
e095146b
YQ
4132014-02-19 Yao Qi <yao@codesourcery.com>
414
415 PR gdb/16220
416 * gdbarch.sh: Remove startup_gdbarch.
417 * gdbarch.c: Regenerated.
418 * gdbarch.h: Likewise.
419
bc3c6b36
KB
4202014-02-17 Kevin Buettner <kevinb@redhat.com>
421
422 * rl78-tdep.c (rl78_g10_register_name): New function.
423 (rl78_return_value): Add g10 support.
424 (rl78_gdbarch_init): Register rl78_g10_register_name for the
425 g10.
426
98dc0167 4272014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
428
429 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
430 (SUBDIR_GUILE_SRCS): Ditto.
431 (scm-gsmob.o): Ditto.
432
842c05cd
YQ
4332014-02-17 Yao Qi <yao@codesourcery.com>
434
435 * gnu-nat.c (ILL_RPC): Declare defined function.
436
25c0bd04
YQ
4372014-02-17 Yao Qi <yao@codesourcery.com>
438
439 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
440 mach_msg_type_number_t.
441 (gnu_write_inferior): Likewise.
442
a9a758e3
YQ
4432014-02-17 Yao Qi <yao@codesourcery.com>
444
445 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
446 in format string.
447 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
448 (inf_validate_procs, inf_signal): Likewise.
449 (S_exception_raise_request): Likewise.
450 (do_mach_notify_dead_name): Likewise.
451 (steal_exc_port): Likewise.
452 (gnu_read_inferior): Change 'copy_count''s type to
453 mach_msg_type_number_t.
454 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
455 format string.
456
bae8023e
TS
4572014-02-16 Thomas Schwinge <thomas@codesourcery.com>
458
c82f56d9
TS
459 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
460 flag. Adjust all users; in particular...
461 (gnu_wait): ..., don't decrement its value in here...
462 (gnu_create_inferior): ..., and instead set the flag in here,
463 around the startup_inferior call, and call that one with
464 START_INFERIOR_TRAPS_EXPECTED.
465
3398af6a
TS
466 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
467 (ILL_RPC): ... new macro.
468 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
469 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
470 (do_mach_notify_send_once, S_proc_setmsgport_reply)
471 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
472 functions with ILL_RPC macro.
473 (S_proc_pid2task_reply, S_proc_task2pid_reply)
474 (S_proc_task2proc_reply, S_proc_proc2task_reply)
475 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
476 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
477 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
478 (S_proc_getlogin_reply, S_proc_getsid_reply)
479 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
480 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
481 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
482 (S_proc_getnports_reply, S_proc_is_important_reply)
483 (S_proc_get_code_reply): New stub functions, generated with
484 ILL_RPC macro.
485
d47642c9
TS
486 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
487 collected the type check structures.
488
bae8023e
TS
489 * reply_mig_hack.awk: Don't expect to see the auto keyword.
490
8a55ffb0
DE
4912014-02-14 Doug Evans <dje@google.com>
492
493 * target.c (target_write_partial): Fix result type.
494
c2853f3d
JM
4952014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
496
497 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
498 the proper offsets to access fpregset_t.
499
ac61d2db
SA
5002014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
501
502 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
503 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
504 * h8300-tdep.c (setmachinelist): Remove global.
505 * hppa-tdep.c (hppa_sigtramp): Remove global.
506 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
507 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
508 * ravenscar-thread.c (update_target_observer): Remove global.
509 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
510
9d2d0b8b
TT
5112014-02-12 Tom Tromey <tromey@redhat.com>
512
513 * common/rsp-low.c: Update comments.
514 * common/rsp-low.h: Update comments.
515
a7191e8b
TT
5162014-02-12 Tom Tromey <tromey@redhat.com>
517
518 * common/rsp-low.c (convert_ascii_to_int): Remove.
519 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
520
ff0e980e
TT
5212014-02-12 Tom Tromey <tromey@redhat.com>
522
523 * common/rsp-low.h (unhexify): Don't declare.
524 * common/rsp-low.c (unhexify): Remove.
525
e9371aff
TT
5262014-02-12 Tom Tromey <tromey@redhat.com>
527
528 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
529 * common/rsp-low.c (convert_int_to_ascii): Remove.
530
971dc0b8
TT
5312014-02-12 Tom Tromey <tromey@redhat.com>
532
533 * common/rsp-low.h (hexify): Don't declare.
534 * common/rsp-low.c (hexify): Remove.
535
0a822afb
TT
5362014-02-12 Tom Tromey <tromey@redhat.com>
537
538 * common/rsp-low.c (hexify): Never take strlen of argument.
539
9f1b45b0
TT
5402014-02-12 Tom Tromey <tromey@redhat.com>
541
542 * common/rsp-low.c (bin2hex): Never take strlen of argument.
543 * remote.c (extended_remote_run, remote_rcmd)
544 (remote_download_trace_state_variable, remote_save_trace_data)
545 (remote_set_trace_notes): Update.
546 * tracepoint.c (encode_source_string, tfile_write_status)
547 (tfile_write_uploaded_tsv): Update.
548
9c3d6531
TT
5492014-02-12 Tom Tromey <tromey@redhat.com>
550
551 * tracepoint.c: Include rsp-low.h.
552 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
553 * remote.c: Include rsp-low.h.
554 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
555 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
556 (remote_unescape_input): Move to common/rsp-low.c.
557 * common/rsp-low.h: New file.
558 * common/rsp-low.c: New file.
559 * Makefile.in (SFILES): Add common/rsp-low.c.
560 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
561 (COMMON_OBS): Add rsp-low.o.
562 (rsp-low.o): New target.
563
01fd3ea5
TT
5642014-02-12 Tom Tromey <tromey@redhat.com>
565
566 * utils.h: Include print-utils.h.
567 (host_address_to_string, plongest, pulongest, phex, phex_nz)
568 (int_string, core_addr_to_string, core_addr_to_string_nz)
569 (hex_string, hex_string_custom): Don't declare.
570 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
571 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
572 (hex_string_custom, int_string, core_addr_to_string)
573 (core_addr_to_string_nz, host_address_to_string): Move to
574 common/print-utils.c.
575 * common/print-utils.h: New file.
576 * common/print-utils.c: New file
577 * Makefile.in (SFILES): Add common/print-utils.c.
578 (HFILES_NO_SRCDIR): Add common/print-utils.h.
579 (COMMON_OBS): Add print-utils.o.
580 (print-utils.o): New target.
581
9fb50108
TT
5822014-02-12 Tom Tromey <tromey@redhat.com>
583
584 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
585
0548b5db
MK
5862014-02-12 Mark Kettenis <kettenis@gnu.org>
587
588 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
589
493443a4
MK
5902014-02-12 Mark Kettenis <kettenis@gnu.org>
591
592 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
593 if a PT_IO ptrace request returns sucessfully but indicates that 0
594 bytes were transferred.
595
706d0883
PA
5962014-02-12 Pedro Alves <palves@redhat.com>
597 Kevin Buettner <kevinb@redhat.com>
598
599 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
600 TYPE_INSTANCE_FLAG_CODE_SPACE.
601
5caa2f0b
PA
6022014-02-12 Pedro Alves <palves@redhat.com>
603
604 * h8300-tdep.c (pseudo_from_raw_register)
605 (raw_from_pseudo_register): New functions.
606 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
607 them.
608
76fd5f74
PA
6092014-02-12 Pedro Alves <palves@redhat.com>
610
611 * h8300-tdep.c (h8300_register_sim_regno): New function.
612 (h8300_gdbarch_init): Install h8300_register_sim_regno as
613 gdbarch_register_sim_regno hook.
614
8f008406
SA
6152014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
616
617 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
618
195abc10
SA
6192014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
620
621 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
622
93ffa5b9
MK
6232014-02-12 Mark Kettenis <kettenis@gnu.org>
624
625 * obsd-tdep.h (obsd_init_abi): New prototype.
626 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
627 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
628 (obsd_init_abi): New functions.
629 * i386obsd-tdep.c: Include "obsd-tdep.h".
630 (i386obsd_init_abi): Call obsd_init_abi.
631 * amd64obsd-tdep.c: Include "obsd-tdep.h".
632 (amd64obsd_init_abi): Call obsd_init_abi.
633 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
634 obsd-tdep.c to gdb_target_obs.
635
49caec94
JM
6362014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
637
638 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
639 double float arguments to 16-byte in the argument slots.
640
e1402065
DE
6412014-02-11 Doug Evans <xdje42@gmail.com>
642
643 * configure.ac: Don't crash if pkg-config is not found and guile
644 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
645 in guile checks.
646 * configure: Regenerate.
647
edcc890f
YQ
6482014-02-11 Yao Qi <yao@codesourcery.com>
649
650 * aix-thread.c (aix_thread_xfer_partial): Update comments.
651 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
652 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
653 * gnu-nat.c (gnu_xfer_memory): Likewise.
654 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
655 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
656 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
657 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
658
9b409511
YQ
6592014-02-11 Yao Qi <yao@codesourcery.com>
660
661 * target.h (enum target_xfer_error): Rename to ...
662 (enum target_xfer_status): ... it. New. All users updated.
663 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
664 New.
665 (TARGET_XFER_STATUS_ERROR_P): New macro.
666 (target_xfer_error_to_string): Remove declaration.
667 (target_xfer_status_to_string): Declare.
668 (target_xfer_partial_ftype): Adjust it.
669 (struct target_ops) <to_xfer_partial>: Return
670 target_xfer_status. Add argument xfered_len. Update
671 comments.
672 * target.c (target_xfer_error_to_string): Rename to ...
673 (target_xfer_status_to_string): ... it. New. All callers
674 updated.
675 (target_read_live_memory): Likewise. Call target_xfer_partial
676 instead of target_read.
677 (memory_xfer_live_readonly_partial): Return
678 target_xfer_status. Add argument xfered_len.
679 (raw_memory_xfer_partial): Likewise.
680 (memory_xfer_partial_1): Likewise.
681 (memory_xfer_partial): Likewise.
682 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
683 properly. Update debug message.
684 (default_xfer_partial, current_xfer_partial): Likewise.
685 (target_write_partial): Likewise.
686 (target_read_partial): Likewise. All callers updated.
687 (read_whatever_is_readable): Likewise.
688 (target_write_with_progress): Likewise.
689 (target_read_alloc_1): Likewise.
690
691 * aix-thread.c (aix_thread_xfer_partial): Likewise.
692 * auxv.c (procfs_xfer_auxv): Likewise.
693 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
694 * bfd-target.c (target_bfd_xfer_partial): Likewise.
695 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
696 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
697 * corefile.c (read_memory): Adjust.
698 * corelow.c (core_xfer_partial): Likewise.
699 * ctf.c (ctf_xfer_partial): Likewise.
700 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
701 updated.
702 (darwin_xfer_partial): Likewise.
703 * exec.c (section_table_xfer_memory_partial): Likewise. All
704 callers updated.
705 (exec_xfer_partial): Likewise.
706 * exec.h (section_table_xfer_memory_partial): Update
707 declaration.
708 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
709 negative.
710 (gnu_xfer_partial): Likewise.
711 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
712 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
713 (ia64_hpux_xfer_solib_got): Likewise.
714 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
715 type of 'partial_len' to ULONGEST.
716 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
717 * linux-nat.c (linux_xfer_siginfo ): Likewise.
718 (linux_nat_xfer_partial): Likewise.
719 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
720 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
721 * monitor.c (monitor_xfer_memory): Likewise.
722 (monitor_xfer_partial): Likewise.
723 * procfs.c (procfs_xfer_partial): Likewise.
724 * record-btrace.c (record_btrace_xfer_partial): Likewise.
725 * record-full.c (record_full_xfer_partial): Likewise.
726 (record_full_core_xfer_partial): Likewise.
727 * remote-sim.c (gdbsim_xfer_memory): Likewise.
728 (gdbsim_xfer_partial): Likewise.
729 * remote.c (remote_write_bytes_aux): Likewise. All callers
730 updated.
731 (remote_write_bytes, remote_read_bytes): Likewise. All
732 callers updated.
733 (remote_flash_erase): Likewise. All callers updated.
734 (remote_write_qxfer): Likewise. All callers updated.
735 (remote_read_qxfer): Likewise. All callers updated.
736 (remote_xfer_partial): Likewise.
737 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
738 (rs6000_xfer_shared_libraries): Likewise.
739 * sol-thread.c (sol_thread_xfer_partial): Likewise.
740 (sol_thread_xfer_partial): Likewise.
741 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
742 (sparc_xfer_partial): Likewise.
743 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
744 updated.
745 (spu_xfer_partial): Likewise.
746 * spu-multiarch.c (spu_xfer_partial): Likewise.
747 * tracepoint.c (tfile_xfer_partial): Likewise.
748 * windows-nat.c (windows_xfer_memory): Likewise.
749 (windows_xfer_shared_libraries): Likewise.
750 (windows_xfer_partial): Likewise.
751 * valprint.c: Replace 'target_xfer_error' with
752 'target_xfer_status' in comments.
753
a8e63083
JB
7542014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
755
756 Checked in by Joel Brobecker <brobecker@adacore.com>.
757 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
758
e86b67d3
JB
7592014-02-11 Joel Brobecker <brobecker@adacore.com>
760
761 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
762 function parameters.
763
4b7d1f7f
WN
7642014-02-10 Will Newton <will.newton@linaro.org>
765
766 * elfread.c (elf_rel_plt_read): Look for a .got section if
767 looking up .got.plt fails.
768 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
769 on address passed to elf_gnu_ifunc_record_cache.
770 (elf_gnu_ifunc_resolve_addr): Likewise.
771 (elf_gnu_ifunc_resolver_return_stop): Likewise.
772
961842b2
JM
7732014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
774
775 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
776 (X_RETTURN): New macro.
777 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
778
779 * sparc64-tdep.c (sparc64_init_abi): Hook
780 sparc_in_function_epilogue_p.
781
3f03e7b1
GB
7822014-02-10 Gary Benson <gbenson@redhat.com>
783
784 * symfile-debug.c (debug_qf_expand_symtabs_matching):
785 Rename name_matcher to symbol_matcher.
786
96f861ef
GB
7872014-02-10 Gary Benson <gbenson@redhat.com>
788
789 * symfile-debug.c (debug_qf_expand_symtabs_matching):
790 Use expand_symtabs_file_matcher_ftype and
791 expand_symtabs_symbol_matcher_ftype.
792
ee01b665
JB
7932014-02-10 Joel Brobecker <brobecker@adacore.com>
794
795 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
796 (struct ada_symbol_cache): New.
797 (ada_free_symbol_cache): Forward declare.
798 (struct ada_pspace_data): New.
799 (ada_pspace_data_handle): New static global.
800 (get_ada_pspace_data, ada_pspace_data_cleanup)
801 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
802 (cache_space, cache): Delete, now folded inside struct
803 ada_pspace_data.
804 (ada_get_symbol_cache): New function.
805 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
806 implementation.
807 (_initialize_ada_language): Remove initialization of cache_space.
808 Move call to observer_attach_inferior_exit up, grouping it
809 with the other observer registrations inside this function.
810 Rename command to be more general. Add call to
811 register_program_space_data_with_cleanup.
812
143adbbf
JB
8132014-02-10 Joel Brobecker <brobecker@adacore.com>
814
815 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
816 ada_new_objfile_observer.
817 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
818 (_initialize_tasks): Update uses of ada_new_objfile_observer
819 and ada_tasks_normal_stop_observer.
820
aa4fb036
JB
8212014-02-10 Joel Brobecker <brobecker@adacore.com>
822
823 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
824 returned by the 'Length attribute to integer.
825
9dee8cc6
JB
8262014-02-10 Joel Brobecker <brobecker@adacore.com>
827
828 * ada-lang.c (_initialize_ada_language): Initialize
829 cache_space obstack.
830
3d9434b5
JB
8312014-02-10 Joel Brobecker <brobecker@adacore.com>
832
833 * ada-lang.c (HASH_SIZE): New macro.
834 (struct cache_entry): New type.
835 (cache_space, cache): New static globals.
836 (ada_clear_symbol_cache, find_entry): New functions.
837 (lookup_cached_symbol, cache_symbol): Implement.
838 (ada_new_objfile_observer, ada_free_objfile_observer): New.
839 (_initialize_ada_language): Attach ada_new_objfile_observer
840 and ada_free_objfile_observer.
841
f0c5f9b2
JB
8422014-02-10 Joel Brobecker <brobecker@adacore.com>
843
844 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
845 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
846 struct block * parameter.
847 (ada_lookup_symbol_list_worker): Constify local variable "block".
848 Remove cast which is no longer necessary.
849
ed3ef339
DE
8502014-02-10 Doug Evans <xdje42@gmail.com>
851
852 Add Guile as an extension language.
853 * NEWS: Mention Guile scripting.
854 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
855 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
856 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
857 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
858 (CLIBS): Add GUILE_LIBS.
859 (install-guile): New rule.
860 (guile.o): New rule.
861 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
862 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
863 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
864 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
865 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
866 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
867 (scm-type.o, scm-utils.o, scm-value.o): New rules.
868 * configure.ac: New option --with-guile.
869 * configure: Regenerate.
870 * config.in: Regenerate.
871 * auto-load.c: Remove #include "python/python.h". Add #include
872 "gdb/section-scripts.h".
873 (source_section_scripts): Handle Guile scripts.
874 (_initialize_auto_load): Add name of Guile objfile script to
875 scripts-directory help text.
876 * breakpoint.c (condition_command): Tweak comment to include Scheme.
877 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
878 (struct breakpoint): New member scm_bp_object.
879 * defs.h (enum command_control_type): New value guile_control.
880 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
881 "extension.h".
882 (show_user): Update comment.
883 (_initialize_cli_cmds): Update help text for "show user". Update help
884 text for max-user-call-depth.
885 * cli/cli-script.c: Remove #include "python/python.h". Add #include
886 "extension.h".
887 (multi_line_command_p): Add guile_control.
888 (print_command_lines): Handle guile_control.
889 (execute_control_command, recurse_read_control_structure): Ditto.
890 (process_next_line): Recognize "guile" commands.
891 * disasm.c (gdb_disassemble_info): Make non-static.
892 * disasm.h: #include "dis-asm.h".
893 (struct gdbarch): Add forward decl.
894 (gdb_disassemble_info): Declare.
895 * extension.c: #include "guile/guile.h".
896 (extension_languages): Add guile.
897 (get_ext_lang_defn): Handle EXT_LANG_GDB.
898 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
899 * gdbtypes.c (get_unsigned_type_max): New function.
900 (get_signed_type_minmax): New function.
901 * gdbtypes.h (get_unsigned_type_max): Declare.
902 (get_signed_type_minmax): Declare.
903 * guile/README: New file.
904 * guile/guile-internal.h: New file.
905 * guile/guile.c: New file.
906 * guile/guile.h: New file.
907 * guile/scm-arch.c: New file.
908 * guile/scm-auto-load.c: New file.
909 * guile/scm-block.c: New file.
910 * guile/scm-breakpoint.c: New file.
911 * guile/scm-disasm.c: New file.
912 * guile/scm-exception.c: New file.
913 * guile/scm-frame.c: New file.
914 * guile/scm-gsmob.c: New file.
915 * guile/scm-iterator.c: New file.
916 * guile/scm-lazy-string.c: New file.
917 * guile/scm-math.c: New file.
918 * guile/scm-objfile.c: New file.
919 * guile/scm-ports.c: New file.
920 * guile/scm-pretty-print.c: New file.
921 * guile/scm-safe-call.c: New file.
922 * guile/scm-string.c: New file.
923 * guile/scm-symbol.c: New file.
924 * guile/scm-symtab.c: New file.
925 * guile/scm-type.c: New file.
926 * guile/scm-utils.c: New file.
927 * guile/scm-value.c: New file.
928 * guile/lib/gdb.scm: New file.
929 * guile/lib/gdb/boot.scm: New file.
930 * guile/lib/gdb/experimental.scm: New file.
931 * guile/lib/gdb/init.scm: New file.
932 * guile/lib/gdb/iterator.scm: New file.
933 * guile/lib/gdb/printing.scm: New file.
934 * guile/lib/gdb/types.scm: New file.
935 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
936 (VPATH): Add $(GUILE_SRCDIR).
937 (GUILE_DIR): New variable.
938 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
939 (all): Add stamp-guile dependency.
940 (stamp-guile): New rule.
941 (clean-guile, install-guile, uninstall-guile): New rules.
942 (install-only): Add install-guile dependency.
943 (uninstall): Add uninstall-guile dependency.
944 (clean): Add clean-guile dependency.
945
ac020ec5
DE
9462014-02-09 Doug Evans <xdje42@gmail.com>
947
948 Revert this patch (which I approved, mea culpa).
949
950 2014-02-08 Mark Kettenis <kettenis@gnu.org>
951
952 * Makefile.in (all-lib): Remove.
953 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
954
2a081c59
JK
9552014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
956
957 Fix Python stack corruption.
958 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
959 gdb_py_longest.
960
0a6bd22d
MK
9612014-02-08 Mark Kettenis <kettenis@gnu.org>
962
963 * Makefile.in (all-lib): Remove.
964 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
965
1a860409
DE
9662014-02-07 Doug Evans <dje@google.com>
967
968 * extension-priv.h (extension_language_script_ops): Add comment.
969 (extension_language_ops): Add comment.
caf5a491 970 (active_ext_lang_state): Fix typo in comment.
1a860409 971
d137e6dc
PA
9722014-02-07 Pedro Alves <palves@redhat.com>
973
974 * infrun.c (handle_signal_stop) <signal arrives while stepping
975 over a breakpoint>: Switch back to the stepping thread.
976
ce6d0892
YQ
9772014-02-07 Yao Qi <yao@codesourcery.com>
978
979 * target.c (target_xfer_partial): Return zero if LEN is zero.
980
2ed4b548
YQ
9812014-02-07 Yao Qi <yao@codesourcery.com>
982
983 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
984 (ld_so_xfer_auxv): Likewise.
985 * bfd-target.c (target_bfd_xfer_partial): Likewise.
986 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
987 * corelow.c (core_xfer_partial): Likewise.
988 * ctf.c (ctf_xfer_partial): Likewise.
989 * darwin-nat.c (darwin_read_dyld_info): Likewise.
990 (darwin_xfer_partial): Likewise.
991 * exec.c (exec_xfer_partial): Likewise.
992 * gnu-nat.c (gnu_xfer_partial): Likewise.
993 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
994 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
995 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
996 * linux-nat.c (linux_xfer_siginfo): Likewise.
997 (linux_proc_xfer_spu): Likewise.
998 * procfs.c (procfs_xfer_partial): Likewise.
999 * record-full.c (record_full_xfer_partial): Likewise.
1000 (record_full_core_xfer_partial): Likewise.
1001 * remote-sim.c (gdbsim_xfer_partial): Likewise.
1002 * remote.c (remote_write_qxfer): Likewise.
1003 (remote_write_qxfer, remote_read_qxfer): Likewise.
1004 (remote_xfer_partial): Likewise.
1005 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1006 (rs6000_xfer_shared_libraries): Likewise.
1007 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1008 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1009 (spu_xfer_partial): Likewise.
1010 * target.c (memory_xfer_partial_1): Likewise.
1011 * tracepoint.c (tfile_xfer_partial): Likewise.
1012 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
1013 (windows_xfer_partial): Likewise.
1014
c09f20e4
YQ
10152014-02-07 Yao Qi <yao@codesourcery.com>
1016
1017 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
1018 comments.
1019 (core_xfer_shared_libraries_aix): Likewise.
1020 * gdbarch.c, gdbarch.h: Regenerated.
1021 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
1022 ULONGEST. Change 'len_avail' type to ULONGEST.
1023 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1024 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
1025 declaration.
1026 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
1027
8635b3bf
YQ
10282014-02-07 Yao Qi <yao@codesourcery.com>
1029
1030 * corefile.c (memory_error): Get 'exception' from ERR and pass
1031 'exception' to throw_error.
1032
6dddc817
DE
10332014-02-06 Doug Evans <xdje42@gmail.com>
1034
1035 * configure.ac (libpython checking): Remove all but python.o from
1036 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
1037 * configure: Regenerate.
1038
1039 * Makefile.in (SFILES): Add extension.c.
1040 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
1041 (COMMON_OBS): Add extension.o.
1042 * extension.h: New file.
1043 * extension-priv.h: New file.
1044 * extension.c: New file.
1045
1046 * python/python-internal.h: #include "extension.h".
1047 (gdbpy_auto_load_enabled): Declare.
1048 (gdbpy_apply_val_pretty_printer): Declare.
1049 (gdbpy_apply_frame_filter): Declare.
1050 (gdbpy_preserve_values): Declare.
1051 (gdbpy_breakpoint_cond_says_stop): Declare.
1052 (gdbpy_breakpoint_has_cond): Declare.
1053 (void source_python_script_for_objfile): Delete.
1054 * python/python.c: #include "extension-priv.h".
1055 Delete inclusion of "observer.h".
1056 (extension_language_python): Moved here and renamed from
1057 script_language_python in py-auto-load.c.
1058 Redefined to be of type extension_language_defn.
1059 (python_extension_script_ops): New global.
1060 (python_extension_ops): New global.
1061 (struct python_env): New member previous_active.
1062 (restore_python_env): Call restore_active_ext_lang.
1063 (ensure_python_env): Call set_active_ext_lang.
1064 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
1065 New arg extlang.
1066 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
1067 New arg extlang.
1068 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
1069 New arg extlang.
1070 (gdbpy_eval_from_control_command): Renamed from
1071 eval_python_from_control_command, made static. New arg extlang.
1072 (gdbpy_source_script) Renamed from source_python_script, made static.
1073 New arg extlang.
1074 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
1075 result to int. New arg extlang.
1076 (gdbpy_source_objfile_script): Renamed from
1077 source_python_script_for_objfile, made static. New arg extlang.
1078 (gdbpy_start_type_printers): Renamed from start_type_printers, made
1079 static. New args extlang, extlang_printers. Change result type to
1080 "void".
1081 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
1082 static. New arg extlang. Rename arg printers to extlang_printers
1083 and change type to ext_lang_type_printers *.
1084 (gdbpy_free_type_printers): Renamed from free_type_printers, made
1085 static. Replace argument arg with extlang, extlang_printers.
1086 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
1087 (!HAVE_PYTHON, source_python_script): Delete.
1088 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
1089 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
1090 (!HAVE_PYTHON, start_type_printers): Delete.
1091 (!HAVE_PYTHON, apply_type_printers): Delete.
1092 (!HAVE_PYTHON, free_type_printers): Delete.
1093 (_initialize_python): Delete call to observer_attach_before_prompt.
1094 (finalize_python): Set/restore active extension language.
1095 (gdbpy_finish_initialization) Renamed from
1096 finish_python_initialization, made static. New arg extlang.
1097 (gdbpy_initialized): New function.
1098 * python/python.h: #include "extension.h". Delete #include
1099 "value.h", "mi/mi-cmds.h".
1100 (extension_language_python): Declare.
1101 (GDBPY_AUTO_FILE_NAME): Delete.
1102 (enum py_bt_status): Moved to extension.h and renamed to
1103 ext_lang_bt_status.
1104 (enum frame_filter_flags): Moved to extension.h.
1105 (enum py_frame_args): Moved to extension.h and renamed to
1106 ext_lang_frame_args.
1107 (finish_python_initialization): Delete.
1108 (eval_python_from_control_command): Delete.
1109 (source_python_script): Delete.
1110 (apply_val_pretty_printer): Delete.
1111 (apply_frame_filter): Delete.
1112 (preserve_python_values): Delete.
1113 (gdbpy_script_language_defn): Delete.
1114 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
1115 (start_type_printers, apply_type_printers, free_type_printers): Delete.
1116
1117 * auto-load.c: #include "extension.h".
1118 (GDB_AUTO_FILE_NAME): Delete.
1119 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
1120 (script_language_gdb): Delete, moved to extension.c and renamed to
1121 extension_language_gdb.
1122 (source_gdb_script_for_objfile): Delete.
1123 (auto_load_pspace_info): New member unsupported_script_warning_printed.
1124 (loaded_script): Change type of language member to
1125 struct extension_language_defn *.
1126 (init_loaded_scripts_info): Initialize
1127 unsupported_script_warning_printed.
1128 (maybe_add_script): Make static. Change type of language arg to
1129 struct extension_language_defn *.
1130 (clear_section_scripts): Reset unsupported_script_warning_printed.
1131 (auto_load_objfile_script_1): Rewrite to use extension language API.
1132 (auto_load_objfile_script): Make public. Remove support-compiled-in
1133 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
1134 (source_section_scripts): Rewrite to use extension language API.
1135 (load_auto_scripts_for_objfile): Rewrite to use
1136 auto_load_scripts_for_objfile.
1137 (collect_matching_scripts_data): Change type of language member to
1138 struct extension_language_defn *.
1139 (auto_load_info_scripts): Change type of language arg to
1140 struct extension_language_defn *.
1141 (unsupported_script_warning_print): New function.
1142 (script_not_found_warning_print): Make static.
1143 (_initialize_auto_load): Rewrite construction of scripts-directory
1144 help.
1145 * auto-load.h (struct objfile): Add forward decl.
1146 (struct script_language): Delete.
1147 (struct auto_load_pspace_info): Add forward decl.
1148 (struct extension_language_defn): Add forward decl.
1149 (maybe_add_script): Delete.
1150 (auto_load_objfile_script): Declare.
1151 (script_not_found_warning_print): Delete.
1152 (auto_load_info_scripts): Update prototype.
1153 (auto_load_gdb_scripts_enabled): Declare.
1154 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
1155 auto_load_python_scripts_enabled and made public.
1156 (script_language_python): Delete, moved to python.c.
1157 (gdbpy_script_language_defn): Delete.
1158 (info_auto_load_python_scripts): Update to use
1159 extension_language_python.
1160
1161 * breakpoint.c (condition_command): Replace call to
1162 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
1163 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
1164 with call to breakpoint_ext_lang_cond_says_stop.
1165 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
1166 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
1167 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
1168 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
1169 New arg slang.
1170 (local_setattro): Print name of extension language with existing
1171 stop condition.
1172
1173 * valprint.c (val_print, value_print): Update to call
1174 apply_ext_lang_val_pretty_printer.
1175 * cp-valprint.c (cp_print_value): Update call to
1176 apply_ext_lang_val_pretty_printer.
1177 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
1178 (gdbpy_apply_val_pretty_printer): Renamed from
1179 apply_val_pretty_printer. New arg extlang.
1180 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
1181
1182 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
1183 extension language API.
1184 * cli/cli-script.c (execute_control_command): Update to call
1185 eval_ext_lang_from_control_command.
1186
1187 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
1188 enum ext_lang_bt_status values. Update call to
1189 apply_ext_lang_frame_filter.
1190 (mi_cmd_stack_list_locals): Ditto.
1191 (mi_cmd_stack_list_args): Ditto.
1192 (mi_cmd_stack_list_variables): Ditto.
1193 * mi/mi-main.c: Delete #include "python/python-internal.h".
1194 Add #include "extension.h".
1195 (mi_cmd_list_features): Replace reference to python internal variable
1196 gdb_python_initialized with call to ext_lang_initialized_p.
1197
1198 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
1199 Update to use enum ext_lang_frame_args. Update to call
1200 apply_ext_lang_frame_filter.
1201 * python/py-framefilter.c (extract_sym): Update to use enum
1202 ext_lang_bt_status.
1203 (extract_value, py_print_type, py_print_value): Ditto.
1204 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
1205 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
1206 (py_print_frame): Ditto.
1207 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
1208 New arg extlang. Update to use enum ext_lang_bt_status.
1209
1210 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
1211 finish_python_initialization. Replace with call to
1212 finish_ext_lang_initialization.
1213
1214 * typeprint.c (do_free_global_table): Update to call
1215 free_ext_lang_type_printers.
1216 (create_global_typedef_table): Update to call
1217 start_ext_lang_type_printers.
1218 (find_global_typedef): Update to call apply_ext_lang_type_printers.
1219 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
1220 (type_print_options): Change type of global_printers from "void *"
1221 to "struct ext_lang_type_printers *".
1222
1223 * value.c (preserve_values): Update to call preserve_ext_lang_values.
1224 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
1225 (gdbpy_preserve_values): Renamed from preserve_python_values.
1226 New arg extlang.
1227 (!HAVE_PYTHON, preserve_python_values): Delete.
1228
1229 * utils.c (quit_flag): Delete, moved to extension.c.
1230 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
1231 extension.c.
1232
1233 * eval.c: Delete #include "python/python.h".
1234 * main.c: Delete #include "python/python.h".
1235
1236 * defs.h: Update comment.
1237
6af79985
JB
12382014-02-06 Joel Brobecker <brobecker@adacore.com>
1239
1240 GDB 7.7 released.
1241
12c5175d
MK
12422014-02-05 Mark Kettenis <kettenis@gnu.org>
1243
1244 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
1245 defined.
1246
8dc5b319
YQ
12472014-02-05 Yao Qi <yao@codesourcery.com>
1248
1249 * remote.c (remote_pass_signals): Remove local 'buf' and use
1250 rs->buf.
1251 (remote_program_signals): Likewise.
1252
de7b2893
YQ
12532014-02-05 Yao Qi <yao@codesourcery.com>
1254
1255 * ctf.c: Include "inferior.h" and "gdbthread.h".
1256 (CTF_PID): A new macro.
1257 (ctf_open): Call inferior_appeared and add_thread_silent.
1258 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
1259 (ctf_thread_alive): New function.
1260 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
1261
66d032ac
YQ
12622014-02-05 Yao Qi <yao@codesourcery.com>
1263
1264 Revert this patch:
1265
1266 2013-05-24 Yao Qi <yao@codesourcery.com>
1267
1268 * tracepoint.c (TFILE_PID): Remove.
1269 (tfile_open): Don't add thread and inferior.
1270 (tfile_close): Don't set 'inferior_ptid'. Don't call
1271 exit_inferior_silent.
1272 (tfile_thread_alive): Remove.
1273 (init_tfile_ops): Don't set field 'to_thread_alive' of
1274 tfile_ops.
1275
f4ccffad
CE
12762014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
1277
1278 * remote.c (remote_start_remote): Call remote_check_symbols even
1279 if only symbol-file (not file) has been given.
1280
591a12a1
UW
12812014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
1282
1283 * gdbarch.sh (skip_entrypoint): New callback.
1284 * gdbarch.c, gdbarch.h: Regenerate.
1285 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
1286 * infrun.c (fill_in_stop_func): Likewise.
1287 * ppc-linux-tdep.c: Include "elf/ppc64.h".
1288 (ppc_elfv2_elf_make_msymbol_special): New function.
1289 (ppc_elfv2_skip_entrypoint): Likewise.
1290 (ppc_linux_init_abi): Install them for ELFv2.
1291
cc0e89c5
UW
12922014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
1293
1294 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
1295 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
1296 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
1297 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
1298 structures returned in GPRs.
1299
52f548e4
UW
13002014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
1301
1302 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
1303 offset to the stack parameter list for the ELFv2 ABI.
1304
d4094b6a
UW
13052014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
1306
1307 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
1308 set_gdbarch_convert_from_func_ptr_addr and
1309 set_gdbarch_elf_make_msymbol_special for ELFv1.
1310 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
1311 function descriptors on ELFv1.
1312 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
1313 set up r12 at function entry.
1314
cd453cd0
UW
13152014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
1316
1317 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
1318 (struct gdbarch_tdep): New member elf_abi.
1319
1320 * rs6000-tdep.c: Include "elf/ppc64.h".
1321 (rs6000_gdbarch_init): Detect ELF ABI version.
1322
0ff3e01f
UW
13232014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
1324
1325 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
1326 within a register pair holding a DFP 128-bit value on little-endian.
1327 (ppc64_sysv_abi_return_value_base): Likewise.
1328 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
1329 (dfp_pseudo_register_write): Likewise.
1330
5b757e5d
UW
13312014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
1332
1333 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
1334 offset on little-endian when passing _Decimal32.
1335 (ppc64_sysv_abi_return_value_base): Likewise for return values.
1336
084ee545
UW
13372014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
1338
1339 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
1340 of the overlapped FP register within the VSX register on little-
1341 endian platforms.
1342 (efpr_pseudo_register_write): Likewise.
1343
d63167af
UW
13442014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
1345
1346 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
1347 offset on little-endian when passing small structures.
1348
e765b44c
UW
13492014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
1350
1351 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
1352 (struct ppc64_sysv_argpos): New data structure.
1353 (ppc64_sysv_abi_push_float): Remove.
1354 (ppc64_sysv_abi_push_val): New function.
1355 (ppc64_sysv_abi_push_integer): Likewise.
1356 (ppc64_sysv_abi_push_freg): Likewise.
1357 (ppc64_sysv_abi_push_vreg): Likewise.
1358 (ppc64_sysv_abi_push_param): Likewise.
1359 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
1360 (ppc64_sysv_abi_return_value_base): New function.
1361 (ppc64_sysv_abi_return_value): Refactor to use it.
1362
36c24d95
UW
13632014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
1364
1365 * NEWS: Document new target powerpc64le-*-linux*.
1366
26fd9228
MK
13672014-02-04 Mark Kettenis <kettenis@gnu.org>
1368
1369 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
1370 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
1371 core dumps.
1372 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
1373 register set used in ELF core dumps. Add floating-point register set.
1374
c5bb7362
KB
13752014-02-03 Kevin Buettner <kevinb@redhat.com>
1376
1377 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
1378 dwarf2_to_gdb[] table using symbolic constants. Adjust
1379 penultimate entry from number representing the PC register
1380 to symbolic constant representing the MDR register. Add
1381 constant for the PC register to the end of the table.
1382
af09351e
MK
13832014-02-03 Mark Kettenis <kettenis@gnu.org>
1384
1385 * bsd-kvm.c: Include <sys/param.h>
1386
8507e05d
MK
13872014-02-03 Mark Kettenis <kettenis@gnu.org>
1388
1389 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
1390
ae56bfb8
JB
13912014-01-31 Joel Brobecker <brobecker@adacore.com>
1392
1393 * ada-lang.h (clear_ada_sym_cache): Delete.
1394
718ee4dc
UW
13952014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
1396
1397 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
1398
401e27fd
JM
13992014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
1400
1401 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
1402 the sigreturn register save area only if the syscall is
1403 sigreturn.
1404
a7c88acd
JB
14052014-01-29 Joel Brobecker <brobecker@adacore.com>
1406
1407 * valops.c (value_slice): Minor reformatting.
1408
fa0079ea
UW
14092014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
1410
1411 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
1412
c6044dd1
JB
14132014-01-28 Joel Brobecker <brobecker@adacore.com>
1414
1415 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
1416 New static globals.
1417 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
1418 (ada_ignore_descriptive_types_p): New static global.
1419 (find_parallel_type_by_descriptive_type): Return immediately
1420 if ada_ignore_descriptive_types_p is set.
1421 (_initialize_ada_language): Register new commands "maintenance
1422 set ada", "maintenance show ada", "maintenance set ada
1423 ignore-descriptive-types" and "maintenance show ada
1424 ignore-descriptive-types".
1425 * NEWS: Add entry for new "maint ada set/show
1426 ignore-descriptive-types" commands.
1427
568e808b
MM
14282014-01-27 Markus Metzger <markus.t.metzger@intel.com>
1429
1430 * record-btrace.c (record_btrace_close): Call btrace_teardown
1431 for all threads.
1432
467d141b
JB
14332014-01-27 Joel Brobecker <brobecker@adacore.com>
1434
1435 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
1436 "ui-out.h".
1437
fb151210
JB
14382014-01-27 Joel Brobecker <brobecker@adacore.com>
1439
1440 * ada-typeprint (type_is_full_subrange_of_target_type):
1441 New function.
1442 (print_range): Add parameter bounds_prefered_p. If not set,
1443 try printing range types using the name of their base type.
1444 (print_range_type): Add parameter bounds_prefered_p.
1445 Use it in call to print_range.
1446 (print_array_type, ada_print_type): Update calls to print_range
1447 and print_range_type.
1448
aba02109
JB
14492014-01-27 Joel Brobecker <brobecker@adacore.com>
1450
1451 * ada-typeprint.c (print_array_type, print_choices, print_range)
1452 (print_range_bound, print_dynamic_range_bound, print_range_type):
1453 Remove declaration.
1454
e62e21fd
JB
14552014-01-27 Joel Brobecker <brobecker@adacore.com>
1456
1457 * ada-typeprint.c (print_range): Add missing empty line
1458 after local declaration.
1459
859cf5d1
JB
14602014-01-27 Joel Brobecker <brobecker@adacore.com>
1461
1462 * ada-valprint.c (print_optional_low_bound): Get index_type's
1463 target type for as long as it is a TYPE_CODE_RANGE.
1464
25790f6f
JB
14652014-01-27 Joel Brobecker <brobecker@adacore.com>
1466
1467 * procfs.c (procfs_make_note_section): Remove assertion and
1468 associated comment.
1469
6b6aa828
YQ
14702014-01-24 Yao Qi <yao@codesourcery.com>
1471
1472 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
1473 * corelow.c (get_core_siginfo): Likewise.
1474
5d6df423
YQ
14752014-01-24 Yao Qi <yao@codesourcery.com>
1476
1477 * remote.c (remote_write_bytes_aux): Change type of 'len' to
1478 ULONGEST. Don't check 'len' is negative.
1479 (remote_write_bytes): Change type of 'len' to ULONGEST.
1480
83b645b8
TT
14812014-01-23 Tom Tromey <tromey@redhat.com>
1482
1483 PR python/16485:
1484 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
1485 Handle exception from frame.block.
1486 (FrameVars.fetch_frame_locals): Likewise.
1487
0740f8d8
TT
14882014-01-23 Tom Tromey <tromey@redhat.com>
1489
1490 PR python/16487:
1491 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
1492 on a NULL pointer. Move "goto error" to correct place.
1493
21909fa1
TT
14942014-01-23 Tom Tromey <tromey@redhat.com>
1495
1496 PR python/16491:
1497 * python/py-framefilter.c (apply_frame_filter): Call
1498 ensure_python_env after computing gdbarch.
1499
17fde6d0
YQ
15002014-01-23 Yao Qi <yao@codesourcery.com>
1501
1502 * target.c (raw_memory_xfer_partial): Change argument type
1503 from void * to gdb_byte *.
1504 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
1505
87ce2a04
DE
15062014-01-22 Doug Evans <dje@google.com>
1507
1508 New gdbserver option --debug-format=timestamp.
1509 * NEWS: Mention it.
1510
237b092b
AA
15112014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
1512
1513 * syscalls/s390x-linux.xml: New file.
1514 * syscalls/s390-linux.xml: New file.
1515 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
1516 (XML_SYSCALL_FILENAME_S390X): Likewise.
1517 (op_svc): New enum value for SVC opcode.
1518 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
1519 (s390_linux_get_syscall_number): New function.
1520 (s390_gdbarch_init): Register '*get_syscall_number' and the
1521 syscall xml file name.
1522 * data-directory/Makefile.in (SYSCALLS_FILES): Add
1523 "s390-linux.xml" and "s390x-linux.xml".
1524 * NEWS: Announce new feature.
1525
54bff650
BS
15262014-01-22 Baruch Siach <baruch@tkos.co.il>
1527
1528 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
1529
14e361d7
PA
15302014-01-22 Pedro Alves <palves@redhat.com>
1531
1532 * xtensa-config.c: Include defs.h.
1533
46bbb3ed
JB
15342014-01-22 Joel Brobecker <brobecker@adacore.com>
1535
1536 * common/common-utils.h: Add "ARI:" comment beside __func__
1537 reference.
1538
3a80edfc
JB
15392014-01-22 Joel Brobecker <brobecker@adacore.com>
1540
1541 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
1542 documentation a bit.
1543
4869db5e
RM
15442014-01-21 Roland McGrath <mcgrathr@google.com>
1545
1546 * configure.ac: Call AM_PROG_INSTALL_STRIP.
1547 * configure: Regenerate.
1548 * aclocal.m4: Regenerate.
1549 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
1550 New substituted variables.
1551 (install-strip): New target.
1552 (INSTALL_SCRIPT): New substituted variable.
1553 (FLAGS_TO_PASS): Add it.
1554 (install-only): Use $(INSTALL_SCRIPT) rather than
1555 $(INSTALL_PROGRAM) for gcore.
1556
9ea4267d
TT
15572014-01-20 Tom Tromey <tromey@redhat.com>
1558
1559 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
1560 together.
1561
1f2bdf09
TT
15622014-01-20 Tom Tromey <tromey@redhat.com>
1563
1564 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
1565 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
1566 (deprecated_cmd_warning, complete_on_cmdlist): Update.
1567 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
1568 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
1569 (struct cmd_list_element) <flags>: Remove.
1570 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
1571 doc_allocated>: New fields.
1572 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
1573 bitfields.
1574 * maint.c (maintenance_do_deprecate): Update.
1575 * top.c (execute_command): Update.
1576
e671835b
BS
15772014-01-20 Baruch Siach <baruch@tkos.co.il>
1578
1579 * xtensa-linux-nat.c: Include asm/ptrace.h.
1580
50367cd2
IB
15812014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1582
1583 * Makefile.in (SFILES): Add d-support.c.
1584 (COMMON_OBS): Add d-support.o.
1585 * d-lang.h (d_parse_symbol): Add comment, now defined in
1586 d-support.c.
1587 * d-lang.c (parse_call_convention)
1588 (parse_attributes, parse_function_types)
1589 (parse_function_args, parse_type, parse_identifier)
1590 (call_convention_p, d_parse_symbol): Move functions to ...
1591 * d-support.c: ... New file.
1592
ec9f644a
IB
15932014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1594
1595 * d-lang.h (d_parse_symbol): Add declaration.
1596 * d-lang.c (extract_identifiers)
1597 (extract_type_info): Remove functions.
1598 (parse_call_convention, parse_attributes)
1599 (parse_function_types, parse_function_args)
1600 (parse_type, parse_identifier, call_convention_p)
1601 (d_parse_symbol): New functions.
1602 (d_demangle): Use d_parse_symbol to demangle D symbols.
1603
94b1b47e
IB
16042014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1605
1606 * d-lang.h (struct builtin_d_type): New data type.
1607 (builtin_d_type): Add declaration.
1608 * d-lang.c (d_language_arch_info, build_d_types)
1609 (builtin_d_type): New functions.
1610 (enum d_primitive_types): New data type.
1611 (d_language_defn): Change c_language_arch_info to
1612 d_language_arch_info.
1613 (d_type_data): New static variable.
1614 (_initialize_d_language): Initialize d_type_data.
1615
63778547
IB
16162014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1617
1618 * d-lang.h (d_main_name): Add declaration.
1619 * d-lang.c (d_main_name): New function.
1620 * symtab.c (find_main_name): Add call to d_main_name.
1621
3271ba66
IB
16222014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1623
1624 * d-lang.c (d_language_defn): Change macro_expansion_c to
1625 macro_expansion_no.
1626
d36b3012
IB
16272014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1628
1629 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1630
c90a6fb7
SDJ
16312014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
1632
1633 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
1634 gdb_exception" declaration.
1635 * remote.c (getpkt_or_notif_sane): Likewise.
1636
749234e5
DE
16372014-01-17 Doug Evans <dje@google.com>
1638
1639 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
1640 function, contents of dirnames_to_char_ptr_vec_append moved here.
1641 (delim_string_to_char_ptr_vec): New function.
1642 (dirnames_to_char_ptr_vec_append): Rewrite.
1643 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
1644
df049a58
DE
16452014-01-17 Doug Evans <dje@google.com>
1646
1647 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
1648 and moved here ...
1649 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
1650 #include "common-utils.h".
1651 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
1652 * common/vec.h (VEC_ASSERT_PASS): Update.
1653 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
1654 (MACH_CHECK_ERROR): Update.
1655
69f97648
SM
16562014-01-17 Simon Marchi <simon.marchi@ericsson.com>
1657
1658 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
1659 comments.
1660 * gdbarch.h: Regenerate.
1661
98b1cfdc
TT
16622014-01-16 Tom Tromey <tromey@redhat.com>
1663
1664 * value.c (struct value) <regnum>: Move earlier.
1665
77a19445
TT
16662014-01-16 Tom Tromey <tromey@redhat.com>
1667
1668 * remote.c (extended_remote_create_inferior): Rename from
1669 extended_remote_create_inferior_1. Add "ops" argument. Remove
1670 old implementation.
1671
62261490
PA
16722014-01-16 Pedro Alves <palves@redhat.com>
1673
1674 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
1675 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
1676 the backchain.
1677
4d65956b
DE
16782014-01-16 Doug Evans <dje@google.com>
1679
1680 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
1681
52834460
MM
16822014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1683
1684 * btrace.h (btrace_thread_flag): New.
1685 (struct btrace_thread_info) <flags>: New.
1686 * record-btrace.c (record_btrace_resume_thread)
1687 (record_btrace_find_thread_to_move, btrace_step_no_history)
1688 (btrace_step_stopped, record_btrace_start_replaying)
1689 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
1690 (record_btrace_find_resume_thread): New.
1691 (record_btrace_resume, record_btrace_wait): Extend.
1692 (record_btrace_can_execute_reverse): New.
1693 (record_btrace_open): Fail in non-stop mode.
1694 (record_btrace_set_replay): Split into this, ...
1695 (record_btrace_stop_replaying): ... this, ...
1696 (record_btrace_clear_histories): ... and this.
1697 (init_record_btrace_ops): Init to_can_execute_reverse.
1698 * NEWS: Announce it.
1699
118e6252
MM
17002014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1701
1702 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
1703 (forward_target_decr_pc_after_break)
1704 (target_decr_pc_after_break): New.
1705 * target.c (forward_target_decr_pc_after_break)
1706 (target_decr_pc_after_break): New.
1707 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
1708 instead of gdbarch_decr_pc_after_break.
1709 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
1710 instead of gdbarch_decr_pc_after_break.
1711 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
1712 instead of gdbarch_decr_pc_after_break.
1713 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
1714 instead of gdbarch_decr_pc_after_break.
1715 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
1716 instead of gdbarch_decr_pc_after_break.
1717 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
1718 instead of gdbarch_decr_pc_after_break.
1719
6e07b1d2
MM
17202014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1721
1722 * btrace.c: Include regcache.h.
1723 (btrace_add_pc): New.
1724 (btrace_enable): Call btrace_add_pc.
1725 (btrace_is_empty): New.
1726 * btrace.h (btrace_is_empty): New.
1727 * record-btrace.c (require_btrace, record_btrace_info): Call
1728 btrace_is_empty.
1729
969c39fb
MM
17302014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1731
1732 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
1733 Support delta reads.
1734 (linux_disable_btrace): Change return type.
1735 * common/linux-btrace.h (linux_read_btrace): Change parameters
1736 and return type to allow error reporting. Update users.
1737 (linux_disable_btrace): Change return type. Update users.
1738 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
1739 New.
1740 (btrace_error): New.
1741 (btrace_block) <begin>: Comment on BEGIN == 0.
1742 * btrace.c (btrace_compute_ftrace): Start from the end of
1743 the current trace.
1744 (btrace_stitch_trace, btrace_clear_history): New.
1745 (btrace_fetch): Read delta trace, return if replaying.
1746 (btrace_clear): Move clear history code to btrace_clear_history.
1747 (parse_xml_btrace): Throw an error if parsing failed.
1748 * target.h (struct target_ops) <to_read_btrace>: Change parameters
1749 and return type to allow error reporting.
1750 (target_read_btrace): Change parameters and return type to allow
1751 error reporting.
1752 * target.c (target_read_btrace): Update.
1753 * remote.c (remote_read_btrace): Support delta reads. Pass
1754 errors on.
1755 * NEWS: Announce it.
1756
0b722aec
MM
17572014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1758
1759 * record.h (record_btrace_frame_unwind)
1760 (record_btrace_tailcall_frame_unwind): New declarations.
1761 * dwarf2-frame: Include record.h
1762 (dwarf2_frame_cfa): Throw an error for btrace frames.
1763 * record-btrace.c: Include hashtab.h.
1764 (btrace_get_bfun_name): New.
1765 (btrace_call_history): Call btrace_get_bfun_name.
1766 (struct btrace_frame_cache): New.
1767 (bfcache): New.
1768 (bfcache_hash, bfcache_eq, bfcache_new): New.
1769 (btrace_get_frame_function): New.
1770 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
1771 (record_btrace_frame_this_id): Compute own id.
1772 (record_btrace_frame_prev_register): Provide PC, throw_error
1773 for all other registers.
1774 (record_btrace_frame_sniffer): Detect btrace frames.
1775 (record_btrace_tailcall_frame_sniffer): New.
1776 (record_btrace_frame_dealloc_cache): New.
1777 (record_btrace_frame_unwind): Add new functions.
1778 (record_btrace_tailcall_frame_unwind): New.
1779 (_initialize_record_btrace): Allocate cache.
1780 * btrace.c (btrace_clear): Call reinit_frame_cache.
1781 * NEWS: Announce it.
1782
066ce621
MM
17832014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1784
1785 * record-btrace.c (record_btrace_set_replay)
1786 (record_btrace_goto_begin, record_btrace_goto_end)
1787 (record_btrace_goto): New.
1788 (init_record_btrace_ops): Initialize them.
1789 * NEWS: Announce it.
1790
e2887aa3
MM
17912014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1792
1793 * record-btrace.c (record_btrace_find_new_threads)
1794 (record_btrace_thread_alive): New.
1795 (init_record_btrace_ops): Initialize to_find_new_threads and
1796 to_thread_alive.
1797
b2f4cfde
MM
17982014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1799
1800 * record-btrace.c (record_btrace_resume): New.
1801 (record_btrace_wait): New.
1802 (init_record_btrace_ops): Initialize to_wait and to_resume.
1803
633785ff
MM
18042014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1805
1806 * record-btrace.c (record_btrace_xfer_partial)
1807 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
1808 (record_btrace_allow_memory_access): New.
1809 (init_record_btrace_ops): Initialize new methods.
1810 * target.c (raw_memory_xfer_partial): Bail out if target reports
1811 that this memory is not available.
1812
3db08215
MM
18132014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1814
1815 * target.h (target_ops) <to_insert_breakpoint>
1816 <to_remove_breakpoint>: Add target_ops parameter.
1817 (forward_target_insert_breakpoint): New.
1818 (forward_target_remove_breakpoint): New.
1819 (memory_remove_breakpoint, memory_insert_breakpoint):
1820 Add target_ops parameter.
1821 * target.c (target_insert_breakpoint): Split into this and ...
1822 (forward_target_insert_breakpoint): ... this.
1823 (target_remove_breakpoint): Split into this and ...
1824 (forward_target_remove_breakpoint): ... this.
1825 (debug_to_insert_breakpoint): Add target_ops parameter.
1826 Call forward_target_insert_breakpoint.
1827 (debug_to_remove_breakpoint): Add target_ops parameter.
1828 Call forward_target_remove_breakpoint.
1829 (update_current_target): Do not inherit or default to_insert_breakpoint
1830 and to_remove_breakpoint.
1831 * corelow.c (ignore): Add target_ops parameter.
1832 * exec.c (ignore): Add target_ops parameter.
1833 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
1834 Add target_ops parameter.
1835 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
1836 Add target_ops parameter.
1837 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
1838 Add target_ops parameter.
1839 * record-full.c (record_full_beneath_to_insert_breakpoint)
1840 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
1841 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
1842 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
1843 (record_full_core_remove_breakpoint): Add target_ops parameter.
1844 Update users.
1845 (record_full_beneath_to_insert_breakpoint_ops)
1846 (record_full_beneath_to_remove_breakpoint_ops)
1847 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
1848 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
1849 tmp_to_remove_breakpoint_ops,
1850 record_full_beneath_to_insert_breakpoint_ops, and
1851 record_full_beneath_to_remove_breakpoint_ops.
1852 * remote-m32r-sdi.c (m32r_insert_breakpoint)
1853 (m32r_remove_breakpoint): Add target_ops parameter.
1854 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
1855 Add target_ops parameter.
1856 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
1857 Add target_ops parameter.
1858
cecac1ab
MM
18592014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1860 Markus Metzger <markus.t.metzger@intel.com>
1861
1862 * record-btrace.c: Include frame-unwind.h.
1863 (record_btrace_frame_unwind_stop_reason)
1864 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
1865 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
1866 New.
1867 (init_record_btrace_ops): Install it.
1868
824344ca
MM
18692014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1870
1871 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
1872 get_prev_frame_1.
1873
32261e52
MM
18742014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1875
1876 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
1877 earlier.
1878
ea001bdc
MM
18792014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1880
1881 * frame-unwind.c: Include target.h.
1882 (frame_unwind_try_unwinder): New function with code from ...
1883 (frame_unwind_find_by_frame): ... here. New variable
1884 unwinder_from_target, call also target_get_unwinder)
1885 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
1886 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
1887 * target.h (struct target_ops): New fields to_get_unwinder and
1888 to_get_tailcall_unwinder.
1889 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
1890
1f3ef581
MM
18912014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1892
1893 * record-btrace.c (record_btrace_fetch_registers)
1894 (record_btrace_store_registers)
1895 (record_btrace_to_prepare_to_store): New.
1896 (init_record_btrace_ops): Add the above.
1897
f32dbf8c
MM
18982014-01-16 Tom Tromey <tromey@redhat.com>
1899
1900 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
1901 * target.h (struct target_ops) <to_prepare_to_store>: Add
1902 argument.
1903 (target_prepare_to_store): Add argument.
1904 * target.c (debug_to_prepare_to_store): Add argument.
1905 (update_current_target): Update.
1906 * remote.c (remote_prepare_to_store): Add 'self' argument.
1907 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
1908 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
1909 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
1910 * record-full.c (record_full_core_prepare_to_store): Add 'self'
1911 argument.
1912 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
1913 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
1914 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
1915 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
1916 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
1917
07bbe694
MM
19182014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1919
1920 * btrace.h (replay) <replay>: New.
1921 (btrace_is_replaying): New.
1922 * btrace.c (btrace_clear): Free replay iterator.
1923 (btrace_is_replaying): New.
1924 * record-btrace.c (record_btrace_is_replaying): New.
1925 (record_btrace_info): Print insn number if replaying.
1926 (record_btrace_insn_history): Start at replay position.
1927 (record_btrace_call_history): Start at replay position.
1928 (init_record_btrace_ops): Init to_record_is_replaying.
1929
0688d04e
MM
19302014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1931
1932 * record-btrace.c (record_btrace_insn_history_range): Include
1933 end.
1934 (record_btrace_insn_history_from): Adjust range.
1935 (record_btrace_call_history_range): Include
1936 end.
1937 (record_btrace_call_history_from): Adjust range.
1938 * NEWS: Announce changes.
1939
8710b709
MM
19402014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1941
1942 * record.h (enum record_print_flag)
1943 <record_print_indent_calls>: New.
1944 * record.c (get_call_history_modifiers): Recognize /c modifier.
1945 (_initialize_record): Document /c modifier.
1946 * record-btrace.c (btrace_call_history): Add btinfo parameter.
1947 Reorder fields. Optionally indent the function name. Update
1948 all users.
1949 * NEWS: Announce changes.
1950
d0fa7535
MM
19512014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1952
1953 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
1954
5de9129b
MM
19552014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1956
1957 * btrace.c (ftrace_new_function): Start counting at one.
1958 * record-btrace.c (record_btrace_info): Adjust number of calls
1959 and insns.
1960 * NEWS: Announce it.
1961
7acbe133
MM
19622014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1963
1964 * record-btrace.c (btrace_call_history_insn_range): Print
1965 insn range as [begin, end].
1966
23a7fe75
MM
19672014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1968
1969 * btrace.h (struct btrace_func_link): New.
1970 (enum btrace_function_flag): New.
1971 (struct btrace_inst): Rename to ...
1972 (struct btrace_insn): ...this. Update all users.
1973 (struct btrace_func) <ibegin, iend>: Remove.
1974 (struct btrace_func_link): New.
1975 (struct btrace_func): Rename to ...
1976 (struct btrace_function): ...this. Update all users.
1977 (struct btrace_function) <segment, flow, up, insn, insn_offset)
1978 (number, level, flags>: New.
1979 (struct btrace_insn_iterator): Rename to ...
1980 (struct btrace_insn_history): ...this.
1981 Update all users.
1982 (struct btrace_insn_iterator, btrace_call_iterator): New.
1983 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
1984 (struct btrace_target_info) <begin, end, level>
1985 <insn_history, call_history>: New.
1986 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
1987 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
1988 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
1989 (btrace_call_number, btrace_call_begin, btrace_call_end)
1990 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
1991 (btrace_find_function_by_number, btrace_set_insn_history)
1992 (btrace_set_call_history): New.
1993 * btrace.c (btrace_init_insn_iterator)
1994 (btrace_init_func_iterator, compute_itrace): Remove.
1995 (ftrace_print_function_name, ftrace_print_filename)
1996 (ftrace_skip_file): Change
1997 parameter to const.
1998 (ftrace_init_func): Remove.
1999 (ftrace_debug): Use new btrace_function fields.
2000 (ftrace_function_switched): Also consider gaining and
2001 losing symbol information).
2002 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
2003 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
2004 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
2005 New.
2006 (ftrace_new_function): Move. Remove debug print.
2007 (ftrace_update_lines, ftrace_update_insns): New.
2008 (ftrace_update_function): Check for call, ret, and jump.
2009 (compute_ftrace): Renamed to ...
2010 (btrace_compute_ftrace): ...this. Rewritten to compute call
2011 stack.
2012 (btrace_fetch, btrace_clear): Updated.
2013 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
2014 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
2015 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
2016 (btrace_call_number, btrace_call_begin, btrace_call_end)
2017 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
2018 (btrace_find_function_by_number, btrace_set_insn_history)
2019 (btrace_set_call_history): New.
2020 * record-btrace.c (require_btrace): Use new btrace thread
2021 info fields.
2022 (record_btrace_info, btrace_insn_history)
2023 (record_btrace_insn_history, record_btrace_insn_history_range):
2024 Use new btrace thread info fields and new iterator.
2025 (btrace_func_history_src_line): Rename to ...
2026 (btrace_call_history_src_line): ...this. Use new btrace
2027 thread info fields.
2028 (btrace_func_history): Rename to ...
2029 (btrace_call_history): ...this. Use new btrace thread info
2030 fields and new iterator.
2031 (record_btrace_call_history, record_btrace_call_history_range):
2032 Use new btrace thread info fields and new iterator.
2033
8372a7cb
MM
20342014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2035
2036 * frame.h (frame_id_build_unavailable_stack_special): New.
2037 * frame.c (frame_id_build_unavailable_stack_special): New.
2038
c2170eef
MM
20392014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2040
2041 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
2042 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
2043 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
2044 to gdbarch.
2045 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
2046 (i386_insn_is_jump, i386_jmp_p): New.
2047 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
2048 insn_is_jump to gdbarch.
2049 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
2050 * gdbarch.h: Regenerated.
2051 * gdbarch.c: Regenerated.
2052 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
2053 (default_insn_is_jump): New.
2054 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
2055 (default_insn_is_jump): New.
2056
864089d2
MM
20572014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2058
2059 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
2060 Change to ...
2061 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
2062 (btrace_read_type) <btrace_read_new>: Change to ...
2063 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
2064
ed9edfb5
MM
20652014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2066
2067 * common/linux-btrace.c (linux_read_btrace): Free trace from
2068 previous iteration.
2069
fbcbc3fd
DE
20702014-01-15 Doug Evans <dje@google.com>
2071
2072 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
2073 uint32_t.
2074
3d548a53
TT
20752014-01-15 Tom Tromey <tromey@redhat.com>
2076
2077 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
2078 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
2079 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
2080 (set_objfile_main_name): New function.
2081 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
2082 language_of_main>: New fields.
2083 (set_objfile_main_name): Declare.
2084 * symtab.c (find_main_name): Loop over objfiles to find the main
2085 name and language.
2086 (set_main_name): Now static.
2087 (get_main_info): Add comment.
2088 * symtab.h (set_main_name): Don't declare.
2089
32ac0d11
TT
20902014-01-15 Tom Tromey <tromey@redhat.com>
2091
2092 * symtab.c (main_progspace_key): New global.
2093 (struct main_info): New.
2094 (name_of_main, language_of_main): Remove.
2095 (get_main_info, main_info_cleanup): New function.
2096 (set_main_name, main_name, main_language): Use get_main_info.
2097 (_initialize_symtab): Initialize main_progspace_key.
2098
9e6c82ad
TT
20992014-01-15 Tom Tromey <tromey@redhat.com>
2100
2101 * dbxread.c (process_one_symbol): Update.
2102 * dwarf2read.c (read_partial_die): Update.
2103 * symfile.c (set_initial_language): Call main_language.
2104 * symtab.c (language_of_main): Now static.
2105 (set_main_name): Add 'lang' parameter.
2106 (find_main_name): Update.
2107 (main_language): New function.
2108 (symtab_observer_executable_changed): Update.
2109 * symtab.h (set_main_name): Update.
2110 (language_of_main): Remove.
2111 (main_language): Declare.
2112
6ef55de7
TT
21132014-01-15 Tom Tromey <tromey@redhat.com>
2114
2115 * symfile.c (init_entry_point_info): Use new "initialized" field.
2116 Update.
2117 * objfiles.h (struct entry_point) <initialized>: New field.
2118 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
2119 (struct objfile) <ei>: ...here. Remove.
2120 * objfiles.c (entry_point_address_query): Update.
2121
53eddfa6
TT
21222014-01-15 Tom Tromey <tromey@redhat.com>
2123
2124 * objfiles.c (entry_point_address_query): Relocate entry point
2125 address.
2126 (objfile_relocate1): Do not relocate entry point address.
2127 * objfiles.h (struct entry_info) <entry_point>: Update comment.
2128 <the_bfd_section_index>: New field.
2129 * symfile.c (init_entry_point_info): Find the entry point's
2130 section.
2131
d56e56aa
TT
21322014-01-15 Tom Tromey <tromey@redhat.com>
2133
2134 * solib-frv.c (enable_break): Use entry_point_address_query.
2135
33a97bbe
OJ
21362014-01-15 Omair Javaid <omair.javaid@linaro.org>
2137
2138 * NEWS: Add note on improved process record-replay on
2139 arm*-linux* targets.
2140
c6ec2b30
OJ
21412014-01-15 Omair Javaid <omair.javaid@linaro.org>
2142
2143 * arm-tdep.c (enum arm_record_result): New enum.
2144 (arm_record_unsupported_insn): New function.
2145 (arm_record_coproc_data_proc): Removed.
2146 (thumb2_record_ld_st_multiple): New function.
2147 (thumb2_record_ld_st_dual_ex_tbb): New function.
2148 (thumb2_record_data_proc_sreg_mimm): New function.
2149 (thumb2_record_ps_dest_generic): New function.
2150 (thumb2_record_branch_misc_cntrl): New function.
2151 (thumb2_record_str_single_data): New function.
2152 (thumb2_record_ld_mem_hints): New function.
2153 (thumb2_record_ld_word): New function.
2154 (thumb2_record_lmul_lmla_div): New function.
2155 (thumb2_record_decode_insn_handler): New function.
2156 (decode_insn): Add thumb32 instruction handlers.
2157
97dfe206
OJ
21582014-01-15 Omair Javaid <omair.javaid@linaro.org>
2159
2160 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
2161 (struct arm_linux_record_tdep): Declare.
2162 (arm_canonicalize_syscall): New function.
2163 (arm_all_but_pc_registers_record): New function.
2164 (arm_linux_syscall_record): New function.
2165 (arm_linux_init_abi): Add syscall recording constructs.
2166 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
2167 decoding. (arm_record_coproc_data_proc): Update arm syscall
2168 decoding.
2169 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
2170 <arm_syscall_record>: New field.
2171 * configure.tgt (arm*-*-linux*): Add linux-record.o to
2172 gdb_target_obs.
2173
9904a494
OJ
21742014-01-15 Omair Javaid <omair.javaid@linaro.org>
2175
2176 * arm-tdep.c (thumb_record_misc): Update to use sp as base
2177 register for push instruction recording.
2178
f969241e
OJ
21792014-01-15 Omair Javaid <omair.javaid@linaro.org>
2180
2181 * arm-tdep.c (thumb_record_misc): Update to correct logical
2182 error while recording ldm, ldmia and pop instructions.
2183
bfbbec00
OJ
21842014-01-15 Omair Javaid <omair.javaid@linaro.org>
2185
2186 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
2187
e40adcc9
PA
21882014-01-15 Pedro Alves <palves@redhat.com>
2189
2190 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
2191 (go32_resume, go32_fetch_registers, store_register)
2192 (go32_store_registers, go32_prepare_to_store)
2193 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
2194 (go32_create_inferior, go32_can_run, go32_terminal_init)
2195 (go32_terminal_inferior, go32_terminal_ours): Delete forward
2196 declarations.
2197
b0a16e66
TT
21982014-01-15 Tom Tromey <tromey@redhat.com>
2199
2200 * target.h (async_callback_ftype): New typedef.
2201 (struct target_ops) <to_async>: Use it.
2202
bf7105a4
JB
22032014-01-15 Joel Brobecker <brobecker@adacore.com>
2204
2205 * python/py-value.c (get_field_type): Remove unnecessary curly
2206 braces for single-statement if block.
2207
a8f35c2e
JB
22082014-01-15 Joel Brobecker <brobecker@adacore.com>
2209
2210 * python/py-type.c (convert_field): Add missing empty line
2211 after declarations.
2212
bb4142cf
DE
22132014-01-14 Doug Evans <dje@google.com>
2214
2215 * symfile.h (expand_symtabs_matching): Renamed from
2216 expand_partial_symbol_names. Update prototype.
2217 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
2218 * symfile.c (expand_symtabs_matching): Renamed from
2219 expand_partial_symbol_names. New args file_matcher, kind.
2220 Rename arg fun to symbol_matcher.
2221 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
2222 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
2223 ada_expand_partial_symbol_name.
2224 (ada_make_symbol_completion_list): Update to call
2225 expand_symtabs_matching.
2226 (ada_add_global_exceptions): Call expand_symtabs_matching.
2227 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
2228 call map_symbol_filenames.
2229 * symtab.c (sources_info): Update to call map_symbol_filenames.
2230 (search_symbols): Call expand_symtabs_matching.
2231 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
2232 (default_make_symbol_completion_list_break_on): Update to call
2233 expand_symtabs_matching.
2234 (make_source_files_completion_list): Update to call
2235 map_symbol_filenames.
2236
206f2a57
DE
22372014-01-14 Doug Evans <dje@google.com>
2238
2239 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
2240 (expand_symtabs_symbol_matcher_ftype): New typedef.
2241 (quick_symbol_functions.expand_symtabs_matching): Update to use.
2242 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
2243 * symfile.c (expand_partial_symbol_names): Update to use
2244 expand_symtabs_symbol_matcher_ftype.
2245 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
2246 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
2247 Arg name_matcher renamed to symbol_matcher.
2248 * psymtab.c (recursively_search_psymtabs): Update to use
2249 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
2250 sym_matcher.
2251 (expand_symtabs_matching_via_partial): Update to use
2252 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
2253 Arg name_matcher renamed to symbol_matcher.
2254
540c2971
DE
22552014-01-14 Doug Evans <dje@google.com>
2256
2257 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
2258 (map_partial_symbol_filenames): Ditto.
2259 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
2260 (map_partial_symbol_filenames): Ditto.
2261 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
2262 (map_partial_symbol_filenames): Ditto.
2263 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
2264 (map_partial_symbol_filenames): Ditto.
2265 * symtab.c: Delete #include "psymtab.h".
2266
8213266a
PA
22672014-01-14 Pedro Alves <palves@redhat.com>
2268 Tom Tromey <tromey@redhat.com>
2269
2270 * infrun.c (use_displaced_stepping): Use find_record_target
2271 instead of RECORD_IS_USED.
2272 (adjust_pc_after_break): Use record_full_is_used instead of
2273 RECORD_IS_USED.
2274 * record-btrace.c (record_btrace_open): Call record_preopen
2275 instead of checking RECORD_IS_USED.
2276 * record-full.c (record_full_shortname)
2277 (record_full_core_shortname): New globals.
2278 (record_full_is_used): New function.
2279 (find_full_open): Call record_preopen instead of checking
2280 RECORD_IS_USED.
2281 (init_record_full_ops): Set the target's shortname to
2282 record_full_shortname.
2283 (init_record_full_core_ops): Set the target's shortname to
2284 record_full_core_shortname.
2285 * record-full.h (record_full_is_used): Declare.
2286 * record.c (find_record_target): Make extern.
2287 (record_preopen): New function.
2288 * record.h (RECORD_IS_USED): Delete macro.
2289 (find_record_target, record_preopen): Declare functions.
2290
7ec1862d
YQ
22912014-01-14 Yao Qi <yao@codesourcery.com>
2292
2293 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
2294 'len''s type to ULONGEST.
2295 (core_xfer_shared_libraries_aix): Likewise.
2296 * gdbarch.c, gdbarch.h: Regenerated.
2297 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
2298 Change type of 'len' to ULONGEST.
2299 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2300 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2301
dea80a27
YQ
23022014-01-14 Yao Qi <yao@codesourcery.com>
2303
2304 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
2305 type of 'len' to ULONGEST.
2306 (linux_xfer_osdata_processgroups): Likewise.
2307 (linux_xfer_osdata_threads): Likewise.
2308 (linux_xfer_osdata_fds): Likewise.
2309 (linux_xfer_osdata_isockets): Likewise.
2310 (linux_xfer_osdata_shm): Likewise.
2311 (linux_xfer_osdata_sem): Likewise.
2312 (linux_xfer_osdata_msg): Likewise.
2313 (linux_common_xfer_osdata): Likewise.
2314 (struct osdata_type) <getter>: Likewise.
2315 * common/linux-osdata.h (linux_common_xfer_osdata): Update
2316 the declaration.
2317
b55e14c7
YQ
23182014-01-14 Yao Qi <yao@codesourcery.com>
2319
2320 * target.h (target_xfer_partial_ftype): Update.
2321 (struct target_ops) <to_xfer_partial>: Change 'len' type to
2322 ULONGEST.
2323 * aix-thread.c (aix_thread_xfer_partial): Change type of
2324 argument 'len' to ULONGEST.
2325 * auxv.c (procfs_xfer_auxv): Likewise.
2326 (ld_so_xfer_auxv): Likewise.
2327 (memory_xfer_auxv): Likewise.
2328 * bfd-target.c (target_bfd_xfer_partial): Likewise.
2329 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
2330 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
2331 * corelow.c (core_xfer_partial): Likewise.
2332 * ctf.c (ctf_xfer_partial): Likewise.
2333 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
2334 '%u'.
2335 (darwin_read_dyld_info): Likewise.
2336 (darwin_xfer_partial): Likewise.
2337 * exec.c (section_table_xfer_memory_partial): Likewise.
2338 (exec_xfer_partial): Likewise.
2339 * exec.h (section_table_xfer_memory_partial): Update
2340 declaration.
2341 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
2342 instead of plongest.
2343 (gnu_xfer_partial): Likewise.
2344 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
2345 (ia64_hpux_xfer_solib_got): Likewise.
2346 (ia64_hpux_xfer_partial): Likewise.
2347 * ia64-linux-nat.c (ia64_linux_xfer_partial):
2348 * inf-ptrace.c (inf_ptrace_xfer_partial):
2349 * inf-ttrace.c (inf_ttrace_xfer_partial):
2350 * linux-nat.c (linux_xfer_siginfo): Likewise.
2351 (linux_nat_xfer_partial): Likewise.
2352 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
2353 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
2354 * monitor.c (monitor_xfer_memory): Likewise.
2355 (monitor_xfer_partial): Likewise.
2356 * procfs.c (procfs_xfer_partial): Likewise.
2357 * record-full.c (record_full_xfer_partial): Likewise.
2358 (record_full_core_xfer_partial): Likewise.
2359 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
2360 instead of plongest.
2361 (gdbsim_xfer_partial): Likewise.
2362 * remote.c (remote_xfer_partial): Likewise.
2363 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2364 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
2365 declaration.
2366 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
2367 (rs6000_xfer_shared_libraries): Likewise.
2368 * sol-thread.c (sol_thread_xfer_partial): Likewise.
2369 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
2370 (sparc_xfer_partial): Likewise.
2371 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
2372 (spu_xfer_partial): Likewise.
2373 * spu-multiarch.c (spu_xfer_partial): Likewise.
2374 * target.c (target_read_live_memory): Likewise.
2375 (memory_xfer_live_readonly_partial): Likewise.
2376 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
2377 (target_xfer_partial, default_xfer_partial): Likewise.
2378 (current_xfer_partial): Likewise.
2379 * tracepoint.c (tfile_xfer_partial): Likewise.
2380 * windows-nat.c (windows_xfer_memory): Likewise. Call
2381 pulongest instead of plongest.
2382 (windows_xfer_partial): Likewise.
2383 (windows_xfer_shared_libraries): Likewise.
2384
05804640
YQ
23852014-01-14 Yao Qi <yao@codesourcery.com>
2386
2387 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
2388 target_xfer_partial_ftype.
2389
b5b08fb4
SC
23902014-01-13 Siva Chandra Reddy <sivachandra@google.com>
2391
2392 PR python/15464
2393 PR python/16113
2394 * valops.c (value_struct_elt_bitpos): New function
2395 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
2396 object to 'None' if the field name is an empty string ("").
2397 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
2398 attribute to look for a field when 'name' is 'None'.
2399 (get_field_type): New function
2400
13aaf454
DE
24012014-01-13 Doug Evans <dje@google.com>
2402
2403 PR symtab/16426
2404 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
2405 (try_open_dwop_file): Ditto.
2406 * gdb_bfd.c: #include "vec.h".
2407 (bfdp): New typedef.
2408 (struct gdb_bfd_data): New member included_bfds.
2409 (gdb_bfd_unref): Unref all included bfds.
2410 (gdb_bfd_record_inclusion): New function.
2411 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
2412
c2cec97c
TT
24132014-01-13 Tom Tromey <tromey@redhat.com>
2414
2415 * gdbcore.h (deprecated_core_resize_section_table): Remove.
2416
78e5999d
TT
24172014-01-13 Tom Tromey <tromey@redhat.com>
2418
2419 * defs.h (use_windows): Remove.
2420 * gdb.c (main): Update.
2421 * main.c (captured_main, gdb_main): Update.
2422 * main.h (struct captured_main_args) <use_windows>: Remove.
2423 * top.c (use_windows): Remove.
2424
f2052bbe
TT
24252014-01-13 Tom Tromey <tromey@redhat.com>
2426
2427 * defs.h (deprecated_flush_hook): Remove.
2428
fde4f8ed
JK
24292014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2430
2431 PR threads/16216
2432 * linux-thread-db.c (try_thread_db_load): Add parameter
2433 check_auto_load_safe. Move here the file_is_auto_load_safe call.
2434 (try_thread_db_load_from_pdir_1): Move it there from here.
2435 (try_thread_db_load_from_sdir): Update caller.
2436 (try_thread_db_load_from_dir): Move it there from here.
2437
bdf61915
PP
24382014-01-13 Patrick Palka <patrick@parcs.ath.cx>
2439
2440 * regformats/regdat.sh: Always rewrite the register file.
2441
f71e1a8d
PA
24422014-01-13 Pedro Alves <palves@redhat.com>
2443
2444 * Makefile.in (CHECK_HEADERS): New variable.
2445 (check-headers:): New rule.
2446
42c85435
TT
24472014-01-13 Tom Tromey <tromey@redhat.com>
2448
2449 * cli/cli-setshow.c (do_set_command): Update.
2450 * defs.h (deprecated_set_hook): Remove.
2451 * top.c (deprecated_set_hook): Remove.
2452
f8de5129
PA
24532014-01-13 Pedro Alves <palves@redhat.com>
2454
2455 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
2456 the tracepoint if the PC is a pseudo-register.
2457
fc270c35
TT
24582014-01-13 Tom Tromey <tromey@redhat.com>
2459
2460 * defs.h (XCALLOC): Remove.
2461 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
2462 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
2463 * dwarf2loc.c (allocate_piece_closure): Likewise.
2464 * elfread.c (elf_symfile_segments): Likewise.
2465 (elf_symfile_segments): Likewise.
2466 * gdbtypes.c (copy_type_recursive): Likewise.
2467 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
2468 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
2469 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
2470 XCALLOC.
2471 * mt-tdep.c (mt_gdbarch_init): Likewise.
2472 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
2473 XCALLOC.
2474 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
2475 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
2476 * registry.c (registry_alloc_data): Likewise.
2477 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
2478 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
2479 * serial.c (serial_fdopen_ops): Likewise.
2480 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
2481 XCALLOC.
2482 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
2483 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
2484 not XCALLOC.
2485
70ba0933
TT
24862014-01-13 Tom Tromey <tromey@redhat.com>
2487
2488 * defs.h (XMALLOC): Remove.
2489 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
2490 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
2491 * cli-out.c (struct ui_out *): Likewise.
2492 * cli/cli-dump.c (add_dump_command): Likewise.
2493 (add_dump_command): Likewise.
2494 * complaints.c (get_complaints): Likewise.
2495 (find_complaint): Likewise.
2496 * dwarf2-frame.c (execute_cfa_program): Likewise.
2497 * dwarf2read.c (abbrev_table_read_table): Likewise.
2498 * gdbarch.sh: Likewise.
2499 * gdbarch.c: Rebuild.
2500 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
2501 * interps.c (interp_new): Likewise.
2502 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
2503 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
2504 * mi/mi-console.c (mi_console_file_new): Likewise.
2505 * mi/mi-interp.c (mi_interpreter_init): Likewise.
2506 * mi/mi-out.c (mi_out_new): Likewise.
2507 * mi/mi-parse.c (mi_parse): Likewise.
2508 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
2509 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
2510 * observer.c (xalloc_observer_list_node): Likewise.
2511 * regcache.c (regcache_xmalloc_1): Likewise.
2512 * reggroups.c (reggroup_new): Likewise.
2513 (_initialize_reggroup): Likewise.
2514 * registry.c (register_data_with_cleanup): Likewise.
2515 * remote.c (remote_notif_stop_alloc_reply): Likewise.
2516 * ser-base.c (serial_ttystate): Likewise.
2517 * ser-mingw.c (make_pipe_state): Likewise.
2518 * ser-pipe.c (pipe_open): Likewise.
2519 * serial.c (serial_open): Likewise.
2520 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
2521 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
2522 (tui_alloc_win_info): Likewise.
2523 (tui_add_content_elements): Likewise.
2524 * tui/tui-file.c (tui_file_new): Likewise.
2525 * tui/tui-out.c (tui_out_new): Likewise.
2526 * ui-file.c (mem_file_new): Likewise.
2527 * ui-out.c (push_level): Likewise.
2528 (make_cleanup_ui_out_end): Likewise.
2529 (append_header_to_list): Likewise.
2530 (ui_out_new): Likewise.
2531 * user-regs.c (user_reg_add_builtin): Likewise.
2532
41bf6aca
TT
25332014-01-13 Tom Tromey <tromey@redhat.com>
2534
2535 * defs.h (XZALLOC): Remove.
2536 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
2537 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
2538 (get_ada_tasks_inferior_data): Likewise.
2539 * auto-load.c (get_auto_load_pspace_data): Likewise.
2540 * auxv.c (get_auxv_inferior_data): Likewise.
2541 * bfd-target.c (target_bfd_reopen): Likewise.
2542 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
2543 (deprecated_insert_raw_breakpoint): Likewise.
2544 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
2545 * corelow.c (core_open): Likewise.
2546 * darwin-nat.c (darwin_check_new_threads): Likewise.
2547 (darwin_attach_pid): Likewise.
2548 * dummy-frame.c (dummy_frame_push): Likewise.
2549 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
2550 * dwarf2loc.c (allocate_piece_closure): Likewise.
2551 * elfread.c (elf_symfile_segments): Likewise.
2552 * eval.c (ptrmath_type_p): Likewise.
2553 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
2554 * gdbtypes.c (alloc_type_arch): Likewise.
2555 (alloc_type_instance): Likewise.
2556 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2557 * inf-child.c (inf_child_can_use_agent): Likewise.
2558 * inflow.c (get_inflow_inferior_data): Likewise.
2559 * infrun.c (save_infcall_suspend_state): Likewise.
2560 * jit.c (jit_reader_load): Likewise.
2561 (get_jit_objfile_data): Likewise.
2562 (get_jit_program_space_data): Likewise.
2563 (jit_object_open_impl): Likewise.
2564 (jit_symtab_open_impl): Likewise.
2565 (jit_block_open_impl): Likewise.
2566 (jit_frame_sniffer): Likewise.
2567 * linux-fork.c (add_fork): Likewise.
2568 * maint.c (make_command_stats_cleanup): Likewise.
2569 * objfiles.c (get_objfile_pspace_data): Likewise.
2570 * opencl-lang.c (struct lval_closure): Likewise.
2571 * osdata.c (osdata_start_osdata): Likewise.
2572 * progspace.c (new_address_space): Likewise.
2573 (add_program_space): Likewise.
2574 * remote-sim.c (get_sim_inferior_data): Likewise.
2575 * sh-tdep.c (sh_gdbarch_init): Likewise.
2576 * skip.c (Ignore): Likewise.
2577 (skip_delete_command): Likewise.
2578 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
2579 (library_list_start_library): Likewise.
2580 (solib_aix_current_sos): Likewise.
2581 * solib-darwin.c (get_darwin_info): Likewise.
2582 (darwin_current_sos): Likewise.
2583 * solib-dsbt.c (get_dsbt_info): Likewise.
2584 * solib-ia64-hpux.c (new_so_list): Likewise.
2585 (ia64_hpux_get_solib_linkage_addr): Likewise.
2586 * solib-spu.c (append_ocl_sos): Likewise.
2587 (spu_current_sos): Likewise.
2588 * solib-svr4.c (get_svr4_info): Likewise.
2589 (svr4_keep_data_in_core): Likewise.
2590 (library_list_start_library): Likewise.
2591 (svr4_default_sos): Likewise.
2592 (svr4_read_so_list): Likewise.
2593 * solib-target.c (library_list_start_library): Likewise.
2594 (solib_target_current_sos): Likewise.
2595 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
2596 * symfile-debug.c (install_symfile_debug_logging): Likewise.
2597 * symfile.c (default_symfile_segments): Likewise.
2598 * target-descriptions.c (tdesc_data_init): Likewise.
2599 (tdesc_create_reg): Likewise.
2600 (struct tdesc_type *): Likewise.
2601 (tdesc_create_vector): Likewise.
2602 (tdesc_set_struct_size): Likewise.
2603 (struct tdesc_type *): Likewise.
2604 (tdesc_free_feature): Likewise.
2605 (tdesc_create_feature): Likewise.
2606 * windows-nat.c (windows_add_thread): Likewise.
2607 (windows_make_so): Likewise.
2608 * xml-support.c (gdb_xml_body_text): Likewise.
2609 (gdb_xml_create_parser_and_cleanup): Likewise.
2610 (xml_process_xincludes): Likewise.
2611 * xml-syscall.c (allocate_syscalls_info): Likewise.
2612 (syscall_create_syscall_desc): Likewise.
2613
5acfdbae
SDJ
26142014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
2615
2616 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
2617 function, with code from i386_stap_parse_special_token.
2618 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2619 (i386_stap_parse_special_token): Move code to the two functions
2620 above; simplify it.
2621
0000e5cc
PA
26222014-01-09 Pedro Alves <palves@redhat.com>
2623 Hui Zhu <hui@codesourcery.com>
2624
2625 PR gdb/16101
2626 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
2627 bp_err_string. Don't mark the location shlib_disabled if the
2628 error thrown wasn't a generic or memory error. Catch errors
2629 thrown while inserting breakpoints in overlayed code. Output
2630 error message of software breakpoints.
2631 * remote.c (remote_insert_breakpoint): If this breakpoint has
2632 target-side commands but this stub doesn't support Z0 packets,
2633 throw NOT_SUPPORTED_ERROR error.
2634 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
2635 * target.h (target_insert_breakpoint): Extend comment.
2636 (target_insert_hw_breakpoint): Add comment.
2637
b7ea362b
PA
26382014-01-08 Pedro Alves <palves@redhat.com>
2639
2640 * remote.c (remote_add_thread): Add threads silently if starting
2641 up.
2642 (remote_notice_new_inferior): If in all-stop, and starting up,
2643 don't call notice_new_inferior.
2644 (get_current_thread): New function, factored out from ...
2645 (add_current_inferior_and_thread): ... this. Adjust.
2646 (remote_start_remote) <all-stop>: Fetch the thread list. If we
2647 found any thread, then select the remote's current thread as GDB's
2648 current thread too.
2649
b7bba001
JB
26502014-01-08 Joel Brobecker <brobecker@adacore.com>
2651
2652 * NEWS: Create a new section for the next release branch.
2653 Rename the section of the current branch, now that it has
2654 been cut.
2655
16dfbded
JB
26562014-01-08 Joel Brobecker <brobecker@adacore.com>
2657
2658 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
2659 * version.in: Bump version to 7.7.50.DATE-cvs.
2660
22c90ac1
YQ
26612014-01-08 Yao Qi <yao@codesourcery.com>
2662
2663 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
2664 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
2665 (spu_xfer_partial): Cast 'buf' to 'const char *'.
2666
d64ad97c
YQ
26672014-01-08 Yao Qi <yao@codesourcery.com>
2668
2669 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
2670 return value of bfd_get_filename to symbol_file_add_from_bfd.
2671
f93ba80c
PM
26722014-01-08 Pierre Muller <muller@sourceware.org>
2673
2674 Fix PR16201.
2675 * coff-pe-read.c (struct read_pe_section_data): Add index field.
2676 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
2677 to prim_record_mininal_symbol_and_info.
2678 (add_pe_forwarded_sym): Use known section number of forwarded symbol
2679 in call to prim_record_minimal_symbol_and_info.
2680 (read_pe_exported_syms): Set index field of section_data.
2681
a4d9ba85
AP
26822014-01-07 Andrew Pinski <apinski@cavium.com>
2683
2684 * features/aarch64-core.xml (cpsr): Change to be 64bit.
2685 * features/aarch64.c: Regenerate.
2686
1b67eb02
AS
26872014-01-07 Andreas Schwab <schwab@linux-m68k.org>
2688
2689 * target.c (return_null): Define.
2690 (update_current_target): Use it instead of return_zero for
2691 functions that return a pointer.
2692
5e3f4fab
EBM
26932014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2694
2695 * source.c (add_path): Fix check for duplicated paths in the previously
2696 included paths.
2697
e2616788
HK
26982014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
2699
2700 * ada-lang.c: Remove duplicated include statements.
2701 * alphabsd-nat.c: Ditto.
2702 * amd64-darwin-tdep.c: Ditto.
2703 * amd64fbsd-nat.c: Ditto.
2704 * auto-load.c: Ditto.
2705 * ax-gdb.c: Ditto.
2706 * breakpoint.c: Ditto.
2707 * dbxread.c: Ditto.
2708 * fork-child.c: Ditto.
2709 * gdb_usleep.c: Ditto.
2710 * i386-darwin-tdep.c: Ditto.
2711 * i386fbsd-nat.c: Ditto.
2712 * infcmd.c: Ditto.
2713 * inferior.c: Ditto.
2714 * jv-lang.c: Ditto.
2715 * linux-nat.c: Ditto.
2716 * linux-tdep.c: Ditto.
2717 * m68kbsd-nat.c: Ditto.
2718 * m68klinux-nat.c: Ditto.
2719 * microblaze-tdep.c: Ditto.
2720 * mips-linux-tdep.c: Ditto.
2721 * mn10300-tdep.c: Ditto.
2722 * nto-tdep.c: Ditto.
2723 * opencl-lang.c: Ditto.
2724 * osdata.c: Ditto.
2725 * printcmd.c: Ditto.
2726 * regcache.c: Ditto.
2727 * remote-m32r-sdi.c: Ditto.
2728 * remote.c: Ditto.
2729 * symfile.c: Ditto.
2730 * symtab.c: Ditto.
2731 * tilegx-linux-nat.c: Ditto.
2732 * tilegx-tdep.c: Ditto.
2733 * tracepoint.c: Ditto.
2734 * valops.c: Ditto.
2735 * vaxbsd-nat.c: Ditto.
2736 * windows-nat.c: Ditto.
2737 * xtensa-tdep.c: Ditto.
2738
bd1f7788
YQ
27392014-01-07 Yao Qi <yao@codesourcery.com>
2740
2741 * spu-linux-nat.c (_initialize_spu_nat): Declare.
2742
79301218
JB
27432014-01-07 Yao Qi <yao@codesourcery.com>
2744 Joel Brobecker <brobecker@adacore.com>
2745
2746 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
2747 (pdc_write_regs): Likewise.
2748 (fetch_regs_kernel_thread): Likewise.
2749 (store_regs_kernel_thread): Likewise.
2750
27512014-01-07 Joel Brobecker <brobecker@adacore.com>
2752
2753 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
2754 tagged type objects to their actual type.
2755
8e355c5d
JB
27562014-01-07 Joel Brobecker <brobecker@adacore.com>
2757
2758 * ada-valprint.c (print_field_values): Add "language" parameter.
2759 Update calls to print_field_values and print_variant_part.
2760 Pass new parameter "language" in call to val_print instead
2761 of "current_language". Replace call to ada_val_print by call
2762 to val_print.
2763 (print_variant_part): Add "language" parameter.
2764 (ada_val_print_struct_union): Update call to print_field_values.
2765
4fbf5aa5
JB
27662014-01-07 Joel Brobecker <brobecker@adacore.com>
2767
2768 * ada-valprint.c (ui_memcpy): Delete.
2769 (ada_print_floating): Update documentation. Add empty line
2770 between between function documentation and implementation.
2771 Delete variable "buffer". Use ui_file_xstrdup in place of
2772 ui_file_put. Minor adjustments following this change.
2773
71855601
JB
27742014-01-07 Joel Brobecker <brobecker@adacore.com>
2775
2776 * ada-valprint.c (ada_val_print_string): New function,
2777 extracted from ada_val_print_array.
2778 (ada_val_print_array): Replace extracted code by call
2779 to ada_val_print_string followed by a return. Move
2780 "else" branch to the function's top block.
2781
4eb27a30
JB
27822014-01-07 Joel Brobecker <brobecker@adacore.com>
2783
2784 * ada-valprint.c (ada_val_print_array): Move implementation
2785 down. Rename parameter "offset" and "val" into "offset_aligned"
2786 and "original_value" respectively. Add parameter "offset".
2787
34b27950
JB
27882014-01-07 Joel Brobecker <brobecker@adacore.com>
2789
2790 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
2791 re-organizing the code. Change the "???" message printed
2792 when target type is a TYPE_CODE_UNDEF into
2793 "<ref to undefined type>".
2794
079e4591
JB
27952014-01-07 Joel Brobecker <brobecker@adacore.com>
2796
2797 * ada-valprint.c (print_record): Delete, implementation inlined...
2798 (ada_val_print_struct_union): ... here. Remove call to
2799 ada_check_typedef in inlined implementation.
2800
8004dfd1
JB
28012014-01-07 Joel Brobecker <brobecker@adacore.com>
2802
2803 * ada-valprint.c (ada_val_print_gnat_array): New function,
2804 extracted from ada_val_print_1;
2805 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
2806 (ada_val_print_flt, ada_val_print_struct_union)
2807 (ada_val_print_ref): Likewise.
2808 (ada_val_print_1): Delete variables i and elttype.
2809 Replace extracted-out code by call to corresponding
2810 new functions.
2811
760a2db0
JB
28122014-01-07 Joel Brobecker <brobecker@adacore.com>
2813
2814 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
2815
3a92c861
JB
28162014-01-07 Joel Brobecker <brobecker@adacore.com>
2817
2818 * ada-valprint.c (ada_val_print_1): Replace calls to
2819 ada_val_print_1 by calls to val_print.
2820
cd1630f9
JB
28212014-01-07 Joel Brobecker <brobecker@adacore.com>
2822
2823 * ada-valprint.c (ada_val_print_1): Add parameter "language".
2824 Update calls to self accordingly. Replace calls to c_val_print
2825 by calls to val_print.
2826
bdf779a0
JB
28272014-01-07 Joel Brobecker <brobecker@adacore.com>
2828
2829 * ada-valprint.c (print_record): Delete declaration.
2830 (adjust_type_signedness, ada_val_print_1): Likewise.
2831 (ada_val_print): Move function implementation down.
2832 (print_variant_part, print_field_values, print_record):
2833 Move function implementation up.
2834
c0d48811
JB
28352014-01-07 Joel Brobecker <brobecker@adacore.com>
2836
2837 * python/py-type.c (typy_get_name): New function.
2838 (type_object_getset): Add entry for attribute "name".
2839 * NEWS: Add entry mentioning this new attribute.
2840
c26e9cbb
YQ
28412014-01-07 Yao Qi <yao@codesourcery.com>
2842
2843 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
2844 statement.
2845
0cc6f43d
YQ
28462014-01-07 Yao Qi <yao@codesourcery.com>
2847
2848 * gnu-nat.c (info_port_rights): Add qualifier const to
2849 argument args.
2850
eec03155
YQ
28512014-01-07 Yao Qi <yao@codesourcery.com>
2852
2853 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
2854
f04a82ef
YQ
28552014-01-07 Yao Qi <yao@codesourcery.com>
2856
2857 * gnu-nat.c (make_inf) Update declaration.
2858 (make_inf): Make it static.
2859 (inf_set_traced): Likewise.
2860 (inf_port_to_thread, inf_task_died_status): Likewise.
2861
d57dda0a
YQ
28622014-01-07 Yao Qi <yao@codesourcery.com>
2863
2864 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
2865
3aa8c969
YQ
28662014-01-07 Yao Qi <yao@codesourcery.com>
2867
2868 * gnu-nat.c (_initialize_gnu_nat): Declare.
2869
94123b4f
YQ
28702014-01-07 Yao Qi <yao@codesourcery.com>
2871
2872 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
2873 'enum bfd_endian'.
2874 (struct gdbarch_info) <byte_order>: Change type to
2875 'enum bfd_endian'.
2876 <byte_order_for_code>: Likewise.
2877 * gdbarch.c, gdbarch.h: Regenerated.
2878
dc81d70a
TT
28792014-01-06 Sasha Smundak <asmundak@google.com>
2880
2881 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
2882
cc2f3c35
TT
28832014-01-06 Tom Tromey <tromey@redhat.com>
2884
2885 * doublest.c (convert_doublest_to_floatformat): Use const, not
2886 CONST.
2887 * somread.c (som_symtab_read): Likewise.
2888
adcf2eed
HZ
28892014-01-07 Hui Zhu <hui@codesourcery.com>
2890
2891 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
2892 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
2893 (gdb_bfd_fopen): Ditto.
2894 (gdb_bfd_openr): Ditto.
2895 (gdb_bfd_openw): Ditto.
2896 (gdb_bfd_openr_iovec): Ditto.
2897 (gdb_bfd_fdopenr): Ditto.
2898 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
2899 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
2900 with xstrdup.
2901 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
2902 with xstrdup.
2903 * symfile-mem.c (symbol_file_add_from_memory): Removed
2904 gdb_bfd_stash_filename.
2905
50722198
DE
29062014-01-03 Doug Evans <dje@google.com>
2907
2908 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
2909 output.
2910
2fa4b862
JB
29112014-01-01 Joel Brobecker <brobecker@adacore.com>
2912
2913 Update year range in copyright notice of all files.
2914
28498c42
JB
29152014-01-01 Joel Brobecker <brobecker@adacore.com>
2916
2917 * top.c (print_gdb_version): Set copyright year to 2014.
2918
7b6e1046
JB
29192014-01-01 Joel Brobecker <brobecker@adacore.com>
2920
2921 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
2922
df96af55 2923For older changes see ChangeLog-2013.
c906108c
SS
2924\f
2925Local Variables:
2926mode: change-log
2927left-margin: 8
2928fill-column: 74
2929version-control: never
57da7796 2930coding: utf-8
c906108c 2931End: