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