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