record-btrace: make ranges include begin and end
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2
3 * record-btrace.c (record_btrace_insn_history_range): Include
4 end.
5 (record_btrace_insn_history_from): Adjust range.
6 (record_btrace_call_history_range): Include
7 end.
8 (record_btrace_call_history_from): Adjust range.
9 * NEWS: Announce changes.
10
11 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12
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
19 all users.
20 * NEWS: Announce changes.
21
22 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
23
24 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
25
26 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
27
28 * btrace.c (ftrace_new_function): Start counting at one.
29 * record-btrace.c (record_btrace_info): Adjust number of calls
30 and insns.
31 * NEWS: Announce it.
32
33 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
34
35 * record-btrace.c (btrace_call_history_insn_range): Print
36 insn range as [begin, end].
37
38 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
39
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.
52 Update all users.
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
68 parameter to const.
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):
76 New.
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
82 stack.
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
92 info fields.
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
98 thread info fields.
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.
104
105 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
106
107 * frame.h (frame_id_build_unavailable_stack_special): New.
108 * frame.c (frame_id_build_unavailable_stack_special): New.
109
110 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
111
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
115 to gdbarch.
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.
127
128 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
129
130 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
131 Change to ...
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.
135
136 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
137
138 * common/linux-btrace.c (linux_read_btrace): Free trace from
139 previous iteration.
140
141 2014-01-15 Doug Evans <dje@google.com>
142
143 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
144 uint32_t.
145
146 2014-01-15 Tom Tromey <tromey@redhat.com>
147
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
156 name and language.
157 (set_main_name): Now static.
158 (get_main_info): Add comment.
159 * symtab.h (set_main_name): Don't declare.
160
161 2014-01-15 Tom Tromey <tromey@redhat.com>
162
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.
169
170 2014-01-15 Tom Tromey <tromey@redhat.com>
171
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.
183
184 2014-01-15 Tom Tromey <tromey@redhat.com>
185
186 * symfile.c (init_entry_point_info): Use new "initialized" field.
187 Update.
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.
192
193 2014-01-15 Tom Tromey <tromey@redhat.com>
194
195 * objfiles.c (entry_point_address_query): Relocate entry point
196 address.
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
201 section.
202
203 2014-01-15 Tom Tromey <tromey@redhat.com>
204
205 * solib-frv.c (enable_break): Use entry_point_address_query.
206
207 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
208
209 * NEWS: Add note on improved process record-replay on
210 arm*-linux* targets.
211
212 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
213
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.
228
229 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
230
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
239 decoding.
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
243 gdb_target_obs.
244
245 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
246
247 * arm-tdep.c (thumb_record_misc): Update to use sp as base
248 register for push instruction recording.
249
250 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
251
252 * arm-tdep.c (thumb_record_misc): Update to correct logical
253 error while recording ldm, ldmia and pop instructions.
254
255 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
256
257 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
258
259 2014-01-15 Pedro Alves <palves@redhat.com>
260
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
267 declarations.
268
269 2014-01-15 Tom Tromey <tromey@redhat.com>
270
271 * target.h (async_callback_ftype): New typedef.
272 (struct target_ops) <to_async>: Use it.
273
274 2014-01-15 Joel Brobecker <brobecker@adacore.com>
275
276 * python/py-value.c (get_field_type): Remove unnecessary curly
277 braces for single-statement if block.
278
279 2014-01-15 Joel Brobecker <brobecker@adacore.com>
280
281 * python/py-type.c (convert_field): Add missing empty line
282 after declarations.
283
284 2014-01-14 Doug Evans <dje@google.com>
285
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.
307
308 2014-01-14 Doug Evans <dje@google.com>
309
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
321 sym_matcher.
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.
325
326 2014-01-14 Doug Evans <dje@google.com>
327
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".
337
338 2014-01-14 Pedro Alves <palves@redhat.com>
339 Tom Tromey <tromey@redhat.com>
340
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
344 RECORD_IS_USED.
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
351 RECORD_IS_USED.
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.
361
362 2014-01-14 Yao Qi <yao@codesourcery.com>
363
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.
372
373 2014-01-14 Yao Qi <yao@codesourcery.com>
374
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
387 the declaration.
388
389 2014-01-14 Yao Qi <yao@codesourcery.com>
390
391 * target.h (target_xfer_partial_ftype): Update.
392 (struct target_ops) <to_xfer_partial>: Change 'len' type to
393 ULONGEST.
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
405 '%u'.
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
411 declaration.
412 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
413 instead of plongest.
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
431 instead of plongest.
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
436 declaration.
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.
455
456 2014-01-14 Yao Qi <yao@codesourcery.com>
457
458 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
459 target_xfer_partial_ftype.
460
461 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
462
463 PR python/15464
464 PR python/16113
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
471
472 2014-01-13 Doug Evans <dje@google.com>
473
474 PR symtab/16426
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".
478 (bfdp): New typedef.
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.
483
484 2014-01-13 Tom Tromey <tromey@redhat.com>
485
486 * gdbcore.h (deprecated_core_resize_section_table): Remove.
487
488 2014-01-13 Tom Tromey <tromey@redhat.com>
489
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.
495
496 2014-01-13 Tom Tromey <tromey@redhat.com>
497
498 * defs.h (deprecated_flush_hook): Remove.
499
500 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
501
502 PR threads/16216
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.
508
509 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
510
511 * regformats/regdat.sh: Always rewrite the register file.
512
513 2014-01-13 Pedro Alves <palves@redhat.com>
514
515 * Makefile.in (CHECK_HEADERS): New variable.
516 (check-headers:): New rule.
517
518 2014-01-13 Tom Tromey <tromey@redhat.com>
519
520 * cli/cli-setshow.c (do_set_command): Update.
521 * defs.h (deprecated_set_hook): Remove.
522 * top.c (deprecated_set_hook): Remove.
523
524 2014-01-13 Pedro Alves <palves@redhat.com>
525
526 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
527 the tracepoint if the PC is a pseudo-register.
528
529 2014-01-13 Tom Tromey <tromey@redhat.com>
530
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
541 XCALLOC.
542 * mt-tdep.c (mt_gdbarch_init): Likewise.
543 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
544 XCALLOC.
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
552 XCALLOC.
553 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
554 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
555 not XCALLOC.
556
557 2014-01-13 Tom Tromey <tromey@redhat.com>
558
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.
603
604 2014-01-13 Tom Tromey <tromey@redhat.com>
605
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.
684
685 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
686
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
691 above; simplify it.
692
693 2014-01-09 Pedro Alves <palves@redhat.com>
694 Hui Zhu <hui@codesourcery.com>
695
696 PR gdb/16101
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.
708
709 2014-01-08 Pedro Alves <palves@redhat.com>
710
711 * remote.c (remote_add_thread): Add threads silently if starting
712 up.
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
719 current thread too.
720
721 2014-01-08 Joel Brobecker <brobecker@adacore.com>
722
723 * NEWS: Create a new section for the next release branch.
724 Rename the section of the current branch, now that it has
725 been cut.
726
727 2014-01-08 Joel Brobecker <brobecker@adacore.com>
728
729 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
730 * version.in: Bump version to 7.7.50.DATE-cvs.
731
732 2014-01-08 Yao Qi <yao@codesourcery.com>
733
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 *'.
737
738 2014-01-08 Yao Qi <yao@codesourcery.com>
739
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.
742
743 2014-01-08 Pierre Muller <muller@sourceware.org>
744
745 Fix PR16201.
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.
752
753 2014-01-07 Andrew Pinski <apinski@cavium.com>
754
755 * features/aarch64-core.xml (cpsr): Change to be 64bit.
756 * features/aarch64.c: Regenerate.
757
758 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
759
760 * target.c (return_null): Define.
761 (update_current_target): Use it instead of return_zero for
762 functions that return a pointer.
763
764 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
765
766 * source.c (add_path): Fix check for duplicated paths in the previously
767 included paths.
768
769 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
770
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.
776 * ax-gdb.c: Ditto.
777 * breakpoint.c: Ditto.
778 * dbxread.c: Ditto.
779 * fork-child.c: Ditto.
780 * gdb_usleep.c: Ditto.
781 * i386-darwin-tdep.c: Ditto.
782 * i386fbsd-nat.c: Ditto.
783 * infcmd.c: Ditto.
784 * inferior.c: Ditto.
785 * jv-lang.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.
793 * nto-tdep.c: Ditto.
794 * opencl-lang.c: Ditto.
795 * osdata.c: Ditto.
796 * printcmd.c: Ditto.
797 * regcache.c: Ditto.
798 * remote-m32r-sdi.c: Ditto.
799 * remote.c: Ditto.
800 * symfile.c: Ditto.
801 * symtab.c: Ditto.
802 * tilegx-linux-nat.c: Ditto.
803 * tilegx-tdep.c: Ditto.
804 * tracepoint.c: Ditto.
805 * valops.c: Ditto.
806 * vaxbsd-nat.c: Ditto.
807 * windows-nat.c: Ditto.
808 * xtensa-tdep.c: Ditto.
809
810 2014-01-07 Yao Qi <yao@codesourcery.com>
811
812 * spu-linux-nat.c (_initialize_spu_nat): Declare.
813
814 2014-01-07 Yao Qi <yao@codesourcery.com>
815 Joel Brobecker <brobecker@adacore.com>
816
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.
821
822 2014-01-07 Joel Brobecker <brobecker@adacore.com>
823
824 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
825 tagged type objects to their actual type.
826
827 2014-01-07 Joel Brobecker <brobecker@adacore.com>
828
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
833 to val_print.
834 (print_variant_part): Add "language" parameter.
835 (ada_val_print_struct_union): Update call to print_field_values.
836
837 2014-01-07 Joel Brobecker <brobecker@adacore.com>
838
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.
844
845 2014-01-07 Joel Brobecker <brobecker@adacore.com>
846
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.
852
853 2014-01-07 Joel Brobecker <brobecker@adacore.com>
854
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".
858
859 2014-01-07 Joel Brobecker <brobecker@adacore.com>
860
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>".
865
866 2014-01-07 Joel Brobecker <brobecker@adacore.com>
867
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.
871
872 2014-01-07 Joel Brobecker <brobecker@adacore.com>
873
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
881 new functions.
882
883 2014-01-07 Joel Brobecker <brobecker@adacore.com>
884
885 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
886
887 2014-01-07 Joel Brobecker <brobecker@adacore.com>
888
889 * ada-valprint.c (ada_val_print_1): Replace calls to
890 ada_val_print_1 by calls to val_print.
891
892 2014-01-07 Joel Brobecker <brobecker@adacore.com>
893
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.
897
898 2014-01-07 Joel Brobecker <brobecker@adacore.com>
899
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.
905
906 2014-01-07 Joel Brobecker <brobecker@adacore.com>
907
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.
911
912 2014-01-07 Yao Qi <yao@codesourcery.com>
913
914 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
915 statement.
916
917 2014-01-07 Yao Qi <yao@codesourcery.com>
918
919 * gnu-nat.c (info_port_rights): Add qualifier const to
920 argument args.
921
922 2014-01-07 Yao Qi <yao@codesourcery.com>
923
924 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
925
926 2014-01-07 Yao Qi <yao@codesourcery.com>
927
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.
932
933 2014-01-07 Yao Qi <yao@codesourcery.com>
934
935 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
936
937 2014-01-07 Yao Qi <yao@codesourcery.com>
938
939 * gnu-nat.c (_initialize_gnu_nat): Declare.
940
941 2014-01-07 Yao Qi <yao@codesourcery.com>
942
943 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
944 'enum bfd_endian'.
945 (struct gdbarch_info) <byte_order>: Change type to
946 'enum bfd_endian'.
947 <byte_order_for_code>: Likewise.
948 * gdbarch.c, gdbarch.h: Regenerated.
949
950 2014-01-06 Sasha Smundak <asmundak@google.com>
951
952 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
953
954 2014-01-06 Tom Tromey <tromey@redhat.com>
955
956 * doublest.c (convert_doublest_to_floatformat): Use const, not
957 CONST.
958 * somread.c (som_symtab_read): Likewise.
959
960 2014-01-07 Hui Zhu <hui@codesourcery.com>
961
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
971 with xstrdup.
972 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
973 with xstrdup.
974 * symfile-mem.c (symbol_file_add_from_memory): Removed
975 gdb_bfd_stash_filename.
976
977 2014-01-03 Doug Evans <dje@google.com>
978
979 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
980 output.
981
982 2014-01-01 Joel Brobecker <brobecker@adacore.com>
983
984 Update year range in copyright notice of all files.
985
986 2014-01-01 Joel Brobecker <brobecker@adacore.com>
987
988 * top.c (print_gdb_version): Set copyright year to 2014.
989
990 2014-01-01 Joel Brobecker <brobecker@adacore.com>
991
992 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
993
994 For older changes see ChangeLog-2013.
995 \f
996 Local Variables:
997 mode: change-log
998 left-margin: 8
999 fill-column: 74
1000 version-control: never
1001 coding: utf-8
1002 End:
This page took 0.053964 seconds and 5 git commands to generate.