1 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3 * record-btrace.c (record_btrace_insn_history_range): Include
5 (record_btrace_insn_history_from): Adjust range.
6 (record_btrace_call_history_range): Include
8 (record_btrace_call_history_from): Adjust range.
9 * NEWS: Announce changes.
11 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13 * record.h (enum record_print_flag)
14 <record_print_indent_calls>: New.
15 * record.c (get_call_history_modifiers): Recognize /c modifier.
16 (_initialize_record): Document /c modifier.
17 * record-btrace.c (btrace_call_history): Add btinfo parameter.
18 Reorder fields. Optionally indent the function name. Update
20 * NEWS: Announce changes.
22 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
24 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
26 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
28 * btrace.c (ftrace_new_function): Start counting at one.
29 * record-btrace.c (record_btrace_info): Adjust number of calls
33 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
35 * record-btrace.c (btrace_call_history_insn_range): Print
36 insn range as [begin, end].
38 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
40 * btrace.h (struct btrace_func_link): New.
41 (enum btrace_function_flag): New.
42 (struct btrace_inst): Rename to ...
43 (struct btrace_insn): ...this. Update all users.
44 (struct btrace_func) <ibegin, iend>: Remove.
45 (struct btrace_func_link): New.
46 (struct btrace_func): Rename to ...
47 (struct btrace_function): ...this. Update all users.
48 (struct btrace_function) <segment, flow, up, insn, insn_offset)
49 (number, level, flags>: New.
50 (struct btrace_insn_iterator): Rename to ...
51 (struct btrace_insn_history): ...this.
53 (struct btrace_insn_iterator, btrace_call_iterator): New.
54 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
55 (struct btrace_target_info) <begin, end, level>
56 <insn_history, call_history>: New.
57 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
58 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
59 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
60 (btrace_call_number, btrace_call_begin, btrace_call_end)
61 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
62 (btrace_find_function_by_number, btrace_set_insn_history)
63 (btrace_set_call_history): New.
64 * btrace.c (btrace_init_insn_iterator)
65 (btrace_init_func_iterator, compute_itrace): Remove.
66 (ftrace_print_function_name, ftrace_print_filename)
67 (ftrace_skip_file): Change
69 (ftrace_init_func): Remove.
70 (ftrace_debug): Use new btrace_function fields.
71 (ftrace_function_switched): Also consider gaining and
72 losing symbol information).
73 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
74 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
75 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
77 (ftrace_new_function): Move. Remove debug print.
78 (ftrace_update_lines, ftrace_update_insns): New.
79 (ftrace_update_function): Check for call, ret, and jump.
80 (compute_ftrace): Renamed to ...
81 (btrace_compute_ftrace): ...this. Rewritten to compute call
83 (btrace_fetch, btrace_clear): Updated.
84 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
85 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
86 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
87 (btrace_call_number, btrace_call_begin, btrace_call_end)
88 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
89 (btrace_find_function_by_number, btrace_set_insn_history)
90 (btrace_set_call_history): New.
91 * record-btrace.c (require_btrace): Use new btrace thread
93 (record_btrace_info, btrace_insn_history)
94 (record_btrace_insn_history, record_btrace_insn_history_range):
95 Use new btrace thread info fields and new iterator.
96 (btrace_func_history_src_line): Rename to ...
97 (btrace_call_history_src_line): ...this. Use new btrace
99 (btrace_func_history): Rename to ...
100 (btrace_call_history): ...this. Use new btrace thread info
101 fields and new iterator.
102 (record_btrace_call_history, record_btrace_call_history_range):
103 Use new btrace thread info fields and new iterator.
105 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
107 * frame.h (frame_id_build_unavailable_stack_special): New.
108 * frame.c (frame_id_build_unavailable_stack_special): New.
110 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
112 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
113 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
114 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
116 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
117 (i386_insn_is_jump, i386_jmp_p): New.
118 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
119 insn_is_jump to gdbarch.
120 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
121 * gdbarch.h: Regenerated.
122 * gdbarch.c: Regenerated.
123 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
124 (default_insn_is_jump): New.
125 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
126 (default_insn_is_jump): New.
128 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
130 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
132 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
133 (btrace_read_type) <btrace_read_new>: Change to ...
134 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
136 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
138 * common/linux-btrace.c (linux_read_btrace): Free trace from
141 2014-01-15 Doug Evans <dje@google.com>
143 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
146 2014-01-15 Tom Tromey <tromey@redhat.com>
148 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
149 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
150 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
151 (set_objfile_main_name): New function.
152 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
153 language_of_main>: New fields.
154 (set_objfile_main_name): Declare.
155 * symtab.c (find_main_name): Loop over objfiles to find the main
157 (set_main_name): Now static.
158 (get_main_info): Add comment.
159 * symtab.h (set_main_name): Don't declare.
161 2014-01-15 Tom Tromey <tromey@redhat.com>
163 * symtab.c (main_progspace_key): New global.
164 (struct main_info): New.
165 (name_of_main, language_of_main): Remove.
166 (get_main_info, main_info_cleanup): New function.
167 (set_main_name, main_name, main_language): Use get_main_info.
168 (_initialize_symtab): Initialize main_progspace_key.
170 2014-01-15 Tom Tromey <tromey@redhat.com>
172 * dbxread.c (process_one_symbol): Update.
173 * dwarf2read.c (read_partial_die): Update.
174 * symfile.c (set_initial_language): Call main_language.
175 * symtab.c (language_of_main): Now static.
176 (set_main_name): Add 'lang' parameter.
177 (find_main_name): Update.
178 (main_language): New function.
179 (symtab_observer_executable_changed): Update.
180 * symtab.h (set_main_name): Update.
181 (language_of_main): Remove.
182 (main_language): Declare.
184 2014-01-15 Tom Tromey <tromey@redhat.com>
186 * symfile.c (init_entry_point_info): Use new "initialized" field.
188 * objfiles.h (struct entry_point) <initialized>: New field.
189 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
190 (struct objfile) <ei>: ...here. Remove.
191 * objfiles.c (entry_point_address_query): Update.
193 2014-01-15 Tom Tromey <tromey@redhat.com>
195 * objfiles.c (entry_point_address_query): Relocate entry point
197 (objfile_relocate1): Do not relocate entry point address.
198 * objfiles.h (struct entry_info) <entry_point>: Update comment.
199 <the_bfd_section_index>: New field.
200 * symfile.c (init_entry_point_info): Find the entry point's
203 2014-01-15 Tom Tromey <tromey@redhat.com>
205 * solib-frv.c (enable_break): Use entry_point_address_query.
207 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
209 * NEWS: Add note on improved process record-replay on
212 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
214 * arm-tdep.c (enum arm_record_result): New enum.
215 (arm_record_unsupported_insn): New function.
216 (arm_record_coproc_data_proc): Removed.
217 (thumb2_record_ld_st_multiple): New function.
218 (thumb2_record_ld_st_dual_ex_tbb): New function.
219 (thumb2_record_data_proc_sreg_mimm): New function.
220 (thumb2_record_ps_dest_generic): New function.
221 (thumb2_record_branch_misc_cntrl): New function.
222 (thumb2_record_str_single_data): New function.
223 (thumb2_record_ld_mem_hints): New function.
224 (thumb2_record_ld_word): New function.
225 (thumb2_record_lmul_lmla_div): New function.
226 (thumb2_record_decode_insn_handler): New function.
227 (decode_insn): Add thumb32 instruction handlers.
229 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
231 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
232 (struct arm_linux_record_tdep): Declare.
233 (arm_canonicalize_syscall): New function.
234 (arm_all_but_pc_registers_record): New function.
235 (arm_linux_syscall_record): New function.
236 (arm_linux_init_abi): Add syscall recording constructs.
237 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
238 decoding. (arm_record_coproc_data_proc): Update arm syscall
240 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
241 <arm_syscall_record>: New field.
242 * configure.tgt (arm*-*-linux*): Add linux-record.o to
245 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
247 * arm-tdep.c (thumb_record_misc): Update to use sp as base
248 register for push instruction recording.
250 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
252 * arm-tdep.c (thumb_record_misc): Update to correct logical
253 error while recording ldm, ldmia and pop instructions.
255 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
257 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
259 2014-01-15 Pedro Alves <palves@redhat.com>
261 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
262 (go32_resume, go32_fetch_registers, store_register)
263 (go32_store_registers, go32_prepare_to_store)
264 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
265 (go32_create_inferior, go32_can_run, go32_terminal_init)
266 (go32_terminal_inferior, go32_terminal_ours): Delete forward
269 2014-01-15 Tom Tromey <tromey@redhat.com>
271 * target.h (async_callback_ftype): New typedef.
272 (struct target_ops) <to_async>: Use it.
274 2014-01-15 Joel Brobecker <brobecker@adacore.com>
276 * python/py-value.c (get_field_type): Remove unnecessary curly
277 braces for single-statement if block.
279 2014-01-15 Joel Brobecker <brobecker@adacore.com>
281 * python/py-type.c (convert_field): Add missing empty line
284 2014-01-14 Doug Evans <dje@google.com>
286 * symfile.h (expand_symtabs_matching): Renamed from
287 expand_partial_symbol_names. Update prototype.
288 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
289 * symfile.c (expand_symtabs_matching): Renamed from
290 expand_partial_symbol_names. New args file_matcher, kind.
291 Rename arg fun to symbol_matcher.
292 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
293 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
294 ada_expand_partial_symbol_name.
295 (ada_make_symbol_completion_list): Update to call
296 expand_symtabs_matching.
297 (ada_add_global_exceptions): Call expand_symtabs_matching.
298 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
299 call map_symbol_filenames.
300 * symtab.c (sources_info): Update to call map_symbol_filenames.
301 (search_symbols): Call expand_symtabs_matching.
302 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
303 (default_make_symbol_completion_list_break_on): Update to call
304 expand_symtabs_matching.
305 (make_source_files_completion_list): Update to call
306 map_symbol_filenames.
308 2014-01-14 Doug Evans <dje@google.com>
310 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
311 (expand_symtabs_symbol_matcher_ftype): New typedef.
312 (quick_symbol_functions.expand_symtabs_matching): Update to use.
313 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
314 * symfile.c (expand_partial_symbol_names): Update to use
315 expand_symtabs_symbol_matcher_ftype.
316 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
317 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
318 Arg name_matcher renamed to symbol_matcher.
319 * psymtab.c (recursively_search_psymtabs): Update to use
320 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
322 (expand_symtabs_matching_via_partial): Update to use
323 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
324 Arg name_matcher renamed to symbol_matcher.
326 2014-01-14 Doug Evans <dje@google.com>
328 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
329 (map_partial_symbol_filenames): Ditto.
330 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
331 (map_partial_symbol_filenames): Ditto.
332 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
333 (map_partial_symbol_filenames): Ditto.
334 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
335 (map_partial_symbol_filenames): Ditto.
336 * symtab.c: Delete #include "psymtab.h".
338 2014-01-14 Pedro Alves <palves@redhat.com>
339 Tom Tromey <tromey@redhat.com>
341 * infrun.c (use_displaced_stepping): Use find_record_target
342 instead of RECORD_IS_USED.
343 (adjust_pc_after_break): Use record_full_is_used instead of
345 * record-btrace.c (record_btrace_open): Call record_preopen
346 instead of checking RECORD_IS_USED.
347 * record-full.c (record_full_shortname)
348 (record_full_core_shortname): New globals.
349 (record_full_is_used): New function.
350 (find_full_open): Call record_preopen instead of checking
352 (init_record_full_ops): Set the target's shortname to
353 record_full_shortname.
354 (init_record_full_core_ops): Set the target's shortname to
355 record_full_core_shortname.
356 * record-full.h (record_full_is_used): Declare.
357 * record.c (find_record_target): Make extern.
358 (record_preopen): New function.
359 * record.h (RECORD_IS_USED): Delete macro.
360 (find_record_target, record_preopen): Declare functions.
362 2014-01-14 Yao Qi <yao@codesourcery.com>
364 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
365 'len''s type to ULONGEST.
366 (core_xfer_shared_libraries_aix): Likewise.
367 * gdbarch.c, gdbarch.h: Regenerated.
368 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
369 Change type of 'len' to ULONGEST.
370 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
371 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
373 2014-01-14 Yao Qi <yao@codesourcery.com>
375 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
376 type of 'len' to ULONGEST.
377 (linux_xfer_osdata_processgroups): Likewise.
378 (linux_xfer_osdata_threads): Likewise.
379 (linux_xfer_osdata_fds): Likewise.
380 (linux_xfer_osdata_isockets): Likewise.
381 (linux_xfer_osdata_shm): Likewise.
382 (linux_xfer_osdata_sem): Likewise.
383 (linux_xfer_osdata_msg): Likewise.
384 (linux_common_xfer_osdata): Likewise.
385 (struct osdata_type) <getter>: Likewise.
386 * common/linux-osdata.h (linux_common_xfer_osdata): Update
389 2014-01-14 Yao Qi <yao@codesourcery.com>
391 * target.h (target_xfer_partial_ftype): Update.
392 (struct target_ops) <to_xfer_partial>: Change 'len' type to
394 * aix-thread.c (aix_thread_xfer_partial): Change type of
395 argument 'len' to ULONGEST.
396 * auxv.c (procfs_xfer_auxv): Likewise.
397 (ld_so_xfer_auxv): Likewise.
398 (memory_xfer_auxv): Likewise.
399 * bfd-target.c (target_bfd_xfer_partial): Likewise.
400 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
401 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
402 * corelow.c (core_xfer_partial): Likewise.
403 * ctf.c (ctf_xfer_partial): Likewise.
404 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
406 (darwin_read_dyld_info): Likewise.
407 (darwin_xfer_partial): Likewise.
408 * exec.c (section_table_xfer_memory_partial): Likewise.
409 (exec_xfer_partial): Likewise.
410 * exec.h (section_table_xfer_memory_partial): Update
412 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
414 (gnu_xfer_partial): Likewise.
415 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
416 (ia64_hpux_xfer_solib_got): Likewise.
417 (ia64_hpux_xfer_partial): Likewise.
418 * ia64-linux-nat.c (ia64_linux_xfer_partial):
419 * inf-ptrace.c (inf_ptrace_xfer_partial):
420 * inf-ttrace.c (inf_ttrace_xfer_partial):
421 * linux-nat.c (linux_xfer_siginfo): Likewise.
422 (linux_nat_xfer_partial): Likewise.
423 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
424 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
425 * monitor.c (monitor_xfer_memory): Likewise.
426 (monitor_xfer_partial): Likewise.
427 * procfs.c (procfs_xfer_partial): Likewise.
428 * record-full.c (record_full_xfer_partial): Likewise.
429 (record_full_core_xfer_partial): Likewise.
430 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
432 (gdbsim_xfer_partial): Likewise.
433 * remote.c (remote_xfer_partial): Likewise.
434 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
435 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
437 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
438 (rs6000_xfer_shared_libraries): Likewise.
439 * sol-thread.c (sol_thread_xfer_partial): Likewise.
440 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
441 (sparc_xfer_partial): Likewise.
442 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
443 (spu_xfer_partial): Likewise.
444 * spu-multiarch.c (spu_xfer_partial): Likewise.
445 * target.c (target_read_live_memory): Likewise.
446 (memory_xfer_live_readonly_partial): Likewise.
447 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
448 (target_xfer_partial, default_xfer_partial): Likewise.
449 (current_xfer_partial): Likewise.
450 * tracepoint.c (tfile_xfer_partial): Likewise.
451 * windows-nat.c (windows_xfer_memory): Likewise. Call
452 pulongest instead of plongest.
453 (windows_xfer_partial): Likewise.
454 (windows_xfer_shared_libraries): Likewise.
456 2014-01-14 Yao Qi <yao@codesourcery.com>
458 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
459 target_xfer_partial_ftype.
461 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
465 * valops.c (value_struct_elt_bitpos): New function
466 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
467 object to 'None' if the field name is an empty string ("").
468 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
469 attribute to look for a field when 'name' is 'None'.
470 (get_field_type): New function
472 2014-01-13 Doug Evans <dje@google.com>
475 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
476 (try_open_dwop_file): Ditto.
477 * gdb_bfd.c: #include "vec.h".
479 (struct gdb_bfd_data): New member included_bfds.
480 (gdb_bfd_unref): Unref all included bfds.
481 (gdb_bfd_record_inclusion): New function.
482 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
484 2014-01-13 Tom Tromey <tromey@redhat.com>
486 * gdbcore.h (deprecated_core_resize_section_table): Remove.
488 2014-01-13 Tom Tromey <tromey@redhat.com>
490 * defs.h (use_windows): Remove.
491 * gdb.c (main): Update.
492 * main.c (captured_main, gdb_main): Update.
493 * main.h (struct captured_main_args) <use_windows>: Remove.
494 * top.c (use_windows): Remove.
496 2014-01-13 Tom Tromey <tromey@redhat.com>
498 * defs.h (deprecated_flush_hook): Remove.
500 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
503 * linux-thread-db.c (try_thread_db_load): Add parameter
504 check_auto_load_safe. Move here the file_is_auto_load_safe call.
505 (try_thread_db_load_from_pdir_1): Move it there from here.
506 (try_thread_db_load_from_sdir): Update caller.
507 (try_thread_db_load_from_dir): Move it there from here.
509 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
511 * regformats/regdat.sh: Always rewrite the register file.
513 2014-01-13 Pedro Alves <palves@redhat.com>
515 * Makefile.in (CHECK_HEADERS): New variable.
516 (check-headers:): New rule.
518 2014-01-13 Tom Tromey <tromey@redhat.com>
520 * cli/cli-setshow.c (do_set_command): Update.
521 * defs.h (deprecated_set_hook): Remove.
522 * top.c (deprecated_set_hook): Remove.
524 2014-01-13 Pedro Alves <palves@redhat.com>
526 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
527 the tracepoint if the PC is a pseudo-register.
529 2014-01-13 Tom Tromey <tromey@redhat.com>
531 * defs.h (XCALLOC): Remove.
532 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
533 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
534 * dwarf2loc.c (allocate_piece_closure): Likewise.
535 * elfread.c (elf_symfile_segments): Likewise.
536 (elf_symfile_segments): Likewise.
537 * gdbtypes.c (copy_type_recursive): Likewise.
538 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
539 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
540 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
542 * mt-tdep.c (mt_gdbarch_init): Likewise.
543 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
545 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
546 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
547 * registry.c (registry_alloc_data): Likewise.
548 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
549 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
550 * serial.c (serial_fdopen_ops): Likewise.
551 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
553 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
554 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
557 2014-01-13 Tom Tromey <tromey@redhat.com>
559 * defs.h (XMALLOC): Remove.
560 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
561 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
562 * cli-out.c (struct ui_out *): Likewise.
563 * cli/cli-dump.c (add_dump_command): Likewise.
564 (add_dump_command): Likewise.
565 * complaints.c (get_complaints): Likewise.
566 (find_complaint): Likewise.
567 * dwarf2-frame.c (execute_cfa_program): Likewise.
568 * dwarf2read.c (abbrev_table_read_table): Likewise.
569 * gdbarch.sh: Likewise.
570 * gdbarch.c: Rebuild.
571 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
572 * interps.c (interp_new): Likewise.
573 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
574 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
575 * mi/mi-console.c (mi_console_file_new): Likewise.
576 * mi/mi-interp.c (mi_interpreter_init): Likewise.
577 * mi/mi-out.c (mi_out_new): Likewise.
578 * mi/mi-parse.c (mi_parse): Likewise.
579 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
580 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
581 * observer.c (xalloc_observer_list_node): Likewise.
582 * regcache.c (regcache_xmalloc_1): Likewise.
583 * reggroups.c (reggroup_new): Likewise.
584 (_initialize_reggroup): Likewise.
585 * registry.c (register_data_with_cleanup): Likewise.
586 * remote.c (remote_notif_stop_alloc_reply): Likewise.
587 * ser-base.c (serial_ttystate): Likewise.
588 * ser-mingw.c (make_pipe_state): Likewise.
589 * ser-pipe.c (pipe_open): Likewise.
590 * serial.c (serial_open): Likewise.
591 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
592 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
593 (tui_alloc_win_info): Likewise.
594 (tui_add_content_elements): Likewise.
595 * tui/tui-file.c (tui_file_new): Likewise.
596 * tui/tui-out.c (tui_out_new): Likewise.
597 * ui-file.c (mem_file_new): Likewise.
598 * ui-out.c (push_level): Likewise.
599 (make_cleanup_ui_out_end): Likewise.
600 (append_header_to_list): Likewise.
601 (ui_out_new): Likewise.
602 * user-regs.c (user_reg_add_builtin): Likewise.
604 2014-01-13 Tom Tromey <tromey@redhat.com>
606 * defs.h (XZALLOC): Remove.
607 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
608 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
609 (get_ada_tasks_inferior_data): Likewise.
610 * auto-load.c (get_auto_load_pspace_data): Likewise.
611 * auxv.c (get_auxv_inferior_data): Likewise.
612 * bfd-target.c (target_bfd_reopen): Likewise.
613 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
614 (deprecated_insert_raw_breakpoint): Likewise.
615 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
616 * corelow.c (core_open): Likewise.
617 * darwin-nat.c (darwin_check_new_threads): Likewise.
618 (darwin_attach_pid): Likewise.
619 * dummy-frame.c (dummy_frame_push): Likewise.
620 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
621 * dwarf2loc.c (allocate_piece_closure): Likewise.
622 * elfread.c (elf_symfile_segments): Likewise.
623 * eval.c (ptrmath_type_p): Likewise.
624 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
625 * gdbtypes.c (alloc_type_arch): Likewise.
626 (alloc_type_instance): Likewise.
627 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
628 * inf-child.c (inf_child_can_use_agent): Likewise.
629 * inflow.c (get_inflow_inferior_data): Likewise.
630 * infrun.c (save_infcall_suspend_state): Likewise.
631 * jit.c (jit_reader_load): Likewise.
632 (get_jit_objfile_data): Likewise.
633 (get_jit_program_space_data): Likewise.
634 (jit_object_open_impl): Likewise.
635 (jit_symtab_open_impl): Likewise.
636 (jit_block_open_impl): Likewise.
637 (jit_frame_sniffer): Likewise.
638 * linux-fork.c (add_fork): Likewise.
639 * maint.c (make_command_stats_cleanup): Likewise.
640 * objfiles.c (get_objfile_pspace_data): Likewise.
641 * opencl-lang.c (struct lval_closure): Likewise.
642 * osdata.c (osdata_start_osdata): Likewise.
643 * progspace.c (new_address_space): Likewise.
644 (add_program_space): Likewise.
645 * remote-sim.c (get_sim_inferior_data): Likewise.
646 * sh-tdep.c (sh_gdbarch_init): Likewise.
647 * skip.c (Ignore): Likewise.
648 (skip_delete_command): Likewise.
649 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
650 (library_list_start_library): Likewise.
651 (solib_aix_current_sos): Likewise.
652 * solib-darwin.c (get_darwin_info): Likewise.
653 (darwin_current_sos): Likewise.
654 * solib-dsbt.c (get_dsbt_info): Likewise.
655 * solib-ia64-hpux.c (new_so_list): Likewise.
656 (ia64_hpux_get_solib_linkage_addr): Likewise.
657 * solib-spu.c (append_ocl_sos): Likewise.
658 (spu_current_sos): Likewise.
659 * solib-svr4.c (get_svr4_info): Likewise.
660 (svr4_keep_data_in_core): Likewise.
661 (library_list_start_library): Likewise.
662 (svr4_default_sos): Likewise.
663 (svr4_read_so_list): Likewise.
664 * solib-target.c (library_list_start_library): Likewise.
665 (solib_target_current_sos): Likewise.
666 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
667 * symfile-debug.c (install_symfile_debug_logging): Likewise.
668 * symfile.c (default_symfile_segments): Likewise.
669 * target-descriptions.c (tdesc_data_init): Likewise.
670 (tdesc_create_reg): Likewise.
671 (struct tdesc_type *): Likewise.
672 (tdesc_create_vector): Likewise.
673 (tdesc_set_struct_size): Likewise.
674 (struct tdesc_type *): Likewise.
675 (tdesc_free_feature): Likewise.
676 (tdesc_create_feature): Likewise.
677 * windows-nat.c (windows_add_thread): Likewise.
678 (windows_make_so): Likewise.
679 * xml-support.c (gdb_xml_body_text): Likewise.
680 (gdb_xml_create_parser_and_cleanup): Likewise.
681 (xml_process_xincludes): Likewise.
682 * xml-syscall.c (allocate_syscalls_info): Likewise.
683 (syscall_create_syscall_desc): Likewise.
685 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
687 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
688 function, with code from i386_stap_parse_special_token.
689 (i386_stap_parse_special_token_three_arg_disp): Likewise.
690 (i386_stap_parse_special_token): Move code to the two functions
693 2014-01-09 Pedro Alves <palves@redhat.com>
694 Hui Zhu <hui@codesourcery.com>
697 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
698 bp_err_string. Don't mark the location shlib_disabled if the
699 error thrown wasn't a generic or memory error. Catch errors
700 thrown while inserting breakpoints in overlayed code. Output
701 error message of software breakpoints.
702 * remote.c (remote_insert_breakpoint): If this breakpoint has
703 target-side commands but this stub doesn't support Z0 packets,
704 throw NOT_SUPPORTED_ERROR error.
705 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
706 * target.h (target_insert_breakpoint): Extend comment.
707 (target_insert_hw_breakpoint): Add comment.
709 2014-01-08 Pedro Alves <palves@redhat.com>
711 * remote.c (remote_add_thread): Add threads silently if starting
713 (remote_notice_new_inferior): If in all-stop, and starting up,
714 don't call notice_new_inferior.
715 (get_current_thread): New function, factored out from ...
716 (add_current_inferior_and_thread): ... this. Adjust.
717 (remote_start_remote) <all-stop>: Fetch the thread list. If we
718 found any thread, then select the remote's current thread as GDB's
721 2014-01-08 Joel Brobecker <brobecker@adacore.com>
723 * NEWS: Create a new section for the next release branch.
724 Rename the section of the current branch, now that it has
727 2014-01-08 Joel Brobecker <brobecker@adacore.com>
729 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
730 * version.in: Bump version to 7.7.50.DATE-cvs.
732 2014-01-08 Yao Qi <yao@codesourcery.com>
734 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
735 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
736 (spu_xfer_partial): Cast 'buf' to 'const char *'.
738 2014-01-08 Yao Qi <yao@codesourcery.com>
740 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
741 return value of bfd_get_filename to symbol_file_add_from_bfd.
743 2014-01-08 Pierre Muller <muller@sourceware.org>
746 * coff-pe-read.c (struct read_pe_section_data): Add index field.
747 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
748 to prim_record_mininal_symbol_and_info.
749 (add_pe_forwarded_sym): Use known section number of forwarded symbol
750 in call to prim_record_minimal_symbol_and_info.
751 (read_pe_exported_syms): Set index field of section_data.
753 2014-01-07 Andrew Pinski <apinski@cavium.com>
755 * features/aarch64-core.xml (cpsr): Change to be 64bit.
756 * features/aarch64.c: Regenerate.
758 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
760 * target.c (return_null): Define.
761 (update_current_target): Use it instead of return_zero for
762 functions that return a pointer.
764 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
766 * source.c (add_path): Fix check for duplicated paths in the previously
769 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
771 * ada-lang.c: Remove duplicated include statements.
772 * alphabsd-nat.c: Ditto.
773 * amd64-darwin-tdep.c: Ditto.
774 * amd64fbsd-nat.c: Ditto.
775 * auto-load.c: Ditto.
777 * breakpoint.c: Ditto.
779 * fork-child.c: Ditto.
780 * gdb_usleep.c: Ditto.
781 * i386-darwin-tdep.c: Ditto.
782 * i386fbsd-nat.c: Ditto.
786 * linux-nat.c: Ditto.
787 * linux-tdep.c: Ditto.
788 * m68kbsd-nat.c: Ditto.
789 * m68klinux-nat.c: Ditto.
790 * microblaze-tdep.c: Ditto.
791 * mips-linux-tdep.c: Ditto.
792 * mn10300-tdep.c: Ditto.
794 * opencl-lang.c: Ditto.
798 * remote-m32r-sdi.c: Ditto.
802 * tilegx-linux-nat.c: Ditto.
803 * tilegx-tdep.c: Ditto.
804 * tracepoint.c: Ditto.
806 * vaxbsd-nat.c: Ditto.
807 * windows-nat.c: Ditto.
808 * xtensa-tdep.c: Ditto.
810 2014-01-07 Yao Qi <yao@codesourcery.com>
812 * spu-linux-nat.c (_initialize_spu_nat): Declare.
814 2014-01-07 Yao Qi <yao@codesourcery.com>
815 Joel Brobecker <brobecker@adacore.com>
817 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
818 (pdc_write_regs): Likewise.
819 (fetch_regs_kernel_thread): Likewise.
820 (store_regs_kernel_thread): Likewise.
822 2014-01-07 Joel Brobecker <brobecker@adacore.com>
824 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
825 tagged type objects to their actual type.
827 2014-01-07 Joel Brobecker <brobecker@adacore.com>
829 * ada-valprint.c (print_field_values): Add "language" parameter.
830 Update calls to print_field_values and print_variant_part.
831 Pass new parameter "language" in call to val_print instead
832 of "current_language". Replace call to ada_val_print by call
834 (print_variant_part): Add "language" parameter.
835 (ada_val_print_struct_union): Update call to print_field_values.
837 2014-01-07 Joel Brobecker <brobecker@adacore.com>
839 * ada-valprint.c (ui_memcpy): Delete.
840 (ada_print_floating): Update documentation. Add empty line
841 between between function documentation and implementation.
842 Delete variable "buffer". Use ui_file_xstrdup in place of
843 ui_file_put. Minor adjustments following this change.
845 2014-01-07 Joel Brobecker <brobecker@adacore.com>
847 * ada-valprint.c (ada_val_print_string): New function,
848 extracted from ada_val_print_array.
849 (ada_val_print_array): Replace extracted code by call
850 to ada_val_print_string followed by a return. Move
851 "else" branch to the function's top block.
853 2014-01-07 Joel Brobecker <brobecker@adacore.com>
855 * ada-valprint.c (ada_val_print_array): Move implementation
856 down. Rename parameter "offset" and "val" into "offset_aligned"
857 and "original_value" respectively. Add parameter "offset".
859 2014-01-07 Joel Brobecker <brobecker@adacore.com>
861 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
862 re-organizing the code. Change the "???" message printed
863 when target type is a TYPE_CODE_UNDEF into
864 "<ref to undefined type>".
866 2014-01-07 Joel Brobecker <brobecker@adacore.com>
868 * ada-valprint.c (print_record): Delete, implementation inlined...
869 (ada_val_print_struct_union): ... here. Remove call to
870 ada_check_typedef in inlined implementation.
872 2014-01-07 Joel Brobecker <brobecker@adacore.com>
874 * ada-valprint.c (ada_val_print_gnat_array): New function,
875 extracted from ada_val_print_1;
876 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
877 (ada_val_print_flt, ada_val_print_struct_union)
878 (ada_val_print_ref): Likewise.
879 (ada_val_print_1): Delete variables i and elttype.
880 Replace extracted-out code by call to corresponding
883 2014-01-07 Joel Brobecker <brobecker@adacore.com>
885 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
887 2014-01-07 Joel Brobecker <brobecker@adacore.com>
889 * ada-valprint.c (ada_val_print_1): Replace calls to
890 ada_val_print_1 by calls to val_print.
892 2014-01-07 Joel Brobecker <brobecker@adacore.com>
894 * ada-valprint.c (ada_val_print_1): Add parameter "language".
895 Update calls to self accordingly. Replace calls to c_val_print
896 by calls to val_print.
898 2014-01-07 Joel Brobecker <brobecker@adacore.com>
900 * ada-valprint.c (print_record): Delete declaration.
901 (adjust_type_signedness, ada_val_print_1): Likewise.
902 (ada_val_print): Move function implementation down.
903 (print_variant_part, print_field_values, print_record):
904 Move function implementation up.
906 2014-01-07 Joel Brobecker <brobecker@adacore.com>
908 * python/py-type.c (typy_get_name): New function.
909 (type_object_getset): Add entry for attribute "name".
910 * NEWS: Add entry mentioning this new attribute.
912 2014-01-07 Yao Qi <yao@codesourcery.com>
914 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
917 2014-01-07 Yao Qi <yao@codesourcery.com>
919 * gnu-nat.c (info_port_rights): Add qualifier const to
922 2014-01-07 Yao Qi <yao@codesourcery.com>
924 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
926 2014-01-07 Yao Qi <yao@codesourcery.com>
928 * gnu-nat.c (make_inf) Update declaration.
929 (make_inf): Make it static.
930 (inf_set_traced): Likewise.
931 (inf_port_to_thread, inf_task_died_status): Likewise.
933 2014-01-07 Yao Qi <yao@codesourcery.com>
935 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
937 2014-01-07 Yao Qi <yao@codesourcery.com>
939 * gnu-nat.c (_initialize_gnu_nat): Declare.
941 2014-01-07 Yao Qi <yao@codesourcery.com>
943 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
945 (struct gdbarch_info) <byte_order>: Change type to
947 <byte_order_for_code>: Likewise.
948 * gdbarch.c, gdbarch.h: Regenerated.
950 2014-01-06 Sasha Smundak <asmundak@google.com>
952 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
954 2014-01-06 Tom Tromey <tromey@redhat.com>
956 * doublest.c (convert_doublest_to_floatformat): Use const, not
958 * somread.c (som_symtab_read): Likewise.
960 2014-01-07 Hui Zhu <hui@codesourcery.com>
962 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
963 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
964 (gdb_bfd_fopen): Ditto.
965 (gdb_bfd_openr): Ditto.
966 (gdb_bfd_openw): Ditto.
967 (gdb_bfd_openr_iovec): Ditto.
968 (gdb_bfd_fdopenr): Ditto.
969 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
970 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
972 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
974 * symfile-mem.c (symbol_file_add_from_memory): Removed
975 gdb_bfd_stash_filename.
977 2014-01-03 Doug Evans <dje@google.com>
979 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
982 2014-01-01 Joel Brobecker <brobecker@adacore.com>
984 Update year range in copyright notice of all files.
986 2014-01-01 Joel Brobecker <brobecker@adacore.com>
988 * top.c (print_gdb_version): Set copyright year to 2014.
990 2014-01-01 Joel Brobecker <brobecker@adacore.com>
992 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
994 For older changes see ChangeLog-2013.
1000 version-control: never