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