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