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