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