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