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