cleanup: remove declared variables without any references
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
2
3 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
4 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
5 * h8300-tdep.c (setmachinelist): Remove global.
6 * hppa-tdep.c (hppa_sigtramp): Remove global.
7 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
8 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9 * ravenscar-thread.c (update_target_observer): Remove global.
10 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11
12 2014-02-12 Tom Tromey <tromey@redhat.com>
13
14 * common/rsp-low.c: Update comments.
15 * common/rsp-low.h: Update comments.
16
17 2014-02-12 Tom Tromey <tromey@redhat.com>
18
19 * common/rsp-low.c (convert_ascii_to_int): Remove.
20 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
21
22 2014-02-12 Tom Tromey <tromey@redhat.com>
23
24 * common/rsp-low.h (unhexify): Don't declare.
25 * common/rsp-low.c (unhexify): Remove.
26
27 2014-02-12 Tom Tromey <tromey@redhat.com>
28
29 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
30 * common/rsp-low.c (convert_int_to_ascii): Remove.
31
32 2014-02-12 Tom Tromey <tromey@redhat.com>
33
34 * common/rsp-low.h (hexify): Don't declare.
35 * common/rsp-low.c (hexify): Remove.
36
37 2014-02-12 Tom Tromey <tromey@redhat.com>
38
39 * common/rsp-low.c (hexify): Never take strlen of argument.
40
41 2014-02-12 Tom Tromey <tromey@redhat.com>
42
43 * common/rsp-low.c (bin2hex): Never take strlen of argument.
44 * remote.c (extended_remote_run, remote_rcmd)
45 (remote_download_trace_state_variable, remote_save_trace_data)
46 (remote_set_trace_notes): Update.
47 * tracepoint.c (encode_source_string, tfile_write_status)
48 (tfile_write_uploaded_tsv): Update.
49
50 2014-02-12 Tom Tromey <tromey@redhat.com>
51
52 * tracepoint.c: Include rsp-low.h.
53 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
54 * remote.c: Include rsp-low.h.
55 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
56 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
57 (remote_unescape_input): Move to common/rsp-low.c.
58 * common/rsp-low.h: New file.
59 * common/rsp-low.c: New file.
60 * Makefile.in (SFILES): Add common/rsp-low.c.
61 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
62 (COMMON_OBS): Add rsp-low.o.
63 (rsp-low.o): New target.
64
65 2014-02-12 Tom Tromey <tromey@redhat.com>
66
67 * utils.h: Include print-utils.h.
68 (host_address_to_string, plongest, pulongest, phex, phex_nz)
69 (int_string, core_addr_to_string, core_addr_to_string_nz)
70 (hex_string, hex_string_custom): Don't declare.
71 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
72 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
73 (hex_string_custom, int_string, core_addr_to_string)
74 (core_addr_to_string_nz, host_address_to_string): Move to
75 common/print-utils.c.
76 * common/print-utils.h: New file.
77 * common/print-utils.c: New file
78 * Makefile.in (SFILES): Add common/print-utils.c.
79 (HFILES_NO_SRCDIR): Add common/print-utils.h.
80 (COMMON_OBS): Add print-utils.o.
81 (print-utils.o): New target.
82
83 2014-02-12 Tom Tromey <tromey@redhat.com>
84
85 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
86
87 2014-02-12 Mark Kettenis <kettenis@gnu.org>
88
89 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
90
91 2014-02-12 Mark Kettenis <kettenis@gnu.org>
92
93 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
94 if a PT_IO ptrace request returns sucessfully but indicates that 0
95 bytes were transferred.
96
97 2014-02-12 Pedro Alves <palves@redhat.com>
98 Kevin Buettner <kevinb@redhat.com>
99
100 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
101 TYPE_INSTANCE_FLAG_CODE_SPACE.
102
103 2014-02-12 Pedro Alves <palves@redhat.com>
104
105 * h8300-tdep.c (pseudo_from_raw_register)
106 (raw_from_pseudo_register): New functions.
107 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
108 them.
109
110 2014-02-12 Pedro Alves <palves@redhat.com>
111
112 * h8300-tdep.c (h8300_register_sim_regno): New function.
113 (h8300_gdbarch_init): Install h8300_register_sim_regno as
114 gdbarch_register_sim_regno hook.
115
116 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
117
118 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
119
120 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
121
122 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
123
124 2014-02-12 Mark Kettenis <kettenis@gnu.org>
125
126 * obsd-tdep.h (obsd_init_abi): New prototype.
127 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
128 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
129 (obsd_init_abi): New functions.
130 * i386obsd-tdep.c: Include "obsd-tdep.h".
131 (i386obsd_init_abi): Call obsd_init_abi.
132 * amd64obsd-tdep.c: Include "obsd-tdep.h".
133 (amd64obsd_init_abi): Call obsd_init_abi.
134 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
135 obsd-tdep.c to gdb_target_obs.
136
137 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
138
139 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
140 double float arguments to 16-byte in the argument slots.
141
142 2014-02-11 Doug Evans <xdje42@gmail.com>
143
144 * configure.ac: Don't crash if pkg-config is not found and guile
145 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
146 in guile checks.
147 * configure: Regenerate.
148
149 2014-02-11 Yao Qi <yao@codesourcery.com>
150
151 * aix-thread.c (aix_thread_xfer_partial): Update comments.
152 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
153 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
154 * gnu-nat.c (gnu_xfer_memory): Likewise.
155 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
156 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
157 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
158 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
159
160 2014-02-11 Yao Qi <yao@codesourcery.com>
161
162 * target.h (enum target_xfer_error): Rename to ...
163 (enum target_xfer_status): ... it. New. All users updated.
164 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
165 New.
166 (TARGET_XFER_STATUS_ERROR_P): New macro.
167 (target_xfer_error_to_string): Remove declaration.
168 (target_xfer_status_to_string): Declare.
169 (target_xfer_partial_ftype): Adjust it.
170 (struct target_ops) <to_xfer_partial>: Return
171 target_xfer_status. Add argument xfered_len. Update
172 comments.
173 * target.c (target_xfer_error_to_string): Rename to ...
174 (target_xfer_status_to_string): ... it. New. All callers
175 updated.
176 (target_read_live_memory): Likewise. Call target_xfer_partial
177 instead of target_read.
178 (memory_xfer_live_readonly_partial): Return
179 target_xfer_status. Add argument xfered_len.
180 (raw_memory_xfer_partial): Likewise.
181 (memory_xfer_partial_1): Likewise.
182 (memory_xfer_partial): Likewise.
183 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
184 properly. Update debug message.
185 (default_xfer_partial, current_xfer_partial): Likewise.
186 (target_write_partial): Likewise.
187 (target_read_partial): Likewise. All callers updated.
188 (read_whatever_is_readable): Likewise.
189 (target_write_with_progress): Likewise.
190 (target_read_alloc_1): Likewise.
191
192 * aix-thread.c (aix_thread_xfer_partial): Likewise.
193 * auxv.c (procfs_xfer_auxv): Likewise.
194 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
195 * bfd-target.c (target_bfd_xfer_partial): Likewise.
196 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
197 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
198 * corefile.c (read_memory): Adjust.
199 * corelow.c (core_xfer_partial): Likewise.
200 * ctf.c (ctf_xfer_partial): Likewise.
201 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
202 updated.
203 (darwin_xfer_partial): Likewise.
204 * exec.c (section_table_xfer_memory_partial): Likewise. All
205 callers updated.
206 (exec_xfer_partial): Likewise.
207 * exec.h (section_table_xfer_memory_partial): Update
208 declaration.
209 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
210 negative.
211 (gnu_xfer_partial): Likewise.
212 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
213 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
214 (ia64_hpux_xfer_solib_got): Likewise.
215 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
216 type of 'partial_len' to ULONGEST.
217 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
218 * linux-nat.c (linux_xfer_siginfo ): Likewise.
219 (linux_nat_xfer_partial): Likewise.
220 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
221 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
222 * monitor.c (monitor_xfer_memory): Likewise.
223 (monitor_xfer_partial): Likewise.
224 * procfs.c (procfs_xfer_partial): Likewise.
225 * record-btrace.c (record_btrace_xfer_partial): Likewise.
226 * record-full.c (record_full_xfer_partial): Likewise.
227 (record_full_core_xfer_partial): Likewise.
228 * remote-sim.c (gdbsim_xfer_memory): Likewise.
229 (gdbsim_xfer_partial): Likewise.
230 * remote.c (remote_write_bytes_aux): Likewise. All callers
231 updated.
232 (remote_write_bytes, remote_read_bytes): Likewise. All
233 callers updated.
234 (remote_flash_erase): Likewise. All callers updated.
235 (remote_write_qxfer): Likewise. All callers updated.
236 (remote_read_qxfer): Likewise. All callers updated.
237 (remote_xfer_partial): Likewise.
238 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
239 (rs6000_xfer_shared_libraries): Likewise.
240 * sol-thread.c (sol_thread_xfer_partial): Likewise.
241 (sol_thread_xfer_partial): Likewise.
242 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
243 (sparc_xfer_partial): Likewise.
244 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
245 updated.
246 (spu_xfer_partial): Likewise.
247 * spu-multiarch.c (spu_xfer_partial): Likewise.
248 * tracepoint.c (tfile_xfer_partial): Likewise.
249 * windows-nat.c (windows_xfer_memory): Likewise.
250 (windows_xfer_shared_libraries): Likewise.
251 (windows_xfer_partial): Likewise.
252 * valprint.c: Replace 'target_xfer_error' with
253 'target_xfer_status' in comments.
254
255 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
256
257 Checked in by Joel Brobecker <brobecker@adacore.com>.
258 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
259
260 2014-02-11 Joel Brobecker <brobecker@adacore.com>
261
262 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
263 function parameters.
264
265 2014-02-10 Will Newton <will.newton@linaro.org>
266
267 * elfread.c (elf_rel_plt_read): Look for a .got section if
268 looking up .got.plt fails.
269 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
270 on address passed to elf_gnu_ifunc_record_cache.
271 (elf_gnu_ifunc_resolve_addr): Likewise.
272 (elf_gnu_ifunc_resolver_return_stop): Likewise.
273
274 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
275
276 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
277 (X_RETTURN): New macro.
278 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
279
280 * sparc64-tdep.c (sparc64_init_abi): Hook
281 sparc_in_function_epilogue_p.
282
283 2014-02-10 Gary Benson <gbenson@redhat.com>
284
285 * symfile-debug.c (debug_qf_expand_symtabs_matching):
286 Rename name_matcher to symbol_matcher.
287
288 2014-02-10 Gary Benson <gbenson@redhat.com>
289
290 * symfile-debug.c (debug_qf_expand_symtabs_matching):
291 Use expand_symtabs_file_matcher_ftype and
292 expand_symtabs_symbol_matcher_ftype.
293
294 2014-02-10 Joel Brobecker <brobecker@adacore.com>
295
296 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
297 (struct ada_symbol_cache): New.
298 (ada_free_symbol_cache): Forward declare.
299 (struct ada_pspace_data): New.
300 (ada_pspace_data_handle): New static global.
301 (get_ada_pspace_data, ada_pspace_data_cleanup)
302 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
303 (cache_space, cache): Delete, now folded inside struct
304 ada_pspace_data.
305 (ada_get_symbol_cache): New function.
306 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
307 implementation.
308 (_initialize_ada_language): Remove initialization of cache_space.
309 Move call to observer_attach_inferior_exit up, grouping it
310 with the other observer registrations inside this function.
311 Rename command to be more general. Add call to
312 register_program_space_data_with_cleanup.
313
314 2014-02-10 Joel Brobecker <brobecker@adacore.com>
315
316 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
317 ada_new_objfile_observer.
318 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
319 (_initialize_tasks): Update uses of ada_new_objfile_observer
320 and ada_tasks_normal_stop_observer.
321
322 2014-02-10 Joel Brobecker <brobecker@adacore.com>
323
324 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
325 returned by the 'Length attribute to integer.
326
327 2014-02-10 Joel Brobecker <brobecker@adacore.com>
328
329 * ada-lang.c (_initialize_ada_language): Initialize
330 cache_space obstack.
331
332 2014-02-10 Joel Brobecker <brobecker@adacore.com>
333
334 * ada-lang.c (HASH_SIZE): New macro.
335 (struct cache_entry): New type.
336 (cache_space, cache): New static globals.
337 (ada_clear_symbol_cache, find_entry): New functions.
338 (lookup_cached_symbol, cache_symbol): Implement.
339 (ada_new_objfile_observer, ada_free_objfile_observer): New.
340 (_initialize_ada_language): Attach ada_new_objfile_observer
341 and ada_free_objfile_observer.
342
343 2014-02-10 Joel Brobecker <brobecker@adacore.com>
344
345 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
346 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
347 struct block * parameter.
348 (ada_lookup_symbol_list_worker): Constify local variable "block".
349 Remove cast which is no longer necessary.
350
351 2014-02-10 Doug Evans <xdje42@gmail.com>
352
353 Add Guile as an extension language.
354 * NEWS: Mention Guile scripting.
355 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
356 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
357 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
358 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
359 (CLIBS): Add GUILE_LIBS.
360 (install-guile): New rule.
361 (guile.o): New rule.
362 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
363 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
364 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
365 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
366 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
367 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
368 (scm-type.o, scm-utils.o, scm-value.o): New rules.
369 * configure.ac: New option --with-guile.
370 * configure: Regenerate.
371 * config.in: Regenerate.
372 * auto-load.c: Remove #include "python/python.h". Add #include
373 "gdb/section-scripts.h".
374 (source_section_scripts): Handle Guile scripts.
375 (_initialize_auto_load): Add name of Guile objfile script to
376 scripts-directory help text.
377 * breakpoint.c (condition_command): Tweak comment to include Scheme.
378 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
379 (struct breakpoint): New member scm_bp_object.
380 * defs.h (enum command_control_type): New value guile_control.
381 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
382 "extension.h".
383 (show_user): Update comment.
384 (_initialize_cli_cmds): Update help text for "show user". Update help
385 text for max-user-call-depth.
386 * cli/cli-script.c: Remove #include "python/python.h". Add #include
387 "extension.h".
388 (multi_line_command_p): Add guile_control.
389 (print_command_lines): Handle guile_control.
390 (execute_control_command, recurse_read_control_structure): Ditto.
391 (process_next_line): Recognize "guile" commands.
392 * disasm.c (gdb_disassemble_info): Make non-static.
393 * disasm.h: #include "dis-asm.h".
394 (struct gdbarch): Add forward decl.
395 (gdb_disassemble_info): Declare.
396 * extension.c: #include "guile/guile.h".
397 (extension_languages): Add guile.
398 (get_ext_lang_defn): Handle EXT_LANG_GDB.
399 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
400 * gdbtypes.c (get_unsigned_type_max): New function.
401 (get_signed_type_minmax): New function.
402 * gdbtypes.h (get_unsigned_type_max): Declare.
403 (get_signed_type_minmax): Declare.
404 * guile/README: New file.
405 * guile/guile-internal.h: New file.
406 * guile/guile.c: New file.
407 * guile/guile.h: New file.
408 * guile/scm-arch.c: New file.
409 * guile/scm-auto-load.c: New file.
410 * guile/scm-block.c: New file.
411 * guile/scm-breakpoint.c: New file.
412 * guile/scm-disasm.c: New file.
413 * guile/scm-exception.c: New file.
414 * guile/scm-frame.c: New file.
415 * guile/scm-gsmob.c: New file.
416 * guile/scm-iterator.c: New file.
417 * guile/scm-lazy-string.c: New file.
418 * guile/scm-math.c: New file.
419 * guile/scm-objfile.c: New file.
420 * guile/scm-ports.c: New file.
421 * guile/scm-pretty-print.c: New file.
422 * guile/scm-safe-call.c: New file.
423 * guile/scm-string.c: New file.
424 * guile/scm-symbol.c: New file.
425 * guile/scm-symtab.c: New file.
426 * guile/scm-type.c: New file.
427 * guile/scm-utils.c: New file.
428 * guile/scm-value.c: New file.
429 * guile/lib/gdb.scm: New file.
430 * guile/lib/gdb/boot.scm: New file.
431 * guile/lib/gdb/experimental.scm: New file.
432 * guile/lib/gdb/init.scm: New file.
433 * guile/lib/gdb/iterator.scm: New file.
434 * guile/lib/gdb/printing.scm: New file.
435 * guile/lib/gdb/types.scm: New file.
436 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
437 (VPATH): Add $(GUILE_SRCDIR).
438 (GUILE_DIR): New variable.
439 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
440 (all): Add stamp-guile dependency.
441 (stamp-guile): New rule.
442 (clean-guile, install-guile, uninstall-guile): New rules.
443 (install-only): Add install-guile dependency.
444 (uninstall): Add uninstall-guile dependency.
445 (clean): Add clean-guile dependency.
446
447 2014-02-09 Doug Evans <xdje42@gmail.com>
448
449 Revert this patch (which I approved, mea culpa).
450
451 2014-02-08 Mark Kettenis <kettenis@gnu.org>
452
453 * Makefile.in (all-lib): Remove.
454 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
455
456 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
457
458 Fix Python stack corruption.
459 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
460 gdb_py_longest.
461
462 2014-02-08 Mark Kettenis <kettenis@gnu.org>
463
464 * Makefile.in (all-lib): Remove.
465 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
466
467 2014-02-07 Doug Evans <dje@google.com>
468
469 * extension-priv.h (extension_language_script_ops): Add comment.
470 (extension_language_ops): Add comment.
471 (active_ext_lang_state): Fix typo in comment.
472
473 2014-02-07 Pedro Alves <palves@redhat.com>
474
475 * infrun.c (handle_signal_stop) <signal arrives while stepping
476 over a breakpoint>: Switch back to the stepping thread.
477
478 2014-02-07 Yao Qi <yao@codesourcery.com>
479
480 * target.c (target_xfer_partial): Return zero if LEN is zero.
481
482 2014-02-07 Yao Qi <yao@codesourcery.com>
483
484 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
485 (ld_so_xfer_auxv): Likewise.
486 * bfd-target.c (target_bfd_xfer_partial): Likewise.
487 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
488 * corelow.c (core_xfer_partial): Likewise.
489 * ctf.c (ctf_xfer_partial): Likewise.
490 * darwin-nat.c (darwin_read_dyld_info): Likewise.
491 (darwin_xfer_partial): Likewise.
492 * exec.c (exec_xfer_partial): Likewise.
493 * gnu-nat.c (gnu_xfer_partial): Likewise.
494 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
495 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
496 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
497 * linux-nat.c (linux_xfer_siginfo): Likewise.
498 (linux_proc_xfer_spu): Likewise.
499 * procfs.c (procfs_xfer_partial): Likewise.
500 * record-full.c (record_full_xfer_partial): Likewise.
501 (record_full_core_xfer_partial): Likewise.
502 * remote-sim.c (gdbsim_xfer_partial): Likewise.
503 * remote.c (remote_write_qxfer): Likewise.
504 (remote_write_qxfer, remote_read_qxfer): Likewise.
505 (remote_xfer_partial): Likewise.
506 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
507 (rs6000_xfer_shared_libraries): Likewise.
508 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
509 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
510 (spu_xfer_partial): Likewise.
511 * target.c (memory_xfer_partial_1): Likewise.
512 * tracepoint.c (tfile_xfer_partial): Likewise.
513 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
514 (windows_xfer_partial): Likewise.
515
516 2014-02-07 Yao Qi <yao@codesourcery.com>
517
518 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
519 comments.
520 (core_xfer_shared_libraries_aix): Likewise.
521 * gdbarch.c, gdbarch.h: Regenerated.
522 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
523 ULONGEST. Change 'len_avail' type to ULONGEST.
524 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
525 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
526 declaration.
527 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
528
529 2014-02-07 Yao Qi <yao@codesourcery.com>
530
531 * corefile.c (memory_error): Get 'exception' from ERR and pass
532 'exception' to throw_error.
533
534 2014-02-06 Doug Evans <xdje42@gmail.com>
535
536 * configure.ac (libpython checking): Remove all but python.o from
537 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
538 * configure: Regenerate.
539
540 * Makefile.in (SFILES): Add extension.c.
541 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
542 (COMMON_OBS): Add extension.o.
543 * extension.h: New file.
544 * extension-priv.h: New file.
545 * extension.c: New file.
546
547 * python/python-internal.h: #include "extension.h".
548 (gdbpy_auto_load_enabled): Declare.
549 (gdbpy_apply_val_pretty_printer): Declare.
550 (gdbpy_apply_frame_filter): Declare.
551 (gdbpy_preserve_values): Declare.
552 (gdbpy_breakpoint_cond_says_stop): Declare.
553 (gdbpy_breakpoint_has_cond): Declare.
554 (void source_python_script_for_objfile): Delete.
555 * python/python.c: #include "extension-priv.h".
556 Delete inclusion of "observer.h".
557 (extension_language_python): Moved here and renamed from
558 script_language_python in py-auto-load.c.
559 Redefined to be of type extension_language_defn.
560 (python_extension_script_ops): New global.
561 (python_extension_ops): New global.
562 (struct python_env): New member previous_active.
563 (restore_python_env): Call restore_active_ext_lang.
564 (ensure_python_env): Call set_active_ext_lang.
565 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
566 New arg extlang.
567 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
568 New arg extlang.
569 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
570 New arg extlang.
571 (gdbpy_eval_from_control_command): Renamed from
572 eval_python_from_control_command, made static. New arg extlang.
573 (gdbpy_source_script) Renamed from source_python_script, made static.
574 New arg extlang.
575 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
576 result to int. New arg extlang.
577 (gdbpy_source_objfile_script): Renamed from
578 source_python_script_for_objfile, made static. New arg extlang.
579 (gdbpy_start_type_printers): Renamed from start_type_printers, made
580 static. New args extlang, extlang_printers. Change result type to
581 "void".
582 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
583 static. New arg extlang. Rename arg printers to extlang_printers
584 and change type to ext_lang_type_printers *.
585 (gdbpy_free_type_printers): Renamed from free_type_printers, made
586 static. Replace argument arg with extlang, extlang_printers.
587 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
588 (!HAVE_PYTHON, source_python_script): Delete.
589 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
590 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
591 (!HAVE_PYTHON, start_type_printers): Delete.
592 (!HAVE_PYTHON, apply_type_printers): Delete.
593 (!HAVE_PYTHON, free_type_printers): Delete.
594 (_initialize_python): Delete call to observer_attach_before_prompt.
595 (finalize_python): Set/restore active extension language.
596 (gdbpy_finish_initialization) Renamed from
597 finish_python_initialization, made static. New arg extlang.
598 (gdbpy_initialized): New function.
599 * python/python.h: #include "extension.h". Delete #include
600 "value.h", "mi/mi-cmds.h".
601 (extension_language_python): Declare.
602 (GDBPY_AUTO_FILE_NAME): Delete.
603 (enum py_bt_status): Moved to extension.h and renamed to
604 ext_lang_bt_status.
605 (enum frame_filter_flags): Moved to extension.h.
606 (enum py_frame_args): Moved to extension.h and renamed to
607 ext_lang_frame_args.
608 (finish_python_initialization): Delete.
609 (eval_python_from_control_command): Delete.
610 (source_python_script): Delete.
611 (apply_val_pretty_printer): Delete.
612 (apply_frame_filter): Delete.
613 (preserve_python_values): Delete.
614 (gdbpy_script_language_defn): Delete.
615 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
616 (start_type_printers, apply_type_printers, free_type_printers): Delete.
617
618 * auto-load.c: #include "extension.h".
619 (GDB_AUTO_FILE_NAME): Delete.
620 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
621 (script_language_gdb): Delete, moved to extension.c and renamed to
622 extension_language_gdb.
623 (source_gdb_script_for_objfile): Delete.
624 (auto_load_pspace_info): New member unsupported_script_warning_printed.
625 (loaded_script): Change type of language member to
626 struct extension_language_defn *.
627 (init_loaded_scripts_info): Initialize
628 unsupported_script_warning_printed.
629 (maybe_add_script): Make static. Change type of language arg to
630 struct extension_language_defn *.
631 (clear_section_scripts): Reset unsupported_script_warning_printed.
632 (auto_load_objfile_script_1): Rewrite to use extension language API.
633 (auto_load_objfile_script): Make public. Remove support-compiled-in
634 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
635 (source_section_scripts): Rewrite to use extension language API.
636 (load_auto_scripts_for_objfile): Rewrite to use
637 auto_load_scripts_for_objfile.
638 (collect_matching_scripts_data): Change type of language member to
639 struct extension_language_defn *.
640 (auto_load_info_scripts): Change type of language arg to
641 struct extension_language_defn *.
642 (unsupported_script_warning_print): New function.
643 (script_not_found_warning_print): Make static.
644 (_initialize_auto_load): Rewrite construction of scripts-directory
645 help.
646 * auto-load.h (struct objfile): Add forward decl.
647 (struct script_language): Delete.
648 (struct auto_load_pspace_info): Add forward decl.
649 (struct extension_language_defn): Add forward decl.
650 (maybe_add_script): Delete.
651 (auto_load_objfile_script): Declare.
652 (script_not_found_warning_print): Delete.
653 (auto_load_info_scripts): Update prototype.
654 (auto_load_gdb_scripts_enabled): Declare.
655 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
656 auto_load_python_scripts_enabled and made public.
657 (script_language_python): Delete, moved to python.c.
658 (gdbpy_script_language_defn): Delete.
659 (info_auto_load_python_scripts): Update to use
660 extension_language_python.
661
662 * breakpoint.c (condition_command): Replace call to
663 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
664 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
665 with call to breakpoint_ext_lang_cond_says_stop.
666 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
667 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
668 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
669 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
670 New arg slang.
671 (local_setattro): Print name of extension language with existing
672 stop condition.
673
674 * valprint.c (val_print, value_print): Update to call
675 apply_ext_lang_val_pretty_printer.
676 * cp-valprint.c (cp_print_value): Update call to
677 apply_ext_lang_val_pretty_printer.
678 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
679 (gdbpy_apply_val_pretty_printer): Renamed from
680 apply_val_pretty_printer. New arg extlang.
681 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
682
683 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
684 extension language API.
685 * cli/cli-script.c (execute_control_command): Update to call
686 eval_ext_lang_from_control_command.
687
688 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
689 enum ext_lang_bt_status values. Update call to
690 apply_ext_lang_frame_filter.
691 (mi_cmd_stack_list_locals): Ditto.
692 (mi_cmd_stack_list_args): Ditto.
693 (mi_cmd_stack_list_variables): Ditto.
694 * mi/mi-main.c: Delete #include "python/python-internal.h".
695 Add #include "extension.h".
696 (mi_cmd_list_features): Replace reference to python internal variable
697 gdb_python_initialized with call to ext_lang_initialized_p.
698
699 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
700 Update to use enum ext_lang_frame_args. Update to call
701 apply_ext_lang_frame_filter.
702 * python/py-framefilter.c (extract_sym): Update to use enum
703 ext_lang_bt_status.
704 (extract_value, py_print_type, py_print_value): Ditto.
705 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
706 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
707 (py_print_frame): Ditto.
708 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
709 New arg extlang. Update to use enum ext_lang_bt_status.
710
711 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
712 finish_python_initialization. Replace with call to
713 finish_ext_lang_initialization.
714
715 * typeprint.c (do_free_global_table): Update to call
716 free_ext_lang_type_printers.
717 (create_global_typedef_table): Update to call
718 start_ext_lang_type_printers.
719 (find_global_typedef): Update to call apply_ext_lang_type_printers.
720 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
721 (type_print_options): Change type of global_printers from "void *"
722 to "struct ext_lang_type_printers *".
723
724 * value.c (preserve_values): Update to call preserve_ext_lang_values.
725 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
726 (gdbpy_preserve_values): Renamed from preserve_python_values.
727 New arg extlang.
728 (!HAVE_PYTHON, preserve_python_values): Delete.
729
730 * utils.c (quit_flag): Delete, moved to extension.c.
731 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
732 extension.c.
733
734 * eval.c: Delete #include "python/python.h".
735 * main.c: Delete #include "python/python.h".
736
737 * defs.h: Update comment.
738
739 2014-02-06 Joel Brobecker <brobecker@adacore.com>
740
741 GDB 7.7 released.
742
743 2014-02-05 Mark Kettenis <kettenis@gnu.org>
744
745 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
746 defined.
747
748 2014-02-05 Yao Qi <yao@codesourcery.com>
749
750 * remote.c (remote_pass_signals): Remove local 'buf' and use
751 rs->buf.
752 (remote_program_signals): Likewise.
753
754 2014-02-05 Yao Qi <yao@codesourcery.com>
755
756 * ctf.c: Include "inferior.h" and "gdbthread.h".
757 (CTF_PID): A new macro.
758 (ctf_open): Call inferior_appeared and add_thread_silent.
759 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
760 (ctf_thread_alive): New function.
761 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
762
763 2014-02-05 Yao Qi <yao@codesourcery.com>
764
765 Revert this patch:
766
767 2013-05-24 Yao Qi <yao@codesourcery.com>
768
769 * tracepoint.c (TFILE_PID): Remove.
770 (tfile_open): Don't add thread and inferior.
771 (tfile_close): Don't set 'inferior_ptid'. Don't call
772 exit_inferior_silent.
773 (tfile_thread_alive): Remove.
774 (init_tfile_ops): Don't set field 'to_thread_alive' of
775 tfile_ops.
776
777 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
778
779 * remote.c (remote_start_remote): Call remote_check_symbols even
780 if only symbol-file (not file) has been given.
781
782 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
783
784 * gdbarch.sh (skip_entrypoint): New callback.
785 * gdbarch.c, gdbarch.h: Regenerate.
786 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
787 * infrun.c (fill_in_stop_func): Likewise.
788 * ppc-linux-tdep.c: Include "elf/ppc64.h".
789 (ppc_elfv2_elf_make_msymbol_special): New function.
790 (ppc_elfv2_skip_entrypoint): Likewise.
791 (ppc_linux_init_abi): Install them for ELFv2.
792
793 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
794
795 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
796 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
797 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
798 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
799 structures returned in GPRs.
800
801 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
802
803 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
804 offset to the stack parameter list for the ELFv2 ABI.
805
806 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
807
808 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
809 set_gdbarch_convert_from_func_ptr_addr and
810 set_gdbarch_elf_make_msymbol_special for ELFv1.
811 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
812 function descriptors on ELFv1.
813 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
814 set up r12 at function entry.
815
816 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
817
818 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
819 (struct gdbarch_tdep): New member elf_abi.
820
821 * rs6000-tdep.c: Include "elf/ppc64.h".
822 (rs6000_gdbarch_init): Detect ELF ABI version.
823
824 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
825
826 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
827 within a register pair holding a DFP 128-bit value on little-endian.
828 (ppc64_sysv_abi_return_value_base): Likewise.
829 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
830 (dfp_pseudo_register_write): Likewise.
831
832 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
833
834 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
835 offset on little-endian when passing _Decimal32.
836 (ppc64_sysv_abi_return_value_base): Likewise for return values.
837
838 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
839
840 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
841 of the overlapped FP register within the VSX register on little-
842 endian platforms.
843 (efpr_pseudo_register_write): Likewise.
844
845 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
846
847 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
848 offset on little-endian when passing small structures.
849
850 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
851
852 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
853 (struct ppc64_sysv_argpos): New data structure.
854 (ppc64_sysv_abi_push_float): Remove.
855 (ppc64_sysv_abi_push_val): New function.
856 (ppc64_sysv_abi_push_integer): Likewise.
857 (ppc64_sysv_abi_push_freg): Likewise.
858 (ppc64_sysv_abi_push_vreg): Likewise.
859 (ppc64_sysv_abi_push_param): Likewise.
860 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
861 (ppc64_sysv_abi_return_value_base): New function.
862 (ppc64_sysv_abi_return_value): Refactor to use it.
863
864 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
865
866 * NEWS: Document new target powerpc64le-*-linux*.
867
868 2014-02-04 Mark Kettenis <kettenis@gnu.org>
869
870 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
871 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
872 core dumps.
873 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
874 register set used in ELF core dumps. Add floating-point register set.
875
876 2014-02-03 Kevin Buettner <kevinb@redhat.com>
877
878 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
879 dwarf2_to_gdb[] table using symbolic constants. Adjust
880 penultimate entry from number representing the PC register
881 to symbolic constant representing the MDR register. Add
882 constant for the PC register to the end of the table.
883
884 2014-02-03 Mark Kettenis <kettenis@gnu.org>
885
886 * bsd-kvm.c: Include <sys/param.h>
887
888 2014-02-03 Mark Kettenis <kettenis@gnu.org>
889
890 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
891
892 2014-01-31 Joel Brobecker <brobecker@adacore.com>
893
894 * ada-lang.h (clear_ada_sym_cache): Delete.
895
896 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
897
898 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
899
900 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
901
902 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
903 the sigreturn register save area only if the syscall is
904 sigreturn.
905
906 2014-01-29 Joel Brobecker <brobecker@adacore.com>
907
908 * valops.c (value_slice): Minor reformatting.
909
910 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
911
912 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
913
914 2014-01-28 Joel Brobecker <brobecker@adacore.com>
915
916 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
917 New static globals.
918 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
919 (ada_ignore_descriptive_types_p): New static global.
920 (find_parallel_type_by_descriptive_type): Return immediately
921 if ada_ignore_descriptive_types_p is set.
922 (_initialize_ada_language): Register new commands "maintenance
923 set ada", "maintenance show ada", "maintenance set ada
924 ignore-descriptive-types" and "maintenance show ada
925 ignore-descriptive-types".
926 * NEWS: Add entry for new "maint ada set/show
927 ignore-descriptive-types" commands.
928
929 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
930
931 * record-btrace.c (record_btrace_close): Call btrace_teardown
932 for all threads.
933
934 2014-01-27 Joel Brobecker <brobecker@adacore.com>
935
936 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
937 "ui-out.h".
938
939 2014-01-27 Joel Brobecker <brobecker@adacore.com>
940
941 * ada-typeprint (type_is_full_subrange_of_target_type):
942 New function.
943 (print_range): Add parameter bounds_prefered_p. If not set,
944 try printing range types using the name of their base type.
945 (print_range_type): Add parameter bounds_prefered_p.
946 Use it in call to print_range.
947 (print_array_type, ada_print_type): Update calls to print_range
948 and print_range_type.
949
950 2014-01-27 Joel Brobecker <brobecker@adacore.com>
951
952 * ada-typeprint.c (print_array_type, print_choices, print_range)
953 (print_range_bound, print_dynamic_range_bound, print_range_type):
954 Remove declaration.
955
956 2014-01-27 Joel Brobecker <brobecker@adacore.com>
957
958 * ada-typeprint.c (print_range): Add missing empty line
959 after local declaration.
960
961 2014-01-27 Joel Brobecker <brobecker@adacore.com>
962
963 * ada-valprint.c (print_optional_low_bound): Get index_type's
964 target type for as long as it is a TYPE_CODE_RANGE.
965
966 2014-01-27 Joel Brobecker <brobecker@adacore.com>
967
968 * procfs.c (procfs_make_note_section): Remove assertion and
969 associated comment.
970
971 2014-01-24 Yao Qi <yao@codesourcery.com>
972
973 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
974 * corelow.c (get_core_siginfo): Likewise.
975
976 2014-01-24 Yao Qi <yao@codesourcery.com>
977
978 * remote.c (remote_write_bytes_aux): Change type of 'len' to
979 ULONGEST. Don't check 'len' is negative.
980 (remote_write_bytes): Change type of 'len' to ULONGEST.
981
982 2014-01-23 Tom Tromey <tromey@redhat.com>
983
984 PR python/16485:
985 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
986 Handle exception from frame.block.
987 (FrameVars.fetch_frame_locals): Likewise.
988
989 2014-01-23 Tom Tromey <tromey@redhat.com>
990
991 PR python/16487:
992 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
993 on a NULL pointer. Move "goto error" to correct place.
994
995 2014-01-23 Tom Tromey <tromey@redhat.com>
996
997 PR python/16491:
998 * python/py-framefilter.c (apply_frame_filter): Call
999 ensure_python_env after computing gdbarch.
1000
1001 2014-01-23 Yao Qi <yao@codesourcery.com>
1002
1003 * target.c (raw_memory_xfer_partial): Change argument type
1004 from void * to gdb_byte *.
1005 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
1006
1007 2014-01-22 Doug Evans <dje@google.com>
1008
1009 New gdbserver option --debug-format=timestamp.
1010 * NEWS: Mention it.
1011
1012 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
1013
1014 * syscalls/s390x-linux.xml: New file.
1015 * syscalls/s390-linux.xml: New file.
1016 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
1017 (XML_SYSCALL_FILENAME_S390X): Likewise.
1018 (op_svc): New enum value for SVC opcode.
1019 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
1020 (s390_linux_get_syscall_number): New function.
1021 (s390_gdbarch_init): Register '*get_syscall_number' and the
1022 syscall xml file name.
1023 * data-directory/Makefile.in (SYSCALLS_FILES): Add
1024 "s390-linux.xml" and "s390x-linux.xml".
1025 * NEWS: Announce new feature.
1026
1027 2014-01-22 Baruch Siach <baruch@tkos.co.il>
1028
1029 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
1030
1031 2014-01-22 Pedro Alves <palves@redhat.com>
1032
1033 * xtensa-config.c: Include defs.h.
1034
1035 2014-01-22 Joel Brobecker <brobecker@adacore.com>
1036
1037 * common/common-utils.h: Add "ARI:" comment beside __func__
1038 reference.
1039
1040 2014-01-22 Joel Brobecker <brobecker@adacore.com>
1041
1042 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
1043 documentation a bit.
1044
1045 2014-01-21 Roland McGrath <mcgrathr@google.com>
1046
1047 * configure.ac: Call AM_PROG_INSTALL_STRIP.
1048 * configure: Regenerate.
1049 * aclocal.m4: Regenerate.
1050 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
1051 New substituted variables.
1052 (install-strip): New target.
1053 (INSTALL_SCRIPT): New substituted variable.
1054 (FLAGS_TO_PASS): Add it.
1055 (install-only): Use $(INSTALL_SCRIPT) rather than
1056 $(INSTALL_PROGRAM) for gcore.
1057
1058 2014-01-20 Tom Tromey <tromey@redhat.com>
1059
1060 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
1061 together.
1062
1063 2014-01-20 Tom Tromey <tromey@redhat.com>
1064
1065 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
1066 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
1067 (deprecated_cmd_warning, complete_on_cmdlist): Update.
1068 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
1069 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
1070 (struct cmd_list_element) <flags>: Remove.
1071 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
1072 doc_allocated>: New fields.
1073 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
1074 bitfields.
1075 * maint.c (maintenance_do_deprecate): Update.
1076 * top.c (execute_command): Update.
1077
1078 2014-01-20 Baruch Siach <baruch@tkos.co.il>
1079
1080 * xtensa-linux-nat.c: Include asm/ptrace.h.
1081
1082 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1083
1084 * Makefile.in (SFILES): Add d-support.c.
1085 (COMMON_OBS): Add d-support.o.
1086 * d-lang.h (d_parse_symbol): Add comment, now defined in
1087 d-support.c.
1088 * d-lang.c (parse_call_convention)
1089 (parse_attributes, parse_function_types)
1090 (parse_function_args, parse_type, parse_identifier)
1091 (call_convention_p, d_parse_symbol): Move functions to ...
1092 * d-support.c: ... New file.
1093
1094 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1095
1096 * d-lang.h (d_parse_symbol): Add declaration.
1097 * d-lang.c (extract_identifiers)
1098 (extract_type_info): Remove functions.
1099 (parse_call_convention, parse_attributes)
1100 (parse_function_types, parse_function_args)
1101 (parse_type, parse_identifier, call_convention_p)
1102 (d_parse_symbol): New functions.
1103 (d_demangle): Use d_parse_symbol to demangle D symbols.
1104
1105 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1106
1107 * d-lang.h (struct builtin_d_type): New data type.
1108 (builtin_d_type): Add declaration.
1109 * d-lang.c (d_language_arch_info, build_d_types)
1110 (builtin_d_type): New functions.
1111 (enum d_primitive_types): New data type.
1112 (d_language_defn): Change c_language_arch_info to
1113 d_language_arch_info.
1114 (d_type_data): New static variable.
1115 (_initialize_d_language): Initialize d_type_data.
1116
1117 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1118
1119 * d-lang.h (d_main_name): Add declaration.
1120 * d-lang.c (d_main_name): New function.
1121 * symtab.c (find_main_name): Add call to d_main_name.
1122
1123 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1124
1125 * d-lang.c (d_language_defn): Change macro_expansion_c to
1126 macro_expansion_no.
1127
1128 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1129
1130 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1131
1132 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
1133
1134 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
1135 gdb_exception" declaration.
1136 * remote.c (getpkt_or_notif_sane): Likewise.
1137
1138 2014-01-17 Doug Evans <dje@google.com>
1139
1140 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
1141 function, contents of dirnames_to_char_ptr_vec_append moved here.
1142 (delim_string_to_char_ptr_vec): New function.
1143 (dirnames_to_char_ptr_vec_append): Rewrite.
1144 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
1145
1146 2014-01-17 Doug Evans <dje@google.com>
1147
1148 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
1149 and moved here ...
1150 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
1151 #include "common-utils.h".
1152 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
1153 * common/vec.h (VEC_ASSERT_PASS): Update.
1154 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
1155 (MACH_CHECK_ERROR): Update.
1156
1157 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
1158
1159 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
1160 comments.
1161 * gdbarch.h: Regenerate.
1162
1163 2014-01-16 Tom Tromey <tromey@redhat.com>
1164
1165 * value.c (struct value) <regnum>: Move earlier.
1166
1167 2014-01-16 Tom Tromey <tromey@redhat.com>
1168
1169 * remote.c (extended_remote_create_inferior): Rename from
1170 extended_remote_create_inferior_1. Add "ops" argument. Remove
1171 old implementation.
1172
1173 2014-01-16 Pedro Alves <palves@redhat.com>
1174
1175 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
1176 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
1177 the backchain.
1178
1179 2014-01-16 Doug Evans <dje@google.com>
1180
1181 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
1182
1183 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1184
1185 * btrace.h (btrace_thread_flag): New.
1186 (struct btrace_thread_info) <flags>: New.
1187 * record-btrace.c (record_btrace_resume_thread)
1188 (record_btrace_find_thread_to_move, btrace_step_no_history)
1189 (btrace_step_stopped, record_btrace_start_replaying)
1190 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
1191 (record_btrace_find_resume_thread): New.
1192 (record_btrace_resume, record_btrace_wait): Extend.
1193 (record_btrace_can_execute_reverse): New.
1194 (record_btrace_open): Fail in non-stop mode.
1195 (record_btrace_set_replay): Split into this, ...
1196 (record_btrace_stop_replaying): ... this, ...
1197 (record_btrace_clear_histories): ... and this.
1198 (init_record_btrace_ops): Init to_can_execute_reverse.
1199 * NEWS: Announce it.
1200
1201 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1202
1203 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
1204 (forward_target_decr_pc_after_break)
1205 (target_decr_pc_after_break): New.
1206 * target.c (forward_target_decr_pc_after_break)
1207 (target_decr_pc_after_break): New.
1208 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
1209 instead of gdbarch_decr_pc_after_break.
1210 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
1211 instead of gdbarch_decr_pc_after_break.
1212 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
1213 instead of gdbarch_decr_pc_after_break.
1214 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
1215 instead of gdbarch_decr_pc_after_break.
1216 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
1217 instead of gdbarch_decr_pc_after_break.
1218 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
1219 instead of gdbarch_decr_pc_after_break.
1220
1221 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1222
1223 * btrace.c: Include regcache.h.
1224 (btrace_add_pc): New.
1225 (btrace_enable): Call btrace_add_pc.
1226 (btrace_is_empty): New.
1227 * btrace.h (btrace_is_empty): New.
1228 * record-btrace.c (require_btrace, record_btrace_info): Call
1229 btrace_is_empty.
1230
1231 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1232
1233 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
1234 Support delta reads.
1235 (linux_disable_btrace): Change return type.
1236 * common/linux-btrace.h (linux_read_btrace): Change parameters
1237 and return type to allow error reporting. Update users.
1238 (linux_disable_btrace): Change return type. Update users.
1239 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
1240 New.
1241 (btrace_error): New.
1242 (btrace_block) <begin>: Comment on BEGIN == 0.
1243 * btrace.c (btrace_compute_ftrace): Start from the end of
1244 the current trace.
1245 (btrace_stitch_trace, btrace_clear_history): New.
1246 (btrace_fetch): Read delta trace, return if replaying.
1247 (btrace_clear): Move clear history code to btrace_clear_history.
1248 (parse_xml_btrace): Throw an error if parsing failed.
1249 * target.h (struct target_ops) <to_read_btrace>: Change parameters
1250 and return type to allow error reporting.
1251 (target_read_btrace): Change parameters and return type to allow
1252 error reporting.
1253 * target.c (target_read_btrace): Update.
1254 * remote.c (remote_read_btrace): Support delta reads. Pass
1255 errors on.
1256 * NEWS: Announce it.
1257
1258 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1259
1260 * record.h (record_btrace_frame_unwind)
1261 (record_btrace_tailcall_frame_unwind): New declarations.
1262 * dwarf2-frame: Include record.h
1263 (dwarf2_frame_cfa): Throw an error for btrace frames.
1264 * record-btrace.c: Include hashtab.h.
1265 (btrace_get_bfun_name): New.
1266 (btrace_call_history): Call btrace_get_bfun_name.
1267 (struct btrace_frame_cache): New.
1268 (bfcache): New.
1269 (bfcache_hash, bfcache_eq, bfcache_new): New.
1270 (btrace_get_frame_function): New.
1271 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
1272 (record_btrace_frame_this_id): Compute own id.
1273 (record_btrace_frame_prev_register): Provide PC, throw_error
1274 for all other registers.
1275 (record_btrace_frame_sniffer): Detect btrace frames.
1276 (record_btrace_tailcall_frame_sniffer): New.
1277 (record_btrace_frame_dealloc_cache): New.
1278 (record_btrace_frame_unwind): Add new functions.
1279 (record_btrace_tailcall_frame_unwind): New.
1280 (_initialize_record_btrace): Allocate cache.
1281 * btrace.c (btrace_clear): Call reinit_frame_cache.
1282 * NEWS: Announce it.
1283
1284 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1285
1286 * record-btrace.c (record_btrace_set_replay)
1287 (record_btrace_goto_begin, record_btrace_goto_end)
1288 (record_btrace_goto): New.
1289 (init_record_btrace_ops): Initialize them.
1290 * NEWS: Announce it.
1291
1292 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1293
1294 * record-btrace.c (record_btrace_find_new_threads)
1295 (record_btrace_thread_alive): New.
1296 (init_record_btrace_ops): Initialize to_find_new_threads and
1297 to_thread_alive.
1298
1299 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1300
1301 * record-btrace.c (record_btrace_resume): New.
1302 (record_btrace_wait): New.
1303 (init_record_btrace_ops): Initialize to_wait and to_resume.
1304
1305 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1306
1307 * record-btrace.c (record_btrace_xfer_partial)
1308 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
1309 (record_btrace_allow_memory_access): New.
1310 (init_record_btrace_ops): Initialize new methods.
1311 * target.c (raw_memory_xfer_partial): Bail out if target reports
1312 that this memory is not available.
1313
1314 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1315
1316 * target.h (target_ops) <to_insert_breakpoint>
1317 <to_remove_breakpoint>: Add target_ops parameter.
1318 (forward_target_insert_breakpoint): New.
1319 (forward_target_remove_breakpoint): New.
1320 (memory_remove_breakpoint, memory_insert_breakpoint):
1321 Add target_ops parameter.
1322 * target.c (target_insert_breakpoint): Split into this and ...
1323 (forward_target_insert_breakpoint): ... this.
1324 (target_remove_breakpoint): Split into this and ...
1325 (forward_target_remove_breakpoint): ... this.
1326 (debug_to_insert_breakpoint): Add target_ops parameter.
1327 Call forward_target_insert_breakpoint.
1328 (debug_to_remove_breakpoint): Add target_ops parameter.
1329 Call forward_target_remove_breakpoint.
1330 (update_current_target): Do not inherit or default to_insert_breakpoint
1331 and to_remove_breakpoint.
1332 * corelow.c (ignore): Add target_ops parameter.
1333 * exec.c (ignore): Add target_ops parameter.
1334 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
1335 Add target_ops parameter.
1336 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
1337 Add target_ops parameter.
1338 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
1339 Add target_ops parameter.
1340 * record-full.c (record_full_beneath_to_insert_breakpoint)
1341 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
1342 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
1343 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
1344 (record_full_core_remove_breakpoint): Add target_ops parameter.
1345 Update users.
1346 (record_full_beneath_to_insert_breakpoint_ops)
1347 (record_full_beneath_to_remove_breakpoint_ops)
1348 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
1349 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
1350 tmp_to_remove_breakpoint_ops,
1351 record_full_beneath_to_insert_breakpoint_ops, and
1352 record_full_beneath_to_remove_breakpoint_ops.
1353 * remote-m32r-sdi.c (m32r_insert_breakpoint)
1354 (m32r_remove_breakpoint): Add target_ops parameter.
1355 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
1356 Add target_ops parameter.
1357 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
1358 Add target_ops parameter.
1359
1360 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1361 Markus Metzger <markus.t.metzger@intel.com>
1362
1363 * record-btrace.c: Include frame-unwind.h.
1364 (record_btrace_frame_unwind_stop_reason)
1365 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
1366 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
1367 New.
1368 (init_record_btrace_ops): Install it.
1369
1370 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1371
1372 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
1373 get_prev_frame_1.
1374
1375 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1376
1377 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
1378 earlier.
1379
1380 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1381
1382 * frame-unwind.c: Include target.h.
1383 (frame_unwind_try_unwinder): New function with code from ...
1384 (frame_unwind_find_by_frame): ... here. New variable
1385 unwinder_from_target, call also target_get_unwinder)
1386 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
1387 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
1388 * target.h (struct target_ops): New fields to_get_unwinder and
1389 to_get_tailcall_unwinder.
1390 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
1391
1392 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1393
1394 * record-btrace.c (record_btrace_fetch_registers)
1395 (record_btrace_store_registers)
1396 (record_btrace_to_prepare_to_store): New.
1397 (init_record_btrace_ops): Add the above.
1398
1399 2014-01-16 Tom Tromey <tromey@redhat.com>
1400
1401 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
1402 * target.h (struct target_ops) <to_prepare_to_store>: Add
1403 argument.
1404 (target_prepare_to_store): Add argument.
1405 * target.c (debug_to_prepare_to_store): Add argument.
1406 (update_current_target): Update.
1407 * remote.c (remote_prepare_to_store): Add 'self' argument.
1408 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
1409 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
1410 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
1411 * record-full.c (record_full_core_prepare_to_store): Add 'self'
1412 argument.
1413 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
1414 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
1415 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
1416 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
1417 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
1418
1419 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1420
1421 * btrace.h (replay) <replay>: New.
1422 (btrace_is_replaying): New.
1423 * btrace.c (btrace_clear): Free replay iterator.
1424 (btrace_is_replaying): New.
1425 * record-btrace.c (record_btrace_is_replaying): New.
1426 (record_btrace_info): Print insn number if replaying.
1427 (record_btrace_insn_history): Start at replay position.
1428 (record_btrace_call_history): Start at replay position.
1429 (init_record_btrace_ops): Init to_record_is_replaying.
1430
1431 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1432
1433 * record-btrace.c (record_btrace_insn_history_range): Include
1434 end.
1435 (record_btrace_insn_history_from): Adjust range.
1436 (record_btrace_call_history_range): Include
1437 end.
1438 (record_btrace_call_history_from): Adjust range.
1439 * NEWS: Announce changes.
1440
1441 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1442
1443 * record.h (enum record_print_flag)
1444 <record_print_indent_calls>: New.
1445 * record.c (get_call_history_modifiers): Recognize /c modifier.
1446 (_initialize_record): Document /c modifier.
1447 * record-btrace.c (btrace_call_history): Add btinfo parameter.
1448 Reorder fields. Optionally indent the function name. Update
1449 all users.
1450 * NEWS: Announce changes.
1451
1452 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1453
1454 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
1455
1456 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1457
1458 * btrace.c (ftrace_new_function): Start counting at one.
1459 * record-btrace.c (record_btrace_info): Adjust number of calls
1460 and insns.
1461 * NEWS: Announce it.
1462
1463 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1464
1465 * record-btrace.c (btrace_call_history_insn_range): Print
1466 insn range as [begin, end].
1467
1468 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1469
1470 * btrace.h (struct btrace_func_link): New.
1471 (enum btrace_function_flag): New.
1472 (struct btrace_inst): Rename to ...
1473 (struct btrace_insn): ...this. Update all users.
1474 (struct btrace_func) <ibegin, iend>: Remove.
1475 (struct btrace_func_link): New.
1476 (struct btrace_func): Rename to ...
1477 (struct btrace_function): ...this. Update all users.
1478 (struct btrace_function) <segment, flow, up, insn, insn_offset)
1479 (number, level, flags>: New.
1480 (struct btrace_insn_iterator): Rename to ...
1481 (struct btrace_insn_history): ...this.
1482 Update all users.
1483 (struct btrace_insn_iterator, btrace_call_iterator): New.
1484 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
1485 (struct btrace_target_info) <begin, end, level>
1486 <insn_history, call_history>: New.
1487 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
1488 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
1489 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
1490 (btrace_call_number, btrace_call_begin, btrace_call_end)
1491 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
1492 (btrace_find_function_by_number, btrace_set_insn_history)
1493 (btrace_set_call_history): New.
1494 * btrace.c (btrace_init_insn_iterator)
1495 (btrace_init_func_iterator, compute_itrace): Remove.
1496 (ftrace_print_function_name, ftrace_print_filename)
1497 (ftrace_skip_file): Change
1498 parameter to const.
1499 (ftrace_init_func): Remove.
1500 (ftrace_debug): Use new btrace_function fields.
1501 (ftrace_function_switched): Also consider gaining and
1502 losing symbol information).
1503 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
1504 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
1505 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
1506 New.
1507 (ftrace_new_function): Move. Remove debug print.
1508 (ftrace_update_lines, ftrace_update_insns): New.
1509 (ftrace_update_function): Check for call, ret, and jump.
1510 (compute_ftrace): Renamed to ...
1511 (btrace_compute_ftrace): ...this. Rewritten to compute call
1512 stack.
1513 (btrace_fetch, btrace_clear): Updated.
1514 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
1515 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
1516 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
1517 (btrace_call_number, btrace_call_begin, btrace_call_end)
1518 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
1519 (btrace_find_function_by_number, btrace_set_insn_history)
1520 (btrace_set_call_history): New.
1521 * record-btrace.c (require_btrace): Use new btrace thread
1522 info fields.
1523 (record_btrace_info, btrace_insn_history)
1524 (record_btrace_insn_history, record_btrace_insn_history_range):
1525 Use new btrace thread info fields and new iterator.
1526 (btrace_func_history_src_line): Rename to ...
1527 (btrace_call_history_src_line): ...this. Use new btrace
1528 thread info fields.
1529 (btrace_func_history): Rename to ...
1530 (btrace_call_history): ...this. Use new btrace thread info
1531 fields and new iterator.
1532 (record_btrace_call_history, record_btrace_call_history_range):
1533 Use new btrace thread info fields and new iterator.
1534
1535 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1536
1537 * frame.h (frame_id_build_unavailable_stack_special): New.
1538 * frame.c (frame_id_build_unavailable_stack_special): New.
1539
1540 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1541
1542 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
1543 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
1544 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
1545 to gdbarch.
1546 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
1547 (i386_insn_is_jump, i386_jmp_p): New.
1548 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
1549 insn_is_jump to gdbarch.
1550 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
1551 * gdbarch.h: Regenerated.
1552 * gdbarch.c: Regenerated.
1553 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
1554 (default_insn_is_jump): New.
1555 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
1556 (default_insn_is_jump): New.
1557
1558 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1559
1560 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
1561 Change to ...
1562 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
1563 (btrace_read_type) <btrace_read_new>: Change to ...
1564 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
1565
1566 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1567
1568 * common/linux-btrace.c (linux_read_btrace): Free trace from
1569 previous iteration.
1570
1571 2014-01-15 Doug Evans <dje@google.com>
1572
1573 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
1574 uint32_t.
1575
1576 2014-01-15 Tom Tromey <tromey@redhat.com>
1577
1578 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
1579 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
1580 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
1581 (set_objfile_main_name): New function.
1582 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
1583 language_of_main>: New fields.
1584 (set_objfile_main_name): Declare.
1585 * symtab.c (find_main_name): Loop over objfiles to find the main
1586 name and language.
1587 (set_main_name): Now static.
1588 (get_main_info): Add comment.
1589 * symtab.h (set_main_name): Don't declare.
1590
1591 2014-01-15 Tom Tromey <tromey@redhat.com>
1592
1593 * symtab.c (main_progspace_key): New global.
1594 (struct main_info): New.
1595 (name_of_main, language_of_main): Remove.
1596 (get_main_info, main_info_cleanup): New function.
1597 (set_main_name, main_name, main_language): Use get_main_info.
1598 (_initialize_symtab): Initialize main_progspace_key.
1599
1600 2014-01-15 Tom Tromey <tromey@redhat.com>
1601
1602 * dbxread.c (process_one_symbol): Update.
1603 * dwarf2read.c (read_partial_die): Update.
1604 * symfile.c (set_initial_language): Call main_language.
1605 * symtab.c (language_of_main): Now static.
1606 (set_main_name): Add 'lang' parameter.
1607 (find_main_name): Update.
1608 (main_language): New function.
1609 (symtab_observer_executable_changed): Update.
1610 * symtab.h (set_main_name): Update.
1611 (language_of_main): Remove.
1612 (main_language): Declare.
1613
1614 2014-01-15 Tom Tromey <tromey@redhat.com>
1615
1616 * symfile.c (init_entry_point_info): Use new "initialized" field.
1617 Update.
1618 * objfiles.h (struct entry_point) <initialized>: New field.
1619 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
1620 (struct objfile) <ei>: ...here. Remove.
1621 * objfiles.c (entry_point_address_query): Update.
1622
1623 2014-01-15 Tom Tromey <tromey@redhat.com>
1624
1625 * objfiles.c (entry_point_address_query): Relocate entry point
1626 address.
1627 (objfile_relocate1): Do not relocate entry point address.
1628 * objfiles.h (struct entry_info) <entry_point>: Update comment.
1629 <the_bfd_section_index>: New field.
1630 * symfile.c (init_entry_point_info): Find the entry point's
1631 section.
1632
1633 2014-01-15 Tom Tromey <tromey@redhat.com>
1634
1635 * solib-frv.c (enable_break): Use entry_point_address_query.
1636
1637 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
1638
1639 * NEWS: Add note on improved process record-replay on
1640 arm*-linux* targets.
1641
1642 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
1643
1644 * arm-tdep.c (enum arm_record_result): New enum.
1645 (arm_record_unsupported_insn): New function.
1646 (arm_record_coproc_data_proc): Removed.
1647 (thumb2_record_ld_st_multiple): New function.
1648 (thumb2_record_ld_st_dual_ex_tbb): New function.
1649 (thumb2_record_data_proc_sreg_mimm): New function.
1650 (thumb2_record_ps_dest_generic): New function.
1651 (thumb2_record_branch_misc_cntrl): New function.
1652 (thumb2_record_str_single_data): New function.
1653 (thumb2_record_ld_mem_hints): New function.
1654 (thumb2_record_ld_word): New function.
1655 (thumb2_record_lmul_lmla_div): New function.
1656 (thumb2_record_decode_insn_handler): New function.
1657 (decode_insn): Add thumb32 instruction handlers.
1658
1659 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
1660
1661 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
1662 (struct arm_linux_record_tdep): Declare.
1663 (arm_canonicalize_syscall): New function.
1664 (arm_all_but_pc_registers_record): New function.
1665 (arm_linux_syscall_record): New function.
1666 (arm_linux_init_abi): Add syscall recording constructs.
1667 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
1668 decoding. (arm_record_coproc_data_proc): Update arm syscall
1669 decoding.
1670 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
1671 <arm_syscall_record>: New field.
1672 * configure.tgt (arm*-*-linux*): Add linux-record.o to
1673 gdb_target_obs.
1674
1675 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
1676
1677 * arm-tdep.c (thumb_record_misc): Update to use sp as base
1678 register for push instruction recording.
1679
1680 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
1681
1682 * arm-tdep.c (thumb_record_misc): Update to correct logical
1683 error while recording ldm, ldmia and pop instructions.
1684
1685 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
1686
1687 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
1688
1689 2014-01-15 Pedro Alves <palves@redhat.com>
1690
1691 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
1692 (go32_resume, go32_fetch_registers, store_register)
1693 (go32_store_registers, go32_prepare_to_store)
1694 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
1695 (go32_create_inferior, go32_can_run, go32_terminal_init)
1696 (go32_terminal_inferior, go32_terminal_ours): Delete forward
1697 declarations.
1698
1699 2014-01-15 Tom Tromey <tromey@redhat.com>
1700
1701 * target.h (async_callback_ftype): New typedef.
1702 (struct target_ops) <to_async>: Use it.
1703
1704 2014-01-15 Joel Brobecker <brobecker@adacore.com>
1705
1706 * python/py-value.c (get_field_type): Remove unnecessary curly
1707 braces for single-statement if block.
1708
1709 2014-01-15 Joel Brobecker <brobecker@adacore.com>
1710
1711 * python/py-type.c (convert_field): Add missing empty line
1712 after declarations.
1713
1714 2014-01-14 Doug Evans <dje@google.com>
1715
1716 * symfile.h (expand_symtabs_matching): Renamed from
1717 expand_partial_symbol_names. Update prototype.
1718 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
1719 * symfile.c (expand_symtabs_matching): Renamed from
1720 expand_partial_symbol_names. New args file_matcher, kind.
1721 Rename arg fun to symbol_matcher.
1722 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
1723 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
1724 ada_expand_partial_symbol_name.
1725 (ada_make_symbol_completion_list): Update to call
1726 expand_symtabs_matching.
1727 (ada_add_global_exceptions): Call expand_symtabs_matching.
1728 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
1729 call map_symbol_filenames.
1730 * symtab.c (sources_info): Update to call map_symbol_filenames.
1731 (search_symbols): Call expand_symtabs_matching.
1732 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
1733 (default_make_symbol_completion_list_break_on): Update to call
1734 expand_symtabs_matching.
1735 (make_source_files_completion_list): Update to call
1736 map_symbol_filenames.
1737
1738 2014-01-14 Doug Evans <dje@google.com>
1739
1740 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
1741 (expand_symtabs_symbol_matcher_ftype): New typedef.
1742 (quick_symbol_functions.expand_symtabs_matching): Update to use.
1743 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
1744 * symfile.c (expand_partial_symbol_names): Update to use
1745 expand_symtabs_symbol_matcher_ftype.
1746 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
1747 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
1748 Arg name_matcher renamed to symbol_matcher.
1749 * psymtab.c (recursively_search_psymtabs): Update to use
1750 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
1751 sym_matcher.
1752 (expand_symtabs_matching_via_partial): Update to use
1753 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
1754 Arg name_matcher renamed to symbol_matcher.
1755
1756 2014-01-14 Doug Evans <dje@google.com>
1757
1758 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
1759 (map_partial_symbol_filenames): Ditto.
1760 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
1761 (map_partial_symbol_filenames): Ditto.
1762 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
1763 (map_partial_symbol_filenames): Ditto.
1764 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
1765 (map_partial_symbol_filenames): Ditto.
1766 * symtab.c: Delete #include "psymtab.h".
1767
1768 2014-01-14 Pedro Alves <palves@redhat.com>
1769 Tom Tromey <tromey@redhat.com>
1770
1771 * infrun.c (use_displaced_stepping): Use find_record_target
1772 instead of RECORD_IS_USED.
1773 (adjust_pc_after_break): Use record_full_is_used instead of
1774 RECORD_IS_USED.
1775 * record-btrace.c (record_btrace_open): Call record_preopen
1776 instead of checking RECORD_IS_USED.
1777 * record-full.c (record_full_shortname)
1778 (record_full_core_shortname): New globals.
1779 (record_full_is_used): New function.
1780 (find_full_open): Call record_preopen instead of checking
1781 RECORD_IS_USED.
1782 (init_record_full_ops): Set the target's shortname to
1783 record_full_shortname.
1784 (init_record_full_core_ops): Set the target's shortname to
1785 record_full_core_shortname.
1786 * record-full.h (record_full_is_used): Declare.
1787 * record.c (find_record_target): Make extern.
1788 (record_preopen): New function.
1789 * record.h (RECORD_IS_USED): Delete macro.
1790 (find_record_target, record_preopen): Declare functions.
1791
1792 2014-01-14 Yao Qi <yao@codesourcery.com>
1793
1794 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
1795 'len''s type to ULONGEST.
1796 (core_xfer_shared_libraries_aix): Likewise.
1797 * gdbarch.c, gdbarch.h: Regenerated.
1798 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
1799 Change type of 'len' to ULONGEST.
1800 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1801 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
1802
1803 2014-01-14 Yao Qi <yao@codesourcery.com>
1804
1805 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
1806 type of 'len' to ULONGEST.
1807 (linux_xfer_osdata_processgroups): Likewise.
1808 (linux_xfer_osdata_threads): Likewise.
1809 (linux_xfer_osdata_fds): Likewise.
1810 (linux_xfer_osdata_isockets): Likewise.
1811 (linux_xfer_osdata_shm): Likewise.
1812 (linux_xfer_osdata_sem): Likewise.
1813 (linux_xfer_osdata_msg): Likewise.
1814 (linux_common_xfer_osdata): Likewise.
1815 (struct osdata_type) <getter>: Likewise.
1816 * common/linux-osdata.h (linux_common_xfer_osdata): Update
1817 the declaration.
1818
1819 2014-01-14 Yao Qi <yao@codesourcery.com>
1820
1821 * target.h (target_xfer_partial_ftype): Update.
1822 (struct target_ops) <to_xfer_partial>: Change 'len' type to
1823 ULONGEST.
1824 * aix-thread.c (aix_thread_xfer_partial): Change type of
1825 argument 'len' to ULONGEST.
1826 * auxv.c (procfs_xfer_auxv): Likewise.
1827 (ld_so_xfer_auxv): Likewise.
1828 (memory_xfer_auxv): Likewise.
1829 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1830 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1831 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
1832 * corelow.c (core_xfer_partial): Likewise.
1833 * ctf.c (ctf_xfer_partial): Likewise.
1834 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
1835 '%u'.
1836 (darwin_read_dyld_info): Likewise.
1837 (darwin_xfer_partial): Likewise.
1838 * exec.c (section_table_xfer_memory_partial): Likewise.
1839 (exec_xfer_partial): Likewise.
1840 * exec.h (section_table_xfer_memory_partial): Update
1841 declaration.
1842 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
1843 instead of plongest.
1844 (gnu_xfer_partial): Likewise.
1845 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
1846 (ia64_hpux_xfer_solib_got): Likewise.
1847 (ia64_hpux_xfer_partial): Likewise.
1848 * ia64-linux-nat.c (ia64_linux_xfer_partial):
1849 * inf-ptrace.c (inf_ptrace_xfer_partial):
1850 * inf-ttrace.c (inf_ttrace_xfer_partial):
1851 * linux-nat.c (linux_xfer_siginfo): Likewise.
1852 (linux_nat_xfer_partial): Likewise.
1853 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
1854 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
1855 * monitor.c (monitor_xfer_memory): Likewise.
1856 (monitor_xfer_partial): Likewise.
1857 * procfs.c (procfs_xfer_partial): Likewise.
1858 * record-full.c (record_full_xfer_partial): Likewise.
1859 (record_full_core_xfer_partial): Likewise.
1860 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
1861 instead of plongest.
1862 (gdbsim_xfer_partial): Likewise.
1863 * remote.c (remote_xfer_partial): Likewise.
1864 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1865 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
1866 declaration.
1867 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1868 (rs6000_xfer_shared_libraries): Likewise.
1869 * sol-thread.c (sol_thread_xfer_partial): Likewise.
1870 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1871 (sparc_xfer_partial): Likewise.
1872 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1873 (spu_xfer_partial): Likewise.
1874 * spu-multiarch.c (spu_xfer_partial): Likewise.
1875 * target.c (target_read_live_memory): Likewise.
1876 (memory_xfer_live_readonly_partial): Likewise.
1877 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
1878 (target_xfer_partial, default_xfer_partial): Likewise.
1879 (current_xfer_partial): Likewise.
1880 * tracepoint.c (tfile_xfer_partial): Likewise.
1881 * windows-nat.c (windows_xfer_memory): Likewise. Call
1882 pulongest instead of plongest.
1883 (windows_xfer_partial): Likewise.
1884 (windows_xfer_shared_libraries): Likewise.
1885
1886 2014-01-14 Yao Qi <yao@codesourcery.com>
1887
1888 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
1889 target_xfer_partial_ftype.
1890
1891 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
1892
1893 PR python/15464
1894 PR python/16113
1895 * valops.c (value_struct_elt_bitpos): New function
1896 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
1897 object to 'None' if the field name is an empty string ("").
1898 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
1899 attribute to look for a field when 'name' is 'None'.
1900 (get_field_type): New function
1901
1902 2014-01-13 Doug Evans <dje@google.com>
1903
1904 PR symtab/16426
1905 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
1906 (try_open_dwop_file): Ditto.
1907 * gdb_bfd.c: #include "vec.h".
1908 (bfdp): New typedef.
1909 (struct gdb_bfd_data): New member included_bfds.
1910 (gdb_bfd_unref): Unref all included bfds.
1911 (gdb_bfd_record_inclusion): New function.
1912 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
1913
1914 2014-01-13 Tom Tromey <tromey@redhat.com>
1915
1916 * gdbcore.h (deprecated_core_resize_section_table): Remove.
1917
1918 2014-01-13 Tom Tromey <tromey@redhat.com>
1919
1920 * defs.h (use_windows): Remove.
1921 * gdb.c (main): Update.
1922 * main.c (captured_main, gdb_main): Update.
1923 * main.h (struct captured_main_args) <use_windows>: Remove.
1924 * top.c (use_windows): Remove.
1925
1926 2014-01-13 Tom Tromey <tromey@redhat.com>
1927
1928 * defs.h (deprecated_flush_hook): Remove.
1929
1930 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1931
1932 PR threads/16216
1933 * linux-thread-db.c (try_thread_db_load): Add parameter
1934 check_auto_load_safe. Move here the file_is_auto_load_safe call.
1935 (try_thread_db_load_from_pdir_1): Move it there from here.
1936 (try_thread_db_load_from_sdir): Update caller.
1937 (try_thread_db_load_from_dir): Move it there from here.
1938
1939 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
1940
1941 * regformats/regdat.sh: Always rewrite the register file.
1942
1943 2014-01-13 Pedro Alves <palves@redhat.com>
1944
1945 * Makefile.in (CHECK_HEADERS): New variable.
1946 (check-headers:): New rule.
1947
1948 2014-01-13 Tom Tromey <tromey@redhat.com>
1949
1950 * cli/cli-setshow.c (do_set_command): Update.
1951 * defs.h (deprecated_set_hook): Remove.
1952 * top.c (deprecated_set_hook): Remove.
1953
1954 2014-01-13 Pedro Alves <palves@redhat.com>
1955
1956 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
1957 the tracepoint if the PC is a pseudo-register.
1958
1959 2014-01-13 Tom Tromey <tromey@redhat.com>
1960
1961 * defs.h (XCALLOC): Remove.
1962 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
1963 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
1964 * dwarf2loc.c (allocate_piece_closure): Likewise.
1965 * elfread.c (elf_symfile_segments): Likewise.
1966 (elf_symfile_segments): Likewise.
1967 * gdbtypes.c (copy_type_recursive): Likewise.
1968 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
1969 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
1970 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
1971 XCALLOC.
1972 * mt-tdep.c (mt_gdbarch_init): Likewise.
1973 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
1974 XCALLOC.
1975 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
1976 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
1977 * registry.c (registry_alloc_data): Likewise.
1978 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
1979 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
1980 * serial.c (serial_fdopen_ops): Likewise.
1981 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
1982 XCALLOC.
1983 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
1984 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
1985 not XCALLOC.
1986
1987 2014-01-13 Tom Tromey <tromey@redhat.com>
1988
1989 * defs.h (XMALLOC): Remove.
1990 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
1991 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
1992 * cli-out.c (struct ui_out *): Likewise.
1993 * cli/cli-dump.c (add_dump_command): Likewise.
1994 (add_dump_command): Likewise.
1995 * complaints.c (get_complaints): Likewise.
1996 (find_complaint): Likewise.
1997 * dwarf2-frame.c (execute_cfa_program): Likewise.
1998 * dwarf2read.c (abbrev_table_read_table): Likewise.
1999 * gdbarch.sh: Likewise.
2000 * gdbarch.c: Rebuild.
2001 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
2002 * interps.c (interp_new): Likewise.
2003 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
2004 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
2005 * mi/mi-console.c (mi_console_file_new): Likewise.
2006 * mi/mi-interp.c (mi_interpreter_init): Likewise.
2007 * mi/mi-out.c (mi_out_new): Likewise.
2008 * mi/mi-parse.c (mi_parse): Likewise.
2009 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
2010 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
2011 * observer.c (xalloc_observer_list_node): Likewise.
2012 * regcache.c (regcache_xmalloc_1): Likewise.
2013 * reggroups.c (reggroup_new): Likewise.
2014 (_initialize_reggroup): Likewise.
2015 * registry.c (register_data_with_cleanup): Likewise.
2016 * remote.c (remote_notif_stop_alloc_reply): Likewise.
2017 * ser-base.c (serial_ttystate): Likewise.
2018 * ser-mingw.c (make_pipe_state): Likewise.
2019 * ser-pipe.c (pipe_open): Likewise.
2020 * serial.c (serial_open): Likewise.
2021 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
2022 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
2023 (tui_alloc_win_info): Likewise.
2024 (tui_add_content_elements): Likewise.
2025 * tui/tui-file.c (tui_file_new): Likewise.
2026 * tui/tui-out.c (tui_out_new): Likewise.
2027 * ui-file.c (mem_file_new): Likewise.
2028 * ui-out.c (push_level): Likewise.
2029 (make_cleanup_ui_out_end): Likewise.
2030 (append_header_to_list): Likewise.
2031 (ui_out_new): Likewise.
2032 * user-regs.c (user_reg_add_builtin): Likewise.
2033
2034 2014-01-13 Tom Tromey <tromey@redhat.com>
2035
2036 * defs.h (XZALLOC): Remove.
2037 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
2038 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
2039 (get_ada_tasks_inferior_data): Likewise.
2040 * auto-load.c (get_auto_load_pspace_data): Likewise.
2041 * auxv.c (get_auxv_inferior_data): Likewise.
2042 * bfd-target.c (target_bfd_reopen): Likewise.
2043 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
2044 (deprecated_insert_raw_breakpoint): Likewise.
2045 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
2046 * corelow.c (core_open): Likewise.
2047 * darwin-nat.c (darwin_check_new_threads): Likewise.
2048 (darwin_attach_pid): Likewise.
2049 * dummy-frame.c (dummy_frame_push): Likewise.
2050 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
2051 * dwarf2loc.c (allocate_piece_closure): Likewise.
2052 * elfread.c (elf_symfile_segments): Likewise.
2053 * eval.c (ptrmath_type_p): Likewise.
2054 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
2055 * gdbtypes.c (alloc_type_arch): Likewise.
2056 (alloc_type_instance): Likewise.
2057 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2058 * inf-child.c (inf_child_can_use_agent): Likewise.
2059 * inflow.c (get_inflow_inferior_data): Likewise.
2060 * infrun.c (save_infcall_suspend_state): Likewise.
2061 * jit.c (jit_reader_load): Likewise.
2062 (get_jit_objfile_data): Likewise.
2063 (get_jit_program_space_data): Likewise.
2064 (jit_object_open_impl): Likewise.
2065 (jit_symtab_open_impl): Likewise.
2066 (jit_block_open_impl): Likewise.
2067 (jit_frame_sniffer): Likewise.
2068 * linux-fork.c (add_fork): Likewise.
2069 * maint.c (make_command_stats_cleanup): Likewise.
2070 * objfiles.c (get_objfile_pspace_data): Likewise.
2071 * opencl-lang.c (struct lval_closure): Likewise.
2072 * osdata.c (osdata_start_osdata): Likewise.
2073 * progspace.c (new_address_space): Likewise.
2074 (add_program_space): Likewise.
2075 * remote-sim.c (get_sim_inferior_data): Likewise.
2076 * sh-tdep.c (sh_gdbarch_init): Likewise.
2077 * skip.c (Ignore): Likewise.
2078 (skip_delete_command): Likewise.
2079 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
2080 (library_list_start_library): Likewise.
2081 (solib_aix_current_sos): Likewise.
2082 * solib-darwin.c (get_darwin_info): Likewise.
2083 (darwin_current_sos): Likewise.
2084 * solib-dsbt.c (get_dsbt_info): Likewise.
2085 * solib-ia64-hpux.c (new_so_list): Likewise.
2086 (ia64_hpux_get_solib_linkage_addr): Likewise.
2087 * solib-spu.c (append_ocl_sos): Likewise.
2088 (spu_current_sos): Likewise.
2089 * solib-svr4.c (get_svr4_info): Likewise.
2090 (svr4_keep_data_in_core): Likewise.
2091 (library_list_start_library): Likewise.
2092 (svr4_default_sos): Likewise.
2093 (svr4_read_so_list): Likewise.
2094 * solib-target.c (library_list_start_library): Likewise.
2095 (solib_target_current_sos): Likewise.
2096 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
2097 * symfile-debug.c (install_symfile_debug_logging): Likewise.
2098 * symfile.c (default_symfile_segments): Likewise.
2099 * target-descriptions.c (tdesc_data_init): Likewise.
2100 (tdesc_create_reg): Likewise.
2101 (struct tdesc_type *): Likewise.
2102 (tdesc_create_vector): Likewise.
2103 (tdesc_set_struct_size): Likewise.
2104 (struct tdesc_type *): Likewise.
2105 (tdesc_free_feature): Likewise.
2106 (tdesc_create_feature): Likewise.
2107 * windows-nat.c (windows_add_thread): Likewise.
2108 (windows_make_so): Likewise.
2109 * xml-support.c (gdb_xml_body_text): Likewise.
2110 (gdb_xml_create_parser_and_cleanup): Likewise.
2111 (xml_process_xincludes): Likewise.
2112 * xml-syscall.c (allocate_syscalls_info): Likewise.
2113 (syscall_create_syscall_desc): Likewise.
2114
2115 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
2116
2117 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
2118 function, with code from i386_stap_parse_special_token.
2119 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2120 (i386_stap_parse_special_token): Move code to the two functions
2121 above; simplify it.
2122
2123 2014-01-09 Pedro Alves <palves@redhat.com>
2124 Hui Zhu <hui@codesourcery.com>
2125
2126 PR gdb/16101
2127 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
2128 bp_err_string. Don't mark the location shlib_disabled if the
2129 error thrown wasn't a generic or memory error. Catch errors
2130 thrown while inserting breakpoints in overlayed code. Output
2131 error message of software breakpoints.
2132 * remote.c (remote_insert_breakpoint): If this breakpoint has
2133 target-side commands but this stub doesn't support Z0 packets,
2134 throw NOT_SUPPORTED_ERROR error.
2135 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
2136 * target.h (target_insert_breakpoint): Extend comment.
2137 (target_insert_hw_breakpoint): Add comment.
2138
2139 2014-01-08 Pedro Alves <palves@redhat.com>
2140
2141 * remote.c (remote_add_thread): Add threads silently if starting
2142 up.
2143 (remote_notice_new_inferior): If in all-stop, and starting up,
2144 don't call notice_new_inferior.
2145 (get_current_thread): New function, factored out from ...
2146 (add_current_inferior_and_thread): ... this. Adjust.
2147 (remote_start_remote) <all-stop>: Fetch the thread list. If we
2148 found any thread, then select the remote's current thread as GDB's
2149 current thread too.
2150
2151 2014-01-08 Joel Brobecker <brobecker@adacore.com>
2152
2153 * NEWS: Create a new section for the next release branch.
2154 Rename the section of the current branch, now that it has
2155 been cut.
2156
2157 2014-01-08 Joel Brobecker <brobecker@adacore.com>
2158
2159 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
2160 * version.in: Bump version to 7.7.50.DATE-cvs.
2161
2162 2014-01-08 Yao Qi <yao@codesourcery.com>
2163
2164 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
2165 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
2166 (spu_xfer_partial): Cast 'buf' to 'const char *'.
2167
2168 2014-01-08 Yao Qi <yao@codesourcery.com>
2169
2170 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
2171 return value of bfd_get_filename to symbol_file_add_from_bfd.
2172
2173 2014-01-08 Pierre Muller <muller@sourceware.org>
2174
2175 Fix PR16201.
2176 * coff-pe-read.c (struct read_pe_section_data): Add index field.
2177 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
2178 to prim_record_mininal_symbol_and_info.
2179 (add_pe_forwarded_sym): Use known section number of forwarded symbol
2180 in call to prim_record_minimal_symbol_and_info.
2181 (read_pe_exported_syms): Set index field of section_data.
2182
2183 2014-01-07 Andrew Pinski <apinski@cavium.com>
2184
2185 * features/aarch64-core.xml (cpsr): Change to be 64bit.
2186 * features/aarch64.c: Regenerate.
2187
2188 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
2189
2190 * target.c (return_null): Define.
2191 (update_current_target): Use it instead of return_zero for
2192 functions that return a pointer.
2193
2194 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2195
2196 * source.c (add_path): Fix check for duplicated paths in the previously
2197 included paths.
2198
2199 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
2200
2201 * ada-lang.c: Remove duplicated include statements.
2202 * alphabsd-nat.c: Ditto.
2203 * amd64-darwin-tdep.c: Ditto.
2204 * amd64fbsd-nat.c: Ditto.
2205 * auto-load.c: Ditto.
2206 * ax-gdb.c: Ditto.
2207 * breakpoint.c: Ditto.
2208 * dbxread.c: Ditto.
2209 * fork-child.c: Ditto.
2210 * gdb_usleep.c: Ditto.
2211 * i386-darwin-tdep.c: Ditto.
2212 * i386fbsd-nat.c: Ditto.
2213 * infcmd.c: Ditto.
2214 * inferior.c: Ditto.
2215 * jv-lang.c: Ditto.
2216 * linux-nat.c: Ditto.
2217 * linux-tdep.c: Ditto.
2218 * m68kbsd-nat.c: Ditto.
2219 * m68klinux-nat.c: Ditto.
2220 * microblaze-tdep.c: Ditto.
2221 * mips-linux-tdep.c: Ditto.
2222 * mn10300-tdep.c: Ditto.
2223 * nto-tdep.c: Ditto.
2224 * opencl-lang.c: Ditto.
2225 * osdata.c: Ditto.
2226 * printcmd.c: Ditto.
2227 * regcache.c: Ditto.
2228 * remote-m32r-sdi.c: Ditto.
2229 * remote.c: Ditto.
2230 * symfile.c: Ditto.
2231 * symtab.c: Ditto.
2232 * tilegx-linux-nat.c: Ditto.
2233 * tilegx-tdep.c: Ditto.
2234 * tracepoint.c: Ditto.
2235 * valops.c: Ditto.
2236 * vaxbsd-nat.c: Ditto.
2237 * windows-nat.c: Ditto.
2238 * xtensa-tdep.c: Ditto.
2239
2240 2014-01-07 Yao Qi <yao@codesourcery.com>
2241
2242 * spu-linux-nat.c (_initialize_spu_nat): Declare.
2243
2244 2014-01-07 Yao Qi <yao@codesourcery.com>
2245 Joel Brobecker <brobecker@adacore.com>
2246
2247 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
2248 (pdc_write_regs): Likewise.
2249 (fetch_regs_kernel_thread): Likewise.
2250 (store_regs_kernel_thread): Likewise.
2251
2252 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2253
2254 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
2255 tagged type objects to their actual type.
2256
2257 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2258
2259 * ada-valprint.c (print_field_values): Add "language" parameter.
2260 Update calls to print_field_values and print_variant_part.
2261 Pass new parameter "language" in call to val_print instead
2262 of "current_language". Replace call to ada_val_print by call
2263 to val_print.
2264 (print_variant_part): Add "language" parameter.
2265 (ada_val_print_struct_union): Update call to print_field_values.
2266
2267 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2268
2269 * ada-valprint.c (ui_memcpy): Delete.
2270 (ada_print_floating): Update documentation. Add empty line
2271 between between function documentation and implementation.
2272 Delete variable "buffer". Use ui_file_xstrdup in place of
2273 ui_file_put. Minor adjustments following this change.
2274
2275 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2276
2277 * ada-valprint.c (ada_val_print_string): New function,
2278 extracted from ada_val_print_array.
2279 (ada_val_print_array): Replace extracted code by call
2280 to ada_val_print_string followed by a return. Move
2281 "else" branch to the function's top block.
2282
2283 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2284
2285 * ada-valprint.c (ada_val_print_array): Move implementation
2286 down. Rename parameter "offset" and "val" into "offset_aligned"
2287 and "original_value" respectively. Add parameter "offset".
2288
2289 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2290
2291 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
2292 re-organizing the code. Change the "???" message printed
2293 when target type is a TYPE_CODE_UNDEF into
2294 "<ref to undefined type>".
2295
2296 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2297
2298 * ada-valprint.c (print_record): Delete, implementation inlined...
2299 (ada_val_print_struct_union): ... here. Remove call to
2300 ada_check_typedef in inlined implementation.
2301
2302 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2303
2304 * ada-valprint.c (ada_val_print_gnat_array): New function,
2305 extracted from ada_val_print_1;
2306 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
2307 (ada_val_print_flt, ada_val_print_struct_union)
2308 (ada_val_print_ref): Likewise.
2309 (ada_val_print_1): Delete variables i and elttype.
2310 Replace extracted-out code by call to corresponding
2311 new functions.
2312
2313 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2314
2315 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
2316
2317 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2318
2319 * ada-valprint.c (ada_val_print_1): Replace calls to
2320 ada_val_print_1 by calls to val_print.
2321
2322 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2323
2324 * ada-valprint.c (ada_val_print_1): Add parameter "language".
2325 Update calls to self accordingly. Replace calls to c_val_print
2326 by calls to val_print.
2327
2328 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2329
2330 * ada-valprint.c (print_record): Delete declaration.
2331 (adjust_type_signedness, ada_val_print_1): Likewise.
2332 (ada_val_print): Move function implementation down.
2333 (print_variant_part, print_field_values, print_record):
2334 Move function implementation up.
2335
2336 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2337
2338 * python/py-type.c (typy_get_name): New function.
2339 (type_object_getset): Add entry for attribute "name".
2340 * NEWS: Add entry mentioning this new attribute.
2341
2342 2014-01-07 Yao Qi <yao@codesourcery.com>
2343
2344 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
2345 statement.
2346
2347 2014-01-07 Yao Qi <yao@codesourcery.com>
2348
2349 * gnu-nat.c (info_port_rights): Add qualifier const to
2350 argument args.
2351
2352 2014-01-07 Yao Qi <yao@codesourcery.com>
2353
2354 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
2355
2356 2014-01-07 Yao Qi <yao@codesourcery.com>
2357
2358 * gnu-nat.c (make_inf) Update declaration.
2359 (make_inf): Make it static.
2360 (inf_set_traced): Likewise.
2361 (inf_port_to_thread, inf_task_died_status): Likewise.
2362
2363 2014-01-07 Yao Qi <yao@codesourcery.com>
2364
2365 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
2366
2367 2014-01-07 Yao Qi <yao@codesourcery.com>
2368
2369 * gnu-nat.c (_initialize_gnu_nat): Declare.
2370
2371 2014-01-07 Yao Qi <yao@codesourcery.com>
2372
2373 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
2374 'enum bfd_endian'.
2375 (struct gdbarch_info) <byte_order>: Change type to
2376 'enum bfd_endian'.
2377 <byte_order_for_code>: Likewise.
2378 * gdbarch.c, gdbarch.h: Regenerated.
2379
2380 2014-01-06 Sasha Smundak <asmundak@google.com>
2381
2382 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
2383
2384 2014-01-06 Tom Tromey <tromey@redhat.com>
2385
2386 * doublest.c (convert_doublest_to_floatformat): Use const, not
2387 CONST.
2388 * somread.c (som_symtab_read): Likewise.
2389
2390 2014-01-07 Hui Zhu <hui@codesourcery.com>
2391
2392 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
2393 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
2394 (gdb_bfd_fopen): Ditto.
2395 (gdb_bfd_openr): Ditto.
2396 (gdb_bfd_openw): Ditto.
2397 (gdb_bfd_openr_iovec): Ditto.
2398 (gdb_bfd_fdopenr): Ditto.
2399 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
2400 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
2401 with xstrdup.
2402 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
2403 with xstrdup.
2404 * symfile-mem.c (symbol_file_add_from_memory): Removed
2405 gdb_bfd_stash_filename.
2406
2407 2014-01-03 Doug Evans <dje@google.com>
2408
2409 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
2410 output.
2411
2412 2014-01-01 Joel Brobecker <brobecker@adacore.com>
2413
2414 Update year range in copyright notice of all files.
2415
2416 2014-01-01 Joel Brobecker <brobecker@adacore.com>
2417
2418 * top.c (print_gdb_version): Set copyright year to 2014.
2419
2420 2014-01-01 Joel Brobecker <brobecker@adacore.com>
2421
2422 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
2423
2424 For older changes see ChangeLog-2013.
2425 \f
2426 Local Variables:
2427 mode: change-log
2428 left-margin: 8
2429 fill-column: 74
2430 version-control: never
2431 coding: utf-8
2432 End:
This page took 0.147903 seconds and 5 git commands to generate.