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