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