Replace hardwired error handler in captured_main
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
fd0ef3dd
GB
12014-08-29 Gary Benson <gbenson@redhat.com>
2
3 * main.c (captured_main): Replace a fprintf/exit
4 pair with a call to error. Wrap the message with _().
5
e0e6bcab
GB
62014-08-29 Gary Benson <gbenson@redhat.com>
7
8 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
9 pairs with calls to error. Wrap the message with _().
10
0d2f5c07
GB
112014-08-29 Gary Benson <gbenson@redhat.com>
12
13 * utils.c (vwarning): Protect calls to target_terminal_ours
14 and wrap_here.
15
5df43998
GB
162014-08-29 Gary Benson <gbenson@redhat.com>
17
18 * exceptions.c (print_flush): Protect calls to
19 target_terminal_ours and wrap_here.
20
2437fd32
GB
212014-08-29 Gary Benson <gbenson@redhat.com>
22
23 * utils.h (filtered_printing_initialized): New declaration.
24 * utils.c (abort_with_message): New function.
25 (internal_vproblem): Use abort_with_message for first level
26 recursive internal problems, and if gdb_stderr is not set up.
27 Protect calls to target_terminal_ours, begin_line and query.
28
f1f58506
DE
292014-08-28 Doug Evans <dje@google.com>
30
31 * symtab.c (in_prologue): Move definition to better spot.
32 (skip_prologue_using_sal): Ditto.
33
aab2f208
DE
342014-08-28 Doug Evans <dje@google.com>
35
36 * symtab.c (find_function_start_sal): Move definition to better spot.
37
6b65d1b6
YQ
382014-08-28 Yao Qi <yao@codesourcery.com>
39
40 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
41 found_stack_adjust in forward scan. Remove condition check
42 on found_stack_adjust which is always true. Indent the code.
43
a1b34d15
YQ
442014-08-28 Yao Qi <yao@codesourcery.com>
45
46 * dwarf2read.c (dwarf_decode_lines): Update declaration.
47 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
48 (dwarf_decode_lines): Remove argument
49 want_line_info. Remove condition check on want_line_info.
50 Callers update.
51
d5962de5
DE
522014-08-27 Doug Evans <dje@google.com>
53
54 * dwarf2read.c (dwarf_record_line): Fix typo.
55
9b139002
SDJ
562014-08-27 Patrick Palka <patrick@parcs.ath.cx>
57
58 * target.h (struct target_ops::to_terminal_save_ours): Remove
59 declaration.
60 (target_terminal_save_ours): Remove macro.
61 * target-delegates.c: Regenerate.
62 * inf-child.c (inf_child_target): Don't set the nonexistent
63 field to_terminal_save_ours.
64 * inferior.h (child_terminal_save_ours): Remove declaration.
65 * terminal.h (gdb_save_tty_state): New declaration.
66 * inflow.c (child_terminal_save_ours): Rename to ...
67 (gdb_save_tty_state): ... this.
68 * tui/tui.c: Include terminal.h.
69 (tui_enable): Use gdb_save_tty_state instead of
70 target_terminal_save_ours.
71 (tui_disable): Likewise.
72
9debeba0
DE
732014-08-25 Doug Evans <dje@google.com>
74
75 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
76 Pass NULL instead of 0 for context pointer.
77
428fc5fc
YQ
782014-08-25 Yao Qi <yao@codesourcery.com>
79
80 * dwarf2read.c: Fix grammatical error.
81
cdc07690
YQ
822014-08-24 Yao Qi <yao@codesourcery.com>
83
84 * dwarf2read.c (scan_partial_symbols): Update comments.
85 Rename argument 'need_pc' with 'set_addrmap'.
86 (add_partial_namespace): Rename argument 'need_pc' with
87 'set_addrmap'.
88 (add_partial_module): Likewise.
89 (add_partial_subprogram): Likewise. Update comments.
90 (dwarf2_name): Fix typo.
91
a05a36a5
DE
922014-08-22 Doug Evans <dje@google.com>
93
94 PR 17276
95 * dwarf2read.c (dwarf_record_line_p): New function.
96 (dwarf_decode_lines_1): Ignore subsequent line number entries
97 for the same line if any entry had a non-zero discriminator.
98
252a6764
DE
992014-08-22 Doug Evans <dje@google.com>
100
101 * buildsym.h (record_line_ftype): New typedef.
102 (record_line): Use it.
103 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
104 (dwarf_decode_lines_1): Call them.
105
510db052
YQ
1062014-08-22 Yao Qi <yao@codesourcery.com>
107
108 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
109 (ctf_end): Remove code.
110
22fd09ae
JK
1112014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
112
113 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
114 (linux_make_corefile_notes): call update_thread_list, protected against
115 exceptions.
116
656e8868
PA
1172014-08-21 Pedro Alves <palves@redhat.com>
118
119 * infcmd.c (attach_command): Remove comment.
120
de589d04
WN
1212014-08-21 Bin Cheng <bin.cheng@arm.com>
122
123 * aarch64-linux-nat.c (dr_changed_t): Change the type from
124 unsigned LONGEST to ULONGEST.
125
2a31c623
PA
1262014-08-20 Pedro Alves <palves@redhat.com>
127
128 * Makefile.in (check-read1): New rule.
129
d36430db
JB
1302014-08-20 Joel Brobecker <brobecker@adacore.com>
131
132 * value.c (value_from_contents_and_address): Strip resolved_type's
133 typedef layers before checking its TYPE_DATA_LOCATION.
134
000339af
PA
1352014-08-20 Pedro Alves <palves@redhat.com>
136
137 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
138
5f52445b
YQ
1392014-08-20 Yao Qi <yao@codesourcery.com>
140
141 * amd64-tdep.c (amd64_classify): Add a blank line after the
142 example. Move "*/" to a new line.
143 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
144 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
145 * dwarf2read.c (psymtab_include_file_name): Likewise.
146
9a0dc9e3
PA
1472014-08-19 Andrew Burgess <aburgess@broadcom.com>
148 Pedro Alves <palves@redhat.com>
149
150 PR symtab/14604
151 PR symtab/14605
152 * ada-lang.c (coerce_unspec_val_to_type): Use
153 value_contents_copy_raw.
154 * ada-valprint.c (val_print_packed_array_elements): Adjust.
155 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
156 * cp-valprint.c (cp_print_value_fields): Let the common printing
157 code handle optimized out values.
158 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
159 * d-valprint.c (dynamic_array_type): Use
160 value_bits_any_optimized_out.
161 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
162 check_any_valid fields.
163 (check_pieced_value_bits): Delete and inline ...
164 (check_pieced_synthetic_pointer): ... here.
165 (check_pieced_value_validity): Delete.
166 (check_pieced_value_invalid): Delete.
167 (pieced_value_funcs): Remove check_validity and check_any_valid
168 fields.
169 (read_pieced_value): Use mark_value_bits_optimized_out.
170 (write_pieced_value): Switch to use
171 mark_value_bytes_optimized_out.
172 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
173 of assuming the whole value is optimized out.
174 * findvar.c (read_frame_register_value): Remove special handling
175 of optimized out registers.
176 (value_from_register): Use mark_value_bytes_optimized_out.
177 * frame-unwind.c (frame_unwind_got_optimized): Use
178 mark_value_bytes_optimized_out.
179 * jv-valprint.c (java_value_print): Adjust.
180 (java_print_value_fields): Let the common printing code handle
181 optimized out values.
182 * mips-tdep.c (mips_print_register): Remove special handling of
183 optimized out registers.
184 * opencl-lang.c (lval_func_check_validity): Delete.
185 (lval_func_check_any_valid): Delete.
186 (opencl_value_funcs): Remove check_validity and check_any_valid
187 fields.
188 * p-valprint.c (pascal_object_print_value_fields): Let the common
189 printing code handle optimized out values.
190 * stack.c (read_frame_arg): Remove special handling of optimized
191 out values. Fetch both VAL and ENTRYVAL before comparing
192 contents. Adjust to value_available_contents_eq rename.
193 * valprint.c (valprint_check_validity)
194 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
195 (val_print_array_elements): Adjust.
196 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
197 (value_bits_any_optimized_out): New function.
198 (value_entirely_covered_by_range_vector): New function, factored
199 out from value_entirely_unavailable.
200 (value_entirely_unavailable): Reimplement.
201 (value_entirely_optimized_out): New function.
202 (insert_into_bit_range_vector): New function, factored out from
203 mark_value_bits_unavailable.
204 (mark_value_bits_unavailable): Reimplement.
205 (struct ranges_and_idx): New struct.
206 (find_first_range_overlap_and_match): New function, factored out
207 from value_available_contents_bits_eq.
208 (value_available_contents_bits_eq): Rename to ...
209 (value_contents_bits_eq): ... this. Check both unavailable
210 contents and optimized out contents.
211 (value_available_contents_eq): Rename to ...
212 (value_contents_eq): ... this.
213 (allocate_value_lazy): Remove reference to the old optimized_out
214 boolean.
215 (allocate_optimized_out_value): Use
216 mark_value_bytes_optimized_out.
217 (require_not_optimized_out): Adjust to check whether the
218 optimized_out vec is empty.
219 (ranges_copy_adjusted): New function, factored out from
220 value_contents_copy_raw.
221 (value_contents_copy_raw): Also copy the optimized out ranges.
222 Assert the destination ranges aren't optimized out.
223 (value_contents_copy): Update comment, remove call to
224 require_not_optimized_out.
225 (value_contents_equal): Adjust to check whether the optimized_out
226 vec is empty.
227 (set_value_optimized_out, value_optimized_out_const): Delete.
228 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
229 New functions.
230 (value_entirely_optimized_out, value_bits_valid): Delete.
231 (value_copy): Take a VEC copy of the 'optimized_out' field.
232 (value_primitive_field): Remove special handling of optimized out.
233 (value_fetch_lazy): Assert that lazy values have no unavailable
234 regions. Use value_bits_any_optimized_out. Remove some special
235 handling for optimized out values.
236 * value.h: Add intro comment about <optimized out> and
237 <unavailable>.
238 (struct lval_funcs): Remove check_validity and check_any_valid
239 fields.
240 (set_value_optimized_out, value_optimized_out_const): Remove.
241 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
242 New declarations.
243 (value_bits_any_optimized_out): New declaration.
244 (value_bits_valid): Delete declaration.
245 (value_available_contents_eq): Rename to ...
246 (value_contents_eq): ... this, and extend comments.
247
6694c411
JK
2482014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
249
250 Fix -fsanitize=address on unreadable inferior strings.
251 * valprint.c (val_print_string): Fix access before BUFFER.
252
89a1c21a
SM
2532014-08-19 Simon Marchi <simon.marchi@ericsson.com>
254
255 * target.c (target_struct_size): Remove.
256 (target_struct_allocsize): Remove.
257 (DEFAULT_ALLOCSIZE): Remove.
258 (target_ops_p): New typedef.
259 (DEF_VEC_P (target_ops_p)): New vector type.
260 (target_structs): Change type to VEC (target_ops_p).
261 (add_target_with_completer): Replace "push" code by VEC_safe_push.
262 (find_default_run_target): Rewrite for loop following changes to
263 target_structs.
264
cb417230
JB
2652014-08-19 Joel Brobecker <brobecker@adacore.com>
266
267 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
268 Adjust code accordingly. Adjust function description comment.
269
817e0957
YQ
2702014-08-19 Yao Qi <yao@codesourcery.com>
271
272 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
273 types.
274
2974be62
AM
2752014-08-19 Alan Modra <amodra@gmail.com>
276
277 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
278 * config.in: Regenerate.
279 * configure: Regenerate.
280
34abf635
GB
2812014-08-19 Tom Tromey <tromey@redhat.com>
282 Gary Benson <gbenson@redhat.com>
283
284 * common/common-debug.h: New file.
285 * common/common-debug.c: Likewise.
286 * debug.c: Likewise.
287 * Makefile.in (SFILES): Add common/common-debug.c.
288 (HFILES_NO_SRCDIR): Add common/common-debug.h.
289 (COMMON_OBS): Add common-debug.o and debug.o.
290 (common-debug.o): New rule.
291 * common/common-defs.h: Include common-debug.h.
292 * common/agent.c (debug_agent_printf): New function.
293 (DEBUG_AGENT): Redefine.
294 * nat/i386-dregs.c (debug_printf): Undefine.
295
f6e94d78
GB
2962014-08-19 Gary Benson <gbenson@redhat.com>
297
298 * common/common-defs.h: Include print-utils.h.
299 * utils.h: Do not include print-utils.h.
300
9239eeab
GB
3012014-08-19 Tom Tromey <tromey@redhat.com>
302 Gary Benson <gbenson@redhat.com>
303
304 * common/common-types.h: New file.
305 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
306 * common/common-defs.h: Include common-types.h.
307 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
308 (ULONGEST): Remove.
309
ef87c8bb
GB
3102014-08-19 Tom Tromey <tromey@redhat.com>
311 Gary Benson <gbenson@redhat.com>
312
313 * common/errors.h: New file.
314 * common/errors.c: Likewise.
315 * Makefile.in (SFILES): Add common/errors.c.
316 (HFILES_NO_SRCDIR): Add common/errors.h.
317 (COMMON_OBS): Add errors.o.
318 (errors.o): New rule.
319 * common/common-defs.h: Include errors.h.
320 * utils.h (perror_with_name, error, verror, warning, vwarning):
321 Don't declare.
322 * common/common-utils.h: (malloc_failure, internal_error):
323 Likewise.
324
196a707b
GB
3252014-08-19 Gary Benson <gbenson@redhat.com>
326
327 * utils.c (internal_vproblem): Always print the message.
328
ded4fc8f
DE
3292014-08-18 Doug Evans <dje@google.com>
330
331 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
332
950c97d8
JB
3332014-08-18 Joel Brobecker <brobecker@adacore.com>
334
335 * ada-typeprint.c (type_is_full_subrange_of_target_type):
336 Return 0 if TYPE is dynamic.
337 (print_range): Add handling of dynamic ranges.
338
3cdcd0ce
JB
3392014-08-18 Keven Boell <keven.boell@intel.com>
340 Joel Brobecker <brobecker@adacore.com>
341
342 * gdbtypes.h (struct main_type): Add field "data_location".
343 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
344 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
345 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
346 a dynamic data location.
347 (resolve_dynamic_type): Add DW_AT_data_location handling.
348 (copy_recursive, copy_type): Copy the data_location information
349 when present.
350 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
351 * value.c (value_from_contents_and_address): Add
352 DW_AT_data_location handling.
353
08412b07
JB
3542014-08-18 Keven Boell <keven.boell@intel.com>
355 Joel Brobecker <brobecker@adacore.com>
356
357 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
358 field "get_object_address".
359 * dwarf2expr.c (execute_stack_op): Add handling for
360 DW_OP_push_object_address.
361 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
362 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
363 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
364 (dwarf_expr_get_obj_addr): New function.
365 (dwarf_expr_ctx_funcs): Add get_object_address field.
366 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
367 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
368 (dwarf2_evaluate_property): Add parameter "address". Use it.
369 (needs_get_obj_addr): New function.
370 (needs_frame_ctx_funcs): Add get_object_address field.
371 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
372 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
373 (resolve_dynamic_array): Likewise.
374
84754697
JB
3752014-08-18 Joel Brobecker <brobecker@adacore.com>
376
377 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
378 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
379 fixed value for records and unions for which some GNAT encodings
380 are present.
381
da5c522f
JB
3822014-08-18 Joel Brobecker <brobecker@adacore.com>
383
384 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
385 rewrite to avoid "else if" and "else" constructs. Should be
386 a no-op in practice.
387
0d72a7c3
JB
3882014-08-18 Joel Brobecker <brobecker@adacore.com>
389
390 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
391 of lexical block.
392
e66d4446
SC
3932014-08-15 Siva Chandra Reddy <sivachandra@google.com>
394
395 PR c++/17132
396 * eval.c: Update all calls to find_overload_match.
397 * valarith.c: Likewise.
398 (value_user_defined_cpp_op, value_user_defined_op): New
399 argument NOSIDE. Update all callers.
400 * valops.c (find_overload_match): New argument NOSIDE.
401 * value.h (find_overload_match): Update signature.
402
940df408
SC
4032014-08-15 Siva Chandra Reddy <sivachandra@google.com>
404
405 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
406 'items' methods instead of 'iteritems' method on dictionaries.
407
699ca60a
DE
4082014-08-15 Doug Evans <dje@google.com>
409
410 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
411 closer to use.
412
37780ee5
DE
4132014-08-15 Doug Evans <dje@google.com>
414
415 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
416
0ad93d4f
DE
4172014-08-15 Doug Evans <dje@google.com>
418
419 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
420
20d8c372
DE
4212014-08-15 Doug Evans <dje@google.com>
422
423 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
424 unused.
425
cb039ba4
EZ
4262014-08-15 Eli Zaretskii <eliz@gnu.org>
427
428 * dcache.h: Include target.h, to avoid compile time warnings.
429
eb7a547a
JB
4302014-08-15 Joel Brobecker <brobecker@adacore.com>
431
432 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
433 frame_info" partial declaration.
434 * gdbarch.h: Regenerate.
435
783cecc8
YQ
4362014-08-15 Yao Qi <yao@codesourcery.com>
437
438 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
439 Add parameter 'decode_for_pst_p'. Callers update.
440
65c749e7
YQ
4412014-08-13 Yao Qi <yao@codesourcery.com>
442
443 PR build/17104
444 * configure.ac: Use local variable 'pos'.
445 * configure: Regenerated.
446
d769e349
DE
4472014-08-11 Doug Evans <dje@google.com>
448
449 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
450 message, it is redundant with "Reading symbols from ..." message.
451
24f1235e
DE
4522014-08-10 Doug Evans <xdje42@gmail.com>
453
454 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
455
dcd2e6ef
YQ
4562014-08-09 Yao Qi <yao@codesourcery.com>
457
458 PR remote/9053
459 * remote.c (remote_xfer_partial): Remove dead code.
460
070bdf0b
AA
4612014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
462
463 * ia64-linux-tdep.c: Include "regset.h".
464 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
465 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
466 (ia64_linux_supply_fpregset): New function.
467 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
468 (ia64_linux_regset_from_core_section): New function.
469 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
470 method.
471
08f9f542
AA
4722014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
473
474 * m68klinux-tdep.c: Include "regset.h".
475 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
476 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
477 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
478 (m68k_linux_regset_from_core_section): New function.
479 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
480 method.
481
8f1cee41
AA
4822014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
483
484 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
485 function. Move logic to...
486 (tilegx_linux_regmap): ... this new register map.
487 (tilegx_linux_regset): Refer to register map, replace supply
488 method by regcache_supply_regset, and add collect method.
489 * tilegx-tdep.h (enum tilegx_regnum): New enum value
490 TILEGX_FIRST_EASY_REGNUM.
491
c5741217
AA
4922014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
493
494 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
495 that calls regcache_supply_regset and handles the EPC register
496 separately. Move main logic to...
497 (score7_linux_gregmap): ... this new register map.
498 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
499 (score7_linux_gregset): Refer to register map. Add collect method.
500 (score7_linux_regset_from_core_section): Replace
501 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
502 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
503 (struct regset): Delete unused forward declaraction.
504 (struct pt_regs): Delete structure definition.
505 (elf_gregset_t): Delete typedef.
506
81580573
AA
5072014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
508
509 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
510 (nios2_core_regset): Add collect method.
511
ba199d7d
AA
5122014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
513
514 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
515 platform-independent and don't write to read-only input buffer.
516 (m32r_linux_collect_gregset): New function.
517 (m32r_linux_gregset): Add collect method.
518
0006a9da
AA
5192014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
520
521 * hppa-linux-tdep.c (greg_map): Rename to...
522 (hppa_linux_gregmap): ... this. Also convert to
523 regcache_map_entry format.
524 (hppa_linux_supply_regset): Delete function.
525 (hppa_linux_supply_fpregset): Delete function. Move logic to...
526 (hppa_linux_fpregmap): ... this new register map.
527 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
528 register map, replace supply method by regcache_supply_regset, and
529 add collect method regcache_collect_regset.
530
901e1b23
AA
5312014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
532
533 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
534 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
535 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
536 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
537 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
538 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
539 (frv_linux_supply_gregset): Replace main logic by call to
540 regcache_supply_regset, but keep clearing gr32-gr63.
541 (frv_linux_supply_fpregset): Delete function.
542 (frv_linux_gregset): Refer to appropriate register map and add
543 regcache_collect_regset as the collect method.
544 (frv_linux_fpregset): Likewise. Also exchange the supply method
545 by regcache_supply_regset.
546
1d6e7555
AA
5472014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
548
549 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
550 by call to alpha_supply_int_regs.
551 (alpha_linux_collect_gregset): New function.
552 (alpha_linux_supply_fpregset): Replace logic by call to
553 alpha_supply_fp_regs.
554 (alpha_linux_collect_fpregset): New function.
555 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
556
d4d793bf
AA
5572014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
558
559 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
560 by call to regcache_collect_regset.
561 (supply_gregset, supply_fpregset): Call regcache_supply_regset
562 instead of aarch64_linux_supply_gregset/_fpregset.
563 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
564 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
565 header file instead.
566 (aarch64_linux_supply_gregset, supply_gregset_from_core)
567 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
568 functions. Move logic to ...
569 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
570 register maps.
571 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
572 refer to new register maps, replace *_regset_from_core by
573 regcache_supply_regset, and also use regcache_collect_regset.
574 * aarch64-linux-tdep.h: Include "regset.h".
575 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
576 Delete prototypes.
577 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
578 macros, moved from C source file.
579 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
580 variable declarations.
581
99b7da5d
AA
5822014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
583
584 * s390-linux-nat.c: Include "regset.h".
585 (regmap_gregset): Delete macro.
586 (s390_64_regmap_gregset): New register map for
587 regcache_supply/_collect_regset.
588 (s390_64_gregset): New regset.
589 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
590 (regmap_fpregset): Delete macro.
591 (s390_native_supply, s390_native_collect): Delete functions.
592 (supply_gregset, fill_gregset): Replace s390-specific regmap
593 handling by a call to regcache_supply/_collect_regset.
594 (supply_fpregset, fill_fpregset): Call regcache_supply/
595 _collect_regset instead of s390_native_supply/_collect.
596 (fetch_regset, store_regset): Likewise. Also change the last
597 parameter to a regset instead of a regmap.
598 (s390_linux_fetch_inferior_registers)
599 (390_linux_store_inferior_registers): Adjust last parameter in
600 calls to fetch_regset and store_regset.
601 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
602 (s390_gregmap): ... this. Also make static const and convert to
603 regcache_map_entry format.
604 (s390x_regmap_gregset): Delete.
605 (s390_regmap_fpregset): Rename to...
606 (s390_fpregmap): ... this. Make static const and convert to
607 regcache_map_entry format.
608 (s390_regmap_upper, s390_regmap_last_break)
609 (s390x_regmap_last_break, s390_regmap_system_call)
610 (s390_regmap_tdb): Likewise.
611 (s390_supply_regset, s390_collect_regset): Remove functions.
612 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
613 s390_supply_regset.
614 (s390_gregset, s390_fpregset, s390_upper_regset)
615 (s390_last_break_regset, s390x_last_break_regset)
616 (s390_system_call_regset, s390_tdb_regset): Make global and
617 replace s390_supply/_collect_regset by regcache_supply/
618 _collect_regset.
619 (s390x_gregset): Delete.
620 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
621 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
622 (s390_regmap_fpregset, s390_regmap_last_break)
623 (s390x_regmap_last_break, s390_regmap_system_call)
624 (s390_regmap_tdb): Delete global variable declarations.
625 (s390_gregset, s390_fpregset, s390_last_break_regset)
626 (s390x_last_break_regset, s390_system_call_regset)
627 (s390_tdb_regset): New global variable declarations.
628
0b309272
AA
6292014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
630
631 * regcache.c: Include "regset.h".
632 (regcache_transfer_regset): New local function.
633 (regcache_supply_regset, regcache_collect_regset): New functions.
634 * regcache.h (struct regcache_map_entry): New structure.
635 (REGCACHE_MAP_SKIP): New enum value.
636 (regcache_supply_regset, regcache_collect_regset): New prototypes.
637
7fefa8d7
AA
6382014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
639
640 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
641 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
642 (ppc_linux_collect_gregset ): Likewise.
643 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
644 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
645 (ppc_collect_vrregset): Likewise.
646 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
647 Likewise.
648
96c4f946
YQ
6492014-08-07 Yao Qi <yao@codesourcery.com>
650
651 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
652 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
653 * remote.c (remote_read_bytes): Likewise.
654
fffbe6a8
YQ
6552014-08-07 Yao Qi <yao@codesourcery.com>
656
657 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
658
5ee8a82c
YQ
6592014-08-07 Yao Qi <yao@codesourcery.com>
660
661 PR remote/17230
662 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
663 TARGET_XFER_OK instead of 0.
664
bb974a24
GB
6652014-08-07 Gary Benson <gbenson@redhat.com>
666
667 * common/common-defs.h: Include errno.h.
668 * defs.h: Do not include errno.h.
669 * ada-typeprint.c: Likewise.
670 * c-typeprint.c: Likewise.
671 * core-regset.c: Likewise.
672 * corefile.c: Likewise.
673 * corelow.c: Likewise.
674 * event-loop.c: Likewise.
675 * f-typeprint.c: Likewise.
676 * gnu-nat.c: Likewise.
677 * go32-nat.c: Likewise.
678 * i386gnu-nat.c: Likewise.
679 * m2-typeprint.c: Likewise.
680 * nat/linux-btrace.c: Likewise.
681 * p-typeprint.c: Likewise.
682 * procfs.c: Likewise.
683 * remote-sim.c: Likewise.
684 * rs6000-nat.c: Likewise.
685 * target.c: Likewise.
686 * typeprint.c: Likewise.
687 * ui-file.c: Likewise.
688 * valops.c: Likewise.
689 * valprint.c: Likewise.
690
6d3d12eb
GB
6912014-08-07 Gary Benson <gbenson@redhat.com>
692
693 * common/common-defs.h: Include string.h.
694 * aarch64-tdep.c: Do not include string.h.
695 * ada-exp.y: Likewise.
696 * ada-lang.c: Likewise.
697 * ada-lex.l: Likewise.
698 * ada-typeprint.c: Likewise.
699 * ada-valprint.c: Likewise.
700 * aix-thread.c: Likewise.
701 * alpha-linux-tdep.c: Likewise.
702 * alpha-mdebug-tdep.c: Likewise.
703 * alpha-nat.c: Likewise.
704 * alpha-osf1-tdep.c: Likewise.
705 * alpha-tdep.c: Likewise.
706 * alphanbsd-tdep.c: Likewise.
707 * amd64-dicos-tdep.c: Likewise.
708 * amd64-linux-tdep.c: Likewise.
709 * amd64-nat.c: Likewise.
710 * amd64-sol2-tdep.c: Likewise.
711 * amd64fbsd-tdep.c: Likewise.
712 * amd64obsd-tdep.c: Likewise.
713 * arch-utils.c: Likewise.
714 * arm-linux-nat.c: Likewise.
715 * arm-linux-tdep.c: Likewise.
716 * arm-tdep.c: Likewise.
717 * arm-wince-tdep.c: Likewise.
718 * armbsd-tdep.c: Likewise.
719 * armnbsd-nat.c: Likewise.
720 * armnbsd-tdep.c: Likewise.
721 * armobsd-tdep.c: Likewise.
722 * avr-tdep.c: Likewise.
723 * ax-gdb.c: Likewise.
724 * ax-general.c: Likewise.
725 * bcache.c: Likewise.
726 * bfin-tdep.c: Likewise.
727 * breakpoint.c: Likewise.
728 * build-id.c: Likewise.
729 * buildsym.c: Likewise.
730 * c-exp.y: Likewise.
731 * c-lang.c: Likewise.
732 * c-typeprint.c: Likewise.
733 * c-valprint.c: Likewise.
734 * charset.c: Likewise.
735 * cli-out.c: Likewise.
736 * cli/cli-cmds.c: Likewise.
737 * cli/cli-decode.c: Likewise.
738 * cli/cli-dump.c: Likewise.
739 * cli/cli-interp.c: Likewise.
740 * cli/cli-logging.c: Likewise.
741 * cli/cli-script.c: Likewise.
742 * cli/cli-setshow.c: Likewise.
743 * cli/cli-utils.c: Likewise.
744 * coffread.c: Likewise.
745 * common/agent.c: Likewise.
746 * common/buffer.c: Likewise.
747 * common/buffer.h: Likewise.
748 * common/common-utils.c: Likewise.
749 * common/filestuff.c: Likewise.
750 * common/filestuff.c: Likewise.
751 * common/format.c: Likewise.
752 * common/print-utils.c: Likewise.
753 * common/rsp-low.c: Likewise.
754 * common/signals.c: Likewise.
755 * common/vec.h: Likewise.
756 * common/xml-utils.c: Likewise.
757 * core-regset.c: Likewise.
758 * corefile.c: Likewise.
759 * corelow.c: Likewise.
760 * cp-abi.c: Likewise.
761 * cp-name-parser.y: Likewise.
762 * cp-support.c: Likewise.
763 * cp-valprint.c: Likewise.
764 * cris-tdep.c: Likewise.
765 * d-exp.y: Likewise.
766 * darwin-nat.c: Likewise.
767 * dbxread.c: Likewise.
768 * dcache.c: Likewise.
769 * demangle.c: Likewise.
770 * dicos-tdep.c: Likewise.
771 * disasm.c: Likewise.
772 * doublest.c: Likewise.
773 * dsrec.c: Likewise.
774 * dummy-frame.c: Likewise.
775 * dwarf2-frame.c: Likewise.
776 * dwarf2loc.c: Likewise.
777 * dwarf2read.c: Likewise.
778 * elfread.c: Likewise.
779 * environ.c: Likewise.
780 * eval.c: Likewise.
781 * event-loop.c: Likewise.
782 * exceptions.c: Likewise.
783 * exec.c: Likewise.
784 * expprint.c: Likewise.
785 * f-exp.y: Likewise.
786 * f-lang.c: Likewise.
787 * f-typeprint.c: Likewise.
788 * f-valprint.c: Likewise.
789 * fbsd-nat.c: Likewise.
790 * findcmd.c: Likewise.
791 * findvar.c: Likewise.
792 * fork-child.c: Likewise.
793 * frame.c: Likewise.
794 * frv-linux-tdep.c: Likewise.
795 * frv-tdep.c: Likewise.
796 * gdb.c: Likewise.
797 * gdb_bfd.c: Likewise.
798 * gdbarch.c: Likewise.
799 * gdbarch.sh: Likewise.
800 * gdbtypes.c: Likewise.
801 * gnu-nat.c: Likewise.
802 * gnu-v2-abi.c: Likewise.
803 * gnu-v3-abi.c: Likewise.
804 * go-exp.y: Likewise.
805 * go-lang.c: Likewise.
806 * go32-nat.c: Likewise.
807 * guile/guile.c: Likewise.
808 * guile/scm-auto-load.c: Likewise.
809 * hppa-hpux-tdep.c: Likewise.
810 * hppa-linux-nat.c: Likewise.
811 * hppanbsd-tdep.c: Likewise.
812 * hppaobsd-tdep.c: Likewise.
813 * i386-cygwin-tdep.c: Likewise.
814 * i386-dicos-tdep.c: Likewise.
815 * i386-linux-tdep.c: Likewise.
816 * i386-nto-tdep.c: Likewise.
817 * i386-sol2-tdep.c: Likewise.
818 * i386-tdep.c: Likewise.
819 * i386bsd-tdep.c: Likewise.
820 * i386gnu-nat.c: Likewise.
821 * i386nbsd-tdep.c: Likewise.
822 * i386obsd-tdep.c: Likewise.
823 * i387-tdep.c: Likewise.
824 * ia64-libunwind-tdep.c: Likewise.
825 * ia64-linux-nat.c: Likewise.
826 * inf-child.c: Likewise.
827 * inf-ptrace.c: Likewise.
828 * inf-ttrace.c: Likewise.
829 * infcall.c: Likewise.
830 * infcmd.c: Likewise.
831 * inflow.c: Likewise.
832 * infrun.c: Likewise.
833 * interps.c: Likewise.
834 * iq2000-tdep.c: Likewise.
835 * irix5-nat.c: Likewise.
836 * jv-exp.y: Likewise.
837 * jv-lang.c: Likewise.
838 * jv-typeprint.c: Likewise.
839 * jv-valprint.c: Likewise.
840 * language.c: Likewise.
841 * linux-fork.c: Likewise.
842 * linux-nat.c: Likewise.
843 * lm32-tdep.c: Likewise.
844 * m2-exp.y: Likewise.
845 * m2-typeprint.c: Likewise.
846 * m32c-tdep.c: Likewise.
847 * m32r-linux-nat.c: Likewise.
848 * m32r-linux-tdep.c: Likewise.
849 * m32r-rom.c: Likewise.
850 * m32r-tdep.c: Likewise.
851 * m68hc11-tdep.c: Likewise.
852 * m68k-tdep.c: Likewise.
853 * m68kbsd-tdep.c: Likewise.
854 * m68klinux-nat.c: Likewise.
855 * m68klinux-tdep.c: Likewise.
856 * m88k-tdep.c: Likewise.
857 * machoread.c: Likewise.
858 * macrocmd.c: Likewise.
859 * main.c: Likewise.
860 * mdebugread.c: Likewise.
861 * mem-break.c: Likewise.
862 * memattr.c: Likewise.
863 * memory-map.c: Likewise.
864 * mep-tdep.c: Likewise.
865 * mi/mi-cmd-break.c: Likewise.
866 * mi/mi-cmd-disas.c: Likewise.
867 * mi/mi-cmd-env.c: Likewise.
868 * mi/mi-cmd-stack.c: Likewise.
869 * mi/mi-cmd-var.c: Likewise.
870 * mi/mi-cmds.c: Likewise.
871 * mi/mi-console.c: Likewise.
872 * mi/mi-getopt.c: Likewise.
873 * mi/mi-interp.c: Likewise.
874 * mi/mi-main.c: Likewise.
875 * mi/mi-parse.c: Likewise.
876 * microblaze-rom.c: Likewise.
877 * microblaze-tdep.c: Likewise.
878 * mingw-hdep.c: Likewise.
879 * minidebug.c: Likewise.
880 * minsyms.c: Likewise.
881 * mips-irix-tdep.c: Likewise.
882 * mips-linux-tdep.c: Likewise.
883 * mips-tdep.c: Likewise.
884 * mips64obsd-tdep.c: Likewise.
885 * mipsnbsd-tdep.c: Likewise.
886 * mipsread.c: Likewise.
887 * mn10300-linux-tdep.c: Likewise.
888 * mn10300-tdep.c: Likewise.
889 * monitor.c: Likewise.
890 * moxie-tdep.c: Likewise.
891 * mt-tdep.c: Likewise.
892 * nat/linux-btrace.c: Likewise.
893 * nat/linux-osdata.c: Likewise.
894 * nat/linux-procfs.c: Likewise.
895 * nat/linux-ptrace.c: Likewise.
896 * nat/linux-waitpid.c: Likewise.
897 * nbsd-tdep.c: Likewise.
898 * nios2-linux-tdep.c: Likewise.
899 * nto-procfs.c: Likewise.
900 * nto-tdep.c: Likewise.
901 * objc-lang.c: Likewise.
902 * objfiles.c: Likewise.
903 * opencl-lang.c: Likewise.
904 * osabi.c: Likewise.
905 * osdata.c: Likewise.
906 * p-exp.y: Likewise.
907 * p-lang.c: Likewise.
908 * p-typeprint.c: Likewise.
909 * parse.c: Likewise.
910 * posix-hdep.c: Likewise.
911 * ppc-linux-nat.c: Likewise.
912 * ppc-sysv-tdep.c: Likewise.
913 * ppcfbsd-tdep.c: Likewise.
914 * ppcnbsd-tdep.c: Likewise.
915 * ppcobsd-tdep.c: Likewise.
916 * printcmd.c: Likewise.
917 * procfs.c: Likewise.
918 * prologue-value.c: Likewise.
919 * python/py-auto-load.c: Likewise.
920 * python/py-gdb-readline.c: Likewise.
921 * ravenscar-thread.c: Likewise.
922 * regcache.c: Likewise.
923 * registry.c: Likewise.
924 * remote-fileio.c: Likewise.
925 * remote-m32r-sdi.c: Likewise.
926 * remote-mips.c: Likewise.
927 * remote-notif.c: Likewise.
928 * remote-sim.c: Likewise.
929 * remote.c: Likewise.
930 * reverse.c: Likewise.
931 * rs6000-aix-tdep.c: Likewise.
932 * ser-base.c: Likewise.
933 * ser-go32.c: Likewise.
934 * ser-mingw.c: Likewise.
935 * ser-pipe.c: Likewise.
936 * ser-tcp.c: Likewise.
937 * ser-unix.c: Likewise.
938 * serial.c: Likewise.
939 * sh-tdep.c: Likewise.
940 * sh64-tdep.c: Likewise.
941 * shnbsd-tdep.c: Likewise.
942 * skip.c: Likewise.
943 * sol-thread.c: Likewise.
944 * solib-dsbt.c: Likewise.
945 * solib-frv.c: Likewise.
946 * solib-osf.c: Likewise.
947 * solib-som.c: Likewise.
948 * solib-spu.c: Likewise.
949 * solib-target.c: Likewise.
950 * solib.c: Likewise.
951 * somread.c: Likewise.
952 * source.c: Likewise.
953 * sparc-nat.c: Likewise.
954 * sparc-sol2-tdep.c: Likewise.
955 * sparc-tdep.c: Likewise.
956 * sparc64-tdep.c: Likewise.
957 * sparc64fbsd-tdep.c: Likewise.
958 * sparc64nbsd-tdep.c: Likewise.
959 * sparcnbsd-tdep.c: Likewise.
960 * spu-linux-nat.c: Likewise.
961 * spu-multiarch.c: Likewise.
962 * spu-tdep.c: Likewise.
963 * stabsread.c: Likewise.
964 * stack.c: Likewise.
965 * std-regs.c: Likewise.
966 * symfile.c: Likewise.
967 * symmisc.c: Likewise.
968 * symtab.c: Likewise.
969 * target.c: Likewise.
970 * thread.c: Likewise.
971 * tilegx-linux-nat.c: Likewise.
972 * tilegx-tdep.c: Likewise.
973 * top.c: Likewise.
974 * tracepoint.c: Likewise.
975 * tui/tui-command.c: Likewise.
976 * tui/tui-data.c: Likewise.
977 * tui/tui-disasm.c: Likewise.
978 * tui/tui-file.c: Likewise.
979 * tui/tui-layout.c: Likewise.
980 * tui/tui-out.c: Likewise.
981 * tui/tui-regs.c: Likewise.
982 * tui/tui-source.c: Likewise.
983 * tui/tui-stack.c: Likewise.
984 * tui/tui-win.c: Likewise.
985 * tui/tui-windata.c: Likewise.
986 * tui/tui-winsource.c: Likewise.
987 * typeprint.c: Likewise.
988 * ui-file.c: Likewise.
989 * ui-out.c: Likewise.
990 * user-regs.c: Likewise.
991 * utils.c: Likewise.
992 * v850-tdep.c: Likewise.
993 * valarith.c: Likewise.
994 * valops.c: Likewise.
995 * valprint.c: Likewise.
996 * value.c: Likewise.
997 * varobj.c: Likewise.
998 * vax-tdep.c: Likewise.
999 * vaxnbsd-tdep.c: Likewise.
1000 * vaxobsd-tdep.c: Likewise.
1001 * windows-nat.c: Likewise.
1002 * xcoffread.c: Likewise.
1003 * xml-support.c: Likewise.
1004 * xstormy16-tdep.c: Likewise.
1005 * xtensa-linux-nat.c: Likewise.
1006
dccbb609
GB
10072014-08-07 Gary Benson <gbenson@redhat.com>
1008
1009 * common/common-defs.h: Include gdb_assert.h.
1010 * aarch64-tdep.c: Do not include gdb_assert.h.
1011 * addrmap.c: Likewise.
1012 * aix-thread.c: Likewise.
1013 * alpha-linux-tdep.c: Likewise.
1014 * alpha-mdebug-tdep.c: Likewise.
1015 * alphanbsd-tdep.c: Likewise.
1016 * amd64-nat.c: Likewise.
1017 * amd64-tdep.c: Likewise.
1018 * amd64bsd-nat.c: Likewise.
1019 * amd64fbsd-nat.c: Likewise.
1020 * amd64fbsd-tdep.c: Likewise.
1021 * amd64nbsd-nat.c: Likewise.
1022 * amd64nbsd-tdep.c: Likewise.
1023 * amd64obsd-nat.c: Likewise.
1024 * amd64obsd-tdep.c: Likewise.
1025 * arch-utils.c: Likewise.
1026 * arm-tdep.c: Likewise.
1027 * armbsd-tdep.c: Likewise.
1028 * auxv.c: Likewise.
1029 * bcache.c: Likewise.
1030 * bfin-tdep.c: Likewise.
1031 * blockframe.c: Likewise.
1032 * breakpoint.c: Likewise.
1033 * bsd-kvm.c: Likewise.
1034 * bsd-uthread.c: Likewise.
1035 * buildsym.c: Likewise.
1036 * c-exp.y: Likewise.
1037 * c-lang.c: Likewise.
1038 * charset.c: Likewise.
1039 * cleanups.c: Likewise.
1040 * cli-out.c: Likewise.
1041 * cli/cli-decode.c: Likewise.
1042 * cli/cli-dump.c: Likewise.
1043 * cli/cli-logging.c: Likewise.
1044 * cli/cli-script.c: Likewise.
1045 * cli/cli-utils.c: Likewise.
1046 * coffread.c: Likewise.
1047 * common/common-utils.c: Likewise.
1048 * common/queue.h: Likewise.
1049 * common/signals.c: Likewise.
1050 * common/vec.h: Likewise.
1051 * complaints.c: Likewise.
1052 * completer.c: Likewise.
1053 * corelow.c: Likewise.
1054 * cp-abi.c: Likewise.
1055 * cp-name-parser.y: Likewise.
1056 * cp-namespace.c: Likewise.
1057 * cp-support.c: Likewise.
1058 * cris-tdep.c: Likewise.
1059 * dbxread.c: Likewise.
1060 * dictionary.c: Likewise.
1061 * doublest.c: Likewise.
1062 * dsrec.c: Likewise.
1063 * dummy-frame.c: Likewise.
1064 * dwarf2-frame-tailcall.c: Likewise.
1065 * dwarf2-frame.c: Likewise.
1066 * dwarf2expr.c: Likewise.
1067 * dwarf2loc.c: Likewise.
1068 * dwarf2read.c: Likewise.
1069 * eval.c: Likewise.
1070 * event-loop.c: Likewise.
1071 * exceptions.c: Likewise.
1072 * expprint.c: Likewise.
1073 * f-valprint.c: Likewise.
1074 * fbsd-nat.c: Likewise.
1075 * findvar.c: Likewise.
1076 * frame-unwind.c: Likewise.
1077 * frame.c: Likewise.
1078 * frv-tdep.c: Likewise.
1079 * gcore.c: Likewise.
1080 * gdb-dlfcn.c: Likewise.
1081 * gdb_bfd.c: Likewise.
1082 * gdbarch.c: Likewise.
1083 * gdbarch.sh: Likewise.
1084 * gdbtypes.c: Likewise.
1085 * gnu-nat.c: Likewise.
1086 * gnu-v3-abi.c: Likewise.
1087 * go-lang.c: Likewise.
1088 * guile/scm-exception.c: Likewise.
1089 * guile/scm-gsmob.c: Likewise.
1090 * guile/scm-lazy-string.c: Likewise.
1091 * guile/scm-math.c: Likewise.
1092 * guile/scm-pretty-print.c: Likewise.
1093 * guile/scm-safe-call.c: Likewise.
1094 * guile/scm-utils.c: Likewise.
1095 * guile/scm-value.c: Likewise.
1096 * h8300-tdep.c: Likewise.
1097 * hppa-hpux-nat.c: Likewise.
1098 * hppa-tdep.c: Likewise.
1099 * hppanbsd-tdep.c: Likewise.
1100 * hppaobsd-tdep.c: Likewise.
1101 * i386-darwin-nat.c: Likewise.
1102 * i386-darwin-tdep.c: Likewise.
1103 * i386-nto-tdep.c: Likewise.
1104 * i386-tdep.c: Likewise.
1105 * i386bsd-nat.c: Likewise.
1106 * i386fbsd-tdep.c: Likewise.
1107 * i386gnu-nat.c: Likewise.
1108 * i386nbsd-tdep.c: Likewise.
1109 * i386obsd-tdep.c: Likewise.
1110 * i387-tdep.c: Likewise.
1111 * ia64-libunwind-tdep.c: Likewise.
1112 * ia64-tdep.c: Likewise.
1113 * inf-ptrace.c: Likewise.
1114 * inf-ttrace.c: Likewise.
1115 * infcall.c: Likewise.
1116 * infcmd.c: Likewise.
1117 * infrun.c: Likewise.
1118 * inline-frame.c: Likewise.
1119 * interps.c: Likewise.
1120 * jv-lang.c: Likewise.
1121 * jv-typeprint.c: Likewise.
1122 * linux-fork.c: Likewise.
1123 * linux-nat.c: Likewise.
1124 * linux-thread-db.c: Likewise.
1125 * m32c-tdep.c: Likewise.
1126 * m32r-linux-nat.c: Likewise.
1127 * m32r-tdep.c: Likewise.
1128 * m68k-tdep.c: Likewise.
1129 * m68kbsd-nat.c: Likewise.
1130 * m68kbsd-tdep.c: Likewise.
1131 * m88k-tdep.c: Likewise.
1132 * machoread.c: Likewise.
1133 * macroexp.c: Likewise.
1134 * macrotab.c: Likewise.
1135 * maint.c: Likewise.
1136 * mdebugread.c: Likewise.
1137 * memory-map.c: Likewise.
1138 * mep-tdep.c: Likewise.
1139 * mi/mi-common.c: Likewise.
1140 * microblaze-tdep.c: Likewise.
1141 * mingw-hdep.c: Likewise.
1142 * mips-linux-nat.c: Likewise.
1143 * mips-linux-tdep.c: Likewise.
1144 * mips-tdep.c: Likewise.
1145 * mips64obsd-tdep.c: Likewise.
1146 * mipsnbsd-tdep.c: Likewise.
1147 * mn10300-linux-tdep.c: Likewise.
1148 * mn10300-tdep.c: Likewise.
1149 * moxie-tdep.c: Likewise.
1150 * mt-tdep.c: Likewise.
1151 * nat/linux-btrace.c: Likewise.
1152 * nat/linux-osdata.c: Likewise.
1153 * nat/linux-ptrace.c: Likewise.
1154 * nat/mips-linux-watch.c: Likewise.
1155 * nios2-linux-tdep.c: Likewise.
1156 * nios2-tdep.c: Likewise.
1157 * objc-lang.c: Likewise.
1158 * objfiles.c: Likewise.
1159 * obsd-nat.c: Likewise.
1160 * opencl-lang.c: Likewise.
1161 * osabi.c: Likewise.
1162 * parse.c: Likewise.
1163 * ppc-linux-nat.c: Likewise.
1164 * ppc-sysv-tdep.c: Likewise.
1165 * ppcfbsd-nat.c: Likewise.
1166 * ppcfbsd-tdep.c: Likewise.
1167 * ppcnbsd-nat.c: Likewise.
1168 * ppcnbsd-tdep.c: Likewise.
1169 * ppcobsd-nat.c: Likewise.
1170 * ppcobsd-tdep.c: Likewise.
1171 * printcmd.c: Likewise.
1172 * procfs.c: Likewise.
1173 * prologue-value.c: Likewise.
1174 * psymtab.c: Likewise.
1175 * python/py-lazy-string.c: Likewise.
1176 * python/py-value.c: Likewise.
1177 * regcache.c: Likewise.
1178 * reggroups.c: Likewise.
1179 * registry.c: Likewise.
1180 * remote-sim.c: Likewise.
1181 * remote.c: Likewise.
1182 * rs6000-aix-tdep.c: Likewise.
1183 * rs6000-tdep.c: Likewise.
1184 * s390-linux-tdep.c: Likewise.
1185 * score-tdep.c: Likewise.
1186 * ser-base.c: Likewise.
1187 * ser-mingw.c: Likewise.
1188 * sh-tdep.c: Likewise.
1189 * sh64-tdep.c: Likewise.
1190 * solib-darwin.c: Likewise.
1191 * solib-spu.c: Likewise.
1192 * solib-svr4.c: Likewise.
1193 * source.c: Likewise.
1194 * sparc-nat.c: Likewise.
1195 * sparc-sol2-tdep.c: Likewise.
1196 * sparc-tdep.c: Likewise.
1197 * sparc64-sol2-tdep.c: Likewise.
1198 * sparc64-tdep.c: Likewise.
1199 * sparc64fbsd-tdep.c: Likewise.
1200 * sparc64nbsd-tdep.c: Likewise.
1201 * sparc64obsd-tdep.c: Likewise.
1202 * sparcnbsd-tdep.c: Likewise.
1203 * sparcobsd-tdep.c: Likewise.
1204 * spu-multiarch.c: Likewise.
1205 * spu-tdep.c: Likewise.
1206 * stabsread.c: Likewise.
1207 * stack.c: Likewise.
1208 * symfile.c: Likewise.
1209 * symtab.c: Likewise.
1210 * target-descriptions.c: Likewise.
1211 * target-memory.c: Likewise.
1212 * target.c: Likewise.
1213 * tic6x-linux-tdep.c: Likewise.
1214 * tic6x-tdep.c: Likewise.
1215 * tilegx-linux-nat.c: Likewise.
1216 * tilegx-tdep.c: Likewise.
1217 * top.c: Likewise.
1218 * tramp-frame.c: Likewise.
1219 * tui/tui-out.c: Likewise.
1220 * tui/tui-winsource.c: Likewise.
1221 * ui-out.c: Likewise.
1222 * user-regs.c: Likewise.
1223 * utils.c: Likewise.
1224 * v850-tdep.c: Likewise.
1225 * valops.c: Likewise.
1226 * value.c: Likewise.
1227 * varobj.c: Likewise.
1228 * vax-nat.c: Likewise.
1229 * xml-syscall.c: Likewise.
1230 * xml-tdesc.c: Likewise.
1231 * xstormy16-tdep.c: Likewise.
1232 * xtensa-linux-nat.c: Likewise.
1233 * xtensa-tdep.c: Likewise.
1234
e76df0d0
GB
12352014-08-07 Gary Benson <gbenson@redhat.com>
1236
1237 * common/common-defs.h: Include common-utils.h.
1238 * defs.h: Do not include common-utils.h.
1239 * common/gdb_assert.h: Likewise.
1240 * darwin-nat.h: Likewise.
1241 * nat/linux-btrace.c: Likewise.
1242 * target/waitstatus.h: Likewise.
1243
4cb9c816
GB
12442014-08-07 Gary Benson <gbenson@redhat.com>
1245
1246 * common/common-defs.h: Include ptid.h.
1247 * defs.h: Do not include ptid.h.
1248 * inferior.h: Likewise.
1249 * infrun.h: Likewise.
1250 * nat/linux-btrace.h: Likewise.
1251 * nat/linux-osdata.h: Likewise.
1252 * target/waitstatus.h: Likewise.
1253
3995eeee
GB
12542014-08-07 Gary Benson <gbenson@redhat.com>
1255
1256 * common/common-defs.h: Include gdb_locale.h.
1257 * defs.h: Do not include gdb_locale.h.
1258
cb9f1a9b
GB
12592014-08-07 Gary Benson <gbenson@redhat.com>
1260
1261 * common/common-defs.h: Include gdb/signals.h.
1262 * defs.h: Do not include gdb/signals.h.
1263
a5fceff8
GB
12642014-08-07 Gary Benson <gbenson@redhat.com>
1265
1266 * common/common-defs.h: Include pathmax.h.
1267 * defs.h: Do not include pathmax.h.
1268
b9391142
GB
12692014-08-07 Gary Benson <gbenson@redhat.com>
1270
1271 * common/common-defs.h: Include libiberty.h.
1272 * defs.h: Do not include libiberty.h.
1273 * common/queue.h: Likewise.
1274 * cp-name-parser.y: Likewise.
1275 * mi/mi-cmd-catch.c: Likewise.
1276 * python/python.c: Likewise.
1277
0e443c87
GB
12782014-08-07 Gary Benson <gbenson@redhat.com>
1279
1280 * common/common-defs.h: Include ansidecl.h.
1281 * defs.h: Do not include ansidecl.h.
1282 * common/buffer.h: Likewise.
1283 * common/common-utils.h: Likewise.
1284
8ebb3f56
GB
12852014-08-07 Gary Benson <gbenson@redhat.com>
1286
1287 * common/common-defs.h: Include stddef.h.
1288 * defs.h: Do not include stddef.h.
1289 * common/common-utils.h: Likewise.
1290 * amd64fbsd-nat.c: Likewise.
1291 * bcache.c: Likewise.
1292 * charset.c: Likewise.
1293 * common/buffer.h: Likewise.
1294 * common/vec.h: Likewise.
1295 * i386bsd-nat.c: Likewise.
1296 * nat/linux-btrace.h: Likewise.
1297 * ppcfbsd-nat.c: Likewise.
1298 * ppcnbsd-tdep.h: Likewise.
1299 * ppcobsd-nat.c: Likewise.
1300 * ppcobsd-tdep.h: Likewise.
1301 * python/py-gdb-readline.c: Likewise.
1302
8980bdf6
GB
13032014-08-07 Gary Benson <gbenson@redhat.com>
1304
1305 * common/common-defs.h: Include stdarg.h.
1306 * defs.h: Do not include stdarg.h.
1307 * ada-lang.c: Likewise.
1308 * common/common-utils.h: Likewise.
1309 * guile/scm-string.c: Likewise.
1310 * guile/scm-utils.c: Likewise.
1311 * m32c-tdep.c: Likewise.
1312
d7096f71
GB
13132014-08-07 Gary Benson <gbenson@redhat.com>
1314
1315 * common/common-defs.h: Include stdlib.h.
1316 * defs.h: Do not include stdlib.h.
1317 * addrmap.c: Likewise.
1318 * bcache.c: Likewise.
1319 * common/buffer.c: Likewise.
1320 * common/common-utils.c: Likewise.
1321 * cp-name-parser.y: Likewise.
1322 * go32-nat.c: Likewise.
1323 * mn10300-linux-tdep.c: Likewise.
1324 * nat/linux-osdata.c: Likewise.
1325 * tui/tui.c: Likewise.
1326 * windows-nat.c: Likewise.
1327
d02f550d
GB
13282014-08-07 Gary Benson <gbenson@redhat.com>
1329
1330 * common/common-defs.h: Include stdio.h.
1331 * defs.h: Do not include stdio.h.
1332 * ada-lang.c: Likewise.
1333 * common/buffer.c: Likewise.
1334 * common/common-utils.c: Likewise.
1335 * cp-name-parser.y: Likewise.
1336 * gnu-nat.c: Likewise.
1337 * go32-nat.c: Likewise.
1338 * i386gnu-nat.c: Likewise.
1339 * proc-api.c: Likewise.
1340 * proc-events.c: Likewise.
1341 * proc-flags.c: Likewise.
1342 * proc-why.c: Likewise.
1343 * python/python-internal.h: Likewise.
1344 * target-memory.c: Likewise.
1345 * tui/tui-io.c: Likewise.
1346 * tui/tui.c: Likewise.
1347
b6d7a4bf
SM
13482014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1349
1350 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1351 (scan_dyntag_auxv): Same.
1352
af19829b
YQ
13532014-08-06 Yao Qi <yao@codesourcery.com>
1354
1355 * amd64-linux-nat.c: Remove duplicated include
1356 "x86-linux-nat.h".
1357 * i386-linux-nat.c: Likewise.
1358
8e07a239
YQ
13592014-08-06 Yao Qi <yao@codesourcery.com>
1360
1361 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1362 operand" with "Special opcode" in comments.
1363
7bfe8241
GB
13642014-08-05 Gary Benson <gbenson@redhat.com>
1365
1366 * interps.c (initialize_interps): Remove prototype.
1367 (interpreter_initialized): Remove static global.
1368 (interp_add): Do not call initialize_interps.
1369 (initialize_interps): Remove function.
1370
d6c95504
GB
13712014-08-05 Gary Benson <gbenson@redhat.com>
1372
1373 * utils.c (vwarning): Remove spurious va_end.
1374
241fd515
AM
13752014-08-05 Alan Modra <amodra@gmail.com>
1376
1377 * charset.c (convert_between_encodings): Cast result of obstack_base.
1378 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1379 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1380 (read_unwind_info): Use size_t for some locals.
1381 * jit.c (finalize_symtab): Likewise.
1382 * utils.c (hashtab_obstack_allocate): Likewise.
1383 * symmisc.c (print_objfile_statistics): Update format strings.
1384
dc304a94
JK
13852014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1386
1387 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1388 (Changes in GDB 7.8): ... here.
1389
3cecbbbe
TT
13902014-08-04 Tom Tromey <tromey@redhat.com>
1391
1392 * target.c (set_targetdebug): New function.
1393 (initialize_targets): Pass set_targetdebug when creating "set
1394 debug target".
1395
6908c509
JB
13962014-08-01 Joel Brobecker <brobecker@adacore.com>
1397
1398 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1399 if detecting a variable-sized field that is not the last field.
1400 Fix struct type length computation.
1401
53e8f97d
JB
14022014-08-01 Joel Brobecker <brobecker@adacore.com>
1403
1404 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1405 Add debug trace.
1406
e068c55d
JB
14072014-08-01 Joel Brobecker <brobecker@adacore.com>
1408
1409 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1410 Remove "+ 8" offset in computation of CHAIN_VMA.
1411
4d4ca2a1
DE
14122014-07-31 Doug Evans <dje@google.com>
1413
1414 * inflow.c (child_terminal_inferior): Add comment.
1415 (child_terminal_ours_for_output): Add comment.
1416 (child_terminal_ours): Add comment.
1417 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1418 (linux_nat_terminal_ours): Add comment.
1419
462f517e
GB
14202014-07-31 Gary Benson <gbenson@redhat.com>
1421
1422 * common/btrace-common.h: Do not include defs.h or server.h.
1423 * nat/mips-linux-watch.h: Likewise.
1424 * gdb-dlfcn.h: Do not include defs.h.
1425 * tracefile.h: Likewise.
1426
74228e77
RM
14272014-07-30 Roland McGrath <mcgrathr@google.com>
1428
1429 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1430
014f9477
TT
14312014-07-30 Tom Tromey <tromey@redhat.com>
1432
1433 * bsd-kvm.c (bsd_kvm_open): Constify.
1434 * corelow.c (core_open): Constify.
1435 * ctf.c (ctf_open): Constify.
1436 * dbug-rom.c (dbug_open): Constify.
1437 * exec.c (exec_open): Constify.
1438 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1439 * microblaze-rom.c (picobug_open): Constify.
1440 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1441 Constify.
1442 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1443 * record-btrace.c (record_btrace_open): Constify.
1444 * record-full.c (record_full_core_open_1, record_full_open_1)
1445 (record_full_open): Constify.
1446 * remote-m32r-sdi.c (m32r_open): Constify.
1447 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1448 (rockhopper_open, lsi_open): Constify.
1449 * remote-sim.c (gdbsim_open): Constify.
1450 * remote.c (remote_open, extended_remote_open, remote_open_1):
1451 Constify.
1452 * target.h (struct target_ops) <to_open>: Make "arg" const.
1453 * tracefile-tfile.c (tfile_open): Constify.
1454
e799154c
TT
14552014-07-30 Tom Tromey <tromey@redhat.com>
1456
1457 * breakpoint.c (map_breakpoint_numbers): Update.
1458 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1459 (get_number_const): New function.
1460 (get_number): Rewrite using get_number_const.
1461 (init_number_or_range): Make "string" const.
1462 (number_is_in_list): Make "list" const.
1463 * cli/cli-utils.h (get_number_const): Declare.
1464 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1465 (init_number_or_range, number_is_in_list): Update.
1466 * printcmd.c (map_display_numbers): Update.
1467 * value.c (value_from_history_ref): Constify.
1468 * value.h (value_from_history_ref): Update.
1469
5f08566b
TT
14702014-07-30 Tom Tromey <tromey@redhat.com>
1471
1472 * corefile.c (hook_type, call_extra_exec_file_hooks)
1473 (specify_exec_file_hook): Constify.
1474 * exec.c (exec_file_attach): Make "filename" const.
1475 * gdbcore.h (deprecated_exec_file_display_hook)
1476 (specify_exec_file_hook, exec_file_attach): Constify.
1477 * main.c (captured_main): Use catch_command_errors_const.
1478
8981c758
TT
14792014-07-30 Tom Tromey <tromey@redhat.com>
1480
1481 * target.c (open_target): New function.
1482 (add_target_with_completer, add_deprecated_target_alias): Use
1483 set_cmd_sfunc, set_cmd_context.
1484 (debug_to_open): Remove.
1485 (setup_target_debug): Update.
1486
a1c7835a
YQ
14872014-07-30 Yao Qi <yao@codesourcery.com>
1488
1489 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1490 comments.
1491 * parse.c (exp_iterate): Update comments.
1492
976411d6
GB
14932014-07-30 Gary Benson <gbenson@redhat.com>
1494
1495 * common/common-defs.h: New file.
1496 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1497 * defs.h: Include common-defs.h.
1498 Do not include config.h or build-gnulib/config.h.
1499
5d4848a4
GB
15002014-07-30 Gary Benson <gbenson@redhat.com>
1501
1502 * common/common-utils.h: Do not include config.h.
1503 * nat/linux-btrace.h: Likewise.
1504
d41f6d8e
GB
15052014-07-30 Gary Benson <gbenson@redhat.com>
1506
1507 * btrace.c: Include defs.h.
1508 * common/ptid.c: Include defs.h or server.h as appropriate.
1509 * nat/mips-linux-watch.c: Likewise.
1510
84202f9c
TT
15112014-07-29 Tom Tromey <tromey@redhat.com>
1512
1513 * target.c (target_is_pushed): Simplify.
1514
2530441c
JB
15152014-07-29 Joel Brobecker <brobecker@adacore.com>
1516
1517 GDB 7.8 released.
1518
7e09a223
YQ
15192014-07-29 Yao Qi <yao@codesourcery.com>
1520
1521 PR gdb/17206
1522 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1523
7ebdbe92
DE
15242014-07-28 Doug Evans <xdje42@gmail.com>
1525
1526 PR guile/17203
1527 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1528 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1529 parameters.
1530
f347ffc9
WN
15312014-07-28 Will Newton <will.newton@linaro.org>
1532
1533 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1534 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1535 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1536 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1537 (THUMB2_EABI_SYSCALL): Likewise.
1538 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1539 struct tramp_frame.
1540 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1541 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1542
37c5f1f7
DE
15432014-07-27 Doug Evans <xdje42@gmail.com>
1544
1545 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1546
0c3abbc7
DE
15472014-07-27 Doug Evans <xdje42@gmail.com>
1548
1549 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1550
e76c5d17
DE
15512014-07-26 Ludovic Courtès <ludo@gnu.org>
1552 Doug Evans <xdje42@gmail.com>
1553
1554 PR guile/17146
1555 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1556 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1557 * configure.ac: Try to use guild to compile an scm file, if it fails
1558 then disable guile support.
1559 * configure: Regenerate.
1560 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1561 GUILE_FILE_LIST.
1562 (GUILE_COMPILED_FILES): New variable.
1563 (GUILE_FILES) Update.
1564 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1565 (stamp-guile): Compile scm files.
1566 * guile/guile.c (boot_guile_support): New function.
1567 (standard_throw_args_p): New function.
1568 (print_standard_throw_error, print_throw_error): New functions.
1569 (handle_boot_error): New function.
1570 (initialize_scheme_side): Rewrite to call boot_guile_support.
1571 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1572 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1573
186fcde0
DE
15742014-07-26 Ludovic Courtès <ludo@gnu.org>
1575 Doug Evans <xdje42@gmail.com>
1576
1577 PR guile/17146
1578 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1579 * guile/lib/gdb/support.scm: New file.
1580 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1581 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1582 All uses updated.
1583 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1584 All uses updated.
1585 (%assert-type): Ditto, and renamed to assert-type.
1586 (%exception-print-style): Delete.
1587
4df42755
DE
15882014-07-26 Doug Evans <xdje42@gmail.com>
1589
1590 PR build/17105
1591 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1592 * configure: Regenerate.
1593 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1594 PYTHON_FILES.
1595 (PYTHON_FILES): New variable.
1596 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1597 (GUILE_FILES): New variable.
1598 (stamp-python, install-python, uninstall-python): Handle empty
1599 file list.
1600 (stamp-guile, install-guile, uninstall-guile): Ditto.
1601
ee7333ae
DE
16022014-07-26 Doug Evans <xdje42@gmail.com>
1603
1604 PR guile/17177
1605 * guile/lib/gdb.scm (pretty-printers): Export.
1606 (set-pretty-printers!): Export.
1607 * guile/lib/gdb/printing.scm (gdb module): Update.
1608 (prepend-pretty-printer!, append-pretty-printer!): Update.
1609 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1610 (pretty_printer_list_var): Delete.
1611 (pretty_printer_list): New static global.
1612 (gdbscm_pretty_printers): New function.
1613 (gdbscm_set_pretty_printers_x): New function.
1614 (ppscm_find_pretty_printer_from_gdb): Update.
1615 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1616 (gdbscm_initialize_pretty_printers): Update.
1617
74edf516
DE
16182014-07-26 Doug Evans <xdje42@gmail.com>
1619
1620 PR 17185
1621 * configure.ac: Add check for header gc/gc.h.
1622 Add check for function setenv.
1623 * configure: Regenerate.
1624 * config.in: Regenerate.
1625 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1626
d54398a7
MR
16272014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1628
1629 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1630 variation in gdbarch matching.
1631
ab16fce8
TT
16322014-07-25 Tom Tromey <tromey@redhat.com>
1633
1634 * exec.c (using_exec_ops): Remove.
1635 (exec_close_1): Update. Remove extraneous block, reindent.
1636 (add_target_sections): Use target_is_pushed.
1637
88056fbb
PA
16382014-07-25 Pedro Alves <palves@redhat.com>
1639
1640 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1641 * monitor.c (monitor_create_inferior): Likewise.
1642 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1643 * remote-sim.c (gdbsim_create_inferior): Likewise.
1644 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1645 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1646 * windows-nat.c (do_initial_windows_stuff): Likewise.
1647
70509625
PA
16482014-07-25 Pedro Alves <palves@redhat.com>
1649
1650 * NEWS: Mention signal passing and "signal" command changes.
1651 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1652 comment.
1653 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1654 call.
1655 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1656 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1657 (jump_command): Adjust clear_proceed_status call.
1658 (signal_command): Warn if other thread that are resumed have
1659 signals that will be delivered. Adjust clear_proceed_status call.
1660 (until_next_command, finish_command)
1661 (proceed_after_attach_callback, attach_command_post_wait)
1662 (attach_command): Adjust clear_proceed_status call.
1663 * infrun.c (proceed_after_vfork_done): Likewise.
1664 (proceed_after_attach_callback): Adjust comment.
1665 (clear_proceed_status_thread): Clear stop_signal if not in pass
1666 state.
1667 (clear_proceed_status_callback): Delete.
1668 (clear_proceed_status): New 'step' parameter. Only clear the
1669 proceed status of threads the command being prepared is about to
1670 resume.
1671 (proceed): If passed in an explicit signal, override stop_signal
1672 with it. Don't pass the last stop signal to the thread we're
1673 resuming.
1674 (init_wait_for_inferior): Adjust clear_proceed_status call.
1675 (switch_back_to_stepped_thread): Clear the signal if it should not
1676 be passed.
1677 * infrun.h (clear_proceed_status): New 'step' parameter.
1678 (user_visible_resume_ptid): Add comment.
1679 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1680 signal is in pass state.
1681 * remote.c (append_pending_thread_resumptions): Likewise.
1682 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1683
d8be2939
TT
16842014-07-25 Tom Tromey <tromey@redhat.com>
1685
1686 * target.h (target_stopped_data_address)
1687 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1688 parentheses.
1689
7d0d9d2b
PL
16902014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1691
1692 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1693 comments.
1694 (avr_pointer_to_address): Likewise.
1695
e9e7f724
TT
16962014-07-24 Tom Tromey <tromey@redhat.com>
1697
1698 * monitor.c (compile_pattern): Update.
1699 * target.h (struct target_ops) <to_shortname, to_longname,
1700 to_doc>: Now const.
1701
1947513d
TT
17022014-07-24 Tom Tromey <tromey@redhat.com>
1703
1704 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1705 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1706 (add_info_alias, add_com): Make "doc" const.
1707 (print_doc_line): Make "str" const.
1708 (delete_cmd): Update.
1709 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1710 (print_doc_line): Update.
1711 * cli/cli-script.c (document_command): Update.
1712 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1713 (add_com, add_info, add_info_alias): Update.
1714 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1715 * python/py-cmd.c (cmdpy_destroyer): Update.
1716
64e61d29
TT
17172014-07-24 Tom Tromey <tromey@redhat.com>
1718
1719 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1720 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1721 (help_cmd_list): Constify.
1722 (lookup_cmd): Update.
1723 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1724 const.
1725 (help_cmd_list, apropos_cmd): Update.
1726 * cli/cli-script.c (show_user): Update.
1727 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1728 * cli/cli-setshow.h (cmd_show_list): Update.
1729 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1730 (cmd_show_list): Update.
1731 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1732 * python/py-cmd.c (cmdpy_destroyer): Update.
1733
429e55ea
TT
17342014-07-24 Tom Tromey <tromey@redhat.com>
1735
1736 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1737 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1738 const.
1739 * command.h (deprecate_cmd): Update.
1740 * maint.c (maintenance_do_deprecate): Add casts.
1741
64669f3b
TT
17422014-07-24 Tom Tromey <tromey@redhat.com>
1743
1744 * cli/cli-decode.c (help_cmd): Make parameter "const".
1745 * cli/cli-decode.h (help_cmd): Update.
1746
d3d3328b
TT
17472014-07-24 Tom Tromey <tromey@redhat.com>
1748
1749 * stack.c (up_silently_base, down_silently_base): Make argument
1750 const.
1751
414842dc
TT
17522014-07-24 Tom Tromey <tromey@redhat.com>
1753
1754 * solib.c (solib_add): Make "pattern" const.
1755 * solib.h (solib_add): Update.
1756
baa336ce
TT
17572014-07-24 Tom Tromey <tromey@redhat.com>
1758
1759 * remote.c (remote_serial_open, print_packet, putpkt)
1760 (putpkt_binary): Constify.
1761 * remote.h (putpkt): Update.
1762
5a19e2d0
TT
17632014-07-24 Tom Tromey <tromey@redhat.com>
1764
1765 * monitor.c (monitor_open): Make "args" const.
1766 * monitor.h (monitor_open): Update.
1767
fc4baa5e
TT
17682014-07-24 Tom Tromey <tromey@redhat.com>
1769
1770 * maint.c (match_bfd_flags): Make "string" const.
1771 (print_bfd_section_info): Remove casts.
1772 (print_objfile_section_info): Make "string" const.
1773
0d5f0dbe
TT
17742014-07-24 Tom Tromey <tromey@redhat.com>
1775
1776 * inf-child.c (inf_child_open_target): Make "arg" const.
1777 * inf-child.h (inf_child_open_target): Update.
1778
41c77899
TT
17792014-07-24 Tom Tromey <tromey@redhat.com>
1780
1781 * environ.c (unset_in_environ): Make "var" const.
1782 * environ.h (unset_in_environ): Update.
1783
93db0d79
TT
17842014-07-24 Tom Tromey <tromey@redhat.com>
1785
1786 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1787 Make "cmd" const.
1788 (scan_filename_with_cleanup): Likewise.
1789 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1790 Make arguments const.
1791 (restore_command): Update.
1792
36d6eb95
PA
17932014-07-24 Pedro Alves <palves@redhat.com>
1794
1795 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1796
8009206a
TT
17972014-07-24 Tom Tromey <tromey@redhat.com>
1798 Gary Benson <gbenson@redhat.com>
1799
1800 * nat/linux-ptrace.c (additional_flags): New global.
1801 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1802 additional_flags; don't check GDBSERVER.
1803 (linux_ptrace_set_additional_flags): New function.
1804 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1805 Declare.
1806 * linux-nat.c (_initialize_linux_nat): Call
1807 linux_ptrace_set_additional_flags.
1808
a7068b60
TT
18092014-07-24 Tom Tromey <tromey@redhat.com>
1810
1811 * make-target-delegates (munge_type, write_debugmethod): New
1812 functions.
1813 (debug_names): New global.
1814 ($TARGET_DEBUG_PRINTER): New global.
1815 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1816 name.
1817 Write debug methods. Generate init_debug_target.
1818 * target-debug.h: New file.
1819 * target-delegates.c: Rebuild.
1820 * target.c: Include target-debug.h.
1821 (debug_target): Hoist definition.
1822 (target_kill, target_get_section_table, target_memory_map)
1823 (target_flash_erase, target_flash_done, target_detach)
1824 (target_disconnect, target_wait, target_resume)
1825 (target_pass_signals, target_program_signals, target_follow_fork)
1826 (target_mourn_inferior, target_search_memory)
1827 (target_thread_address_space, target_close)
1828 (target_find_new_threads, target_core_of_thread)
1829 (target_verify_memory, target_insert_mask_watchpoint)
1830 (target_remove_mask_watchpoint): Remove targetdebug code.
1831 (debug_to_post_attach, debug_to_prepare_to_store)
1832 (debug_to_files_info, debug_to_insert_breakpoint)
1833 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1834 (debug_to_region_ok_for_hw_watchpoint)
1835 (debug_to_can_accel_watchpoint_condition)
1836 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1837 (debug_to_watchpoint_addr_within_range)
1838 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1839 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1840 (debug_to_terminal_init, debug_to_terminal_inferior)
1841 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1842 (debug_to_terminal_save_ours, debug_to_terminal_info)
1843 (debug_to_load, debug_to_post_startup_inferior)
1844 (debug_to_insert_fork_catchpoint)
1845 (debug_to_remove_fork_catchpoint)
1846 (debug_to_insert_vfork_catchpoint)
1847 (debug_to_remove_vfork_catchpoint)
1848 (debug_to_insert_exec_catchpoint)
1849 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1850 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1851 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1852 (setup_target_debug): Call init_debug_target.
1853 * target.h (TARGET_DEBUG_PRINTER): New macro.
1854 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1855 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1856
2c51604d
GB
18572014-07-24 Gary Benson <gbenson@redhat.com>
1858
1859 * exceptions.h (throw_vfatal): Renamed to...
1860 (throw_vquit): New declaration.
1861 (throw_quit): Likewise.
1862 * exceptions.c (throw_vfatal): Renamed to...
1863 (throw_vquit): New function.
1864 (throw_quit): Likewise.
1865 (throw_error): Call throw_verror rather than throw_it.
1866 * utils.h (vfatal): Removed.
1867 (fatal): Likewise.
1868 * utils.c (vfatal): Removed.
1869 (fatal): Likewise.
1870 (internal_verror): Replaced call to fatal with call to throw_quit.
1871 (quit): Replaced calls to fatal with calls to throw_quit.
1872
34211963
ME
18732014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1874
1875 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1876 target_read_code.
1877
a52b4d3e
ME
18782014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1879
1880 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1881 less than zero in conditional expression.
1882
a8bdc56b
TT
18832014-07-23 Tom Tromey <tromey@redhat.com>
1884
1885 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1886 ($INTRO_PART): Don't match whitespace.
1887 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1888 argument matching.
1889 ($METHOD): Add $METHOD_TRAILER.
1890 (trim): Rewrite.
1891 (scan_target_h): New sub.
1892 Change main loop not to collect state.
1893 * target-delegates.c: Rebuild.
1894
91b52240
GB
18952014-07-23 Gary Benson <gbenson@redhat.com>
1896
1897 * cp-support.c (gdb_demangle): Fix build on systems without
1898 sigaltstack.
1899
45326f6f
JK
19002014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1901
1902 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1903 for reference entry value target data value.
1904
e214cf6c
JK
19052014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1906
1907 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1908 value_available_contents_eq.
1909
bddbbedd
PA
19102014-07-22 Pedro Alves <palves@redhat.com>
1911
1912 * value.c (allocate_optimized_out_value): Don't mark value as
1913 non-lazy.
1914
45c71484
JW
19152014-07-22 Jiong Wang <jiong.wang@arm.com>
1916
1917 * MAINTAINERS (Write After Approval): Update my email address.
1918
9597b22a
DE
19192014-07-20 Doug Evans <dje@google.com>
1920
1921 PR server/17147
1922 * remote.c (putpkt_binary): Add text to error message.
1923
91101fe5
YQ
19242014-07-20 Yao Qi <yao@codesourcery.com>
1925
1926 * eval.c: Remove "Chill" from comments.
1927 * gdbtypes.h: Likewise.
1928 * symtab.h: Likewise.
1929
c9402c95
YQ
19302014-07-20 Yao Qi <yao@codesourcery.com>
1931
1932 * std-operator.def: Update comments to TERNOP_SLICE.
1933
ae8fddda
YQ
19342014-07-20 Yao Qi <yao@codesourcery.com>
1935
1936 * std-operator.def: Remove BINOP_RANGE.
1937 * breakpoint.c (watchpoint_exp_is_const): Update.
1938 * expprint.c (dump_subexp_body_standard): Likewise.
1939 * eval.c (init_array_element): Remove dead code.
1940 (evaluate_subexp_standard): Likewise.
1941
9c816640
YQ
19422014-07-20 Yao Qi <yao@codesourcery.com>
1943
1944 * std-operator.def: Remove BINOP_IN.
1945 * breakpoint.c (watchpoint_exp_is_const): Update.
1946 * eval.c (evaluate_subexp_standard): Likewise.
1947 * expprint.c (dump_subexp_body_standard): Likewise.
1948
164224e9
ME
19492014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1950
1951 * microblaze-tdep.c (microblaze_register_names): Add
1952 the rshr and rslr register names.
1953 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1954 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1955 Use of tdesc_numbered_register. Use of
1956 microblaze_register_g_packet_guesses. Use of
1957 tdesc_use_registers. Use of set_gdbarch_register_type.
1958 (microblaze_register_g_packet_guesses): New.
1959 * microblaze-tdep.h (microblaze_reg_num): Add
1960 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1961 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1962 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1963 * features/microblaze-core.xml: New file.
1964 * features/microblaze-stack-protect.xml: New file.
1965 * features/microblaze-with-stack-protect.c: New file.
1966 * features/microblaze-with-stack-protect.xml: New file.
1967 * features/microblaze.xml: New file.
1968 * features/microblaze.c: New file.
1969 * features/Makefile (microblaze-with-stack-protect): Add
1970 microblaze-with-stack-protect microblaze and microblaze-expedite.
1971 * regformats/microblaze-with-stack-protect.dat: New file.
1972 * regformats/microblaze.dat: New file.
1973 * doc/gdb.texinfo (MicroBlaze Features): Added.
1974
e8b2341c
TT
19752014-07-18 Tom Tromey <tromey@redhat.com>
1976
1977 * exec.c (exec_ops): Now static.
1978 * exec.h (exec_ops): Don't declare.
1979
44e89118
TT
19802014-07-18 Tom Tromey <tromey@redhat.com>
1981
1982 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1983 to find_target_beneath.
1984 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1985 find_target_beneath.
1986 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1987
b0ed115f
TT
19882014-07-18 Tom Tromey <tromey@redhat.com>
1989
1990 PR gdb/17130:
1991 * utils.c (quit): Use target_supports_terminal_ours.
1992 * target.h (target_supports_terminal_ours): Declare.
1993 * target.c (target_supports_delete_record): Don't check
1994 to_delete_record against NULL.
1995 (target_supports_terminal_ours): New function.
1996
e75fdfca
TT
19972014-07-18 Tom Tromey <tromey@redhat.com>
1998
1999 PR gdb/17130:
2000 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2001 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2002 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2003 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2004 * windows-nat.c (windows_xfer_partial): Always delegate.
2005 * record-btrace.c (record_btrace_xfer_partial): Simplify
2006 delegation.
2007 (record_btrace_fetch_registers, record_btrace_store_registers)
2008 (record_btrace_prepare_to_store, record_btrace_resume)
2009 (record_btrace_wait, record_btrace_find_new_threads)
2010 (record_btrace_thread_alive): Likewise.
2011 * procfs.c (procfs_xfer_partial): Always delegate.
2012 * corelow.c (core_xfer_partial): Always delegate.
2013 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2014
83814951
TT
20152014-07-18 Tom Tromey <tromey@redhat.com>
2016
2017 * exec.c (exec_make_note_section): Move earlier.
2018
b8b8facf
DE
20192014-07-17 Doug Evans <dje@google.com>
2020
74b49205 2021 PR gdb/17170
b8b8facf
DE
2022 * maint.c (count_symtabs_and_blocks): Handle NULL
2023 current_program_space.
2024 (report_command_stats): Check global enabled flag in addition to
2025 recorded enabled flag.
2026 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2027
69ff6be5
PA
20282014-07-16 Pedro Alves <palves@redhat.com>
2029
2030 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2031
252db1b5
TT
20322014-07-16 Tom Tromey <tromey@redhat.com>
2033
2034 * target.h (struct target_ops) <to_delete_record>: Reformat
2035 comment.
2036
a432721e
TT
20372014-07-16 Tom Tromey <tromey@redhat.com>
2038
2039 * target-delegates.c: Rebuild.
2040
487d9753
PL
20412014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2042
2043 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2044 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2045 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2046 (avr_pointer_to_address): Likewise.
2047 (avr_address_class_type_flags): New function.
2048 (avr_address_class_type_flags_to_name): Likewise.
2049 (avr_address_class_name_to_type_flags): Likewise.
2050 (avr_gdbarch_init): Set address_class_type_flags,
2051 address_class_type_flags_to_name and
2052 address_class_name_to_type_flags.
2053
57745c90
PA
20542014-07-15 Pedro Alves <palves@redhat.com>
2055
2056 * linux-nat.c (kill_callback): Save errno and work with saved
2057 copy.
2058
2d40be18
SM
20592014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2060
2061 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2062
572f6555
EBM
20632014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2064
2065 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2066 breakpoint support correctly.
2067
cc1c52ad
PA
20682014-07-14 Pedro Alves <palves@redhat.com>
2069
2070 * utils.c (prompt_for_continue): Call target_terminal_ours.
2071
1e973570
PA
20722014-07-14 Pedro Alves <palves@redhat.com>
2073
2074 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2075 catch_errors. Don't re-enable stdin or notify observers where,
2076 and rethrow error.
2077 (fetch_inferior_event_wrapper): Delete.
2078
93d6eb10
PA
20792014-07-14 Pedro Alves <palves@redhat.com>
2080
2081 PR gdb/17072
2082 * top.c: Include "inf-loop.h".
2083 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2084 field.
2085 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2086 was async before.
2087 (gdb_readline_wrapper): Store whether the target is async, and
2088 make it sync.
2089
0017922d
PA
20902014-07-14 Pedro Alves <palves@redhat.com>
2091
2092 PR gdb/17072
2093 * top.c (gdb_readline_wrapper_line): Tweak comment.
2094 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2095 the input handler callback.
2096
94696ad3
PA
20972014-07-14 Pedro Alves <palves@redhat.com>
2098
2099 PR gdb/17072
2100 * main.c: Include event-top.h.
2101 (handle_command_errors): New function.
2102 (catch_command_errors, catch_command_errors_const): Use it.
2103
9d1e69a2
PA
21042014-07-14 Pedro Alves <palves@redhat.com>
2105
2106 * exceptions.c (catch_command_errors, catch_command_errors_const):
2107 Moved to main.c.
2108 * exceptions.h (catch_command_errors_ftype)
2109 (catch_command_errors_const_ftype): Moved to main.c.
2110 (catch_command_errors, catch_command_errors_const): Delete
2111 declarations.
2112 * main.c (catch_command_errors_ftype)
2113 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2114 (catch_command_errors, catch_command_errors_const)): Moved here
2115 from exceptions.c and make static.
2116
feefc97b
PA
21172014-07-14 Pedro Alves <palves@redhat.com>
2118
2119 * exceptions.c (print_any_exception): Delete.
2120 (catch_exceptions_with_msg): Use exception_print instead of
2121 print_any_exception.
2122 (catch_errors): Use exception_fprintf instead of
2123 print_any_exception.
2124 (catch_command_errors, catch_command_errors_const): Use
2125 exception_print instead of print_any_exception.
2126
c933f875
PA
21272014-07-14 Pedro Alves <palves@redhat.com>
2128
2129 * infcall.c (run_inferior_call): Set 'sync_execution' while
2130 running the inferior call.
2131
feb6f816
PA
21322014-07-14 Pedro Alves <palves@redhat.com>
2133
2134 * value.c (value_contents_equal): Delete function.
2135 * value.h (value_contents_equal): Delete declaration.
2136
d98b7a16
TT
21372014-07-14 Tom Tromey <tromey@redhat.com>
2138
2139 PR exp/17106:
2140 * gdbtypes.c (is_dynamic_type_internal): New function, from
2141 is_dynamic_type.
2142 (is_dynamic_type): Rewrite.
2143 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2144 (resolve_dynamic_struct): Likewise.
2145 (resolve_dynamic_type_internal): New function, from
2146 resolve_dynamic_type.
2147 (resolve_dynamic_type): Rewrite.
2148
548740d6
TT
21492014-07-14 Tom Tromey <tromey@redhat.com>
2150
2151 * target.c (target_require_runnable): Also check record_stratum.
2152 Update comment.
2153
808f7ab1
YQ
21542014-07-11 Yao Qi <yao@codesourcery.com>
2155
2156 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2157 thumb_instruction_restores_sp return true.
2158
540314bd
YQ
21592014-07-11 Yao Qi <yao@codesourcery.com>
2160
2161 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2162 (thumb_in_function_epilogue_p): Call
2163 thumb_instruction_restores_sp.
2164
1db01f22
YQ
21652014-07-11 Yao Qi <yao@codesourcery.com>
2166
2167 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2168 'add sp, #imm'.
2169 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2170
3116063b
GB
21712014-07-11 Gary Benson <gbenson@redhat.com>
2172
2173 * amd64-linux-nat.c (gdbcore.h): Remove include.
2174 (regset.h): Likewise.
2175 (nat/linux-btrace.h): Likewise.
2176 (btrace.h): Likewise.
2177 (gdb_assert.h): Likewise.
2178 (string.h): Likewise.
2179 (sys/uio.h): Likewise.
2180 (sys/debugreg.h): Likewise.
2181 (sys/syscall.h): Likewise.
2182 (sys/procfs.h): Likewise.
2183 (sys/user.h): Likewise.
2184 (asm/ptrace.h): Likewise.
2185 (i386-nat.h): Likewise.
2186 * i386-linux-nat.c (i386-nat.h): Likewise.
2187 (regset.h): Likewise.
2188 (target.h): Likewise.
2189 (linux-nat.h): Likewise.
2190 (nat/linux-btrace.h): Likewise.
2191 (btrace.h): Likewise.
2192 (gdb_assert.h): Likewise.
2193 (string.h): Likewise.
2194 (sys/uio.h): Likewise.
2195 (sys/user.h): Likewise.
2196 (sys/procfs.h): Likewise.
2197 (sys/reg.h): Likewise.
2198 (sys/debugreg.h): Likewise.
2199 (ORIG_EAX): Remove definition.
2200
040baaf6
GB
22012014-07-11 Gary Benson <gbenson@redhat.com>
2202
2203 * i386-linux-nat.h: New file.
2204 * x86-linux-nat.h: Likewise.
2205 * x86-linux-nat.c: Likewise.
2206 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2207 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2208 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2209 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2210 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2211 (PTRACE_SETREGSET): Likewise.
2212 (arch_lwp_info): Now in x86-linux-nat.c.
2213 (have_ptrace_getregset): Now in x86-linux-nat.h.
2214 (x86_linux_dr_get): Now in x86-linux-nat.c.
2215 (x86_linux_dr_set): Likewise.
2216 (x86_linux_dr_get_addr): Likewise.
2217 (x86_linux_dr_get_control): Likewise.
2218 (x86_linux_dr_get_status): Likewise.
2219 (update_debug_registers_callback): Likewise.
2220 (x86_linux_dr_set_control): Likewise.
2221 (x86_linux_dr_set_addr): Likewise.
2222 (x86_linux_prepare_to_resume): Likewise.
2223 (x86_linux_new_thread): Likewise.
2224 (x86_linux_new_fork): Likewise.
2225 (x86_linux_get_thread_area): Likewise.
2226 (super_post_startup_inferior): Likewise.
2227 (x86_linux_child_post_startup_inferior): Likewise.
2228 (AMD64_LINUX_USER64_CS): Likewise.
2229 (AMD64_LINUX_X32_DS): Likewise.
2230 (x86_linux_read_description): Likewise.
2231 (x86_linux_enable_btrace): Likewise.
2232 (x86_linux_disable_btrace): Likewise.
2233 (x86_linux_teardown_btrace): Likewise.
2234 (x86_linux_read_btrace): Likewise.
2235 (x86_linux_create_target): Likewise.
2236 (x86_linux_add_target): Likewise.
2237 * i386-linux-nat.c (x86-linux-nat.h): New include.
2238 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2239 (PTRACE_SETREGSET): Likewise.
2240 (arch_lwp_info): Now in x86-linux-nat.c.
2241 (have_ptrace_getregset): Now in x86-linux-nat.h.
2242 (x86_linux_dr_get): Now in x86-linux-nat.c.
2243 (x86_linux_dr_set): Likewise.
2244 (x86_linux_dr_get_addr): Likewise.
2245 (x86_linux_dr_get_control): Likewise.
2246 (x86_linux_dr_get_status): Likewise.
2247 (update_debug_registers_callback): Likewise.
2248 (x86_linux_dr_set_control): Likewise.
2249 (x86_linux_dr_set_addr): Likewise.
2250 (x86_linux_prepare_to_resume): Likewise.
2251 (x86_linux_new_thread): Likewise.
2252 (x86_linux_new_fork): Likewise.
2253 (x86_linux_get_thread_area): Likewise.
2254 (super_post_startup_inferior): Likewise.
2255 (x86_linux_child_post_startup_inferior): Likewise.
2256 (AMD64_LINUX_USER64_CS): Likewise.
2257 (AMD64_LINUX_X32_DS): Likewise.
2258 (x86_linux_read_description): Likewise.
2259 (x86_linux_enable_btrace): Likewise.
2260 (x86_linux_disable_btrace): Likewise.
2261 (x86_linux_teardown_btrace): Likewise.
2262 (x86_linux_read_btrace): Likewise.
2263 (x86_linux_create_target): Likewise.
2264 (x86_linux_add_target): Likewise.
2265
1aa7e42c
GB
22662014-07-11 Gary Benson <gbenson@redhat.com>
2267
2268 * amd64-linux-nat.c: Comment and whitespace changes.
2269 * i386-linux-nat.c: Comment and whitespace changes.
2270
c1e246a0
GB
22712014-07-11 Gary Benson <gbenson@redhat.com>
2272
2273 * amd64-linux-nat.c (x86_linux_create_target): New function.
2274 (x86_linux_add_target): Likewise.
2275 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2276 * i386-linux-nat.c (x86_linux_create_target): New function.
2277 (x86_linux_add_target): Likewise.
2278 (_initialize_i386_linux_nat): Delegate to the above new functions.
2279
8c420b8d
GB
22802014-07-11 Gary Benson <gbenson@redhat.com>
2281
2282 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2283 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2284 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2285 (ps_get_thread_area): Delegate to the above.
2286
cb1da100
GB
22872014-07-11 Gary Benson <gbenson@redhat.com>
2288
2289 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2290 x86_linux_read_description. All uses updated. amd64-specific
2291 code conditionalized. Conditionalized i386-specific code added.
2292 Redundant cast removed.
2293 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2294 x86_linux_read_description. All uses updated. i386-specific
2295 code conditionalized. Conditionalized amd64-specific code added.
2296 One sizeof replaced with the actual type it is describing.
2297
2acf3cd0
GB
22982014-07-11 Gary Benson <gbenson@redhat.com>
2299
2300 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2301 x86_linux_dr_get. All uses updated.
2302 (amd64_linux_dr_set): Renamed to
2303 x86_linux_dr_set. All uses updated.
2304 (amd64_linux_dr_get_addr): Renamed to
2305 x86_linux_dr_get_addr. All uses updated.
2306 (amd64_linux_dr_get_control): Renamed to
2307 x86_linux_dr_get_control. All uses updated.
2308 (amd64_linux_dr_get_status): Renamed to
2309 x86_linux_dr_get_status. All uses updated.
2310 (amd64_linux_dr_set_control): Renamed to
2311 x86_linux_dr_set_control. All uses updated.
2312 (amd64_linux_dr_set_addr): Renamed to
2313 x86_linux_dr_set_addr. All uses updated.
2314 (amd64_linux_prepare_to_resume): Renamed to
2315 x86_linux_prepare_to_resume. All uses updated.
2316 (amd64_linux_new_thread): Renamed to
2317 x86_linux_new_thread. All uses updated.
2318 (amd64_linux_new_fork): Renamed to
2319 x86_linux_new_fork. All uses updated.
2320 (amd64_linux_child_post_startup_inferior): Renamed to
2321 x86_linux_child_post_startup_inferior. All uses updated.
2322 (amd64_linux_enable_btrace): Renamed to
2323 x86_linux_enable_btrace. All uses updated.
2324 (amd64_linux_disable_btrace): Renamed to
2325 x86_linux_disable_btrace. All uses updated.
2326 (amd64_linux_teardown_btrace): Renamed to
2327 x86_linux_teardown_btrace. All uses updated.
2328 (amd64_linux_read_btrace): Renamed to
2329 x86_linux_read_btrace. All uses updated.
2330 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2331 x86_linux_dr_get. All uses updated.
2332 (i386_linux_dr_set): Renamed to
2333 x86_linux_dr_set. All uses updated.
2334 (i386_linux_dr_get_addr): Renamed to
2335 x86_linux_dr_get_addr. All uses updated.
2336 (i386_linux_dr_get_control): Renamed to
2337 x86_linux_dr_get_control. All uses updated.
2338 (i386_linux_dr_get_status): Renamed to
2339 x86_linux_dr_get_status. All uses updated.
2340 (i386_linux_dr_set_control): Renamed to
2341 x86_linux_dr_set_control. All uses updated.
2342 (i386_linux_dr_set_addr): Renamed to
2343 x86_linux_dr_set_addr. All uses updated.
2344 (i386_linux_prepare_to_resume): Renamed to
2345 x86_linux_prepare_to_resume. All uses updated.
2346 (i386_linux_new_thread): Renamed to
2347 x86_linux_new_thread. All uses updated.
2348 (i386_linux_new_fork): Renamed to
2349 x86_linux_new_fork. All uses updated.
2350 (i386_linux_child_post_startup_inferior): Renamed to
2351 x86_linux_child_post_startup_inferior. All uses updated.
2352 (i386_linux_enable_btrace): Renamed to
2353 x86_linux_enable_btrace. All uses updated.
2354 (i386_linux_disable_btrace): Renamed to
2355 x86_linux_disable_btrace. All uses updated.
2356 (i386_linux_teardown_btrace): Renamed to
2357 x86_linux_teardown_btrace. All uses updated.
2358 (i386_linux_read_btrace): Renamed to
2359 x86_linux_read_btrace. All uses updated.
2360
b9c1d481
AS
23612014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2362
2363 * remote.c (extended_remote_post_attach): New function.
2364 (init_extended_remote_ops): Install it as to_post_attach method.
2365
7180e04a
PA
23662014-07-09 Pedro Alves <palves@redhat.com>
2367
2368 * infcmd.c (attach_command_post_wait): Don't call
2369 target_terminal_inferior here.
2370 (attach_command): Call it here instead.
2371
9a9a7608
AB
23722014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2373
2374 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2375 field.
2376 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2377 from varobj.c, with additional checks.
2378 (c_varobj_ops): Fill in is_path_expr_parent field.
2379 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2380 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2381 field.
2382 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2383 ops method.
2384 (varobj_default_is_path_expr_parent): New function.
2385 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2386 (varobj_default_is_path_expr_parent): Declare new function.
2387
1f267ae3
MM
23882014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2389
2390 * infcmd.c (finish_backward): Turn internal error into normal error.
2391
b2ee242b
PA
23922014-07-07 Pedro Alves <palves@redhat.com>
2393
8a869bca 2394 PR gdb/17096
b2ee242b
PA
2395 * remote.c (async_handle_remote_sigint)
2396 (async_handle_remote_sigint_twice): Call
2397 gdb_call_async_signal_handler instead of
2398 mark_async_signal_handler.
2399
38e229b2
TT
24002014-07-07 Tom Tromey <tromey@redhat.com>
2401
2402 * target-delegates.c: Rebuild.
2403 * target.c (target_info_record): Remove.
2404 * record.c (info_record_command): Unconditionally call
2405 to_info_record.
2406 * target.h (struct target_ops) <to_info_record>: Use
2407 TARGET_DEFAULT_IGNORE.
2408 (target_info_record): Remove.
2409
f0f9ff95
TT
24102014-07-07 Tom Tromey <tromey@redhat.com>
2411
2412 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2413 TARGET_DEFAULT_NORETURN.
2414 * target.c (generic_tls_error): New function.
2415 (target_translate_tls_address): Don't search target stack.
2416 * target-delegates.c: Rebuild.
2417 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2418 stack.
2419 * linux-thread-db.c (thread_db_get_thread_local_address):
2420 Unconditionally call beneath target.
2421
4a5be5ee
MK
24222014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2423
2424 * cli/cli-logging.c (pop_output_files): Assign targerr to
2425 gdb_stdtargerr.
2426
92c3b204
AB
24272014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2428
2429 * MAINTAINERS (Write After Approval): Update my email address.
2430
9b11e3a7
GB
24312014-07-02 Gary Benson <gbenson@redhat.com>
2432
2433 * proc-service.c (ps_xfer_memory): Update comment.
2434 (ps_pstop): Remove unused function.
2435 (ps_pcontinue): Likewise.
2436 (ps_lstop): Likewise.
2437 (ps_lcontinue): Likewise.
2438 (ps_lgetxregsize): Likewise.
2439 (ps_lgetxregs): Likewise.
2440 (ps_lsetxregs): Likewise.
2441 (ps_plog): Likewise.
2442 (ps_ptread): Likewise.
2443 (ps_ptwrite): Likewise.
2444
cf363f18
MW
24452014-07-01 Mark Wielaard <mjw@redhat.com>
2446
2447 * dwarf2read.c (add_array_cv_type): New function.
2448 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2449 (read_tag_volatile_type): Likewise.
2450
82ae6c8d
TT
24512014-07-01 Tom Tromey <tromey@redhat.com>
2452
2453 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2454 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2455 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2456 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2457 * command.h (cmd_cfunc_ftype): Move earlier.
2458 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2459 (add_com, add_info): Use cmd_cfunc_ftype.
2460
96142726
TT
24612014-06-30 Tom Tromey <tromey@redhat.com>
2462
2463 * symtab.c (operator_chars): Make parameters and return type
2464 const.
2465 (file_matches): Make "files" const.
2466 (struct search_symbols_data) <files>: Now const.
2467 (search_symbols): Make "regexp" and "files" parameters const.
2468 Update.
2469 (symtab_symbol_info): Remove cast.
2470 (rbreak_command): Update.
2471 * symtab.h (search_symbols): Update.
2472
b67a2c6f
YQ
24732014-06-27 Yao Qi <yao@codesourcery.com>
2474
2475 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2476 Change parameter type to 'struct thread_info *'. Caller
2477 updated.
2478 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2479 Update declaration.
2480 * dummy-frame.c (struct dummy_frame_id): New.
2481 (dummy_frame_id_eq): New function.
2482 (struct dummy_frame) <id>: Change its type to 'struct
2483 dummy_frame_id'.
2484 (dummy_frame_push): Add parameter ptid and save it in
2485 dummy_frame_id.
2486 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2487 inferior_ptid.
2488 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2489 to inferior_ptid.
2490 (lookup_dummy_frame): Change parameter type to 'struct
2491 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2492 instead of frame_id_eq.
2493 (dummy_frame_pop): Add parameter ptid. Callers updated.
2494 Update comments. Compose dummy_frame_id and pass it to
2495 lookup_dummy_frame.
2496 (dummy_frame_discard): Add parameter ptid.
2497 (dummy_frame_sniffer): Compose dummy_frame_id and call
2498 dummy_frame_id_eq instead of frame_id_eq.
2499 (fprint_dummy_frames): Print ptid.
2500 * dummy-frame.h: Remove comments.
2501 (dummy_frame_push): Add ptid in declaration.
2502 (dummy_frame_pop, dummy_frame_discard): Likewise.
2503
5b10184c
TT
25042014-06-26 Tom Tromey <tromey@redhat.com>
2505
2506 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2507 * command.h (error_no_arg): Update.
2508
06900326
TT
25092014-06-26 Tom Tromey <tromey@redhat.com>
2510
2511 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2512 (do_show_command): Make "arg" const.
2513 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2514
c2bcbb1d
TT
25152014-06-26 Tom Tromey <tromey@redhat.com>
2516
2517 * record-full.c (record_full_get_bookmark): Make "args" const.
2518 (record_full_goto_bookmark): Make "raw_bookmark" const.
2519 * record.c (record_goto): New function.
2520 (cmd_record_goto): Use it. Now static.
2521 * record.h (record_goto): Declare.
2522 (cmd_record_goto): Remove declaration.
2523 * target-delegates.c: Rebuild.
2524 * target.h (struct target_ops) <to_get_bookmark,
2525 to_goto_bookmark>: Make parameter const.
2526
9cbe5fff
TT
25272014-06-26 Tom Tromey <tromey@redhat.com>
2528
2529 * defs.h (generic_load): Update.
2530 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2531 * monitor.c (monitor_load): Make "args" const.
2532 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2533 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2534 const.
2535 (mips_load): Make "file" const.
2536 * remote-sim.c (gdbsim_load): Make "args" const.
2537 * remote.c (remote_load): Make "name" const.
2538 * symfile.c (generic_load): Make "args" const.
2539 * target-delegates.c: Rebuild.
2540 * target.c (target_load): Make "arg" const.
2541 (debug_to_load): Make "args" const.
2542 * target.h (struct target_ops) <to_load>: Make parameter const.
2543 (target_load): Update.
2544
34a68019
TT
25452014-06-26 Tom Tromey <tromey@redhat.com>
2546
2547 PR symtab/16902:
2548 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2549 (dwarf2_physname, read_partial_die)
2550 (guess_partial_die_structure_name, fixup_partial_die)
2551 (guess_full_die_structure_name, anonymous_struct_prefix)
2552 (dwarf2_name): Use per-BFD obstack.
2553
efc889c1
YQ
25542014-06-26 Yao Qi <yao@codesourcery.com>
2555
2556 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2557 dummyframe and this_id into inner block below.
2558
4395285e
YQ
25592014-06-26 Yao Qi <yao@codesourcery.com>
2560
2561 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2562 with "signal_pass[0]" in the initialization of signal_pass.
2563
aef92902
MM
25642014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2565
2566 * record-btrace.c (record_btrace_generating_corefile)
2567 (record_btrace_prepare_to_generate_core)
2568 (record_btrace_done_generating_core): New.
2569 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2570 (record_btrace_store_registers, record_btrace_prepare_to_store):
2571 Forward request when generating a core file.
2572 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2573 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2574 to_done_generating_core.
2575
5fff78c4
MM
25762014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2577
2578 * target.h (target_ops) <to_prepare_to_generate_core>
2579 <to_done_generating_core>: New.
2580 (target_prepare_to_generate_core, target_done_generating_core): New.
2581 * target.c (target_prepare_to_generate_core)
2582 (target_done_generating_core): New.
2583 * target-delegates.c: Regenerate.
2584 * gcore.c: (write_gcore_file): Rename to ...
2585 (write_gcore_file_1): ...this.
2586 (write_gcore_file): Call target_prepare_to_generate_core
2587 and target_done_generating_core.
2588
1d1f1ccb
MM
25892014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2590
2591 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2592 * gcore.c (write_gcore_file): Free memory returned from
2593 make_corefile_notes.
2594 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2595 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2596
3343ef86
YQ
25972014-06-24 Yao Qi <yao@codesourcery.com>
2598
2599 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2600 (arm_linux_init_abi): Set skip_trampoline_code with
2601 gdbarch_skip_trampoline_code instead of
2602 find_solib_trampoline_target.
2603
18d18ac8
YQ
26042014-06-24 Yao Qi <yao@codesourcery.com>
2605
2606 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2607 arm_skip_bx_reg returns non-zero.
2608
80d8d390
YQ
26092014-06-24 Yao Qi <yao@codesourcery.com>
2610
2611 * arm-tdep.c (arm_skip_bx_reg): New function.
2612 (arm_skip_stub): Call arm_skip_bx_reg.
2613
6a18a01c
DB
26142014-06-23 Don Breazeal <donb@codesourcery.com>
2615
2616 * MAINTAINERS: Add myself as write-after-approval maintainer.
2617
8e9db26e
PA
26182014-06-23 Pedro Alves <palves@redhat.com>
2619
2620 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2621 DR_CONTROL before setting DR0..DR3.
2622 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2623 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2624 bits of DR_CONTROL related to the debug register slot being
2625 disabled. If all slots are vacant, clear local slowdown as well,
2626 and assert DR_CONTROL is 0.
2627
70afc5b7
SC
26282014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2629
2630 * python/lib/gdb/command/xmethods.py
2631 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2632 current progspace only if the string "progspace" matches LOCUS_RE.
2633
840ed64d
JK
26342014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2635
2636 Fix --with-system-readline with readline-6.3 patch 5.
2637 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2638 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2639 types.
2640
26f2dc30
TT
26412014-06-20 Tom Tromey <tromey@redhat.com>
2642
2643 * dwarf2read.c (dw2_get_real_path): Use correct type in
2644 OBSTACK_CALLOC.
2645 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2646
125f8a3d
GB
26472014-06-20 Gary Benson <gbenson@redhat.com>
2648
2649 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2650 * common/glibc_thread_db.h: Likewise.
2651 * common/i386-cpuid.h: Likewise.
2652 * common/i386-gcc-cpuid.h: Likewise.
2653 * common/linux-btrace.h: Likewise.
2654 * common/linux-osdata.h: Likewise.
2655 * common/linux-procfs.h: Likewise.
2656 * common/linux-ptrace.h: Likewise.
2657 * common/mips-linux-watch.h: Likewise.
2658 * common/linux-btrace.c: Moved to nat.
2659 * common/linux-osdata.c: Likewise.
2660 * common/linux-procfs.c: Likewise.
2661 * common/linux-ptrace.c: Likewise.
2662 * common/mips-linux-watch.c: Likewise.
2663 * nat/gdb_thread_db.h: Moved from common.
2664 * nat/glibc_thread_db.h: Likewise.
2665 * nat/i386-cpuid.h: Likewise.
2666 * nat/i386-gcc-cpuid.h: Likewise.
2667 * nat/linux-btrace.c: Likewise.
2668 * nat/linux-btrace.h: Likewise.
2669 * nat/linux-osdata.c: Likewise.
2670 * nat/linux-osdata.h: Likewise.
2671 * nat/linux-procfs.c: Likewise.
2672 * nat/linux-procfs.h: Likewise.
2673 * nat/linux-ptrace.c: Likewise.
2674 * nat/linux-ptrace.h: Likewise.
2675 * nat/mips-linux-watch.c: Likewise.
2676 * nat/mips-linux-watch.h: Likewise.
2677 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2678 (object file files): Reordered.
2679 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2680 of glibc_thread_db.h.
2681
42995dbd
GB
26822014-06-20 Gary Benson <gbenson@redhat.com>
2683
2684 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2685 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2686 (i386_dr_low): Likewise.
2687 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2688 (i386_dr_low_set_addr): Likewise.
2689 (i386_dr_low_get_addr): Likewise.
2690 (i386_dr_low_can_set_control): Likewise.
2691 (i386_dr_low_set_control): Likewise.
2692 (i386_dr_low_get_control): Likewise.
2693 (i386_dr_low_get_status): Likewise.
2694 (i386_get_debug_register_length): Likewise.
2695 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2696 (i386_dr_low): Likewise.
2697 * nat/i386-dregs.c (i386-low.h): Remove include.
2698 (i386-nat.h): Likewise.
2699 (nat/i386-dregs.h): New include.
2700 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2701 (i386_dr_low_set_addr): Likewise.
2702 (i386_dr_low_get_addr): Likewise.
2703 (i386_dr_low_can_set_control): Likewise.
2704 (i386_dr_low_set_control): Likewise.
2705 (i386_dr_low_get_control): Likewise.
2706 (i386_dr_low_get_status): Likewise.
2707 (i386_get_debug_register_length): Likewise.
2708 (debug_hw_points): Likewise.
2709
3ed9baed
IB
27102014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2711
2712 * Makefile.in (SFILES): Add d-exp.y.
2713 (YYFILES): Add d-exp.c.
2714 (YYOBJ): Add d-exp.o.
2715 (local-maintainer-clean): Delete d-exp.c.
2716 * d-exp.y: New file.
2717 * d-lang.h (d_parse): New declaration.
2718 (d_error): New declaration.
2719 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2720 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2721 PREC_ORDER operators.
2722 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2723
78c164b0
YQ
27242014-06-19 Yao Qi <yao@codesourcery.com>
2725
2726 * gdbthread.h (any_running): Remove the declaration.
2727 * thread.c (any_running): Remove.
2728
f6e29b6e
YQ
27292014-06-19 Yao Qi <yao@codesourcery.com>
2730
2731 * gdbthread.h (struct thread_info) <state>: Change its type to
2732 'enum thread_state'. Update comments.
2733
034f788c
PA
27342014-06-19 Pedro Alves <palves@redhat.com>
2735
2736 * gdbthread.h (ALL_THREADS): Delete.
2737 (ALL_NON_EXITED_THREADS): New macro.
2738 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2739 instead of ALL_THREADS.
2740 * infrun.c (find_thread_needs_step_over)
2741 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2742 instead of ALL_THREADS.
2743 * record-btrace.c (record_btrace_open)
2744 (record_btrace_stop_recording, record_btrace_close)
2745 (record_btrace_is_replaying, record_btrace_resume)
2746 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2747 * remote.c (append_pending_thread_resumptions): Likewise.
2748 * thread.c (thread_apply_all_command): Likewise.
2749
46e33252
GB
27502014-06-19 Gary Benson <gbenson@redhat.com>
2751
2752 * i386-nat.c (i386_stopped_by_watchpoint):
2753 Use i386_dr_stopped_by_watchpoint.
2754 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2755 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2756
3a8ee006
GB
27572014-06-19 Gary Benson <gbenson@redhat.com>
2758
2759 * nat/i386-dregs.c: New file.
2760 * Makefile.in (i386-dregs.o): New rule.
2761 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2762 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2763 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2764 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2765 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2766 * config/i386/go32.mh (NATDEPFILES): Likewise.
2767 * config/i386/linux.mh (NATDEPFILES): Likewise.
2768 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2769 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2770 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2771 * i386-nat.h (debug_hw_points): New declaration.
2772 * i386-nat.c (breakpoint.h): Remove include.
2773 (command.h): Likewise.
2774 (target.h): Likewise.
2775 (gdb_assert.h): Likewise.
2776 (debug_hw_points): Made nonstatic.
2777 (debug_printf): Now in i386-dregs.c.
2778 (TARGET_HAS_DR_LEN_8): Likewise.
2779 (DR_CONTROL_SHIFT): Likewise.
2780 (DR_CONTROL_SIZE): Likewise.
2781 (DR_RW_EXECUTE): Likewise.
2782 (DR_RW_WRITE): Likewise.
2783 (DR_RW_READ): Likewise.
2784 (DR_RW_IORW): Likewise.
2785 (DR_LEN_1): Likewise.
2786 (DR_LEN_2): Likewise.
2787 (DR_LEN_4): Likewise.
2788 (DR_LEN_8): Likewise.
2789 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2790 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2791 (DR_ENABLE_SIZE): Likewise.
2792 (DR_LOCAL_SLOWDOWN): Likewise.
2793 (DR_GLOBAL_SLOWDOWN): Likewise.
2794 (DR_CONTROL_RESERVED): Likewise.
2795 (I386_DR_CONTROL_MASK): Likewise.
2796 (I386_DR_VACANT): Likewise.
2797 (I386_DR_LOCAL_ENABLE): Likewise.
2798 (I386_DR_GLOBAL_ENABLE): Likewise.
2799 (I386_DR_DISABLE): Likewise.
2800 (I386_DR_SET_RW_LEN): Likewise.
2801 (I386_DR_GET_RW_LEN): Likewise.
2802 (I386_DR_WATCH_HIT): Likewise.
2803 (i386_wp_op_t): Likewise.
2804 (i386_show_dr): Likewise.
2805 (i386_length_and_rw_bits): Likewise.
2806 (i386_insert_aligned_watchpoint): Likewise.
2807 (i386_remove_aligned_watchpoint): Likewise.
2808 (i386_handle_nonaligned_watchpoint): Likewise.
2809 (i386_update_inferior_debug_regs): Likewise.
2810 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2811 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2812 (i386_region_ok_for_watchpoint):
2813 Use i386_dr_region_ok_for_watchpoint.
2814 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2815
322a8e06
GB
28162014-06-19 Gary Benson <gbenson@redhat.com>
2817
2818 * i386-nat.c (i386_insert_hw_breakpoint): Use
2819 i386_insert_watchpoint.
2820 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2821
8f26655c
GB
28222014-06-19 Gary Benson <gbenson@redhat.com>
2823
2824 * i386-nat.c (i386_dr_show): Renamed to
2825 i386_show_dr and made static. All uses updated.
2826 (i386_dr_length_and_rw_bits): Renamed to
2827 i386_length_and_rw_bits and made static.
2828 All uses updated.
2829 (i386_dr_insert_aligned_watchpoint): Renamed to
2830 i386_insert_aligned_watchpoint and made static.
2831 All uses updated.
2832 (i386_dr_remove_aligned_watchpoint): Renamed to
2833 i386_remove_aligned_watchpoint and made static.
2834 All uses updated.
2835 (i386_dr_update_inferior_debug_regs): Renamed to
2836 i386_update_inferior_debug_regs and made static.
2837 All uses updated.
2838 * nat/i386-dregs.h (i386_dr_show): Removed.
2839 (i386_dr_length_and_rw_bits): Likewise.
2840 (i386_dr_insert_aligned_watchpoint): Likewise.
2841 (i386_dr_remove_aligned_watchpoint): Likewise.
2842 (i386_dr_update_inferior_debug_regs): Likewise.
2843
992c7d70
GB
28442014-06-19 Gary Benson <gbenson@redhat.com>
2845
2846 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2847 * configure: Regenerate.
2848 * config.in: Likewise.
2849 * main.c (signal.h): New include.
2850 (setup_alternate_signal_stack): New function.
2851 (captured_main): Call the above.
2852 * cp-support.c (signal.h): New include.
2853 (catch_demangler_crashes): New flag.
2854 (SIGJMP_BUF): New define.
2855 (SIGSETJMP): Likewise.
2856 (SIGLONGJMP): Likewise.
2857 (gdb_demangle_jmp_buf): New static global.
2858 (gdb_demangle_attempt_core_dump): Likewise.
2859 (gdb_demangle_signal_handler): New function.
2860 (gdb_demangle): If catch_demangler_crashes is set, install the
2861 above signal handler before calling bfd_demangle, and restore
2862 the original signal handler afterwards. Display the offending
2863 symbol and call demangler_warning the first time a segmentation
2864 fault is caught.
2865 (_initialize_cp_support): New maint set/show command.
2866
eae7090b
GB
28672014-06-19 Gary Benson <gbenson@redhat.com>
2868
2869 * utils.h (resource_limit_kind): New enum.
2870 (can_dump_core): New declaration.
2871 (warn_cant_dump_core): Likewise.
2872 (dump_core): Likewise.
2873 * utils.c (dump_core): Made nonstatic. Added new
2874 parameter "limit_kind".
2875 (can_dump_core): Made nonstatic. Moved printing code to...
2876 (warn_cant_dump_core): New function.
2877 (can_dump_core_warn): Likewise.
2878 (internal_vproblem): Replace calls to can_dump_core with
2879 calls to can_dump_core_warn. Supply new argument to each.
2880
57fcfb1b
GB
28812014-06-19 Gary Benson <gbenson@redhat.com>
2882
2883 * utils.h (demangler_vwarning): New declaration.
2884 (demangler_warning): Likewise.
2885 * utils.c (struct internal_problem)
2886 <user_settable_should_quit>: New field.
2887 <user_settable_should_dump_core>: Likewise
2888 (internal_error_problem): Add values for above new fields.
2889 (internal_warning_problem): Likewise.
2890 (demangler_warning_problem): New static global.
2891 (demangler_vwarning): New function.
2892 (demangler_warning): Likewise.
2893 (add_internal_problem_command): Selectively add commands.
2894 (_initialize_utils): New internal problem command.
2895 * maint.c (maintenance_demangler_warning): New function.
2896 (_initialize_maint_cmds): New command.
2897
17a40b44
TT
28982014-06-18 Tom Tromey <tromey@redhat.com>
2899
2900 * f-valprint.c (info_common_command_for_block): Update.
2901 * symtab.h (struct general_symbol_info) <common_block>: Now
2902 const.
2903
346d1dfe
TT
29042014-06-18 Tom Tromey <tromey@redhat.com>
2905
2906 * symtab.h (struct symtab) <blockvector>: Now const.
2907 * ada-lang.c (ada_add_global_exceptions): Update.
2908 * buildsym.c (augment_type_symtab): Update.
2909 * dwarf2read.c (dw2_lookup_symbol): Update.
2910 * jit.c (finalize_symtab): Update.
2911 * jv-lang.c (add_class_symtab_symbol): Update.
2912 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2913 Update.
2914 * objfiles.c (objfile_relocate1): Update.
2915 * psymtab.c (lookup_symbol_aux_psymtabs)
2916 (maintenance_check_psymtabs): Update.
2917 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2918 Update.
2919 * spu-tdep.c (spu_catch_start): Update.
2920 * symmisc.c (dump_symtab_1): Update.
2921 * symtab.c (lookup_global_symbol_from_objfile)
2922 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2923 (basic_lookup_transparent_type_quick)
2924 (basic_lookup_transparent_type, find_pc_sect_symtab)
2925 (find_pc_sect_line, search_symbols): Update.
2926 * block.c (find_block_in_blockvector): Make "bl" const.
2927 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2928 const.
2929 (blockvector_contains_pc): Make "bv" const.
2930 (block_for_pc_sect): Update.
2931 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2932 (blockvector_contains_pc): Update.
2933 * breakpoint.c (resolve_sal_pc): Update.
2934 * inline-frame.c (block_starting_point_at): Update.
2935
1834676b
TT
29362014-06-18 Tom Tromey <tromey@redhat.com>
2937
2938 * completer.c (complete_line): Make "line_buffer" const.
2939 * completer.h (complete_line): Update.
2940
ac1a991b
TT
29412014-06-18 Tom Tromey <tromey@redhat.com>
2942
2943 * symtab.c (add_macro_name): Remove unneeded cast.
2944
5bc98e52
TT
29452014-06-18 Tom Tromey <tromey@redhat.com>
2946
2947 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2948 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2949
8236def8
TT
29502014-06-18 Tom Tromey <tromey@redhat.com>
2951
2952 * probe.c (info_probes_for_ops): Make "arg" const.
2953 * probe.h (info_probes_for_ops): Update.
2954
3977b71f
TT
29552014-06-18 Tom Tromey <tromey@redhat.com>
2956
2957 * varobj.c (varobj_create): Update.
2958 * valops.c (value_of_this): Update.
2959 * tracepoint.c (add_local_symbols, scope_info): Update.
2960 * symtab.h (struct general_symbol_info) <block>: Now const.
2961 * symtab.c (skip_prologue_sal)
2962 (default_make_symbol_completion_list_break_on)
2963 (skip_prologue_using_sal): Update.
2964 * stack.h (iterate_over_block_locals)
2965 (iterate_over_block_local_vars): Update.
2966 * stack.c (print_frame_args): Update.
2967 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2968 parameter const.
2969 (get_selected_block): Make return type const.
2970 * python/py-frame.c (frapy_block): Update.
2971 * python/py-block.c (gdbpy_block_for_pc): Update.
2972 * p-exp.y (%union) <bval>: Now const.
2973 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2974 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2975 * m2-exp.y (%union) <bval>: Now const.
2976 * linespec.c (get_current_search_block): Make return type const.
2977 (create_sals_line_offset, find_label_symbols): Update.
2978 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2979 Update.
2980 (block_starting_point_at): Make "block" const.
2981 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2982 (check_exception_resume): Update.
2983 * guile/scm-frame.c (gdbscm_frame_block): Update.
2984 * guile/scm-block.c (gdbscm_lookup_block): Update.
2985 * frame.h (get_frame_block): Update.
2986 (get_selected_block): Make return type const.
2987 * frame.c (frame_id_inner): Update.
2988 * f-valprint.c (info_common_command_for_block)
2989 (info_common_command): Update.
2990 * dwarf2loc.c (dwarf2_find_location_expression)
2991 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2992 (locexpr_describe_location_piece): Update.
2993 * c-exp.y (%union) <bval>: Now const.
2994 * breakpoint.c (resolve_sal_pc): Update.
2995 * blockframe.c (get_frame_block):Make return type const.
2996 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2997 (block_innermost_frame): Update.
2998 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2999 (block_for_pc, block_for_pc_sect): Update.
3000 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3001 'pblock' const.
3002 (block_for_pc_sect, block_for_pc): Make return type const.
3003 * ax-gdb.c (gen_expr): Update.
3004 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3005 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3006 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3007 (ada_read_var_value): Update.
3008 * ada-exp.y (struct name_info) <block>: Now const.
3009 (%union): Likewise.
3010 (block_lookup): Constify.
3011
b9228891
GB
30122014-06-18 Gary Benson <gbenson@redhat.com>
3013
3014 * nat/i386-dregs.h: New file.
3015 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3016 * i386-nat.h (i386-dregs.h): New include.
3017 (DR_FIRSTADDR): Now in i386-dregs.h.
3018 (DR_LASTADDR): Likewise.
3019 (DR_NADDR): Likewise.
3020 (DR_STATUS): Likewise.
3021 (DR_CONTROL): Likewise.
3022 (i386_debug_reg_state): Likewise.
3023 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3024
a1aa2221
LM
30252014-06-18 Don Breazeal <donb@codesourcery.com>
3026
3027 * breakpoint.c (set_longjmp_breakpoint): Call
3028 momentary_breakpoint_from_master with additional argument.
3029 (set_longjmp_breakpoint_for_call_dummy): Call
3030 momentary_breakpoint_from_master with additional argument.
3031 (set_std_terminate_breakpoint): Call
3032 momentary_breakpoint_from_master with additional argument.
3033 (momentary_breakpoint_from_master): Add argument to function
3034 definition and use it to initialize structure member flag.
74228e77 3035 (clone_momentary_breakpoint): Call
a1aa2221
LM
3036 momentary_breakpoint_from_master with additional argument.
3037 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3038 member flags set in momentary_breakpoint_from_master.
3039
4be83cc2
GB
30402014-06-18 Gary Benson <gbenson@redhat.com>
3041
3042 * i386-nat.c (i386_show_dr): Renamed to
3043 i386_dr_show and made nonstatic. All uses updated.
3044 (i386_length_and_rw_bits): Renamed to
3045 i386_dr_length_and_rw_bits and made nonstatic.
3046 All uses updated.
3047 (i386_insert_aligned_watchpoint): Renamed to
3048 i386_dr_insert_aligned_watchpoint and made nonstatic.
3049 All uses updated.
3050 (i386_remove_aligned_watchpoint): Renamed to
3051 i386_dr_remove_aligned_watchpoint and made nonstatic.
3052 All uses updated.
3053 (i386_update_inferior_debug_regs): Renamed to
3054 i386_dr_update_inferior_debug_regs and made nonstatic.
3055 All uses updated.
3056
131aa0d4
GB
30572014-06-18 Gary Benson <gbenson@redhat.com>
3058
3059 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3060 (i386_dr_low_can_set_control): Likewise.
3061 (i386_dr_low_set_addr): Likewise.
3062 (i386_dr_low_set_control): Likewise.
3063 (i386_dr_low_get_addr): Likewise.
3064 (i386_dr_low_get_status): Likewise.
3065 (i386_dr_low_get_control): Likewise.
3066 (i386_insert_aligned_watchpoint): Use new macros.
3067 (i386_update_inferior_debug_regs): Likewise.
3068 (i386_stopped_data_address): Likewise.
3069
d9305f7f
GB
30702014-06-18 Gary Benson <gbenson@redhat.com>
3071
3072 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3073 New parameter. All uses updated.
3074
ea008da4
GB
30752014-06-18 Gary Benson <gbenson@redhat.com>
3076
3077 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3078 All uses updated.
3079
1b6d4134
GB
30802014-06-18 Gary Benson <gbenson@redhat.com>
3081
3082 * i386-nat.c (debug_printf): New macro.
3083 (i386_get_debug_register_length): Likewise.
3084 (TARGET_HAS_DR_LEN_8): Use above macro.
3085 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3086 and printf_unfiltered. Use phex to format values.
3087
9b4550ef
GB
30882014-06-18 Gary Benson <gbenson@redhat.com>
3089
3090 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3091 Make const.
3092
6e62758f
GB
30932014-06-18 Gary Benson <gbenson@redhat.com>
3094
3095 * i386-nat.c: Comment changes.
3096
51c79e94
GB
30972014-06-18 Gary Benson <gbenson@redhat.com>
3098
3099 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3100
3e11889a
GB
31012014-06-18 Gary Benson <gbenson@redhat.com>
3102
3103 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3104 (i386_insert_aligned_watchpoint): Likewise.
3105 (i386_remove_aligned_watchpoint): Likewise.
3106 (i386_handle_nonaligned_watchpoint): Likewise.
3107
fc6e2f03
GB
31082014-06-18 Gary Benson <gbenson@redhat.com>
3109
3110 * i386-nat.c: Whitespace changes.
3111
2afe7d50
SB
31122014-06-17 Samuel Bronson <naesten@gmail.com>
3113
3114 * MAINTAINERS: Update Roland McGrath's email address.
3115 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 3116 Red Hat a while ago, and giving me a current address.
2afe7d50 3117
3bca49ee
TT
31182014-06-17 Tom Tromey <tromey@redhat.com>
3119
3120 * utils.h (savestring): Remove declaration.
3121
6e366df1
TT
31222014-06-17 Tom Tromey <tromey@redhat.com>
3123
3124 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3125
6be47f0c
KS
31262014-06-16 Keith Seitz <keiths@redhat.com>
3127
3128 PR mi/15863
3129 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3130 to update the varobj if inferior_ptid is null_ptid.
3131
7bc112c1
TT
31322014-06-16 Tom Tromey <tromey@redhat.com>
3133
3134 * target.h (struct target_ops) <to_info_proc>: Make parameter
3135 const.
3136 (target_info_proc): Update.
3137 * target.c (target_info_proc): Make "args" const.
3138 * procfs.c (procfs_info_proc): Update.
3139 * linux-tdep.c (linux_info_proc): Update.
3140 (linux_core_info_proc_mappings): Make "args" const.
3141 (linux_core_info_proc): Update.
3142 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3143 * gdbarch.c: Rebuild.
3144 * gdbarch.h: Rebuild.
3145 * corelow.c (core_info_proc): Update.
3146
fee354ee
TT
31472014-06-16 Tom Tromey <tromey@redhat.com>
3148
3149 * target.h (struct target_ops) <to_disconnect>: Make parameter
3150 const.
3151 (target_disconnect): Update.
3152 * target.c (target_disconnect): Make "args" const.
3153 * target-delegates.c: Rebuild.
3154 * remote.c (remote_disconnect): Update.
3155 * record.h (record_disconnect): Update.
3156 * record.c (record_disconnect): Update.
3157 * inf-child.c (inf_child_disconnect): Update.
3158
a30bf1f1
TT
31592014-06-16 Tom Tromey <tromey@redhat.com>
3160
3161 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3162 * target.c (debug_to_rcmd, default_rcmd): Update.
3163 * target-delegates.c: Rebuild.
3164 * remote.c (remote_rcmd): Update.
3165 * monitor.c (monitor_rcmd): Update.
3166
d03de421
PA
31672014-06-16 Pedro Alves <palves@redhat.com>
3168
3169 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3170 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3171 have OBJF_SHARED set.
3172 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3173 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3174 instead of OBJF_USERLOADED.
3175 * objfiles.h (OBJF_SHARED): Update comment.
3176 (userloaded_objfile_contains_address_p): Rename to ...
3177 (shared_objfile_contains_address_p): ... this, and update
3178 comments.
3179 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3180 new objfile.
3181 (remove_symbol_file_command): Skip objfiles that don't have
3182 OBJF_SHARED set.
3183
99f4262f
TT
31842014-06-16 Tom Tromey <tromey@redhat.com>
3185
3186 * minsyms.h (prim_record_minimal_symbol)
3187 (prim_record_minimal_symbol_and_info): Update comments.
3188
97d66cc6
EZ
31892014-06-14 Eli Zaretskii <eliz@gnu.org>
3190
3191 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3192 or --without-guile, according to how GDB was built.
3193
635c7e8a
TT
31942014-06-13 Tom Tromey <tromey@redhat.com>
3195
3196 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3197 to help_list.
3198 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3199 to help_list.
3200 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3201 help_list.
3202 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3203 help_list.Pass all_commands, not -1, to help_list.
3204 * cli/cli-dump.c (dump_command, append_command)
3205 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3206 (binary_dump_command, binary_append_command): Pass all_commands,
3207 not -1, to help_list.
3208 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3209 -1, to help_list.
3210 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3211 -1, to help_list.
3212 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3213 help_list.
3214 * top.c (set_history): Pass all_commands, not -1, to help_list.
3215 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3216 all_commands, not -1, to help_list.
3217 * symfile.c (overlay_command): Pass all_commands, not -1, to
3218 help_list.
3219 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3220 help_list.
3221 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3222 help_list.
3223 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3224 -1, to help_list.
3225 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3226 not -1, to help_list.
3227 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3228 not -1, to help_list.
3229 * maint.c (maintenance_command, maintenance_info_command)
3230 (maintenance_print_command, maintenance_set_cmd): Pass
3231 all_commands, not -1, to help_list.
3232 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3233 help_list.
3234 * language.c (set_check): Pass all_commands, not -1, to help_list.
3235 * infcmd.c (unset_command): Pass all_commands, not -1, to
3236 help_list.
3237 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3238 help_list.
3239 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3240 help_list.
3241 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3242 help_list.
3243 * breakpoint.c (save_command): Pass all_commands, not -1, to
3244 help_list.
3245 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3246 all_commands, not -1, to help_list.
3247
b94ade42
PL
32482014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3249
3250 * regcache.c (struct register_to_invalidate): New structure.
3251 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3252 functions.
3253 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3254
31f628ae
YQ
32552014-06-12 Yao Qi <yao@codesourcery.com>
3256
3257 * varobj.c (varobj_get_num_children): Call
3258 varobj_is_dynamic_p.
3259 (varobj_list_children): Likewise.
3260 (varobj_update): Likewise. Update comments.
3261
cde5ef40
YQ
32622014-06-12 Yao Qi <yao@codesourcery.com>
3263
3264 * varobj.c (varobj_pretty_printed_p): Rename to ...
3265 (varobj_is_dynamic_p): ... this. New function.
3266 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3267 (varobj_is_dynamic_p): Declare.
3268 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3269 (mi_print_value_p, varobj_update_one): Likewise.
3270
576ea091
YQ
32712014-06-12 Pedro Alves <pedro@codesourcery.com>
3272 Yao Qi <yao@codesourcery.com>
3273
3274 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3275 (varobj_get_iterator): Wrap up code for pretty-printer by
3276 "#if HAVE_PYTHON" and "#endif".
3277 (update_dynamic_varobj_children): Likewise.
3278
827f100c
YQ
32792014-06-12 Pedro Alves <pedro@codesourcery.com>
3280 Yao Qi <yao@codesourcery.com>
3281
3282 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3283 gdb_python_initialized is false. Move some code from varobj.c.
3284 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3285 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3286 (struct varobj_item): Moved to varobj-iter.h".
3287 (varobj_clear_saved_item): New function.
3288 (update_dynamic_varobj_children): Move python-related code to
3289 py-varobj.c.
3290 (free_variable): Call varobj_clear_saved_item and
3291 varobj_iter_delete.
3292
e5250216
YQ
32932014-06-12 Pedro Alves <pedro@codesourcery.com>
3294 Yao Qi <yao@codesourcery.com>
3295
3296 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3297 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3298 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3299 (py-varobj.o): New rule.
3300 * python/py-varobj.c: New file.
3301 * python/python-internal.h (py_varobj_get_iterator): Declare.
3302 * varobj-iter.h: New file.
3303 * varobj.c: Include "varobj-iter.h"
3304 (struct varobj) <child_iter>: Change its type from "PyObject *"
3305 to "struct varobj_iter *".
3306 <saved_item>: Likewise.
3307 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3308 [HAVE_PYTHON] (varobj_get_iterator): New function.
3309 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3310 python-specific code to python/py-varobj.c.
3311 (install_visualizer): Call varobj_iter_delete instead of
3312 Py_XDECREF.
3313 * varobj.h (varobj_ensure_python_env): Declare.
3314
5a2e0d6e
YQ
33152014-06-12 Yao Qi <yao@codesourcery.com>
3316
3317 * varobj.c (struct varobj_item): New structure.
3318 (create_child_with_value): Update declaration.
3319 (varobj_add_child): Replace arguments 'name' and 'value' with
3320 'item'. All callers updated.
3321 (install_dynamic_child): Likewise.
3322 (update_dynamic_varobj_children): Likewise.
3323 (varobj_add_child): Likewise.
3324 (create_child_with_value): Likewise.
3325
919b9a93
JB
33262014-06-11 Joel Brobecker <brobecker@adacore.com>
3327
3328 * NEWS: Create a new section for the next release branch.
3329 Rename the section of the current branch, now that it has
3330 been cut.
3331
71a55bdf
JB
33322014-06-11 Joel Brobecker <brobecker@adacore.com>
3333
3334 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3335 * version.in: Bump version to 7.8.50.DATE-cvs.
3336
364fe1f7
PA
33372014-06-11 Pedro Alves <palves@redhat.com>
3338
3339 PR remote/17028
3340 * ser-mingw.c (net_windows_socket_check_pending): New function.
3341 (net_windows_select_thread): Ignore spurious wakeups. Use
3342 net_windows_socket_check_pending.
3343 (net_windows_wait_handle): Check for pending events with
3344 ioctlsocket, through net_windows_socket_check_pending, instead of
3345 checking the socket's event.
3346
5a6c7709
SC
33472014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3348
3349 * python/python-internal.h (gdb_PyObject_GetAttrString)
3350 (gdb_PyObject_HasAttrString): New inline function definitions.
3351 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3352 char * of the second argument to PyObject_GetAttrString.
74228e77 3353
0e58ee40
JB
33542014-06-10 Joel Brobecker <brobecker@adacore.com>
3355
3356 * serial.c (serial_write): Fix index of character to be printed
3357 in call to serial_logchar when serial debug traces are enabled.
3358
d190df30
JB
33592014-06-10 Joel Brobecker <brobecker@adacore.com>
3360
3361 * gdbtypes (resolve_dynamic_range): Add function description.
3362
b4b01d36
PA
33632014-06-09 Pedro Alves <palves@redhat.com>
3364
3365 * linux-nat.c (linux_child_follow_fork): Initialize status with
3366 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3367 inner block. Only pass the signal to PTRACE_DETACH if in pass
3368 state.
3369
3657956b
GB
33702014-06-09 Gary Benson <gbenson@redhat.com>
3371
3372 * common/signals.c (gdb_signal_from_host): Reorder to separate
3373 the always-available ANSI-standard signals from the signals that
3374 require checking.
3375 (do_gdb_signal_to_host): Likewise.
3376 * proc-events.c (signal_table): Likewise.
3377
c077881a
HZ
33782014-06-08 Hui Zhu <hui@codesourcery.com>
3379
3380 * common/linux-ptrace.c (linux_disable_event_reporting): New
3381 function.
3382 * common/linux-ptrace.h (linux_disable_event_reporting): New
3383 declaration.
3384 * linux-nat.c (linux_child_follow_fork): Do a single step before
3385 detach.
3386
4186eb54
KS
33872014-06-07 Keith Seitz <keiths@redhat.com>
3388
3389 Revert:
3390 PR c++/16253
3391 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3392 from symbol_matches_domain in symtab.c. All local callers
3393 of symbol_matches_domain updated.
3394 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3395 search STRUCT_DOMAIN.
3396 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3397 independently. standard_lookup will do that automatically.
3398 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3399 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3400 (cp_lookup_symbol_in_namespace): Likewise.
3401 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3402 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3403 may return a STRUCT_DOMAIN match.
3404 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3405 * cp-support.c: Include language.h.
3406 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3407 VAR_DOMAIN.
3408 * psymtab.c (match_partial_symbol): Compare the requested
3409 domain with the symbol's domain directly.
3410 (lookup_partial_symbol): Likewise.
3411 * symtab.c (lookup_symbol_in_language): Explain when/why
3412 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3413 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3414 appropriate languages.
3415 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3416 and moved to ada-lang.c
3417 (lookup_block_symbol): Explain that this function only returns
3418 symbol matching the requested DOMAIN.
3419 Compare the requested domain with the symbol's domain directly.
3420 (iterate_over_symbols): Compare the requested domain with the
3421 symbol's domain directly.
3422 * symtab.h (symbol_matches_domain): Remove.
3423
25326a28 34242014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
3425
3426 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3427 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3428 (gdbscm_guile_version_is_at_least): Declare.
3429 (gdbscm_scm_string_to_int): Declare.
3430 * guile/guile.c (gdbscm_guile_major_version): New global.
3431 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3432 (guile_datadir): New static global.
3433 (gdbscm_guile_data_directory): New function.
3434 (initialize_scheme_side): Update.
3435 (misc_guile_functions): Add guile-data-directory.
3436 (initialize_gdb_module): Fetch guile version number.
3437 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3438 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3439 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3440 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3441 comments.
3442 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3443 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3444 * guile/scm-value.c (gdbscm_value_to_string): Only call
3445 scm_port_conversion_strategy if Guile version >= 2.0.6.
3446
0a770bb2 34472014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3448
3449 * main.c (print_gdb_help): Add -q and --silent.
3450
73ba372c
GB
34512014-06-06 Gary Benson <gbenson@redhat.com>
3452
3453 * common/signals.c: Remove preprocessor conditionals for
3454 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3455 SIGSEGV and SIGTERM.
3456 * proc-events.c: Likewise.
3457
c33b2f12
MM
34582014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3459
3460 * symfile.c (symfile_free_objfile): Remove restriction to
3461 OBJF_USERLOADED.
3462 * symfile-mem.c (symbol_file_add_from_memory): Call
3463 add_target_sections_of_objfile.
3464
fb934770
LC
34652014-06-05 Ludovic Courtès <ludo@gnu.org>
3466
3467 * guile/scm-value.c (gdbscm_history_append_x): Use
3468 'vlscm_get_value_smob_arg_unsafe' instead of
3469 'vlscm_scm_to_value'.
3470
6ef284bd
SM
34712014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3472
3473 PR mi/15806
3474 * utils.c (printchar): Don't escape at all if quoter is NUL.
3475 Update function documentation to clarify effect of parameter
3476 QUOTER.
3477 * remote.c (escape_buffer): Pass '\\' as the quoter to
3478 fputstrn_unfiltered.
3479 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3480 generate the output.
3481 (mi_solib_unloaded): Same.
3482
270c9937
JB
34832014-06-05 Joel Brobecker <brobecker@adacore.com>
3484
3485 * development.sh: Delete.
3486 * Makefile.in (config.status): Adjust dependency on development.sh.
3487 * configure.ac: Adjust development.sh source call.
3488 * configure: Regenerate.
3489
16f691fb
DE
34902014-06-04 Doug Evans <xdje42@gmail.com>
3491
3492 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3493 is_scheme_bkpt, spec.
3494 (bpscm_make_breakpoint_smob): Initialize new members.
3495 (gdbscm_create_breakpoint_x): Split into two ...
3496 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3497 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3498 (scheme_function breakpoint_functions): Update.
3499 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3500 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3501 register-breakpoint!.
3502
ef7cab6b
JB
35032014-06-04 Joel Brobecker <brobecker@adacorer.com>
3504
3505 PR server/17023
3506 * mem-break.c (z_type_supported): Return zero if
3507 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3508
012370f6
TT
35092014-06-04 Tom Tromey <tromey@redhat.com>
3510
3511 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3512 value_from_contents_and_address_unresolved.
3513 (ada_template_to_fixed_record_type_1): Likewise.
3514 (ada_which_variant_applies): Likewise.
3515 * value.h (value_from_contents_and_address_unresolved): Declare.
3516 * value.c (value_from_contents_and_address_unresolved): New
3517 function.
3518 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3519 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3520 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3521
92e2a17f
TT
35222014-06-04 Tom Tromey <tromey@redhat.com>
3523
3524 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3525
c0939df1
TT
35262014-06-04 Tom Tromey <tromey@redhat.com>
3527
3528 * procfs.c (procfs_attach): Make "args" const.
3529 * windows-nat.c (windows_attach): Make "args" const.
3530 * nto-procfs.c (procfs_attach): Make "args" const.
3531 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3532 * go32-nat.c (go32_attach): Make "args" const.
3533 * gnu-nat.c (gnu_attach): Make "args" const.
3534 * darwin-nat.c (darwin_attach): Make "args" const.
3535 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3536 * linux-nat.c (linux_nat_attach): Make "args" const.
3537 * remote.c (extended_remote_attach_1, extended_remote_attach):
3538 Make "args" const.
3539 * target.h (struct target_ops) <to_attach>: Make "args" const.
3540 (find_default_attach): Likewise.
3541 * utils.c (parse_pid_to_attach): Make "args" const.
3542 * utils.h (parse_pid_to_attach): Update.
3543
8eaff7cd
TT
35442014-06-04 Tom Tromey <tromey@redhat.com>
3545
3546 * target-delegates.c: Rebuild.
3547 * target.c (default_thread_address_space): New function.
3548 (target_thread_address_space): Simplify.
3549 * target.h (struct target_ops) <to_thread_address_space>: Add
3550 TARGET_DEFAULT_FUNC.
3551
1913f160
DE
35522014-06-04 Doug Evans <xdje42@gmail.com>
3553
3554 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3555
70ad5bff
MM
35562014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3557
3558 * record-btrace.c: Include event-loop.h and inf-loop.h.
3559 (record_btrace_resume_exec_dir)
3560 (record_btrace_async_inferior_event_handler)
3561 (record_btrace_handle_async_inferior_event): New.
3562 (record_btrace_open): Create async event handler.
3563 (record_btrace_close): Delete async event handler.
3564 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3565 Mark async event handler.
3566 (record_btrace_execution_direction): New.
3567 (init_record_btrace_ops): Initialize to_execution_direction.
3568
b6210538
DE
35692014-06-03 Doug Evans <xdje42@gmail.com>
3570
3571 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3572 (gdbscm_make_parameter): Ditto.
3573
a5b1fd27
DE
35742014-06-03 Doug Evans <dje@google.com>
3575
3576 * exec.c (exec_close_1): Call clear_section_table instead of
3577 resize_section_table.
3578 (clear_section_table): New function.
3579 (resize_section_table): Make static. Rename arg num_added to
3580 adjustment.
3581 * exec.h (clear_section_table): Declare.
3582 (resize_section_table): Delete.
3583 * progspace.c (release_program_space): Call clear_section_table
3584 instead of resize_section_table.
3585
0c6e92a5
SC
35862014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3587
3588 * NEWS (Python Scripting): Add entry about the new xmethods
3589 feature.
3590
883964a7
SC
35912014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3592
3593 * python/py-xmethods.c: New file.
3594 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3595 (objfpy_dealloc): XDECREF on the new xmethods field.
3596 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3597 field.
3598 (objfpy_get_xmethods): New function.
3599 (objfile_getset): New entry 'xmethods'.
3600 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3601 (pspy_dealloc): XDECREF on the new xmethods field.
3602 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3603 field.
3604 (pspy_get_xmethods): New function.
3605 (pspace_getset): New entry 'xmethods'.
3606 * python/python-internal.h: Add declarations for new functions.
3607 * python/python.c (_initialize_python): Invoke
3608 gdbpy_initialize_xmethods.
3609 * python/lib/gdb/__init__.py (xmethods): New
3610 attribute.
3611 * python/lib/gdb/xmethod.py: New file.
3612 * python/lib/gdb/command/xmethods.py: New file.
3613
58992dc5
SC
36142014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3615
3616 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3617 best match method returned by find_overload_match is an xmethod.
3618 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3619 the best matching operator returned by find_overload_match is an
3620 xmethod.
3621 * valops.c: #include "extension.h".
3622 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3623 Return void. The list of matching source methods is returned in
3624 "fn_list" and a vector of matching debug method workers is
3625 returned in "xm_worker_vec". Update all callers.
3626 (value_find_oload_method_list): Likewise.
3627 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3628 non-NULL, then the index of the best matching method in this
3629 vector is returned. Update all callers.
3630 (find_overload_match): Include xmethods while performing overload
3631 resolution.
3632
e81e7f5e
SC
36332014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3634
3635 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3636 * extension-priv.h (struct extension_language_ops): Add the
3637 xmethod interface.
3638 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3639 get_matching_xmethod_workers, get_xmethod_argtypes,
3640 invoke_xmethod, free_xmethod_worker,
3641 free_xmethod_worker_vec): New functions.
3642 * extension.h: #include "common/vec.h".
3643 New function declarations.
3644 (struct xmethod_worker): New struct.
3645 (VEC (xmethod_worker_ptr)): New vector type.
3646 (xmethod_worker_ptr): New typedef.
3647 (xmethod_worker_vec): Likewise.
3648 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3649 builtin_type.
3650 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3651 (struct builtin_type): New field "xmethod".
3652 * valarith.c (value_ptradd): Assert that the value argument is not
3653 lval_xcallable.
3654 * valops.c (value_must_coerce_to_target): Return 0 for
3655 lval_xcallable values.
3656 * value.c (struct value): New field XM_WORKER in the field
3657 LOCATION.
3658 (value_address, value_raw_address): Return 0 for lval_xcallable
3659 values.
3660 (set_value_address): Assert that the value is not an
3661 lval_xcallable.
3662 (value_free): Free the associated xmethod worker when freeing
3663 lval_xcallable values.
3664 (set_value_component_location): Assert that the WHOLE value is not
3665 lval_xcallable.
3666 (value_of_xmethod, call_xmethod): New functions.
3667 * value.h: Declare "struct xmethod_worker".
3668 Declare new functions value_of_xmethod, call_xmethod.
3669
ef370185
JB
36702014-06-03 Joel Brobecker <brobecker@adacore.com>
3671 Pedro Alves <palves@redhat.com>
3672
3673 PR breakpoints/17000
3674 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3675 New function, extracted from software_breakpoint_inserted_here_p.
3676 (software_breakpoint_inserted_here_p): Replace factored out code
3677 by call to find_non_raw_software_breakpoint_inserted_here.
3678 (bp_target_info_copy_insertion_state): New function.
3679 (bkpt_insert_location): Handle the case of a single-step
3680 breakpoint already inserted at the same address.
3681 (bkpt_remove_location): Handle the case of a single-step
3682 breakpoint still inserted at the same address.
3683 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3684 breakpoint already inserted at the same address.
3685 (deprecated_remove_raw_breakpoint): Handle the case of a
3686 non-raw breakpoint still inserted at the same address.
3687 (find_single_step_breakpoint): New function, extracted from
3688 single_step_breakpoint_inserted_here_p.
3689 (find_single_step_breakpoint): New function,
3690 factored out from single_step_breakpoint_inserted_here_p.
3691 (single_step_breakpoint_inserted_here_p): Reimplement.
3692
1e2ccb61
BM
36932014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3694
3695 Pushed by Joel Brobecker <brobecker@adacore.com>
3696 * source.c (show_substitute_path_command): Fix display of matching
3697 substitution rules.
3698
d3448d85
GB
36992014-06-03 Gary Benson <gbenson@redhat.com>
3700
3701 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3702
06eb1586
DE
37032014-06-02 Doug Evans <xdje42@gmail.com>
3704
3705 Add parameter support for Guile.
3706 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3707 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3708 (scm-param.o): New rule.
3709 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3710 (gdbscm_misc_error): Declare.
3711 (gdbscm_canonicalize_command_name): Declare.
3712 (gdbscm_scm_to_host_string): Declare.
3713 (gdbscm_scm_from_host_string): Declare.
3714 (gdbscm_initialize_parameters): Declare.
3715 * guile/guile.c (initialize_gdb_module): Call
3716 gdbscm_initialize_parameters.
3717 * guile/lib/gdb.scm: Export parameter symbols.
3718 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3719 cmdscm_canonicalize_name and made public. All callers updated.
3720 * guile/scm-exception.c (gdbscm_misc_error): New function.
3721 * guile/scm-param.c: New file.
3722 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3723 (gdbscm_scm_to_host_string): New function.
3724 (gdbscm_scm_from_host_string): New function.
3725 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3726
e698b8c4
DE
37272014-06-02 Doug Evans <xdje42@gmail.com>
3728
3729 Add command support for Guile.
3730 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3731 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3732 (scm-cmd.o): New rule.
3733 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3734 (gdbscm_user_error_p): Declare.
3735 (gdbscm_parse_command_name): Declare.
3736 (gdbscm_valid_command_class_p): Declare.
3737 (gdbscm_initialize_commands): Declare.
3738 * guile/guile.c (initialize_gdb_module): Call
3739 gdbscm_initialize_commands.
3740 * guile/lib/gdb.scm: Export command symbols.
3741 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3742 (throw-user-error): New function.
3743 * guile/scm-cmd.c: New file.
3744 * guile/scm-exception.c (user_error_symbol): New static global.
3745 (gdbscm_user_error_p): New function.
3746 (gdbscm_initialize_exceptions): Set user_error_symbol.
3747 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3748
fb1f94b0
PM
37492014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3750
3751 * top.c (command_loop): Handle comments here...
3752 (command_line_input): ... not here.
3753
ded03782
DE
37542014-06-02 Doug Evans <xdje42@gmail.com>
3755
3756 Add progspace support for Guile.
3757 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3758 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3759 (scm-progspace.o): New rule.
3760 * guile/guile-internal.h (pspace_smob): New typedef.
3761 (psscm_pspace_smob_pretty_printers): Declare.
3762 (psscm_pspace_smob_from_pspace): Declare.
3763 (psscm_scm_from_pspace): Declare.
3764 * guile/guile.c (initialize_gdb_module): Call
3765 gdbscm_initialize_pspaces.
3766 * guile/lib/gdb.scm: Export progspace symbols.
3767 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3768 support.
3769 (append-pretty-printer!): Ditto.
3770 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3771 Implement.
3772 * guile/scm-progspace.c: New file.
3773
397998fc
AM
37742014-06-03 Alan Modra <amodra@gmail.com>
3775
3776 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3777 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3778
6aa5f3a6
DE
37792014-06-02 Doug Evans <dje@google.com>
3780
3781 Add support for skeletonless type units.
3782 * dwarf2read.c (struct dwarf2_per_objfile): New member
3783 n_allocated_type_units.
3784 (struct dwarf2_per_objfile) <tu_stats>: New member
3785 nr_all_type_units_reallocs.
3786 (create_signatured_type_table_from_index): Initialize
3787 n_allocated_type_units
3788 (create_all_type_units): Ditto.
3789 (add_type_unit): Move up in file. New arg slot.
3790 All callers updated. Increase space for all_type_units more
3791 efficiently.
3792 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3793 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3794 (lookup_dwp_signatured_type): Ditto.
3795 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3796 All callers updated.
3797 (build_type_psymtabs_1): Leave type_unit_groups as
3798 NULL if no TUs present.
3799 (print_tu_stats): New function.
3800 (process_skeletonless_type_unit): New function.
3801 (process_dwo_file_for_skeletonless_type_units): New
3802 function.
3803 (process_skeletonless_type_units): New function.
3804 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3805 Call print tu_stats if debugging enabled.
3806
41fac0cf
PA
38072014-06-02 Pedro Alves <palves@redhat.com>
3808
3809 * breakpoint.c (build_target_command_list): Don't build a command
3810 list if we have any duplicate location that isn't a dprintf.
3811
cd1608cc
PA
38122014-06-02 Pedro Alves <palves@redhat.com>
3813
3814 * breakpoint.c (dprintf_breakpoint_hit): New function.
3815 (initialize_breakpoint_ops): Install it as dprintf's
3816 breakpoint_hit method.
3817
486ef3b9
JB
38182014-06-02 Joel Brobecker <brobecker@adacore.com>
3819
3820 * source.c (substitute_path_rule_matches): Simplify using
3821 filename_ncmp instead of FILENAME_CMP.
3822
230cd560
JB
38232014-06-02 Joel Brobecker <brobecker@adacore.com>
3824
3825 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3826
16954d5d
LC
38272014-06-01 Ludovic Courtès <ludo@gnu.org>
3828
3829 * configure.ac: When Guile is available, check for the
3830 availability of 'scm_new_smob'.
3831 * configure, config.h.in: Regenerate.
3832 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3833 function.
3834
53e8a631
AB
38352014-05-30 Andrew Burgess <aburgess@broadcom.com>
3836
3837 * frame.c (struct frame_info): Add stop_string field.
3838 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3839 (get_prev_frame_always): Old content moved into
3840 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3841 TRY_CATCH, handle MEMORY_ERROR exceptions.
3842 (frame_stop_reason_string): New function definition.
3843 * frame.h (unwind_stop_reason_to_string): Extend comment to
3844 mention frame_stop_reason_string.
3845 (frame_stop_reason_string): New function declaration.
3846 * stack.c (frame_info): Switch to frame_stop_reason_string.
3847 (backtrace_command_1): Switch to frame_stop_reason_string.
3848 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3849 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3850 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3851
70e38b8e
AB
38522014-05-30 Andrew Burgess <aburgess@broadcom.com>
3853
3854 * frame.c (frame_stop_reason_string): Rename to ...
3855 (unwind_stop_reason_to_string): this.
3856 * frame.h (frame_stop_reason_string): Rename to ...
3857 (unwind_stop_reason_to_string): this.
3858 * stack.c (frame_info): Update call to frame_stop_reason_string.
3859 (backtrace_command_1): Likewise.
3860 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3861 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3862
938f0e2f
AB
38632014-05-30 Andrew Burgess <aburgess@broadcom.com>
3864
3865 * frame.c (remove_prev_frame): New function.
3866 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3867 remove_prev_frame.
3868
a09dd441
PA
38692014-05-29 Pedro Alves <palves@redhat.com>
3870
3871 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3872 and make it const. When a single-step decays to a continue,
3873 clear 'step', not 'hw_step'. Pass whether the caller wanted
3874 to step to user_visible_resume_ptid, not what we ask the
3875 target to do.
3876
bdc36728
PA
38772014-05-29 Pedro Alves <palves@redhat.com>
3878
3879 * infrun.c (process_event_stop_test, handle_step_into_function)
3880 (handle_step_into_function_backward): Adjust.
3881 Don't set the even thread's stop_step and call stop_waiting before
3882 calling end_stepping_range. Instead do that ...
3883 (end_stepping_range): ... here. Take an ecs pointer parameter.
3884
22bcd14b
PA
38852014-05-29 Pedro Alves <palves@redhat.com>
3886
3887 * infrun.c (stop_stepping): Rename to ...
3888 (stop_waiting): ... this.
3889 (proceed): Update comment.
3890 (process_event_stop_test, handle_inferior_event)
3891 (handle_signal_stop, handle_step_into_function)
3892 (handle_step_into_function_backward): Update.
3893
4ae57c05
PA
38942014-05-29 Pedro Alves <palves@redhat.com>
3895
3896 * infcall.c (run_inferior_call): Don't check whether the current
3897 thread is running after the proceed call.
3898
329ea579
PA
38992014-05-29 Pedro Alves <palves@redhat.com>
3900 Tom Tromey <tromey@redhat.com>
3901
3902 * NEWS: Mention "maint set target-async", "set mi-async", and that
3903 background execution commands are now always available.
3904 * target.h (target_async_permitted): Update comment.
3905 * target.c (target_async_permitted, target_async_permitted_1):
3906 Default to 1.
3907 (set_target_async_command): Rename to ...
3908 (maint_set_target_async_command): ... this.
3909 (show_target_async_command): Rename to ...
3910 (maint_show_target_async_command): ... this.
3911 (_initialize_target): Adjust.
3912 * infcmd.c (prepare_execution_command): Make extern.
3913 * inferior.h (prepare_execution_command): Declare.
3914 * infrun.c (set_observer_mode): Leave target async alone.
3915 * mi/mi-interp.c (mi_interpreter_init): Install
3916 mi_on_sync_execution_done as sync_execution_done observer.
3917 (mi_on_sync_execution_done): New function.
3918 (mi_execute_command_input_handler): Don't print the prompt if we
3919 just started a synchronous command with an async target.
3920 (mi_on_resume): Check sync_execution before printing prompt.
3921 * mi/mi-main.h (mi_async_p): Declare.
3922 * mi/mi-main.c: Include gdbcmd.h.
3923 (mi_async_p): New function.
3924 (mi_async, mi_async_1): New globals.
3925 (set_mi_async_command, show_mi_async_command, mi_async): New
3926 functions.
3927 (exec_continue): Call prepare_execution_command.
3928 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3929 (mi_execute_async_cli_command): Use mi_async_p.
3930 (_initialize_mi_main): Install "set mi-async". Make
3931 "target-async" a deprecated alias.
3932
92bcb5f9
PA
39332014-05-29 Pedro Alves <palves@redhat.com>
3934
3935 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3936 (_initialize_cli_interp): Adjust.
3937 * event-loop.c: Include "observer.h".
3938 (start_event_loop): Notify 'command_error' observers instead of
3939 calling display_gdb_prompt. Remove FIXME comment.
3940 * event-top.c (display_gdb_prompt): Remove call into the
3941 interpreters.
3942 * inf-loop.c: Include "observer.h".
3943 (inferior_event_handler): Notify 'command_error' observers instead
3944 of calling display_gdb_prompt.
3945 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3946 observers instead of calling display_gdb_prompt.
3947 * interps.c (interp_set): Don't call display_gdb_prompt.
3948 (current_interp_display_prompt_p): Delete.
3949 * interps.h (interp_prompt_p): Delete declaration.
3950 (interp_prompt_p_ftype): Delete.
3951 (struct interp_procs) <prompt_proc_p>: Delete field.
3952 (current_interp_display_prompt_p): Delete declaration.
3953 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3954 (_initialize_mi_interp): Adjust.
3955 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3956 'command_error' observers.
3957 (tui_on_sync_execution_done, tui_on_command_error): New
3958 functions.
3959 (tui_display_prompt_p): Delete.
3960 (_initialize_tui_interp): Adjust.
3961
fd664c91
PA
39622014-05-29 Pedro Alves <palves@redhat.com>
3963
3964 PR gdb/13860
3965 * cli/cli-interp.c: Include infrun.h and observer.h.
3966 (cli_uiout, cli_interp): New globals.
3967 (cli_on_signal_received, cli_on_end_stepping_range)
3968 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3969 functions.
3970 (cli_interpreter_init): Install them as 'end_stepping_range',
3971 'signal_received' 'signal_exited', 'exited' and 'no_history'
3972 observers.
3973 (_initialize_cli_interp): Remove cli_interp local.
3974 * infrun.c (handle_inferior_event): Call the several stop reason
3975 observers instead of printing the stop reason directly.
3976 (end_stepping_range): New function.
3977 (print_end_stepping_range_reason, print_signal_exited_reason)
3978 (print_exited_reason, print_signal_received_reason)
3979 (print_no_history_reason): Make static, and add an uiout
3980 parameter. Print to that instead of to CURRENT_UIOUT.
3981 * infrun.h (print_end_stepping_range_reason)
3982 (print_signal_exited_reason, print_exited_reason)
3983 (print_signal_received_reason print_no_history_reason): New
3984 declarations.
3985 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3986 'mi_uiout'.
3987 <cli_uiout>: New field.
3988 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3989 uiout for CLI output. Install 'signal_received',
3990 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3991 observers.
3992 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3993 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3994 (mi_on_no_history): New functions.
3995 (ui_out_free_cleanup): Delete function.
3996 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3997 instead use the one already stored in the MI interpreter data.
3998 (mi_ui_out): Adjust.
3999 * tui/tui-interp.c: Include infrun.h and observer.h.
4000 (tui_interp): New global.
4001 (tui_on_signal_received, tui_on_end_stepping_range)
4002 (tui_on_signal_exited, tui_on_exited)
4003 (tui_on_no_history): New functions.
4004 (tui_init): Install them as 'end_stepping_range',
4005 'signal_received' 'signal_exited', 'exited' and 'no_history'
4006 observers.
4007 (_initialize_tui_interp): Delete tui_interp local.
4008
8817a6f2
PA
40092014-05-29 Pedro Alves <palves@redhat.com>
4010
4011 PR gdb/15713
4012 * linux-nat.c (linux_nat_resume_callback): Rename the second
4013 parameter to 'except'. Skip LP if it points to EXCEPT.
4014 (linux_nat_resume): Don't mark the event lwp as not stopped
4015 before resuming sibling lwps. Instead ask
4016 linux_nat_resume_callback to skip the event lwp. Mark it as not
4017 stopped after actually resuming it.
4018 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4019 resuming it.
4020 (wait_lwp): Mark the lwp as stopped here.
4021 (stop_wait_callback): Mark the lwp as not stopped right after
4022 resuming it. Don't mark lwps as stopped here.
4023 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4024 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4025
251bde03
PA
40262014-05-29 Pedro Alves <palves@redhat.com>
4027
4028 PR PR15693
4029 * infrun.c (resume): Determine how much to resume depending on
4030 whether the caller wanted a step, not whether we can hardware step
4031 the target. Mark all threads that we intend to run as running,
4032 unless we're calling an inferior function.
4033 (normal_stop): If the thread is running an infcall, don't finish
4034 thread state.
4035 * target.c (target_resume): Don't mark threads as running here.
4036
7f3c0343
JB
40372014-05-28 Joel Brobecker <brobecker@adacore.com>
4038
4039 * serial.c (_initialize_serial): Remove support for
4040 the "set remotebaud" and "show remotebaud" commands.
4041 * NEWS: Add entry documenting the removal of that command.
4042
ee34b3f9
YQ
40432014-05-28 Yao Qi <yao@codesourcery.com>
4044
4045 * charset.c: Fix typo in comments.
4046
add6c04d
GB
40472014-05-27 Gary Benson <gbenson@redhat.com>
4048
4049 * utils.c (internal_vproblem): Prompt for a bug report.
4050
92c48fc5
AW
40512014-05-26 Andy Wingo <wingo@igalia.com>
4052
4053 * guile/scm-arch.c (arscm_mark_arch_smob):
4054 * guile/scm-block.c (bkscm_mark_block_smob)
4055 (bkscm_mark_block_syms_progress_smob):
4056 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4057 * guile/scm-exception.c (exscm_mark_exception_smob):
4058 * guile/scm-frame.c (frscm_mark_frame_smob):
4059 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4060 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4061 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4062 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4063 (ppscm_mark_pretty_printer_worker_smob):
4064 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4065 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4066 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4067 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4068 mark functions.
4069 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4070 function.
4071
b2715b27
AW
40722014-05-26 Andy Wingo <wingo@igalia.com>
4073 Doug Evans <xdje42@gmail.com>
4074
4075 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4076 empty_base_class. All uses updated.
4077 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4078 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4079 Adapt all callers.
4080 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4081 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4082 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4083 (gdbscm_gsmob_has_property_p, add_property_name)
4084 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4085 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4086 (gdb-object-has-property?, gdb-object-properties): Remove.
4087 (gdb-object-kind): Renamed from gsmob-kind.
4088
214ab2da
AW
40892014-05-26 Andy Wingo <wingo@igalia.com>
4090
4091 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4092 * configure: Regenerate.
4093
589fdceb
MM
40942014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4095
4096 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4097
67b5c0c1
MM
40982014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4099
4100 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4101 (replay_memory_access_read_only, replay_memory_access_read_write)
4102 (replay_memory_access_types, replay_memory_access)
4103 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4104 (cmd_set_record_btrace, cmd_show_record_btrace)
4105 (cmd_show_replay_memory_access): New.
4106 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4107 (record_btrace_remove_breakpoint): Replace
4108 record_btrace_allow_memory_access with replay_memory_access.
4109 (_initialize_record_btrace): Add commands.
4110 * NEWS: Announce it.
4111
036cd381
RR
41122014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4113
4114 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4115
c77c1e42
RR
41162014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4117
4118 * MAINTAINERS (Write After Approval): Move self back from
4119 paper trail.
4120
45741a9c
PA
41212014-05-22 Pedro Alves <palves@redhat.com>
4122
4123 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4124 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4125 (disable_randomization, enum exec_direction_kind)
4126 (execution_direction, stop_registers, start_remote)
4127 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4128 (wait_for_inferior, normal_stop, get_last_target_status)
4129 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4130 (insert_step_resume_breakpoint_at_sal)
4131 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4132 (set_step_info, print_stop_event, signal_stop_state)
4133 (signal_print_state, signal_pass_state, signal_stop_update)
4134 (signal_print_update, signal_pass_update)
4135 (update_signals_program_target, clear_exit_convenience_vars)
4136 (displaced_step_dump_bytes, update_observer_mode)
4137 (signal_catch_update, gdb_signal_from_command): Move
4138 declarations ...
4139 * infrun.h: ... to this new file.
4140 * amd64-tdep.c: Include infrun.h.
4141 * annotate.c: Include infrun.h.
4142 * arch-utils.c: Include infrun.h.
4143 * arm-linux-tdep.c: Include infrun.h.
4144 * arm-tdep.c: Include infrun.h.
4145 * break-catch-sig.c: Include infrun.h.
4146 * breakpoint.c: Include infrun.h.
4147 * common/agent.c: Include infrun.h instead of inferior.h.
4148 * corelow.c: Include infrun.h.
4149 * event-top.c: Include infrun.h.
4150 * go32-nat.c: Include infrun.h.
4151 * i386-tdep.c: Include infrun.h.
4152 * inf-loop.c: Include infrun.h.
4153 * infcall.c: Include infrun.h.
4154 * infcmd.c: Include infrun.h.
4155 * infrun.c: Include infrun.h.
4156 * linux-fork.c: Include infrun.h.
4157 * linux-nat.c: Include infrun.h.
4158 * linux-thread-db.c: Include infrun.h.
4159 * monitor.c: Include infrun.h.
4160 * nto-tdep.c: Include infrun.h.
4161 * procfs.c: Include infrun.h.
4162 * record-btrace.c: Include infrun.h.
4163 * record-full.c: Include infrun.h.
4164 * remote-m32r-sdi.c: Include infrun.h.
4165 * remote-mips.c: Include infrun.h.
4166 * remote-notif.c: Include infrun.h.
4167 * remote-sim.c: Include infrun.h.
4168 * remote.c: Include infrun.h.
4169 * reverse.c: Include infrun.h.
4170 * rs6000-tdep.c: Include infrun.h.
4171 * s390-linux-tdep.c: Include infrun.h.
4172 * solib-irix.c: Include infrun.h.
4173 * solib-osf.c: Include infrun.h.
4174 * solib-svr4.c: Include infrun.h.
4175 * target.c: Include infrun.h.
4176 * top.c: Include infrun.h.
4177 * windows-nat.c: Include infrun.h.
4178 * mi/mi-interp.c: Include infrun.h.
4179 * mi/mi-main.c: Include infrun.h.
4180 * python/py-threadevent.c: Include infrun.h.
4181
98eb56a4
PA
41822014-05-22 Pedro Alves <palves@redhat.com>
4183
4184 * infrun.c (handle_inferior_event): Store the exit code for
4185 --return-child-result here, instead of ...
4186 (print_exited_reason): ... here.
4187
17b2616c
PA
41882014-05-21 Pedro Alves <palves@redhat.com>
4189
4190 PR gdb/13860
4191 * gdbthread.h (struct thread_control_state): New field
4192 `command_interp'.
4193 * infrun.c (follow_fork): Copy the new thread control field to the
4194 child fork thread.
4195 (clear_proceed_status_thread): Clear the new thread control field.
4196 (proceed): Set the new thread control field.
4197 * interps.h (command_interp): Declare.
4198 * interps.c (command_interpreter): New global.
4199 (command_interp): New function.
4200 (interp_exec): Set `command_interpreter' while here.
4201 * cli-out.c (cli_uiout_dtor): New function.
4202 (cli_ui_out_impl): Install it.
4203 * mi/mi-interp.c: Include cli-out.h.
4204 (mi_cmd_interpreter_exec): Add comment.
4205 (restore_current_uiout_cleanup): New function.
4206 (ui_out_free_cleanup): New function.
4207 (mi_on_normal_stop): If finishing an execution command started by
4208 a CLI command, or any kind of breakpoint-like event triggered,
4209 print the stop event to the output (CLI) stream.
4210 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4211
5166082f
PA
42122014-05-21 Pedro Alves <palves@redhat.com>
4213
4214 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4215 current source line having changed.
4216 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4217 * infrun.c (normal_stop): Adjust call to
4218 set_current_sal_from_frame.
4219 * source.c (clear_lines_listed_range): New function.
4220 (set_current_source_symtab_and_line, identify_source_line): Clear
4221 the lines listed range.
4222 (line_info): Handle the first "info line" after the current source
4223 line having changed.
4224 * stack.c (print_stack_frame): Remove center handling.
4225 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4226 center sal.line.
4227
c1ee2fb3
PA
42282014-05-21 Pedro Alves <palves@redhat.com>
4229
4230 * inf-child.c (inf_child_mourn_inferior): New function.
4231 * inf-child.h (inf_child_mourn_inferior): New declaration.
4232 * darwin-nat.c (darwin_mourn_inferior): Use
4233 inf_child_mourn_inferior.
4234 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4235 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4236 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4237 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4238 * windows-nat.c (windows_mourn_inferior): Likewise.
4239
5c6d4fb2
DE
42402014-05-21 Doug Evans <xdje42@gmail.com>
4241
250748cb 4242 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 4243
4a2722c5
DE
42442014-05-21 Doug Evans <xdje42@gmail.com>
4245
17292b30 4246 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
4247 (gdbscm_out_of_range_error): Ditto.
4248 (gdbscm_memory_error): Ditto.
250748cb
DE
4249 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4250 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
4251 (gdbscm_out_of_range_error): Update.
4252 (gdbscm_memory_error): Update.
4253 (gdbscm_scm_to_target_string_unsafe): Delete.
4254
6a3cb8e8
PA
42552014-05-21 Pedro Alves <palves@redhat.com>
4256
4257 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4258 globals.
4259 (inf_child_open_target): New function.
4260 (inf_child_open): Use inf_child_open_target to push the target
4261 instead of erroring out.
4262 (inf_child_disconnect, inf_child_close)
4263 (inf_child_maybe_unpush_target): New functions.
4264 (inf_child_target): Install inf_child_disconnect and
4265 inf_child_close. Store a pointer to the returned object.
4266 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4267 declarations.
4268 * target.c (auto_connect_native_target): New global.
4269 (show_default_run_target): New function.
4270 (find_default_run_target): Return NULL if automatically connecting
4271 to the native target is disabled.
4272 (_initialize_target): Install set/show auto-connect-native-target.
4273 * NEWS: Mention "set auto-connect-native-target", and "target
4274 native".
4275 * linux-nat.c (super_close): New global.
4276 (linux_nat_close): Call super_close.
4277 (linux_nat_add_target): Store a pointer to the base class's
4278 to_close method.
4279 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4280 inf_child_maybe_unpush.
4281 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4282 already pushed.
4283 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4284 the inferior. Use inf_child_maybe_unpush_target.
4285 (inf_ttrace_attach): Don't push the target if it is already
4286 pushed.
4287 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4288 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4289 after mourning the inferior. Use inf_child_maybe_unpush_target.
4290 (darwin_attach_pid): Don't push the target if it is already
4291 pushed.
4292 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4293 mourning the inferior. Use inf_child_maybe_unpush_target.
4294 (gnu_detach): Use inf_child_maybe_unpush_target.
4295 * go32-nat.c (go32_create_inferior): Don't push the target if it
4296 is already pushed.
4297 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4298 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4299 (procfs_open): Rename to ...
4300 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4301 comments. Can target_preopen before changing node. Call
4302 inf_child_open_target to push the target explicitly.
4303 (procfs_attach): Don't push the target if it is already pushed.
4304 (procfs_detach): Use inf_child_maybe_unpush_target.
4305 (procfs_create_inferior): Don't push the target if it is already
4306 pushed.
4307 (nto_native_ops): New global.
4308 (procfs_open): Reimplement.
4309 (procfs_native_open): New function.
4310 (init_procfs_targets): Install procfs_native_open as to_open of
4311 "target native". Store a pointer to the "native" target in
4312 nto_native_ops.
4313 * procfs.c (procfs_attach): Don't push the target if it is already
4314 pushed.
4315 (procfs_detach): Use inf_child_maybe_unpush_target.
4316 (procfs_mourn_inferior): Only unpush the target after mourning the
4317 inferior. Use inf_child_maybe_unpush_target.
4318 (procfs_init_inferior): Don't push the target if it is already
4319 pushed.
4320 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4321 if it is already pushed.
4322
930ee1b1
PA
43232014-05-21 Pedro Alves <palves@redhat.com>
4324
4325 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4326 and "procfs" targets are now called "native" instead.
4327
1f5d1b13
PA
43282014-05-21 Pedro Alves <palves@redhat.com>
4329
4330 * go32-nat.c (go32_open): Delete.
4331 (go32_target): Don't override the to_open method.
4332
132f8e03
PA
43332014-05-21 Pedro Alves <palves@redhat.com>
4334
4335 * nto-procfs.c (procfs_can_run): New function.
4336 (nto_procfs_ops): New global.
4337 (init_procfs_targets): New, based on procfs_target. Install
4338 "target native" in addition to "target procfs".
4339 (_initialize_procfs): Call init_procfs_targets instead of adding
4340 the target here.
4341
03c136c3
PA
43422014-05-21 Pedro Alves <palves@redhat.com>
4343
4344 * windows-nat.c (windows_target): Don't override to_shortname,
4345 to_longname or to_doc.
4346
a635d0f3
PA
43472014-05-21 Pedro Alves <palves@redhat.com>
4348
4349 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4350 to_doc.
4351
4f9b5133
PA
43522014-05-21 Pedro Alves <palves@redhat.com>
4353
4354 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4355 to_shortname, to_longname or to_doc.
4356
bc85afde
PA
43572014-05-21 Pedro Alves <palves@redhat.com>
4358
4359 * go32-nat.c (go32_target): Don't override to_shortname,
4360 to_longname or to_doc.
4361
4ebfc96e
PA
43622014-05-21 Pedro Alves <palves@redhat.com>
4363
4364 * inf-child.c (inf_child_open): Remove mention of "child".
4365 (inf_child_target): Rename target to "native" instead of "child".
4366
2648dfed
AA
43672014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4368
4369 * Makefile.in (SFILES): Delete "regset.c".
4370 (COMMON_OBS): Delete "regset.o".
4371 * regset.c: Remove.
4372 * regset.h (regset_alloc): Delete prototype.
4373
b13feb94
AA
43742014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4375
4376 * sparc-linux-tdep.c (sparc32_linux_gregset)
4377 (sparc32_linux_fpregset): New static regset structures.
4378 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4379 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4380 'fpregset' fields.
4381 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4382 (sparc64_linux_fpregset): New static regset structures.
4383 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4384 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4385 New static regset structures.
4386 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4387 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4388 New static regset structures.
4389 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4390 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4391 New static regset structures.
4392 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4393 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4394 New static regset structures.
4395 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4396
b4fd25c9
AA
43972014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4398
4399 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4400 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4401 register maps ("regmaps") from "*regset" to "*regmap". Do this
4402 for all regmap types and variables.
4403 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4404 (sparc32_linux_supply_core_gregset)
4405 (sparc32_linux_collect_core_gregset)
4406 (sparc32_linux_supply_core_fpregset)
4407 (sparc32_linux_collect_core_fpregset): Likewise.
4408 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4409 (sparc_gregmap, sparc_fpregmap): ... these.
4410 (sparc_supply_gregset, sparc_collect_gregset)
4411 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4412 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4413 (_initialize_sparc_nat): Rename regmaps.
4414 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4415 (sparc_gregmap, sparc_fpregmap): ... these.
4416 (sparc_supply_gregset, sparc_collect_gregset)
4417 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4418 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4419 Rename macros to...
4420 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4421 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4422 Likewise.
4423 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4424 Rename to...
4425 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4426 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4427 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4428 regmaps.
4429 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4430 (sparc32_bsd_fpregset): Rename to...
4431 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4432 (sparc32_bsd_fpregmap): ... these.
4433 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4434 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4435 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4436 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4437 (struct sparc_gregmap, struct sparc_fpregmap)
4438 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4439 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4440 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4441 (sparc32_supply_regset, sparc32_collect_gregset)
4442 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4443 prototypes.
4444 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4445 (sparc64_linux_ptrace_gregmap): ... this.
4446 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4447 (_initialize_sparc64_linux_nat): Rename regmaps.
4448 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4449 (sparc64_linux_core_gregmap): ... this.
4450 (sparc64_linux_supply_core_gregset)
4451 (sparc64_linux_collect_core_gregset)
4452 (sparc64_linux_supply_core_fpregset)
4453 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4454 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4455 (sparc64_sol2_fpregset): Rename to...
4456 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4457 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4458 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4459 regmaps.
4460 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4461 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4462 (sparc64_bsd_fpregset): Rename to...
4463 (struct sparc_gregmap, sparc64_sol2_gregmap)
4464 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4465 (sparc64_bsd_fpregmap): ... these.
4466 (sparc64_supply_gregset, sparc64_collect_gregset)
4467 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4468 prototypes.
4469 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4470 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4471 (sparc64fbsd_gregmap): ... this.
4472 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4473 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4474 Rename regmaps.
4475 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4476 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4477 (sparc64nbsd_collect_fpregset): Likewise.
4478 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4479 (sparc64nbsd_gregmap): ... this.
4480 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4481 regmaps.
4482 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4483 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4484 (sparc64obsd_gregmap): ... this.
4485 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4486 regmaps.
4487 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4488 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4489 (sparc32nbsd_gregmap): ... this.
4490 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4491 regmaps.
4492
8fea3224
AA
44932014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4494
4495 * score-tdep.c (score7_linux_gregset): New static regset
4496 structure.
4497 (score7_linux_regset_from_core_section): Remove dynamic regset
4498 allocation.
4499 (score_gdbarch_init): Drop allocation of tdep structure.
4500 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4501
24534243
AA
45022014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4503
4504 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4505 regset structures.
4506 (am33_regset_from_core_section): Remove dynamic regset
4507 allocations.
4508
b7195f27
AA
45092014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4510
4511 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4512 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4513 structures.
4514 (mips_linux_regset_from_core_section): Remove dynamic regset
4515 allocations.
4516 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4517 'gregset64', 'fpregset', and 'fpregset64'.
4518 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4519 deleted tdep fields.
4520
ecc37a5a
AA
45212014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4522
4523 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4524 regset structures.
4525 (amd64_regset_from_core_section): Remove dynamic regset
4526 allocations.
4527 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4528 structure.
4529 (amd64obsd_regset_from_core_section): Remove dynamic regset
4530 allocation.
4531 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4532 Likewise.
4533 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4534 x86-common regset supply function.
4535 * i386-tdep.c (i386_collect_gregset): Make static.
4536 (i386_gregset): New global regset structure.
4537 (i386_fpregset, i386_xstateregset): New static regset structures.
4538 (i386_regset_from_core_section): Remove dynamic regset
4539 allocations.
4540 (i386_gdbarch_init): Remove initialization of tdep fields
4541 'gregset', 'fpregset', and 'xstateregset'.
4542 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4543 'fpregset', and 'xstateregset'.
4544 (i386_collect_gregset): Remove prototype.
4545 (i386_gregset): New declaration.
4546 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4547 structure.
4548 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4549 allocation.
4550
b7611c43
AA
45512014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4552
4553 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4554 (arm_linux_vfpregset): New static regset structures.
4555 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4556 regset structures.
4557 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4558 and 'vfpregset' fields.
4559
a069a2bd
AA
45602014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4561
4562 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4563 (aarch64_linux_fpregset): New static regset structures.
4564 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4565 of regset structures.
4566 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4567 'fpregset' fields.
4568
09424cff
AA
45692014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4570
4571 * regset.h (struct regset): Remove gdbarch field.
4572 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4573 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4574 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4575 Likewise.
4576 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4577 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4578 (ppc32_linux_vsxregset): Likewise.
4579 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4580 via the regcache instead of the regset.
4581 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4582 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4583 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4584 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4585 Likewise.
4586
3ca7dae4
AA
45872014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4588
4589 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4590 Constify structures.
4591 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4592 (alphanbsd_aout_gregset): Likewise.
4593 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4594 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4595 Likewise.
4596 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4597 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4598 Likewise.
4599 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4600 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4601 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4602 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4603 * m88k-tdep.c (m88k_gregset): Likewise.
4604 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4605 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4606 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4607 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4608 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4609 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4610 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4611 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4612 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4613 Likewise.
4614 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4615 * sh-tdep.h (sh_corefile_gregset): Likewise.
4616 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4617 * vax-tdep.c (vax_gregset): Likewise.
4618
5876f503
JK
46192014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4620
4621 Fix TLS access for -static -pthread.
4622 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4623 (try_thread_db_load_1): Initialize it.
4624 (thread_db_get_thread_local_address): Call it if LM is zero.
4625 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4626 * target.h (struct target_ops) (to_get_thread_local_address): Add
4627 load_module_addr comment.
4628
0256a6ac
PA
46292014-05-21 Pedro Alves <palves@redhat.com>
4630
4631 * dcache.c (dcache_read_memory_partial): If reading the cache line
4632 fails, fallback to reading just the memory the caller wanted.
4633
227533ac
DE
46342014-05-20 Doug Evans <dje@google.com>
4635
4636 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4637 instead of get_current_arch.
4638
936d2992
PA
46392014-05-20 Pedro Alves <palves@redhat.com>
4640
4641 * NEWS: Mention that compare-sections now works with all targets.
4642
4643 * remote.c (PACKET_qCRC): New enum value.
4644 (remote_verify_memory): Don't send qCRC if the target has no
4645 execution. Use packet_support/packet_ok. If the target doesn't
4646 support the qCRC packet, fallback to a deep memory copy.
4647 (compare_sections_command): Say "target image" instead of "remote
4648 executable".
4649 (_initialize_remote): Add PACKET_qCRC to the list of config
4650 packets that have no associated command. Extend comment.
4651 * target.c (simple_verify_memory, default_verify_memory): New
4652 function.
4653 * target.h (struct target_ops) <to_verify_memory>: Default to
4654 default_verify_memory.
4655 (simple_verify_memory): New declaration.
4656 * target-delegates.c: Regenerate.
4657
e59fa00f
MM
46582014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4659
4660 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4661
f2205de0
HZ
46622014-05-20 Hui Zhu <hui@codesourcery.com>
4663 Yao Qi <yao@codesourcery.com>
4664
4665 PR backtrace/16558
4666 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4667 and change address of sp and pc.
4668
c4e54771
TT
46692014-05-19 Tom Tromey <tromey@redhat.com>
4670
4671 * gdbtypes.c (rank_function): Use XNEWVEC.
4672 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4673
73051182
DE
46742014-05-19 Doug Evans <dje@google.com>
4675
4676 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4677 build_type_unit_groups and moved closer to only caller. Remove
4678 arguments. All references updated. Remove outdated .gdb_index
4679 comment.
4680 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4681 build_type_psymtabs_1.
4682
8832e7e3
DE
46832014-05-19 Doug Evans <dje@google.com>
4684
4685 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4686 n_type_unit_groups, all_type_unit_groups. All uses removed.
4687 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4688 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4689 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4690 (add_type_unit_group_to_table): Delete.
4691
cd8ae15e
DE
46922014-05-19 Doug Evans <dje@google.com>
4693
4694 * eval.c (evaluate_subexp_standard): Add some comments.
4695
08f4850b
DE
46962014-05-17 Doug Evans <xdje42@gmail.com>
4697
4698 * progspace.c (remove_program_space): Delete, unused.
4699 * progspace.h (remove_program_space): Ditto.
4700
bed8455c
DE
47012014-05-17 Doug Evans <xdje42@gmail.com>
4702
4703 * inferior.c (prune_inferiors): Fix comment.
4704 (remove_inferior_command): Call prune_program_spaces.
4705
8d551b02
DE
47062014-05-16 Doug Evans <dje@google.com>
4707
4708 New command line option -D.
4709 * NEWS: Mention it.
4710 * main.c (set_gdb_data_directory): New function.
4711 (captured_main): Recognize -D. Flag error for --data-directory "".
4712 Call set_gdb_data_directory.
4713 (print_gdb_help): Print --data-directory, -D.
4714 * main.h (set_gdb_data_directory): Declare.
4715 * top.c (staged_gdb_datadir): New static global.
4716 (set_gdb_datadir): Call set_gdb_data_directory
4717 (show_gdb_datadir): New function.
4718 (init_main): Update init of data-directory parameter.
4719
18848e28
GF
47202014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4721
4722 Import the "dirfd" gnulib module.
4723 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4724 * gnulib/aclocal.m4: Update.
4725 * gnulib/config.in: Update.
4726 * gnulib/configure: Update.
4727 * gnulib/import/Makefile.am: Update.
4728 * gnulib/import/Makefile.in: Update.
4729 * gnulib/import/dirfd.c: New.
4730 * gnulib/import/m4/dirfd.m4: New.
4731 * gnulib/import/m4/gnulib-cache.m4: Update.
4732 * gnulib/import/m4/gnulib-comp.m4: Update.
4733
95c64f92
YQ
47342014-05-16 Pierre Muller <muller@sourceware.org>
4735 Yao Qi <yao@codesourcery.com>
4736
4737 * valprint.c (print_wchar): Move the code on checking whether
4738 W is a printable wide char to the default branch of switch
4739 statement below. Call wchar_printable instead of gdb_iswprint.
4740
cac395ea
TM
47412014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4742
19679eca 4743 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
4744 ldr.w and ldrd instructions.
4745
83655187
DE
47462014-05-15 Doug Evans <dje@google.com>
4747
4748 * dwarf2read.c (read_structure_type): Delete outdated comments.
4749
dd756689
TT
47502014-05-14 Tom Tromey <tromey@redhat.com>
4751
4752 * macrocmd.c (print_macro_definition): Reindent.
4753
75ddda77
DE
47542014-05-13 Doug Evans <xdje42@gmail.com>
4755
4756 * python/py-cmd.c (cmdpy_completer): Add comment.
4757 (completers): Make const.
4758
b0f16a3e
SM
47592014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4760
4761 * infrun.c (resume): Remove should_resume (unused). Move up
4762 declaration of resume_ptid.
4763
033c3379
TT
47642014-05-13 Tom Tromey <tromey@redhat.com>
4765
4766 * language.h (unop_type_check): Remove.
4767 (binop_type_check): Don't declare.
4768
9b44a3a5
AA
47692014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4770
4771 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4772 call to regcache_raw_collect.
4773
303a33fa
SM
47742014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4775
4776 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4777 mi_console->quote as the quoting character.
4778
196100a0
SM
47792014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4780
4781 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4782
f989a1c8
TT
47832014-04-29 Tom Tromey <tromey@redhat.com>
4784
4785 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4786 "show debug varobj".
4787
9404b58f
KM
47882014-05-07 Kyle McMartin <kyle@redhat.com>
4789
4790 Pushed by Joel Brobecker <brobecker@adacore.com>.
4791 * aarch64-tdep.c (aarch64_software_single_step): New function.
4792 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4793 with aarch64_software_single_step.
4794
5e49ba57
JB
47952014-05-05 Joel Brobecker <brobecker@adacore.com>
4796
4797 GDB 7.7.1 released.
4798
c888a17d
KS
47992014-05-05 Keith Seitz <keiths@redhat.com>
4800
4801 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4802 variable or history value is successfully parsed.
4803
290a839c
YQ
48042014-05-05 Yao Qi <yao@codesourcery.com>
4805 Pedro Alves <palves@redhat.com>
4806
4807 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4808 address of blocks that intersects the requested range. Trim
4809 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4810 sections.
4811 * ctf.c (ctf_xfer_partial): Likewise.
4812
91256dc2
YQ
48132014-05-05 Yao Qi <yao@codesourcery.com>
4814
4815 * printcmd.c (display_command): Remove the check to
4816 target_has_execution.
4817
07284463
MK
48182014-05-03 Mark Kettenis <kettenis@gnu.org>
4819
4820 * ppcobsd-nat.c: Include "obsd-nat.h".
4821 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4822 add_target.
4823 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4824
30a1e6cc
SDJ
48252014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4826
4827 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4828 and 16-bit signed and unsigned arguments. Update comment.
4829 (stap_parse_probe_arguments): Extend code to handle such
4830 arguments. Use warning instead of complaint to notify about
4831 unrecognized bitness.
4832
f33da99a
SDJ
48332014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4834
4835 PR breakpoints/16889
4836 * stap-probe.c (stap_parse_probe_arguments): Simplify
4837 check for non-prefixed probes (i.e., probes whose
4838 arguments do not start with "N@"). Always set the
4839 argument type to a sane value.
4840
95cf3b38
DT
48412014-05-01 David Taylor <dtaylor@emc.com>
4842
4843 * remote.c (compare_sections_command): Add -r option to compare
4844 all loadable read-only sections.
4845
1cfdf534
SC
48462014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4847
4848 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4849 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4850 Update all callers.
4851 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4852 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4853 Remove unused CORE_ADDR argument. Update all callers.
4854
ca4f7f8b
PA
48552014-04-29 Pedro Alves <palves@redhat.com>
4856
4857 * remote.c (struct packet_config) <detect>: Extend comment.
4858 (add_packet_config_cmd): Don't set the config's detect or support
4859 fields here.
4860 (init_all_packet_configs): Also initialize the config's 'detect'
4861 field.
4862 (reset_all_packet_configs_support): New function.
4863 (remote_open_1): Call reset_all_packet_configs_support instead of
4864 init_all_packet_configs.
4865 (_initialize_remote): Initialize all packet configs. Assert that
4866 all packets have an associated command, except a few known
4867 outliers.
4868
11c1ba78
JB
48692014-04-28 Joel Brobecker <brobecker@adacore.com>
4870
4871 * dwarf2read.c (read_subrange_type): Handle dynamic
4872 DW_AT_lower_bound attributes.
4873
8739bc53
JB
48742014-04-28 Joel Brobecker <brobecker@adacore.com>
4875
4876 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4877 dynamic bounds before computing its upper bound.
4878 (ada_discrete_type_low_bound): Same as above with the lower bound.
4879
6f8a3220
JB
48802014-04-28 Joel Brobecker <brobecker@adacore.com>
4881
4882 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4883 range types. Adjust the array handling implementation to
4884 take advantage of this change.
4885 (resolve_dynamic_range): New function, mostly extracted from
4886 resolve_dynamic_bounds.
4887 (resolve_dynamic_array): New function, mostly extracted from
4888 resolve_dynamic_bounds.
4889 (resolve_dynamic_bounds): Delete.
4890 (resolve_dynamic_type): Reimplement. Add handling of
4891 TYPE_CODE_RANGE types.
4892
4d072ce4
JB
48932014-04-28 Joel Brobecker <brobecker@adacore.com>
4894
4895 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4896 handling of parallel ___XA types.
4897
52865325
JB
48982014-04-28 Joel Brobecker <brobecker@adacore.com>
4899
4900 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4901 unnecessary second call to static_unwrap_type.
4902
433e77fa
HZ
49032014-04-27 Hui Zhu <hui@codesourcery.com>
4904
4905 * stack.c (print_frame_info): Call do_gdb_disassembly with
4906 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4907
b51a69ee
DE
49082014-04-26 Doug Evans <xdje42@gmail.com>
4909
4910 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4911
7ae1a6a6
PA
49122014-04-25 Pedro Alves <palves@redhat.com>
4913
4914 PR server/16255
4915 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4916 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4917 and newline from built string.
4918 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4919 (linux_ptrace_attach_fail_reason): ... this.
4920 * linux-nat.c (linux_nat_attach): Adjust to use
4921 linux_ptrace_attach_fail_reason.
4922
4082afcc
PA
49232014-04-25 Pedro Alves <palves@redhat.com>
4924
4925 * remote.c (struct remote_state): Remove multi_process_aware,
4926 non_stop_aware, cond_tracepoints, cond_breakpoints,
4927 breakpoint_commands, fast_tracepoints, static_tracepoints,
4928 install_in_trace, disconnected_tracing,
4929 enable_disable_tracepoints, string_tracing, and
4930 augmented_libraries_svr4_read fields.
4931 (remote_multi_process_p): Move further below in the file.
4932 (struct packet_config): Add comments.
4933 (update_packet_config): Delete function.
4934 (show_packet_config_cmd): Use packet_config_support.
4935 (add_packet_config_cmd): Use NULL as set callback.
4936 (packet_ok): "set remote foo-packet"-style commands no longer
4937 change config->supported -- adjust.
4938 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4939 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4940 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4941 (PACKET_QNonStop, PACKET_multiprocess_feature)
4942 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4943 (PACKET_DisconnectedTracing_feature)
4944 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4945 (set_remote_protocol_packet_cmd): Delete function.
4946 (packet_config_support, packet_support): New functions.
4947 (set_remote_protocol_Z_packet_cmd): Don't call
4948 update_packet_config.
4949 (remote_query_attached, remote_pass_signals)
4950 (remote_program_signals, remote_threads_info)
4951 (remote_threads_extra_info, remote_start_remote): Use
4952 packet_support.
4953 (remote_start_remote): Use packet_config_support and
4954 packet_support.
4955 (init_all_packet_configs): Set all packets to unknown support,
4956 instead of calling update_packet_config.
4957 (remote_check_symbols): Use packet_support.
4958 (remote_supported_packet): Unconditionally set the packet config's
4959 support status.
4960 (remote_multi_process_feature, remote_non_stop_feature)
4961 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4962 (remote_breakpoint_commands_feature)
4963 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4964 (remote_install_in_trace_feature)
4965 (remote_disconnected_tracing_feature)
4966 (remote_enable_disable_tracepoint_feature)
4967 (remote_string_tracing_feature)
4968 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4969 (remote_protocol_features): Adjust to use remote_supported_packet
4970 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4971 "ConditionalTracepoints", "ConditionalBreakpoints",
4972 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4973 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4974 "EnableDisableTracepoints", and "tracenz".
4975 (remote_query_supported): Use packet_support.
4976 (remote_open_1): Adjust.
4977 (extended_remote_attach_1): Use packet_support. Switch on the
4978 result of packet_ok instead of checking whether the packet ended
4979 up disabled.
4980 (remote_vcont_resume): Use packet_support.
4981 (remote_resume, remote_stop_ns, fetch_register_using_p)
4982 (remote_prepare_to_store, store_register_using_P)
4983 (check_binary_download, remote_write_bytes): Use packet_support.
4984 (remote_vkill): Use packet_support. Switch on the result of
4985 packet_ok instead of checking whether the packet ended up
4986 disabled.
4987 (extended_remote_supports_disable_randomization): Use
4988 packet_support.
4989 (extended_remote_run): Switch on the result of packet_ok instead
4990 of checking whether the packet ended up disabled.
4991 (remote_insert_breakpoint, remote_remove_breakpoint)
4992 (remote_insert_watchpoint, remote_remove_watchpoint)
4993 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4994 packet_support.
4995 (remote_search_memory): Use packet_config_support.
4996 (remote_get_thread_local_address, remote_get_tib_address)
4997 (remote_hostio_send_command, remote_can_execute_reverse): Use
4998 packet_support.
4999 (remote_supports_cond_tracepoints)
5000 (remote_supports_cond_breakpoints)
5001 (remote_supports_fast_tracepoints)
5002 (remote_supports_static_tracepoints)
5003 (remote_supports_install_in_trace)
5004 (remote_supports_enable_disable_tracepoint)
5005 (remote_supports_string_tracing)
5006 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5007 the packet config says the feature is enabled or disabled.
5008 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5009 (remote_get_trace_status): Use packet_support.
5010 (remote_set_disconnected_tracing): Adjust to check whether the
5011 feature is enabled with packet_support.
5012 (remote_set_trace_buffer_size, remote_use_agent)
5013 (remote_can_use_agent, remote_supports_btrace): Use
5014 packet_support.
5015 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5016 Use packet_config_support.
5017 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5018 the packet config says the feature is enabled or disabled.
5019 (set_range_stepping): Use packet_support.
5020
bdb52a22
TT
50212014-04-25 Tom Tromey <tromey@redhat.com>
5022
5023 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5024 argument.
5025
e9475ead
SA
50262014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5027
5028 * NEWS: Mention support for C99 variable length arrays.
5029
82eacd52
JB
50302014-04-24 Joel Brobecker <brobecker@adacore.com>
5031
5032 * ada-lang.c (standard_exc): Expand introductory comment.
5033
01f9f808
MS
50342014-04-24 Michael Sturm <michael.sturm@mintel.com>
5035 Walfred Tedeschi <walfred.tedeschi@intel.com>
5036
5037 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5038 AVX512 registers.
5039 (amd64_linux_read_description): Add code to handle AVX512 xstate
5040 mask and return respective tdesc.
5041 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5042 and features/i386/x32-avx512-linux.c.
5043 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5044 (amd64_linux_core_read_description): Add code to handle AVX512
5045 xstate mask and return respective tdesc.
5046 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5047 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5048 calculation.
5049 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5050 (tdesc_amd64_avx512_linux): New prototype.
5051 (tdesc_x32_avx512_linux): Likewise.
5052 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5053 features/i386/x32-avx512.c.
5054 (amd64_ymm_avx512_names): New register names for pseudo
5055 registers YMM16-31.
5056 (amd64_ymmh_avx512_names): New register names for raw registers
5057 YMMH16-31.
5058 (amd64_k_names): New register names for K registers.
5059 (amd64_zmmh_names): New register names for ZMM raw registers.
5060 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5061 (amd64_xmm_avx512_names): New register names for XMM16-31
5062 registers.
5063 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5064 registers.
5065 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5066 if feature is present.
5067 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5068 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5069 (AMD64_NUM_REGS): Adjust to new number of registers.
5070 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5071 registers supplied via XSTATE by AVX512 registers.
5072 (i386_linux_read_description): Add case for AVX512.
5073 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5074 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5075 (i386_linux_core_read_description): Add case for AVX512.
5076 (i386_linux_init_abi): Install supported register note section
5077 for AVX512.
5078 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5079 AVX512.
5080 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5081 registers to be number of zmm7h + 1.
5082 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5083 * i386-tdep.c: Include features/i386/i386-avx512.c.
5084 (i386_zmm_names): Add ZMM pseudo register names array.
5085 (i386_zmmh_names): Add ZMM raw register names array.
5086 (i386_k_names): Add K raw register names array.
5087 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5088 registers. AVX512 has 16 more ZMM registers than there are YMM
5089 registers.
5090 (i386_zmmh_regnum_p): Add function to look up register number of
5091 ZMM raw registers.
5092 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5093 (i386_k_regnum_p): Likewise for K raw registers.
5094 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5095 registers added by AVX512.
5096 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5097 registers added by AVX512.
5098 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5099 added by AVX512.
5100 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5101 (i386_pseudo_register_name): Add ZMM pseudo registers.
5102 (i386_zmm_type): Construct and return vector registers type for ZMM
5103 registers.
5104 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5105 ZMM0-31 pseudo registers and K registers.
5106 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5107 and YMM16-31 registers from register cache.
5108 (i386_pseudo_register_write): Add code to write K, ZMM and
5109 YMM16-31 registers.
5110 (i386_register_reggroup_p): Add code to include/exclude AVX512
5111 registers in/from respective register groups.
5112 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5113 registers if feature is present in xcr0.
5114 (i386_gdbarch_init): Add code to initialize AVX512 feature
5115 variables in tdep structure, wire in pseudo registers and call
5116 initialize_tdesc_i386_avx512.
5117 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5118 variables.
5119 (i386_regnum): Add AVX512 registers.
5120 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5121 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5122 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5123 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5124 512 bits wide.
5125 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5126 (i386_ymm_avx512_regnum_p): Likewise.
5127 (i386_k_regnum_p): Likewise.
5128 (i386_zmm_regnum_p): Likewise.
5129 (i386_zmmh_regnum_p): Likewise.
5130 * i387-tdep.c : Update year in copyright notice.
5131 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5132 XSAVE buffer.
5133 (XSAVE_YMM_AVX512_ADDR): New macro.
5134 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5135 XSAVE buffer.
5136 (XSAVE_XMM_AVX512_ADDR): New macro.
5137 (xsave_avx512_k_offset): New table for K register offsets in
5138 XSAVE buffer.
5139 (XSAVE_AVX512_K_ADDR): New macro.
5140 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5141 in XSAVE buffer.
5142 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5143 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5144 buffer.
5145 (i387_collect_xsave): Add code to collect AVX512 registers from
5146 XSAVE buffer.
5147 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5148 of XMM16-31 registers.
5149 (I387_NUM_K_REGS): New define for number of K registers.
5150 (I387_K0_REGNUM): New define for K0 register number.
5151 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5152 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5153 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5154 registers.
5155 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5156 (I387_XMM16_REGNUM): New define for XMM16 register number.
5157 (I387_YMM0_REGNUM): New define for YMM0 register number.
5158 (I387_KEND_REGNUM): New define for last K register number.
5159 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5160 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5161 number.
5162 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5163 number.
5164 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5165 size.
5166 * features/Makefile: Add AVX512 related files.
5167 * features/i386/32bit-avx512.xml: New file.
5168 * features/i386/64bit-avx512.xml: Likewise.
5169 * features/i386/amd64-avx512-linux.c: Likewise.
5170 * features/i386/amd64-avx512-linux.xml: Likewise.
5171 * features/i386/amd64-avx512.c: Likewise.
5172 * features/i386/amd64-avx512.xml: Likewise.
5173 * features/i386/i386-avx512-linux.c: Likewise.
5174 * features/i386/i386-avx512-linux.xml: Likewise.
5175 * features/i386/i386-avx512.c: Likewise.
5176 * features/i386/i386-avx512.xml: Likewise.
5177 * features/i386/x32-avx512-linux.c: Likewise.
5178 * features/i386/x32-avx512-linux.xml: Likewise.
5179 * features/i386/x32-avx512.c: Likewise.
5180 * features/i386/x32-avx512.xml: Likewise.
5181 * regformats/i386/amd64-avx512-linux.dat: New file.
5182 * regformats/i386/amd64-avx512.dat: Likewise.
5183 * regformats/i386/i386-avx512-linux.dat: Likewise.
5184 * regformats/i386/i386-avx512.dat: Likewise.
5185 * regformats/i386/x32-avx512-linux.dat: Likewise.
5186 * regformats/i386/x32-avx512.dat: Likewise.
5187 * NEWS: Add note about new support for AVX512.
5188
5189
08351840
PA
51902014-04-23 Pedro Alves <palves@redhat.com>
5191
5192 * breakpoint.c (insert_bp_location): Tolerate errors if the
5193 breakpoint is set in a user-loaded objfile.
5194 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5195 location is marked shlib_disabled. If the breakpoint is set in a
5196 user-loaded objfile is a GDB-side memory breakpoint, validate it
5197 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5198 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5199 flag.
5200 * mem-break.c (memory_validate_breakpoint): New function.
5201 * objfiles.c (userloaded_objfile_contains_address_p): New
5202 function.
5203 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5204 * target.h (memory_validate_breakpoint): New declaration.
5205
076855f9
PA
52062014-04-23 Pedro Alves <palves@redhat.com>
5207
5208 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5209 the breakpoint is set in a shared library, only suppress
5210 errors for software breakpoints, not hardware breakpoints.
5211
483805cf
PA
52122014-04-22 Pedro Alves <palves@redhat.com>
5213
5214 * infrun.c (schedlock_applies): New function, factored out from
5215 find_thread_needs_step_over.
5216 (find_thread_needs_step_over): Use it.
5217 (switch_back_to_stepped_thread): Always clear trap_expected if the
5218 step over is finished. Return early if scheduler locking applies.
5219 Look for the stepping thread and a potential step-over thread with
5220 a single loop.
5221 (currently_stepping_or_nexting_callback): Delete.
5222
a75fef0e
NC
52232014-04-22 Nick Clifton <nickc@redhat.com>
5224
5225 * NEWS: Mention that ARM sim now supports tracing.
5226
48b6e87e
YQ
52272014-04-22 Yao Qi <yao@codesourcery.com>
5228
5229 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5230 to ...
5231 * tracefile.c (tracefile_fetch_registers): ... it. New
5232 function.
5233 * tracefile.h (tracefile_fetch_registers): Declare.
5234 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5235 tracefile_fetch_registers.
5236
17617f2d
EZ
52372014-04-19 Eli Zaretskii <eliz@gnu.org>
5238
5239 PR gdb/14018
5240 * windows-nat.c (thread_rec): Don't display a warning when
5241 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5242 fails for any reason, set th->suspended to -1, so that we don't
5243 try to resume such a thread. Also, don't return NULL in these
5244 cases, to avoid completely ruin the session due to "PC register is
5245 not available" error.
5246 (do_windows_fetch_inferior_registers): Check errors in
5247 GetThreadContext call.
5248 (windows_continue): Accept an additional argument KILLED; if not
5249 zero, ignore errors in the SetThreadContext call, since the
5250 inferior was killed and is shutting down.
5251 (windows_resume, get_windows_debug_event)
5252 (windows_create_inferior, windows_mourn_inferior)
5253 (windows_kill_inferior): All callers of windows_continue changed
5254 to adjust to its new calling sequence.
5255
5723a6fd
YQ
52562014-04-19 Yao Qi <yao@codesourcery.com>
5257
5258 * ctf.c (ctf_open): Call post_create_inferior.
5259
614d5099
YQ
52602014-04-19 Yao Qi <yao@codesourcery.com>
5261
5262 * ctf.c (handle_id): New static variable.
5263 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5264 value. Get the declaration of event "register" and get length
5265 of field "contents".
5266
dac3e710
YQ
52672014-04-19 Yao Qi <yao@codesourcery.com>
5268
5269 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5270
2bca57ba
SC
52712014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5272
5273 * valops.c (oload_method_static): Remove unnecessary argument
5274 METHOD. Update all callers.
5275
51d48146
PA
52762014-04-18 Pedro alves <palves@redhat.com>
5277 Tom Tromey <tromey@redhat.com>
5278
5279 PR backtrace/15558
5280 * frame.c (get_prev_frame_1): Rename to ...
5281 (get_prev_frame_always): ... this, and make extern. Adjust.
5282 (skip_artificial_frames): Use get_prev_frame_always.
5283 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5284 (get_frame_unwind_stop_reason): Adjust to rename.
5285 * frame.h (get_prev_frame_always): Declare.
5286 * inline-frame.c: Include frame.h.
5287 (inline_frame_this_id): Use get_prev_frame_always.
5288
1bdad2e0
TG
52892014-04-18 Tristan Gingold <gingold@adacore.com>
5290
5291 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5292 code by using bfd_mach_o_get_base_address.
5293
7ce16bd4
UW
52942014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5295
5296 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5297 (spu_ax_pseudo_register_collect): New function.
5298 (spu_ax_pseudo_register_push_stack): Likewise.
5299 (spu_dwarf_reg_to_regnum): Likewise.
5300 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5301
2ed3c037
UW
53022014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5303
5304 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5305 Replace FRAME argument with FRAME_ID.
5306 * gdbarch.c, gdbarch.h: Regenerate.
5307 * findvar.c (default_value_from_register): Add GDBARCH argument;
5308 replace FRAME by FRAME_ID. No longer call get_frame_id.
5309 (value_from_register): Update call to gdbarch_value_from_register.
5310 * value.h (default_value_from_register): Update prototype.
5311 * s390-linux-tdep.c (s390_value_from_register): Update interface
5312 and call to default_value_from_register.
5313 * spu-tdep.c (spu_value_from_register): Likewise.
5314
5315 * findvar.c (address_from_register): Remove TYPE argument.
5316 Do not call value_from_register; use gdbarch_value_from_register
5317 with null_frame_id instead.
5318 * value.h (address_from_register): Update prototype.
5319 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5320 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5321 address_from_register interface change.
5322
71e50e83
YQ
53232014-04-17 Yao Qi <yao@codesourcery.com>
5324
5325 * gdbtypes.h: Update comments to link to types and macros'
5326 definitions.
5327
7a23c549
SC
53282014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5329
5330 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5331
22869d73
KS
53322014-04-16 Keith Seitz <keiths@redhat.com>
5333
5334 PR gdb/15827
5335 * dwarf2read.c (skip_one_die): Check that all relative-offset
5336 sibling DIEs fall within range of the current reader's buffer.
5337 (read_partial_die): Likewise.
5338
c4f87ca6
KS
53392014-04-16 Keith Seitz <keiths@redhat.com>
5340
5341 PR c++/16597
5342 * cp-namespace.c (lookup_symbol_file): If the type name of
5343 `this' is NULL, return immediately.
5344
b50c8614
KS
53452014-04-14 Keith Seitz <keiths@redhat.com>
5346
5347 PR c++/16253
5348 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5349 from symbol_matches_domain in symtab.c. All local callers
5350 of symbol_matches_domain updated.
5351 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5352 search STRUCT_DOMAIN.
5353 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5354 independently. standard_lookup will do that automatically.
5355 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5356 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5357 (cp_lookup_symbol_in_namespace): Likewise.
5358 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5359 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5360 may return a STRUCT_DOMAIN match.
5361 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5362 * cp-support.c: Include language.h.
5363 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5364 VAR_DOMAIN.
5365 * psymtab.c (match_partial_symbol): Compare the requested
5366 domain with the symbol's domain directly.
5367 (lookup_partial_symbol): Likewise.
5368 * symtab.c (lookup_symbol_in_language): Explain when/why
5369 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5370 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5371 appropriate languages.
5372 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5373 and moved to ada-lang.c
5374 (lookup_block_symbol): Explain that this function only returns
5375 symbol matching the requested DOMAIN.
5376 Compare the requested domain with the symbol's domain directly.
5377 (iterate_over_symbols): Compare the requested domain with the
5378 symbol's domain directly.
5379 * symtab.h (symbol_matches_domain): Remove.
5380
3d567982
TT
53812014-04-14 Tom Tromey <tromey@redhat.com>
5382
5383 PR c++/15246:
5384 * c-exp.y (type_aggregate_p): New function.
5385 (qualified_name, classify_inner_name): Use it.
5386 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5387 and TYPE_TARGET_TYPE of an enum type.
5388 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5389 an enum type.
5390 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5391 handle TYPE_DECLARED_CLASS.
5392 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5393 types.
5394 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5395 * valops.c (enum_constant_from_type): New function.
5396 (value_aggregate_elt): Use it.
5397 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5398 TYPE_CODE_ENUM.
5399
c848d642
TT
54002014-04-14 Tom Tromey <tromey@redhat.com>
5401
5402 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5403 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5404 const.
5405 * value.h (value_aggregate_elt): Update.
5406
0626fc76
TT
54072014-04-14 Tom Tromey <tromey@redhat.com>
5408
5409 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5410
5ecaaa66
SA
54112014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5412
5413 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5414 (evaluate_subexp_standard): Pass noside argument.
5415 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5416 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5417 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5418 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5419 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5420
1612e0c0
SA
54212014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5422
5423 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5424 points to a constant blob.
5425
c451ebe5
SA
54262014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5427
5428 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5429 property and store it as the high bound and flag the range accordingly.
5430 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5431 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5432 * gdbtypes.h (enum range_flags): New enum.
5433 (struct range_bounds): Add flags member.
5434
1d42e4c4
SA
54352014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5436
5437 * c-typeprint.c (c_type_print_varspec_suffix): Added
5438 check for not yet resolved high bound. If unresolved, print
5439 "variable length" string to the console instead of random
5440 length.
5441
9f1f738a
SA
54422014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5443
5444 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5445 value.
5446 (ada_template_to_fixed_record_type_1): Likewise.
5447 (ada_to_fixed_type_1): Likewise.
5448 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5449 (cp_print_value): Likewise.
5450 * d-valprint.c (dynamic_array_type): Likewise.
5451 * findvar.c (address_of_variable): Likewise.
5452 * jv-valprint.c (java_value_print): Likewise.
5453 * valops.c (value_ind): Likewise.
5454 * value.c (coerce_ref): Likewise.
5455
3c8452d4
SA
54562014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5457
5458 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5459 value and retrieve the dynamic type size.
5460
4ad88275
SA
54612014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5462
5463 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5464 passed to sizeof is dynamic evaluate the argument to compute the length.
5465
80180f79
SA
54662014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5467 Joel Brobecker <brobecker@adacore.com>
5468
5469 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5470 (dwarf2_evaluate_property): New function.
5471 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5472 * dwarf2read.c (attr_to_dynamic_prop): New function.
5473 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5474 attribute.
5475 * gdbtypes.c: Include dwarf2loc.h.
5476 (is_dynamic_type): New function.
5477 (resolve_dynamic_type): New function.
5478 (resolve_dynamic_bounds): New function.
5479 (get_type_length): New function.
5480 (check_typedef): Use get_type_length to compute type length.
5481 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5482 (TYPE_LOW_BOUND_KIND): New macro.
5483 (is_dynamic_type): New function prototype.
5484 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5485 to resolve dynamic properties of the type. Update comment.
5486 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5487
a1556843
RH
54882014-04-14 Richard Henderson <rth@redhat.com>
5489
5490 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5491
0be03e84
DE
54922014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5493 Doug Evans <xdje42@gmail.com>
5494
5495 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5496 dereference TYPE_CODE_REF values.
5497
6b662e19
JB
54982014-04-11 Joel Brobecker <brobecker@adacore.com>
5499
5500 Revert the following changes due to regressions:
5501
5502 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5503 (dwarf2_evaluate_property): New function.
5504 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5505 * dwarf2read.c (attr_to_dynamic_prop): New function.
5506 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5507 attribute.
5508 * gdbtypes.c: Include dwarf2loc.h.
5509 (is_dynamic_type): New function.
5510 (resolve_dynamic_type): New function.
5511 (resolve_dynamic_bounds): New function.
5512 (get_type_length): New function.
5513 (check_typedef): Use get_type_length to compute type length.
5514 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5515 (TYPE_LOW_BOUND_KIND): New macro.
5516 (is_dynamic_type): New function prototype.
5517 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5518 to resolve dynamic properties of the type. Update comment.
5519 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5520
5521 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5522 passed to sizeof is dynamic evaluate the argument to compute the length.
5523
5524 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5525 value and retrieve the dynamic type size.
5526
5527 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5528 (ada_template_to_fixed_record_type_1): Likewise.
5529 (ada_to_fixed_type_1): Likewise.
5530 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5531 (cp_print_value): Likewise.
5532 * d-valprint.c (dynamic_array_type): Likewise.
5533 * eval.c (evaluate_subexp_with_coercion): Likewise.
5534 * findvar.c (address_of_variable): Likewise.
5535 * jv-valprint.c (java_value_print): Likewise.
5536 * valops.c (value_ind): Likewise.
5537 * value.c (coerce_ref): Likewise.
5538
5539 * c-typeprint.c (c_type_print_varspec_suffix): Added
5540 check for not yet resolved high bound. If unresolved, print
5541 "variable length" string to the console instead of random
5542 length.
5543
5544 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5545 property and store it as the high bound and flag the range accordingly.
5546 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5547 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5548 * gdbtypes.h (enum range_flags): New enum.
5549 (struct range_bounds): Add flags member.
5550
5551 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5552 points to a constant blob.
5553
5554 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5555 (evaluate_subexp_standard): Pass noside argument.
5556 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5557 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5558 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5559 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5560 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5561
245a5f0b
KS
55622014-04-11 Keith Seitz <keiths@redhat.com>
5563
5564 PR c++/16675
5565 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5566 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5567 reference types.
5568
3bce8237
SA
55692014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5570
5571 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5572 (evaluate_subexp_standard): Pass noside argument.
5573 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5574 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5575 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5576 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5577 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5578
92b09522
SA
55792014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5580
5581 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5582 points to a constant blob.
5583
e1969afb
SA
55842014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5585
5586 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5587 property and store it as the high bound and flag the range accordingly.
5588 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5589 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5590 * gdbtypes.h (enum range_flags): New enum.
5591 (struct range_bounds): Add flags member.
5592
b86138fb
SA
55932014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5594
5595 * c-typeprint.c (c_type_print_varspec_suffix): Added
5596 check for not yet resolved high bound. If unresolved, print
5597 "variable length" string to the console instead of random
5598 length.
5599
bcd629a4
SA
56002014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5601
5602 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5603 (ada_template_to_fixed_record_type_1): Likewise.
5604 (ada_to_fixed_type_1): Likewise.
5605 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5606 (cp_print_value): Likewise.
5607 * d-valprint.c (dynamic_array_type): Likewise.
5608 * eval.c (evaluate_subexp_with_coercion): Likewise.
5609 * findvar.c (address_of_variable): Likewise.
5610 * jv-valprint.c (java_value_print): Likewise.
5611 * valops.c (value_ind): Likewise.
5612 * value.c (coerce_ref): Likewise.
5613
04b19544
SA
56142014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5615
5616 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5617 value and retrieve the dynamic type size.
5618
26cb189f
SA
56192014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5620
5621 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5622 passed to sizeof is dynamic evaluate the argument to compute the length.
5623
37c1ab67
SA
56242014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5625
5626 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5627 (dwarf2_evaluate_property): New function.
5628 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5629 * dwarf2read.c (attr_to_dynamic_prop): New function.
5630 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5631 attribute.
5632 * gdbtypes.c: Include dwarf2loc.h.
5633 (is_dynamic_type): New function.
5634 (resolve_dynamic_type): New function.
5635 (resolve_dynamic_bounds): New function.
5636 (get_type_length): New function.
5637 (check_typedef): Use get_type_length to compute type length.
5638 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5639 (TYPE_LOW_BOUND_KIND): New macro.
5640 (is_dynamic_type): New function prototype.
5641 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5642 to resolve dynamic properties of the type. Update comment.
5643 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5644
729efb13
SA
56452014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5646
5647 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5648 declaring high/low bounds and change uses accordingly. Call
5649 create_range_type instead of create_static_range_type.
5650 * gdbtypes.c (create_range_type): New function.
5651 (create_range_type): Convert bounds into struct bound_prop and pass
5652 them to create_range_type.
5653 * gdbtypes.h (struct bound_prop): New struct.
5654 (create_range_type): New function prototype.
5655 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5656 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5657 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5658 part of the bound.
5659 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5660
0c9c3474
SA
56612014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5662
5663 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5664 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5665 * ada-lang.c: All uses of create_range_type updated.
5666 * coffread.c: All uses of create_range_type updated.
5667 * dwarf2read.c: All uses of create_range_type updated.
5668 * f-exp.y: All uses of create_range_type updated.
5669 * m2-valprint.c: All uses of create_range_type updated.
5670 * mdebugread.c: All uses of create_range_type updated.
5671 * stabsread.c: All uses of create_range_type updated.
5672 * valops.c: All uses of create_range_type updated.
5673 * valprint.c: All uses of create_range_type updated.
5674
9d497a19
PA
56752014-04-10 Pedro Alves <palves@redhat.com>
5676
5677 * breakpoint.c (single_step_breakpoints)
5678 (single_step_gdbarch): Move up in the file.
5679 (one_breakpoint_xfer_memory): New function, factored out from ...
5680 (breakpoint_xfer_memory): ... here. Also process single-step
5681 breakpoints.
5682
15a9128a
TG
56832014-04-09 Tristan Gingold <gingold@adacore.com>
5684
5685 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5686 comments.
5687 (darwin_decode_exception_message): Free port only after use.
5688
9c97a070
PL
56892014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5690
5691 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5692 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5693 when setting the size of call_length.
5694
7af389b8
SC
56952014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5696
5697 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5698 dereference TYPE_CODE_REF values.
5699
86ad98c3
JB
57002014-04-07 Joel Brobecker <brobecker@adacore.com>
5701
5702 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5703 end of warning message.
5704
b0aeadb3
DE
57052014-04-03 Doug Evans <dje@google.com>
5706
5707 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5708 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5709
5979d6b6
AM
57102014-04-02 Alan Modra <amodra@gmail.com>
5711
5712 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5713 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5714 (struct symbol_file_add_from_memory_args): Add size field.
5715 (find_vdso_size): New function.
5716 (add_vsyscall_page): Attempt to find vdso size.
5717
0d60c288
DE
57182014-04-01 Doug Evans <dje@google.com>
5719
5720 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5721
a41f2563
TG
57222014-04-01 Tristan Gingold <gingold@adacore.com>
5723
5724 * darwin-nat.c (darwin_encode_reply): Add prototype.
5725 (darwin_decode_exception_message): Reply to unknown inferiors.
5726 (darwin_decode_message): Handle message by id. Ignore message
5727 to unknown inferior.
5728 (darwin_wait): Discard unknown messages, add debug trace.
5729
11a865c8
DE
57302014-03-31 Doug Evans <dje@google.com>
5731
5732 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5733 comp_dir_string.
5734
770e7fc7
DE
57352014-03-31 Doug Evans <dje@google.com>
5736
5737 New option "set print symbol-loading".
5738 * NEWS: Mention it.
5739 * solib.c (solib_read_symbols): Only print symbol loading messages
5740 if requested.
5741 (solib_add): If symbol loading is in "brief" mode, notify user
5742 symbols are being loaded.
5743 (reload_shared_libraries_1): Ditto.
5744 * symfile.c (print_symbol_loading_off): New static global.
5745 (print_symbol_loading_brief): New static global.
5746 (print_symbol_loading_full): New static global.
5747 (print_symbol_loading_enums): New static global.
5748 (print_symbol_loading): New static global.
5749 (print_symbol_loading_p): New function.
5750 (symbol_file_add_with_addrs): Only print symbol loading messages
5751 if requested.
5752 (_initialize_symfile): Register "print symbol-loading" set/show
5753 command.
5754 * symfile.h (print_symbol_loading_p): Declare.
5755
c32c64b7
DE
57562014-03-30 Doug Evans <xdje42@gmail.com>
5757
5758 * infrun.c (set_last_target_status): New function.
5759 (handle_inferior_event): Call it.
5760
7c0bc051
DE
57612014-03-30 Doug Evans <xdje42@gmail.com>
5762
5763 * inferior.h (enum stop_kind): Improve comment.
5764
8776cfe9
JB
57652014-03-28 Joel Brobecker <brobecker@adacore.com>
5766
5767 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5768 a reference, strip the reference layer before calling
5769 the lang_ops value_has_mutated callback.
5770
410a0ff2
SDJ
57712014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5772
5773 Remove some globals from our parser.
5774 * language.c (unk_lang_parser): Add "struct parser_state"
5775 argument.
5776 * language.h (struct language_defn) <la_parser>: Likewise.
5777 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5778 (initialize_expout): Add "struct parser_state" argument.
5779 Rewrite function to use the parser state.
5780 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5781 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5782 write_exp_elt_longcst, write_exp_elt_dblcst,
5783 write_exp_elt_decfloatcst, write_exp_elt_type,
5784 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5785 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5786 write_dollar_variable): Likewise.
5787 (parse_exp_in_context_1): Use parser state.
5788 (insert_type_address_space): Add "struct parser_state" argument.
5789 Use parser state.
5790 (increase_expout_size): New function.
5791 * parser-defs.h: Forward declare "struct language_defn" and
5792 "struct parser_state".
5793 (expout, expout_size, expout_ptr): Remove extern declarations.
5794 (parse_gdbarch, parse_language): Rewrite macro declarations to
5795 accept the parser state.
5796 (struct parser_state): New struct.
5797 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5798 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5799 write_exp_elt_decfloatcst, write_exp_elt_type,
5800 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5801 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5802 write_exp_msymbol, write_dollar_variable,
5803 mark_struct_expression, insert_type_address_space): Add "struct
5804 parser_state" argument.
5805 (increase_expout_size): New function.
5806 * utils.c (do_clear_parser_state): New function.
5807 (make_cleanup_clear_parser_state): Likewise.
5808 * utils.h (make_cleanup_clear_parser_state): New function
5809 prototype.
5810 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5811 Update calls to write_exp* in order to pass the parser state.
5812 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5813 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5814 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5815 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5816 * stap-probe.c (stap_parse_register_operand): Likewise.
5817 (stap_parse_single_operand): Likewise.
5818 (stap_parse_argument_1): Likewise.
5819 (stap_parse_argument): Use parser state.
5820 * stap-probe.h: Include "parser-defs.h".
5821 (struct stap_parse_info) <pstate>: New field.
5822 * c-exp.y (parse_type): Rewrite to use parser state.
5823 (yyparse): Redefine to c_parse_internal.
5824 (pstate): New global variable.
5825 (parse_number): Add "struct parser_state" argument.
5826 (write_destructor_name): Likewise.
5827 (type_exp): Update calls to write_exp* and similars in order to
5828 use parser state.
5829 (exp1, exp, variable, qualified_name, space_identifier,
5830 typename, typebase): Likewise.
5831 (write_destructor_name, parse_number, lex_one_token,
5832 classify_name, classify_inner_name, c_parse): Add "struct
5833 parser_state" argument. Update function to use parser state.
5834 * c-lang.h: Forward declare "struct parser_state".
5835 (c_parse): Add "struct parser_state" argument.
5836 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5837 (yyparse): Redefine macro to ada_parse_internal.
5838 (pstate): New variable.
5839 (write_int, write_object_renaming, write_var_or_type,
5840 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5841 type_int, type_long, type_long_long, type_float, type_double,
5842 type_long_double, type_char, type_boolean, type_system_address):
5843 Add "struct parser_state" argument.
5844 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5845 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5846 var_or_type, aggregate, aggregate_component_list,
5847 positional_list, others, component_group,
5848 component_associations): Update calls to write_exp* and similar
5849 functions in order to use parser state.
5850 (ada_parse, write_var_from_sym, write_int,
5851 write_exp_op_with_string, write_object_renaming,
5852 find_primitive_type, write_selectors, write_ambiguous_var,
5853 write_var_or_type, write_name_assoc, type_int, type_long,
5854 type_long_long, type_float, type_double, type_long_double,
5855 type_char, type_boolean, type_system_address): Add "struct
5856 parser_state" argument. Adjust function to use parser state.
5857 * ada-lang.c (parse): Likewise.
5858 * ada-lang.h: Forward declare "struct parser_state".
5859 (ada_parse): Add "struct parser_state" argument.
5860 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5861 calls to both functions.
5862 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5863 parser state.
5864 (yyparse): Redefine macro to f_parse_internal.
5865 (pstate): New variable.
5866 (parse_number): Add "struct parser_state" argument.
5867 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5868 and similars in order to use parser state.
5869 (parse_number): Adjust code to use parser state.
5870 (yylex): Likewise.
5871 (f_parse): New function.
5872 * f-lang.h: Forward declare "struct parser_state".
5873 (f_parse): Add "struct parser_state" argument.
5874 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5875 parser state.
5876 (yyparse): Redefine macro for java_parse_internal.
5877 (pstate): New variable.
5878 (push_expression_name, push_expression_name, insert_exp): Add
5879 "struct parser_state" argument.
5880 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5881 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5882 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5883 PostIncrementExpression, PostDecrementExpression,
5884 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5885 UnaryExpressionNotPlusMinus, CastExpression,
5886 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5887 RelationalExpression, EqualityExpression, AndExpression,
5888 ExclusiveOrExpression, InclusiveOrExpression,
5889 ConditionalAndExpression, ConditionalOrExpression,
5890 ConditionalExpression, Assignment, LeftHandSide): Update
5891 calls to write_exp* and similars in order to use parser state.
5892 (parse_number): Ajust code to use parser state.
5893 (yylex): Likewise.
5894 (java_parse): New function.
5895 (push_variable): Add "struct parser_state" argument. Adjust
5896 code to user parser state.
5897 (push_fieldnames, push_qualified_expression_name,
5898 push_expression_name, insert_exp): Likewise.
5899 * jv-lang.h: Forward declare "struct parser_state".
5900 (java_parse): Add "struct parser_state" argument.
5901 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5902 parser state.
5903 (yyparse): Redefine macro to m2_parse_internal.
5904 (pstate): New variable.
5905 (type_exp, exp, fblock, variable, type): Update calls to
5906 write_exp* and similars to use parser state.
5907 (yylex): Likewise.
5908 (m2_parse): New function.
5909 * m2-lang.h: Forward declare "struct parser_state".
5910 (m2_parse): Add "struct parser_state" argument.
5911 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5912 * objc-lang.h: Forward declare "struct parser_state".
5913 (end_msglist): Add "struct parser_state" argument.
5914 * p-exp.y (parse_type): Rewrite macro to use parser state.
5915 (yyparse): Redefine macro to pascal_parse_internal.
5916 (pstate): New variable.
5917 (parse_number): Add "struct parser_state" argument.
5918 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5919 write_exp* and similars in order to use parser state.
5920 (parse_number, yylex): Adjust code to use parser state.
5921 (pascal_parse): New function.
5922 * p-lang.h: Forward declare "struct parser_state".
5923 (pascal_parse): Add "struct parser_state" argument.
5924 * go-exp.y (parse_type): Rewrite macro to use parser state.
5925 (yyparse): Redefine macro to go_parse_internal.
5926 (pstate): New variable.
5927 (parse_number): Add "struct parser_state" argument.
5928 (type_exp, exp1, exp, variable, type): Update calls to
5929 write_exp* and similars in order to use parser state.
5930 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5931 to use parser state.
5932 (go_parse): Likewise.
5933 * go-lang.h: Forward declare "struct parser_state".
5934 (go_parse): Add "struct parser_state" argument.
5935
342587c4
DE
59362014-03-27 Doug Evans <dje@google.com>
5937
5938 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5939
33e80786
DE
59402014-03-27 Doug Evans <dje@google.com>
5941
5942 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5943 Remove argument abbrev_section. All callers updated.
5944
1dbab08b
DE
59452014-03-27 Doug Evans <dje@google.com>
5946
5947 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5948 addr_base, ranges_base.
5949
318d3177
KS
59502014-03-26 Keith Seitz <keiths@redhat.com>
5951
5952 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5953 types, not VAR_DOMAIN.
5954
1e54db15
SL
59552014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5956
5957 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5958 "ra" registers.
5959 * features/nios2-linux.c: Regenerated.
5960 * features/nios2.c: Regenerated.
5961
d3839ede
PA
59622014-03-25 Pedro Alves <palves@redhat.com>
5963
5964 * cli/cli-script.c (script_from_file): Force the interpreter to
5965 sync mode.
5966
7588d2ec
PL
59672014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5968
5969 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5970 small stack allocation.
5971
a6290449
TG
59722014-03-24 Tristan Gingold <gingold@adacore.com>
5973
5974 * darwin-nat.c (exc_server): Remove unused prototype.
5975 (darwin_dump_message): Correctly display data on x86_64.
5976 (darwin_encode_reply): Fix style.
5977 Add comments and fix indentation.
5978
31ae9d24 59792014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
5980
5981 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5982
6339bfc4
DE
59832014-03-22 Doug Evans <xdje42@gmail.com>
5984
5985 * infcmd.c: Whitespace fixes.
5986 (interrupt_command): Merge two function comments into one.
5987
0a07590b
DE
59882014-03-22 Doug Evans <xdje42@gmail.com>
5989
5990 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5991 All uses updated.
5992
b55fbac4
YQ
59932014-03-22 Yao Qi <yao@codesourcery.com>
5994
5995 * remote.c (target_read_live_memory): Remove.
5996 (memory_xfer_live_readonly_partial): Rename it to
5997 remote_xfer_live_readonly_partial. Remove argument 'object'.
5998 All callers updated. Call remote_read_bytes_1
5999 instead of target_read_live_memory.
6000 * tracepoint.c (set_traceframe_number): Remove.
6001 (make_cleanup_restore_traceframe_number): Likewise .
6002 * tracepoint.h (set_traceframe_number): Remove declaration.
6003 (make_cleanup_restore_traceframe_number): Likewise.
6004
9217e74e
YQ
60052014-03-22 Yao Qi <yao@codesourcery.com>
6006
6007 * remote.c (remote_read_bytes): Move code on reading from the
6008 remote stub to ...
6009 (remote_read_bytes_1): ... here. New function.
6010
8acf9577
YQ
60112014-03-22 Yao Qi <yao@codesourcery.com>
6012
6013 * ctf.c (ctf_xfer_partial): Check the return value of
6014 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6015 return TARGET_XFER_UNAVAILABLE.
6016 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6017 * target.c (target_read_live_memory): Move it to remote.c.
6018 (memory_xfer_live_readonly_partial): Likewise.
6019 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6020 * remote.c (target_read_live_memory): Moved from target.c.
6021 (memory_xfer_live_readonly_partial): Likewise.
6022 (remote_read_bytes): Factored out from
6023 memory_xfer_partial_1.
6024
feef67ab
DE
60252014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6026
6027 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6028 NULL pointer.
6029
b65dc60b
PA
60302014-03-21 Pedro Alves <palves@redhat.com>
6031
6032 * infrun.c (normal_stop): Extend comment.
6033
b4ab256d
HZ
60342014-03-21 Hui Zhu <hui@codesourcery.com>
6035 Pedro Alves <palves@redhat.com>
6036
6037 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6038 static buffer.
6039 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6040 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6041 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6042
deba7593
MR
60432014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6044
6045 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6046 `z' formatted output modifier.
6047
1bff71c3
SDJ
60482014-03-20 Tom Tromey <tromey@redhat.com>
6049 Sergio Durigan Junior <sergiodj@redhat.com>
6050
6051 * probe.c (parse_probes): Turn assert into an ordinary error.
6052 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6053 exceptions when parsing probes. Rearrange the code for clarity.
6054
90e28950
TT
60552014-03-20 Tom Tromey <tromey@redhat.com>
6056
6057 PR gdb/14135
6058 * top.c (execute_command): Only dispatch events if the command
6059 started the target.
6060
beb460e8
PA
60612014-03-20 Tom Tromey <tromey@redhat.com>
6062
6063 PR cli/15718
6064 * infcall.c: Include event-top.h.
6065 (run_inferior_call): Call async_disable_stdin if needed.
6066
99619bea
PA
60672014-03-20 Pedro Alves <palves@redhat.com>
6068
6069 * infrun.c (prepare_to_proceed): Delete.
6070 (thread_still_needs_step_over): New function.
6071 (find_thread_needs_step_over): New function.
6072 (proceed): If the current thread needs a step-over, set its
6073 steping_over_breakpoint flag. Adjust to use
6074 find_thread_needs_step_over instead of prepare_to_proceed.
6075 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6076 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6077 breakpoint.
6078 (switch_back_to_stepped_thread): Step over breakpoints of all
6079 threads not the stepping thread, before switching back to the
6080 stepping thread.
6081
2adfaa28
PA
60822014-03-20 Pedro Alves <palves@redhat.com>
6083
6084 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6085 extern.
6086 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6087 * infrun.c (saved_singlestep_ptid)
6088 (stepping_past_singlestep_breakpoint): Delete.
6089 (resume): Remove stepping_past_singlestep_breakpoint handling.
6090 (proceed): Store the prev_pc of the stepping thread too.
6091 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6092 singlestep_pc.
6093 (enum infwait_states): Delete infwait_thread_hop_state.
6094 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6095 field.
6096 (handle_inferior_event): Adjust.
6097 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6098 handling and the thread-hop code. Before removing single-step
6099 breakpoints, check whether the thread hit a single-step breakpoint
6100 of another thread. If it did, the trap is not a random signal.
6101 (switch_back_to_stepped_thread): If the event thread hit a
6102 single-step breakpoint, unblock it before switching to the
6103 stepping thread. Handle the case of the stepped thread having
6104 advanced already.
6105 (keep_going): Handle the case of the current thread moving past a
6106 single-step breakpoint.
6107
31e77af2
PA
61082014-03-20 Pedro Alves <palves@redhat.com>
6109
6110 PR breakpoints/7143
6111 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6112 are being stepped over.
6113 (breakpoint_address_match): Make extern.
6114 * breakpoint.h (breakpoint_address_match): New declaration.
6115 * inferior.h (stepping_past_instruction_at): New declaration.
6116 * infrun.c (struct step_over_info): New type.
6117 (step_over_info): New global.
6118 (set_step_over_info, clear_step_over_info)
6119 (stepping_past_instruction_at): New functions.
6120 (handle_inferior_event): Clear the step-over info when
6121 trap_expected is cleared.
6122 (resume): Remove now stale comment.
6123 (clear_proceed_status): Clear step-over info.
6124 (proceed): Adjust step-over handling to set or clear the step-over
6125 info instead of removing all breakpoints.
6126 (handle_signal_stop): When setting up a thread-hop, don't remove
6127 breakpoints here.
6128 (stop_stepping): Clear step-over info.
6129 (keep_going): Adjust step-over handling to set or clear step-over
6130 info and then always inserting breakpoints, instead of removing
6131 all breakpoints when stepping over one.
6132
b9f437de
PA
61332014-03-20 Pedro Alves <palves@redhat.com>
6134
6135 * infrun.c (previous_inferior_ptid): Adjust comment.
6136 (deferred_step_ptid): Delete.
6137 (infrun_thread_ptid_changed, prepare_to_proceed)
6138 (init_wait_for_inferior): Adjust.
6139 (handle_signal_stop): Delete deferred_step_ptid handling.
6140
06c868a8
JK
61412014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6142
6143 PR gdb/15358
6144 * defs.h (sync_quit_force_run): New declaration.
6145 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6146 * event-top.c (async_sigterm_handler): New declaration.
6147 (async_sigterm_token): New variable.
6148 (async_init_signals): Create also async_sigterm_token.
6149 (async_sigterm_handler): New function.
6150 (sync_quit_force_run): New variable.
6151 (handle_sigterm): Replace quit_force call by other calls.
6152 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6153
dea80df0
MR
61542014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6155
6156 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6157 offset into SPE pseudo registers.
6158
0c7e1a46
PA
61592014-03-18 Pedro Alves <palves@redhat.com>
6160
6161 PR gdb/13860
6162 * inferior.h (print_stop_event): Declare.
6163 * infrun.c (print_stop_event): New, factored out from ...
6164 (normal_stop): ... this.
6165 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6166 of bpstat_print/print_stack_frame.
6167
9c1fcd01
TT
61682014-03-17 Tom Tromey <tromey@redhat.com>
6169
6170 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6171
11aa919a
PMR
61722014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6173
6174 * ada-lang.c (decode_constrained_packed_array): Perform a
6175 minimal coercion for reference with coerce_ref instead of
6176 ada_coerce_ref.
6177
d4ccb5e0
TG
61782014-03-17 Tristan Gingold <gingold@adacore.com>
6179
6180 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6181 (darwin_solib_create_inferior_hook): Emit a warning if version
6182 is unhandled.
6183
49840f2a
UW
61842014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6185
6186 * python/py-value.c (get_field_flag): Cast flag_name argument to
6187 PyObject_GetAttrString to support Python 2.4.
6188
ed4123e5
JK
61892014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6190
6191 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6192 (Global Maintainers): Remove Jan Kratochvil.
6193
d6b64346
PA
61942014-03-14 Pedro Alves <palves@redhat.com>
6195
6196 * inferior.h (terminal_ours_for_output): Rename to ...
6197 (child_terminal_ours_for_output): ... this.
6198 (terminal_save_ours): Rename to ...
6199 (child_terminal_save_ours): ... this.
6200 (terminal_ours): Rename to ...
6201 (child_terminal_ours): ... this.
6202 (terminal_inferior): Rename to ...
6203 (child_terminal_inferior): ... this.
6204 (terminal_init_inferior): Rename to ...
6205 (child_terminal_init_inferior): ... this.
6206 (terminal_init_inferior_with_pgrp): Rename to ...
6207 (child_terminal_init_inferior_with_pgrp): ... this.
6208 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6209 (child_terminal_init_with_pgrp): ... this.
6210 (terminal_save_ours): Rename to ...
6211 (child_terminal_save_ours): ... this.
6212 (terminal_init_inferior): Rename to ...
6213 (child_terminal_init): ... this. Adjust.
6214 (terminal_inferior): Rename to ...
6215 (child_terminal_inferior): ... this.
6216 (terminal_ours_for_output): Rename to ...
6217 (child_terminal_ours_for_output): ... this. Adjust.
6218 (terminal_ours): Rename to ...
6219 (child_terminal_ours): ... this.
6220 (terminal_ours_1): Rename to ...
6221 (child_terminal_ours_1): ... this. Adjust.
6222 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6223 * windows-nat.c (do_initial_windows_stuff): Adjust.
6224 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6225 (gnu_terminal_init): ... this. Adjust.
6226 (gnu_target): Adjust.
6227 * inf-child.c (inf_child_target): Adjust.
6228
5a1e8c7a
DE
62292014-03-13 Doug Evans <xdje42@gmail.com>
6230
6231 PR guile/16612
6232 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6233 new eq?-hashtab.
6234
350e1a76
DE
62352014-03-13 Doug Evans <xdje42@gmail.com>
6236
6237 * value.c (record_latest_value): Call release_value_or_incref
6238 instead of release_value.
6239
a69900ae
PA
62402014-03-13 Pedro Alves <palves@redhat.com>
6241
6242 * procfs.c (procfs_target): Don't override to_shortname,
6243 to_longname or to_doc.
6244
5db9f0bd
PA
62452014-03-13 Pedro Alves <palves@redhat.com>
6246
6247 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6248 Unix in user visible strings.
6249
5e3a2c38
SS
62502014-03-12 Stan Shebs <stan@codesourcery.com>
6251
6252 * gdbtypes.h: Annotate comments for Doxygen, add a page
6253 block comment with some general info.
6254
8bc2fe48
PA
62552014-03-12 Pedro Alves <palves@redhat.com>
6256
6257 * infcmd.c (prepare_execution_command): New function, factored out
6258 from several execution commands.
6259 (run_command_1, continue_command, step_1, jump_command)
6260 (signal_command, until_command, advance_command, finish_command)
6261 (attach_command): Use prepare_execution_command.
6262
638c5f49
OJ
62632014-03-12 Omair Javaid <omair.javaid@linaro.org>
6264
6265 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6266 (MAX_BPTS): Define.
6267 (MAX_WPTS): Define.
6268 (struct arm_linux_thread_points): Removed.
6269 (struct arm_linux_process_info): New.
6270 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6271 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6272 (arm_linux_find_breakpoints_by_tid): Removed.
6273 (struct arch_lwp_info): New.
6274 (arm_linux_find_process_pid): New functions.
6275 (arm_linux_add_process): New functions.
6276 (arm_linux_process_info_get): New functions.
6277 (arm_linux_forget_process): New function.
6278 (arm_linux_get_debug_reg_state): New function.
6279 (struct update_registers_data): New.
6280 (update_registers_callback): New function.
6281 (arm_linux_insert_hw_breakpoint1): Updated.
6282 (arm_linux_remove_hw_breakpoint1): Updated.
6283 (arm_linux_insert_hw_breakpoint): Updated.
6284 (arm_linux_remove_hw_breakpoint): Updated.
6285 (arm_linux_insert_watchpoint): Updated.
6286 (arm_linux_remove_watchpoint): Updated.
6287 (arm_linux_new_thread): Updated.
6288 (arm_linux_prepare_to_resume): New function.
6289 (arm_linux_new_fork): New function.
6290 (_initialize_arm_linux_nat): Updated.
6291
6d03af93
PA
62922014-03-12 Pedro Alves <palves@redhat.com>
6293
6294 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6295
b3ccfe11
TT
62962014-03-12 Tom Tromey <tromey@redhat.com>
6297
6298 * inf-child.c (return_zero): New function.
6299 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6300 * aix-thread.c (aix_thread_inferior_created): New function.
6301 (aix_thread_attach): Remove.
6302 (init_aix_thread_ops): Don't set to_attach.
6303 (_initialize_aix_thread): Register inferior_created observer.
6304 * corelow.c (init_core_ops): Don't set to_attach or
6305 to_create_inferior.
6306 * exec.c (init_exec_ops): Don't set to_attach or
6307 to_create_inferior.
6308 * infcmd.c (run_command_1): Use find_run_target. Make direct
6309 target calls.
6310 (attach_command): Use find_attach_target. Make direct target
6311 calls.
6312 * record-btrace.c (init_record_btrace_ops): Don't set
6313 to_create_inferior.
6314 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6315 Remove.
6316 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6317 set to_create_inferior.
6318 * target.c (complete_target_initialization): Add assertion.
6319 (target_create_inferior): Remove.
6320 (find_default_attach, find_default_create_inferior): Remove.
6321 (find_attach_target, find_run_target): New functions.
6322 (find_default_is_async_p, find_default_can_async_p)
6323 (target_supports_non_stop, target_attach): Remove.
6324 (init_dummy_target): Don't set to_create_inferior or
6325 to_supports_non_stop.
6326 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6327 TARGET_DEFAULT_FUNC.
6328 <to_create_inferior>: Add comment.
6329 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6330 TARGET_DEFAULT_RETURN.
6331 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6332 (find_attach_target, find_run_target): Declare.
6333 (target_create_inferior): Remove.
6334 (target_has_execution_1): Update comment.
6335 (target_supports_non_stop): Remove.
6336 * target-delegates.c: Rebuild.
6337
91f83b02
PA
63382014-03-12 Pedro Alves <palves@redhat.com>
6339
6340 * inf-child.h: Update comment to not mention Unix.
6341
f1aea813
PA
63422014-03-12 Pedro Alves <palves@redhat.com>
6343
6344 * inf-child.c: Update top comment to not mention Unix. Add
6345 generic comment describing how this target is meant to be used.
6346 (inf_child_post_attach, inf_child_post_startup_inferior)
6347 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6348 Unix in comment.
6349
ee8e9165
PA
63502014-03-12 Pedro Alves <palves@redhat.com>
6351
6352 * nto-procfs.c: Include inf-child.h.
6353 (procfs_ops): Delete global.
6354 (procfs_can_run): Delete method.
6355 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6356 target pointer instead of referencing procfs_ops.
6357 (procfs_prepare_to_store): Delete.
6358 (init_procfs_ops): Delete function.
6359 (procfs_target): New function, based on init_procfs_ops, but
6360 inherit inf_child_target.
6361 (_initialize_procfs): Use procfs_target.
6362
51a9c8c5
PA
63632014-03-12 Pedro Alves <palves@redhat.com>
6364
6365 * windows-nat.c: Include inf-child.h.
6366 (windows_ops): Delete global.
6367 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6368 methods.
6369 (init_windows_ops): Delete function.
6370 (windows_target): New function, based on init_windows_ops, but
6371 inherit inf_child_target.
6372 (_initialize_windows_nat): Use windows_target. Install x86
6373 specific target methods here.
6374
c1966e26
DE
63752014-03-10 Doug Evans <xdje42@gmail.com>
6376
6377 * guile/guile.c (call_initialize_gdb_module): New function.
6378 (initialize_guile): Replace call to scm_init_guile with call to
6379 scm_with_guile.
6380
023db19c
JB
63812014-03-10 Joel Brobecker <brobecker@adacore.com>
6382
6383 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6384 in call to TYPE_CODE macro.
6385
5ec18f2b
JG
63862014-03-10 Jerome Guitton <guitton@adacore.com>
6387
8668be63
JB
6388 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6389 Resolve tagged types to full view.
5ec18f2b 6390
7d03f2eb
HZ
63912014-03-10 Hui Zhu <hui@codesourcery.com>
6392
6393 * target.h (target_insert_breakpoint): Remove "hardware" from its
6394 comments.
6395
c5164cbc
DE
63962014-03-07 Doug Evans <dje@google.com>
6397
6398 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6399
c4a3fee2
DE
64002014-03-07 Doug Evans <dje@google.com>
6401
6402 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6403 Remove unused local comp_dir_attr. Assert exactly one of
6404 stub_comp_unit_die, stub_comp_dir is non-NULL.
6405
3156469c
JB
64062014-03-07 Joel Brobecker <brobecker@adacore.com>
6407
6408 * target.h (complete_target_initialization, add_target):
6409 Add comment.
6410
c1a7b7c6
PA
64112014-03-07 Pedro Alves <palves@redhat.com>
6412
6413 * go32-nat.c: Include inf-child.h.
6414 (go32_ops): Delete global.
6415 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6416 Delete methods.
6417 (go32_create_inferior): Push the passed in target pointer instead
6418 of referencing go32_ops.
6419 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6420 (go32_target): New function, based on init_go32_ops, but inherit
6421 inf_child_target.
6422 (_initialize_go32_nat): Use go32_target. Move parts of
6423 init_go32_ops here.
6424
d3c1a85f
JB
64252014-03-06 Joel Brobecker <brobecker@adacore.com>
6426
6427 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6428 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6429 SYMBOL_VALUE_ADDRESS.
6430 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6431
5fa1d40e
YQ
64322014-03-06 Yao Qi <yao@codesourcery.com>
6433
6434 * breakpoint.c (get_tracepoint_by_number): Remove argument
6435 optional_p. All callers updated. Adjust comments. Update
6436 output message.
6437 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6438
0c13193f
YQ
64392014-03-06 Yao Qi <yao@codesourcery.com>
6440
6441 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6442 early if get_number returns zero. Use 'p' instead of 'args'.
6443
2217da06
YQ
64442014-03-06 Yao Qi <yao@codesourcery.com>
6445
6446 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6447 message.
6448
cc3da688
YQ
64492014-03-06 Yao Qi <yao@codesourcery.com>
6450
6451 PR breakpoints/16508
6452 * tracepoint.c (check_trace_running): New function.
6453 (trace_find_command): Move code to check_trace_running and
6454 call check_trace_running.
6455 (trace_find_pc_command): Likewise.
6456 (trace_find_tracepoint_command): Likewise.
6457 (trace_find_line_command): Likewise.
6458 (trace_find_range_command): Likewise.
6459 * tracepoint.h (check_trace_running): Likewise.
6460 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6461
6a5f844b
YQ
64622014-03-06 Yao Qi <yao@codesourcery.com>
6463
6464 * target.h (struct target_ops) <to_traceframe_info>: Use
6465 TARGET_DEFAULT_NORETURN (tcomplain ()).
6466 * target-delegates.c: Regenerated.
6467
0f26cec1
PA
64682014-03-05 Pedro Alves <palves@redhat.com>
6469
6470 PR gdb/16575
6471 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6472 void. Update comment.
6473 (dcache_xfer_memory): Delete.
6474 (dcache_read_memory_partial): New, based on the read bits of
6475 dcache_xfer_memory.
6476 (dcache_update): Add status parameter. Use ULONGEST for len, and
6477 adjust. Discard cache lines if the reason for the update was
6478 error.
6479 * dcache.h (dcache_xfer_memory): Delete declaration.
6480 (dcache_read_memory_partial): New declaration.
6481 (dcache_update): Update prototype.
6482 * target.c (raw_memory_xfer_partial): Update the dcache here.
6483 (memory_xfer_partial_1): Don't handle dcache writes here.
6484
b2b255bd
MF
64852014-03-05 Mike Frysinger <vapier@gentoo.org>
6486
6487 * remote-sim.c (gdbsim_load): Add const to prog.
6488
5d9cf8a4
TT
64892014-03-03 Tom Tromey <tromey@redhat.com>
6490
6491 * elfread.c (probe_key): Change to bfd_data.
6492 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6493 now per-BFD, not per-objfile.
6494 * stap-probe.c (stap_probe_destroy): Update comment.
6495 (handle_stap_probe): Allocate on the per-BFD obstack.
6496
729662a5
TT
64972014-03-03 Tom Tromey <tromey@redhat.com>
6498
6499 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6500 * breakpoint.c (create_longjmp_master_breakpoint): Use
6501 get_probe_address.
6502 (add_location_to_breakpoint, bkpt_probe_insert_location)
6503 (bkpt_probe_remove_location): Update.
6504 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6505 * elfread.c (elf_symfile_relocate_probe): Remove.
6506 (elf_probe_fns): Update.
6507 (insert_exception_resume_breakpoint): Change type of "probe"
6508 parameter to bound_probe.
6509 (check_exception_resume): Update.
6510 * objfiles.c (objfile_relocate1): Don't relocate probes.
6511 * probe.c (bound_probe_s): New typedef.
6512 (parse_probes): Use get_probe_address. Set sal's objfile.
6513 (find_probe_by_pc): Return a bound_probe.
6514 (collect_probes): Return a VEC(bound_probe_s).
6515 (compare_probes): Update.
6516 (gen_ui_out_table_header_info): Change type of "probes"
6517 parameter. Update.
6518 (info_probes_for_ops): Update.
6519 (get_probe_address): New function.
6520 (probe_safe_evaluate_at_pc): Update.
6521 * probe.h (struct probe_ops) <get_probe_address>: New field.
6522 <set_semaphore, clear_semaphore>: Add objfile parameter.
6523 (struct probe) <objfile>: Remove field.
6524 <arch>: New field.
6525 <address>: Update comment.
6526 (struct bound_probe): New.
6527 (find_probe_by_pc): Return a bound_probe.
6528 (get_probe_address): Declare.
6529 * solib-svr4.c (struct probe_and_action) <address>: New field.
6530 (hash_probe_and_action, equal_probe_and_action): Update.
6531 (register_solib_event_probe): Add address parameter.
6532 (solib_event_probe_at): Update.
6533 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6534 get_probe_address.
6535 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6536 (stap_get_probe_address): New function.
6537 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6538 (compile_probe_arg): Update.
6539 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6540 address.
6541 (handle_stap_probe): Don't relocate the probe.
6542 (stap_relocate): Remove.
6543 (stap_gen_info_probes_table_values): Update.
6544 (stap_probe_ops): Remove stap_relocate.
6545 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6546 (debug_sym_probe_fns): Update.
6547 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6548 * symtab.c (init_sal): Use memset.
6549 * symtab.h (struct symtab_and_line) <objfile>: New field.
6550 * tracepoint.c (start_tracing, stop_tracing): Update.
6551
ff887920
TT
65522014-03-03 Tom Tromey <tromey@redhat.com>
6553
6554 * probe.h (parse_probes, find_probe_by_pc)
6555 (find_probes_in_objfile): Fix comments.
6556
f0407826
DE
65572014-03-02 Doug Evans <xdje42@gmail.com>
6558
6559 * infrun.c (handle_signal_stop): Replace test for
6560 TARGET_WAITKIND_STOPPED with an assert.
6561
35e6a711
DE
65622014-03-02 Doug Evans <xdje42@gmail.com>
6563
6564 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6565
667f9d0b
DE
65662014-03-02 Doug Evans <xdje42@gmail.com>
6567
6568 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6569
dc92ace0
MK
65702014-03-01 Mark Kettenis <kettenis@gnu.org>
6571
6572 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6573
a900370f
MK
65742014-03-01 Mark Kettenis <kettenis@gnu.org>
6575
6576 * i386obsd-nat.c: Include "obsd-nat.h".
6577 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6578 add_target.
6579 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6580
b72a7981
MK
65812014-03-01 Mark Kettenis <kettenis@gnu.org>
6582
6583 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6584
96c70aba
MK
65852014-03-01 Mark Kettenis <kettenis@gnu.org>
6586
6587 * mips64obsd-nat.c: Include "obsd-nath".
6588 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6589 add_target
6590 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6591
874a80af
MK
65922014-03-01 Mark Kettenis <kettenis@gnu.org>
6593
8fd408f1
MK
6594 * amd64obsd-nat.c: Include "obsd-nat,h.
6595 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6596 add_target.
874a80af
MK
6597 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6598
9cf95373
SC
65992014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6600
6601 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6602 (find_overload_match): Update call to find_oload_champ.
6603 (find_oload_champ_namespace_loop): Likewise
6604
863e4da4
MK
66052014-02-28 Mark Kettenis <kettenis@gnu.org>
6606
025cac40
MK
6607 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6608
1ed586ce
MK
6609 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6610 * config/sparc/obsd64.mh: New file.
6611 * sparc64obsd-nat.c: New file.
6612
863e4da4
MK
6613 * obsd-nat.h: New file.
6614 * obsd-nat.c: New file.
6615 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6616 (ALLDEPFILES): Add obsd-nat.c.
6617
89de4da4
TT
66182014-02-28 Tom Tromey <tromey@redhat.com>
6619
6620 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6621 * cli-out.h (cli_ui_out_impl): Now const.
6622 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6623 * ui-out.c (struct ui_out) <impl>: Now const.
6624 (default_ui_out_impl): Now const.
6625 (ui_out_new): Make 'impl' parameter const.
6626 * ui-out.h (ui_out_new): Update.
6627
c725e7b6
MK
66282014-02-27 Mark Kettenis <kettenis@gnu.org>
6629
6630 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6631
670b46b3
MK
66322014-02-27 Mark Kettenis <kettenis@gnu.org>
6633
6634 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6635
c91550fc
JK
66362014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6637
6638 Additional PR 8882 fix.
6639 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6640
2fa0369e
PA
66412014-02-27 Pedro Alves <palves@redhat.com>
6642
6643 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6644 isn't set.
6645
d632a097
PA
66462014-02-27 Pedro Alves <palves@redhat.com>
6647
6648 PR 12702
6649 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6650 * nat/linux-waitpid.c: Include string.h.
6651 (status_to_str): Moved here and made extern.
6652 * nat/linux-waitpid.h (status_to_str): New declaration.
6653
2ebd5a35
HZ
66542014-02-27 Hui Zhu <hui@codesourcery.com>
6655
6656 PR 12702
6657 * infrun.c (ptid_match): Move ...
6658 * common/ptid.c (ptid_match): ... here.
6659 * inferior.h (ptid_match): Move ...
6660 * common/ptid.h (ptid_match): ... here.
6661
3cdd631f
MK
66622014-02-27 Mark Kettenis <kettenis@gnu.org>
6663
6664 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6665 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6666 gdb_target_obs.
6667
bee30a64
MK
66682014-02-27 Mark Kettenis <kettenis@gnu.org>
6669
6670 * obsd-tdep.c (obsd_auxv_parse): New function.
6671 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
6672
6673 * gdbarch.sh (auxv_parse): New.
6674 * gdbarch.h: Regenerated.
6675 * gdbarch.c: Regenerated.
6676 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6677
7a5a839f
LC
66782014-02-26 Ludovic Courtès <ludo@gnu.org>
6679
6680 * guile/scm-value.c (gdbscm_history_append_x): New function.
6681 (value_functions): Add it.
6682
31aa7e4e
JB
66832014-02-27 Joel Brobecker <brobecker@adacore.com>
6684
6685 * dwarf2read.c (attr_value_as_address): New function.
6686 (dwarf2_find_base_address, read_call_site_scope): Use
6687 attr_value_as_address in place of DW_ADDR.
6688 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6689 the low and high addresses. Slight rework of the handling
6690 of the high pc being a constant form, and limit it to
6691 DWARF verson 4 or higher.
6692 (dwarf2_record_block_ranges): Likewise.
6693 (read_partial_die): Likewise.
6694 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6695
9b333ba3
TT
66962014-02-26 Tom Tromey <tromey@redhat.com>
6697
6698 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6699
5f6cac40
TT
67002014-02-26 Tom Tromey <tromey@redhat.com>
6701
6702 * elfread.c (elf_read_minimal_symbols): Return early if
6703 minimal symbols have already been read. Add "ei" parameter.
6704 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6705 * minsyms.c (prim_record_minimal_symbol_full): Update.
6706 * objfiles.h (struct objstats) <n_minsyms>: Move...
6707 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6708 * symmisc.c (print_objfile_statistics): Update.
6709
2750ef27
TT
67102014-02-26 Tom Tromey <tromey@redhat.com>
6711
6712 * elfread.c (elf_read_minimal_symbols): New function, from
6713 elf_symfile_read.
6714 (elf_symfile_read): Call it.
6715
34643a32
TT
67162014-02-26 Tom Tromey <tromey@redhat.com>
6717
6718 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6719 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6720 (lookup_minimal_symbol_solib_trampoline)
6721 (lookup_minimal_symbol_by_pc_section_1)
6722 (lookup_minimal_symbol_and_objfile): Update.
6723 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6724 Don't allocate a minimal symbol if minsyms have already been read.
6725 (build_minimal_symbol_hash_tables): Update.
6726 (install_minimal_symbols): Do nothing if minsyms already read.
6727 Use the per-BFD obstack.
6728 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6729 * objfiles.c (allocate_objfile): Call
6730 terminate_minimal_symbol_table later.
6731 (have_minimal_symbols): Update.
6732 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6733 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6734 Move from struct objfile.
6735 <minsyms_read>: New field.
6736 (struct objfile) <msymbols, minimal_symbol_count,
6737 msymbol_hash, msymbol_demangled_hash>: Move.
6738 (ALL_OBJFILE_MSYMBOLS): Update.
6739 * symfile.c (read_symbols): Set minsyms_read.
6740 (reread_symbols): Update.
6741 * symmisc.c (dump_objfile, dump_msymbols): Update.
6742
2273f0ac
TT
67432014-02-26 Tom Tromey <tromey@redhat.com>
6744
6745 * minsyms.c (msymbols_sort): Remove.
6746 * minsyms.h (msymbols_sort): Remove.
6747 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6748 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6749 * elfread.c (elf_symtab_read): Don't add section offsets.
6750 * xcoffread.c (record_minimal_symbol): Don't add section offset
6751 to minimal symbol address.
6752 * somread.c (text_offset, data_offset): Remove.
6753 (som_symtab_read): Don't add section offsets to minimal symbol
6754 addresses.
6755 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6756 Don't add section offsets to minimal symbols.
6757 * coffread.c (coff_symtab_read): Don't add section offsets
6758 to minimal symbol addresses.
6759 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6760 to minimal symbol addresses.
6761 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6762 section offset to minimal symbol addresses.
6763 * mdebugread.c (parse_partial_symbols): Don't add section
6764 offset to minimal symbol addresses.
6765 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6766 offset to minimal symbol addresses.
6767
77e371c0
TT
67682014-02-26 Tom Tromey <tromey@redhat.com>
6769
6770 * ada-lang.c (ada_main_name): Update.
6771 (ada_add_standard_exceptions): Update.
6772 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6773 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6774 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6775 * auxv.c (ld_so_xfer_auxv): Update.
6776 * avr-tdep.c (avr_scan_prologue): Update.
6777 * ax-gdb.c (gen_var_ref): Update.
6778 * blockframe.c (get_pc_function_start)
6779 (find_pc_partial_function_gnu_ifunc): Update.
6780 * breakpoint.c (create_overlay_event_breakpoint)
6781 (create_longjmp_master_breakpoint)
6782 (create_std_terminate_master_breakpoint)
6783 (create_exception_master_breakpoint): Update.
6784 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6785 * c-valprint.c (c_val_print): Update.
6786 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6787 * common/agent.c (agent_look_up_symbols): Update.
6788 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6789 * dwarf2loc.c (call_site_to_target_addr): Update.
6790 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6791 * elfread.c (elf_gnu_ifunc_record_cache)
6792 (elf_gnu_ifunc_resolve_by_got): Update.
6793 * findvar.c (default_read_var_value): Update.
6794 * frame.c (inside_main_func): Update.
6795 * frv-tdep.c (frv_frame_this_id): Update.
6796 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6797 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6798 Update.
6799 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6800 (hppa_hpux_find_dummy_bpaddr): Update.
6801 * hppa-tdep.c (hppa_symbol_address): Update.
6802 * infcmd.c (until_next_command): Update.
6803 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6804 Update.
6805 * linespec.c (minsym_found, add_minsym): Update.
6806 * linux-nat.c (get_signo): Update.
6807 * linux-thread-db.c (inferior_has_bug): Update.
6808 * m32c-tdep.c (m32c_return_value)
6809 (m32c_m16c_address_to_pointer): Update.
6810 * m32r-tdep.c (m32r_frame_this_id): Update.
6811 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6812 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6813 * maint.c (maintenance_translate_address): Update.
6814 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6815 (frob_address): New function.
6816 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6817 frob_address. Rename parameter to "pc_in".
6818 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6819 addresses.
6820 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6821 Update.
6822 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6823 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6824 * objc-lang.c (find_objc_msgsend): Update.
6825 * objfiles.c (objfile_relocate1): Update.
6826 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6827 * p-valprint.c (pascal_val_print): Update.
6828 * parse.c (write_exp_msymbol): Update.
6829 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6830 (ppc_elfv2_skip_entrypoint): Update.
6831 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6832 * printcmd.c (build_address_symbolic, msym_info)
6833 (address_info): Update.
6834 * proc-service.c (ps_pglobal_lookup): Update.
6835 * psymtab.c (find_pc_sect_psymtab_closer)
6836 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6837 Change msymbol parameter to bound_minimal_symbol.
6838 * ravenscar-thread.c (get_running_thread_id): Update.
6839 * remote.c (remote_check_symbols): Update.
6840 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6841 address.
6842 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6843 * solib-dsbt.c (lm_base): Update.
6844 * solib-frv.c (lm_base, main_got): Update.
6845 * solib-irix.c (locate_base): Update.
6846 * solib-som.c (som_solib_create_inferior_hook)
6847 (link_map_start): Update.
6848 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6849 * solib-svr4.c (elf_locate_base, enable_break): Update.
6850 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6851 (flush_ea_cache): Update.
6852 * stabsread.c (define_symbol, scan_file_globals): Update.
6853 * stack.c (find_frame_funname): Update.
6854 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6855 (debug_qf_find_pc_sect_symtab): Update.
6856 * symfile.c (simple_read_overlay_table)
6857 (simple_overlay_update): Update.
6858 * symfile.h (struct quick_symbol_functions)
6859 <find_pc_sect_symtab>: Change type of msymbol to
6860 bound_minimal_symbol.
6861 * symmisc.c (dump_msymbols): Update.
6862 * symtab.c (find_pc_sect_symtab_via_partial)
6863 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6864 (search_symbols, print_msymbol_info): Update.
6865 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6866 (MSYMBOL_VALUE_ADDRESS): Redefine.
6867 (BMSYMBOL_VALUE_ADDRESS): New macro.
6868 * tracepoint.c (scope_info): Update.
6869 * tui/tui-disasm.c (tui_find_disassembly_address)
6870 (tui_get_begin_asm_address): Update.
6871 * valops.c (find_function_in_inferior): Update.
6872 * value.c (value_static_field, value_fn_field): Update.
6873
3b7344d5
TT
68742014-02-26 Tom Tromey <tromey@redhat.com>
6875
6876 * ada-lang.c (ada_update_initial_language): Update.
6877 (ada_main_name, ada_has_this_exception_support): Update.
6878 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6879 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6880 * arm-tdep.c (arm_skip_stub): Update.
6881 * auxv.c (ld_so_xfer_auxv): Update.
6882 * avr-tdep.c (avr_scan_prologue): Update.
6883 * ax-gdb.c (gen_var_ref): Update.
6884 * breakpoint.c (struct breakpoint_objfile_data)
6885 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6886 type to bound_minimal_symbol.
6887 (create_overlay_event_breakpoint)
6888 (create_longjmp_master_breakpoint)
6889 (create_std_terminate_master_breakpoint)
6890 (create_exception_master_breakpoint): Update.
6891 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6892 * c-exp.y (classify_name): Update.
6893 * coffread.c (coff_symfile_read): Update.
6894 * common/agent.c (agent_look_up_symbols): Update.
6895 * d-lang.c (d_main_name): Update.
6896 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6897 * dec-thread.c (enable_dec_thread): Update.
6898 * dwarf2loc.c (call_site_to_target_addr): Update.
6899 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6900 * eval.c (evaluate_subexp_standard): Update.
6901 * findvar.c (struct minsym_lookup_data) <result>: Change type
6902 to bound_minimal_symbol.
6903 <objfile>: Remove.
6904 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6905 * frame.c (inside_main_func): Update.
6906 * frv-tdep.c (frv_frame_this_id): Update.
6907 * gcore.c (call_target_sbrk): Update.
6908 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6909 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6910 Update.
6911 * go-lang.c (go_main_name): Update.
6912 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6913 (hppa_hpux_find_import_stub_for_addr): Update.
6914 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6915 Update. Change return type.
6916 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6917 type.
6918 * jit.c (jit_breakpoint_re_set_internal): Update.
6919 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6920 Update.
6921 * linux-nat.c (get_signo): Update.
6922 * linux-thread-db.c (inferior_has_bug): Update
6923 * m32c-tdep.c (m32c_return_value)
6924 (m32c_m16c_address_to_pointer): Update.
6925 * m32r-tdep.c (m32r_frame_this_id): Update.
6926 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6927 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6928 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6929 lookup_minimal_symbol. Change return type.
6930 (lookup_minimal_symbol): Remove.
6931 (lookup_bound_minimal_symbol): Update.
6932 (lookup_minimal_symbol_text): Change return type.
6933 (lookup_minimal_symbol_solib_trampoline): Change return type.
6934 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6935 (lookup_minimal_symbol_solib_trampoline): Change return type.
6936 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6937 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6938 (value_nsstring, find_imps): Update.
6939 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6940 * p-lang.c (pascal_main_name): Update.
6941 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6942 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6943 * proc-service.c (ps_pglobal_lookup): Update.
6944 * ravenscar-thread.c (get_running_thread_msymbol): Change
6945 return type.
6946 (has_ravenscar_runtime, get_running_thread_id): Update.
6947 * remote.c (remote_check_symbols): Update.
6948 * sol-thread.c (ps_pglobal_lookup): Update.
6949 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6950 * solib-dsbt.c (lm_base): Update.
6951 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6952 Update.
6953 * solib-irix.c (locate_base): Update.
6954 * solib-som.c (som_solib_create_inferior_hook)
6955 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6956 Update.
6957 * solib-spu.c (spu_enable_break): Update.
6958 * solib-svr4.c (elf_locate_base, enable_break): Update.
6959 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6960 (flush_ea_cache): Update.
6961 * stabsread.c (define_symbol): Update.
6962 * symfile.c (simple_read_overlay_table): Update.
6963 * symtab.c (find_pc_sect_line): Update.
6964 * tracepoint.c (scope_info): Update.
6965 * tui-disasm.c (tui_get_begin_asm_address): Update.
6966 * value.c (value_static_field): Update.
6967
40c1a007
TT
69682014-02-26 Tom Tromey <tromey@redhat.com>
6969
6970 * minsyms.c (prim_record_minimal_symbol_full): Use
6971 SET_MSYMBOL_VALUE_ADDRESS.
6972 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6973 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6974 SET_MSYMBOL_VALUE_ADDRESS.
6975 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6976 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6977
efd66ac6
TT
69782014-02-26 Tom Tromey <tromey@redhat.com>
6979
6980 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6981 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6982 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6983 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6984 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6985 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6986 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6987 * ada-lang.c (ada_main_name): Update.
6988 (ada_lookup_simple_minsym): Update.
6989 (ada_make_symbol_completion_list): Update.
6990 (ada_add_standard_exceptions): Update.
6991 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6992 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6993 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6994 * arm-tdep.c (skip_prologue_function): Update.
6995 (arm_skip_stack_protector, arm_skip_stub): Update.
6996 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6997 (arm_wince_skip_main_prologue): Update.
6998 * auxv.c (ld_so_xfer_auxv): Update.
6999 * avr-tdep.c (avr_scan_prologue): Update.
7000 * ax-gdb.c (gen_var_ref): Update.
7001 * block.c (call_site_for_pc): Update.
7002 * blockframe.c (get_pc_function_start): Update.
7003 (find_pc_partial_function_gnu_ifunc): Update.
7004 * breakpoint.c (create_overlay_event_breakpoint): Update.
7005 (create_longjmp_master_breakpoint): Update.
7006 (create_std_terminate_master_breakpoint): Update.
7007 (create_exception_master_breakpoint): Update.
7008 (resolve_sal_pc): Update.
7009 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7010 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7011 Update.
7012 * c-valprint.c (c_val_print): Update.
7013 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7014 * coffread.c (coff_symfile_read): Update.
7015 * common/agent.c (agent_look_up_symbols): Update.
7016 * dbxread.c (find_stab_function_addr): Update.
7017 (end_psymtab): Update.
7018 * dwarf2loc.c (call_site_to_target_addr): Update.
7019 (func_verify_no_selftailcall): Update.
7020 (tailcall_dump): Update.
7021 (call_site_find_chain_1): Update.
7022 (dwarf_expr_reg_to_entry_parameter): Update.
7023 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7024 (elf_gnu_ifunc_resolve_by_got): Update.
7025 * f-valprint.c (info_common_command): Update.
7026 * findvar.c (read_var_value): Update.
7027 * frame.c (get_prev_frame_1): Update.
7028 (inside_main_func): Update.
7029 * frv-tdep.c (frv_skip_main_prologue): Update.
7030 (frv_frame_this_id): Update.
7031 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7032 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7033 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7034 (gnuv3_skip_trampoline): Update.
7035 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7036 (hppa64_hpux_in_solib_call_trampoline): Update.
7037 (hppa_hpux_skip_trampoline_code): Update.
7038 (hppa64_hpux_search_dummy_call_sequence): Update.
7039 (hppa_hpux_find_import_stub_for_addr): Update.
7040 (hppa_hpux_find_dummy_bpaddr): Update.
7041 * hppa-tdep.c (hppa_symbol_address)
7042 (hppa_lookup_stub_minimal_symbol): Update.
7043 * i386-tdep.c (i386_skip_main_prologue): Update.
7044 (i386_pe_skip_trampoline_code): Update.
7045 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7046 * infcall.c (get_function_name): Update.
7047 * infcmd.c (until_next_command): Update.
7048 * jit.c (jit_breakpoint_re_set_internal): Update.
7049 (jit_inferior_init): Update.
7050 * linespec.c (minsym_found): Update.
7051 (add_minsym): Update.
7052 * linux-fork.c (info_checkpoints_command): Update.
7053 * linux-nat.c (get_signo): Update.
7054 * linux-thread-db.c (inferior_has_bug): Update.
7055 * m32c-tdep.c (m32c_return_value): Update.
7056 (m32c_m16c_address_to_pointer): Update.
7057 (m32c_m16c_pointer_to_address): Update.
7058 * m32r-tdep.c (m32r_frame_this_id): Update.
7059 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7060 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7061 * maint.c (maintenance_translate_address): Update.
7062 * minsyms.c (add_minsym_to_hash_table): Update.
7063 (add_minsym_to_demangled_hash_table): Update.
7064 (msymbol_objfile): Update.
7065 (lookup_minimal_symbol): Update.
7066 (iterate_over_minimal_symbols): Update.
7067 (lookup_minimal_symbol_text): Update.
7068 (lookup_minimal_symbol_by_pc_name): Update.
7069 (lookup_minimal_symbol_solib_trampoline): Update.
7070 (lookup_minimal_symbol_by_pc_section_1): Update.
7071 (lookup_minimal_symbol_and_objfile): Update.
7072 (prim_record_minimal_symbol_full): Update.
7073 (compare_minimal_symbols): Update.
7074 (compact_minimal_symbols): Update.
7075 (build_minimal_symbol_hash_tables): Update.
7076 (install_minimal_symbols): Update.
7077 (terminate_minimal_symbol_table): Update.
7078 (find_solib_trampoline_target): Update.
7079 (minimal_symbol_upper_bound): Update.
7080 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7081 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7082 (mips_skip_pic_trampoline_code): Update.
7083 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7084 * objc-lang.c (selectors_info): Update.
7085 (classes_info): Update.
7086 (find_methods): Update.
7087 (find_imps): Update.
7088 (find_objc_msgsend): Update.
7089 * objfiles.c (objfile_relocate1): Update.
7090 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7091 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7092 * p-valprint.c (pascal_val_print): Update.
7093 * parse.c (write_exp_msymbol): Update.
7094 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7095 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7096 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7097 * printcmd.c (build_address_symbolic): Update.
7098 (sym_info): Update.
7099 (address_info): Update.
7100 * proc-service.c (ps_pglobal_lookup): Update.
7101 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7102 (find_pc_sect_psymtab): Update.
7103 * python/py-framefilter.c (py_print_frame): Update.
7104 * ravenscar-thread.c (get_running_thread_id): Update.
7105 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7106 Update.
7107 * remote.c (remote_check_symbols): Update.
7108 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7109 (rs6000_skip_trampoline_code): Update.
7110 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7111 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7112 * solib-dsbt.c (lm_base): Update.
7113 * solib-frv.c (lm_base): Update.
7114 (main_got): Update.
7115 * solib-irix.c (locate_base): Update.
7116 * solib-som.c (som_solib_create_inferior_hook): Update.
7117 (som_solib_desire_dynamic_linker_symbols): Update.
7118 (link_map_start): Update.
7119 * solib-spu.c (spu_enable_break): Update.
7120 (ocl_enable_break): Update.
7121 * solib-svr4.c (elf_locate_base): Update.
7122 (enable_break): Update.
7123 * spu-tdep.c (spu_get_overlay_table): Update.
7124 (spu_catch_start): Update.
7125 (flush_ea_cache): Update.
7126 * stabsread.c (define_symbol): Update.
7127 (scan_file_globals): Update.
7128 * stack.c (find_frame_funname): Update.
7129 (frame_info): Update.
7130 * symfile.c (simple_read_overlay_table): Update.
7131 (simple_overlay_update): Update.
7132 * symmisc.c (dump_msymbols): Update.
7133 * symtab.c (fixup_section): Update.
7134 (find_pc_sect_line): Update.
7135 (skip_prologue_sal): Update.
7136 (search_symbols): Update.
7137 (print_msymbol_info): Update.
7138 (rbreak_command): Update.
7139 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7140 (completion_list_objc_symbol): Update.
7141 (default_make_symbol_completion_list_break_on): Update.
7142 * tracepoint.c (scope_info): Update.
7143 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7144 (tui_get_begin_asm_address): Update.
7145 * valops.c (find_function_in_inferior): Update.
7146 * value.c (value_static_field): Update.
7147 (value_fn_field): Update.
7148
50e65b17
TT
71492014-02-26 Tom Tromey <tromey@redhat.com>
7150
7151 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7152 bound minimal symbols. Move code that knows about minsym
7153 table layout...
7154 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7155 function.
7156 * minsyms.h (minimal_symbol_upper_bound): Declare.
7157 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7158 minimal_symbol_upper_bound.
7159
1b588015
JB
71602014-02-27 Joel Brobecker <brobecker@adacore.com>
7161
7162 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7163 Use the type's name if its basic type does not have a tag.
7164
dbb9c2b1
JB
71652014-02-27 Joel Brobecker <brobecker@adacore.com>
7166
7167 * dwarf2read.c (read_subrange_type): Add comment.
7168
55426c9d
JB
71692014-02-27 Joel Brobecker <brobecker@adacore.com>
7170
7171 * dwarf2read.c (update_enumeration_type_from_children): New
7172 function, mostly extracted from process_structure_scope.
7173 (read_enumeration_type): Call update_enumeration_type_from_children.
7174 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7175 and flag_flag_enum fields.
7176
f2fce0ca
PA
71772014-02-26 Pedro Alves <palves@redhat.com>
7178
7179 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7180 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7181 to_xfer_partial method.
7182
7a44e40e
PA
71832014-02-26 Pedro Alves <palves@redhat.com>
7184
7185 * target.c (complete_target_initialization): Don't install
7186 default_xfer_partial as to_xfer_partial hook.
7187 (nomemory): Delete.
7188 (update_current_target): Don't INHERIT nor de_fault
7189 deprecated_xfer_memory. Delete de_fault macro.
7190 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7191 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7192 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7193 field.
7194
bd265cd0
PA
71952014-02-26 Pedro Alves <palves@redhat.com>
7196
7197 * go32-nat.c (my_write_child): New function.
7198 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7199 (go32_xfer_partial): New function.
7200 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7201 Instead install a to_xfer_partial hook.
7202
9d46c4e5
PA
72032014-02-26 Pedro Alves <palves@redhat.com>
7204
7205 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7206 to_xfer_partial helper. Rewrite.
7207 (procfs_xfer_partial): New function.
7208 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7209 Install a to_xfer_partial hook.
7210
a1583b1f
PA
72112014-02-26 Pedro Alves <palves@redhat.com>
7212
7213 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7214 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7215 (m32r_xfer_partial): New function.
7216 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7217 Install a to_xfer_partial hook.
7218
6df1b29f
PA
72192014-02-26 Pedro Alves <palves@redhat.com>
7220
7221 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7222 helper.
7223 (mips_xfer_partial): New function.
7224 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7225 hook. Install a to_xfer_partial hook.
7226
dc53a7ad
JB
72272014-02-26 Joel Brobecker <brobecker@adacore.com>
7228
7229 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7230 * gdbtypes.c (create_array_type_with_stride): New function,
7231 renaming create_array_type, but with an added parameter
7232 called "bit_stride".
7233 (create_array_type): Re-implement using
7234 create_array_type_with_stride.
7235 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7236 and DW_AT_bit_stride attributes.
7237
12ab52e9
PA
72382014-02-26 Pedro Alves <palves@redhat.com>
7239
7240 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7241 task-specific breakpoints.
7242
d16461ae
PA
72432014-02-25 Pedro Alves <palves@redhat.com>
7244
7245 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7246 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7247
a8b16220
SS
72482014-02-25 Stan Shebs <stan@codesourcery.com>
7249
7250 * defs.h: Annotate comments for Doxygen.
7251
b9e795ee
TT
72522014-02-25 Tom Tromey <tromey@redhat.com>
7253
7254 * target.h (target_ignore): Don't declare.
7255 * target.c (target_ignore): Remove.
7256
849c862e
JK
72572014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7258
7259 PR gdb/16626
7260 * auto-load.c (auto_load_objfile_script_1): Change filename to
7261 debugfile.
7262
475109d8
JB
72632014-02-25 Joel Brobecker <brobecker@adacore.com>
7264
7265 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7266 documentation. Adjust prototype to match the target_ops
7267 to_xfer_partial method. Adjust implementation accordingly.
7268
e186c3bd
HZ
72692014-02-25 Hui Zhu <hui@codesourcery.com>
7270
7271 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7272 to_traceframe_info.
7273
6d451942
KB
72742014-02-25 Kevin Buettner <kevinb@redhat.com>
7275
041ab8b4 7276 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
7277 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7278 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7279 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7280 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7281 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7282 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7283 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7284 New constants.
7285 (rl78_register_type): Use a data pointer type for SP and
7286 new pseudo registers mentioned above. Use a 16 bit integer
7287 type for all other register pairs.
7288 (rl78_register_name, rl78_g10_register_name): Update for
7289 new pseudo registers.
7290 (rl78_pseudo_register_read): Likewise.
7291 (rl78_pseudo_register_write): Likewise.
7292 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7293 to the newly added pseudo registers.
7294
eddf0bae
DE
72952014-02-24 Doug Evans <dje@google.com>
7296
7297 * value.c (record_latest_value): Fix comment.
7298 * printcmd.c (print_command_1): Remove code to handle -1 return from
7299 record_latest_value.
7300
e96027e0
PA
73012014-02-24 Pedro Alves <palves@redhat.com>
7302
7303 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7304 deprecated_xfer_memory hook.
7305 (procfs_xfer_partial): Call procfs_xfer_memory instead
7306 of the deprecated_xfer_memory target hook.
7307 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7308 helper.
7309
0837c976
YZ
73102014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7311
7312 * windows-nat.c (windows_xfer_shared_libraries): Return
7313 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7314 requested object is TARGET_OBJECT_LIBRARIES.
7315
bc113b4e
YQ
73162014-02-24 Yao Qi <yao@codesourcery.com>
7317
7318 * target.h (enum target_xfer_status)
7319 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7320 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7321 explicitly. New.
7322 * corefile.c (memory_error_message): User updated.
7323 * exec.c (section_table_read_available_memory): Likewise.
7324 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7325 * target.c (target_xfer_status_to_string): Likewise.
7326 (raw_memory_xfer_partial): Likewise.
7327 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7328 * valops.c (read_value_memory): Likewise.
7329 * exec.h: Update comments.
7330
01cb8804
YQ
73312014-02-24 Yao Qi <yao@codesourcery.com>
7332
7333 * target.c (target_xfer_status_to_string): Rename argument err
7334 to status.
7335 * target.h (target_xfer_status_to_string): Update declaration.
7336 Replace target_xfer_error_to_string with
7337 target_xfer_status_to_string in comment.
7338
93063aa6
YQ
73392014-02-24 Yao Qi <yao@codesourcery.com>
7340
7341 * mips-linux-nat.c (super_close): Update its type.
7342 (mips_linux_close): Pass 'self' to super_close.
7343
5c328c05
YQ
73442014-02-24 Yao Qi <yao@codesourcery.com>
7345
7346 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7347 * corefile.c (read_memory): Adjusted.
7348 * target.c (target_write_with_progress): Adjusted.
7349
f73023dd
YQ
73502014-02-23 Yao Qi <yao@codesourcery.com>
7351
7352 Revert two patches:
7353
7354 2013-10-25 Yao Qi <yao@codesourcery.com>
7355
7356 * remote.c (remote_traceframe_info): Return early if
7357 traceframe is not selected.
7358
7359 2013-07-19 Yao Qi <yao@codesourcery.com>
7360
7361 * target.c (update_current_target): Change the default action
7362 of 'to_traceframe_info' from tcomplain to return_zero.
7363 * target.h (struct target_ops) <to_traceframe_info>: Add more
7364 comments.
7365
5a2eb0ef
YQ
73662014-02-23 Yao Qi <yao@codesourcery.com>
7367
7368 * valops.c (read_value_memory): Rewrite it. Call
7369 target_xfer_partial in a loop.
7370 * exec.h (section_table_available_memory): Remove declaration.
7371 Move comments to ...
7372 * exec.c (section_table_available_memory): ... here. Make it
7373 static.
7374
1ee79381
YQ
73752014-02-23 Yao Qi <yao@codesourcery.com>
7376
7377 * exec.c (section_table_read_available_memory): New function.
7378 * exec.h (section_table_read_available_memory): Declare.
7379 * ctf.c (ctf_xfer_partial): Call
7380 section_table_read_available_memory.
7381 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7382
1ca49d37
YQ
73832014-02-23 Yao Qi <yao@codesourcery.com>
7384
7385 * ctf.c (ctf_xfer_partial): Move code to ...
7386 * exec.c (exec_read_partial_read_only): ... it. New function.
7387 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7388 * tracefile.c: Include "exec.h".
7389 * exec.h (exec_read_partial_read_only): Declare.
7390
a283690e
YQ
73912014-02-23 Yao Qi <yao@codesourcery.com>
7392
7393 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7394 (tfile_has_memory): Remove.
7395 (init_tfile_ops): Don't set fields to_has_all_memory and
7396 to_has_memory of tfile_ops.
7397 * tracefile.c (tracefile_has_all_memory): New function.
7398 (tracefile_has_memory): New function.
7399 (init_tracefile_ops): Initialize fields to_has_all_memory and
7400 to_has_memory of 'ops'.
7401
12e03cd0
YQ
74022014-02-23 Yao Qi <yao@codesourcery.com>
7403
7404 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7405 (ctf_thread_alive, ctf_get_trace_status): Remove.
7406 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7407 init_tracefile_ops.
7408 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7409 (tfile_has_stack, tfile_has_registers): Remove.
7410 (tfile_thread_alive): Remove.
7411 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7412 init_tracefile_ops.
7413 * tracefile.c (tracefile_has_stack): New function.
7414 (tracefile_has_registers): New function.
7415 (tracefile_thread_alive): New function.
7416 (tracefile_get_trace_status): New function.
7417 (init_tracefile_ops): New function.
7418 * tracefile.h (init_tracefile_ops): Declare.
7419
11395323
YQ
74202014-02-23 Yao Qi <yao@codesourcery.com>
7421
7422 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7423 (O_LARGEFILE): Likewise.
7424 (tfile_ops): Likewise.
7425 (TRACE_HEADER_SIZE): Likewise.
7426 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7427 (cur_data_size): Likewise.
7428 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7429 (tfile_close, tfile_files_info): Likewise.
7430 (tfile_get_trace_status): Likewise.
7431 (tfile_get_tracepoint_status): Likewise.
7432 (tfile_get_traceframe_address): Likewise.
7433 (tfile_trace_find, match_blocktype): Likewise.
7434 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7435 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7436 (tfile_get_trace_state_variable_value): Likewise.
7437 (tfile_has_all_memory, tfile_has_memory): Likewise.
7438 (tfile_has_stack, tfile_has_registers): Likewise.
7439 (tfile_thread_alive, build_traceframe_info): Likewise.
7440 (tfile_traceframe_info, init_tfile_ops): Likewise.
7441 (_initialize_tracepoint): Don't call init_tfile_ops
7442 and add_target_with_completer.
7443 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7444 exec.h, completer.h and filenames.h.
7445 (_initialize_tracefile_tfile): New function.
7446
7951c4eb
YQ
74472014-02-23 Yao Qi <yao@codesourcery.com>
7448
7449 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7450 tracefile-tfile.o.
7451 (HFILES_NO_SRCDIR): Add tracefile.h.
7452 * ctf.c: Include "tracefile.h".
7453 * tracefile.h: New file.
7454 * tracefile.c: New file
7455 * tracefile-tfile.c: New file.
7456 * tracepoint.c: Include "tracefile.h".
7457 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7458 (stop_reason_names): Add const.
7459 (trace_file_writer_xfree): Move it to tracefile.c.
7460 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7461 (trace_save_ctf): Likewise.
7462 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7463 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7464 (tfile_write_header, tfile_write_regblock_type): Likewise.
7465 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7466 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7467 (tfile_write_raw_data, tfile_end): Likewise.
7468 (tfile_trace_file_writer_new): Likewise.
7469 (free_uploaded_tp): Make it extern.
7470 (free_uploaded_tsv): Make it extern.
7471 (_initialize_tracepoint): Move code to register command 'tsave'
7472 to tracefile.c.
7473 * tracepoint.h (stop_reason_names): Declare.
7474 (struct trace_frame_write_ops): Move it to tracefile.h.
7475 (struct trace_file_write_ops): Likewise.
7476 (struct trace_file_writer): Likewise.
7477 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7478
184cd072
JK
74792014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7480
7481 PR gdb/16594
7482 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7483 process name.
7484 (get_cores_used_by_process): New parameter num_cores, use it.
7485 (linux_xfer_osdata_processes): Pass num_cores to it.
7486 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7487 process name.
7488
c63528fc
AK
74892014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7490
7491 * target.c (memory_xfer_partial): Fix length arg in call to
7492 breakpoint_xfer_memory.
7493
d7b30f67
SDJ
74942014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7495
7496 PR tdep/16397
7497 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7498 number comes after the + or - signs. Adjust length of register
7499 name to be extracted.
7500
8838afaf
TT
75012014-02-20 Tom Tromey <tromey@redhat.com>
7502
7503 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7504 (ada_varobj_ops): Mark "extern".
7505
05227d14
TT
75062014-02-20 Tom Tromey <tromey@redhat.com>
7507
7508 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7509
1254eefc
DE
75102014-02-20 Doug Evans <xdje42@gmail.com>
7511
7512 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7513 All callers updated.
7514 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7515 All callers updated.
7516 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7517 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7518
adde2bff
DE
75192014-02-20 lin zuojian <manjian2006@gmail.com>
7520 Joel Brobecker <brobecker@adacore.com>
7521 Doug Evans <xdje42@gmail.com>
7522
7523 PR symtab/16581
7524 * dwarf2read.c (struct die_info): New member in_process.
7525 (reset_die_in_process): New function.
7526 (process_die): Set it at the start, reset when returning.
7527 (inherit_abstract_dies): Only call process_die if origin_child_die
7528 not already being processed.
7529
3be75f87
JB
75302014-02-20 Joel Brobecker <brobecker@adacore.com>
7531
7532 * windows-nat.c (handle_unload_dll): Add function documentation.
7533 (do_initial_windows_stuff): Add comment explaining why we wait
7534 until after inferior initialization has finished before
7535 processing all DLLs.
7536
47f7ffdb
JB
75372014-02-20 Joel Brobecker <brobecker@adacore.com>
7538
7539 * windows-nat.c (get_module_name): Delete.
7540 (windows_get_exec_module_filename): New function, mostly
7541 inspired from get_module_name.
7542 (windows_pid_to_exec_file): Replace call to get_module_name
7543 by call to windows_get_exec_module_filename.
7544
1cd9feab
JB
75452014-02-20 Joel Brobecker <brobecker@adacore.com>
7546
7547 * windows-nat.c (handle_load_dll): Rewrite this function's
7548 introductory comment. Remove code using get_module_name
7549 to get the DLL's name.
7550
ea39ad35
JB
75512014-02-20 Joel Brobecker <brobecker@adacore.com>
7552
7553 * windows-nat.c (get_windows_debug_event): Ignore
7554 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7555 if windows_initialization_done == 0.
7556 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7557 Adjust implementation to always load all DLLs.
7558 (do_initial_windows_stuff): Replace call to
7559 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7560
95060284
JB
75612014-02-20 Joel Brobecker <brobecker@adacore.com>
7562
7563 * windows-nat.c (_initialize_windows_nat): Deprecate the
7564 "dll-symbols" command. Turn the "add-shared-symbol-files"
7565 and "assf" aliases into commands, and deprecate them as well.
7566 * NEWS: Add entry explaining that "dll-symbols" and its two
7567 aliases are now deprecated.
7568
8d4fdb12
JB
75692014-02-20 Joel Brobecker <brobecker@adacore.com>
7570
7571 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7572 new-line in debug string. Remove trailing spaces.
7573
1b281443
SS
75742014-02-19 Stan Shebs <stan@codesourcery.com>
7575
7576 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7577
f7bd0f78
SC
75782014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7579
7580 * NEWS: Add entry for the new feature
7581 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7582 and class values.
7583
399ebc3d
SS
75842014-02-19 Stan Shebs <stan@codesourcery.com>
7585
7586 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7587
c658158d
PA
75882014-02-19 Pedro Alves <palves@redhat.com>
7589
7590 * common/ptid.h (struct ptid): Mention that process_stratum
7591 targets should prefer ptid.lwp.
7592
ba348170
PA
75932014-02-19 Pedro Alves <palves@redhat.com>
7594
7595 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7596 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7597 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7598 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7599 store remote thread ids rather than ptid.tid.
7600 (_initialize_remote): Adjust.
7601
ac01945b
TT
76022014-02-19 Tom Tromey <tromey@redhat.com>
7603
7604 * target.c (target_get_unwinder): Rewrite.
7605 (target_get_tailcall_unwinder): Rewrite.
7606 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7607 (record_btrace_to_get_tailcall_unwinder): New function.
7608 (init_record_btrace_ops): Update.
7609 * target.h (struct target_ops) <to_get_unwinder,
7610 to_get_tailcall_unwinder>: Now function pointers. Use
7611 TARGET_DEFAULT_RETURN.
7612
8476dc92
TT
76132014-02-19 Tom Tromey <tromey@redhat.com>
7614
7615 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7616 argument.
7617 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7618
c0eca49f
TT
76192014-02-19 Tom Tromey <tromey@redhat.com>
7620
7621 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7622 directly.
7623 * target-delegates.c: Rebuild.
7624 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7625 TARGET_DEFAULT_FUNC.
7626 * target.c (default_target_decr_pc_after_break): Rename from
7627 forward_target_decr_pc_after_break. Simplify.
7628 (target_decr_pc_after_break): Rely on delegation.
7629
596b6b39
TT
76302014-02-19 Tom Tromey <tromey@redhat.com>
7631
7632 * target.c (update_current_target): Do not INHERIT to_doc or
7633 to_magic. Do not de_fault to_open or to_close.
7634
b427c1bc
TT
76352014-02-19 Tom Tromey <tromey@redhat.com>
7636
7637 * gcore.h (objfile_find_memory_regions): Declare.
7638 * gcore.c (objfile_find_memory_regions): No longer static. Add
7639 "self" argument.
7640 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7641 * exec.c: Include gcore.h.
7642 (exec_set_find_memory_regions): Remove.
7643 (exec_find_memory_regions): Remove.
7644 (exec_do_find_memory_regions): Remove.
7645 (init_exec_ops): Update.
7646 * defs.h (exec_set_find_memory_regions): Remove.
7647
9b144037
TT
76482014-02-19 Tom Tromey <tromey@redhat.com>
7649
7650 * target-delegates.c: Rebuild.
7651 * target.h (struct target_ops) <to_extra_thread_info,
7652 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7653 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7654 not 0, in TARGET_DEFAULT_RETURN.
7655
555bbdeb
TT
76562014-02-19 Tom Tromey <tromey@redhat.com>
7657
7658 * target.c (complete_target_initialization): Remove casts. Use
7659 return_zero_has_execution.
7660 (return_zero): Add "ignore" argument.
7661 (return_zero_has_execution): New function.
7662 (init_dummy_target): Remove casts. Use
7663 return_zero_has_execution.
7664
be4ddd36
TT
76652014-02-19 Tom Tromey <tromey@redhat.com>
7666
7667 * target.c (update_current_target): Update comments. Do not
7668 INHERIT to_stratum.
7669
2117c711
TT
76702014-02-19 Tom Tromey <tromey@redhat.com>
7671
7672 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7673 needed.
7674 * corelow.c (core_read_description): Delegate when needed.
7675 * remote.c (remote_read_description): Delegate when needed.
7676 * target-delegates.c: Rebuild.
7677 * target.c (target_read_description): Rewrite.
7678 * target.h (struct target_ops) <to_read_description>: Update
7679 comment. Use TARGET_DEFAULT_RETURN.
7680
e88ef65c
TT
76812014-02-19 Tom Tromey <tromey@redhat.com>
7682
7683 * target-delegates.c: Rebuild.
7684 * target.c (update_current_target): Don't inherit or default
7685 to_can_run.
7686 (find_default_run_target): Check against delegate_can_run.
7687 * target.h (struct target_ops) <to_can_run>: Use
7688 TARGET_DEFAULT_RETURN.
7689
86a0854a
TT
76902014-02-19 Tom Tromey <tromey@redhat.com>
7691
7692 * target-delegates.c: Rebuild.
7693 * target.c (target_disconnect): Unconditionally delegate.
7694 * target.h (struct target_ops) <to_disconnect>: Use
7695 TARGET_DEFAULT_NORETURN.
7696
ee97f592
TT
76972014-02-19 Tom Tromey <tromey@redhat.com>
7698
7699 * record.c (record_stop): Unconditionally delegate.
7700 * target-delegates.c: Rebuild.
7701 * target.c (target_stop_recording): Unconditionally delegate.
7702 * target.h (struct target_ops) <to_stop_recording>: Use
7703 TARGET_DEFAULT_IGNORE.
7704
6dc7fcf4
TT
77052014-02-19 Tom Tromey <tromey@redhat.com>
7706
7707 * target-delegates.c: Rebuild.
7708 * target.c (target_enable_btrace): Unconditionally delegate.
7709 * target.h (struct target_ops) <to_enable_btrace>: Use
7710 TARGET_DEFAULT_NORETURN.
7711
eb5b20d4
TT
77122014-02-19 Tom Tromey <tromey@redhat.com>
7713
7714 * target-delegates.c: Rebuild.
7715 * target.c (target_read_btrace): Unconditionally delegate.
7716 * target.h (struct target_ops) <to_read_btrace>: Use
7717 TARGET_DEFAULT_NORETURN.
7718
9ace480d
TT
77192014-02-19 Tom Tromey <tromey@redhat.com>
7720
7721 * target-delegates.c: Rebuild.
7722 * target.c (target_teardown_btrace): Unconditionally delegate.
7723 * target.h (struct target_ops) <to_teardown_btrace>: Use
7724 TARGET_DEFAULT_NORETURN.
7725
8dc292d3
TT
77262014-02-19 Tom Tromey <tromey@redhat.com>
7727
7728 * target-delegates.c: Rebuild.
7729 * target.c (target_disable_btrace): Unconditionally delegate.
7730 * target.h (struct target_ops) <to_disable_btrace>: Use
7731 TARGET_DEFAULT_NORETURN.
7732
58a5184e
TT
77332014-02-19 Tom Tromey <tromey@redhat.com>
7734
7735 * target-delegates.c: Rebuild.
7736 * target.c (default_search_memory): New function.
7737 (simple_search_memory): Update comment.
7738 (target_search_memory): Unconditionally delegate.
7739 * target.h (struct target_ops) <to_search_memory>: Use
7740 TARGET_DEFAULT_FUNC.
7741
8de71aab
TT
77422014-02-19 Tom Tromey <tromey@redhat.com>
7743
7744 * auxv.c (default_auxv_parse): No longer static.
7745 (target_auxv_parse): Unconditionally delegate.
7746 * auxv.h (default_auxv_parse): Declare.
7747 * target-delegates.c: Rebuild.
7748 * target.c: Include auxv.h.
7749 * target.h (struct target_ops) <to_auxv_parse>: Use
7750 TARGET_DEFAULT_FUNC.
7751
6b2c5a57
TT
77522014-02-19 Tom Tromey <tromey@redhat.com>
7753
7754 * target-delegates.c: Rebuild.
7755 * target.c (target_memory_map): Unconditionally delegate.
7756 * target.h (struct target_ops) <to_memory_map>: Use
7757 TARGET_DEFAULT_RETURN.
7758
cbffc065
TT
77592014-02-19 Tom Tromey <tromey@redhat.com>
7760
7761 * target-delegates.c: Rebuild.
7762 * target.c (target_thread_alive): Unconditionally delegate.
7763 * target.h (struct target_ops) <to_thread_alive>: Use
7764 TARGET_DEFAULT_RETURN.
7765
f09e2107
TT
77662014-02-19 Tom Tromey <tromey@redhat.com>
7767
7768 * target-delegates.c: Rebuild.
7769 * target.c (target_save_record): Unconditionally delegate.
7770 * target.h (struct target_ops) <to_save_record>: Use
7771 TARGET_DEFAULT_NORETURN.
7772
07366925
TT
77732014-02-19 Tom Tromey <tromey@redhat.com>
7774
7775 * target-delegates.c: Rebuild.
7776 * target.c (target_delete_record): Unconditionally delegate.
7777 * target.h (struct target_ops) <to_delete_record>: Use
7778 TARGET_DEFAULT_NORETURN.
7779
dd2e9d25
TT
77802014-02-19 Tom Tromey <tromey@redhat.com>
7781
7782 * target-delegates.c: Rebuild.
7783 * target.c (target_record_is_replaying): Unconditionally
7784 delegate.
7785 * target.h (struct target_ops) <to_record_is_replaying>: Use
7786 TARGET_DEFAULT_RETURN.
7787
671e76cc
TT
77882014-02-19 Tom Tromey <tromey@redhat.com>
7789
7790 * target-delegates.c: Rebuild.
7791 * target.c (target_goto_record_begin): Unconditionally delegate.
7792 * target.h (struct target_ops) <to_goto_record_begin>: Use
7793 TARGET_DEFAULT_NORETURN.
7794
e9179bb3
TT
77952014-02-19 Tom Tromey <tromey@redhat.com>
7796
7797 * target-delegates.c: Rebuild.
7798 * target.c (target_goto_record_end): Unconditionally delegate.
7799 * target.h (struct target_ops) <to_goto_record_end>: Use
7800 TARGET_DEFAULT_NORETURN.
7801
05969c84
TT
78022014-02-19 Tom Tromey <tromey@redhat.com>
7803
7804 * target-delegates.c: Rebuild.
7805 * target.c (target_goto_record): Unconditionally delegate.
7806 * target.h (struct target_ops) <to_goto_record>: Use
7807 TARGET_DEFAULT_NORETURN.
7808
3679abfa
TT
78092014-02-19 Tom Tromey <tromey@redhat.com>
7810
7811 * target-delegates.c: Rebuild.
7812 * target.c (target_insn_history): Unconditionally delegate.
7813 * target.h (struct target_ops) <to_insn_history>: Use
7814 TARGET_DEFAULT_NORETURN.
7815
8444ab58
TT
78162014-02-19 Tom Tromey <tromey@redhat.com>
7817
7818 * target-delegates.c: Rebuild.
7819 * target.c (target_insn_history_from): Unconditionally delegate.
7820 * target.h (struct target_ops) <to_insn_history_from>: Use
7821 TARGET_DEFAULT_NORETURN.
7822
c29302cc
TT
78232014-02-19 Tom Tromey <tromey@redhat.com>
7824
7825 * target-delegates.c: Rebuild.
7826 * target.c (target_insn_history_range): Unconditionally delegate.
7827 * target.h (struct target_ops) <to_insn_history_range>: Use
7828 TARGET_DEFAULT_NORETURN.
7829
170049d4
TT
78302014-02-19 Tom Tromey <tromey@redhat.com>
7831
7832 * target-delegates.c: Rebuild.
7833 * target.c (target_call_history): Unconditionally delegate.
7834 * target.h (struct target_ops) <to_call_history>: Use
7835 TARGET_DEFAULT_NORETURN.
7836
16fc27d6
TT
78372014-02-19 Tom Tromey <tromey@redhat.com>
7838
7839 * target-delegates.c: Rebuild.
7840 * target.c (target_call_history_from): Unconditionally delegate.
7841 * target.h (struct target_ops) <to_call_history_from>: Use
7842 TARGET_DEFAULT_NORETURN.
7843
115d9817
TT
78442014-02-19 Tom Tromey <tromey@redhat.com>
7845
7846 * target-delegates.c: Rebuild.
7847 * target.c (target_call_history_range): Unconditionally delegate.
7848 * target.h (struct target_ops) <to_call_history_range>: Use
7849 TARGET_DEFAULT_NORETURN.
7850
eb276a6b
TT
78512014-02-19 Tom Tromey <tromey@redhat.com>
7852
7853 * target-delegates.c: Rebuild.
7854 * target.c (target_verify_memory): Unconditionally delegate.
7855 * target.h (struct target_ops) <to_verify_memory>: Use
7856 TARGET_DEFAULT_NORETURN.
7857
9e538d0d
TT
78582014-02-19 Tom Tromey <tromey@redhat.com>
7859
7860 * target-delegates.c: Rebuild.
7861 * target.c (target_core_of_thread): Unconditionally delegate.
7862 * target.h (struct target_ops) <to_core_of_thread>: Use
7863 TARGET_DEFAULT_RETURN.
7864
f6fb2925
TT
78652014-02-19 Tom Tromey <tromey@redhat.com>
7866
7867 * target-delegates.c: Rebuild.
7868 * target.c (target_flash_done): Unconditionally delegate.
7869 * target.h (struct target_ops) <to_flash_done>: Use
7870 TARGET_DEFAULT_NORETURN.
7871
e8a6c6ac
TT
78722014-02-19 Tom Tromey <tromey@redhat.com>
7873
7874 * target-delegates.c: Rebuild.
7875 * target.c (target_flash_erase): Unconditionally delegate.
7876 * target.h (struct target_ops) <to_flash_erase>: Use
7877 TARGET_DEFAULT_NORETURN.
7878
7e35c012
TT
78792014-02-19 Tom Tromey <tromey@redhat.com>
7880
7881 * target-delegates.c: Rebuild.
7882 * target.c (target_get_section_table): Unconditionally delegate.
7883 * target.h (struct target_ops) <to_get_section_table>: Use
7884 TARGET_DEFAULT_RETURN.
7885
770234d3
TT
78862014-02-19 Tom Tromey <tromey@redhat.com>
7887
7888 * target-delegates.c: Rebuild.
7889 * target.c (target_pid_to_str): Unconditionally delegate.
7890 (init_dummy_target): Don't initialize to_pid_to_str.
7891 (default_pid_to_str): Rename from dummy_pid_to_str.
7892 * target.h (struct target_ops) <to_pid_to_str>: Use
7893 TARGET_DEFAULT_FUNC.
7894
09b0dc2b
TT
78952014-02-19 Tom Tromey <tromey@redhat.com>
7896
7897 * target-delegates.c: Rebuild.
7898 * target.c (target_find_new_threads): Unconditionally delegate.
7899 * target.h (struct target_ops) <to_find_new_threads>: Use
7900 TARGET_DEFAULT_RETURN.
7901
7d4f8efa
TT
79022014-02-19 Tom Tromey <tromey@redhat.com>
7903
7904 * target-delegates.c: Rebuild.
7905 * target.c (target_program_signals): Unconditionally delegate.
7906 * target.h (struct target_ops) <to_program_signals>: Use
7907 TARGET_DEFAULT_IGNORE.
7908
035cad7f
TT
79092014-02-19 Tom Tromey <tromey@redhat.com>
7910
7911 * target-delegates.c: Rebuild.
7912 * target.c (target_pass_signals): Unconditionally delegate.
7913 * target.h (struct target_ops) <to_pass_signals>: Use
7914 TARGET_DEFAULT_IGNORE.
7915
8d657035
TT
79162014-02-19 Tom Tromey <tromey@redhat.com>
7917
7918 * target-delegates.c: Rebuild.
7919 * target.c (default_mourn_inferior): New function.
7920 (target_mourn_inferior): Unconditionally delegate.
7921 * target.h (struct target_ops) <to_mourn_inferior>: Use
7922 TARGET_DEFAULT_FUNC.
7923
098dba18
TT
79242014-02-19 Tom Tromey <tromey@redhat.com>
7925
7926 * target-delegates.c: Rebuild.
7927 * target.c (default_follow_fork): New function.
7928 (target_follow_fork): Unconditionally delegate.
7929 * target.h (struct target_ops) <to_follow_fork>: Use
7930 TARGET_DEFAULT_FUNC.
7931
423a4807
TT
79322014-02-19 Tom Tromey <tromey@redhat.com>
7933
7934 * target-delegates.c: Rebuild.
7935 * target.c (target_kill): Unconditionally delegate.
7936 * target.h (struct target_ops) <to_kill>: Use
7937 TARGET_DEFAULT_NORETURN.
7938
6c7e5e5c
TT
79392014-02-19 Tom Tromey <tromey@redhat.com>
7940
7941 * target-delegates.c: Rebuild.
7942 * target.c (target_masked_watch_num_registers): Unconditionally
7943 delegate.
7944 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7945 Use TARGET_DEFAULT_RETURN.
7946
8b1c364c
TT
79472014-02-19 Tom Tromey <tromey@redhat.com>
7948
7949 * target-delegates.c: Rebuild.
7950 * target.c (target_remove_mask_watchpoint): Unconditionally
7951 delegate.
7952 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7953 TARGET_DEFAULT_RETURN.
7954
cd4ae029
TT
79552014-02-19 Tom Tromey <tromey@redhat.com>
7956
7957 * target-delegates.c: Rebuild.
7958 * target.c (target_insert_mask_watchpoint): Unconditionally
7959 delegate.
7960 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7961 TARGET_DEFAULT_RETURN.
7962
a134316b
TT
79632014-02-19 Tom Tromey <tromey@redhat.com>
7964
7965 * target-delegates.c: Rebuild.
7966 * target.c (target_ranged_break_num_registers): Unconditionally
7967 delegate.
7968 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7969 Use TARGET_DEFAULT_RETURN.
7970
ad5989bd
TT
79712014-02-19 Tom Tromey <tromey@redhat.com>
7972
7973 * target-delegates.c: Rebuild.
7974 * target.c (target_fetch_registers): Unconditionally delegate.
7975 * target.h (struct target_ops) <to_fetch_registers>: Use
7976 TARGET_DEFAULT_NORETURN.
7977
46ee7e8d
TT
79782014-02-19 Tom Tromey <tromey@redhat.com>
7979
7980 * target-delegates.c: Rebuild.
7981 * target.c (update_current_target): Don't inherit or default
7982 to_stop.
7983 * target.h (struct target_ops) <to_stop>: Use
7984 TARGET_DEFAULT_IGNORE.
7985
843f59ed
TT
79862014-02-19 Tom Tromey <tromey@redhat.com>
7987
7988 * target-delegates.c: Rebuild.
7989 * target.c (update_current_target): Don't inherit or default
7990 to_can_run_breakpoint_commands.
7991 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7992 Use TARGET_DEFAULT_RETURN.
7993
ccfde2a0
TT
79942014-02-19 Tom Tromey <tromey@redhat.com>
7995
7996 * target-delegates.c: Rebuild.
7997 * target.c (update_current_target): Don't inherit or default
7998 to_supports_evaluation_of_breakpoint_conditions.
7999 * target.h (struct target_ops)
8000 <to_supports_evaluation_of_breakpoint_conditions>: Use
8001 TARGET_DEFAULT_RETURN.
8002
0de91722
TT
80032014-02-19 Tom Tromey <tromey@redhat.com>
8004
8005 * target-delegates.c: Rebuild.
8006 * target.c (update_current_target): Don't inherit or default
8007 to_augmented_libraries_svr4_read.
8008 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8009 Use TARGET_DEFAULT_RETURN.
8010
9a7d8b48
TT
80112014-02-19 Tom Tromey <tromey@redhat.com>
8012
8013 * target-delegates.c: Rebuild.
8014 * target.c (update_current_target): Don't inherit or default
8015 to_can_use_agent.
8016 * target.h (struct target_ops) <to_can_use_agent>: Use
8017 TARGET_DEFAULT_RETURN.
8018
d9db5b21
TT
80192014-02-19 Tom Tromey <tromey@redhat.com>
8020
8021 * target-delegates.c: Rebuild.
8022 * target.c (update_current_target): Don't inherit or default
8023 to_use_agent.
8024 * target.h (struct target_ops) <to_use_agent>: Use
8025 TARGET_DEFAULT_NORETURN.
8026
92155eeb
TT
80272014-02-19 Tom Tromey <tromey@redhat.com>
8028
8029 * target-delegates.c: Rebuild.
8030 * target.c (update_current_target): Don't inherit or default
8031 to_traceframe_info.
8032 (return_null): Remove.
8033 * target.h (struct target_ops) <to_traceframe_info>: Use
8034 TARGET_DEFAULT_RETURN.
8035
d6522a22
TT
80362014-02-19 Tom Tromey <tromey@redhat.com>
8037
8038 * target-delegates.c: Rebuild.
8039 * target.c (update_current_target): Don't inherit or default
8040 to_static_tracepoint_markers_by_strid.
8041 * target.h (struct target_ops)
8042 <to_static_tracepoint_markers_by_strid>: Use
8043 TARGET_DEFAULT_NORETURN.
8044
4c3e4425
TT
80452014-02-19 Tom Tromey <tromey@redhat.com>
8046
8047 * target-delegates.c: Rebuild.
8048 * target.c (update_current_target): Don't inherit or default
8049 to_static_tracepoint_marker_at.
8050 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8051 Use TARGET_DEFAULT_RETURN.
8052
dcd6917f
TT
80532014-02-19 Tom Tromey <tromey@redhat.com>
8054
8055 * target-delegates.c: Rebuild.
8056 * target.c (update_current_target): Don't inherit or default
8057 to_set_permissions.
8058 * target.h (struct target_ops) <to_set_permissions>: Use
8059 TARGET_DEFAULT_IGNORE.
8060
22bcceee
TT
80612014-02-19 Tom Tromey <tromey@redhat.com>
8062
8063 * target-delegates.c: Rebuild.
8064 * target.c (update_current_target): Don't inherit or default
8065 to_get_tib_address.
8066 * target.h (struct target_ops) <to_get_tib_address>: Use
8067 TARGET_DEFAULT_NORETURN.
8068
8586ccaa
TT
80692014-02-19 Tom Tromey <tromey@redhat.com>
8070
8071 * target-delegates.c: Rebuild.
8072 * target.c (update_current_target): Don't inherit or default
8073 to_set_trace_notes.
8074 * target.h (struct target_ops) <to_set_trace_notes>: Use
8075 TARGET_DEFAULT_RETURN.
8076
91df8d1d
TT
80772014-02-19 Tom Tromey <tromey@redhat.com>
8078
8079 * target-delegates.c: Rebuild.
8080 * target.c (update_current_target): Don't initialize
8081 to_set_trace_buffer_size.
8082 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8083 TARGET_DEFAULT_IGNORE.
8084
8d526939
TT
80852014-02-19 Tom Tromey <tromey@redhat.com>
8086
8087 * target-delegates.c: Rebuild.
8088 * target.c (update_current_target): Don't inherit or default
8089 to_set_circular_trace_buffer.
8090 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8091 TARGET_DEFAULT_IGNORE.
8092
0bcfeddf
TT
80932014-02-19 Tom Tromey <tromey@redhat.com>
8094
8095 * target-delegates.c: Rebuild.
8096 * target.c (update_current_target): Don't inherit or default
8097 to_set_disconnected_tracing.
8098 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8099 TARGET_DEFAULT_IGNORE.
8100
9249843f
TT
81012014-02-19 Tom Tromey <tromey@redhat.com>
8102
8103 * target-delegates.c: Rebuild.
8104 * target.c (update_current_target): Don't inherit or default
8105 to_get_min_fast_tracepoint_insn_len.
8106 (return_minus_one): Remove.
8107 * target.h (struct target_ops)
8108 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8109
ace92e7d
TT
81102014-02-19 Tom Tromey <tromey@redhat.com>
8111
8112 * target-delegates.c: Rebuild.
8113 * target.c (update_current_target): Don't inherit or default
8114 to_get_raw_trace_data.
8115 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8116 TARGET_DEFAULT_NORETURN.
8117
08120467
TT
81182014-02-19 Tom Tromey <tromey@redhat.com>
8119
8120 * target-delegates.c: Rebuild.
8121 * target.c (update_current_target): Don't inherit or default
8122 to_upload_trace_state_variables.
8123 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8124 Use TARGET_DEFAULT_RETURN.
8125
1e949b00
TT
81262014-02-19 Tom Tromey <tromey@redhat.com>
8127
8128 * target-delegates.c: Rebuild.
8129 * target.c (update_current_target): Don't inherit or default
8130 to_upload_tracepoints.
8131 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8132 TARGET_DEFAULT_RETURN.
8133
a2e6c147
TT
81342014-02-19 Tom Tromey <tromey@redhat.com>
8135
8136 * target-delegates.c: Rebuild.
8137 * target.c (update_current_target): Don't inherit or default
8138 to_save_trace_data.
8139 * target.h (struct target_ops) <to_save_trace_data>: Use
8140 TARGET_DEFAULT_NORETURN.
8141
959bcd0b
TT
81422014-02-19 Tom Tromey <tromey@redhat.com>
8143
8144 * target-delegates.c: Rebuild.
8145 * target.c (update_current_target): Don't inherit or default
8146 to_get_trace_state_variable_value.
8147 * target.h (struct target_ops)
8148 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8149
afc94e66
TT
81502014-02-19 Tom Tromey <tromey@redhat.com>
8151
8152 * target-delegates.c: Rebuild.
8153 * target.c (update_current_target): Don't inherit or default
8154 to_trace_find.
8155 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8156
e51c07ea
TT
81572014-02-19 Tom Tromey <tromey@redhat.com>
8158
8159 * target-delegates.c: Rebuild.
8160 * target.c (update_current_target): Don't inherit or default
8161 to_trace_stop.
8162 * target.h (struct target_ops) <to_trace_stop>: Use
8163 TARGET_DEFAULT_NORETURN.
8164
6fea14cd
TT
81652014-02-19 Tom Tromey <tromey@redhat.com>
8166
8167 * target-delegates.c: Rebuild.
8168 * target.c (update_current_target): Don't inherit or default
8169 to_get_tracepoint_status.
8170 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8171 TARGET_DEFAULT_NORETURN.
8172
4072d4ff
TT
81732014-02-19 Tom Tromey <tromey@redhat.com>
8174
8175 * target-delegates.c: Rebuild.
8176 * target.c (update_current_target): Don't inherit or default
8177 to_get_trace_status.
8178 * target.h (struct target_ops) <to_get_trace_status>: Use
8179 TARGET_DEFAULT_RETURN.
8180
25da2e80
TT
81812014-02-19 Tom Tromey <tromey@redhat.com>
8182
8183 * target-delegates.c: Rebuild.
8184 * target.c (update_current_target): Don't inherit or default
8185 to_trace_start.
8186 * target.h (struct target_ops) <to_trace_start>: Use
8187 TARGET_DEFAULT_NORETURN.
8188
86dd181d
TT
81892014-02-19 Tom Tromey <tromey@redhat.com>
8190
8191 * target-delegates.c: Rebuild.
8192 * target.c (update_current_target): Don't inherit or default
8193 to_trace_set_readonly_regions.
8194 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8195 Use TARGET_DEFAULT_NORETURN.
8196
05c41993
TT
81972014-02-19 Tom Tromey <tromey@redhat.com>
8198
8199 * target-delegates.c: Rebuild.
8200 * target.c (update_current_target): Don't inherit or default
8201 to_disable_tracepoint.
8202 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8203 TARGET_DEFAULT_NORETURN.
8204
151f70f1
TT
82052014-02-19 Tom Tromey <tromey@redhat.com>
8206
8207 * target-delegates.c: Rebuild.
8208 * target.c (update_current_target): Don't inherit or default
8209 to_enable_tracepoint.
8210 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8211 TARGET_DEFAULT_NORETURN.
8212
94eb98b9
TT
82132014-02-19 Tom Tromey <tromey@redhat.com>
8214
8215 * target-delegates.c: Rebuild.
8216 * target.c (update_current_target): Don't inherit or default
8217 to_download_trace_state_variable.
8218 * target.h (struct target_ops) <to_download_trace_state_variable>:
8219 Use TARGET_DEFAULT_NORETURN.
8220
719acc4a
TT
82212014-02-19 Tom Tromey <tromey@redhat.com>
8222
8223 * target-delegates.c: Rebuild.
8224 * target.c (update_current_target): Don't inherit or default
8225 to_can_download_tracepoint.
8226 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8227 TARGET_DEFAULT_RETURN.
8228
9a980a22
TT
82292014-02-19 Tom Tromey <tromey@redhat.com>
8230
8231 * target-delegates.c: Rebuild.
8232 * target.c (update_current_target): Don't inherit or default
8233 to_download_tracepoint.
8234 * target.h (struct target_ops) <to_download_tracepoint>: Use
8235 TARGET_DEFAULT_NORETURN.
8236
5536135b
TT
82372014-02-19 Tom Tromey <tromey@redhat.com>
8238
8239 * target-delegates.c: Rebuild.
8240 * target.c (update_current_target): Don't inherit or default
8241 to_trace_init.
8242 * target.h (struct target_ops) <to_trace_init>: Use
8243 TARGET_DEFAULT_RETURN.
8244
9409d39e
TT
82452014-02-19 Tom Tromey <tromey@redhat.com>
8246
8247 * target-delegates.c: Rebuild.
8248 * target.c (update_current_target): Don't inherit or default
8249 to_supports_string_tracing.
8250 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8251 TARGET_DEFAULT_RETURN.
8252
aab1b22d
TT
82532014-02-19 Tom Tromey <tromey@redhat.com>
8254
8255 * target-delegates.c: Rebuild.
8256 * target.c (update_current_target): Don't inherit or default
8257 to_supports_enable_disable_tracepoint.
8258 * target.h (struct target_ops)
8259 <to_supports_enable_disable_tracepoint>: Use
8260 TARGET_DEFAULT_RETURN.
8261
a7304748
TT
82622014-02-19 Tom Tromey <tromey@redhat.com>
8263
8264 * target-delegates.c: Rebuild.
8265 * target.c (update_current_target): Don't inherit or default
8266 to_supports_multi_process.
8267 * target.h (struct target_ops) <to_supports_multi_process>: Use
8268 TARGET_DEFAULT_RETURN.
8269
4229b31d
TT
82702014-02-19 Tom Tromey <tromey@redhat.com>
8271
8272 * target-delegates.c: Rebuild.
8273 * target.c (update_current_target): Don't inherit or default
8274 to_get_ada_task_ptid.
8275 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8276 TARGET_DEFAULT_FUNC.
8277
43eba180
TT
82782014-02-19 Tom Tromey <tromey@redhat.com>
8279
8280 * target-delegates.c: Rebuild.
8281 * target.c (update_current_target): Don't inherit or default
8282 to_thread_architecture.
8283 * target.h (struct target_ops) <to_thread_architecture>: Use
8284 TARGET_DEFAULT_FUNC.
8285
fe31bf5b
TT
82862014-02-19 Tom Tromey <tromey@redhat.com>
8287
8288 * target-delegates.c: Rebuild.
8289 * target.c (update_current_target): Don't inherit or default
8290 to_execution_direction.
8291 * target.h (struct target_ops) <to_execution_direction>: Use
8292 TARGET_DEFAULT_FUNC.
8293
53e1cfc7
TT
82942014-02-19 Tom Tromey <tromey@redhat.com>
8295
8296 * target-delegates.c: Rebuild.
8297 * target.c (update_current_target): Don't inherit or default
8298 to_can_execute_reverse.
8299 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8300 TARGET_DEFAULT_RETURN.
8301 (target_can_execute_reverse): Unconditionally delegate.
8302
9bb9d61d
TT
83032014-02-19 Tom Tromey <tromey@redhat.com>
8304
8305 * target-delegates.c: Rebuild.
8306 * target.c (update_current_target): Don't inherit or default
8307 to_goto_bookmark.
8308 (dummy_goto_bookmark): Remove.
8309 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8310 * target.h (struct target_ops) <to_goto_bookmark>: Use
8311 TARGET_DEFAULT_NORETURN.
8312
3dbafbbb
TT
83132014-02-19 Tom Tromey <tromey@redhat.com>
8314
8315 * target-delegates.c: Rebuild.
8316 * target.c (update_current_target): Don't inherit or default
8317 to_get_bookmark.
8318 (dummy_get_bookmark): Remove.
8319 (init_dummy_target): Don't inherit or default to_get_bookmark.
8320 * target.h (struct target_ops) <to_get_bookmark>: Use
8321 TARGET_DEFAULT_NORETURN
8322
16f796b1
TT
83232014-02-19 Tom Tromey <tromey@redhat.com>
8324
8325 * target-delegates.c: Rebuild.
8326 * target.c (update_current_target): Don't inherit or default
8327 to_make_corefile_notes.
8328 (init_dummy_target): Don't initialize to_make_corefile_notes.
8329 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8330 TARGET_DEFAULT_FUNC.
8331
0b5a2719
TT
83322014-02-19 Tom Tromey <tromey@redhat.com>
8333
8334 * target-delegates.c: Rebuild.
8335 * target.c (update_current_target): Don't inherit or default
8336 to_find_memory_regions.
8337 (init_dummy_target): Don't initialize to_find_memory_regions.
8338 * target.h (struct target_ops) <to_find_memory_regions>: Use
8339 TARGET_DEFAULT_FUNC.
8340
d9cb0195
TT
83412014-02-19 Tom Tromey <tromey@redhat.com>
8342
8343 * target-delegates.c: Rebuild.
8344 * target.c (update_current_target): Don't inherit or default
8345 to_log_command.
8346 * target.h (struct target_ops) <to_log_command>: Use
8347 TARGET_DEFAULT_IGNORE.
8348 (target_log_command): Unconditionally delegate.
8349
830ca330
TT
83502014-02-19 Tom Tromey <tromey@redhat.com>
8351
8352 * target-delegates.c: Rebuild.
8353 * target.c (update_current_target): Don't inherit or default
8354 to_pid_to_exec_file.
8355 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8356 TARGET_DEFAULT_RETURN.
8357
825828fc
TT
83582014-02-19 Tom Tromey <tromey@redhat.com>
8359
8360 * target-delegates.c: Rebuild.
8361 * target.c (update_current_target): Don't inherit or default
8362 to_thread_name.
8363 (target_thread_name): Unconditionally delegate.
8364 * target.h (struct target_ops) <to_thread_name>: Use
8365 TARGET_DEFAULT_RETURN.
8366
4a7e6dda
TT
83672014-02-19 Tom Tromey <tromey@redhat.com>
8368
8369 * target-delegates.c: Rebuild.
8370 * target.c (update_current_target): Don't inherit or default
8371 to_extra_thread_info.
8372 * target.h (struct target_ops) <to_extra_thread_info>: Use
8373 TARGET_DEFAULT_RETURN.
8374
0db88c1d
TT
83752014-02-19 Tom Tromey <tromey@redhat.com>
8376
8377 * target-delegates.c: Rebuild.
8378 * target.c (update_current_target): Don't inherit or default
8379 to_has_exited.
8380 * target.h (struct target_ops) <to_has_exited>: Use
8381 TARGET_DEFAULT_RETURN..
8382
6a9fa051
TT
83832014-02-19 Tom Tromey <tromey@redhat.com>
8384
8385 * target-delegates.c: Rebuild.
8386 * target.c (update_current_target): Don't inherit or default
8387 to_set_syscall_catchpoint.
8388 (return_one): Remove.
8389 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8390 TARGET_DEFAULT_RETURN.
8391
62f64d7a
TT
83922014-02-19 Tom Tromey <tromey@redhat.com>
8393
8394 * target-delegates.c: Rebuild.
8395 * target.c (update_current_target): Don't inherit or default
8396 to_insert_exec_catchpoint.
8397 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8398 TARGET_DEFAULT_RETURN.
8399
cda0f38c
TT
84002014-01-08 Tom Tromey <tromey@redhat.com>
8401
8402 * target-delegates.c: Rebuild.
8403 * target.c (update_current_target): Don't inherit or default
8404 to_insert_exec_catchpoint.
8405 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8406 TARGET_DEFAULT_RETURN.
8407
95c3375e
TT
84082014-02-19 Tom Tromey <tromey@redhat.com>
8409
8410 * target-delegates.c: Rebuild.
8411 * target.c (update_current_target): Don't inherit or default
8412 to_remove_vfork_catchpoint.
8413 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8414 TARGET_DEFAULT_RETURN.
8415
7e18a8dc
TT
84162014-02-19 Tom Tromey <tromey@redhat.com>
8417
8418 * target-delegates.c: Rebuild.
8419 * target.c (update_current_target): Don't inherit or default
8420 to_insert_vfork_catchpoint.
8421 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8422 TARGET_DEFAULT_RETURN.
8423
e1a21fb7
TT
84242014-02-19 Tom Tromey <tromey@redhat.com>
8425
8426 * target-delegates.c: Rebuild.
8427 * target.c (update_current_target): Don't inherit or default
8428 to_remove_fork_catchpoint.
8429 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8430 TARGET_DEFAULT_RETURN.
8431
5958ebeb
TT
84322014-02-19 Tom Tromey <tromey@redhat.com>
8433
8434 * target-delegates.c: Rebuild.
8435 * target.c (update_current_target): Don't inherit or default
8436 to_insert_fork_catchpoint.
8437 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8438 TARGET_DEFAULT_RETURN.
8439
340ba4bf
TT
84402014-02-19 Tom Tromey <tromey@redhat.com>
8441
8442 * target-delegates.c: Rebuild.
8443 * target.c (update_current_target): Don't inherit or default
8444 to_post_startup_inferior.
8445 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8446 TARGET_DEFAULT_IGNORE.
8447
7634da87
TT
84482014-02-19 Tom Tromey <tromey@redhat.com>
8449
8450 * target-delegates.c: Rebuild.
8451 * target.c (update_current_target): Don't inherit or default
8452 to_load.
8453 * target.h (struct target_ops) <to_load>: Use
8454 TARGET_DEFAULT_NORETURN.
8455
e19e919f
TT
84562014-02-19 Tom Tromey <tromey@redhat.com>
8457
8458 * target-delegates.c: Rebuild.
8459 * target.c (update_current_target): Don't inherit or default
8460 to_terminal_info.
8461 * target.h (struct target_ops) <to_terminal_info>: Use
8462 TARGET_DEFAULT_FUNC.
8463
c6ea8f79
TT
84642014-02-19 Tom Tromey <tromey@redhat.com>
8465
8466 * target-delegates.c: Rebuild.
8467 * target.c (update_current_target): Don't inherit or default
8468 to_terminal_save_ours.
8469 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8470 TARGET_DEFAULT_IGNORE.
8471
e4a733f1
TT
84722014-02-19 Tom Tromey <tromey@redhat.com>
8473
8474 * target-delegates.c: Rebuild.
8475 * target.c (update_current_target): Don't inherit or default
8476 to_terminal_ours.
8477 * target.h (struct target_ops) <to_terminal_ours>: Use
8478 TARGET_DEFAULT_IGNORE.
8479
74fcbef9
TT
84802014-02-19 Tom Tromey <tromey@redhat.com>
8481
8482 * target-delegates.c: Rebuild.
8483 * target.c (update_current_target): Don't inherit or default
8484 to_terminal_ours_for_output.
8485 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8486 TARGET_DEFAULT_IGNORE.
8487
ddeaacc9
TT
84882014-02-19 Tom Tromey <tromey@redhat.com>
8489
8490 * target-delegates.c: Rebuild.
8491 * target.c (update_current_target): Don't inherit or default
8492 to_terminal_inferior.
8493 * target.h (struct target_ops) <to_terminal_inferior>: Use
8494 TARGET_DEFAULT_IGNORE.
8495
0343661d
TT
84962014-02-19 Tom Tromey <tromey@redhat.com>
8497
8498 * target-delegates.c: Rebuild.
8499 * target.c (update_current_target): Don't inherit or default
8500 to_terminal_init.
8501 * target.h (struct target_ops) <to_terminal_init>: Use
8502 TARGET_DEFAULT_IGNORE.
8503
77cdffe9
TT
85042014-02-19 Tom Tromey <tromey@redhat.com>
8505
8506 * target-delegates.c: Rebuild.
8507 * target.c (update_current_target): Don't inherit or default
8508 to_can_accel_watchpoint_condition.
8509 * target.h (struct target_ops)
8510 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8511
d03655e4
TT
85122014-02-19 Tom Tromey <tromey@redhat.com>
8513
8514 * target-delegates.c: Rebuild.
8515 * target.c (update_current_target): Don't inherit or default
8516 to_region_ok_for_hw_watchpoint.
8517 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8518 Use TARGET_DEFAULT_FUNC.
8519
65f160a9
TT
85202014-02-19 Tom Tromey <tromey@redhat.com>
8521
8522 * target-delegates.c: Rebuild.
8523 * target.c (update_current_target): Don't inherit or default
8524 to_watchpoint_addr_within_range.
8525 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8526 Use TARGET_DEFAULT_FUNC.
8527
61dd109f
TT
85282014-02-19 Tom Tromey <tromey@redhat.com>
8529
8530 * target-delegates.c: Rebuild.
8531 * target.c (update_current_target): Don't inherit or default
8532 to_remove_watchpoint.
8533 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8534 TARGET_DEFAULT_NORETURN.
8535
016facd4
TT
85362014-02-19 Tom Tromey <tromey@redhat.com>
8537
8538 * target-delegates.c: Rebuild.
8539 * target.c (update_current_target): Don't inherit or default
8540 to_insert_watchpoint.
8541 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8542 TARGET_DEFAULT_RETURN.
8543
418dabac
TT
85442014-02-19 Tom Tromey <tromey@redhat.com>
8545
8546 * target-delegates.c: Rebuild.
8547 * target.c (update_current_target): Don't inherit or default
8548 to_remove_hw_breakpoint.
8549 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8550 TARGET_DEFAULT_RETURN.
8551
61b371f9
TT
85522014-02-19 Tom Tromey <tromey@redhat.com>
8553
8554 * target-delegates.c: Rebuild.
8555 * target.c (update_current_target): Don't inherit or default
8556 to_insert_hw_breakpoint.
8557 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8558 TARGET_DEFAULT_RETURN.
8559
52b51d06
TT
85602014-02-19 Tom Tromey <tromey@redhat.com>
8561
8562 * target-delegates.c: Rebuild.
8563 * target.c (update_current_target): Don't inherit or default
8564 to_can_use_hw_breakpoint.
8565 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8566 TARGET_DEFAULT_RETURN.
8567
f86e59b2
TT
85682014-02-19 Tom Tromey <tromey@redhat.com>
8569
8570 * target-delegates.c: Rebuild.
8571 * target.c (update_current_target): Don't inherit or default
8572 to_files_info.
8573 * target.h (struct target_ops) <to_files_info>: Use
8574 TARGET_DEFAULT_IGNORE.
8575
6c628163
TT
85762014-02-19 Tom Tromey <tromey@redhat.com>
8577
8578 * target-delegates.c: Rebuild.
8579 * target.c (update_current_target): Don't inherit or default
8580 to_store.
8581 * target.h (struct target_ops) <to_store>: Use
8582 TARGET_DEFAULT_NORETURN.
8583
bebd3233
TT
85842014-02-19 Tom Tromey <tromey@redhat.com>
8585
8586 * target-delegates.c: Rebuild.
8587 * target.c (update_current_target): Don't inherit or default
8588 to_post_attach.
8589 * target.h (struct target_ops) <to_post_attach>: Use
8590 TARGET_DEFAULT_IGNORE.
8591
a53f3625
TT
85922014-02-19 Tom Tromey <tromey@redhat.com>
8593
8594 * target-delegates.c: Rebuild.
8595 * target.c (update_current_target): Don't inherit or default
8596 to_rcmd.
8597 (default_rcmd): New function.
8598 (do_monitor_command): Unconditionally delegate.
8599 * target.h (struct target_ops) <to_rmcd>: Use
8600 TARGET_DEFAULT_FUNC.
8601
e9a29200
TT
86022014-02-19 Tom Tromey <tromey@redhat.com>
8603
8604 * target-delegates.c: Rebuild.
8605 * target.c (init_dummy_target): Don't initialize to_attach.
8606 (target_attach): Unconditionally delegate.
8607 * target.h (struct target_ops) <to_attach>: Use
8608 TARGET_DEFAULT_FUNC.
8609
09da0d0a
TT
86102014-02-19 Tom Tromey <tromey@redhat.com>
8611
8612 * target-delegates.c: Rebuild.
8613 * target.c (target_detach): Unconditionally delegate.
8614 (init_dummy_target): Don't initialize to_detach.
8615 * target.h (struct target_ops) <to_detach>: Use
8616 TARGET_DEFAULT_IGNORE.
8617
5436ff03
TT
86182014-02-19 Tom Tromey <tromey@redhat.com>
8619
8620 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8621 Add argument.
8622 (target_augmented_libraries_svr4_read): Add argument.
8623 * target.c (update_current_target): Update.
8624 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8625 argument.
8626
f0d960ea
TT
86272014-02-19 Tom Tromey <tromey@redhat.com>
8628
8629 * target.h (struct target_ops) <to_call_history_range>: Add
8630 argument.
8631 * target.c (target_call_history_range): Add argument.
8632 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8633 argument.
8634 (record_btrace_call_history_from): Update.
8635
ec0aea04
TT
86362014-02-19 Tom Tromey <tromey@redhat.com>
8637
8638 * target.h (struct target_ops) <to_call_history_from>: Add
8639 argument.
8640 * target.c (target_call_history_from): Add argument.
8641 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8642 argument.
8643
5df2fcba
TT
86442014-02-19 Tom Tromey <tromey@redhat.com>
8645
8646 * target.h (struct target_ops) <to_call_history>: Add argument.
8647 * target.c (target_call_history): Add argument.
8648 * record-btrace.c (record_btrace_call_history): Add 'self'
8649 argument.
8650
4e99c6b7
TT
86512014-02-19 Tom Tromey <tromey@redhat.com>
8652
8653 * target.h (struct target_ops) <to_insn_history_range>: Add
8654 argument.
8655 * target.c (target_insn_history_range): Add argument.
8656 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8657 argument.
8658 (record_btrace_insn_history_from): Update.
8659
9abc3ff3
TT
86602014-02-19 Tom Tromey <tromey@redhat.com>
8661
8662 * target.h (struct target_ops) <to_insn_history_from>: Add
8663 argument.
8664 * target.c (target_insn_history_from): Add argument.
8665 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8666 argument.
8667
7a6c5609
TT
86682014-02-19 Tom Tromey <tromey@redhat.com>
8669
8670 * target.h (struct target_ops) <to_insn_history>: Add argument.
8671 * target.c (target_insn_history): Add argument.
8672 * record-btrace.c (record_btrace_insn_history): Add 'self'
8673 argument.
8674
606183ac
TT
86752014-02-19 Tom Tromey <tromey@redhat.com>
8676
8677 * target.h (struct target_ops) <to_goto_record>: Add argument.
8678 * target.c (target_goto_record): Add argument.
8679 * record-full.c (record_full_goto): Add 'self' argument.
8680 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8681
307a1b91
TT
86822014-02-19 Tom Tromey <tromey@redhat.com>
8683
8684 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8685 * target.c (target_goto_record_end): Add argument.
8686 * record-full.c (record_full_goto_end): Add 'self' argument.
8687 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8688
08475817
TT
86892014-02-19 Tom Tromey <tromey@redhat.com>
8690
8691 * target.h (struct target_ops) <to_goto_record_begin>: Add
8692 argument.
8693 * target.c (target_goto_record_begin): Add argument.
8694 * record-full.c (record_full_goto_begin): Add 'self' argument.
8695 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8696 argument.
8697
1c63c994
TT
86982014-02-19 Tom Tromey <tromey@redhat.com>
8699
8700 * target.h (struct target_ops) <to_record_is_replaying>: Add
8701 argument.
8702 * target.c (target_record_is_replaying): Add argument.
8703 * record-full.c (record_full_is_replaying): Add 'self' argument.
8704 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8705 argument.
8706 (record_btrace_xfer_partial, record_btrace_store_registers)
8707 (record_btrace_prepare_to_store, record_btrace_resume)
8708 (record_btrace_wait, record_btrace_decr_pc_after_break)
8709 (record_btrace_find_new_threads, record_btrace_thread_alive):
8710 Update.
8711
d1b55219
TT
87122014-02-19 Tom Tromey <tromey@redhat.com>
8713
8714 * target.h (struct target_ops) <to_delete_record>: Add argument.
8715 * target.c (target_delete_record): Add argument.
8716 * record-full.c (record_full_delete): Add 'self' argument.
8717
1390f529
TT
87182014-02-19 Tom Tromey <tromey@redhat.com>
8719
8720 * target.h (struct target_ops) <to_save_record>: Add argument.
8721 * target.c (target_save_record): Add argument.
8722 * record-full.c (record_full_save): Add 'self' argument.
8723 (record_full_save): Add 'self' argument.
8724
630d6a4a
TT
87252014-02-19 Tom Tromey <tromey@redhat.com>
8726
8727 * target.h (struct target_ops) <to_info_record>: Add argument.
8728 * target.c (target_info_record): Add argument.
8729 * record.c (info_record_command): Add argument.
8730 * record-full.c (record_full_info): Add 'self' argument.
8731 * record-btrace.c (record_btrace_info): Add 'self' argument.
8732
c6cd7c02
TT
87332014-02-19 Tom Tromey <tromey@redhat.com>
8734
8735 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8736 * target.c (target_stop_recording): Add argument.
8737 * record.c (record_stop): Add argument.
8738 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8739 argument.
8740
39c49f83
TT
87412014-02-19 Tom Tromey <tromey@redhat.com>
8742
8743 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8744 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8745 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8746 argument.
8747 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8748 (_initialize_amd64_linux_nat): Use it.
8749 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8750 (_initialize_i386_linux_nat): Use it.
8751
1777056d
TT
87522014-02-19 Tom Tromey <tromey@redhat.com>
8753
8754 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8755 * target.c (target_teardown_btrace): Add argument.
8756 * remote.c (remote_teardown_btrace): Add 'self' argument.
8757 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8758 argument.
8759 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8760 argument.
8761
25e95349
TT
87622014-02-19 Tom Tromey <tromey@redhat.com>
8763
8764 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8765 * target.c (target_disable_btrace): Add argument.
8766 * remote.c (remote_disable_btrace): Add 'self' argument.
8767 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8768 argument.
8769 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8770 argument.
8771
e3c49f88
TT
87722014-02-19 Tom Tromey <tromey@redhat.com>
8773
8774 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8775 * target.c (target_enable_btrace): Add argument.
8776 * remote.c (remote_enable_btrace): Add 'self' argument.
8777 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8778 argument.
8779 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8780 argument.
8781
fe38f897
TT
87822014-02-19 Tom Tromey <tromey@redhat.com>
8783
8784 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8785 (target_can_use_agent): Add argument.
8786 * target.c (update_current_target): Update.
8787 * remote.c (remote_can_use_agent): Add 'self' argument.
8788 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8789
2c152180
TT
87902014-02-19 Tom Tromey <tromey@redhat.com>
8791
8792 * target.h (struct target_ops) <to_use_agent>: Add argument.
8793 (target_use_agent): Add argument.
8794 * target.c (update_current_target): Update.
8795 * remote.c (remote_use_agent): Add 'self' argument.
8796 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8797
a893e81f
TT
87982014-02-19 Tom Tromey <tromey@redhat.com>
8799
8800 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8801 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8802 (target_traceframe_info): Add argument.
8803 * target.c (update_current_target): Update.
8804 * remote.c (remote_traceframe_info): Add 'self' argument.
8805 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8806
c686c57f
TT
88072014-02-19 Tom Tromey <tromey@redhat.com>
8808
8809 * target.h (target_static_tracepoint_markers_by_strid): Add
8810 argument.
8811 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8812 'self' argument.
8813 * target.c (update_current_target): Update.
8814 * remote.c (struct target_ops)
8815 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8816 * linux-nat.c (struct target_ops)
8817 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8818
61fc905d
TT
88192014-02-19 Tom Tromey <tromey@redhat.com>
8820
8821 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8822 Add argument.
8823 (target_static_tracepoint_marker_at): Add argument.
8824 * target.c (update_current_target): Update.
8825 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8826 argument.
8827
c378d69d
TT
88282014-02-19 Tom Tromey <tromey@redhat.com>
8829
8830 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8831 (target_set_permissions): Add argument.
8832 * target.c (update_current_target): Update.
8833 * remote.c (remote_set_permissions): Add 'self' argument.
8834 (remote_start_remote): Update.
8835
bd7ae0f5
TT
88362014-02-19 Tom Tromey <tromey@redhat.com>
8837
8838 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8839 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8840 (target_get_tib_address): Add argument.
8841 * target.c (update_current_target): Update.
8842 * remote.c (remote_get_tib_address): Add 'self' argument.
8843
d9e68a2c
TT
88442014-02-19 Tom Tromey <tromey@redhat.com>
8845
8846 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8847 (target_set_trace_notes): Add argument.
8848 * target.c (update_current_target): Update.
8849 * remote.c (remote_set_trace_notes): Add 'self' argument.
8850
4da384be
TT
88512014-02-19 Tom Tromey <tromey@redhat.com>
8852
8853 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8854 argument.
8855 (target_set_trace_buffer_size): Add argument.
8856 * target.c (update_current_target): Update.
8857 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8858
736d5b1f
TT
88592014-02-19 Tom Tromey <tromey@redhat.com>
8860
8861 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8862 argument.
8863 (target_set_circular_trace_buffer): Add argument.
8864 * target.c (update_current_target): Update.
8865 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8866 argument.
8867
37b25738
TT
88682014-02-19 Tom Tromey <tromey@redhat.com>
8869
8870 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8871 argument.
8872 (target_set_disconnected_tracing): Add argument.
8873 * target.c (update_current_target): Update.
8874 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8875
0e67620a
TT
88762014-02-19 Tom Tromey <tromey@redhat.com>
8877
8878 * target.h (struct target_ops)
8879 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8880 (target_get_min_fast_tracepoint_insn_len): Add argument.
8881 * target.c (update_current_target): Update.
8882 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8883 argument.
8884
88ee6f45
TT
88852014-02-19 Tom Tromey <tromey@redhat.com>
8886
8887 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8888 argument.
8889 (target_get_raw_trace_data): Add argument.
8890 * target.c (update_current_target): Update.
8891 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8892
181e3713
TT
88932014-02-19 Tom Tromey <tromey@redhat.com>
8894
8895 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8896 Add argument.
8897 (target_upload_trace_state_variables): Add argument.
8898 * target.c (update_current_target): Update.
8899 * remote.c (remote_upload_trace_state_variables): Add 'self'
8900 argument.
8901 (remote_start_remote): Update.
8902
ab6617cc
TT
89032014-02-19 Tom Tromey <tromey@redhat.com>
8904
8905 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8906 argument.
8907 (target_upload_tracepoints): Add argument.
8908 * target.c (update_current_target): Update.
8909 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8910 (remote_start_remote): Update.
8911
dc3decaf
TT
89122014-02-19 Tom Tromey <tromey@redhat.com>
8913
8914 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8915 (target_save_trace_data): Add argument.
8916 * target.c (update_current_target): Update.
8917 * remote.c (remote_save_trace_data): Add 'self' argument.
8918
4011015b
TT
89192014-02-19 Tom Tromey <tromey@redhat.com>
8920
8921 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8922 argument.
8923 * target.h (struct target_ops)
8924 <to_get_trace_state_variable_value>: Add argument.
8925 (target_get_trace_state_variable_value): Add argument.
8926 * target.c (update_current_target): Update.
8927 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8928 argument.
8929 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8930
bd4c6793
TT
89312014-02-19 Tom Tromey <tromey@redhat.com>
8932
8933 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8934 * target.h (struct target_ops) <to_trace_find>: Add argument.
8935 (target_trace_find): Add argument.
8936 * target.c (update_current_target): Update.
8937 * remote.c (remote_trace_find): Add 'self' argument.
8938 * ctf.c (ctf_trace_find): Add 'self' argument.
8939
74499f1b
TT
89402014-02-19 Tom Tromey <tromey@redhat.com>
8941
8942 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8943 (target_trace_stop): Add argument.
8944 * target.c (update_current_target): Update.
8945 * remote.c (remote_trace_stop): Add 'self' argument.
8946
db90e85c
TT
89472014-02-19 Tom Tromey <tromey@redhat.com>
8948
8949 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8950 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8951 argument.
8952 (target_get_tracepoint_status): Add argument.
8953 * target.c (update_current_target): Update.
8954 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8955
8bd200f1
TT
89562014-02-19 Tom Tromey <tromey@redhat.com>
8957
8958 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8959 * target.h (struct target_ops) <to_get_trace_status>: Add
8960 argument.
8961 (target_get_trace_status): Add argument.
8962 * target.c (update_current_target): Update.
8963 * remote.c (remote_get_trace_status): Add 'self' argument.
8964 (remote_start_remote, remote_can_download_tracepoint): Update.
8965 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8966
e2d1aae3
TT
89672014-02-19 Tom Tromey <tromey@redhat.com>
8968
8969 * target.h (struct target_ops) <to_trace_start>: Add argument.
8970 (target_trace_start): Add argument.
8971 * target.c (update_current_target): Update.
8972 * remote.c (remote_trace_start): Add 'self' argument.
8973
583f9a86
TT
89742014-02-19 Tom Tromey <tromey@redhat.com>
8975
8976 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8977 Add argument.
8978 (target_trace_set_readonly_regions): Add argument.
8979 * target.c (update_current_target): Update.
8980 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8981 argument.
8982
780b049c
TT
89832014-02-19 Tom Tromey <tromey@redhat.com>
8984
8985 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8986 argument.
8987 (target_disable_tracepoint): Add argument.
8988 * target.c (update_current_target): Update.
8989 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8990
46670d57
TT
89912014-02-19 Tom Tromey <tromey@redhat.com>
8992
8993 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8994 argument.
8995 (target_enable_tracepoint): Add argument.
8996 * target.c (update_current_target): Update.
8997 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8998
559d2b81
TT
89992014-02-19 Tom Tromey <tromey@redhat.com>
9000
9001 * target.h (struct target_ops) <to_download_trace_state_variable>:
9002 Add argument.
9003 (target_download_trace_state_variable): Add argument.
9004 * target.c (update_current_target): Update.
9005 * remote.c (remote_download_trace_state_variable): Add 'self'
9006 argument.
9007
a52a8357
TT
90082014-02-19 Tom Tromey <tromey@redhat.com>
9009
9010 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9011 argument.
9012 (target_can_download_tracepoint): Add argument.
9013 * target.c (update_current_target): Update.
9014 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9015
548f7808
TT
90162014-02-19 Tom Tromey <tromey@redhat.com>
9017
9018 * target.h (struct target_ops) <to_download_tracepoint>: Add
9019 argument.
9020 (target_download_tracepoint): Add argument.
9021 * target.c (update_current_target): Update.
9022 * remote.c (remote_download_tracepoint): Add 'self' argument.
9023
ecae04e1
TT
90242014-02-19 Tom Tromey <tromey@redhat.com>
9025
9026 * target.h (struct target_ops) <to_trace_init>: Add argument.
9027 (target_trace_init): Add argument.
9028 * target.c (update_current_target): Update.
9029 * remote.c (remote_trace_init): Add 'self' argument.
9030
fab5aa7c
TT
90312014-02-19 Tom Tromey <tromey@redhat.com>
9032
9033 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9034 * target.c (target_fileio_readlink): Add argument.
9035 * remote.c (remote_hostio_readlink): Add 'self' argument.
9036 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9037
dbbca37d
TT
90382014-02-19 Tom Tromey <tromey@redhat.com>
9039
9040 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9041 * target.c (target_fileio_unlink): Add argument.
9042 * remote.c (remote_hostio_unlink): Add 'self' argument.
9043 (remote_file_delete): Update.
9044 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9045
df39ea25
TT
90462014-02-19 Tom Tromey <tromey@redhat.com>
9047
9048 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9049 * target.c (target_fileio_close): Add argument.
9050 * remote.c (remote_hostio_close): Add 'self' argument.
9051 (remote_hostio_close_cleanup): Update.
9052 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9053 Update.
9054 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9055
a3be983c
TT
90562014-02-19 Tom Tromey <tromey@redhat.com>
9057
9058 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9059 * target.c (target_fileio_pread): Add argument.
9060 * remote.c (remote_hostio_pread): Add 'self' argument.
9061 (remote_bfd_iovec_pread, remote_file_get): Update.
9062 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9063
0d866f62
TT
90642014-02-19 Tom Tromey <tromey@redhat.com>
9065
9066 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9067 * target.c (target_fileio_pwrite): Add argument.
9068 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9069 (remote_file_put): Update.
9070 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9071
cd897586
TT
90722014-02-19 Tom Tromey <tromey@redhat.com>
9073
9074 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9075 * target.c (target_fileio_open): Add argument.
9076 * remote.c (remote_hostio_open): Add 'self' argument.
9077 (remote_bfd_iovec_open): Add 'self' argument.
9078 (remote_file_put): Add 'self' argument.
9079 (remote_file_get): Add 'self' argument.
9080 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9081
78eff0ec
TT
90822014-02-19 Tom Tromey <tromey@redhat.com>
9083
9084 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9085 Add argument.
9086 (target_can_run_breakpoint_commands): Add argument.
9087 * target.c (update_current_target): Update.
9088 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9089 argument.
9090 (remote_insert_breakpoint): Add 'self' argument.
9091 (remote_insert_hw_breakpoint): Add 'self' argument.
9092 (remote_can_run_breakpoint_commands): Add 'self' argument.
9093
efcc2da7
TT
90942014-02-19 Tom Tromey <tromey@redhat.com>
9095
9096 * target.h (struct target_ops)
9097 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9098 (target_supports_evaluation_of_breakpoint_conditions): Add
9099 argument.
9100 * target.c (update_current_target): Update.
9101 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9102 argument.
9103 (remote_insert_breakpoint): Add 'self' argument.
9104 (remote_insert_hw_breakpoint): Add 'self' argument.
9105 (remote_supports_cond_breakpoints): Add 'self' argument.
9106
6de37a3a
TT
91072014-02-19 Tom Tromey <tromey@redhat.com>
9108
9109 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9110 argument.
9111 (target_supports_string_tracing): Add argument.
9112 * target.c (update_current_target): Update.
9113 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9114
2bfc0540
TT
91152014-02-19 Tom Tromey <tromey@redhat.com>
9116
9117 * target.h (struct target_ops)
9118 <to_supports_disable_randomization>: Add argument.
9119 * target.c (find_default_supports_disable_randomization): Add
9120 argument.
9121 (target_supports_disable_randomization): Add argument.
9122 (find_default_supports_disable_randomization): Add 'self'
9123 argument.
9124 * remote.c (extended_remote_supports_disable_randomization): Add
9125 'self' argument.
9126 (remote_supports_disable_randomization): Add 'self' argument.
9127 (extended_remote_create_inferior): Update.
9128 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9129 'self' argument.
9130
7d178d6a
TT
91312014-02-19 Tom Tromey <tromey@redhat.com>
9132
9133 * target.h (struct target_ops)
9134 <to_supports_enable_disable_tracepoint>: Add argument.
9135 (target_supports_enable_disable_tracepoint): Add argument.
9136 * target.c (update_current_target): Update.
9137 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9138 argument.
9139
86ce2668
TT
91402014-02-19 Tom Tromey <tromey@redhat.com>
9141
9142 * target.h (struct target_ops) <to_supports_multi_process>: Add
9143 argument.
9144 (target_supports_multi_process): Add argument.
9145 * target.c (update_current_target): Update.
9146 * remote.c (remote_supports_multi_process): Add 'self' argument.
9147 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9148 argument.
9149 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9150 argument.
9151
4c612759
TT
91522014-02-19 Tom Tromey <tromey@redhat.com>
9153
9154 * target.h (struct target_ops) <to_execution_direction>: Add
9155 argument.
9156 (target_execution_direction): Add argument.
9157 * target.c (default_execution_direction): Add 'self' argument.
9158 * record-full.c (record_full_execution_direction): Add 'self'
9159 argument.
9160
19db3e69
TT
91612014-02-19 Tom Tromey <tromey@redhat.com>
9162
9163 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9164 argument.
9165 (target_can_execute_reverse): Add argument.
9166 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9167 * record-full.c (record_full_can_execute_reverse): Add 'self'
9168 argument.
9169 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9170 argument.
9171
1e6b91a4
TT
91722014-02-19 Tom Tromey <tromey@redhat.com>
9173
9174 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9175 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9176 argument.
9177 (target_get_ada_task_ptid): Add argument.
9178 * target.c (update_current_target): Update.
9179 (default_get_ada_task_ptid): Add 'self' argument.
9180 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9181 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9182 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9183 argument.
9184 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9185 argument.
9186 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9187 argument.
9188 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9189 argument.
9190 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9191 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9192 argument.
9193
3c80fb48
TT
91942014-02-19 Tom Tromey <tromey@redhat.com>
9195
9196 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9197 (target_goto_bookmark): Add argument.
9198 * target.c (dummy_goto_bookmark): Add 'self' argument.
9199 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9200
dd0e2830
TT
92012014-02-19 Tom Tromey <tromey@redhat.com>
9202
9203 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9204 (target_get_bookmark): Add argument.
9205 * target.c (dummy_get_bookmark): Add 'self' argument.
9206 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9207
fc6691b2
TT
92082014-02-19 Tom Tromey <tromey@redhat.com>
9209
9210 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9211 argument.
9212 (target_make_corefile_notes): Add argument.
9213 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9214 * procfs.c (procfs_make_note_section): Add 'self' argument.
9215 (procfs_make_note_section): Add 'self' argument.
9216 (procfs_make_note_section): Add 'self' argument.
9217 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9218 argument.
9219 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9220 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9221 * exec.c (exec_make_note_section): Add 'self' argument.
9222 (exec_make_note_section): Add 'self' argument.
9223
2e73927c
TT
92242014-02-19 Tom Tromey <tromey@redhat.com>
9225
9226 * target.h (struct target_ops) <to_find_memory_regions>: Add
9227 argument.
9228 (target_find_memory_regions): Add argument.
9229 * target.c (dummy_find_memory_regions): Add 'self' argument.
9230 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9231 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9232 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9233 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9234 * exec. (exec_do_find_memory_regions): New global.
9235 (exec_set_find_memory_regions): Rewrite.
9236 (exec_find_memory_regions): New function.
9237 (init_exec_ops): Use exec_find_memory_regions.
9238
2a9a2795
TT
92392014-02-19 Tom Tromey <tromey@redhat.com>
9240
9241 * target.h (struct target_ops) <to_supports_non_stop>: Add
9242 argument.
9243 * target.c (find_default_supports_non_stop): Add argument.
9244 (target_supports_non_stop): Add argument.
9245 (find_default_supports_non_stop): Add 'self' argument.
9246 * remote.c (remote_supports_non_stop): Add 'self' argument.
9247 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9248
4ab76ea3
TT
92492014-02-19 Tom Tromey <tromey@redhat.com>
9250
9251 * target.h (struct target_ops) <to_log_command>: Add argument.
9252 (target_log_command): Add argument.
9253 * serial.h (serial_log_command): Add 'self' argument.
9254 * serial.c (serial_log_command): Add 'self' argument.
9255
8dd27370
TT
92562014-02-19 Tom Tromey <tromey@redhat.com>
9257
9258 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9259 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9260 argument.
9261 (target_pid_to_exec_file): Add argument.
9262 * target.c (debug_to_pid_to_exec_file): Add argument.
9263 (update_current_target): Update.
9264 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9265 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9266 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9267 (linux_handle_extended_wait): Update.
9268 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9269 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9270 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9271 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9272
1aac633b
TT
92732014-02-19 Tom Tromey <tromey@redhat.com>
9274
9275 * target.h (struct target_ops) <to_rcmd>: Add argument.
9276 (target_rcmd): Add argument.
9277 * target.c (debug_to_rcmd): Add argument.
9278 (update_current_target, do_monitor_command): Update.
9279 * remote.c (remote_rcmd): Add 'self' argument.
9280 * monitor.c (monitor_rcmd): Add 'self' argument.
9281
1eab8a48
TT
92822014-02-19 Tom Tromey <tromey@redhat.com>
9283
9284 * windows-nat.c (windows_stop): Add 'self' argument.
9285 * target.h (struct target_ops) <to_stop>: Add argument.
9286 * target.c (target_stop): Add argument.
9287 (debug_to_stop): Add argument.
9288 (update_current_target): Update.
9289 * remote.c (remote_stop): Add 'self' argument.
9290 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9291 (gdbsim_cntrl_c): Update.
9292 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9293 * procfs.c (procfs_stop): Add 'self' argument.
9294 * nto-procfs.c (procfs_stop): Add 'self' argument.
9295 * monitor.c (monitor_stop): Add 'self' argument.
9296 (monitor_open): Update.
9297 * linux-nat.c (linux_nat_stop): Add argument.
9298 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9299 * gnu-nat.c (gnu_stop): Add 'self' argument.
9300 * darwin-nat.c (darwin_stop): Add 'self' argument.
9301
503a628d
TT
93022014-02-19 Tom Tromey <tromey@redhat.com>
9303
9304 * target.h (struct target_ops) <to_thread_name>: Add argument.
9305 * target.c (target_thread_name): Add argument.
9306 (update_current_target): Update.
9307 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9308
c15906d8
TT
93092014-02-19 Tom Tromey <tromey@redhat.com>
9310
9311 * target.h (struct target_ops) <to_extra_thread_info>: Add
9312 argument.
9313 (target_extra_thread_info): Add argument.
9314 * target.c (update_current_target): Update.
9315 * remote.c (remote_threads_extra_info): Add 'self' argument.
9316 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9317 argument.
9318 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9319 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9320 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9321 argument.
9322 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9323 argument.
9324 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9325 argument.
9326 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9327 argument.
9328
daf5e9b6
TT
93292014-02-19 Tom Tromey <tromey@redhat.com>
9330
9331 * target.h (struct target_ops) <to_program_signals>: Add argument.
9332 * target.c (target_program_signals): Add argument.
9333 * remote.c (remote_program_signals): Add 'self' argument.
9334
94bedb42
TT
93352014-02-19 Tom Tromey <tromey@redhat.com>
9336
9337 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9338 * target.c (target_pass_signals): Add argument.
9339 * remote.c (remote_pass_signals): Add 'self' argument.
9340 (remote_start_remote): Update.
9341 * procfs.c (procfs_pass_signals): Add 'self' argument.
9342 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9343 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9344 (linux_nat_create_inferior, linux_nat_attach): Update.
9345
da82bd6b
TT
93462014-02-19 Tom Tromey <tromey@redhat.com>
9347
9348 * windows-nat.c (windows_can_run): Add 'self' argument.
9349 * target.h (struct target_ops) <to_can_run>: Add argument.
9350 (target_can_run): Add argument.
9351 * target.c (debug_to_can_run): Add argument.
9352 (update_current_target): Update.
9353 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9354 * inf-child.c (inf_child_can_run): Add 'self' argument.
9355 * go32-nat.c (go32_can_run): Add 'self' argument.
9356
d796e1d6
TT
93572014-02-19 Tom Tromey <tromey@redhat.com>
9358
9359 * target.h (struct target_ops) <to_has_exited>: Add argument.
9360 (target_has_exited): Add argument.
9361 * target.c (debug_to_has_exited): Add argument.
9362 (update_current_target): Update.
9363
ff214e67
TT
93642014-02-19 Tom Tromey <tromey@redhat.com>
9365
9366 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9367 argument.
9368 (target_set_syscall_catchpoint): Add argument.
9369 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9370 argument.
9371 * target.c (update_current_target): Update.
9372
758e29d2
TT
93732014-02-19 Tom Tromey <tromey@redhat.com>
9374
9375 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9376 argument.
9377 (target_remove_exec_catchpoint): Add argument.
9378 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9379 (update_current_target): Update.
9380 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9381 argument.
9382
ba025e51
TT
93832014-02-19 Tom Tromey <tromey@redhat.com>
9384
9385 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9386 argument.
9387 (target_insert_exec_catchpoint): Add argument.
9388 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9389 (update_current_target): Update.
9390 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9391 argument.
9392
e98cf0cd
TT
93932014-02-19 Tom Tromey <tromey@redhat.com>
9394
9395 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9396 argument.
9397 (target_remove_vfork_catchpoint): Add argument.
9398 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9399 (update_current_target): Update.
9400 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9401 argument.
9402
3ecc7da0
TT
94032014-02-19 Tom Tromey <tromey@redhat.com>
9404
9405 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9406 argument.
9407 (target_insert_vfork_catchpoint): Add argument.
9408 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9409 (update_current_target): Update.
9410 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9411 argument.
9412
973fc227
TT
94132014-02-19 Tom Tromey <tromey@redhat.com>
9414
9415 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9416 argument.
9417 (target_remove_fork_catchpoint): Add argument.
9418 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9419 (update_current_target): Update.
9420 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9421 argument.
9422
a863b201
TT
94232014-02-19 Tom Tromey <tromey@redhat.com>
9424
9425 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9426 argument.
9427 (target_insert_fork_catchpoint): Add argument.
9428 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9429 (update_current_target): Update.
9430 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9431 argument.
9432
2e97a79e
TT
94332014-02-19 Tom Tromey <tromey@redhat.com>
9434
9435 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9436 argument.
9437 (target_post_startup_inferior): Add argument.
9438 * target.c (debug_to_post_startup_inferior): Add argument.
9439 (update_current_target): Update.
9440 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9441 argument.
9442 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9443 argument.
9444 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9445 argument.
9446 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9447 argument.
9448 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9449 'self' argument.
9450 (super_post_startup_inferior): Likewise.
9451 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9452 'self' argument.
9453 (super_post_startup_inferior): Likewise.
9454 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9455 Add 'self' argument.
9456 (super_post_startup_inferior): Likewise.
9457
71a9f134
TT
94582014-02-19 Tom Tromey <tromey@redhat.com>
9459
9460 * target.h (struct target_ops) <to_load>: Add argument.
9461 * target.c (target_load): Add argument.
9462 (debug_to_load): Add argument.
9463 (update_current_target): Update.
9464 * remote.c (remote_load): Add 'self' argument.
9465 * remote-sim.c (gdbsim_load): Add 'self' argument.
9466 * remote-mips.c (mips_load): Add 'self' argument.
9467 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9468 * monitor.c (monitor_load): Add 'self' argument.
9469 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9470
0a4f40a2
TT
94712014-02-19 Tom Tromey <tromey@redhat.com>
9472
9473 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9474 (target_terminal_info): Add argument.
9475 * target.c (debug_to_terminal_info): Add argument.
9476 (default_terminal_info): Likewise.
9477 * inflow.c (child_terminal_info): Add 'self' argument.
9478 * inferior.h (child_terminal_info): Add 'self' argument.
9479 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9480
ae3bd431
TT
94812014-02-19 Tom Tromey <tromey@redhat.com>
9482
9483 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9484 argument.
9485 (target_terminal_save_ours): Add argument.
9486 * target.c (debug_to_terminal_save_ours): Add argument.
9487 (update_current_target): Update.
9488 * inflow.c (terminal_save_ours): Add 'self' argument.
9489 * inferior.h (terminal_save_ours): Add 'self' argument.
9490
e3594fd1
TT
94912014-02-19 Tom Tromey <tromey@redhat.com>
9492
9493 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9494 (target_terminal_ours): Add argument.
9495 * target.c (debug_to_terminal_ours): Add argument.
9496 (update_current_target): Update.
9497 * remote.c (remote_terminal_ours): Add 'self' argument.
9498 (remote_close): Update.
9499 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9500 * inflow.c (terminal_ours): Add 'self' argument.
9501 * inferior.h (terminal_ours): Add 'self' argument.
9502 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9503
2e1e1a19
TT
95042014-02-19 Pedro Alves <palves@redhat.com>
9505 Tom Tromey <tromey@redhat.com>
9506
9507 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9508 argument.
9509 (target_terminal_ours_for_output): Add argument.
9510 * target.c (debug_to_terminal_ours_for_output): Add argument.
9511 (update_current_target): Update.
9512 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9513 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9514 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9515
d2f640d4
TT
95162014-02-19 Tom Tromey <tromey@redhat.com>
9517
9518 * target.h (struct target_ops) <to_terminal_inferior>: Add
9519 argument.
9520 * target.c (target_terminal_inferior): Add argument.
9521 (update_current_target): Update.
9522 * remote.c (remote_terminal_inferior): Add 'self' argument.
9523 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9524 * inflow.c (terminal_inferior): Add 'self' argument.
9525 * inferior.h (terminal_inferior): Add 'self' argument.
9526 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9527 (go32_terminal_inferior): Add 'self' argument.
9528
c42bf286
TT
95292014-02-19 Tom Tromey <tromey@redhat.com>
9530
9531 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9532 (target_terminal_init): Add argument.
9533 * target.c (debug_to_terminal_init): Add argument.
9534 (update_current_target): Update.
9535 * inflow.c (terminal_init_inferior): Add 'self' argument.
9536 * inferior.h (terminal_init_inferior): Add 'self' argument.
9537 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9538 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9539
c3a5ff89
TT
95402014-02-19 Tom Tromey <tromey@redhat.com>
9541
9542 * target.h (struct target_ops)
9543 <to_can_accel_watchpoint_condition>: Add argument.
9544 (target_can_accel_watchpoint_condition): Add argument.
9545 * target.c (debug_to_can_accel_watchpoint_condition): Add
9546 argument.
9547 (update_current_target): Update.
9548 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9549 'self' argument.
9550
31568a15
TT
95512014-02-19 Tom Tromey <tromey@redhat.com>
9552
9553 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9554 Add argument.
9555 (target_region_ok_for_hw_watchpoint): Add argument.
9556 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9557 (default_region_ok_for_hw_watchpoint): Add argument.
9558 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9559 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9560 argument.
9561 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9562 argument.
9563 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9564 argument.
9565 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9566 'self' argument.
9567 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9568 'self' argument.
9569 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9570 'self' argument.
9571 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9572 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9573 'self' argument.
9574 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9575 Add 'self' argument.
9576
7bb99c53
TT
95772014-02-19 Tom Tromey <tromey@redhat.com>
9578
9579 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9580 argument.
9581 (target_insert_watchpoint): Add argument.
9582 * target.c (debug_to_insert_watchpoint): Add argument.
9583 (update_current_target): Update.
9584 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9585 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9586 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9587 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9588 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9589 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9590 argument.
9591 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9592 (procfs_insert_hw_watchpoint): Add 'self' argument.
9593 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9594 argument.
9595 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9596 argument.
9597 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9598 argument.
9599 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9600 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9601 argument.
9602 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9603 'self' argument.
9604
11b5219a
TT
96052014-02-19 Tom Tromey <tromey@redhat.com>
9606
9607 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9608 argument.
9609 (target_remove_watchpoint): Add argument.
9610 * target.c (debug_to_remove_watchpoint): Add argument.
9611 (update_current_target): Update.
9612 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9613 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9614 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9615 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9616 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9617 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9618 argument.
9619 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9620 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9621 argument.
9622 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9623 argument.
9624 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9625 argument.
9626 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9627 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9628 argument.
9629 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9630 'self' argument.
9631
a64dc96c
TT
96322014-02-19 Tom Tromey <tromey@redhat.com>
9633
9634 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9635 argument.
9636 (target_remove_hw_breakpoint): Add argument.
9637 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9638 (update_current_target): Update.
9639 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9640 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9641 argument.
9642 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9643 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9644 argument.
9645 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9646 'self' argument.
9647
23a26771
TT
96482014-02-19 Tom Tromey <tromey@redhat.com>
9649
9650 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9651 argument.
9652 (target_insert_hw_breakpoint): Add argument.
9653 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9654 (update_current_target): Update.
9655 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9656 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9657 argument.
9658 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9659 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9660 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9661 argument.
9662 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9663 'self' argument.
9664
5461485a
TT
96652014-02-19 Tom Tromey <tromey@redhat.com>
9666
9667 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9668 argument.
9669 (target_can_use_hardware_watchpoint): Add argument.
9670 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9671 (update_current_target): Update.
9672 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9673 argument.
9674 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9675 argument.
9676 * remote.c (remote_check_watch_resources): Add 'self' argument.
9677 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9678 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9679 argument.
9680 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9681 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9682 argument.
9683 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9684 argument.
9685 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9686 argument.
9687 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9688 argument.
9689 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9690 argument.
9691 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9692 argument.
9693 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9694 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9695 argument.
9696 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9697 'self' argument.
9698
f045800c
TT
96992014-02-19 Tom Tromey <tromey@redhat.com>
9700
9701 * target.h (struct target_ops) <to_post_attach>: Add argument.
9702 (target_post_attach): Add argument.
9703 * target.c (debug_to_post_attach): Add argument.
9704 (update_current_target): Update.
9705 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9706 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9707 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9708 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9709 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9710
de90e03d
TT
97112014-02-19 Tom Tromey <tromey@redhat.com>
9712
9713 * windows-nat.c (windows_close): Add 'self' argument.
9714 * tracepoint.c (tfile_close): Add 'self' argument.
9715 * target.h (struct target_ops) <to_close>: Add argument.
9716 * target.c (target_close): Add argument.
9717 (update_current_target): Update.
9718 * remote.c (remote_close): Add 'self' argument.
9719 * remote-sim.c (gdbsim_close): Add 'self' argument.
9720 * remote-mips.c (mips_close): Add 'self' argument.
9721 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9722 * record-full.c (record_full_close): Add 'self' argument.
9723 * record-btrace.c (record_btrace_close): Add 'self' argument.
9724 * monitor.h (monitor_close): Add 'self' argument.
9725 * monitor.c (monitor_close): Add 'self' argument.
9726 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9727 * linux-nat.c (linux_nat_close): Add argument.
9728 * go32-nat.c (go32_close): Add 'self' argument.
9729 * exec.c (exec_close_1): Add 'self' argument.
9730 * ctf.c (ctf_close): Add 'self' argument.
9731 * corelow.c (core_close): Add 'self' argument.
9732 (core_close_cleanup): Update.
9733 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9734 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9735
9dd130a0
TT
97362014-02-19 Tom Tromey <tromey@redhat.com>
9737
9738 * remote.c (remote_load): New function.
9739 (init_remote_ops): Use it.
9740
46917d26
TT
97412014-02-19 Tom Tromey <tromey@redhat.com>
9742
9743 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9744 argument.
9745 * common/linux-btrace.h (linux_supports_btrace): Update.
9746 * remote.c (remote_supports_btrace): Add "self" argument.
9747 * target-delegates.c: Rebuild.
9748 * target.c (target_supports_btrace): Remove.
9749 * target.h (struct target_ops) <to_supports_btrace>: Add
9750 target_ops argument.
9751 (target_supports_btrace): New define.
9752
6b84065d
TT
97532014-02-19 Tom Tromey <tromey@redhat.com>
9754
9755 * record-full.c (record_full_beneath_to_resume_ops)
9756 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9757 (record_full_beneath_to_wait)
9758 (record_full_beneath_to_store_registers_ops)
9759 (record_full_beneath_to_store_registers)
9760 (record_full_beneath_to_xfer_partial_ops)
9761 (record_full_beneath_to_xfer_partial)
9762 (record_full_beneath_to_insert_breakpoint_ops)
9763 (record_full_beneath_to_insert_breakpoint)
9764 (record_full_beneath_to_remove_breakpoint_ops)
9765 (record_full_beneath_to_remove_breakpoint)
9766 (record_full_beneath_to_stopped_by_watchpoint)
9767 (record_full_beneath_to_stopped_data_address)
9768 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9769 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9770 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9771 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9772 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9773 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9774 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9775 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9776 (record_full_resume, record_full_wait_1)
9777 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9778 (record_full_store_registers, record_full_xfer_partial)
9779 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9780 (record_full_async, record_full_core_xfer_partial): Use target
9781 delegation.
9782 * target-delegates.c: Rebuild.
9783 * target.c (current_xfer_partial): Remove.
9784 (update_current_target): Do not INHERIT or de_fault
9785 to_insert_breakpoint, to_remove_breakpoint,
9786 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9787 to_is_async_p, to_async. Do not set to_xfer_partial field.
9788 (default_xfer_partial): Simplify.
9789 (current_xfer_partial): Remove.
9790 (target_wait, target_resume): Simplify.
9791 (find_default_can_async_p, find_default_is_async_p): Update.
9792 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9793 to_xfer_partial, to_stopped_by_watchpoint,
9794 to_stopped_data_address.
9795 (target_store_registers): Simplify.
9796 (forward_target_remove_breakpoint)
9797 (forward_target_insert_breakpoint): Remove.
9798 (target_remove_breakpoint, target_insert_breakpoint)
9799 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9800 * target.h (struct target_ops) <to_resume, to_wait,
9801 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9802 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9803 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9804 markup.
9805 (forward_target_remove_breakpoint)
9806 (forward_target_insert_breakpoint): Remove.
9807 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9808 directly.
9809 (record_btrace_insert_breakpoint): Delegate directly.
9810
1101cb7b
TT
98112014-02-19 Tom Tromey <tromey@redhat.com>
9812
9813 PR build/7701:
9814 * target-delegates.c: New file.
9815 * target.c: Include target-delegates.c.
9816 (init_dummy_target): Call install_dummy_methods.
9817 (complete_target_initialization): Call install_delegators.
9818 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9819 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9820 * make-target-delegates: New file.
9821
8b06beed
TT
98222014-02-19 Tom Tromey <tromey@redhat.com>
9823
9824 * record.c (find_record_target): Use find_target_at.
9825 * target.c (find_target_at): New function.
9826 * target.h (find_target_at): Declare.
9827
6a109b6b
TT
98282014-02-19 Tom Tromey <tromey@redhat.com>
9829
9830 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9831 Add 'ops' argument.
9832 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9833 'ops' argument.
9834 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9835 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9836 'ops' argument.
9837 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9838 argument.
9839 * linux-nat.c (save_sigtrap): Update.
9840 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9841 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9842 (linux_nat_close): Update.
9843 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9844 argument.
9845 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9846 argument.
9847 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9848 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9849 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9850 (tmp_to_async): Add 'ops' argument.
9851 (record_full_stopped_by_watchpoint, record_full_async)
9852 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9853 argument.
9854 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9855 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9856 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9857 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9858 (remote_is_async_p, remote_async): Add 'ops' argument.
9859 (remote_stopped_data_address): Update.
9860 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9861 * target.c (update_current_target)
9862 (find_default_can_async_p, find_default_is_async_p): Update.
9863 (init_dummy_target): Update.
9864 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9865 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9866 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9867 (target_can_async_p, target_is_async_p, target_async)
9868 (target_stopped_by_watchpoint): Update.
9869
e095146b
YQ
98702014-02-19 Yao Qi <yao@codesourcery.com>
9871
9872 PR gdb/16220
9873 * gdbarch.sh: Remove startup_gdbarch.
9874 * gdbarch.c: Regenerated.
9875 * gdbarch.h: Likewise.
9876
bc3c6b36
KB
98772014-02-17 Kevin Buettner <kevinb@redhat.com>
9878
9879 * rl78-tdep.c (rl78_g10_register_name): New function.
9880 (rl78_return_value): Add g10 support.
9881 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9882 g10.
9883
98dc0167 98842014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
9885
9886 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9887 (SUBDIR_GUILE_SRCS): Ditto.
9888 (scm-gsmob.o): Ditto.
9889
842c05cd
YQ
98902014-02-17 Yao Qi <yao@codesourcery.com>
9891
9892 * gnu-nat.c (ILL_RPC): Declare defined function.
9893
25c0bd04
YQ
98942014-02-17 Yao Qi <yao@codesourcery.com>
9895
9896 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9897 mach_msg_type_number_t.
9898 (gnu_write_inferior): Likewise.
9899
a9a758e3
YQ
99002014-02-17 Yao Qi <yao@codesourcery.com>
9901
9902 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9903 in format string.
9904 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9905 (inf_validate_procs, inf_signal): Likewise.
9906 (S_exception_raise_request): Likewise.
9907 (do_mach_notify_dead_name): Likewise.
9908 (steal_exc_port): Likewise.
9909 (gnu_read_inferior): Change 'copy_count''s type to
9910 mach_msg_type_number_t.
9911 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9912 format string.
9913
bae8023e
TS
99142014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9915
c82f56d9
TS
9916 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9917 flag. Adjust all users; in particular...
9918 (gnu_wait): ..., don't decrement its value in here...
9919 (gnu_create_inferior): ..., and instead set the flag in here,
9920 around the startup_inferior call, and call that one with
9921 START_INFERIOR_TRAPS_EXPECTED.
9922
3398af6a
TS
9923 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9924 (ILL_RPC): ... new macro.
9925 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9926 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9927 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9928 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9929 functions with ILL_RPC macro.
9930 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9931 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9932 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9933 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9934 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9935 (S_proc_getlogin_reply, S_proc_getsid_reply)
9936 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9937 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9938 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9939 (S_proc_getnports_reply, S_proc_is_important_reply)
9940 (S_proc_get_code_reply): New stub functions, generated with
9941 ILL_RPC macro.
9942
d47642c9
TS
9943 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9944 collected the type check structures.
9945
bae8023e
TS
9946 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9947
8a55ffb0
DE
99482014-02-14 Doug Evans <dje@google.com>
9949
9950 * target.c (target_write_partial): Fix result type.
9951
c2853f3d
JM
99522014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9953
9954 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9955 the proper offsets to access fpregset_t.
9956
ac61d2db
SA
99572014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9958
9959 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9960 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9961 * h8300-tdep.c (setmachinelist): Remove global.
9962 * hppa-tdep.c (hppa_sigtramp): Remove global.
9963 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9964 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9965 * ravenscar-thread.c (update_target_observer): Remove global.
9966 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9967
9d2d0b8b
TT
99682014-02-12 Tom Tromey <tromey@redhat.com>
9969
9970 * common/rsp-low.c: Update comments.
9971 * common/rsp-low.h: Update comments.
9972
a7191e8b
TT
99732014-02-12 Tom Tromey <tromey@redhat.com>
9974
9975 * common/rsp-low.c (convert_ascii_to_int): Remove.
9976 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9977
ff0e980e
TT
99782014-02-12 Tom Tromey <tromey@redhat.com>
9979
9980 * common/rsp-low.h (unhexify): Don't declare.
9981 * common/rsp-low.c (unhexify): Remove.
9982
e9371aff
TT
99832014-02-12 Tom Tromey <tromey@redhat.com>
9984
9985 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9986 * common/rsp-low.c (convert_int_to_ascii): Remove.
9987
971dc0b8
TT
99882014-02-12 Tom Tromey <tromey@redhat.com>
9989
9990 * common/rsp-low.h (hexify): Don't declare.
9991 * common/rsp-low.c (hexify): Remove.
9992
0a822afb
TT
99932014-02-12 Tom Tromey <tromey@redhat.com>
9994
9995 * common/rsp-low.c (hexify): Never take strlen of argument.
9996
9f1b45b0
TT
99972014-02-12 Tom Tromey <tromey@redhat.com>
9998
9999 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10000 * remote.c (extended_remote_run, remote_rcmd)
10001 (remote_download_trace_state_variable, remote_save_trace_data)
10002 (remote_set_trace_notes): Update.
10003 * tracepoint.c (encode_source_string, tfile_write_status)
10004 (tfile_write_uploaded_tsv): Update.
10005
9c3d6531
TT
100062014-02-12 Tom Tromey <tromey@redhat.com>
10007
10008 * tracepoint.c: Include rsp-low.h.
10009 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10010 * remote.c: Include rsp-low.h.
10011 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10012 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10013 (remote_unescape_input): Move to common/rsp-low.c.
10014 * common/rsp-low.h: New file.
10015 * common/rsp-low.c: New file.
10016 * Makefile.in (SFILES): Add common/rsp-low.c.
10017 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10018 (COMMON_OBS): Add rsp-low.o.
10019 (rsp-low.o): New target.
10020
01fd3ea5
TT
100212014-02-12 Tom Tromey <tromey@redhat.com>
10022
10023 * utils.h: Include print-utils.h.
10024 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10025 (int_string, core_addr_to_string, core_addr_to_string_nz)
10026 (hex_string, hex_string_custom): Don't declare.
10027 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10028 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10029 (hex_string_custom, int_string, core_addr_to_string)
10030 (core_addr_to_string_nz, host_address_to_string): Move to
10031 common/print-utils.c.
10032 * common/print-utils.h: New file.
10033 * common/print-utils.c: New file
10034 * Makefile.in (SFILES): Add common/print-utils.c.
10035 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10036 (COMMON_OBS): Add print-utils.o.
10037 (print-utils.o): New target.
10038
9fb50108
TT
100392014-02-12 Tom Tromey <tromey@redhat.com>
10040
10041 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10042
0548b5db
MK
100432014-02-12 Mark Kettenis <kettenis@gnu.org>
10044
10045 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10046
493443a4
MK
100472014-02-12 Mark Kettenis <kettenis@gnu.org>
10048
10049 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10050 if a PT_IO ptrace request returns sucessfully but indicates that 0
10051 bytes were transferred.
10052
706d0883
PA
100532014-02-12 Pedro Alves <palves@redhat.com>
10054 Kevin Buettner <kevinb@redhat.com>
10055
10056 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10057 TYPE_INSTANCE_FLAG_CODE_SPACE.
10058
5caa2f0b
PA
100592014-02-12 Pedro Alves <palves@redhat.com>
10060
10061 * h8300-tdep.c (pseudo_from_raw_register)
10062 (raw_from_pseudo_register): New functions.
10063 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10064 them.
10065
76fd5f74
PA
100662014-02-12 Pedro Alves <palves@redhat.com>
10067
10068 * h8300-tdep.c (h8300_register_sim_regno): New function.
10069 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10070 gdbarch_register_sim_regno hook.
10071
8f008406
SA
100722014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10073
10074 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10075
195abc10
SA
100762014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10077
10078 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10079
93ffa5b9
MK
100802014-02-12 Mark Kettenis <kettenis@gnu.org>
10081
10082 * obsd-tdep.h (obsd_init_abi): New prototype.
10083 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10084 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10085 (obsd_init_abi): New functions.
10086 * i386obsd-tdep.c: Include "obsd-tdep.h".
10087 (i386obsd_init_abi): Call obsd_init_abi.
10088 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10089 (amd64obsd_init_abi): Call obsd_init_abi.
10090 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10091 obsd-tdep.c to gdb_target_obs.
10092
49caec94
JM
100932014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10094
10095 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10096 double float arguments to 16-byte in the argument slots.
10097
e1402065
DE
100982014-02-11 Doug Evans <xdje42@gmail.com>
10099
10100 * configure.ac: Don't crash if pkg-config is not found and guile
10101 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10102 in guile checks.
10103 * configure: Regenerate.
10104
edcc890f
YQ
101052014-02-11 Yao Qi <yao@codesourcery.com>
10106
10107 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10108 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10109 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10110 * gnu-nat.c (gnu_xfer_memory): Likewise.
10111 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10112 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10113 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10114 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10115
9b409511
YQ
101162014-02-11 Yao Qi <yao@codesourcery.com>
10117
10118 * target.h (enum target_xfer_error): Rename to ...
10119 (enum target_xfer_status): ... it. New. All users updated.
10120 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10121 New.
10122 (TARGET_XFER_STATUS_ERROR_P): New macro.
10123 (target_xfer_error_to_string): Remove declaration.
10124 (target_xfer_status_to_string): Declare.
10125 (target_xfer_partial_ftype): Adjust it.
10126 (struct target_ops) <to_xfer_partial>: Return
10127 target_xfer_status. Add argument xfered_len. Update
10128 comments.
10129 * target.c (target_xfer_error_to_string): Rename to ...
10130 (target_xfer_status_to_string): ... it. New. All callers
10131 updated.
10132 (target_read_live_memory): Likewise. Call target_xfer_partial
10133 instead of target_read.
10134 (memory_xfer_live_readonly_partial): Return
10135 target_xfer_status. Add argument xfered_len.
10136 (raw_memory_xfer_partial): Likewise.
10137 (memory_xfer_partial_1): Likewise.
10138 (memory_xfer_partial): Likewise.
10139 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10140 properly. Update debug message.
10141 (default_xfer_partial, current_xfer_partial): Likewise.
10142 (target_write_partial): Likewise.
10143 (target_read_partial): Likewise. All callers updated.
10144 (read_whatever_is_readable): Likewise.
10145 (target_write_with_progress): Likewise.
10146 (target_read_alloc_1): Likewise.
10147
10148 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10149 * auxv.c (procfs_xfer_auxv): Likewise.
10150 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10151 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10152 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10153 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10154 * corefile.c (read_memory): Adjust.
10155 * corelow.c (core_xfer_partial): Likewise.
10156 * ctf.c (ctf_xfer_partial): Likewise.
10157 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10158 updated.
10159 (darwin_xfer_partial): Likewise.
10160 * exec.c (section_table_xfer_memory_partial): Likewise. All
10161 callers updated.
10162 (exec_xfer_partial): Likewise.
10163 * exec.h (section_table_xfer_memory_partial): Update
10164 declaration.
10165 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10166 negative.
10167 (gnu_xfer_partial): Likewise.
10168 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10169 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10170 (ia64_hpux_xfer_solib_got): Likewise.
10171 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10172 type of 'partial_len' to ULONGEST.
10173 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10174 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10175 (linux_nat_xfer_partial): Likewise.
10176 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10177 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10178 * monitor.c (monitor_xfer_memory): Likewise.
10179 (monitor_xfer_partial): Likewise.
10180 * procfs.c (procfs_xfer_partial): Likewise.
10181 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10182 * record-full.c (record_full_xfer_partial): Likewise.
10183 (record_full_core_xfer_partial): Likewise.
10184 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10185 (gdbsim_xfer_partial): Likewise.
10186 * remote.c (remote_write_bytes_aux): Likewise. All callers
10187 updated.
10188 (remote_write_bytes, remote_read_bytes): Likewise. All
10189 callers updated.
10190 (remote_flash_erase): Likewise. All callers updated.
10191 (remote_write_qxfer): Likewise. All callers updated.
10192 (remote_read_qxfer): Likewise. All callers updated.
10193 (remote_xfer_partial): Likewise.
10194 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10195 (rs6000_xfer_shared_libraries): Likewise.
10196 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10197 (sol_thread_xfer_partial): Likewise.
10198 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10199 (sparc_xfer_partial): Likewise.
10200 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10201 updated.
10202 (spu_xfer_partial): Likewise.
10203 * spu-multiarch.c (spu_xfer_partial): Likewise.
10204 * tracepoint.c (tfile_xfer_partial): Likewise.
10205 * windows-nat.c (windows_xfer_memory): Likewise.
10206 (windows_xfer_shared_libraries): Likewise.
10207 (windows_xfer_partial): Likewise.
10208 * valprint.c: Replace 'target_xfer_error' with
10209 'target_xfer_status' in comments.
10210
a8e63083
JB
102112014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10212
10213 Checked in by Joel Brobecker <brobecker@adacore.com>.
10214 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10215
e86b67d3
JB
102162014-02-11 Joel Brobecker <brobecker@adacore.com>
10217
10218 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10219 function parameters.
10220
4b7d1f7f
WN
102212014-02-10 Will Newton <will.newton@linaro.org>
10222
10223 * elfread.c (elf_rel_plt_read): Look for a .got section if
10224 looking up .got.plt fails.
10225 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10226 on address passed to elf_gnu_ifunc_record_cache.
10227 (elf_gnu_ifunc_resolve_addr): Likewise.
10228 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10229
961842b2
JM
102302014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10231
10232 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10233 (X_RETTURN): New macro.
10234 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10235
10236 * sparc64-tdep.c (sparc64_init_abi): Hook
10237 sparc_in_function_epilogue_p.
10238
3f03e7b1
GB
102392014-02-10 Gary Benson <gbenson@redhat.com>
10240
10241 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10242 Rename name_matcher to symbol_matcher.
10243
96f861ef
GB
102442014-02-10 Gary Benson <gbenson@redhat.com>
10245
10246 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10247 Use expand_symtabs_file_matcher_ftype and
10248 expand_symtabs_symbol_matcher_ftype.
10249
ee01b665
JB
102502014-02-10 Joel Brobecker <brobecker@adacore.com>
10251
10252 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10253 (struct ada_symbol_cache): New.
10254 (ada_free_symbol_cache): Forward declare.
10255 (struct ada_pspace_data): New.
10256 (ada_pspace_data_handle): New static global.
10257 (get_ada_pspace_data, ada_pspace_data_cleanup)
10258 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10259 (cache_space, cache): Delete, now folded inside struct
10260 ada_pspace_data.
10261 (ada_get_symbol_cache): New function.
10262 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10263 implementation.
10264 (_initialize_ada_language): Remove initialization of cache_space.
10265 Move call to observer_attach_inferior_exit up, grouping it
10266 with the other observer registrations inside this function.
10267 Rename command to be more general. Add call to
10268 register_program_space_data_with_cleanup.
10269
143adbbf
JB
102702014-02-10 Joel Brobecker <brobecker@adacore.com>
10271
10272 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10273 ada_new_objfile_observer.
10274 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10275 (_initialize_tasks): Update uses of ada_new_objfile_observer
10276 and ada_tasks_normal_stop_observer.
10277
aa4fb036
JB
102782014-02-10 Joel Brobecker <brobecker@adacore.com>
10279
10280 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10281 returned by the 'Length attribute to integer.
10282
9dee8cc6
JB
102832014-02-10 Joel Brobecker <brobecker@adacore.com>
10284
10285 * ada-lang.c (_initialize_ada_language): Initialize
10286 cache_space obstack.
10287
3d9434b5
JB
102882014-02-10 Joel Brobecker <brobecker@adacore.com>
10289
10290 * ada-lang.c (HASH_SIZE): New macro.
10291 (struct cache_entry): New type.
10292 (cache_space, cache): New static globals.
10293 (ada_clear_symbol_cache, find_entry): New functions.
10294 (lookup_cached_symbol, cache_symbol): Implement.
10295 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10296 (_initialize_ada_language): Attach ada_new_objfile_observer
10297 and ada_free_objfile_observer.
10298
f0c5f9b2
JB
102992014-02-10 Joel Brobecker <brobecker@adacore.com>
10300
10301 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10302 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10303 struct block * parameter.
10304 (ada_lookup_symbol_list_worker): Constify local variable "block".
10305 Remove cast which is no longer necessary.
10306
ed3ef339
DE
103072014-02-10 Doug Evans <xdje42@gmail.com>
10308
10309 Add Guile as an extension language.
10310 * NEWS: Mention Guile scripting.
10311 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10312 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10313 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10314 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10315 (CLIBS): Add GUILE_LIBS.
10316 (install-guile): New rule.
10317 (guile.o): New rule.
10318 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10319 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10320 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10321 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10322 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10323 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10324 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10325 * configure.ac: New option --with-guile.
10326 * configure: Regenerate.
10327 * config.in: Regenerate.
10328 * auto-load.c: Remove #include "python/python.h". Add #include
10329 "gdb/section-scripts.h".
10330 (source_section_scripts): Handle Guile scripts.
10331 (_initialize_auto_load): Add name of Guile objfile script to
10332 scripts-directory help text.
10333 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10334 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10335 (struct breakpoint): New member scm_bp_object.
10336 * defs.h (enum command_control_type): New value guile_control.
10337 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10338 "extension.h".
10339 (show_user): Update comment.
10340 (_initialize_cli_cmds): Update help text for "show user". Update help
10341 text for max-user-call-depth.
10342 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10343 "extension.h".
10344 (multi_line_command_p): Add guile_control.
10345 (print_command_lines): Handle guile_control.
10346 (execute_control_command, recurse_read_control_structure): Ditto.
10347 (process_next_line): Recognize "guile" commands.
10348 * disasm.c (gdb_disassemble_info): Make non-static.
10349 * disasm.h: #include "dis-asm.h".
10350 (struct gdbarch): Add forward decl.
10351 (gdb_disassemble_info): Declare.
10352 * extension.c: #include "guile/guile.h".
10353 (extension_languages): Add guile.
10354 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10355 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10356 * gdbtypes.c (get_unsigned_type_max): New function.
10357 (get_signed_type_minmax): New function.
10358 * gdbtypes.h (get_unsigned_type_max): Declare.
10359 (get_signed_type_minmax): Declare.
10360 * guile/README: New file.
10361 * guile/guile-internal.h: New file.
10362 * guile/guile.c: New file.
10363 * guile/guile.h: New file.
10364 * guile/scm-arch.c: New file.
10365 * guile/scm-auto-load.c: New file.
10366 * guile/scm-block.c: New file.
10367 * guile/scm-breakpoint.c: New file.
10368 * guile/scm-disasm.c: New file.
10369 * guile/scm-exception.c: New file.
10370 * guile/scm-frame.c: New file.
10371 * guile/scm-gsmob.c: New file.
10372 * guile/scm-iterator.c: New file.
10373 * guile/scm-lazy-string.c: New file.
10374 * guile/scm-math.c: New file.
10375 * guile/scm-objfile.c: New file.
10376 * guile/scm-ports.c: New file.
10377 * guile/scm-pretty-print.c: New file.
10378 * guile/scm-safe-call.c: New file.
10379 * guile/scm-string.c: New file.
10380 * guile/scm-symbol.c: New file.
10381 * guile/scm-symtab.c: New file.
10382 * guile/scm-type.c: New file.
10383 * guile/scm-utils.c: New file.
10384 * guile/scm-value.c: New file.
10385 * guile/lib/gdb.scm: New file.
10386 * guile/lib/gdb/boot.scm: New file.
10387 * guile/lib/gdb/experimental.scm: New file.
10388 * guile/lib/gdb/init.scm: New file.
10389 * guile/lib/gdb/iterator.scm: New file.
10390 * guile/lib/gdb/printing.scm: New file.
10391 * guile/lib/gdb/types.scm: New file.
10392 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10393 (VPATH): Add $(GUILE_SRCDIR).
10394 (GUILE_DIR): New variable.
10395 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10396 (all): Add stamp-guile dependency.
10397 (stamp-guile): New rule.
10398 (clean-guile, install-guile, uninstall-guile): New rules.
10399 (install-only): Add install-guile dependency.
10400 (uninstall): Add uninstall-guile dependency.
10401 (clean): Add clean-guile dependency.
10402
ac020ec5
DE
104032014-02-09 Doug Evans <xdje42@gmail.com>
10404
10405 Revert this patch (which I approved, mea culpa).
10406
10407 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10408
10409 * Makefile.in (all-lib): Remove.
10410 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10411
2a081c59
JK
104122014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10413
10414 Fix Python stack corruption.
10415 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10416 gdb_py_longest.
10417
0a6bd22d
MK
104182014-02-08 Mark Kettenis <kettenis@gnu.org>
10419
10420 * Makefile.in (all-lib): Remove.
10421 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10422
1a860409
DE
104232014-02-07 Doug Evans <dje@google.com>
10424
10425 * extension-priv.h (extension_language_script_ops): Add comment.
10426 (extension_language_ops): Add comment.
caf5a491 10427 (active_ext_lang_state): Fix typo in comment.
1a860409 10428
d137e6dc
PA
104292014-02-07 Pedro Alves <palves@redhat.com>
10430
0dcb32c3 10431 PR breakpoints/16292
d137e6dc
PA
10432 * infrun.c (handle_signal_stop) <signal arrives while stepping
10433 over a breakpoint>: Switch back to the stepping thread.
10434
ce6d0892
YQ
104352014-02-07 Yao Qi <yao@codesourcery.com>
10436
10437 * target.c (target_xfer_partial): Return zero if LEN is zero.
10438
2ed4b548
YQ
104392014-02-07 Yao Qi <yao@codesourcery.com>
10440
10441 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10442 (ld_so_xfer_auxv): Likewise.
10443 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10444 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10445 * corelow.c (core_xfer_partial): Likewise.
10446 * ctf.c (ctf_xfer_partial): Likewise.
10447 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10448 (darwin_xfer_partial): Likewise.
10449 * exec.c (exec_xfer_partial): Likewise.
10450 * gnu-nat.c (gnu_xfer_partial): Likewise.
10451 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10452 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10453 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10454 * linux-nat.c (linux_xfer_siginfo): Likewise.
10455 (linux_proc_xfer_spu): Likewise.
10456 * procfs.c (procfs_xfer_partial): Likewise.
10457 * record-full.c (record_full_xfer_partial): Likewise.
10458 (record_full_core_xfer_partial): Likewise.
10459 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10460 * remote.c (remote_write_qxfer): Likewise.
10461 (remote_write_qxfer, remote_read_qxfer): Likewise.
10462 (remote_xfer_partial): Likewise.
10463 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10464 (rs6000_xfer_shared_libraries): Likewise.
10465 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10466 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10467 (spu_xfer_partial): Likewise.
10468 * target.c (memory_xfer_partial_1): Likewise.
10469 * tracepoint.c (tfile_xfer_partial): Likewise.
10470 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10471 (windows_xfer_partial): Likewise.
10472
c09f20e4
YQ
104732014-02-07 Yao Qi <yao@codesourcery.com>
10474
10475 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10476 comments.
10477 (core_xfer_shared_libraries_aix): Likewise.
10478 * gdbarch.c, gdbarch.h: Regenerated.
10479 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10480 ULONGEST. Change 'len_avail' type to ULONGEST.
10481 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10482 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10483 declaration.
10484 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10485
8635b3bf
YQ
104862014-02-07 Yao Qi <yao@codesourcery.com>
10487
10488 * corefile.c (memory_error): Get 'exception' from ERR and pass
10489 'exception' to throw_error.
10490
6dddc817
DE
104912014-02-06 Doug Evans <xdje42@gmail.com>
10492
10493 * configure.ac (libpython checking): Remove all but python.o from
10494 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10495 * configure: Regenerate.
10496
10497 * Makefile.in (SFILES): Add extension.c.
10498 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10499 (COMMON_OBS): Add extension.o.
10500 * extension.h: New file.
10501 * extension-priv.h: New file.
10502 * extension.c: New file.
10503
10504 * python/python-internal.h: #include "extension.h".
10505 (gdbpy_auto_load_enabled): Declare.
10506 (gdbpy_apply_val_pretty_printer): Declare.
10507 (gdbpy_apply_frame_filter): Declare.
10508 (gdbpy_preserve_values): Declare.
10509 (gdbpy_breakpoint_cond_says_stop): Declare.
10510 (gdbpy_breakpoint_has_cond): Declare.
10511 (void source_python_script_for_objfile): Delete.
10512 * python/python.c: #include "extension-priv.h".
10513 Delete inclusion of "observer.h".
10514 (extension_language_python): Moved here and renamed from
10515 script_language_python in py-auto-load.c.
10516 Redefined to be of type extension_language_defn.
10517 (python_extension_script_ops): New global.
10518 (python_extension_ops): New global.
10519 (struct python_env): New member previous_active.
10520 (restore_python_env): Call restore_active_ext_lang.
10521 (ensure_python_env): Call set_active_ext_lang.
10522 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10523 New arg extlang.
10524 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10525 New arg extlang.
10526 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10527 New arg extlang.
10528 (gdbpy_eval_from_control_command): Renamed from
10529 eval_python_from_control_command, made static. New arg extlang.
10530 (gdbpy_source_script) Renamed from source_python_script, made static.
10531 New arg extlang.
10532 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10533 result to int. New arg extlang.
10534 (gdbpy_source_objfile_script): Renamed from
10535 source_python_script_for_objfile, made static. New arg extlang.
10536 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10537 static. New args extlang, extlang_printers. Change result type to
10538 "void".
10539 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10540 static. New arg extlang. Rename arg printers to extlang_printers
10541 and change type to ext_lang_type_printers *.
10542 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10543 static. Replace argument arg with extlang, extlang_printers.
10544 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10545 (!HAVE_PYTHON, source_python_script): Delete.
10546 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10547 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10548 (!HAVE_PYTHON, start_type_printers): Delete.
10549 (!HAVE_PYTHON, apply_type_printers): Delete.
10550 (!HAVE_PYTHON, free_type_printers): Delete.
10551 (_initialize_python): Delete call to observer_attach_before_prompt.
10552 (finalize_python): Set/restore active extension language.
10553 (gdbpy_finish_initialization) Renamed from
10554 finish_python_initialization, made static. New arg extlang.
10555 (gdbpy_initialized): New function.
10556 * python/python.h: #include "extension.h". Delete #include
10557 "value.h", "mi/mi-cmds.h".
10558 (extension_language_python): Declare.
10559 (GDBPY_AUTO_FILE_NAME): Delete.
10560 (enum py_bt_status): Moved to extension.h and renamed to
10561 ext_lang_bt_status.
10562 (enum frame_filter_flags): Moved to extension.h.
10563 (enum py_frame_args): Moved to extension.h and renamed to
10564 ext_lang_frame_args.
10565 (finish_python_initialization): Delete.
10566 (eval_python_from_control_command): Delete.
10567 (source_python_script): Delete.
10568 (apply_val_pretty_printer): Delete.
10569 (apply_frame_filter): Delete.
10570 (preserve_python_values): Delete.
10571 (gdbpy_script_language_defn): Delete.
10572 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10573 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10574
10575 * auto-load.c: #include "extension.h".
10576 (GDB_AUTO_FILE_NAME): Delete.
10577 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10578 (script_language_gdb): Delete, moved to extension.c and renamed to
10579 extension_language_gdb.
10580 (source_gdb_script_for_objfile): Delete.
10581 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10582 (loaded_script): Change type of language member to
10583 struct extension_language_defn *.
10584 (init_loaded_scripts_info): Initialize
10585 unsupported_script_warning_printed.
10586 (maybe_add_script): Make static. Change type of language arg to
10587 struct extension_language_defn *.
10588 (clear_section_scripts): Reset unsupported_script_warning_printed.
10589 (auto_load_objfile_script_1): Rewrite to use extension language API.
10590 (auto_load_objfile_script): Make public. Remove support-compiled-in
10591 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10592 (source_section_scripts): Rewrite to use extension language API.
10593 (load_auto_scripts_for_objfile): Rewrite to use
10594 auto_load_scripts_for_objfile.
10595 (collect_matching_scripts_data): Change type of language member to
10596 struct extension_language_defn *.
10597 (auto_load_info_scripts): Change type of language arg to
10598 struct extension_language_defn *.
10599 (unsupported_script_warning_print): New function.
10600 (script_not_found_warning_print): Make static.
10601 (_initialize_auto_load): Rewrite construction of scripts-directory
10602 help.
10603 * auto-load.h (struct objfile): Add forward decl.
10604 (struct script_language): Delete.
10605 (struct auto_load_pspace_info): Add forward decl.
10606 (struct extension_language_defn): Add forward decl.
10607 (maybe_add_script): Delete.
10608 (auto_load_objfile_script): Declare.
10609 (script_not_found_warning_print): Delete.
10610 (auto_load_info_scripts): Update prototype.
10611 (auto_load_gdb_scripts_enabled): Declare.
10612 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10613 auto_load_python_scripts_enabled and made public.
10614 (script_language_python): Delete, moved to python.c.
10615 (gdbpy_script_language_defn): Delete.
10616 (info_auto_load_python_scripts): Update to use
10617 extension_language_python.
10618
10619 * breakpoint.c (condition_command): Replace call to
10620 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10621 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10622 with call to breakpoint_ext_lang_cond_says_stop.
10623 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10624 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10625 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10626 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10627 New arg slang.
10628 (local_setattro): Print name of extension language with existing
10629 stop condition.
10630
10631 * valprint.c (val_print, value_print): Update to call
10632 apply_ext_lang_val_pretty_printer.
10633 * cp-valprint.c (cp_print_value): Update call to
10634 apply_ext_lang_val_pretty_printer.
10635 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10636 (gdbpy_apply_val_pretty_printer): Renamed from
10637 apply_val_pretty_printer. New arg extlang.
10638 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10639
10640 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10641 extension language API.
10642 * cli/cli-script.c (execute_control_command): Update to call
10643 eval_ext_lang_from_control_command.
10644
10645 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10646 enum ext_lang_bt_status values. Update call to
10647 apply_ext_lang_frame_filter.
10648 (mi_cmd_stack_list_locals): Ditto.
10649 (mi_cmd_stack_list_args): Ditto.
10650 (mi_cmd_stack_list_variables): Ditto.
10651 * mi/mi-main.c: Delete #include "python/python-internal.h".
10652 Add #include "extension.h".
10653 (mi_cmd_list_features): Replace reference to python internal variable
10654 gdb_python_initialized with call to ext_lang_initialized_p.
10655
10656 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10657 Update to use enum ext_lang_frame_args. Update to call
10658 apply_ext_lang_frame_filter.
10659 * python/py-framefilter.c (extract_sym): Update to use enum
10660 ext_lang_bt_status.
10661 (extract_value, py_print_type, py_print_value): Ditto.
10662 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10663 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10664 (py_print_frame): Ditto.
10665 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10666 New arg extlang. Update to use enum ext_lang_bt_status.
10667
10668 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10669 finish_python_initialization. Replace with call to
10670 finish_ext_lang_initialization.
10671
10672 * typeprint.c (do_free_global_table): Update to call
10673 free_ext_lang_type_printers.
10674 (create_global_typedef_table): Update to call
10675 start_ext_lang_type_printers.
10676 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10677 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10678 (type_print_options): Change type of global_printers from "void *"
10679 to "struct ext_lang_type_printers *".
10680
10681 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10682 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10683 (gdbpy_preserve_values): Renamed from preserve_python_values.
10684 New arg extlang.
10685 (!HAVE_PYTHON, preserve_python_values): Delete.
10686
10687 * utils.c (quit_flag): Delete, moved to extension.c.
10688 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10689 extension.c.
10690
10691 * eval.c: Delete #include "python/python.h".
10692 * main.c: Delete #include "python/python.h".
10693
10694 * defs.h: Update comment.
10695
6af79985
JB
106962014-02-06 Joel Brobecker <brobecker@adacore.com>
10697
10698 GDB 7.7 released.
10699
12c5175d
MK
107002014-02-05 Mark Kettenis <kettenis@gnu.org>
10701
10702 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10703 defined.
10704
8dc5b319
YQ
107052014-02-05 Yao Qi <yao@codesourcery.com>
10706
10707 * remote.c (remote_pass_signals): Remove local 'buf' and use
10708 rs->buf.
10709 (remote_program_signals): Likewise.
10710
de7b2893
YQ
107112014-02-05 Yao Qi <yao@codesourcery.com>
10712
10713 * ctf.c: Include "inferior.h" and "gdbthread.h".
10714 (CTF_PID): A new macro.
10715 (ctf_open): Call inferior_appeared and add_thread_silent.
10716 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10717 (ctf_thread_alive): New function.
10718 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10719
66d032ac
YQ
107202014-02-05 Yao Qi <yao@codesourcery.com>
10721
10722 Revert this patch:
10723
10724 2013-05-24 Yao Qi <yao@codesourcery.com>
10725
10726 * tracepoint.c (TFILE_PID): Remove.
10727 (tfile_open): Don't add thread and inferior.
10728 (tfile_close): Don't set 'inferior_ptid'. Don't call
10729 exit_inferior_silent.
10730 (tfile_thread_alive): Remove.
10731 (init_tfile_ops): Don't set field 'to_thread_alive' of
10732 tfile_ops.
10733
f4ccffad
CE
107342014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10735
10736 * remote.c (remote_start_remote): Call remote_check_symbols even
10737 if only symbol-file (not file) has been given.
10738
591a12a1
UW
107392014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10740
10741 * gdbarch.sh (skip_entrypoint): New callback.
10742 * gdbarch.c, gdbarch.h: Regenerate.
10743 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10744 * infrun.c (fill_in_stop_func): Likewise.
10745 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10746 (ppc_elfv2_elf_make_msymbol_special): New function.
10747 (ppc_elfv2_skip_entrypoint): Likewise.
10748 (ppc_linux_init_abi): Install them for ELFv2.
10749
cc0e89c5
UW
107502014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10751
10752 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10753 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10754 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10755 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10756 structures returned in GPRs.
10757
52f548e4
UW
107582014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10759
10760 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10761 offset to the stack parameter list for the ELFv2 ABI.
10762
d4094b6a
UW
107632014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10764
10765 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10766 set_gdbarch_convert_from_func_ptr_addr and
10767 set_gdbarch_elf_make_msymbol_special for ELFv1.
10768 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10769 function descriptors on ELFv1.
10770 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10771 set up r12 at function entry.
10772
cd453cd0
UW
107732014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10774
10775 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10776 (struct gdbarch_tdep): New member elf_abi.
10777
10778 * rs6000-tdep.c: Include "elf/ppc64.h".
10779 (rs6000_gdbarch_init): Detect ELF ABI version.
10780
0ff3e01f
UW
107812014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10782
10783 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10784 within a register pair holding a DFP 128-bit value on little-endian.
10785 (ppc64_sysv_abi_return_value_base): Likewise.
10786 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10787 (dfp_pseudo_register_write): Likewise.
10788
5b757e5d
UW
107892014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10790
10791 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10792 offset on little-endian when passing _Decimal32.
10793 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10794
084ee545
UW
107952014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10796
10797 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10798 of the overlapped FP register within the VSX register on little-
10799 endian platforms.
10800 (efpr_pseudo_register_write): Likewise.
10801
d63167af
UW
108022014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10803
10804 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10805 offset on little-endian when passing small structures.
10806
e765b44c
UW
108072014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10808
10809 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10810 (struct ppc64_sysv_argpos): New data structure.
10811 (ppc64_sysv_abi_push_float): Remove.
10812 (ppc64_sysv_abi_push_val): New function.
10813 (ppc64_sysv_abi_push_integer): Likewise.
10814 (ppc64_sysv_abi_push_freg): Likewise.
10815 (ppc64_sysv_abi_push_vreg): Likewise.
10816 (ppc64_sysv_abi_push_param): Likewise.
10817 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10818 (ppc64_sysv_abi_return_value_base): New function.
10819 (ppc64_sysv_abi_return_value): Refactor to use it.
10820
36c24d95
UW
108212014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10822
10823 * NEWS: Document new target powerpc64le-*-linux*.
10824
26fd9228
MK
108252014-02-04 Mark Kettenis <kettenis@gnu.org>
10826
10827 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10828 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10829 core dumps.
10830 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10831 register set used in ELF core dumps. Add floating-point register set.
10832
c5bb7362
KB
108332014-02-03 Kevin Buettner <kevinb@redhat.com>
10834
74228e77 10835 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
10836 dwarf2_to_gdb[] table using symbolic constants. Adjust
10837 penultimate entry from number representing the PC register
10838 to symbolic constant representing the MDR register. Add
10839 constant for the PC register to the end of the table.
10840
af09351e
MK
108412014-02-03 Mark Kettenis <kettenis@gnu.org>
10842
10843 * bsd-kvm.c: Include <sys/param.h>
10844
8507e05d
MK
108452014-02-03 Mark Kettenis <kettenis@gnu.org>
10846
10847 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10848
ae56bfb8
JB
108492014-01-31 Joel Brobecker <brobecker@adacore.com>
10850
10851 * ada-lang.h (clear_ada_sym_cache): Delete.
10852
718ee4dc
UW
108532014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
10854
10855 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10856
401e27fd
JM
108572014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10858
10859 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10860 the sigreturn register save area only if the syscall is
10861 sigreturn.
10862
a7c88acd
JB
108632014-01-29 Joel Brobecker <brobecker@adacore.com>
10864
10865 * valops.c (value_slice): Minor reformatting.
10866
fa0079ea
UW
108672014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
10868
10869 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10870
c6044dd1
JB
108712014-01-28 Joel Brobecker <brobecker@adacore.com>
10872
10873 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10874 New static globals.
10875 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10876 (ada_ignore_descriptive_types_p): New static global.
10877 (find_parallel_type_by_descriptive_type): Return immediately
10878 if ada_ignore_descriptive_types_p is set.
10879 (_initialize_ada_language): Register new commands "maintenance
10880 set ada", "maintenance show ada", "maintenance set ada
10881 ignore-descriptive-types" and "maintenance show ada
10882 ignore-descriptive-types".
10883 * NEWS: Add entry for new "maint ada set/show
10884 ignore-descriptive-types" commands.
10885
568e808b
MM
108862014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10887
10888 * record-btrace.c (record_btrace_close): Call btrace_teardown
10889 for all threads.
10890
467d141b
JB
108912014-01-27 Joel Brobecker <brobecker@adacore.com>
10892
10893 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10894 "ui-out.h".
10895
fb151210
JB
108962014-01-27 Joel Brobecker <brobecker@adacore.com>
10897
10898 * ada-typeprint (type_is_full_subrange_of_target_type):
10899 New function.
10900 (print_range): Add parameter bounds_prefered_p. If not set,
10901 try printing range types using the name of their base type.
10902 (print_range_type): Add parameter bounds_prefered_p.
10903 Use it in call to print_range.
10904 (print_array_type, ada_print_type): Update calls to print_range
10905 and print_range_type.
10906
aba02109
JB
109072014-01-27 Joel Brobecker <brobecker@adacore.com>
10908
10909 * ada-typeprint.c (print_array_type, print_choices, print_range)
10910 (print_range_bound, print_dynamic_range_bound, print_range_type):
10911 Remove declaration.
10912
e62e21fd
JB
109132014-01-27 Joel Brobecker <brobecker@adacore.com>
10914
10915 * ada-typeprint.c (print_range): Add missing empty line
10916 after local declaration.
10917
859cf5d1
JB
109182014-01-27 Joel Brobecker <brobecker@adacore.com>
10919
10920 * ada-valprint.c (print_optional_low_bound): Get index_type's
10921 target type for as long as it is a TYPE_CODE_RANGE.
10922
25790f6f
JB
109232014-01-27 Joel Brobecker <brobecker@adacore.com>
10924
10925 * procfs.c (procfs_make_note_section): Remove assertion and
10926 associated comment.
10927
6b6aa828
YQ
109282014-01-24 Yao Qi <yao@codesourcery.com>
10929
10930 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10931 * corelow.c (get_core_siginfo): Likewise.
10932
5d6df423
YQ
109332014-01-24 Yao Qi <yao@codesourcery.com>
10934
10935 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10936 ULONGEST. Don't check 'len' is negative.
10937 (remote_write_bytes): Change type of 'len' to ULONGEST.
10938
83b645b8
TT
109392014-01-23 Tom Tromey <tromey@redhat.com>
10940
10941 PR python/16485:
10942 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10943 Handle exception from frame.block.
10944 (FrameVars.fetch_frame_locals): Likewise.
10945
0740f8d8
TT
109462014-01-23 Tom Tromey <tromey@redhat.com>
10947
10948 PR python/16487:
10949 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10950 on a NULL pointer. Move "goto error" to correct place.
10951
21909fa1
TT
109522014-01-23 Tom Tromey <tromey@redhat.com>
10953
10954 PR python/16491:
10955 * python/py-framefilter.c (apply_frame_filter): Call
10956 ensure_python_env after computing gdbarch.
10957
17fde6d0
YQ
109582014-01-23 Yao Qi <yao@codesourcery.com>
10959
10960 * target.c (raw_memory_xfer_partial): Change argument type
10961 from void * to gdb_byte *.
10962 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10963
87ce2a04
DE
109642014-01-22 Doug Evans <dje@google.com>
10965
10966 New gdbserver option --debug-format=timestamp.
10967 * NEWS: Mention it.
10968
237b092b
AA
109692014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10970
10971 * syscalls/s390x-linux.xml: New file.
10972 * syscalls/s390-linux.xml: New file.
10973 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10974 (XML_SYSCALL_FILENAME_S390X): Likewise.
10975 (op_svc): New enum value for SVC opcode.
10976 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10977 (s390_linux_get_syscall_number): New function.
10978 (s390_gdbarch_init): Register '*get_syscall_number' and the
10979 syscall xml file name.
10980 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10981 "s390-linux.xml" and "s390x-linux.xml".
10982 * NEWS: Announce new feature.
10983
54bff650
BS
109842014-01-22 Baruch Siach <baruch@tkos.co.il>
10985
10986 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10987
14e361d7
PA
109882014-01-22 Pedro Alves <palves@redhat.com>
10989
10990 * xtensa-config.c: Include defs.h.
10991
46bbb3ed
JB
109922014-01-22 Joel Brobecker <brobecker@adacore.com>
10993
10994 * common/common-utils.h: Add "ARI:" comment beside __func__
10995 reference.
10996
3a80edfc
JB
109972014-01-22 Joel Brobecker <brobecker@adacore.com>
10998
10999 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11000 documentation a bit.
11001
4869db5e
RM
110022014-01-21 Roland McGrath <mcgrathr@google.com>
11003
11004 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11005 * configure: Regenerate.
11006 * aclocal.m4: Regenerate.
11007 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11008 New substituted variables.
11009 (install-strip): New target.
11010 (INSTALL_SCRIPT): New substituted variable.
11011 (FLAGS_TO_PASS): Add it.
11012 (install-only): Use $(INSTALL_SCRIPT) rather than
11013 $(INSTALL_PROGRAM) for gcore.
11014
9ea4267d
TT
110152014-01-20 Tom Tromey <tromey@redhat.com>
11016
11017 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11018 together.
11019
1f2bdf09
TT
110202014-01-20 Tom Tromey <tromey@redhat.com>
11021
11022 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11023 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11024 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11025 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11026 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11027 (struct cmd_list_element) <flags>: Remove.
11028 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11029 doc_allocated>: New fields.
11030 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11031 bitfields.
11032 * maint.c (maintenance_do_deprecate): Update.
11033 * top.c (execute_command): Update.
11034
e671835b
BS
110352014-01-20 Baruch Siach <baruch@tkos.co.il>
11036
11037 * xtensa-linux-nat.c: Include asm/ptrace.h.
11038
50367cd2
IB
110392014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11040
11041 * Makefile.in (SFILES): Add d-support.c.
11042 (COMMON_OBS): Add d-support.o.
11043 * d-lang.h (d_parse_symbol): Add comment, now defined in
11044 d-support.c.
11045 * d-lang.c (parse_call_convention)
11046 (parse_attributes, parse_function_types)
11047 (parse_function_args, parse_type, parse_identifier)
11048 (call_convention_p, d_parse_symbol): Move functions to ...
11049 * d-support.c: ... New file.
11050
ec9f644a
IB
110512014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11052
11053 * d-lang.h (d_parse_symbol): Add declaration.
11054 * d-lang.c (extract_identifiers)
11055 (extract_type_info): Remove functions.
11056 (parse_call_convention, parse_attributes)
11057 (parse_function_types, parse_function_args)
11058 (parse_type, parse_identifier, call_convention_p)
11059 (d_parse_symbol): New functions.
11060 (d_demangle): Use d_parse_symbol to demangle D symbols.
11061
94b1b47e
IB
110622014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11063
11064 * d-lang.h (struct builtin_d_type): New data type.
11065 (builtin_d_type): Add declaration.
11066 * d-lang.c (d_language_arch_info, build_d_types)
11067 (builtin_d_type): New functions.
11068 (enum d_primitive_types): New data type.
11069 (d_language_defn): Change c_language_arch_info to
11070 d_language_arch_info.
11071 (d_type_data): New static variable.
11072 (_initialize_d_language): Initialize d_type_data.
11073
63778547
IB
110742014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11075
11076 * d-lang.h (d_main_name): Add declaration.
11077 * d-lang.c (d_main_name): New function.
11078 * symtab.c (find_main_name): Add call to d_main_name.
11079
3271ba66
IB
110802014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11081
11082 * d-lang.c (d_language_defn): Change macro_expansion_c to
11083 macro_expansion_no.
11084
d36b3012
IB
110852014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11086
11087 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11088
c90a6fb7
SDJ
110892014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11090
11091 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11092 gdb_exception" declaration.
11093 * remote.c (getpkt_or_notif_sane): Likewise.
11094
749234e5
DE
110952014-01-17 Doug Evans <dje@google.com>
11096
11097 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11098 function, contents of dirnames_to_char_ptr_vec_append moved here.
11099 (delim_string_to_char_ptr_vec): New function.
11100 (dirnames_to_char_ptr_vec_append): Rewrite.
11101 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11102
df049a58
DE
111032014-01-17 Doug Evans <dje@google.com>
11104
11105 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11106 and moved here ...
11107 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11108 #include "common-utils.h".
11109 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11110 * common/vec.h (VEC_ASSERT_PASS): Update.
11111 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11112 (MACH_CHECK_ERROR): Update.
11113
69f97648
SM
111142014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11115
11116 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11117 comments.
11118 * gdbarch.h: Regenerate.
11119
98b1cfdc
TT
111202014-01-16 Tom Tromey <tromey@redhat.com>
11121
11122 * value.c (struct value) <regnum>: Move earlier.
11123
77a19445
TT
111242014-01-16 Tom Tromey <tromey@redhat.com>
11125
11126 * remote.c (extended_remote_create_inferior): Rename from
11127 extended_remote_create_inferior_1. Add "ops" argument. Remove
11128 old implementation.
11129
62261490
PA
111302014-01-16 Pedro Alves <palves@redhat.com>
11131
11132 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11133 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11134 the backchain.
11135
4d65956b
DE
111362014-01-16 Doug Evans <dje@google.com>
11137
11138 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11139
52834460
MM
111402014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11141
11142 * btrace.h (btrace_thread_flag): New.
11143 (struct btrace_thread_info) <flags>: New.
11144 * record-btrace.c (record_btrace_resume_thread)
11145 (record_btrace_find_thread_to_move, btrace_step_no_history)
11146 (btrace_step_stopped, record_btrace_start_replaying)
11147 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11148 (record_btrace_find_resume_thread): New.
11149 (record_btrace_resume, record_btrace_wait): Extend.
11150 (record_btrace_can_execute_reverse): New.
11151 (record_btrace_open): Fail in non-stop mode.
11152 (record_btrace_set_replay): Split into this, ...
11153 (record_btrace_stop_replaying): ... this, ...
11154 (record_btrace_clear_histories): ... and this.
11155 (init_record_btrace_ops): Init to_can_execute_reverse.
11156 * NEWS: Announce it.
11157
118e6252
MM
111582014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11159
11160 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11161 (forward_target_decr_pc_after_break)
11162 (target_decr_pc_after_break): New.
11163 * target.c (forward_target_decr_pc_after_break)
11164 (target_decr_pc_after_break): New.
11165 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11166 instead of gdbarch_decr_pc_after_break.
11167 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11168 instead of gdbarch_decr_pc_after_break.
11169 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11170 instead of gdbarch_decr_pc_after_break.
11171 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11172 instead of gdbarch_decr_pc_after_break.
11173 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11174 instead of gdbarch_decr_pc_after_break.
11175 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11176 instead of gdbarch_decr_pc_after_break.
11177
6e07b1d2
MM
111782014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11179
11180 * btrace.c: Include regcache.h.
11181 (btrace_add_pc): New.
11182 (btrace_enable): Call btrace_add_pc.
11183 (btrace_is_empty): New.
11184 * btrace.h (btrace_is_empty): New.
11185 * record-btrace.c (require_btrace, record_btrace_info): Call
11186 btrace_is_empty.
11187
969c39fb
MM
111882014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11189
11190 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11191 Support delta reads.
11192 (linux_disable_btrace): Change return type.
11193 * common/linux-btrace.h (linux_read_btrace): Change parameters
11194 and return type to allow error reporting. Update users.
11195 (linux_disable_btrace): Change return type. Update users.
11196 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11197 New.
11198 (btrace_error): New.
11199 (btrace_block) <begin>: Comment on BEGIN == 0.
11200 * btrace.c (btrace_compute_ftrace): Start from the end of
11201 the current trace.
11202 (btrace_stitch_trace, btrace_clear_history): New.
11203 (btrace_fetch): Read delta trace, return if replaying.
11204 (btrace_clear): Move clear history code to btrace_clear_history.
11205 (parse_xml_btrace): Throw an error if parsing failed.
11206 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11207 and return type to allow error reporting.
11208 (target_read_btrace): Change parameters and return type to allow
11209 error reporting.
11210 * target.c (target_read_btrace): Update.
11211 * remote.c (remote_read_btrace): Support delta reads. Pass
11212 errors on.
11213 * NEWS: Announce it.
11214
0b722aec
MM
112152014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11216
11217 * record.h (record_btrace_frame_unwind)
11218 (record_btrace_tailcall_frame_unwind): New declarations.
11219 * dwarf2-frame: Include record.h
11220 (dwarf2_frame_cfa): Throw an error for btrace frames.
11221 * record-btrace.c: Include hashtab.h.
11222 (btrace_get_bfun_name): New.
11223 (btrace_call_history): Call btrace_get_bfun_name.
11224 (struct btrace_frame_cache): New.
11225 (bfcache): New.
11226 (bfcache_hash, bfcache_eq, bfcache_new): New.
11227 (btrace_get_frame_function): New.
11228 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11229 (record_btrace_frame_this_id): Compute own id.
11230 (record_btrace_frame_prev_register): Provide PC, throw_error
11231 for all other registers.
11232 (record_btrace_frame_sniffer): Detect btrace frames.
11233 (record_btrace_tailcall_frame_sniffer): New.
11234 (record_btrace_frame_dealloc_cache): New.
11235 (record_btrace_frame_unwind): Add new functions.
11236 (record_btrace_tailcall_frame_unwind): New.
11237 (_initialize_record_btrace): Allocate cache.
11238 * btrace.c (btrace_clear): Call reinit_frame_cache.
11239 * NEWS: Announce it.
11240
066ce621
MM
112412014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11242
11243 * record-btrace.c (record_btrace_set_replay)
11244 (record_btrace_goto_begin, record_btrace_goto_end)
11245 (record_btrace_goto): New.
11246 (init_record_btrace_ops): Initialize them.
11247 * NEWS: Announce it.
11248
e2887aa3
MM
112492014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11250
11251 * record-btrace.c (record_btrace_find_new_threads)
11252 (record_btrace_thread_alive): New.
11253 (init_record_btrace_ops): Initialize to_find_new_threads and
11254 to_thread_alive.
11255
b2f4cfde
MM
112562014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11257
11258 * record-btrace.c (record_btrace_resume): New.
11259 (record_btrace_wait): New.
11260 (init_record_btrace_ops): Initialize to_wait and to_resume.
11261
633785ff
MM
112622014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11263
11264 * record-btrace.c (record_btrace_xfer_partial)
11265 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11266 (record_btrace_allow_memory_access): New.
11267 (init_record_btrace_ops): Initialize new methods.
11268 * target.c (raw_memory_xfer_partial): Bail out if target reports
11269 that this memory is not available.
11270
3db08215
MM
112712014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11272
11273 * target.h (target_ops) <to_insert_breakpoint>
11274 <to_remove_breakpoint>: Add target_ops parameter.
11275 (forward_target_insert_breakpoint): New.
11276 (forward_target_remove_breakpoint): New.
11277 (memory_remove_breakpoint, memory_insert_breakpoint):
11278 Add target_ops parameter.
11279 * target.c (target_insert_breakpoint): Split into this and ...
11280 (forward_target_insert_breakpoint): ... this.
11281 (target_remove_breakpoint): Split into this and ...
11282 (forward_target_remove_breakpoint): ... this.
11283 (debug_to_insert_breakpoint): Add target_ops parameter.
11284 Call forward_target_insert_breakpoint.
11285 (debug_to_remove_breakpoint): Add target_ops parameter.
11286 Call forward_target_remove_breakpoint.
11287 (update_current_target): Do not inherit or default to_insert_breakpoint
11288 and to_remove_breakpoint.
11289 * corelow.c (ignore): Add target_ops parameter.
11290 * exec.c (ignore): Add target_ops parameter.
11291 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11292 Add target_ops parameter.
11293 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11294 Add target_ops parameter.
11295 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11296 Add target_ops parameter.
11297 * record-full.c (record_full_beneath_to_insert_breakpoint)
11298 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11299 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11300 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11301 (record_full_core_remove_breakpoint): Add target_ops parameter.
11302 Update users.
11303 (record_full_beneath_to_insert_breakpoint_ops)
11304 (record_full_beneath_to_remove_breakpoint_ops)
11305 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11306 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11307 tmp_to_remove_breakpoint_ops,
11308 record_full_beneath_to_insert_breakpoint_ops, and
11309 record_full_beneath_to_remove_breakpoint_ops.
11310 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11311 (m32r_remove_breakpoint): Add target_ops parameter.
11312 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11313 Add target_ops parameter.
11314 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11315 Add target_ops parameter.
11316
cecac1ab
MM
113172014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11318 Markus Metzger <markus.t.metzger@intel.com>
11319
11320 * record-btrace.c: Include frame-unwind.h.
11321 (record_btrace_frame_unwind_stop_reason)
11322 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11323 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11324 New.
11325 (init_record_btrace_ops): Install it.
11326
824344ca
MM
113272014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11328
11329 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11330 get_prev_frame_1.
11331
32261e52
MM
113322014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11333
11334 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11335 earlier.
11336
ea001bdc
MM
113372014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11338
11339 * frame-unwind.c: Include target.h.
11340 (frame_unwind_try_unwinder): New function with code from ...
11341 (frame_unwind_find_by_frame): ... here. New variable
11342 unwinder_from_target, call also target_get_unwinder)
11343 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11344 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11345 * target.h (struct target_ops): New fields to_get_unwinder and
11346 to_get_tailcall_unwinder.
11347 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11348
1f3ef581
MM
113492014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11350
11351 * record-btrace.c (record_btrace_fetch_registers)
11352 (record_btrace_store_registers)
11353 (record_btrace_to_prepare_to_store): New.
11354 (init_record_btrace_ops): Add the above.
11355
f32dbf8c
MM
113562014-01-16 Tom Tromey <tromey@redhat.com>
11357
11358 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11359 * target.h (struct target_ops) <to_prepare_to_store>: Add
11360 argument.
11361 (target_prepare_to_store): Add argument.
11362 * target.c (debug_to_prepare_to_store): Add argument.
11363 (update_current_target): Update.
11364 * remote.c (remote_prepare_to_store): Add 'self' argument.
11365 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11366 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11367 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11368 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11369 argument.
11370 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11371 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11372 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11373 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11374 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11375
07bbe694
MM
113762014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11377
11378 * btrace.h (replay) <replay>: New.
11379 (btrace_is_replaying): New.
11380 * btrace.c (btrace_clear): Free replay iterator.
11381 (btrace_is_replaying): New.
11382 * record-btrace.c (record_btrace_is_replaying): New.
11383 (record_btrace_info): Print insn number if replaying.
11384 (record_btrace_insn_history): Start at replay position.
11385 (record_btrace_call_history): Start at replay position.
11386 (init_record_btrace_ops): Init to_record_is_replaying.
11387
0688d04e
MM
113882014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11389
11390 * record-btrace.c (record_btrace_insn_history_range): Include
11391 end.
11392 (record_btrace_insn_history_from): Adjust range.
11393 (record_btrace_call_history_range): Include
11394 end.
11395 (record_btrace_call_history_from): Adjust range.
11396 * NEWS: Announce changes.
11397
8710b709
MM
113982014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11399
11400 * record.h (enum record_print_flag)
11401 <record_print_indent_calls>: New.
11402 * record.c (get_call_history_modifiers): Recognize /c modifier.
11403 (_initialize_record): Document /c modifier.
11404 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11405 Reorder fields. Optionally indent the function name. Update
11406 all users.
11407 * NEWS: Announce changes.
11408
d0fa7535
MM
114092014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11410
11411 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11412
5de9129b
MM
114132014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11414
11415 * btrace.c (ftrace_new_function): Start counting at one.
11416 * record-btrace.c (record_btrace_info): Adjust number of calls
11417 and insns.
11418 * NEWS: Announce it.
11419
7acbe133
MM
114202014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11421
11422 * record-btrace.c (btrace_call_history_insn_range): Print
11423 insn range as [begin, end].
11424
23a7fe75
MM
114252014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11426
11427 * btrace.h (struct btrace_func_link): New.
11428 (enum btrace_function_flag): New.
11429 (struct btrace_inst): Rename to ...
11430 (struct btrace_insn): ...this. Update all users.
11431 (struct btrace_func) <ibegin, iend>: Remove.
11432 (struct btrace_func_link): New.
11433 (struct btrace_func): Rename to ...
11434 (struct btrace_function): ...this. Update all users.
11435 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11436 (number, level, flags>: New.
11437 (struct btrace_insn_iterator): Rename to ...
11438 (struct btrace_insn_history): ...this.
11439 Update all users.
11440 (struct btrace_insn_iterator, btrace_call_iterator): New.
11441 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11442 (struct btrace_target_info) <begin, end, level>
11443 <insn_history, call_history>: New.
11444 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11445 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11446 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11447 (btrace_call_number, btrace_call_begin, btrace_call_end)
11448 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11449 (btrace_find_function_by_number, btrace_set_insn_history)
11450 (btrace_set_call_history): New.
11451 * btrace.c (btrace_init_insn_iterator)
11452 (btrace_init_func_iterator, compute_itrace): Remove.
11453 (ftrace_print_function_name, ftrace_print_filename)
11454 (ftrace_skip_file): Change
11455 parameter to const.
11456 (ftrace_init_func): Remove.
11457 (ftrace_debug): Use new btrace_function fields.
11458 (ftrace_function_switched): Also consider gaining and
11459 losing symbol information).
11460 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11461 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11462 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11463 New.
11464 (ftrace_new_function): Move. Remove debug print.
11465 (ftrace_update_lines, ftrace_update_insns): New.
11466 (ftrace_update_function): Check for call, ret, and jump.
11467 (compute_ftrace): Renamed to ...
11468 (btrace_compute_ftrace): ...this. Rewritten to compute call
11469 stack.
11470 (btrace_fetch, btrace_clear): Updated.
11471 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11472 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11473 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11474 (btrace_call_number, btrace_call_begin, btrace_call_end)
11475 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11476 (btrace_find_function_by_number, btrace_set_insn_history)
11477 (btrace_set_call_history): New.
11478 * record-btrace.c (require_btrace): Use new btrace thread
11479 info fields.
11480 (record_btrace_info, btrace_insn_history)
11481 (record_btrace_insn_history, record_btrace_insn_history_range):
11482 Use new btrace thread info fields and new iterator.
11483 (btrace_func_history_src_line): Rename to ...
11484 (btrace_call_history_src_line): ...this. Use new btrace
11485 thread info fields.
11486 (btrace_func_history): Rename to ...
11487 (btrace_call_history): ...this. Use new btrace thread info
11488 fields and new iterator.
11489 (record_btrace_call_history, record_btrace_call_history_range):
11490 Use new btrace thread info fields and new iterator.
11491
8372a7cb
MM
114922014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11493
11494 * frame.h (frame_id_build_unavailable_stack_special): New.
11495 * frame.c (frame_id_build_unavailable_stack_special): New.
11496
c2170eef
MM
114972014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11498
11499 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11500 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11501 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11502 to gdbarch.
11503 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11504 (i386_insn_is_jump, i386_jmp_p): New.
11505 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11506 insn_is_jump to gdbarch.
11507 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11508 * gdbarch.h: Regenerated.
11509 * gdbarch.c: Regenerated.
11510 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11511 (default_insn_is_jump): New.
11512 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11513 (default_insn_is_jump): New.
11514
864089d2
MM
115152014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11516
11517 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11518 Change to ...
11519 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11520 (btrace_read_type) <btrace_read_new>: Change to ...
11521 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11522
ed9edfb5
MM
115232014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11524
11525 * common/linux-btrace.c (linux_read_btrace): Free trace from
11526 previous iteration.
11527
fbcbc3fd
DE
115282014-01-15 Doug Evans <dje@google.com>
11529
11530 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11531 uint32_t.
11532
3d548a53
TT
115332014-01-15 Tom Tromey <tromey@redhat.com>
11534
11535 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11536 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11537 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11538 (set_objfile_main_name): New function.
11539 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11540 language_of_main>: New fields.
11541 (set_objfile_main_name): Declare.
11542 * symtab.c (find_main_name): Loop over objfiles to find the main
11543 name and language.
11544 (set_main_name): Now static.
11545 (get_main_info): Add comment.
11546 * symtab.h (set_main_name): Don't declare.
11547
32ac0d11
TT
115482014-01-15 Tom Tromey <tromey@redhat.com>
11549
11550 * symtab.c (main_progspace_key): New global.
11551 (struct main_info): New.
11552 (name_of_main, language_of_main): Remove.
11553 (get_main_info, main_info_cleanup): New function.
11554 (set_main_name, main_name, main_language): Use get_main_info.
11555 (_initialize_symtab): Initialize main_progspace_key.
11556
9e6c82ad
TT
115572014-01-15 Tom Tromey <tromey@redhat.com>
11558
11559 * dbxread.c (process_one_symbol): Update.
11560 * dwarf2read.c (read_partial_die): Update.
11561 * symfile.c (set_initial_language): Call main_language.
11562 * symtab.c (language_of_main): Now static.
11563 (set_main_name): Add 'lang' parameter.
11564 (find_main_name): Update.
11565 (main_language): New function.
11566 (symtab_observer_executable_changed): Update.
11567 * symtab.h (set_main_name): Update.
11568 (language_of_main): Remove.
11569 (main_language): Declare.
11570
6ef55de7
TT
115712014-01-15 Tom Tromey <tromey@redhat.com>
11572
11573 * symfile.c (init_entry_point_info): Use new "initialized" field.
11574 Update.
11575 * objfiles.h (struct entry_point) <initialized>: New field.
11576 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11577 (struct objfile) <ei>: ...here. Remove.
11578 * objfiles.c (entry_point_address_query): Update.
11579
53eddfa6
TT
115802014-01-15 Tom Tromey <tromey@redhat.com>
11581
11582 * objfiles.c (entry_point_address_query): Relocate entry point
11583 address.
11584 (objfile_relocate1): Do not relocate entry point address.
11585 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11586 <the_bfd_section_index>: New field.
11587 * symfile.c (init_entry_point_info): Find the entry point's
11588 section.
11589
d56e56aa
TT
115902014-01-15 Tom Tromey <tromey@redhat.com>
11591
11592 * solib-frv.c (enable_break): Use entry_point_address_query.
11593
33a97bbe
OJ
115942014-01-15 Omair Javaid <omair.javaid@linaro.org>
11595
11596 * NEWS: Add note on improved process record-replay on
11597 arm*-linux* targets.
11598
c6ec2b30
OJ
115992014-01-15 Omair Javaid <omair.javaid@linaro.org>
11600
11601 * arm-tdep.c (enum arm_record_result): New enum.
11602 (arm_record_unsupported_insn): New function.
11603 (arm_record_coproc_data_proc): Removed.
11604 (thumb2_record_ld_st_multiple): New function.
11605 (thumb2_record_ld_st_dual_ex_tbb): New function.
11606 (thumb2_record_data_proc_sreg_mimm): New function.
11607 (thumb2_record_ps_dest_generic): New function.
11608 (thumb2_record_branch_misc_cntrl): New function.
11609 (thumb2_record_str_single_data): New function.
11610 (thumb2_record_ld_mem_hints): New function.
11611 (thumb2_record_ld_word): New function.
11612 (thumb2_record_lmul_lmla_div): New function.
11613 (thumb2_record_decode_insn_handler): New function.
11614 (decode_insn): Add thumb32 instruction handlers.
11615
97dfe206
OJ
116162014-01-15 Omair Javaid <omair.javaid@linaro.org>
11617
11618 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11619 (struct arm_linux_record_tdep): Declare.
11620 (arm_canonicalize_syscall): New function.
11621 (arm_all_but_pc_registers_record): New function.
11622 (arm_linux_syscall_record): New function.
11623 (arm_linux_init_abi): Add syscall recording constructs.
11624 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11625 decoding. (arm_record_coproc_data_proc): Update arm syscall
11626 decoding.
11627 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11628 <arm_syscall_record>: New field.
11629 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11630 gdb_target_obs.
11631
9904a494
OJ
116322014-01-15 Omair Javaid <omair.javaid@linaro.org>
11633
11634 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11635 register for push instruction recording.
11636
f969241e
OJ
116372014-01-15 Omair Javaid <omair.javaid@linaro.org>
11638
11639 * arm-tdep.c (thumb_record_misc): Update to correct logical
11640 error while recording ldm, ldmia and pop instructions.
11641
bfbbec00
OJ
116422014-01-15 Omair Javaid <omair.javaid@linaro.org>
11643
11644 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11645
e40adcc9
PA
116462014-01-15 Pedro Alves <palves@redhat.com>
11647
11648 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11649 (go32_resume, go32_fetch_registers, store_register)
11650 (go32_store_registers, go32_prepare_to_store)
11651 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11652 (go32_create_inferior, go32_can_run, go32_terminal_init)
11653 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11654 declarations.
11655
b0a16e66
TT
116562014-01-15 Tom Tromey <tromey@redhat.com>
11657
11658 * target.h (async_callback_ftype): New typedef.
11659 (struct target_ops) <to_async>: Use it.
11660
bf7105a4
JB
116612014-01-15 Joel Brobecker <brobecker@adacore.com>
11662
11663 * python/py-value.c (get_field_type): Remove unnecessary curly
11664 braces for single-statement if block.
11665
a8f35c2e
JB
116662014-01-15 Joel Brobecker <brobecker@adacore.com>
11667
11668 * python/py-type.c (convert_field): Add missing empty line
11669 after declarations.
11670
bb4142cf
DE
116712014-01-14 Doug Evans <dje@google.com>
11672
11673 * symfile.h (expand_symtabs_matching): Renamed from
11674 expand_partial_symbol_names. Update prototype.
11675 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11676 * symfile.c (expand_symtabs_matching): Renamed from
11677 expand_partial_symbol_names. New args file_matcher, kind.
11678 Rename arg fun to symbol_matcher.
11679 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11680 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11681 ada_expand_partial_symbol_name.
11682 (ada_make_symbol_completion_list): Update to call
11683 expand_symtabs_matching.
11684 (ada_add_global_exceptions): Call expand_symtabs_matching.
11685 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11686 call map_symbol_filenames.
11687 * symtab.c (sources_info): Update to call map_symbol_filenames.
11688 (search_symbols): Call expand_symtabs_matching.
11689 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11690 (default_make_symbol_completion_list_break_on): Update to call
11691 expand_symtabs_matching.
11692 (make_source_files_completion_list): Update to call
11693 map_symbol_filenames.
11694
206f2a57
DE
116952014-01-14 Doug Evans <dje@google.com>
11696
11697 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11698 (expand_symtabs_symbol_matcher_ftype): New typedef.
11699 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11700 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11701 * symfile.c (expand_partial_symbol_names): Update to use
11702 expand_symtabs_symbol_matcher_ftype.
11703 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11704 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11705 Arg name_matcher renamed to symbol_matcher.
11706 * psymtab.c (recursively_search_psymtabs): Update to use
11707 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11708 sym_matcher.
11709 (expand_symtabs_matching_via_partial): Update to use
11710 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11711 Arg name_matcher renamed to symbol_matcher.
11712
540c2971
DE
117132014-01-14 Doug Evans <dje@google.com>
11714
11715 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11716 (map_partial_symbol_filenames): Ditto.
11717 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11718 (map_partial_symbol_filenames): Ditto.
11719 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11720 (map_partial_symbol_filenames): Ditto.
11721 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11722 (map_partial_symbol_filenames): Ditto.
11723 * symtab.c: Delete #include "psymtab.h".
11724
8213266a
PA
117252014-01-14 Pedro Alves <palves@redhat.com>
11726 Tom Tromey <tromey@redhat.com>
11727
11728 * infrun.c (use_displaced_stepping): Use find_record_target
11729 instead of RECORD_IS_USED.
11730 (adjust_pc_after_break): Use record_full_is_used instead of
11731 RECORD_IS_USED.
11732 * record-btrace.c (record_btrace_open): Call record_preopen
11733 instead of checking RECORD_IS_USED.
11734 * record-full.c (record_full_shortname)
11735 (record_full_core_shortname): New globals.
11736 (record_full_is_used): New function.
11737 (find_full_open): Call record_preopen instead of checking
11738 RECORD_IS_USED.
11739 (init_record_full_ops): Set the target's shortname to
11740 record_full_shortname.
11741 (init_record_full_core_ops): Set the target's shortname to
11742 record_full_core_shortname.
11743 * record-full.h (record_full_is_used): Declare.
11744 * record.c (find_record_target): Make extern.
11745 (record_preopen): New function.
11746 * record.h (RECORD_IS_USED): Delete macro.
11747 (find_record_target, record_preopen): Declare functions.
11748
7ec1862d
YQ
117492014-01-14 Yao Qi <yao@codesourcery.com>
11750
11751 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11752 'len''s type to ULONGEST.
11753 (core_xfer_shared_libraries_aix): Likewise.
11754 * gdbarch.c, gdbarch.h: Regenerated.
11755 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11756 Change type of 'len' to ULONGEST.
11757 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11758 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11759
dea80a27
YQ
117602014-01-14 Yao Qi <yao@codesourcery.com>
11761
11762 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11763 type of 'len' to ULONGEST.
11764 (linux_xfer_osdata_processgroups): Likewise.
11765 (linux_xfer_osdata_threads): Likewise.
11766 (linux_xfer_osdata_fds): Likewise.
11767 (linux_xfer_osdata_isockets): Likewise.
11768 (linux_xfer_osdata_shm): Likewise.
11769 (linux_xfer_osdata_sem): Likewise.
11770 (linux_xfer_osdata_msg): Likewise.
11771 (linux_common_xfer_osdata): Likewise.
11772 (struct osdata_type) <getter>: Likewise.
11773 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11774 the declaration.
11775
b55e14c7
YQ
117762014-01-14 Yao Qi <yao@codesourcery.com>
11777
11778 * target.h (target_xfer_partial_ftype): Update.
11779 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11780 ULONGEST.
11781 * aix-thread.c (aix_thread_xfer_partial): Change type of
11782 argument 'len' to ULONGEST.
11783 * auxv.c (procfs_xfer_auxv): Likewise.
11784 (ld_so_xfer_auxv): Likewise.
11785 (memory_xfer_auxv): Likewise.
11786 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11787 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11788 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11789 * corelow.c (core_xfer_partial): Likewise.
11790 * ctf.c (ctf_xfer_partial): Likewise.
11791 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11792 '%u'.
11793 (darwin_read_dyld_info): Likewise.
11794 (darwin_xfer_partial): Likewise.
11795 * exec.c (section_table_xfer_memory_partial): Likewise.
11796 (exec_xfer_partial): Likewise.
11797 * exec.h (section_table_xfer_memory_partial): Update
11798 declaration.
11799 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11800 instead of plongest.
11801 (gnu_xfer_partial): Likewise.
11802 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11803 (ia64_hpux_xfer_solib_got): Likewise.
11804 (ia64_hpux_xfer_partial): Likewise.
11805 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11806 * inf-ptrace.c (inf_ptrace_xfer_partial):
11807 * inf-ttrace.c (inf_ttrace_xfer_partial):
11808 * linux-nat.c (linux_xfer_siginfo): Likewise.
11809 (linux_nat_xfer_partial): Likewise.
11810 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11811 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11812 * monitor.c (monitor_xfer_memory): Likewise.
11813 (monitor_xfer_partial): Likewise.
11814 * procfs.c (procfs_xfer_partial): Likewise.
11815 * record-full.c (record_full_xfer_partial): Likewise.
11816 (record_full_core_xfer_partial): Likewise.
11817 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11818 instead of plongest.
11819 (gdbsim_xfer_partial): Likewise.
11820 * remote.c (remote_xfer_partial): Likewise.
11821 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11822 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11823 declaration.
11824 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11825 (rs6000_xfer_shared_libraries): Likewise.
11826 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11827 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11828 (sparc_xfer_partial): Likewise.
11829 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11830 (spu_xfer_partial): Likewise.
11831 * spu-multiarch.c (spu_xfer_partial): Likewise.
11832 * target.c (target_read_live_memory): Likewise.
11833 (memory_xfer_live_readonly_partial): Likewise.
11834 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11835 (target_xfer_partial, default_xfer_partial): Likewise.
11836 (current_xfer_partial): Likewise.
11837 * tracepoint.c (tfile_xfer_partial): Likewise.
11838 * windows-nat.c (windows_xfer_memory): Likewise. Call
11839 pulongest instead of plongest.
11840 (windows_xfer_partial): Likewise.
11841 (windows_xfer_shared_libraries): Likewise.
11842
05804640
YQ
118432014-01-14 Yao Qi <yao@codesourcery.com>
11844
11845 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11846 target_xfer_partial_ftype.
11847
b5b08fb4
SC
118482014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11849
11850 PR python/15464
11851 PR python/16113
11852 * valops.c (value_struct_elt_bitpos): New function
11853 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11854 object to 'None' if the field name is an empty string ("").
11855 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11856 attribute to look for a field when 'name' is 'None'.
11857 (get_field_type): New function
11858
13aaf454
DE
118592014-01-13 Doug Evans <dje@google.com>
11860
11861 PR symtab/16426
11862 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11863 (try_open_dwop_file): Ditto.
11864 * gdb_bfd.c: #include "vec.h".
11865 (bfdp): New typedef.
11866 (struct gdb_bfd_data): New member included_bfds.
11867 (gdb_bfd_unref): Unref all included bfds.
11868 (gdb_bfd_record_inclusion): New function.
11869 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11870
c2cec97c
TT
118712014-01-13 Tom Tromey <tromey@redhat.com>
11872
11873 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11874
78e5999d
TT
118752014-01-13 Tom Tromey <tromey@redhat.com>
11876
11877 * defs.h (use_windows): Remove.
11878 * gdb.c (main): Update.
11879 * main.c (captured_main, gdb_main): Update.
11880 * main.h (struct captured_main_args) <use_windows>: Remove.
11881 * top.c (use_windows): Remove.
11882
f2052bbe
TT
118832014-01-13 Tom Tromey <tromey@redhat.com>
11884
11885 * defs.h (deprecated_flush_hook): Remove.
11886
fde4f8ed
JK
118872014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11888
11889 PR threads/16216
11890 * linux-thread-db.c (try_thread_db_load): Add parameter
11891 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11892 (try_thread_db_load_from_pdir_1): Move it there from here.
11893 (try_thread_db_load_from_sdir): Update caller.
11894 (try_thread_db_load_from_dir): Move it there from here.
11895
bdf61915
PP
118962014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11897
11898 * regformats/regdat.sh: Always rewrite the register file.
11899
f71e1a8d
PA
119002014-01-13 Pedro Alves <palves@redhat.com>
11901
11902 * Makefile.in (CHECK_HEADERS): New variable.
11903 (check-headers:): New rule.
11904
42c85435
TT
119052014-01-13 Tom Tromey <tromey@redhat.com>
11906
11907 * cli/cli-setshow.c (do_set_command): Update.
11908 * defs.h (deprecated_set_hook): Remove.
11909 * top.c (deprecated_set_hook): Remove.
11910
f8de5129
PA
119112014-01-13 Pedro Alves <palves@redhat.com>
11912
11913 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11914 the tracepoint if the PC is a pseudo-register.
11915
fc270c35
TT
119162014-01-13 Tom Tromey <tromey@redhat.com>
11917
11918 * defs.h (XCALLOC): Remove.
11919 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11920 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11921 * dwarf2loc.c (allocate_piece_closure): Likewise.
11922 * elfread.c (elf_symfile_segments): Likewise.
11923 (elf_symfile_segments): Likewise.
11924 * gdbtypes.c (copy_type_recursive): Likewise.
11925 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11926 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11927 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11928 XCALLOC.
11929 * mt-tdep.c (mt_gdbarch_init): Likewise.
11930 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11931 XCALLOC.
11932 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11933 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11934 * registry.c (registry_alloc_data): Likewise.
11935 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11936 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11937 * serial.c (serial_fdopen_ops): Likewise.
11938 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11939 XCALLOC.
11940 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11941 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11942 not XCALLOC.
11943
70ba0933
TT
119442014-01-13 Tom Tromey <tromey@redhat.com>
11945
11946 * defs.h (XMALLOC): Remove.
11947 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11948 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11949 * cli-out.c (struct ui_out *): Likewise.
11950 * cli/cli-dump.c (add_dump_command): Likewise.
11951 (add_dump_command): Likewise.
11952 * complaints.c (get_complaints): Likewise.
11953 (find_complaint): Likewise.
11954 * dwarf2-frame.c (execute_cfa_program): Likewise.
11955 * dwarf2read.c (abbrev_table_read_table): Likewise.
11956 * gdbarch.sh: Likewise.
11957 * gdbarch.c: Rebuild.
11958 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11959 * interps.c (interp_new): Likewise.
11960 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11961 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11962 * mi/mi-console.c (mi_console_file_new): Likewise.
11963 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11964 * mi/mi-out.c (mi_out_new): Likewise.
11965 * mi/mi-parse.c (mi_parse): Likewise.
11966 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11967 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11968 * observer.c (xalloc_observer_list_node): Likewise.
11969 * regcache.c (regcache_xmalloc_1): Likewise.
11970 * reggroups.c (reggroup_new): Likewise.
11971 (_initialize_reggroup): Likewise.
11972 * registry.c (register_data_with_cleanup): Likewise.
11973 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11974 * ser-base.c (serial_ttystate): Likewise.
11975 * ser-mingw.c (make_pipe_state): Likewise.
11976 * ser-pipe.c (pipe_open): Likewise.
11977 * serial.c (serial_open): Likewise.
11978 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11979 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11980 (tui_alloc_win_info): Likewise.
11981 (tui_add_content_elements): Likewise.
11982 * tui/tui-file.c (tui_file_new): Likewise.
11983 * tui/tui-out.c (tui_out_new): Likewise.
11984 * ui-file.c (mem_file_new): Likewise.
11985 * ui-out.c (push_level): Likewise.
11986 (make_cleanup_ui_out_end): Likewise.
11987 (append_header_to_list): Likewise.
11988 (ui_out_new): Likewise.
11989 * user-regs.c (user_reg_add_builtin): Likewise.
11990
41bf6aca
TT
119912014-01-13 Tom Tromey <tromey@redhat.com>
11992
11993 * defs.h (XZALLOC): Remove.
11994 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11995 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11996 (get_ada_tasks_inferior_data): Likewise.
11997 * auto-load.c (get_auto_load_pspace_data): Likewise.
11998 * auxv.c (get_auxv_inferior_data): Likewise.
11999 * bfd-target.c (target_bfd_reopen): Likewise.
12000 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12001 (deprecated_insert_raw_breakpoint): Likewise.
12002 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12003 * corelow.c (core_open): Likewise.
12004 * darwin-nat.c (darwin_check_new_threads): Likewise.
12005 (darwin_attach_pid): Likewise.
12006 * dummy-frame.c (dummy_frame_push): Likewise.
12007 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12008 * dwarf2loc.c (allocate_piece_closure): Likewise.
12009 * elfread.c (elf_symfile_segments): Likewise.
12010 * eval.c (ptrmath_type_p): Likewise.
12011 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12012 * gdbtypes.c (alloc_type_arch): Likewise.
12013 (alloc_type_instance): Likewise.
12014 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12015 * inf-child.c (inf_child_can_use_agent): Likewise.
12016 * inflow.c (get_inflow_inferior_data): Likewise.
12017 * infrun.c (save_infcall_suspend_state): Likewise.
12018 * jit.c (jit_reader_load): Likewise.
12019 (get_jit_objfile_data): Likewise.
12020 (get_jit_program_space_data): Likewise.
12021 (jit_object_open_impl): Likewise.
12022 (jit_symtab_open_impl): Likewise.
12023 (jit_block_open_impl): Likewise.
12024 (jit_frame_sniffer): Likewise.
12025 * linux-fork.c (add_fork): Likewise.
12026 * maint.c (make_command_stats_cleanup): Likewise.
12027 * objfiles.c (get_objfile_pspace_data): Likewise.
12028 * opencl-lang.c (struct lval_closure): Likewise.
12029 * osdata.c (osdata_start_osdata): Likewise.
12030 * progspace.c (new_address_space): Likewise.
12031 (add_program_space): Likewise.
12032 * remote-sim.c (get_sim_inferior_data): Likewise.
12033 * sh-tdep.c (sh_gdbarch_init): Likewise.
12034 * skip.c (Ignore): Likewise.
12035 (skip_delete_command): Likewise.
12036 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12037 (library_list_start_library): Likewise.
12038 (solib_aix_current_sos): Likewise.
12039 * solib-darwin.c (get_darwin_info): Likewise.
12040 (darwin_current_sos): Likewise.
12041 * solib-dsbt.c (get_dsbt_info): Likewise.
12042 * solib-ia64-hpux.c (new_so_list): Likewise.
12043 (ia64_hpux_get_solib_linkage_addr): Likewise.
12044 * solib-spu.c (append_ocl_sos): Likewise.
12045 (spu_current_sos): Likewise.
12046 * solib-svr4.c (get_svr4_info): Likewise.
12047 (svr4_keep_data_in_core): Likewise.
12048 (library_list_start_library): Likewise.
12049 (svr4_default_sos): Likewise.
12050 (svr4_read_so_list): Likewise.
12051 * solib-target.c (library_list_start_library): Likewise.
12052 (solib_target_current_sos): Likewise.
12053 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12054 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12055 * symfile.c (default_symfile_segments): Likewise.
12056 * target-descriptions.c (tdesc_data_init): Likewise.
12057 (tdesc_create_reg): Likewise.
12058 (struct tdesc_type *): Likewise.
12059 (tdesc_create_vector): Likewise.
12060 (tdesc_set_struct_size): Likewise.
12061 (struct tdesc_type *): Likewise.
12062 (tdesc_free_feature): Likewise.
12063 (tdesc_create_feature): Likewise.
12064 * windows-nat.c (windows_add_thread): Likewise.
12065 (windows_make_so): Likewise.
12066 * xml-support.c (gdb_xml_body_text): Likewise.
12067 (gdb_xml_create_parser_and_cleanup): Likewise.
12068 (xml_process_xincludes): Likewise.
12069 * xml-syscall.c (allocate_syscalls_info): Likewise.
12070 (syscall_create_syscall_desc): Likewise.
12071
5acfdbae
SDJ
120722014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12073
12074 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12075 function, with code from i386_stap_parse_special_token.
12076 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12077 (i386_stap_parse_special_token): Move code to the two functions
12078 above; simplify it.
12079
0000e5cc
PA
120802014-01-09 Pedro Alves <palves@redhat.com>
12081 Hui Zhu <hui@codesourcery.com>
12082
12083 PR gdb/16101
12084 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12085 bp_err_string. Don't mark the location shlib_disabled if the
12086 error thrown wasn't a generic or memory error. Catch errors
12087 thrown while inserting breakpoints in overlayed code. Output
12088 error message of software breakpoints.
12089 * remote.c (remote_insert_breakpoint): If this breakpoint has
12090 target-side commands but this stub doesn't support Z0 packets,
12091 throw NOT_SUPPORTED_ERROR error.
12092 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12093 * target.h (target_insert_breakpoint): Extend comment.
12094 (target_insert_hw_breakpoint): Add comment.
12095
b7ea362b
PA
120962014-01-08 Pedro Alves <palves@redhat.com>
12097
12098 * remote.c (remote_add_thread): Add threads silently if starting
12099 up.
12100 (remote_notice_new_inferior): If in all-stop, and starting up,
12101 don't call notice_new_inferior.
12102 (get_current_thread): New function, factored out from ...
12103 (add_current_inferior_and_thread): ... this. Adjust.
12104 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12105 found any thread, then select the remote's current thread as GDB's
12106 current thread too.
12107
b7bba001
JB
121082014-01-08 Joel Brobecker <brobecker@adacore.com>
12109
12110 * NEWS: Create a new section for the next release branch.
12111 Rename the section of the current branch, now that it has
12112 been cut.
12113
16dfbded
JB
121142014-01-08 Joel Brobecker <brobecker@adacore.com>
12115
12116 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12117 * version.in: Bump version to 7.7.50.DATE-cvs.
12118
22c90ac1
YQ
121192014-01-08 Yao Qi <yao@codesourcery.com>
12120
12121 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12122 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12123 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12124
d64ad97c
YQ
121252014-01-08 Yao Qi <yao@codesourcery.com>
12126
12127 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12128 return value of bfd_get_filename to symbol_file_add_from_bfd.
12129
f93ba80c
PM
121302014-01-08 Pierre Muller <muller@sourceware.org>
12131
12132 Fix PR16201.
12133 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12134 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12135 to prim_record_mininal_symbol_and_info.
12136 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12137 in call to prim_record_minimal_symbol_and_info.
12138 (read_pe_exported_syms): Set index field of section_data.
12139
a4d9ba85
AP
121402014-01-07 Andrew Pinski <apinski@cavium.com>
12141
12142 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12143 * features/aarch64.c: Regenerate.
12144
1b67eb02
AS
121452014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12146
12147 * target.c (return_null): Define.
12148 (update_current_target): Use it instead of return_zero for
12149 functions that return a pointer.
12150
5e3f4fab
EBM
121512014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12152
12153 * source.c (add_path): Fix check for duplicated paths in the previously
12154 included paths.
12155
e2616788
HK
121562014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12157
12158 * ada-lang.c: Remove duplicated include statements.
12159 * alphabsd-nat.c: Ditto.
12160 * amd64-darwin-tdep.c: Ditto.
12161 * amd64fbsd-nat.c: Ditto.
12162 * auto-load.c: Ditto.
12163 * ax-gdb.c: Ditto.
12164 * breakpoint.c: Ditto.
12165 * dbxread.c: Ditto.
12166 * fork-child.c: Ditto.
12167 * gdb_usleep.c: Ditto.
12168 * i386-darwin-tdep.c: Ditto.
12169 * i386fbsd-nat.c: Ditto.
12170 * infcmd.c: Ditto.
12171 * inferior.c: Ditto.
12172 * jv-lang.c: Ditto.
12173 * linux-nat.c: Ditto.
12174 * linux-tdep.c: Ditto.
12175 * m68kbsd-nat.c: Ditto.
12176 * m68klinux-nat.c: Ditto.
12177 * microblaze-tdep.c: Ditto.
12178 * mips-linux-tdep.c: Ditto.
12179 * mn10300-tdep.c: Ditto.
12180 * nto-tdep.c: Ditto.
12181 * opencl-lang.c: Ditto.
12182 * osdata.c: Ditto.
12183 * printcmd.c: Ditto.
12184 * regcache.c: Ditto.
12185 * remote-m32r-sdi.c: Ditto.
12186 * remote.c: Ditto.
12187 * symfile.c: Ditto.
12188 * symtab.c: Ditto.
12189 * tilegx-linux-nat.c: Ditto.
12190 * tilegx-tdep.c: Ditto.
12191 * tracepoint.c: Ditto.
12192 * valops.c: Ditto.
12193 * vaxbsd-nat.c: Ditto.
12194 * windows-nat.c: Ditto.
12195 * xtensa-tdep.c: Ditto.
12196
bd1f7788
YQ
121972014-01-07 Yao Qi <yao@codesourcery.com>
12198
12199 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12200
79301218
JB
122012014-01-07 Yao Qi <yao@codesourcery.com>
12202 Joel Brobecker <brobecker@adacore.com>
12203
12204 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12205 (pdc_write_regs): Likewise.
12206 (fetch_regs_kernel_thread): Likewise.
12207 (store_regs_kernel_thread): Likewise.
12208
122092014-01-07 Joel Brobecker <brobecker@adacore.com>
12210
12211 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12212 tagged type objects to their actual type.
12213
8e355c5d
JB
122142014-01-07 Joel Brobecker <brobecker@adacore.com>
12215
12216 * ada-valprint.c (print_field_values): Add "language" parameter.
12217 Update calls to print_field_values and print_variant_part.
12218 Pass new parameter "language" in call to val_print instead
12219 of "current_language". Replace call to ada_val_print by call
12220 to val_print.
12221 (print_variant_part): Add "language" parameter.
12222 (ada_val_print_struct_union): Update call to print_field_values.
12223
4fbf5aa5
JB
122242014-01-07 Joel Brobecker <brobecker@adacore.com>
12225
12226 * ada-valprint.c (ui_memcpy): Delete.
12227 (ada_print_floating): Update documentation. Add empty line
12228 between between function documentation and implementation.
12229 Delete variable "buffer". Use ui_file_xstrdup in place of
12230 ui_file_put. Minor adjustments following this change.
12231
71855601
JB
122322014-01-07 Joel Brobecker <brobecker@adacore.com>
12233
12234 * ada-valprint.c (ada_val_print_string): New function,
12235 extracted from ada_val_print_array.
12236 (ada_val_print_array): Replace extracted code by call
12237 to ada_val_print_string followed by a return. Move
12238 "else" branch to the function's top block.
12239
4eb27a30
JB
122402014-01-07 Joel Brobecker <brobecker@adacore.com>
12241
12242 * ada-valprint.c (ada_val_print_array): Move implementation
12243 down. Rename parameter "offset" and "val" into "offset_aligned"
12244 and "original_value" respectively. Add parameter "offset".
12245
34b27950
JB
122462014-01-07 Joel Brobecker <brobecker@adacore.com>
12247
12248 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12249 re-organizing the code. Change the "???" message printed
12250 when target type is a TYPE_CODE_UNDEF into
12251 "<ref to undefined type>".
12252
079e4591
JB
122532014-01-07 Joel Brobecker <brobecker@adacore.com>
12254
12255 * ada-valprint.c (print_record): Delete, implementation inlined...
12256 (ada_val_print_struct_union): ... here. Remove call to
12257 ada_check_typedef in inlined implementation.
12258
8004dfd1
JB
122592014-01-07 Joel Brobecker <brobecker@adacore.com>
12260
12261 * ada-valprint.c (ada_val_print_gnat_array): New function,
12262 extracted from ada_val_print_1;
12263 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12264 (ada_val_print_flt, ada_val_print_struct_union)
12265 (ada_val_print_ref): Likewise.
12266 (ada_val_print_1): Delete variables i and elttype.
12267 Replace extracted-out code by call to corresponding
12268 new functions.
12269
760a2db0
JB
122702014-01-07 Joel Brobecker <brobecker@adacore.com>
12271
12272 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12273
3a92c861
JB
122742014-01-07 Joel Brobecker <brobecker@adacore.com>
12275
12276 * ada-valprint.c (ada_val_print_1): Replace calls to
12277 ada_val_print_1 by calls to val_print.
12278
cd1630f9
JB
122792014-01-07 Joel Brobecker <brobecker@adacore.com>
12280
12281 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12282 Update calls to self accordingly. Replace calls to c_val_print
12283 by calls to val_print.
12284
bdf779a0
JB
122852014-01-07 Joel Brobecker <brobecker@adacore.com>
12286
12287 * ada-valprint.c (print_record): Delete declaration.
12288 (adjust_type_signedness, ada_val_print_1): Likewise.
12289 (ada_val_print): Move function implementation down.
12290 (print_variant_part, print_field_values, print_record):
12291 Move function implementation up.
12292
c0d48811
JB
122932014-01-07 Joel Brobecker <brobecker@adacore.com>
12294
12295 * python/py-type.c (typy_get_name): New function.
12296 (type_object_getset): Add entry for attribute "name".
12297 * NEWS: Add entry mentioning this new attribute.
12298
c26e9cbb
YQ
122992014-01-07 Yao Qi <yao@codesourcery.com>
12300
12301 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12302 statement.
12303
0cc6f43d
YQ
123042014-01-07 Yao Qi <yao@codesourcery.com>
12305
12306 * gnu-nat.c (info_port_rights): Add qualifier const to
12307 argument args.
12308
eec03155
YQ
123092014-01-07 Yao Qi <yao@codesourcery.com>
12310
12311 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12312
f04a82ef
YQ
123132014-01-07 Yao Qi <yao@codesourcery.com>
12314
12315 * gnu-nat.c (make_inf) Update declaration.
12316 (make_inf): Make it static.
12317 (inf_set_traced): Likewise.
12318 (inf_port_to_thread, inf_task_died_status): Likewise.
12319
d57dda0a
YQ
123202014-01-07 Yao Qi <yao@codesourcery.com>
12321
12322 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12323
3aa8c969
YQ
123242014-01-07 Yao Qi <yao@codesourcery.com>
12325
12326 * gnu-nat.c (_initialize_gnu_nat): Declare.
12327
94123b4f
YQ
123282014-01-07 Yao Qi <yao@codesourcery.com>
12329
12330 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12331 'enum bfd_endian'.
12332 (struct gdbarch_info) <byte_order>: Change type to
12333 'enum bfd_endian'.
12334 <byte_order_for_code>: Likewise.
12335 * gdbarch.c, gdbarch.h: Regenerated.
12336
dc81d70a
TT
123372014-01-06 Sasha Smundak <asmundak@google.com>
12338
12339 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12340
cc2f3c35
TT
123412014-01-06 Tom Tromey <tromey@redhat.com>
12342
12343 * doublest.c (convert_doublest_to_floatformat): Use const, not
12344 CONST.
12345 * somread.c (som_symtab_read): Likewise.
12346
adcf2eed
HZ
123472014-01-07 Hui Zhu <hui@codesourcery.com>
12348
12349 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12350 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12351 (gdb_bfd_fopen): Ditto.
12352 (gdb_bfd_openr): Ditto.
12353 (gdb_bfd_openw): Ditto.
12354 (gdb_bfd_openr_iovec): Ditto.
12355 (gdb_bfd_fdopenr): Ditto.
12356 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12357 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12358 with xstrdup.
12359 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12360 with xstrdup.
12361 * symfile-mem.c (symbol_file_add_from_memory): Removed
12362 gdb_bfd_stash_filename.
12363
50722198
DE
123642014-01-03 Doug Evans <dje@google.com>
12365
12366 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12367 output.
12368
2fa4b862
JB
123692014-01-01 Joel Brobecker <brobecker@adacore.com>
12370
12371 Update year range in copyright notice of all files.
12372
28498c42
JB
123732014-01-01 Joel Brobecker <brobecker@adacore.com>
12374
12375 * top.c (print_gdb_version): Set copyright year to 2014.
12376
7b6e1046
JB
123772014-01-01 Joel Brobecker <brobecker@adacore.com>
12378
12379 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12380
df96af55 12381For older changes see ChangeLog-2013.
c906108c
SS
12382\f
12383Local Variables:
12384mode: change-log
12385left-margin: 8
12386fill-column: 74
12387version-control: never
57da7796 12388coding: utf-8
c906108c 12389End:
This page took 2.552073 seconds and 4 git commands to generate.