1 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
3 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
4 (struct ppc64_sysv_argpos): New data structure.
5 (ppc64_sysv_abi_push_float): Remove.
6 (ppc64_sysv_abi_push_val): New function.
7 (ppc64_sysv_abi_push_integer): Likewise.
8 (ppc64_sysv_abi_push_freg): Likewise.
9 (ppc64_sysv_abi_push_vreg): Likewise.
10 (ppc64_sysv_abi_push_param): Likewise.
11 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12 (ppc64_sysv_abi_return_value_base): New function.
13 (ppc64_sysv_abi_return_value): Refactor to use it.
15 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
17 * NEWS: Document new target powerpc64le-*-linux*.
19 2014-02-04 Mark Kettenis <kettenis@gnu.org>
21 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
22 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
24 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
25 register set used in ELF core dumps. Add floating-point register set.
27 2014-02-03 Kevin Buettner <kevinb@redhat.com>
29 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
30 dwarf2_to_gdb[] table using symbolic constants. Adjust
31 penultimate entry from number representing the PC register
32 to symbolic constant representing the MDR register. Add
33 constant for the PC register to the end of the table.
35 2014-02-03 Mark Kettenis <kettenis@gnu.org>
37 * bsd-kvm.c: Include <sys/param.h>
39 2014-02-03 Mark Kettenis <kettenis@gnu.org>
41 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
43 2014-01-31 Joel Brobecker <brobecker@adacore.com>
45 * ada-lang.h (clear_ada_sym_cache): Delete.
47 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
49 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
51 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
53 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
54 the sigreturn register save area only if the syscall is
57 2014-01-29 Joel Brobecker <brobecker@adacore.com>
59 * valops.c (value_slice): Minor reformatting.
61 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
63 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
65 2014-01-28 Joel Brobecker <brobecker@adacore.com>
67 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
69 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
70 (ada_ignore_descriptive_types_p): New static global.
71 (find_parallel_type_by_descriptive_type): Return immediately
72 if ada_ignore_descriptive_types_p is set.
73 (_initialize_ada_language): Register new commands "maintenance
74 set ada", "maintenance show ada", "maintenance set ada
75 ignore-descriptive-types" and "maintenance show ada
76 ignore-descriptive-types".
77 * NEWS: Add entry for new "maint ada set/show
78 ignore-descriptive-types" commands.
80 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
82 * record-btrace.c (record_btrace_close): Call btrace_teardown
85 2014-01-27 Joel Brobecker <brobecker@adacore.com>
87 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
90 2014-01-27 Joel Brobecker <brobecker@adacore.com>
92 * ada-typeprint (type_is_full_subrange_of_target_type):
94 (print_range): Add parameter bounds_prefered_p. If not set,
95 try printing range types using the name of their base type.
96 (print_range_type): Add parameter bounds_prefered_p.
97 Use it in call to print_range.
98 (print_array_type, ada_print_type): Update calls to print_range
101 2014-01-27 Joel Brobecker <brobecker@adacore.com>
103 * ada-typeprint.c (print_array_type, print_choices, print_range)
104 (print_range_bound, print_dynamic_range_bound, print_range_type):
107 2014-01-27 Joel Brobecker <brobecker@adacore.com>
109 * ada-typeprint.c (print_range): Add missing empty line
110 after local declaration.
112 2014-01-27 Joel Brobecker <brobecker@adacore.com>
114 * ada-valprint.c (print_optional_low_bound): Get index_type's
115 target type for as long as it is a TYPE_CODE_RANGE.
117 2014-01-27 Joel Brobecker <brobecker@adacore.com>
119 * procfs.c (procfs_make_note_section): Remove assertion and
122 2014-01-24 Yao Qi <yao@codesourcery.com>
124 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
125 * corelow.c (get_core_siginfo): Likewise.
127 2014-01-24 Yao Qi <yao@codesourcery.com>
129 * remote.c (remote_write_bytes_aux): Change type of 'len' to
130 ULONGEST. Don't check 'len' is negative.
131 (remote_write_bytes): Change type of 'len' to ULONGEST.
133 2014-01-23 Tom Tromey <tromey@redhat.com>
136 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
137 Handle exception from frame.block.
138 (FrameVars.fetch_frame_locals): Likewise.
140 2014-01-23 Tom Tromey <tromey@redhat.com>
143 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
144 on a NULL pointer. Move "goto error" to correct place.
146 2014-01-23 Tom Tromey <tromey@redhat.com>
149 * python/py-framefilter.c (apply_frame_filter): Call
150 ensure_python_env after computing gdbarch.
152 2014-01-23 Yao Qi <yao@codesourcery.com>
154 * target.c (raw_memory_xfer_partial): Change argument type
155 from void * to gdb_byte *.
156 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
158 2014-01-22 Doug Evans <dje@google.com>
160 New gdbserver option --debug-format=timestamp.
163 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
165 * syscalls/s390x-linux.xml: New file.
166 * syscalls/s390-linux.xml: New file.
167 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
168 (XML_SYSCALL_FILENAME_S390X): Likewise.
169 (op_svc): New enum value for SVC opcode.
170 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
171 (s390_linux_get_syscall_number): New function.
172 (s390_gdbarch_init): Register '*get_syscall_number' and the
173 syscall xml file name.
174 * data-directory/Makefile.in (SYSCALLS_FILES): Add
175 "s390-linux.xml" and "s390x-linux.xml".
176 * NEWS: Announce new feature.
178 2014-01-22 Baruch Siach <baruch@tkos.co.il>
180 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
182 2014-01-22 Pedro Alves <palves@redhat.com>
184 * xtensa-config.c: Include defs.h.
186 2014-01-22 Joel Brobecker <brobecker@adacore.com>
188 * common/common-utils.h: Add "ARI:" comment beside __func__
191 2014-01-22 Joel Brobecker <brobecker@adacore.com>
193 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
196 2014-01-21 Roland McGrath <mcgrathr@google.com>
198 * configure.ac: Call AM_PROG_INSTALL_STRIP.
199 * configure: Regenerate.
200 * aclocal.m4: Regenerate.
201 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
202 New substituted variables.
203 (install-strip): New target.
204 (INSTALL_SCRIPT): New substituted variable.
205 (FLAGS_TO_PASS): Add it.
206 (install-only): Use $(INSTALL_SCRIPT) rather than
207 $(INSTALL_PROGRAM) for gcore.
209 2014-01-20 Tom Tromey <tromey@redhat.com>
211 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
214 2014-01-20 Tom Tromey <tromey@redhat.com>
216 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
217 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
218 (deprecated_cmd_warning, complete_on_cmdlist): Update.
219 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
220 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
221 (struct cmd_list_element) <flags>: Remove.
222 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
223 doc_allocated>: New fields.
224 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
226 * maint.c (maintenance_do_deprecate): Update.
227 * top.c (execute_command): Update.
229 2014-01-20 Baruch Siach <baruch@tkos.co.il>
231 * xtensa-linux-nat.c: Include asm/ptrace.h.
233 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
235 * Makefile.in (SFILES): Add d-support.c.
236 (COMMON_OBS): Add d-support.o.
237 * d-lang.h (d_parse_symbol): Add comment, now defined in
239 * d-lang.c (parse_call_convention)
240 (parse_attributes, parse_function_types)
241 (parse_function_args, parse_type, parse_identifier)
242 (call_convention_p, d_parse_symbol): Move functions to ...
243 * d-support.c: ... New file.
245 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
247 * d-lang.h (d_parse_symbol): Add declaration.
248 * d-lang.c (extract_identifiers)
249 (extract_type_info): Remove functions.
250 (parse_call_convention, parse_attributes)
251 (parse_function_types, parse_function_args)
252 (parse_type, parse_identifier, call_convention_p)
253 (d_parse_symbol): New functions.
254 (d_demangle): Use d_parse_symbol to demangle D symbols.
256 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
258 * d-lang.h (struct builtin_d_type): New data type.
259 (builtin_d_type): Add declaration.
260 * d-lang.c (d_language_arch_info, build_d_types)
261 (builtin_d_type): New functions.
262 (enum d_primitive_types): New data type.
263 (d_language_defn): Change c_language_arch_info to
264 d_language_arch_info.
265 (d_type_data): New static variable.
266 (_initialize_d_language): Initialize d_type_data.
268 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
270 * d-lang.h (d_main_name): Add declaration.
271 * d-lang.c (d_main_name): New function.
272 * symtab.c (find_main_name): Add call to d_main_name.
274 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
276 * d-lang.c (d_language_defn): Change macro_expansion_c to
279 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
281 * MAINTAINERS: Add myself as a write-after-approval maintainer.
283 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
285 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
286 gdb_exception" declaration.
287 * remote.c (getpkt_or_notif_sane): Likewise.
289 2014-01-17 Doug Evans <dje@google.com>
291 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
292 function, contents of dirnames_to_char_ptr_vec_append moved here.
293 (delim_string_to_char_ptr_vec): New function.
294 (dirnames_to_char_ptr_vec_append): Rewrite.
295 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
297 2014-01-17 Doug Evans <dje@google.com>
299 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
301 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
302 #include "common-utils.h".
303 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
304 * common/vec.h (VEC_ASSERT_PASS): Update.
305 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
306 (MACH_CHECK_ERROR): Update.
308 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
310 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
312 * gdbarch.h: Regenerate.
314 2014-01-16 Tom Tromey <tromey@redhat.com>
316 * value.c (struct value) <regnum>: Move earlier.
318 2014-01-16 Tom Tromey <tromey@redhat.com>
320 * remote.c (extended_remote_create_inferior): Rename from
321 extended_remote_create_inferior_1. Add "ops" argument. Remove
324 2014-01-16 Pedro Alves <palves@redhat.com>
326 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
327 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
330 2014-01-16 Doug Evans <dje@google.com>
332 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
334 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
336 * btrace.h (btrace_thread_flag): New.
337 (struct btrace_thread_info) <flags>: New.
338 * record-btrace.c (record_btrace_resume_thread)
339 (record_btrace_find_thread_to_move, btrace_step_no_history)
340 (btrace_step_stopped, record_btrace_start_replaying)
341 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
342 (record_btrace_find_resume_thread): New.
343 (record_btrace_resume, record_btrace_wait): Extend.
344 (record_btrace_can_execute_reverse): New.
345 (record_btrace_open): Fail in non-stop mode.
346 (record_btrace_set_replay): Split into this, ...
347 (record_btrace_stop_replaying): ... this, ...
348 (record_btrace_clear_histories): ... and this.
349 (init_record_btrace_ops): Init to_can_execute_reverse.
352 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
354 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
355 (forward_target_decr_pc_after_break)
356 (target_decr_pc_after_break): New.
357 * target.c (forward_target_decr_pc_after_break)
358 (target_decr_pc_after_break): New.
359 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
360 instead of gdbarch_decr_pc_after_break.
361 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
362 instead of gdbarch_decr_pc_after_break.
363 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
364 instead of gdbarch_decr_pc_after_break.
365 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
366 instead of gdbarch_decr_pc_after_break.
367 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
368 instead of gdbarch_decr_pc_after_break.
369 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
370 instead of gdbarch_decr_pc_after_break.
372 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
374 * btrace.c: Include regcache.h.
375 (btrace_add_pc): New.
376 (btrace_enable): Call btrace_add_pc.
377 (btrace_is_empty): New.
378 * btrace.h (btrace_is_empty): New.
379 * record-btrace.c (require_btrace, record_btrace_info): Call
382 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
384 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
386 (linux_disable_btrace): Change return type.
387 * common/linux-btrace.h (linux_read_btrace): Change parameters
388 and return type to allow error reporting. Update users.
389 (linux_disable_btrace): Change return type. Update users.
390 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
393 (btrace_block) <begin>: Comment on BEGIN == 0.
394 * btrace.c (btrace_compute_ftrace): Start from the end of
396 (btrace_stitch_trace, btrace_clear_history): New.
397 (btrace_fetch): Read delta trace, return if replaying.
398 (btrace_clear): Move clear history code to btrace_clear_history.
399 (parse_xml_btrace): Throw an error if parsing failed.
400 * target.h (struct target_ops) <to_read_btrace>: Change parameters
401 and return type to allow error reporting.
402 (target_read_btrace): Change parameters and return type to allow
404 * target.c (target_read_btrace): Update.
405 * remote.c (remote_read_btrace): Support delta reads. Pass
409 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
411 * record.h (record_btrace_frame_unwind)
412 (record_btrace_tailcall_frame_unwind): New declarations.
413 * dwarf2-frame: Include record.h
414 (dwarf2_frame_cfa): Throw an error for btrace frames.
415 * record-btrace.c: Include hashtab.h.
416 (btrace_get_bfun_name): New.
417 (btrace_call_history): Call btrace_get_bfun_name.
418 (struct btrace_frame_cache): New.
420 (bfcache_hash, bfcache_eq, bfcache_new): New.
421 (btrace_get_frame_function): New.
422 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
423 (record_btrace_frame_this_id): Compute own id.
424 (record_btrace_frame_prev_register): Provide PC, throw_error
425 for all other registers.
426 (record_btrace_frame_sniffer): Detect btrace frames.
427 (record_btrace_tailcall_frame_sniffer): New.
428 (record_btrace_frame_dealloc_cache): New.
429 (record_btrace_frame_unwind): Add new functions.
430 (record_btrace_tailcall_frame_unwind): New.
431 (_initialize_record_btrace): Allocate cache.
432 * btrace.c (btrace_clear): Call reinit_frame_cache.
435 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
437 * record-btrace.c (record_btrace_set_replay)
438 (record_btrace_goto_begin, record_btrace_goto_end)
439 (record_btrace_goto): New.
440 (init_record_btrace_ops): Initialize them.
443 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
445 * record-btrace.c (record_btrace_find_new_threads)
446 (record_btrace_thread_alive): New.
447 (init_record_btrace_ops): Initialize to_find_new_threads and
450 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
452 * record-btrace.c (record_btrace_resume): New.
453 (record_btrace_wait): New.
454 (init_record_btrace_ops): Initialize to_wait and to_resume.
456 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
458 * record-btrace.c (record_btrace_xfer_partial)
459 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
460 (record_btrace_allow_memory_access): New.
461 (init_record_btrace_ops): Initialize new methods.
462 * target.c (raw_memory_xfer_partial): Bail out if target reports
463 that this memory is not available.
465 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
467 * target.h (target_ops) <to_insert_breakpoint>
468 <to_remove_breakpoint>: Add target_ops parameter.
469 (forward_target_insert_breakpoint): New.
470 (forward_target_remove_breakpoint): New.
471 (memory_remove_breakpoint, memory_insert_breakpoint):
472 Add target_ops parameter.
473 * target.c (target_insert_breakpoint): Split into this and ...
474 (forward_target_insert_breakpoint): ... this.
475 (target_remove_breakpoint): Split into this and ...
476 (forward_target_remove_breakpoint): ... this.
477 (debug_to_insert_breakpoint): Add target_ops parameter.
478 Call forward_target_insert_breakpoint.
479 (debug_to_remove_breakpoint): Add target_ops parameter.
480 Call forward_target_remove_breakpoint.
481 (update_current_target): Do not inherit or default to_insert_breakpoint
482 and to_remove_breakpoint.
483 * corelow.c (ignore): Add target_ops parameter.
484 * exec.c (ignore): Add target_ops parameter.
485 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
486 Add target_ops parameter.
487 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
488 Add target_ops parameter.
489 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
490 Add target_ops parameter.
491 * record-full.c (record_full_beneath_to_insert_breakpoint)
492 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
493 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
494 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
495 (record_full_core_remove_breakpoint): Add target_ops parameter.
497 (record_full_beneath_to_insert_breakpoint_ops)
498 (record_full_beneath_to_remove_breakpoint_ops)
499 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
500 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
501 tmp_to_remove_breakpoint_ops,
502 record_full_beneath_to_insert_breakpoint_ops, and
503 record_full_beneath_to_remove_breakpoint_ops.
504 * remote-m32r-sdi.c (m32r_insert_breakpoint)
505 (m32r_remove_breakpoint): Add target_ops parameter.
506 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
507 Add target_ops parameter.
508 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
509 Add target_ops parameter.
511 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
512 Markus Metzger <markus.t.metzger@intel.com>
514 * record-btrace.c: Include frame-unwind.h.
515 (record_btrace_frame_unwind_stop_reason)
516 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
517 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
519 (init_record_btrace_ops): Install it.
521 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
523 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
526 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
528 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
531 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
533 * frame-unwind.c: Include target.h.
534 (frame_unwind_try_unwinder): New function with code from ...
535 (frame_unwind_find_by_frame): ... here. New variable
536 unwinder_from_target, call also target_get_unwinder)
537 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
538 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
539 * target.h (struct target_ops): New fields to_get_unwinder and
540 to_get_tailcall_unwinder.
541 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
543 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
545 * record-btrace.c (record_btrace_fetch_registers)
546 (record_btrace_store_registers)
547 (record_btrace_to_prepare_to_store): New.
548 (init_record_btrace_ops): Add the above.
550 2014-01-16 Tom Tromey <tromey@redhat.com>
552 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
553 * target.h (struct target_ops) <to_prepare_to_store>: Add
555 (target_prepare_to_store): Add argument.
556 * target.c (debug_to_prepare_to_store): Add argument.
557 (update_current_target): Update.
558 * remote.c (remote_prepare_to_store): Add 'self' argument.
559 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
560 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
561 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
562 * record-full.c (record_full_core_prepare_to_store): Add 'self'
564 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
565 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
566 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
567 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
568 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
570 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
572 * btrace.h (replay) <replay>: New.
573 (btrace_is_replaying): New.
574 * btrace.c (btrace_clear): Free replay iterator.
575 (btrace_is_replaying): New.
576 * record-btrace.c (record_btrace_is_replaying): New.
577 (record_btrace_info): Print insn number if replaying.
578 (record_btrace_insn_history): Start at replay position.
579 (record_btrace_call_history): Start at replay position.
580 (init_record_btrace_ops): Init to_record_is_replaying.
582 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
584 * record-btrace.c (record_btrace_insn_history_range): Include
586 (record_btrace_insn_history_from): Adjust range.
587 (record_btrace_call_history_range): Include
589 (record_btrace_call_history_from): Adjust range.
590 * NEWS: Announce changes.
592 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
594 * record.h (enum record_print_flag)
595 <record_print_indent_calls>: New.
596 * record.c (get_call_history_modifiers): Recognize /c modifier.
597 (_initialize_record): Document /c modifier.
598 * record-btrace.c (btrace_call_history): Add btinfo parameter.
599 Reorder fields. Optionally indent the function name. Update
601 * NEWS: Announce changes.
603 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
605 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
607 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
609 * btrace.c (ftrace_new_function): Start counting at one.
610 * record-btrace.c (record_btrace_info): Adjust number of calls
614 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
616 * record-btrace.c (btrace_call_history_insn_range): Print
617 insn range as [begin, end].
619 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
621 * btrace.h (struct btrace_func_link): New.
622 (enum btrace_function_flag): New.
623 (struct btrace_inst): Rename to ...
624 (struct btrace_insn): ...this. Update all users.
625 (struct btrace_func) <ibegin, iend>: Remove.
626 (struct btrace_func_link): New.
627 (struct btrace_func): Rename to ...
628 (struct btrace_function): ...this. Update all users.
629 (struct btrace_function) <segment, flow, up, insn, insn_offset)
630 (number, level, flags>: New.
631 (struct btrace_insn_iterator): Rename to ...
632 (struct btrace_insn_history): ...this.
634 (struct btrace_insn_iterator, btrace_call_iterator): New.
635 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
636 (struct btrace_target_info) <begin, end, level>
637 <insn_history, call_history>: New.
638 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
639 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
640 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
641 (btrace_call_number, btrace_call_begin, btrace_call_end)
642 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
643 (btrace_find_function_by_number, btrace_set_insn_history)
644 (btrace_set_call_history): New.
645 * btrace.c (btrace_init_insn_iterator)
646 (btrace_init_func_iterator, compute_itrace): Remove.
647 (ftrace_print_function_name, ftrace_print_filename)
648 (ftrace_skip_file): Change
650 (ftrace_init_func): Remove.
651 (ftrace_debug): Use new btrace_function fields.
652 (ftrace_function_switched): Also consider gaining and
653 losing symbol information).
654 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
655 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
656 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
658 (ftrace_new_function): Move. Remove debug print.
659 (ftrace_update_lines, ftrace_update_insns): New.
660 (ftrace_update_function): Check for call, ret, and jump.
661 (compute_ftrace): Renamed to ...
662 (btrace_compute_ftrace): ...this. Rewritten to compute call
664 (btrace_fetch, btrace_clear): Updated.
665 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
666 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
667 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
668 (btrace_call_number, btrace_call_begin, btrace_call_end)
669 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
670 (btrace_find_function_by_number, btrace_set_insn_history)
671 (btrace_set_call_history): New.
672 * record-btrace.c (require_btrace): Use new btrace thread
674 (record_btrace_info, btrace_insn_history)
675 (record_btrace_insn_history, record_btrace_insn_history_range):
676 Use new btrace thread info fields and new iterator.
677 (btrace_func_history_src_line): Rename to ...
678 (btrace_call_history_src_line): ...this. Use new btrace
680 (btrace_func_history): Rename to ...
681 (btrace_call_history): ...this. Use new btrace thread info
682 fields and new iterator.
683 (record_btrace_call_history, record_btrace_call_history_range):
684 Use new btrace thread info fields and new iterator.
686 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
688 * frame.h (frame_id_build_unavailable_stack_special): New.
689 * frame.c (frame_id_build_unavailable_stack_special): New.
691 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
693 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
694 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
695 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
697 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
698 (i386_insn_is_jump, i386_jmp_p): New.
699 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
700 insn_is_jump to gdbarch.
701 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
702 * gdbarch.h: Regenerated.
703 * gdbarch.c: Regenerated.
704 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
705 (default_insn_is_jump): New.
706 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
707 (default_insn_is_jump): New.
709 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
711 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
713 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
714 (btrace_read_type) <btrace_read_new>: Change to ...
715 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
717 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
719 * common/linux-btrace.c (linux_read_btrace): Free trace from
722 2014-01-15 Doug Evans <dje@google.com>
724 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
727 2014-01-15 Tom Tromey <tromey@redhat.com>
729 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
730 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
731 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
732 (set_objfile_main_name): New function.
733 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
734 language_of_main>: New fields.
735 (set_objfile_main_name): Declare.
736 * symtab.c (find_main_name): Loop over objfiles to find the main
738 (set_main_name): Now static.
739 (get_main_info): Add comment.
740 * symtab.h (set_main_name): Don't declare.
742 2014-01-15 Tom Tromey <tromey@redhat.com>
744 * symtab.c (main_progspace_key): New global.
745 (struct main_info): New.
746 (name_of_main, language_of_main): Remove.
747 (get_main_info, main_info_cleanup): New function.
748 (set_main_name, main_name, main_language): Use get_main_info.
749 (_initialize_symtab): Initialize main_progspace_key.
751 2014-01-15 Tom Tromey <tromey@redhat.com>
753 * dbxread.c (process_one_symbol): Update.
754 * dwarf2read.c (read_partial_die): Update.
755 * symfile.c (set_initial_language): Call main_language.
756 * symtab.c (language_of_main): Now static.
757 (set_main_name): Add 'lang' parameter.
758 (find_main_name): Update.
759 (main_language): New function.
760 (symtab_observer_executable_changed): Update.
761 * symtab.h (set_main_name): Update.
762 (language_of_main): Remove.
763 (main_language): Declare.
765 2014-01-15 Tom Tromey <tromey@redhat.com>
767 * symfile.c (init_entry_point_info): Use new "initialized" field.
769 * objfiles.h (struct entry_point) <initialized>: New field.
770 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
771 (struct objfile) <ei>: ...here. Remove.
772 * objfiles.c (entry_point_address_query): Update.
774 2014-01-15 Tom Tromey <tromey@redhat.com>
776 * objfiles.c (entry_point_address_query): Relocate entry point
778 (objfile_relocate1): Do not relocate entry point address.
779 * objfiles.h (struct entry_info) <entry_point>: Update comment.
780 <the_bfd_section_index>: New field.
781 * symfile.c (init_entry_point_info): Find the entry point's
784 2014-01-15 Tom Tromey <tromey@redhat.com>
786 * solib-frv.c (enable_break): Use entry_point_address_query.
788 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
790 * NEWS: Add note on improved process record-replay on
793 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
795 * arm-tdep.c (enum arm_record_result): New enum.
796 (arm_record_unsupported_insn): New function.
797 (arm_record_coproc_data_proc): Removed.
798 (thumb2_record_ld_st_multiple): New function.
799 (thumb2_record_ld_st_dual_ex_tbb): New function.
800 (thumb2_record_data_proc_sreg_mimm): New function.
801 (thumb2_record_ps_dest_generic): New function.
802 (thumb2_record_branch_misc_cntrl): New function.
803 (thumb2_record_str_single_data): New function.
804 (thumb2_record_ld_mem_hints): New function.
805 (thumb2_record_ld_word): New function.
806 (thumb2_record_lmul_lmla_div): New function.
807 (thumb2_record_decode_insn_handler): New function.
808 (decode_insn): Add thumb32 instruction handlers.
810 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
812 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
813 (struct arm_linux_record_tdep): Declare.
814 (arm_canonicalize_syscall): New function.
815 (arm_all_but_pc_registers_record): New function.
816 (arm_linux_syscall_record): New function.
817 (arm_linux_init_abi): Add syscall recording constructs.
818 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
819 decoding. (arm_record_coproc_data_proc): Update arm syscall
821 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
822 <arm_syscall_record>: New field.
823 * configure.tgt (arm*-*-linux*): Add linux-record.o to
826 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
828 * arm-tdep.c (thumb_record_misc): Update to use sp as base
829 register for push instruction recording.
831 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
833 * arm-tdep.c (thumb_record_misc): Update to correct logical
834 error while recording ldm, ldmia and pop instructions.
836 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
838 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
840 2014-01-15 Pedro Alves <palves@redhat.com>
842 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
843 (go32_resume, go32_fetch_registers, store_register)
844 (go32_store_registers, go32_prepare_to_store)
845 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
846 (go32_create_inferior, go32_can_run, go32_terminal_init)
847 (go32_terminal_inferior, go32_terminal_ours): Delete forward
850 2014-01-15 Tom Tromey <tromey@redhat.com>
852 * target.h (async_callback_ftype): New typedef.
853 (struct target_ops) <to_async>: Use it.
855 2014-01-15 Joel Brobecker <brobecker@adacore.com>
857 * python/py-value.c (get_field_type): Remove unnecessary curly
858 braces for single-statement if block.
860 2014-01-15 Joel Brobecker <brobecker@adacore.com>
862 * python/py-type.c (convert_field): Add missing empty line
865 2014-01-14 Doug Evans <dje@google.com>
867 * symfile.h (expand_symtabs_matching): Renamed from
868 expand_partial_symbol_names. Update prototype.
869 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
870 * symfile.c (expand_symtabs_matching): Renamed from
871 expand_partial_symbol_names. New args file_matcher, kind.
872 Rename arg fun to symbol_matcher.
873 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
874 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
875 ada_expand_partial_symbol_name.
876 (ada_make_symbol_completion_list): Update to call
877 expand_symtabs_matching.
878 (ada_add_global_exceptions): Call expand_symtabs_matching.
879 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
880 call map_symbol_filenames.
881 * symtab.c (sources_info): Update to call map_symbol_filenames.
882 (search_symbols): Call expand_symtabs_matching.
883 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
884 (default_make_symbol_completion_list_break_on): Update to call
885 expand_symtabs_matching.
886 (make_source_files_completion_list): Update to call
887 map_symbol_filenames.
889 2014-01-14 Doug Evans <dje@google.com>
891 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
892 (expand_symtabs_symbol_matcher_ftype): New typedef.
893 (quick_symbol_functions.expand_symtabs_matching): Update to use.
894 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
895 * symfile.c (expand_partial_symbol_names): Update to use
896 expand_symtabs_symbol_matcher_ftype.
897 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
898 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
899 Arg name_matcher renamed to symbol_matcher.
900 * psymtab.c (recursively_search_psymtabs): Update to use
901 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
903 (expand_symtabs_matching_via_partial): Update to use
904 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
905 Arg name_matcher renamed to symbol_matcher.
907 2014-01-14 Doug Evans <dje@google.com>
909 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
910 (map_partial_symbol_filenames): Ditto.
911 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
912 (map_partial_symbol_filenames): Ditto.
913 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
914 (map_partial_symbol_filenames): Ditto.
915 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
916 (map_partial_symbol_filenames): Ditto.
917 * symtab.c: Delete #include "psymtab.h".
919 2014-01-14 Pedro Alves <palves@redhat.com>
920 Tom Tromey <tromey@redhat.com>
922 * infrun.c (use_displaced_stepping): Use find_record_target
923 instead of RECORD_IS_USED.
924 (adjust_pc_after_break): Use record_full_is_used instead of
926 * record-btrace.c (record_btrace_open): Call record_preopen
927 instead of checking RECORD_IS_USED.
928 * record-full.c (record_full_shortname)
929 (record_full_core_shortname): New globals.
930 (record_full_is_used): New function.
931 (find_full_open): Call record_preopen instead of checking
933 (init_record_full_ops): Set the target's shortname to
934 record_full_shortname.
935 (init_record_full_core_ops): Set the target's shortname to
936 record_full_core_shortname.
937 * record-full.h (record_full_is_used): Declare.
938 * record.c (find_record_target): Make extern.
939 (record_preopen): New function.
940 * record.h (RECORD_IS_USED): Delete macro.
941 (find_record_target, record_preopen): Declare functions.
943 2014-01-14 Yao Qi <yao@codesourcery.com>
945 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
946 'len''s type to ULONGEST.
947 (core_xfer_shared_libraries_aix): Likewise.
948 * gdbarch.c, gdbarch.h: Regenerated.
949 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
950 Change type of 'len' to ULONGEST.
951 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
952 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
954 2014-01-14 Yao Qi <yao@codesourcery.com>
956 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
957 type of 'len' to ULONGEST.
958 (linux_xfer_osdata_processgroups): Likewise.
959 (linux_xfer_osdata_threads): Likewise.
960 (linux_xfer_osdata_fds): Likewise.
961 (linux_xfer_osdata_isockets): Likewise.
962 (linux_xfer_osdata_shm): Likewise.
963 (linux_xfer_osdata_sem): Likewise.
964 (linux_xfer_osdata_msg): Likewise.
965 (linux_common_xfer_osdata): Likewise.
966 (struct osdata_type) <getter>: Likewise.
967 * common/linux-osdata.h (linux_common_xfer_osdata): Update
970 2014-01-14 Yao Qi <yao@codesourcery.com>
972 * target.h (target_xfer_partial_ftype): Update.
973 (struct target_ops) <to_xfer_partial>: Change 'len' type to
975 * aix-thread.c (aix_thread_xfer_partial): Change type of
976 argument 'len' to ULONGEST.
977 * auxv.c (procfs_xfer_auxv): Likewise.
978 (ld_so_xfer_auxv): Likewise.
979 (memory_xfer_auxv): Likewise.
980 * bfd-target.c (target_bfd_xfer_partial): Likewise.
981 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
982 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
983 * corelow.c (core_xfer_partial): Likewise.
984 * ctf.c (ctf_xfer_partial): Likewise.
985 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
987 (darwin_read_dyld_info): Likewise.
988 (darwin_xfer_partial): Likewise.
989 * exec.c (section_table_xfer_memory_partial): Likewise.
990 (exec_xfer_partial): Likewise.
991 * exec.h (section_table_xfer_memory_partial): Update
993 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
995 (gnu_xfer_partial): Likewise.
996 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
997 (ia64_hpux_xfer_solib_got): Likewise.
998 (ia64_hpux_xfer_partial): Likewise.
999 * ia64-linux-nat.c (ia64_linux_xfer_partial):
1000 * inf-ptrace.c (inf_ptrace_xfer_partial):
1001 * inf-ttrace.c (inf_ttrace_xfer_partial):
1002 * linux-nat.c (linux_xfer_siginfo): Likewise.
1003 (linux_nat_xfer_partial): Likewise.
1004 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
1005 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
1006 * monitor.c (monitor_xfer_memory): Likewise.
1007 (monitor_xfer_partial): Likewise.
1008 * procfs.c (procfs_xfer_partial): Likewise.
1009 * record-full.c (record_full_xfer_partial): Likewise.
1010 (record_full_core_xfer_partial): Likewise.
1011 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
1012 instead of plongest.
1013 (gdbsim_xfer_partial): Likewise.
1014 * remote.c (remote_xfer_partial): Likewise.
1015 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1016 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
1018 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1019 (rs6000_xfer_shared_libraries): Likewise.
1020 * sol-thread.c (sol_thread_xfer_partial): Likewise.
1021 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1022 (sparc_xfer_partial): Likewise.
1023 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1024 (spu_xfer_partial): Likewise.
1025 * spu-multiarch.c (spu_xfer_partial): Likewise.
1026 * target.c (target_read_live_memory): Likewise.
1027 (memory_xfer_live_readonly_partial): Likewise.
1028 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
1029 (target_xfer_partial, default_xfer_partial): Likewise.
1030 (current_xfer_partial): Likewise.
1031 * tracepoint.c (tfile_xfer_partial): Likewise.
1032 * windows-nat.c (windows_xfer_memory): Likewise. Call
1033 pulongest instead of plongest.
1034 (windows_xfer_partial): Likewise.
1035 (windows_xfer_shared_libraries): Likewise.
1037 2014-01-14 Yao Qi <yao@codesourcery.com>
1039 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
1040 target_xfer_partial_ftype.
1042 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
1046 * valops.c (value_struct_elt_bitpos): New function
1047 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
1048 object to 'None' if the field name is an empty string ("").
1049 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
1050 attribute to look for a field when 'name' is 'None'.
1051 (get_field_type): New function
1053 2014-01-13 Doug Evans <dje@google.com>
1056 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
1057 (try_open_dwop_file): Ditto.
1058 * gdb_bfd.c: #include "vec.h".
1059 (bfdp): New typedef.
1060 (struct gdb_bfd_data): New member included_bfds.
1061 (gdb_bfd_unref): Unref all included bfds.
1062 (gdb_bfd_record_inclusion): New function.
1063 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
1065 2014-01-13 Tom Tromey <tromey@redhat.com>
1067 * gdbcore.h (deprecated_core_resize_section_table): Remove.
1069 2014-01-13 Tom Tromey <tromey@redhat.com>
1071 * defs.h (use_windows): Remove.
1072 * gdb.c (main): Update.
1073 * main.c (captured_main, gdb_main): Update.
1074 * main.h (struct captured_main_args) <use_windows>: Remove.
1075 * top.c (use_windows): Remove.
1077 2014-01-13 Tom Tromey <tromey@redhat.com>
1079 * defs.h (deprecated_flush_hook): Remove.
1081 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1084 * linux-thread-db.c (try_thread_db_load): Add parameter
1085 check_auto_load_safe. Move here the file_is_auto_load_safe call.
1086 (try_thread_db_load_from_pdir_1): Move it there from here.
1087 (try_thread_db_load_from_sdir): Update caller.
1088 (try_thread_db_load_from_dir): Move it there from here.
1090 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
1092 * regformats/regdat.sh: Always rewrite the register file.
1094 2014-01-13 Pedro Alves <palves@redhat.com>
1096 * Makefile.in (CHECK_HEADERS): New variable.
1097 (check-headers:): New rule.
1099 2014-01-13 Tom Tromey <tromey@redhat.com>
1101 * cli/cli-setshow.c (do_set_command): Update.
1102 * defs.h (deprecated_set_hook): Remove.
1103 * top.c (deprecated_set_hook): Remove.
1105 2014-01-13 Pedro Alves <palves@redhat.com>
1107 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
1108 the tracepoint if the PC is a pseudo-register.
1110 2014-01-13 Tom Tromey <tromey@redhat.com>
1112 * defs.h (XCALLOC): Remove.
1113 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
1114 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
1115 * dwarf2loc.c (allocate_piece_closure): Likewise.
1116 * elfread.c (elf_symfile_segments): Likewise.
1117 (elf_symfile_segments): Likewise.
1118 * gdbtypes.c (copy_type_recursive): Likewise.
1119 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
1120 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
1121 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
1123 * mt-tdep.c (mt_gdbarch_init): Likewise.
1124 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
1126 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
1127 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
1128 * registry.c (registry_alloc_data): Likewise.
1129 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
1130 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
1131 * serial.c (serial_fdopen_ops): Likewise.
1132 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
1134 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
1135 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
1138 2014-01-13 Tom Tromey <tromey@redhat.com>
1140 * defs.h (XMALLOC): Remove.
1141 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
1142 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
1143 * cli-out.c (struct ui_out *): Likewise.
1144 * cli/cli-dump.c (add_dump_command): Likewise.
1145 (add_dump_command): Likewise.
1146 * complaints.c (get_complaints): Likewise.
1147 (find_complaint): Likewise.
1148 * dwarf2-frame.c (execute_cfa_program): Likewise.
1149 * dwarf2read.c (abbrev_table_read_table): Likewise.
1150 * gdbarch.sh: Likewise.
1151 * gdbarch.c: Rebuild.
1152 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
1153 * interps.c (interp_new): Likewise.
1154 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
1155 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
1156 * mi/mi-console.c (mi_console_file_new): Likewise.
1157 * mi/mi-interp.c (mi_interpreter_init): Likewise.
1158 * mi/mi-out.c (mi_out_new): Likewise.
1159 * mi/mi-parse.c (mi_parse): Likewise.
1160 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
1161 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
1162 * observer.c (xalloc_observer_list_node): Likewise.
1163 * regcache.c (regcache_xmalloc_1): Likewise.
1164 * reggroups.c (reggroup_new): Likewise.
1165 (_initialize_reggroup): Likewise.
1166 * registry.c (register_data_with_cleanup): Likewise.
1167 * remote.c (remote_notif_stop_alloc_reply): Likewise.
1168 * ser-base.c (serial_ttystate): Likewise.
1169 * ser-mingw.c (make_pipe_state): Likewise.
1170 * ser-pipe.c (pipe_open): Likewise.
1171 * serial.c (serial_open): Likewise.
1172 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
1173 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
1174 (tui_alloc_win_info): Likewise.
1175 (tui_add_content_elements): Likewise.
1176 * tui/tui-file.c (tui_file_new): Likewise.
1177 * tui/tui-out.c (tui_out_new): Likewise.
1178 * ui-file.c (mem_file_new): Likewise.
1179 * ui-out.c (push_level): Likewise.
1180 (make_cleanup_ui_out_end): Likewise.
1181 (append_header_to_list): Likewise.
1182 (ui_out_new): Likewise.
1183 * user-regs.c (user_reg_add_builtin): Likewise.
1185 2014-01-13 Tom Tromey <tromey@redhat.com>
1187 * defs.h (XZALLOC): Remove.
1188 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
1189 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
1190 (get_ada_tasks_inferior_data): Likewise.
1191 * auto-load.c (get_auto_load_pspace_data): Likewise.
1192 * auxv.c (get_auxv_inferior_data): Likewise.
1193 * bfd-target.c (target_bfd_reopen): Likewise.
1194 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
1195 (deprecated_insert_raw_breakpoint): Likewise.
1196 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
1197 * corelow.c (core_open): Likewise.
1198 * darwin-nat.c (darwin_check_new_threads): Likewise.
1199 (darwin_attach_pid): Likewise.
1200 * dummy-frame.c (dummy_frame_push): Likewise.
1201 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
1202 * dwarf2loc.c (allocate_piece_closure): Likewise.
1203 * elfread.c (elf_symfile_segments): Likewise.
1204 * eval.c (ptrmath_type_p): Likewise.
1205 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
1206 * gdbtypes.c (alloc_type_arch): Likewise.
1207 (alloc_type_instance): Likewise.
1208 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
1209 * inf-child.c (inf_child_can_use_agent): Likewise.
1210 * inflow.c (get_inflow_inferior_data): Likewise.
1211 * infrun.c (save_infcall_suspend_state): Likewise.
1212 * jit.c (jit_reader_load): Likewise.
1213 (get_jit_objfile_data): Likewise.
1214 (get_jit_program_space_data): Likewise.
1215 (jit_object_open_impl): Likewise.
1216 (jit_symtab_open_impl): Likewise.
1217 (jit_block_open_impl): Likewise.
1218 (jit_frame_sniffer): Likewise.
1219 * linux-fork.c (add_fork): Likewise.
1220 * maint.c (make_command_stats_cleanup): Likewise.
1221 * objfiles.c (get_objfile_pspace_data): Likewise.
1222 * opencl-lang.c (struct lval_closure): Likewise.
1223 * osdata.c (osdata_start_osdata): Likewise.
1224 * progspace.c (new_address_space): Likewise.
1225 (add_program_space): Likewise.
1226 * remote-sim.c (get_sim_inferior_data): Likewise.
1227 * sh-tdep.c (sh_gdbarch_init): Likewise.
1228 * skip.c (Ignore): Likewise.
1229 (skip_delete_command): Likewise.
1230 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
1231 (library_list_start_library): Likewise.
1232 (solib_aix_current_sos): Likewise.
1233 * solib-darwin.c (get_darwin_info): Likewise.
1234 (darwin_current_sos): Likewise.
1235 * solib-dsbt.c (get_dsbt_info): Likewise.
1236 * solib-ia64-hpux.c (new_so_list): Likewise.
1237 (ia64_hpux_get_solib_linkage_addr): Likewise.
1238 * solib-spu.c (append_ocl_sos): Likewise.
1239 (spu_current_sos): Likewise.
1240 * solib-svr4.c (get_svr4_info): Likewise.
1241 (svr4_keep_data_in_core): Likewise.
1242 (library_list_start_library): Likewise.
1243 (svr4_default_sos): Likewise.
1244 (svr4_read_so_list): Likewise.
1245 * solib-target.c (library_list_start_library): Likewise.
1246 (solib_target_current_sos): Likewise.
1247 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
1248 * symfile-debug.c (install_symfile_debug_logging): Likewise.
1249 * symfile.c (default_symfile_segments): Likewise.
1250 * target-descriptions.c (tdesc_data_init): Likewise.
1251 (tdesc_create_reg): Likewise.
1252 (struct tdesc_type *): Likewise.
1253 (tdesc_create_vector): Likewise.
1254 (tdesc_set_struct_size): Likewise.
1255 (struct tdesc_type *): Likewise.
1256 (tdesc_free_feature): Likewise.
1257 (tdesc_create_feature): Likewise.
1258 * windows-nat.c (windows_add_thread): Likewise.
1259 (windows_make_so): Likewise.
1260 * xml-support.c (gdb_xml_body_text): Likewise.
1261 (gdb_xml_create_parser_and_cleanup): Likewise.
1262 (xml_process_xincludes): Likewise.
1263 * xml-syscall.c (allocate_syscalls_info): Likewise.
1264 (syscall_create_syscall_desc): Likewise.
1266 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
1268 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
1269 function, with code from i386_stap_parse_special_token.
1270 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1271 (i386_stap_parse_special_token): Move code to the two functions
1274 2014-01-09 Pedro Alves <palves@redhat.com>
1275 Hui Zhu <hui@codesourcery.com>
1278 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
1279 bp_err_string. Don't mark the location shlib_disabled if the
1280 error thrown wasn't a generic or memory error. Catch errors
1281 thrown while inserting breakpoints in overlayed code. Output
1282 error message of software breakpoints.
1283 * remote.c (remote_insert_breakpoint): If this breakpoint has
1284 target-side commands but this stub doesn't support Z0 packets,
1285 throw NOT_SUPPORTED_ERROR error.
1286 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
1287 * target.h (target_insert_breakpoint): Extend comment.
1288 (target_insert_hw_breakpoint): Add comment.
1290 2014-01-08 Pedro Alves <palves@redhat.com>
1292 * remote.c (remote_add_thread): Add threads silently if starting
1294 (remote_notice_new_inferior): If in all-stop, and starting up,
1295 don't call notice_new_inferior.
1296 (get_current_thread): New function, factored out from ...
1297 (add_current_inferior_and_thread): ... this. Adjust.
1298 (remote_start_remote) <all-stop>: Fetch the thread list. If we
1299 found any thread, then select the remote's current thread as GDB's
1302 2014-01-08 Joel Brobecker <brobecker@adacore.com>
1304 * NEWS: Create a new section for the next release branch.
1305 Rename the section of the current branch, now that it has
1308 2014-01-08 Joel Brobecker <brobecker@adacore.com>
1310 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
1311 * version.in: Bump version to 7.7.50.DATE-cvs.
1313 2014-01-08 Yao Qi <yao@codesourcery.com>
1315 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
1316 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
1317 (spu_xfer_partial): Cast 'buf' to 'const char *'.
1319 2014-01-08 Yao Qi <yao@codesourcery.com>
1321 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
1322 return value of bfd_get_filename to symbol_file_add_from_bfd.
1324 2014-01-08 Pierre Muller <muller@sourceware.org>
1327 * coff-pe-read.c (struct read_pe_section_data): Add index field.
1328 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
1329 to prim_record_mininal_symbol_and_info.
1330 (add_pe_forwarded_sym): Use known section number of forwarded symbol
1331 in call to prim_record_minimal_symbol_and_info.
1332 (read_pe_exported_syms): Set index field of section_data.
1334 2014-01-07 Andrew Pinski <apinski@cavium.com>
1336 * features/aarch64-core.xml (cpsr): Change to be 64bit.
1337 * features/aarch64.c: Regenerate.
1339 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
1341 * target.c (return_null): Define.
1342 (update_current_target): Use it instead of return_zero for
1343 functions that return a pointer.
1345 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1347 * source.c (add_path): Fix check for duplicated paths in the previously
1350 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
1352 * ada-lang.c: Remove duplicated include statements.
1353 * alphabsd-nat.c: Ditto.
1354 * amd64-darwin-tdep.c: Ditto.
1355 * amd64fbsd-nat.c: Ditto.
1356 * auto-load.c: Ditto.
1358 * breakpoint.c: Ditto.
1360 * fork-child.c: Ditto.
1361 * gdb_usleep.c: Ditto.
1362 * i386-darwin-tdep.c: Ditto.
1363 * i386fbsd-nat.c: Ditto.
1365 * inferior.c: Ditto.
1367 * linux-nat.c: Ditto.
1368 * linux-tdep.c: Ditto.
1369 * m68kbsd-nat.c: Ditto.
1370 * m68klinux-nat.c: Ditto.
1371 * microblaze-tdep.c: Ditto.
1372 * mips-linux-tdep.c: Ditto.
1373 * mn10300-tdep.c: Ditto.
1374 * nto-tdep.c: Ditto.
1375 * opencl-lang.c: Ditto.
1377 * printcmd.c: Ditto.
1378 * regcache.c: Ditto.
1379 * remote-m32r-sdi.c: Ditto.
1383 * tilegx-linux-nat.c: Ditto.
1384 * tilegx-tdep.c: Ditto.
1385 * tracepoint.c: Ditto.
1387 * vaxbsd-nat.c: Ditto.
1388 * windows-nat.c: Ditto.
1389 * xtensa-tdep.c: Ditto.
1391 2014-01-07 Yao Qi <yao@codesourcery.com>
1393 * spu-linux-nat.c (_initialize_spu_nat): Declare.
1395 2014-01-07 Yao Qi <yao@codesourcery.com>
1396 Joel Brobecker <brobecker@adacore.com>
1398 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
1399 (pdc_write_regs): Likewise.
1400 (fetch_regs_kernel_thread): Likewise.
1401 (store_regs_kernel_thread): Likewise.
1403 2014-01-07 Joel Brobecker <brobecker@adacore.com>
1405 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
1406 tagged type objects to their actual type.
1408 2014-01-07 Joel Brobecker <brobecker@adacore.com>
1410 * ada-valprint.c (print_field_values): Add "language" parameter.
1411 Update calls to print_field_values and print_variant_part.
1412 Pass new parameter "language" in call to val_print instead
1413 of "current_language". Replace call to ada_val_print by call
1415 (print_variant_part): Add "language" parameter.
1416 (ada_val_print_struct_union): Update call to print_field_values.
1418 2014-01-07 Joel Brobecker <brobecker@adacore.com>
1420 * ada-valprint.c (ui_memcpy): Delete.
1421 (ada_print_floating): Update documentation. Add empty line
1422 between between function documentation and implementation.
1423 Delete variable "buffer". Use ui_file_xstrdup in place of
1424 ui_file_put. Minor adjustments following this change.
1426 2014-01-07 Joel Brobecker <brobecker@adacore.com>
1428 * ada-valprint.c (ada_val_print_string): New function,
1429 extracted from ada_val_print_array.
1430 (ada_val_print_array): Replace extracted code by call
1431 to ada_val_print_string followed by a return. Move
1432 "else" branch to the function's top block.
1434 2014-01-07 Joel Brobecker <brobecker@adacore.com>
1436 * ada-valprint.c (ada_val_print_array): Move implementation
1437 down. Rename parameter "offset" and "val" into "offset_aligned"
1438 and "original_value" respectively. Add parameter "offset".
1440 2014-01-07 Joel Brobecker <brobecker@adacore.com>
1442 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
1443 re-organizing the code. Change the "???" message printed
1444 when target type is a TYPE_CODE_UNDEF into
1445 "<ref to undefined type>".
1447 2014-01-07 Joel Brobecker <brobecker@adacore.com>
1449 * ada-valprint.c (print_record): Delete, implementation inlined...
1450 (ada_val_print_struct_union): ... here. Remove call to
1451 ada_check_typedef in inlined implementation.
1453 2014-01-07 Joel Brobecker <brobecker@adacore.com>
1455 * ada-valprint.c (ada_val_print_gnat_array): New function,
1456 extracted from ada_val_print_1;
1457 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
1458 (ada_val_print_flt, ada_val_print_struct_union)
1459 (ada_val_print_ref): Likewise.
1460 (ada_val_print_1): Delete variables i and elttype.
1461 Replace extracted-out code by call to corresponding
1464 2014-01-07 Joel Brobecker <brobecker@adacore.com>
1466 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
1468 2014-01-07 Joel Brobecker <brobecker@adacore.com>
1470 * ada-valprint.c (ada_val_print_1): Replace calls to
1471 ada_val_print_1 by calls to val_print.
1473 2014-01-07 Joel Brobecker <brobecker@adacore.com>
1475 * ada-valprint.c (ada_val_print_1): Add parameter "language".
1476 Update calls to self accordingly. Replace calls to c_val_print
1477 by calls to val_print.
1479 2014-01-07 Joel Brobecker <brobecker@adacore.com>
1481 * ada-valprint.c (print_record): Delete declaration.
1482 (adjust_type_signedness, ada_val_print_1): Likewise.
1483 (ada_val_print): Move function implementation down.
1484 (print_variant_part, print_field_values, print_record):
1485 Move function implementation up.
1487 2014-01-07 Joel Brobecker <brobecker@adacore.com>
1489 * python/py-type.c (typy_get_name): New function.
1490 (type_object_getset): Add entry for attribute "name".
1491 * NEWS: Add entry mentioning this new attribute.
1493 2014-01-07 Yao Qi <yao@codesourcery.com>
1495 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
1498 2014-01-07 Yao Qi <yao@codesourcery.com>
1500 * gnu-nat.c (info_port_rights): Add qualifier const to
1503 2014-01-07 Yao Qi <yao@codesourcery.com>
1505 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
1507 2014-01-07 Yao Qi <yao@codesourcery.com>
1509 * gnu-nat.c (make_inf) Update declaration.
1510 (make_inf): Make it static.
1511 (inf_set_traced): Likewise.
1512 (inf_port_to_thread, inf_task_died_status): Likewise.
1514 2014-01-07 Yao Qi <yao@codesourcery.com>
1516 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
1518 2014-01-07 Yao Qi <yao@codesourcery.com>
1520 * gnu-nat.c (_initialize_gnu_nat): Declare.
1522 2014-01-07 Yao Qi <yao@codesourcery.com>
1524 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
1526 (struct gdbarch_info) <byte_order>: Change type to
1528 <byte_order_for_code>: Likewise.
1529 * gdbarch.c, gdbarch.h: Regenerated.
1531 2014-01-06 Sasha Smundak <asmundak@google.com>
1533 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
1535 2014-01-06 Tom Tromey <tromey@redhat.com>
1537 * doublest.c (convert_doublest_to_floatformat): Use const, not
1539 * somread.c (som_symtab_read): Likewise.
1541 2014-01-07 Hui Zhu <hui@codesourcery.com>
1543 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
1544 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
1545 (gdb_bfd_fopen): Ditto.
1546 (gdb_bfd_openr): Ditto.
1547 (gdb_bfd_openw): Ditto.
1548 (gdb_bfd_openr_iovec): Ditto.
1549 (gdb_bfd_fdopenr): Ditto.
1550 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
1551 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
1553 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
1555 * symfile-mem.c (symbol_file_add_from_memory): Removed
1556 gdb_bfd_stash_filename.
1558 2014-01-03 Doug Evans <dje@google.com>
1560 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
1563 2014-01-01 Joel Brobecker <brobecker@adacore.com>
1565 Update year range in copyright notice of all files.
1567 2014-01-01 Joel Brobecker <brobecker@adacore.com>
1569 * top.c (print_gdb_version): Set copyright year to 2014.
1571 2014-01-01 Joel Brobecker <brobecker@adacore.com>
1573 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
1575 For older changes see ChangeLog-2013.
1581 version-control: never