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