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