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