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