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