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