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