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