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