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