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