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