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