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