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