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