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