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